diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-Q2ZPvbaX.css b/assets/index-Q2ZPvbaX.css new file mode 100644 index 0000000..508c11c --- /dev/null +++ b/assets/index-Q2ZPvbaX.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Poppins,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}*,: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: }::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: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.absolute{position:absolute}.relative{position:relative}.top-10{top:2.5rem}.top-11{top:2.75rem}.top-3{top:.75rem}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.me-0{margin-inline-end:0px}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.me-3{margin-inline-end:.75rem}.me-4{margin-inline-end:1rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.min-h-80{min-height:20rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-20{min-width:5rem}.min-w-40{min-width:10rem}.min-w-48{min-width:12rem}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-screen-md{max-width:768px}.max-w-screen-xl{max-width:1280px}.border-collapse{border-collapse:collapse}.origin-\[0\]{transform-origin:0}.-translate-y-6{--tw-translate-y: -1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;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))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-y-2{row-gap:.5rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.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)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity))}.bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-sky-500{--tw-gradient-from: #0ea5e9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 165 233 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-sky-600{--tw-gradient-to: rgb(2 132 199 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0284c7 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-sky-700{--tw-gradient-to: #0369a1 var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.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}.duration-300{transition-duration:.3s}html{scroll-behavior:smooth}::-webkit-scrollbar{height:100%;width:8px;margin-left:5px;border-radius:3px}::-webkit-scrollbar-thumb{background-color:gray;border-radius:3px}::-webkit-scrollbar-track{border-radius:3px}.Mui-disabled{display:none!important}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-sky-800:hover{--tw-bg-opacity: 1;background-color:rgb(7 89 133 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:text-sky-500:hover{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity))}.hover\:text-sky-600:hover{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring: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(3px + 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-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-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-4: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(4px + 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-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-sky-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(125 211 252 / var(--tw-ring-opacity))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y: 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))}.peer:placeholder-shown~.peer-placeholder-shown\:translate-y-0{--tw-translate-y: 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))}.peer:-moz-placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.peer:placeholder-shown~.peer-placeholder-shown\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.peer:focus~.peer-focus\:start-0{inset-inline-start:0px}.peer:focus~.peer-focus\:-translate-y-6{--tw-translate-y: -1.5rem;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))}.peer:focus~.peer-focus\:scale-75{--tw-scale-x: .75;--tw-scale-y: .75;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))}.peer:focus~.peer-focus\:font-medium{font-weight:500}.peer:focus~.peer-focus\:text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mb-0{margin-bottom:0}.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:w-fit{width:-moz-fit-content;width:fit-content}.sm\:max-w-md{max-width:28rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-8{padding:2rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:me-0{margin-inline-end:0px}.md\:me-6{margin-inline-end:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:w-1\/2{width:50%}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\:my-4{margin-top:1rem;margin-bottom:1rem}.lg\:mb-4{margin-bottom:1rem}.lg\:mb-8{margin-bottom:2rem}.lg\:me-5{margin-inline-end:1.25rem}.lg\:mt-2{margin-top:.5rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-full{height:100%}.lg\:w-1\/2{width:50%}.lg\:max-w-40{max-width:10rem}.lg\:max-w-max{max-width:-moz-max-content;max-width:max-content}.lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\:gap-0{gap:0px}.lg\:space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-6{padding:1.5rem}.lg\:py-0{padding-top:0;padding-bottom:0}}@media (min-width: 1280px){.xl\:w-1\/3{width:33.333333%}.xl\:p-0{padding:0}}:is(:where([dir=rtl]) .rtl\:space-x-reverse)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}:is(:where([dir=rtl]) .rtl\:text-right){text-align:right}:is(:where([dir=rtl]) .peer:focus~.rtl\:peer-focus\:left-auto){left:auto}:is(:where([dir=rtl]) .peer:focus~.rtl\:peer-focus\:translate-x-1\/4){--tw-translate-x: 25%;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))}@media (prefers-color-scheme: dark){.dark\:border{border-width:1px}.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity))}.dark\:bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity))}.dark\:bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.dark\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:ring-offset-gray-800{--tw-ring-offset-color: #1f2937}.dark\:hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-sky-700:hover{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity))}.dark\:focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.dark\:focus\:focus\:ring-sky-800:focus:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(7 89 133 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.dark\:focus\:ring-blue-800:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 64 175 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.peer:focus~.peer-focus\:dark\:text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}} diff --git a/assets/index-l56BapjX.js b/assets/index-l56BapjX.js new file mode 100644 index 0000000..79b17e8 --- /dev/null +++ b/assets/index-l56BapjX.js @@ -0,0 +1,404 @@ +var xL=Object.defineProperty;var wL=(t,e,n)=>e in t?xL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var et=(t,e,n)=>(wL(t,typeof e!="symbol"?e+"":e,n),n),Ov=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var K=(t,e,n)=>(Ov(t,e,"read from private field"),n?n.call(t):e.get(t)),He=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Fe=(t,e,n,o)=>(Ov(t,e,"write to private field"),o?o.call(t,n):e.set(t,n),n);var $h=(t,e,n,o)=>({set _(i){Fe(t,e,i,n)},get _(){return K(t,e,o)}}),it=(t,e,n)=>(Ov(t,e,"access private method"),n);function CL(t,e){for(var n=0;no[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function xx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function SL(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return t[o]}})}),n}var qT={exports:{}},Um={},GT={exports:{}},dt={};/** + * @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 ah=Symbol.for("react.element"),kL=Symbol.for("react.portal"),PL=Symbol.for("react.fragment"),ML=Symbol.for("react.strict_mode"),_L=Symbol.for("react.profiler"),RL=Symbol.for("react.provider"),TL=Symbol.for("react.context"),OL=Symbol.for("react.forward_ref"),IL=Symbol.for("react.suspense"),EL=Symbol.for("react.memo"),DL=Symbol.for("react.lazy"),ZC=Symbol.iterator;function $L(t){return t===null||typeof t!="object"?null:(t=ZC&&t[ZC]||t["@@iterator"],typeof t=="function"?t:null)}var KT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YT=Object.assign,QT={};function Rc(t,e,n){this.props=t,this.context=e,this.refs=QT,this.updater=n||KT}Rc.prototype.isReactComponent={};Rc.prototype.setState=function(t,e){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,e,"setState")};Rc.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function XT(){}XT.prototype=Rc.prototype;function wx(t,e,n){this.props=t,this.context=e,this.refs=QT,this.updater=n||KT}var Cx=wx.prototype=new XT;Cx.constructor=wx;YT(Cx,Rc.prototype);Cx.isPureReactComponent=!0;var eS=Array.isArray,JT=Object.prototype.hasOwnProperty,Sx={current:null},ZT={key:!0,ref:!0,__self:!0,__source:!0};function eO(t,e,n){var o,i={},r=null,s=null;if(e!=null)for(o in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(r=""+e.key),e)JT.call(e,o)&&!ZT.hasOwnProperty(o)&&(i[o]=e[o]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,Y=A[W];if(0>>1;Wi(U,V))zi(Q,U)?(A[W]=Q,A[z]=V,W=z):(A[W]=U,A[B]=V,W=B);else if(zi(Q,V))A[W]=Q,A[z]=V,W=z;else break e}}return L}function i(A,L){var V=A.sortIndex-L.sortIndex;return V!==0?V:A.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,p=!1,g=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var L=n(c);L!==null;){if(L.callback===null)o(c);else if(L.startTime<=A)o(c),L.sortIndex=L.expirationTime,e(l,L);else break;L=n(c)}}function C(A){if(m=!1,w(A),!g)if(n(l)!==null)g=!0,j(k);else{var L=n(c);L!==null&&N(C,L.startTime-A)}}function k(A,L){g=!1,m&&(m=!1,v(_),_=-1),p=!0;var V=h;try{for(w(L),d=n(l);d!==null&&(!(d.expirationTime>L)||A&&!I());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var Y=W(d.expirationTime<=L);L=t.unstable_now(),typeof Y=="function"?d.callback=Y:d===n(l)&&o(l),w(L)}else o(l);d=n(l)}if(d!==null)var se=!0;else{var B=n(c);B!==null&&N(C,B.startTime-L),se=!1}return se}finally{d=null,h=V,p=!1}}var P=!1,M=null,_=-1,R=5,O=-1;function I(){return!(t.unstable_now()-OA||125W?(A.sortIndex=V,e(c,A),n(l)===null&&A===n(c)&&(m?(v(_),_=-1):m=!0,N(C,V-W))):(A.sortIndex=Y,e(l,A),g||p||(g=!0,j(k))),A},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(A){var L=h;return function(){var V=h;h=L;try{return A.apply(this,arguments)}finally{h=V}}}})(iO);oO.exports=iO;var UL=oO.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 rO=x,No=UL;function Re(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xb=Object.prototype.hasOwnProperty,qL=/^[: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]*$/,nS={},oS={};function GL(t){return xb.call(oS,t)?!0:xb.call(nS,t)?!1:qL.test(t)?oS[t]=!0:(nS[t]=!0,!1)}function KL(t,e,n,o){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function YL(t,e,n,o){if(e===null||typeof e>"u"||KL(t,e,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function so(t,e,n,o,i,r,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=r,this.removeEmptyString=s}var Ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ln[t]=new so(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ln[e]=new so(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ln[t]=new so(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ln[t]=new so(t,2,!1,t,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(t){Ln[t]=new so(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ln[t]=new so(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ln[t]=new so(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ln[t]=new so(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ln[t]=new so(t,5,!1,t.toLowerCase(),null,!1,!1)});var Px=/[\-:]([a-z])/g;function Mx(t){return t[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(t){var e=t.replace(Px,Mx);Ln[e]=new so(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Px,Mx);Ln[e]=new so(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Px,Mx);Ln[e]=new so(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ln[t]=new so(t,1,!1,t.toLowerCase(),null,!1,!1)});Ln.xlinkHref=new so("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ln[t]=new so(t,1,!1,t.toLowerCase(),null,!0,!0)});function _x(t,e,n,o){var i=Ln.hasOwnProperty(e)?Ln[e]:null;(i!==null?i.type!==0:o||!(2a||i[s]!==r[a]){var l=` +`+i[s].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{Dv=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?hu(t):""}function QL(t){switch(t.tag){case 5:return hu(t.type);case 16:return hu("Lazy");case 13:return hu("Suspense");case 19:return hu("SuspenseList");case 0:case 2:case 15:return t=$v(t.type,!1),t;case 11:return t=$v(t.type.render,!1),t;case 1:return t=$v(t.type,!0),t;default:return""}}function kb(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case fl:return"Fragment";case hl:return"Portal";case wb:return"Profiler";case Rx:return"StrictMode";case Cb:return"Suspense";case Sb:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case lO:return(t.displayName||"Context")+".Consumer";case aO:return(t._context.displayName||"Context")+".Provider";case Tx:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ox:return e=t.displayName||null,e!==null?e:kb(t.type)||"Memo";case Wr:e=t._payload,t=t._init;try{return kb(t(e))}catch{}}return null}function XL(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kb(e);case 8:return e===Rx?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ks(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function uO(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function JL(t){var e=uO(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){o=""+s,r.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Lh(t){t._valueTracker||(t._valueTracker=JL(t))}function dO(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=uO(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Rp(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Pb(t,e){var n=e.checked;return Kt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function rS(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=ks(e.value!=null?e.value:n),t._wrapperState={initialChecked:o,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function hO(t,e){e=e.checked,e!=null&&_x(t,"checked",e,!1)}function Mb(t,e){hO(t,e);var n=ks(e.value),o=e.type;if(n!=null)o==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?_b(t,e.type,n):e.hasOwnProperty("defaultValue")&&_b(t,e.type,ks(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function sS(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function _b(t,e,n){(e!=="number"||Rp(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var fu=Array.isArray;function Rl(t,e,n,o){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Ah.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function od(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Mu={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},ZL=["Webkit","ms","Moz","O"];Object.keys(Mu).forEach(function(t){ZL.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Mu[e]=Mu[t]})});function gO(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Mu.hasOwnProperty(t)&&Mu[t]?(""+e).trim():e+"px"}function vO(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,i=gO(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,i):t[n]=i}}var eA=Kt({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 Ob(t,e){if(e){if(eA[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Re(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Re(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Re(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Re(62))}}function Ib(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Eb=null;function Ix(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Db=null,Tl=null,Ol=null;function cS(t){if(t=uh(t)){if(typeof Db!="function")throw Error(Re(280));var e=t.stateNode;e&&(e=Qm(e),Db(t.stateNode,t.type,e))}}function bO(t){Tl?Ol?Ol.push(t):Ol=[t]:Tl=t}function yO(){if(Tl){var t=Tl,e=Ol;if(Ol=Tl=null,cS(t),e)for(t=0;t>>=0,t===0?32:31-(dA(t)/hA|0)|0}var Nh=64,zh=4194304;function pu(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ep(t,e){var n=t.pendingLanes;if(n===0)return 0;var o=0,i=t.suspendedLanes,r=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?o=pu(a):(r&=s,r!==0&&(o=pu(r)))}else s=n&~i,s!==0?o=pu(s):r!==0&&(o=pu(r));if(o===0)return 0;if(e!==0&&e!==o&&!(e&i)&&(i=o&-o,r=e&-e,i>=r||i===16&&(r&4194240)!==0))return e;if(o&4&&(o|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0n;n++)e.push(t);return e}function lh(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-_i(e),t[e]=n}function gA(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var o=t.eventTimes;for(t=t.expirationTimes;0=Ru),bS=" ",yS=!1;function NO(t,e){switch(t){case"keyup":return WA.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zO(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var pl=!1;function qA(t,e){switch(t){case"compositionend":return zO(e);case"keypress":return e.which!==32?null:(yS=!0,bS);case"textInput":return t=e.data,t===bS&&yS?null:t;default:return null}}function GA(t,e){if(pl)return t==="compositionend"||!Nx&&NO(t,e)?(t=LO(),op=jx=is=null,pl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=SS(n)}}function WO(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?WO(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function UO(){for(var t=window,e=Rp();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Rp(t.document)}return e}function zx(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function nN(t){var e=UO(),n=t.focusedElem,o=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&WO(n.ownerDocument.documentElement,n)){if(o!==null&&zx(n)){if(e=o.start,t=o.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,r=Math.min(o.start,i);o=o.end===void 0?r:Math.min(o.end,i),!t.extend&&r>o&&(i=o,o=r,r=i),i=kS(n,r);var s=kS(n,o);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),r>o?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ml=null,Nb=null,Ou=null,zb=!1;function PS(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zb||ml==null||ml!==Rp(o)||(o=ml,"selectionStart"in o&&zx(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}),Ou&&cd(Ou,o)||(Ou=o,o=Fp(Nb,"onSelect"),0bl||(t.current=qb[bl],qb[bl]=null,bl--)}function Et(t,e){bl++,qb[bl]=t.current,t.current=e}var Ps={},qn=Es(Ps),po=Es(!1),wa=Ps;function ac(t,e){var n=t.type.contextTypes;if(!n)return Ps;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var i={},r;for(r in n)i[r]=e[r];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function mo(t){return t=t.childContextTypes,t!=null}function Lp(){zt(po),zt(qn)}function ES(t,e,n){if(qn.current!==Ps)throw Error(Re(168));Et(qn,e),Et(po,n)}function e2(t,e,n){var o=t.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var i in o)if(!(i in e))throw Error(Re(108,XL(t)||"Unknown",i));return Kt({},n,o)}function Ap(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ps,wa=qn.current,Et(qn,t),Et(po,po.current),!0}function DS(t,e,n){var o=t.stateNode;if(!o)throw Error(Re(169));n?(t=e2(t,e,wa),o.__reactInternalMemoizedMergedChildContext=t,zt(po),zt(qn),Et(qn,t)):zt(po),Et(po,n)}var mr=null,Xm=!1,Kv=!1;function t2(t){mr===null?mr=[t]:mr.push(t)}function pN(t){Xm=!0,t2(t)}function Ds(){if(!Kv&&mr!==null){Kv=!0;var t=0,e=kt;try{var n=mr;for(kt=1;t>=s,i-=s,yr=1<<32-_i(e)+i|n<_?(R=M,M=null):R=M.sibling;var O=h(v,M,w[_],C);if(O===null){M===null&&(M=R);break}t&&M&&O.alternate===null&&e(v,M),y=r(O,y,_),P===null?k=O:P.sibling=O,P=O,M=R}if(_===w.length)return n(v,M),Bt&&Ys(v,_),k;if(M===null){for(;__?(R=M,M=null):R=M.sibling;var I=h(v,M,O.value,C);if(I===null){M===null&&(M=R);break}t&&M&&I.alternate===null&&e(v,M),y=r(I,y,_),P===null?k=I:P.sibling=I,P=I,M=R}if(O.done)return n(v,M),Bt&&Ys(v,_),k;if(M===null){for(;!O.done;_++,O=w.next())O=d(v,O.value,C),O!==null&&(y=r(O,y,_),P===null?k=O:P.sibling=O,P=O);return Bt&&Ys(v,_),k}for(M=o(v,M);!O.done;_++,O=w.next())O=p(M,v,_,O.value,C),O!==null&&(t&&O.alternate!==null&&M.delete(O.key===null?_:O.key),y=r(O,y,_),P===null?k=O:P.sibling=O,P=O);return t&&M.forEach(function($){return e(v,$)}),Bt&&Ys(v,_),k}function b(v,y,w,C){if(typeof w=="object"&&w!==null&&w.type===fl&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case jh:e:{for(var k=w.key,P=y;P!==null;){if(P.key===k){if(k=w.type,k===fl){if(P.tag===7){n(v,P.sibling),y=i(P,w.props.children),y.return=v,v=y;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Wr&&zS(k)===P.type){n(v,P.sibling),y=i(P,w.props),y.ref=qc(v,P,w),y.return=v,v=y;break e}n(v,P);break}else e(v,P);P=P.sibling}w.type===fl?(y=va(w.props.children,v.mode,C,w.key),y.return=v,v=y):(C=dp(w.type,w.key,w.props,null,v.mode,C),C.ref=qc(v,y,w),C.return=v,v=C)}return s(v);case hl:e:{for(P=w.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=i(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else e(v,y);y=y.sibling}y=n0(w,v.mode,C),y.return=v,v=y}return s(v);case Wr:return P=w._init,b(v,y,P(w._payload),C)}if(fu(w))return g(v,y,w,C);if(Vc(w))return m(v,y,w,C);Gh(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,w),y.return=v,v=y):(n(v,y),y=t0(w,v.mode,C),y.return=v,v=y),s(v)):n(v,y)}return b}var cc=c2(!0),u2=c2(!1),dh={},Zi=Es(dh),fd=Es(dh),pd=Es(dh);function ra(t){if(t===dh)throw Error(Re(174));return t}function Yx(t,e){switch(Et(pd,e),Et(fd,t),Et(Zi,dh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Tb(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Tb(e,t)}zt(Zi),Et(Zi,e)}function uc(){zt(Zi),zt(fd),zt(pd)}function d2(t){ra(pd.current);var e=ra(Zi.current),n=Tb(e,t.type);e!==n&&(Et(fd,t),Et(Zi,n))}function Qx(t){fd.current===t&&(zt(Zi),zt(fd))}var Ut=Es(0);function Wp(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Yv=[];function Xx(){for(var t=0;tn?n:4,t(!0);var o=Qv.transition;Qv.transition={};try{t(!1),e()}finally{kt=n,Qv.transition=o}}function _2(){return di().memoizedState}function bN(t,e,n){var o=ys(t);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},R2(t))T2(e,n);else if(n=r2(t,e,n,o),n!==null){var i=oo();Ri(n,t,o,i),O2(n,e,o)}}function yN(t,e,n){var o=ys(t),i={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(R2(t))T2(e,i);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var s=e.lastRenderedState,a=r(s,n);if(i.hasEagerState=!0,i.eagerState=a,Ei(a,s)){var l=e.interleaved;l===null?(i.next=i,Gx(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=r2(t,e,i,o),n!==null&&(i=oo(),Ri(n,t,o,i),O2(n,e,o))}}function R2(t){var e=t.alternate;return t===Gt||e!==null&&e===Gt}function T2(t,e){Iu=Up=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function O2(t,e,n){if(n&4194240){var o=e.lanes;o&=t.pendingLanes,n|=o,e.lanes=n,Dx(t,n)}}var qp={readContext:ui,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useInsertionEffect:zn,useLayoutEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useMutableSource:zn,useSyncExternalStore:zn,useId:zn,unstable_isNewReconciler:!1},xN={readContext:ui,useCallback:function(t,e){return zi().memoizedState=[t,e===void 0?null:e],t},useContext:ui,useEffect:BS,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,ap(4194308,4,C2.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ap(4194308,4,t,e)},useInsertionEffect:function(t,e){return ap(4,2,t,e)},useMemo:function(t,e){var n=zi();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=zi();return e=n!==void 0?n(e):e,o.memoizedState=o.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},o.queue=t,t=t.dispatch=bN.bind(null,Gt,t),[o.memoizedState,t]},useRef:function(t){var e=zi();return t={current:t},e.memoizedState=t},useState:VS,useDebugValue:nw,useDeferredValue:function(t){return zi().memoizedState=t},useTransition:function(){var t=VS(!1),e=t[0];return t=vN.bind(null,t[1]),zi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var o=Gt,i=zi();if(Bt){if(n===void 0)throw Error(Re(407));n=n()}else{if(n=e(),_n===null)throw Error(Re(349));Sa&30||p2(o,e,n)}i.memoizedState=n;var r={value:n,getSnapshot:e};return i.queue=r,BS(g2.bind(null,o,r,t),[t]),o.flags|=2048,vd(9,m2.bind(null,o,r,n,e),void 0,null),n},useId:function(){var t=zi(),e=_n.identifierPrefix;if(Bt){var n=xr,o=yr;n=(o&~(1<<32-_i(o)-1)).toString(32)+n,e=":"+e+"R"+n,n=md++,0<\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=s.createElement(n,{is:o.is}):(t=s.createElement(n),n==="select"&&(s=t,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):t=s.createElementNS(t,n),t[Yi]=e,t[hd]=o,N2(t,e,!1,!1),e.stateNode=t;e:{switch(s=Ib(n,o),n){case"dialog":jt("cancel",t),jt("close",t),i=o;break;case"iframe":case"object":case"embed":jt("load",t),i=o;break;case"video":case"audio":for(i=0;ihc&&(e.flags|=128,o=!0,Gc(r,!1),e.lanes=4194304)}else{if(!o)if(t=Wp(s),t!==null){if(e.flags|=128,o=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Gc(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!Bt)return Vn(e),null}else 2*an()-r.renderingStartTime>hc&&n!==1073741824&&(e.flags|=128,o=!0,Gc(r,!1),e.lanes=4194304);r.isBackwards?(s.sibling=e.child,e.child=s):(n=r.last,n!==null?n.sibling=s:e.child=s,r.last=s)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=an(),e.sibling=null,n=Ut.current,Et(Ut,o?n&1|2:n&1),e):(Vn(e),null);case 22:case 23:return lw(),o=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?Ro&1073741824&&(Vn(e),e.subtreeFlags&6&&(e.flags|=8192)):Vn(e),null;case 24:return null;case 25:return null}throw Error(Re(156,e.tag))}function RN(t,e){switch(Bx(e),e.tag){case 1:return mo(e.type)&&Lp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return uc(),zt(po),zt(qn),Xx(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Qx(e),null;case 13:if(zt(Ut),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Re(340));lc()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return zt(Ut),null;case 4:return uc(),null;case 10:return qx(e.type._context),null;case 22:case 23:return lw(),null;case 24:return null;default:return null}}var Yh=!1,Wn=!1,TN=typeof WeakSet=="function"?WeakSet:Set,ze=null;function Cl(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Jt(t,e,o)}else n.current=null}function iy(t,e,n){try{n()}catch(o){Jt(t,e,o)}}var XS=!1;function ON(t,e){if(Vb=Dp,t=UO(),zx(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var i=o.anchorOffset,r=o.focusNode;o=o.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=t,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==r||o!==0&&d.nodeType!==3||(l=s+o),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===n&&++c===i&&(a=s),h===r&&++u===o&&(l=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bb={focusedElem:t,selectionRange:n},Dp=!1,ze=e;ze!==null;)if(e=ze,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ze=t;else for(;ze!==null;){e=ze;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,b=g.memoizedState,v=e.stateNode,y=v.getSnapshotBeforeUpdate(e.elementType===e.type?m:xi(e.type,m),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Re(163))}}catch(C){Jt(e,e.return,C)}if(t=e.sibling,t!==null){t.return=e.return,ze=t;break}ze=e.return}return g=XS,XS=!1,g}function Eu(t,e,n){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var i=o=o.next;do{if((i.tag&t)===t){var r=i.destroy;i.destroy=void 0,r!==void 0&&iy(e,n,r)}i=i.next}while(i!==o)}}function eg(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var o=n.create;n.destroy=o()}n=n.next}while(n!==e)}}function ry(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function B2(t){var e=t.alternate;e!==null&&(t.alternate=null,B2(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Yi],delete e[hd],delete e[Ub],delete e[hN],delete e[fN])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function H2(t){return t.tag===5||t.tag===3||t.tag===4}function JS(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||H2(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function sy(t,e,n){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=jp));else if(o!==4&&(t=t.child,t!==null))for(sy(t,e,n),t=t.sibling;t!==null;)sy(t,e,n),t=t.sibling}function ay(t,e,n){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(ay(t,e,n),t=t.sibling;t!==null;)ay(t,e,n),t=t.sibling}var Dn=null,Ci=!1;function Lr(t,e,n){for(n=n.child;n!==null;)W2(t,e,n),n=n.sibling}function W2(t,e,n){if(Ji&&typeof Ji.onCommitFiberUnmount=="function")try{Ji.onCommitFiberUnmount(qm,n)}catch{}switch(n.tag){case 5:Wn||Cl(n,e);case 6:var o=Dn,i=Ci;Dn=null,Lr(t,e,n),Dn=o,Ci=i,Dn!==null&&(Ci?(t=Dn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Dn.removeChild(n.stateNode));break;case 18:Dn!==null&&(Ci?(t=Dn,n=n.stateNode,t.nodeType===8?Gv(t.parentNode,n):t.nodeType===1&&Gv(t,n),ad(t)):Gv(Dn,n.stateNode));break;case 4:o=Dn,i=Ci,Dn=n.stateNode.containerInfo,Ci=!0,Lr(t,e,n),Dn=o,Ci=i;break;case 0:case 11:case 14:case 15:if(!Wn&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){i=o=o.next;do{var r=i,s=r.destroy;r=r.tag,s!==void 0&&(r&2||r&4)&&iy(n,e,s),i=i.next}while(i!==o)}Lr(t,e,n);break;case 1:if(!Wn&&(Cl(n,e),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Jt(n,e,a)}Lr(t,e,n);break;case 21:Lr(t,e,n);break;case 22:n.mode&1?(Wn=(o=Wn)||n.memoizedState!==null,Lr(t,e,n),Wn=o):Lr(t,e,n);break;default:Lr(t,e,n)}}function ZS(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new TN),e.forEach(function(o){var i=NN.bind(null,t,o);n.has(o)||(n.add(o),o.then(i,i))})}}function yi(t,e){var n=e.deletions;if(n!==null)for(var o=0;oi&&(i=s),o&=~r}if(o=i,o=an()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*EN(o/1960))-o,10t?16:t,rs===null)var o=!1;else{if(t=rs,rs=null,Yp=0,bt&6)throw Error(Re(331));var i=bt;for(bt|=4,ze=t.current;ze!==null;){var r=ze,s=r.child;if(ze.flags&16){var a=r.deletions;if(a!==null){for(var l=0;lan()-sw?ga(t,0):rw|=n),go(t,e)}function J2(t,e){e===0&&(t.mode&1?(e=zh,zh<<=1,!(zh&130023424)&&(zh=4194304)):e=1);var n=oo();t=Rr(t,e),t!==null&&(lh(t,e,n),go(t,n))}function AN(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),J2(t,n)}function NN(t,e){var n=0;switch(t.tag){case 13:var o=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:o=t.stateNode;break;default:throw Error(Re(314))}o!==null&&o.delete(e),J2(t,n)}var Z2;Z2=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||po.current)fo=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return fo=!1,MN(t,e,n);fo=!!(t.flags&131072)}else fo=!1,Bt&&e.flags&1048576&&n2(e,zp,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;lp(t,e),t=e.pendingProps;var i=ac(e,qn.current);El(e,n),i=Zx(null,e,o,t,i,n);var r=ew();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,mo(o)?(r=!0,Ap(e)):r=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Kx(e),i.updater=Jm,e.stateNode=i,i._reactInternals=e,Xb(e,o,t,n),e=ey(null,e,o,!0,r,n)):(e.tag=0,Bt&&r&&Vx(e),eo(null,e,i,n),e=e.child),e;case 16:o=e.elementType;e:{switch(lp(t,e),t=e.pendingProps,i=o._init,o=i(o._payload),e.type=o,i=e.tag=VN(o),t=xi(o,t),i){case 0:e=Zb(null,e,o,t,n);break e;case 1:e=KS(null,e,o,t,n);break e;case 11:e=qS(null,e,o,t,n);break e;case 14:e=GS(null,e,o,xi(o.type,t),n);break e}throw Error(Re(306,o,""))}return e;case 0:return o=e.type,i=e.pendingProps,i=e.elementType===o?i:xi(o,i),Zb(t,e,o,i,n);case 1:return o=e.type,i=e.pendingProps,i=e.elementType===o?i:xi(o,i),KS(t,e,o,i,n);case 3:e:{if(j2(e),t===null)throw Error(Re(387));o=e.pendingProps,r=e.memoizedState,i=r.element,s2(t,e),Hp(e,o,null,n);var s=e.memoizedState;if(o=s.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){i=dc(Error(Re(423)),e),e=YS(t,e,o,n,i);break e}else if(o!==i){i=dc(Error(Re(424)),e),e=YS(t,e,o,n,i);break e}else for($o=gs(e.stateNode.containerInfo.firstChild),jo=e,Bt=!0,Si=null,n=u2(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(lc(),o===i){e=Tr(t,e,n);break e}eo(t,e,o,n)}e=e.child}return e;case 5:return d2(e),t===null&&Kb(e),o=e.type,i=e.pendingProps,r=t!==null?t.memoizedProps:null,s=i.children,Hb(o,i)?s=null:r!==null&&Hb(o,r)&&(e.flags|=32),F2(t,e),eo(t,e,s,n),e.child;case 6:return t===null&&Kb(e),null;case 13:return L2(t,e,n);case 4:return Yx(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=cc(e,null,o,n):eo(t,e,o,n),e.child;case 11:return o=e.type,i=e.pendingProps,i=e.elementType===o?i:xi(o,i),qS(t,e,o,i,n);case 7:return eo(t,e,e.pendingProps,n),e.child;case 8:return eo(t,e,e.pendingProps.children,n),e.child;case 12:return eo(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(o=e.type._context,i=e.pendingProps,r=e.memoizedProps,s=i.value,Et(Vp,o._currentValue),o._currentValue=s,r!==null)if(Ei(r.value,s)){if(r.children===i.children&&!po.current){e=Tr(t,e,n);break e}}else for(r=e.child,r!==null&&(r.return=e);r!==null;){var a=r.dependencies;if(a!==null){s=r.child;for(var l=a.firstContext;l!==null;){if(l.context===o){if(r.tag===1){l=kr(-1,n&-n),l.tag=2;var c=r.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),Yb(r.return,n,e),a.lanes|=n;break}l=l.next}}else if(r.tag===10)s=r.type===e.type?null:r.child;else if(r.tag===18){if(s=r.return,s===null)throw Error(Re(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Yb(s,n,e),s=r.sibling}else s=r.child;if(s!==null)s.return=r;else for(s=r;s!==null;){if(s===e){s=null;break}if(r=s.sibling,r!==null){r.return=s.return,s=r;break}s=s.return}r=s}eo(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,o=e.pendingProps.children,El(e,n),i=ui(i),o=o(i),e.flags|=1,eo(t,e,o,n),e.child;case 14:return o=e.type,i=xi(o,e.pendingProps),i=xi(o.type,i),GS(t,e,o,i,n);case 15:return D2(t,e,e.type,e.pendingProps,n);case 17:return o=e.type,i=e.pendingProps,i=e.elementType===o?i:xi(o,i),lp(t,e),e.tag=1,mo(o)?(t=!0,Ap(e)):t=!1,El(e,n),l2(e,o,i),Xb(e,o,i,n),ey(null,e,o,!0,t,n);case 19:return A2(t,e,n);case 22:return $2(t,e,n)}throw Error(Re(156,e.tag))};function eI(t,e){return MO(t,e)}function zN(t,e,n,o){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 oi(t,e,n,o){return new zN(t,e,n,o)}function uw(t){return t=t.prototype,!(!t||!t.isReactComponent)}function VN(t){if(typeof t=="function")return uw(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Tx)return 11;if(t===Ox)return 14}return 2}function xs(t,e){var n=t.alternate;return n===null?(n=oi(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function dp(t,e,n,o,i,r){var s=2;if(o=t,typeof t=="function")uw(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case fl:return va(n.children,i,r,e);case Rx:s=8,i|=8;break;case wb:return t=oi(12,n,e,i|2),t.elementType=wb,t.lanes=r,t;case Cb:return t=oi(13,n,e,i),t.elementType=Cb,t.lanes=r,t;case Sb:return t=oi(19,n,e,i),t.elementType=Sb,t.lanes=r,t;case cO:return ng(n,i,r,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case aO:s=10;break e;case lO:s=9;break e;case Tx:s=11;break e;case Ox:s=14;break e;case Wr:s=16,o=null;break e}throw Error(Re(130,t==null?t:typeof t,""))}return e=oi(s,n,e,i),e.elementType=t,e.type=o,e.lanes=r,e}function va(t,e,n,o){return t=oi(7,t,o,e),t.lanes=n,t}function ng(t,e,n,o){return t=oi(22,t,o,e),t.elementType=cO,t.lanes=n,t.stateNode={isHidden:!1},t}function t0(t,e,n){return t=oi(6,t,null,e),t.lanes=n,t}function n0(t,e,n){return e=oi(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function BN(t,e,n,o,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jv(0),this.expirationTimes=jv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jv(0),this.identifierPrefix=o,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dw(t,e,n,o,i,r,s,a,l){return t=new BN(t,e,n,a,l),e===1?(e=1,r===!0&&(e|=8)):e=0,r=oi(3,null,null,e),t.current=r,r.stateNode=t,r.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kx(r),t}function HN(t,e,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iI)}catch(t){console.error(t)}}iI(),nO.exports=Bo;var Ic=nO.exports;const Jh=xx(Ic);var ak=Ic;yb.createRoot=ak.createRoot,yb.hydrateRoot=ak.hydrateRoot;/** + * @remix-run/router v1.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function yd(){return yd=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function mw(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function YN(){return Math.random().toString(36).substr(2,8)}function ck(t,e){return{usr:t.state,key:t.key,idx:e}}function hy(t,e,n,o){return n===void 0&&(n=null),yd({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ec(e):e,{state:n,key:e&&e.key||o||YN()})}function Jp(t){let{pathname:e="/",search:n="",hash:o=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function Ec(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let o=t.indexOf("?");o>=0&&(e.search=t.substr(o),t=t.substr(0,o)),t&&(e.pathname=t)}return e}function QN(t,e,n,o){o===void 0&&(o={});let{window:i=document.defaultView,v5Compat:r=!1}=o,s=i.history,a=ss.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(yd({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=ss.Pop;let b=u(),v=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:v})}function h(b,v){a=ss.Push;let y=hy(m.location,b,v);n&&n(y,b),c=u()+1;let w=ck(y,c),C=m.createHref(y);try{s.pushState(w,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(C)}r&&l&&l({action:a,location:m.location,delta:1})}function p(b,v){a=ss.Replace;let y=hy(m.location,b,v);n&&n(y,b),c=u();let w=ck(y,c),C=m.createHref(y);s.replaceState(w,"",C),r&&l&&l({action:a,location:m.location,delta:0})}function g(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof b=="string"?b:Jp(b);return fn(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let m={get action(){return a},get location(){return t(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(lk,d),l=b,()=>{i.removeEventListener(lk,d),l=null}},createHref(b){return e(i,b)},createURL:g,encodeLocation(b){let v=g(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:p,go(b){return s.go(b)}};return m}var uk;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(uk||(uk={}));function XN(t,e,n){n===void 0&&(n="/");let o=typeof e=="string"?Ec(e):e,i=gw(o.pathname||"/",n);if(i==null)return null;let r=rI(t);JN(r);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?r.path||"":a,caseSensitive:r.caseSensitive===!0,childrenIndex:s,route:r};l.relativePath.startsWith("/")&&(fn(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(o.length));let c=ws([o,l.relativePath]),u=n.concat(l);r.children&&r.children.length>0&&(fn(r.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),rI(r.children,e,u,c)),!(r.path==null&&!r.index)&&e.push({path:c,score:rz(c,r.index),routesMeta:u})};return t.forEach((r,s)=>{var a;if(r.path===""||!((a=r.path)!=null&&a.includes("?")))i(r,s);else for(let l of sI(r.path))i(r,s,l)}),e}function sI(t){let e=t.split("/");if(e.length===0)return[];let[n,...o]=e,i=n.endsWith("?"),r=n.replace(/\?$/,"");if(o.length===0)return i?[r,""]:[r];let s=sI(o.join("/")),a=[];return a.push(...s.map(l=>l===""?r:[r,l].join("/"))),i&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function JN(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:sz(e.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}const ZN=/^:[\w-]+$/,ez=3,tz=2,nz=1,oz=10,iz=-2,dk=t=>t==="*";function rz(t,e){let n=t.split("/"),o=n.length;return n.some(dk)&&(o+=iz),e&&(o+=tz),n.filter(i=>!dk(i)).reduce((i,r)=>i+(ZN.test(r)?ez:r===""?nz:oz),o)}function sz(t,e){return t.length===e.length&&t.slice(0,-1).every((o,i)=>o===e[i])?t[t.length-1]-e[e.length-1]:0}function az(t,e){let{routesMeta:n}=t,o={},i="/",r=[];for(let s=0;s{let{paramName:h,isOptional:p}=u;if(h==="*"){let m=a[d]||"";s=r.slice(0,r.length-m.length).replace(/(.)\/+$/,"$1")}const g=a[d];return p&&!g?c[h]=void 0:c[h]=dz(g||"",h),c},{}),pathname:r,pathnameBase:s,pattern:t}}function cz(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),mw(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let o=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(o.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(o.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),o]}function uz(t){try{return decodeURI(t)}catch(e){return mw(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function dz(t,e){try{return decodeURIComponent(t)}catch(n){return mw(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function gw(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,o=t.charAt(n);return o&&o!=="/"?null:t.slice(n)||"/"}function hz(t,e){e===void 0&&(e="/");let{pathname:n,search:o="",hash:i=""}=typeof t=="string"?Ec(t):t;return{pathname:n?n.startsWith("/")?n:fz(n,e):e,search:gz(o),hash:vz(i)}}function fz(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function o0(t,e,n,o){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function pz(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function aI(t,e){let n=pz(t);return e?n.map((o,i)=>i===t.length-1?o.pathname:o.pathnameBase):n.map(o=>o.pathnameBase)}function lI(t,e,n,o){o===void 0&&(o=!1);let i;typeof t=="string"?i=Ec(t):(i=yd({},t),fn(!i.pathname||!i.pathname.includes("?"),o0("?","pathname","search",i)),fn(!i.pathname||!i.pathname.includes("#"),o0("#","pathname","hash",i)),fn(!i.search||!i.search.includes("#"),o0("#","search","hash",i)));let r=t===""||i.pathname==="",s=r?"/":i.pathname,a;if(s==null)a=n;else{let d=e.length-1;if(!o&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=hz(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(r||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ws=t=>t.join("/").replace(/\/\/+/g,"/"),mz=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),gz=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,vz=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function bz(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const cI=["post","put","patch","delete"];new Set(cI);const yz=["get",...cI];new Set(yz);/** + * React Router v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xd(){return xd=Object.assign?Object.assign.bind():function(t){for(var e=1;e{a.current=!0}),x.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){o.go(c);return}let d=lI(c,JSON.parse(s),r,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:ws([e,d.pathname])),(u.replace?o.replace:o.push)(d,u.state,u)},[e,o,s,r,t])}function Sz(){let{matches:t}=x.useContext($s),e=t[t.length-1];return e?e.params:{}}function hI(t,e){let{relative:n}=e===void 0?{}:e,{future:o}=x.useContext(Va),{matches:i}=x.useContext($s),{pathname:r}=lg(),s=JSON.stringify(aI(i,o.v7_relativeSplatPath));return x.useMemo(()=>lI(t,JSON.parse(s),r,n==="path"),[t,s,r,n])}function kz(t,e){return Pz(t,e)}function Pz(t,e,n,o){hh()||fn(!1);let{navigator:i}=x.useContext(Va),{matches:r}=x.useContext($s),s=r[r.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=lg(),u;if(e){var d;let b=typeof e=="string"?Ec(e):e;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||fn(!1),u=b}else u=c;let h=u.pathname||"/",p=l==="/"?h:h.slice(l.length)||"/",g=XN(t,{pathname:p}),m=Oz(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:ws([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:ws([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),r,n,o);return e&&m?x.createElement(ag.Provider,{value:{location:xd({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ss.Pop}},m):m}function Mz(){let t=$z(),e=bz(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},r=null;return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},e),n?x.createElement("pre",{style:i},n):null,r)}const _z=x.createElement(Mz,null);class Rz extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?x.createElement($s.Provider,{value:this.props.routeContext},x.createElement(uI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Tz(t){let{routeContext:e,match:n,children:o}=t,i=x.useContext(vw);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement($s.Provider,{value:e},o)}function Oz(t,e,n,o){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),o===void 0&&(o=null),t==null){var r;if((r=n)!=null&&r.errors)t=n.matches;else return null}let s=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));u>=0||fn(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,g=!1,m=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||_z,l&&(c<0&&h===0?(jz("route-fallback",!1),g=!0,b=null):c===h&&(g=!0,b=d.route.hydrateFallbackElement||null)));let v=e.concat(s.slice(0,h+1)),y=()=>{let w;return p?w=m:g?w=b:d.route.Component?w=x.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,x.createElement(Tz,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?x.createElement(Rz,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}var fI=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(fI||{}),Zp=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Zp||{});function Iz(t){let e=x.useContext(vw);return e||fn(!1),e}function Ez(t){let e=x.useContext(xz);return e||fn(!1),e}function Dz(t){let e=x.useContext($s);return e||fn(!1),e}function pI(t){let e=Dz(),n=e.matches[e.matches.length-1];return n.route.id||fn(!1),n.route.id}function $z(){var t;let e=x.useContext(uI),n=Ez(Zp.UseRouteError),o=pI(Zp.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[o]}function Fz(){let{router:t}=Iz(fI.UseNavigateStable),e=pI(Zp.UseNavigateStable),n=x.useRef(!1);return dI(()=>{n.current=!0}),x.useCallback(function(i,r){r===void 0&&(r={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,xd({fromRouteId:e},r)))},[t,e])}const hk={};function jz(t,e,n){!e&&!hk[t]&&(hk[t]=!0)}function un(t){fn(!1)}function Lz(t){let{basename:e="/",children:n=null,location:o,navigationType:i=ss.Pop,navigator:r,static:s=!1,future:a}=t;hh()&&fn(!1);let l=e.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:l,navigator:r,static:s,future:xd({v7_relativeSplatPath:!1},a)}),[l,a,r,s]);typeof o=="string"&&(o=Ec(o));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:g="default"}=o,m=x.useMemo(()=>{let b=gw(u,l);return b==null?null:{location:{pathname:b,search:d,hash:h,state:p,key:g},navigationType:i}},[l,u,d,h,p,g,i]);return m==null?null:x.createElement(Va.Provider,{value:c},x.createElement(ag.Provider,{children:n,value:m}))}function Az(t){let{children:e,location:n}=t;return kz(fy(e),n)}new Promise(()=>{});function fy(t,e){e===void 0&&(e=[]);let n=[];return x.Children.forEach(t,(o,i)=>{if(!x.isValidElement(o))return;let r=[...e,i];if(o.type===x.Fragment){n.push.apply(n,fy(o.props.children,r));return}o.type!==un&&fn(!1),!o.props.index||!o.props.children||fn(!1);let s={id:o.props.id||r.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(s.children=fy(o.props.children,r)),n.push(s)}),n}/** + * React Router DOM v6.21.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function py(){return py=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function zz(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Vz(t,e){return t.button===0&&(!e||e==="_self")&&!zz(t)}const Bz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Hz="startTransition",fk=_p[Hz];function Wz(t){let{basename:e,children:n,future:o,window:i}=t,r=x.useRef();r.current==null&&(r.current=KN({window:i,v5Compat:!0}));let s=r.current,[a,l]=x.useState({action:s.action,location:s.location}),{v7_startTransition:c}=o||{},u=x.useCallback(d=>{c&&fk?fk(()=>l(d)):l(d)},[l,c]);return x.useLayoutEffect(()=>s.listen(u),[s,u]),x.createElement(Lz,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:o})}const Uz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tn=x.forwardRef(function(e,n){let{onClick:o,relative:i,reloadDocument:r,replace:s,state:a,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=e,h=Nz(e,Bz),{basename:p}=x.useContext(Va),g,m=!1;if(typeof c=="string"&&qz.test(c)&&(g=c,Uz))try{let w=new URL(window.location.href),C=c.startsWith("//")?new URL(w.protocol+c):new URL(c),k=gw(C.pathname,p);C.origin===w.origin&&k!=null?c=k+C.search+C.hash:m=!0}catch{}let b=wz(c,{relative:i}),v=Gz(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,unstable_viewTransition:d});function y(w){o&&o(w),w.defaultPrevented||v(w)}return x.createElement("a",py({},h,{href:g||b,onClick:m||r?o:y,ref:n,target:l}))});var pk;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(pk||(pk={}));var mk;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(mk||(mk={}));function Gz(t,e){let{target:n,replace:o,state:i,preventScrollReset:r,relative:s,unstable_viewTransition:a}=e===void 0?{}:e,l=Fs(),c=lg(),u=hI(t,{relative:s});return x.useCallback(d=>{if(Vz(d,n)){d.preventDefault();let h=o!==void 0?o:Jp(c)===Jp(u);l(t,{replace:h,state:i,preventScrollReset:r,relative:s,unstable_viewTransition:a})}},[c,l,u,o,i,n,t,r,s,a])}const Kz=({items:t})=>f.jsxs("div",{className:"px-1 mx-auto max-w-screen-md",children:[f.jsx("h2",{className:"mb-4 text-4xl tracking-tight font-extrabold text-center",children:"About Us"}),f.jsx("div",{className:"space-y-8",children:t.map(e=>f.jsxs("div",{children:[f.jsx("h3",{className:"my-2 font-medium",children:e.title}),f.jsx("p",{className:"my-2 text-md lg:mb-4 font-light text-left text-gray-500 dark:text-gray-400",children:e.description})]},e.title))})]});function ce(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,r;for(r=0;r=0)&&(n[i]=t[i]);return n}function S(){return S=Object.assign?Object.assign.bind():function(t){for(var e=1;e{e[n]=yI(t[n])}),e}function Un(t,e,n={clone:!0}){const o=n.clone?S({},t):t;return br(t)&&br(e)&&Object.keys(e).forEach(i=>{i!=="__proto__"&&(br(e[i])&&i in t&&br(t[i])?o[i]=Un(t[i],e[i],n):n.clone?o[i]=br(e[i])?yI(e[i]):e[i]:o[i]=e[i])}),o}function Ms(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;nn==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function Ba(t,e=166){let n;function o(...i){const r=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(r,e)}return o.clear=()=>{clearTimeout(n)},o}function oV(t,e){return()=>null}function Fu(t,e){var n,o;return x.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(o=t.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Wt(t){return t&&t.ownerDocument||document}function ir(t){return Wt(t).defaultView||window}function iV(t,e){return()=>null}function wd(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const rV=typeof window<"u"?x.useLayoutEffect:x.useEffect,nn=rV;let gk=0;function sV(t){const[e,n]=x.useState(t),o=t||e;return x.useEffect(()=>{e==null&&(gk+=1,n(`mui-${gk}`))},[e]),o}const vk=_p.useId;function cr(t){if(vk!==void 0){const e=vk();return t??e}return sV(t)}function aV(t,e,n,o,i){return null}function Rn({controlled:t,default:e,name:n,state:o="value"}){const{current:i}=x.useRef(t!==void 0),[r,s]=x.useState(e),a=i?t:r,l=x.useCallback(c=>{i||s(c)},[]);return[a,l]}function je(t){const e=x.useRef(t);return nn(()=>{e.current=t}),x.useRef((...n)=>(0,e.current)(...n)).current}function mt(...t){return x.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{wd(n,e)})},t)}let yg=!0,my=!1,bk;const lV={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function cV(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&lV[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function uV(t){t.metaKey||t.altKey||t.ctrlKey||(yg=!0)}function i0(){yg=!1}function dV(){this.visibilityState==="hidden"&&my&&(yg=!0)}function hV(t){t.addEventListener("keydown",uV,!0),t.addEventListener("mousedown",i0,!0),t.addEventListener("pointerdown",i0,!0),t.addEventListener("touchstart",i0,!0),t.addEventListener("visibilitychange",dV,!0)}function fV(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return yg||cV(e)}function xg(){const t=x.useCallback(i=>{i!=null&&hV(i.ownerDocument)},[]),e=x.useRef(!1);function n(){return e.current?(my=!0,window.clearTimeout(bk),bk=window.setTimeout(()=>{my=!1},100),e.current=!1,!0):!1}function o(i){return fV(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:o,onBlur:n,ref:t}}function wI(t){const e=t.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}let Xa;function CI(){if(Xa)return Xa;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Xa="reverse",t.scrollLeft>0?Xa="default":(t.scrollLeft=1,t.scrollLeft===0&&(Xa="negative")),document.body.removeChild(t),Xa}function pV(t,e){const n=t.scrollLeft;if(e!=="rtl")return n;switch(CI()){case"negative":return t.scrollWidth-t.clientWidth+n;case"reverse":return t.scrollWidth-t.clientWidth-n;default:return n}}const mV=t=>{const e=x.useRef({});return x.useEffect(()=>{e.current=t}),e.current},xw=mV,gV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},vV=gV;function ww(t,e){const n=S({},e);return Object.keys(t).forEach(o=>{if(o.toString().match(/^(components|slots)$/))n[o]=S({},t[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const i=t[o]||{},r=e[o];n[o]={},!r||!Object.keys(r)?n[o]=i:!i||!Object.keys(i)?n[o]=r:(n[o]=S({},r),Object.keys(i).forEach(s=>{n[o][s]=ww(i[s],r[s])}))}else n[o]===void 0&&(n[o]=t[o])}),n}function Oe(t,e,n=void 0){const o={};return Object.keys(t).forEach(i=>{o[i]=t[i].reduce((r,s)=>{if(s){const a=e(s);a!==""&&r.push(a),n&&n[s]&&r.push(n[s])}return r},[]).join(" ")}),o}const yk=t=>t,bV=()=>{let t=yk;return{configure(e){t=e},generate(e){return t(e)},reset(){t=yk}}},yV=bV(),Cw=yV,xV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ie(t,e,n="Mui"){const o=xV[e];return o?`${n}-${o}`:`${Cw.generate(t)}-${e}`}function Te(t,e,n="Mui"){const o={};return e.forEach(i=>{o[i]=Ie(t,i,n)}),o}function SI(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var wV=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,CV=SI(function(t){return wV.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function SV(t){if(t.sheet)return t.sheet;for(var e=0;e0?Fn($c,--xo):0,fc--,dn===10&&(fc=1,Cg--),dn}function Lo(){return dn=xo<_I?Fn($c,xo++):0,fc++,dn===10&&(fc=1,Cg++),dn}function er(){return Fn($c,xo)}function hp(){return xo}function fh(t,e){return Cd($c,t,e)}function Sd(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function RI(t){return Cg=fc=1,_I=Gi($c=t),xo=0,[]}function TI(t){return $c="",t}function fp(t){return MI(fh(xo-1,vy(t===91?t+2:t===40?t+1:t)))}function FV(t){for(;(dn=er())&&dn<33;)Lo();return Sd(t)>2||Sd(dn)>3?"":" "}function jV(t,e){for(;--e&&Lo()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return fh(t,hp()+(e<6&&er()==32&&Lo()==32))}function vy(t){for(;Lo();)switch(dn){case t:return xo;case 34:case 39:t!==34&&t!==39&&vy(dn);break;case 40:t===41&&vy(t);break;case 92:Lo();break}return xo}function LV(t,e){for(;Lo()&&t+dn!==57;)if(t+dn===84&&er()===47)break;return"/*"+fh(e,xo-1)+"*"+wg(t===47?t:Lo())}function AV(t){for(;!Sd(er());)Lo();return fh(t,xo)}function NV(t){return TI(pp("",null,null,null,[""],t=RI(t),0,[0],t))}function pp(t,e,n,o,i,r,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,g=0,m=1,b=1,v=1,y=0,w="",C=i,k=r,P=o,M=w;b;)switch(g=y,y=Lo()){case 40:if(g!=108&&Fn(M,d-1)==58){gy(M+=Ct(fp(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:M+=fp(y);break;case 9:case 10:case 13:case 32:M+=FV(g);break;case 92:M+=jV(hp()-1,7);continue;case 47:switch(er()){case 42:case 47:Zh(zV(LV(Lo(),hp()),e,n),l);break;default:M+="/"}break;case 123*m:a[c++]=Gi(M)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+u:v==-1&&(M=Ct(M,/\f/g,"")),p>0&&Gi(M)-d&&Zh(p>32?wk(M+";",o,n,d-1):wk(Ct(M," ","")+";",o,n,d-2),l);break;case 59:M+=";";default:if(Zh(P=xk(M,e,n,c,u,i,a,w,C=[],k=[],d),r),y===123)if(u===0)pp(M,e,P,P,C,r,d,a,k);else switch(h===99&&Fn(M,3)===110?100:h){case 100:case 108:case 109:case 115:pp(t,P,P,o&&Zh(xk(t,P,P,0,0,i,a,w,i,C=[],d),k),i,k,d,a,o?C:k);break;default:pp(M,P,P,P,[""],k,0,a,k)}}c=u=p=0,m=v=1,w=M="",d=s;break;case 58:d=1+Gi(M),p=g;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&$V()==125)continue}switch(M+=wg(y),y*m){case 38:v=u>0?1:(M+="\f",-1);break;case 44:a[c++]=(Gi(M)-1)*v,v=1;break;case 64:er()===45&&(M+=fp(Lo())),h=er(),u=d=Gi(w=M+=AV(hp())),y++;break;case 45:g===45&&Gi(M)==2&&(m=0)}}return r}function xk(t,e,n,o,i,r,s,a,l,c,u){for(var d=i-1,h=i===0?r:[""],p=Pw(h),g=0,m=0,b=0;g0?h[v]+" "+y:Ct(y,/&\f/g,h[v])))&&(l[b++]=w);return Sg(t,e,n,i===0?Sw:a,l,c,u)}function zV(t,e,n){return Sg(t,e,n,kI,wg(DV()),Cd(t,2,-2),0)}function wk(t,e,n,o){return Sg(t,e,n,kw,Cd(t,0,o),Cd(t,o+1,-1),o)}function $l(t,e){for(var n="",o=Pw(t),i=0;i6)switch(Fn(t,e+1)){case 109:if(Fn(t,e+4)!==45)break;case 102:return Ct(t,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+tm+(Fn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~gy(t,"stretch")?OI(Ct(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Fn(t,e+1)!==115)break;case 6444:switch(Fn(t,Gi(t)-3-(~gy(t,"!important")&&10))){case 107:return Ct(t,":",":"+wt)+t;case 101:return Ct(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+(Fn(t,14)===45?"inline-":"")+"box$3$1"+wt+"$2$3$1"+Bn+"$2box$3")+t}break;case 5936:switch(Fn(t,e+11)){case 114:return wt+t+Bn+Ct(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return wt+t+Bn+Ct(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return wt+t+Bn+Ct(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return wt+t+Bn+t+t}return t}var YV=function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case kw:e.return=OI(e.value,e.length);break;case PI:return $l([Yc(e,{value:Ct(e.value,"@","@"+wt)})],i);case Sw:if(e.length)return EV(e.props,function(r){switch(IV(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $l([Yc(e,{props:[Ct(r,/:(read-\w+)/,":"+tm+"$1")]})],i);case"::placeholder":return $l([Yc(e,{props:[Ct(r,/:(plac\w+)/,":"+wt+"input-$1")]}),Yc(e,{props:[Ct(r,/:(plac\w+)/,":"+tm+"$1")]}),Yc(e,{props:[Ct(r,/:(plac\w+)/,Bn+"input-$1")]})],i)}return""})}},QV=[YV],XV=function(e){var n=e.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||QV,r={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),v=1;v=4;++o,i-=4)n=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var l5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c5=/[A-Z]|^ms/g,u5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jI=function(e){return e.charCodeAt(1)===45},Sk=function(e){return e!=null&&typeof e!="boolean"},r0=SI(function(t){return jI(t)?t:t.replace(c5,"-$&").toLowerCase()}),kk=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(u5,function(o,i,r){return Ki={name:i,styles:r,next:Ki},i})}return l5[e]!==1&&!jI(e)&&typeof n=="number"&&n!==0?n+"px":n};function kd(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ki={name:n.name,styles:n.styles,next:Ki},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Ki={name:o.name,styles:o.styles,next:Ki},o=o.next;var i=n.styles+";";return i}return d5(t,e,n)}case"function":{if(t!==void 0){var r=Ki,s=n(t);return Ki=r,kd(t,e,s)}break}}if(e==null)return n;var a=e[n];return a!==void 0?a:n}function d5(t,e,n){var o="";if(Array.isArray(n))for(var i=0;i96?b5:y5},Rk=function(e,n,o){var i;if(n){var r=n.shouldForwardProp;i=e.__emotion_forwardProp&&r?function(s){return e.__emotion_forwardProp(s)&&r(s)}:r}return typeof i!="function"&&o&&(i=e.__emotion_forwardProp),i},x5=function(e){var n=e.cache,o=e.serialized,i=e.isStringTag;return Tw(n,o,i),AI(function(){return Ow(n,o,i)}),null},w5=function t(e,n){var o=e.__emotion_real===e,i=o&&e.__emotion_base||e,r,s;n!==void 0&&(r=n.label,s=n.target);var a=Rk(e,n,o),l=a||_k(i),c=!l("as");return function(){var u=arguments,d=o&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(r!==void 0&&d.push("label:"+r+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var h=u.length,p=1;pe(S5(i)?n:i):e;return f.jsx(v5,{styles:o})}function zI(t,e){return yy(t,e)}const P5=(t,e)=>{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))},M5=["values","unit","step"],_5=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,o)=>n.val-o.val),e.reduce((n,o)=>S({},n,{[o.key]:o.val}),{})};function R5(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=t,i=ce(t,M5),r=_5(e),s=Object.keys(r);function a(h){return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof e[h]=="number"?e[h]:h)-o/100}${n})`}function c(h,p){const g=s.indexOf(p);return`@media (min-width:${typeof e[h]=="number"?e[h]:h}${n}) and (max-width:${(g!==-1&&typeof e[s[g]]=="number"?e[s[g]]:p)-o/100}${n})`}function u(h){return s.indexOf(h)+1`@media (min-width:${Dw[t]}px)`};function Di(t,e,n){const o=t.theme||{};if(Array.isArray(e)){const r=o.breakpoints||Tk;return e.reduce((s,a,l)=>(s[r.up(r.keys[l])]=n(e[l]),s),{})}if(typeof e=="object"){const r=o.breakpoints||Tk;return Object.keys(e).reduce((s,a)=>{if(Object.keys(r.values||Dw).indexOf(a)!==-1){const l=r.up(a);s[l]=n(e[a],a)}else{const l=a;s[l]=e[l]}return s},{})}return n(e)}function VI(t={}){var e;return((e=t.keys)==null?void 0:e.reduce((o,i)=>{const r=t.up(i);return o[r]={},o},{}))||{}}function BI(t,e){return t.reduce((n,o)=>{const i=n[o];return(!i||Object.keys(i).length===0)&&delete n[o],n},e)}function I5(t,...e){const n=VI(t),o=[n,...e].reduce((i,r)=>Un(i,r),{});return BI(Object.keys(n),o)}function E5(t,e){if(typeof t!="object")return{};const n={},o=Object.keys(e);return Array.isArray(t)?o.forEach((i,r)=>{r{t[i]!=null&&(n[i]=!0)}),n}function s0({values:t,breakpoints:e,base:n}){const o=n||E5(t,e),i=Object.keys(o);if(i.length===0)return t;let r;return i.reduce((s,a,l)=>(Array.isArray(t)?(s[a]=t[l]!=null?t[l]:t[r],r=l):typeof t=="object"?(s[a]=t[a]!=null?t[a]:t[r],r=a):s[a]=t,s),{})}function Fg(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const o=`vars.${e}`.split(".").reduce((i,r)=>i&&i[r]?i[r]:null,t);if(o!=null)return o}return e.split(".").reduce((o,i)=>o&&o[i]!=null?o[i]:null,t)}function nm(t,e,n,o=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||o:i=Fg(t,n)||o,e&&(i=e(i,o,t)),i}function cn(t){const{prop:e,cssProperty:n=t.prop,themeKey:o,transform:i}=t,r=s=>{if(s[e]==null)return null;const a=s[e],l=s.theme,c=Fg(l,o)||{};return Di(s,a,d=>{let h=nm(c,i,d);return d===h&&typeof d=="string"&&(h=nm(c,i,`${e}${d==="default"?"":le(d)}`,d)),n===!1?h:{[n]:h}})};return r.propTypes={},r.filterProps=[e],r}function D5(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const $5={m:"margin",p:"padding"},F5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ok={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j5=D5(t=>{if(t.length>2)if(Ok[t])t=Ok[t];else return[t];const[e,n]=t.split(""),o=$5[e],i=F5[n]||"";return Array.isArray(i)?i.map(r=>o+r):[o+i]}),$w=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$w,...Fw];function mh(t,e,n,o){var i;const r=(i=Fg(t,e,!1))!=null?i:n;return typeof r=="number"?s=>typeof s=="string"?s:r*s:Array.isArray(r)?s=>typeof s=="string"?s:r[s]:typeof r=="function"?r:()=>{}}function jw(t){return mh(t,"spacing",8)}function Ma(t,e){if(typeof e=="string"||e==null)return e;const n=Math.abs(e),o=t(n);return e>=0?o:typeof o=="number"?-o:`-${o}`}function L5(t,e){return n=>t.reduce((o,i)=>(o[i]=Ma(e,n),o),{})}function A5(t,e,n,o){if(e.indexOf(n)===-1)return null;const i=j5(n),r=L5(i,o),s=t[n];return Di(t,s,r)}function HI(t,e){const n=jw(t.theme);return Object.keys(t).map(o=>A5(t,e,o,n)).reduce(ju,{})}function Qt(t){return HI(t,$w)}Qt.propTypes={};Qt.filterProps=$w;function Xt(t){return HI(t,Fw)}Xt.propTypes={};Xt.filterProps=Fw;function N5(t=8){if(t.mui)return t;const e=jw({spacing:t}),n=(...o)=>(o.length===0?[1]:o).map(r=>{const s=e(r);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function jg(...t){const e=t.reduce((o,i)=>(i.filterProps.forEach(r=>{o[r]=i}),o),{}),n=o=>Object.keys(o).reduce((i,r)=>e[r]?ju(i,e[r](o)):i,{});return n.propTypes={},n.filterProps=t.reduce((o,i)=>o.concat(i.filterProps),[]),n}function ni(t){return typeof t!="number"?t:`${t}px solid`}function gi(t,e){return cn({prop:t,themeKey:"borders",transform:e})}const z5=gi("border",ni),V5=gi("borderTop",ni),B5=gi("borderRight",ni),H5=gi("borderBottom",ni),W5=gi("borderLeft",ni),U5=gi("borderColor"),q5=gi("borderTopColor"),G5=gi("borderRightColor"),K5=gi("borderBottomColor"),Y5=gi("borderLeftColor"),Q5=gi("outline",ni),X5=gi("outlineColor"),Lg=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=mh(t.theme,"shape.borderRadius",4),n=o=>({borderRadius:Ma(e,o)});return Di(t,t.borderRadius,n)}return null};Lg.propTypes={};Lg.filterProps=["borderRadius"];jg(z5,V5,B5,H5,W5,U5,q5,G5,K5,Y5,Lg,Q5,X5);const Ag=t=>{if(t.gap!==void 0&&t.gap!==null){const e=mh(t.theme,"spacing",8),n=o=>({gap:Ma(e,o)});return Di(t,t.gap,n)}return null};Ag.propTypes={};Ag.filterProps=["gap"];const Ng=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=mh(t.theme,"spacing",8),n=o=>({columnGap:Ma(e,o)});return Di(t,t.columnGap,n)}return null};Ng.propTypes={};Ng.filterProps=["columnGap"];const zg=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=mh(t.theme,"spacing",8),n=o=>({rowGap:Ma(e,o)});return Di(t,t.rowGap,n)}return null};zg.propTypes={};zg.filterProps=["rowGap"];const J5=cn({prop:"gridColumn"}),Z5=cn({prop:"gridRow"}),eB=cn({prop:"gridAutoFlow"}),tB=cn({prop:"gridAutoColumns"}),nB=cn({prop:"gridAutoRows"}),oB=cn({prop:"gridTemplateColumns"}),iB=cn({prop:"gridTemplateRows"}),rB=cn({prop:"gridTemplateAreas"}),sB=cn({prop:"gridArea"});jg(Ag,Ng,zg,J5,Z5,eB,tB,nB,oB,iB,rB,sB);function Fl(t,e){return e==="grey"?e:t}const aB=cn({prop:"color",themeKey:"palette",transform:Fl}),lB=cn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fl}),cB=cn({prop:"backgroundColor",themeKey:"palette",transform:Fl});jg(aB,lB,cB);function Do(t){return t<=1&&t!==0?`${t*100}%`:t}const uB=cn({prop:"width",transform:Do}),Lw=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var o,i;const r=((o=t.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[n])||Dw[n];return r?((i=t.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Do(n)}};return Di(t,t.maxWidth,e)}return null};Lw.filterProps=["maxWidth"];const dB=cn({prop:"minWidth",transform:Do}),hB=cn({prop:"height",transform:Do}),fB=cn({prop:"maxHeight",transform:Do}),pB=cn({prop:"minHeight",transform:Do});cn({prop:"size",cssProperty:"width",transform:Do});cn({prop:"size",cssProperty:"height",transform:Do});const mB=cn({prop:"boxSizing"});jg(uB,Lw,dB,hB,fB,pB,mB);const gB={border:{themeKey:"borders",transform:ni},borderTop:{themeKey:"borders",transform:ni},borderRight:{themeKey:"borders",transform:ni},borderBottom:{themeKey:"borders",transform:ni},borderLeft:{themeKey:"borders",transform:ni},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ni},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lg},color:{themeKey:"palette",transform:Fl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fl},backgroundColor:{themeKey:"palette",transform:Fl},p:{style:Xt},pt:{style:Xt},pr:{style:Xt},pb:{style:Xt},pl:{style:Xt},px:{style:Xt},py:{style:Xt},padding:{style:Xt},paddingTop:{style:Xt},paddingRight:{style:Xt},paddingBottom:{style:Xt},paddingLeft:{style:Xt},paddingX:{style:Xt},paddingY:{style:Xt},paddingInline:{style:Xt},paddingInlineStart:{style:Xt},paddingInlineEnd:{style:Xt},paddingBlock:{style:Xt},paddingBlockStart:{style:Xt},paddingBlockEnd:{style:Xt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ag},rowGap:{style:zg},columnGap:{style:Ng},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Do},maxWidth:{style:Lw},minWidth:{transform:Do},height:{transform:Do},maxHeight:{transform:Do},minHeight:{transform:Do},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Vg=gB;function vB(...t){const e=t.reduce((o,i)=>o.concat(Object.keys(i)),[]),n=new Set(e);return t.every(o=>n.size===Object.keys(o).length)}function bB(t,e){return typeof t=="function"?t(e):t}function yB(){function t(n,o,i,r){const s={[n]:o,theme:i},a=r[n];if(!a)return{[n]:o};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(o==null)return null;if(c==="typography"&&o==="inherit")return{[n]:o};const h=Fg(i,c)||{};return d?d(s):Di(s,o,g=>{let m=nm(h,u,g);return g===m&&typeof g=="string"&&(m=nm(h,u,`${n}${g==="default"?"":le(g)}`,g)),l===!1?m:{[l]:m}})}function e(n){var o;const{sx:i,theme:r={}}=n||{};if(!i)return null;const s=(o=r.unstable_sxConfig)!=null?o:Vg;function a(l){let c=l;if(typeof l=="function")c=l(r);else if(typeof l!="object")return l;if(!c)return null;const u=VI(r.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(p=>{const g=bB(c[p],r);if(g!=null)if(typeof g=="object")if(s[p])h=ju(h,t(p,g,r,s));else{const m=Di({theme:r},g,b=>({[p]:b}));vB(m,g)?h[p]=e({sx:g,theme:r}):h=ju(h,m)}else h=ju(h,t(p,g,r,s))}),BI(d,h)}return Array.isArray(i)?i.map(a):a(i)}return e}const WI=yB();WI.filterProps=["sx"];const Bg=WI,xB=["breakpoints","palette","spacing","shape"];function Hg(t={},...e){const{breakpoints:n={},palette:o={},spacing:i,shape:r={}}=t,s=ce(t,xB),a=R5(n),l=N5(i);let c=Un({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},o),spacing:l,shape:S({},O5,r)},s);return c=e.reduce((u,d)=>Un(u,d),c),c.unstable_sxConfig=S({},Vg,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Bg({sx:d,theme:this})},c}function wB(t){return Object.keys(t).length===0}function Wg(t=null){const e=x.useContext(ph);return!e||wB(e)?t:e}const CB=Hg();function Fc(t=CB){return Wg(t)}function SB({styles:t,themeId:e,defaultTheme:n={}}){const o=Fc(n),i=typeof t=="function"?t(e&&o[e]||o):t;return f.jsx(k5,{styles:i})}const kB=["sx"],PB=t=>{var e,n;const o={systemProps:{},otherProps:{}},i=(e=t==null||(n=t.theme)==null?void 0:n.unstable_sxConfig)!=null?e:Vg;return Object.keys(t).forEach(r=>{i[r]?o.systemProps[r]=t[r]:o.otherProps[r]=t[r]}),o};function Aw(t){const{sx:e}=t,n=ce(t,kB),{systemProps:o,otherProps:i}=PB(n);let r;return Array.isArray(e)?r=[o,...e]:typeof e=="function"?r=(...s)=>{const a=e(...s);return br(a)?S({},o,a):o}:r=S({},o,e),S({},i,{sx:r})}const MB=["className","component"];function _B(t={}){const{themeId:e,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=t,r=zI("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Bg);return x.forwardRef(function(l,c){const u=Fc(n),d=Aw(l),{className:h,component:p="div"}=d,g=ce(d,MB);return f.jsx(r,S({as:p,ref:c,className:me(h,i?i(o):o),theme:e&&u[e]||u},g))})}const RB=["variant"];function Ik(t){return t.length===0}function UI(t){const{variant:e}=t,n=ce(t,RB);let o=e||"";return Object.keys(n).sort().forEach(i=>{i==="color"?o+=Ik(o)?t[i]:le(t[i]):o+=`${Ik(o)?i:le(i)}${le(t[i].toString())}`}),o}const TB=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function OB(t){return Object.keys(t).length===0}function IB(t){return typeof t=="string"&&t.charCodeAt(0)>96}const EB=(t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null,om=t=>{let e=0;const n={};return t&&t.forEach(o=>{let i="";typeof o.props=="function"?(i=`callback${e}`,e+=1):i=UI(o.props),n[i]=o.style}),n},DB=(t,e)=>{let n=[];return e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants),om(n)},im=(t,e,n)=>{const{ownerState:o={}}=t,i=[];let r=0;return n&&n.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=S({},t,o);a=s.props(l)}else Object.keys(s.props).forEach(l=>{o[l]!==s.props[l]&&t[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?i.push(e[`callback${r}`]):i.push(e[UI(s.props)])),typeof s.props=="function"&&(r+=1)}),i},$B=(t,e,n,o)=>{var i;const r=n==null||(i=n.components)==null||(i=i[o])==null?void 0:i.variants;return im(t,e,r)};function Lu(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const FB=Hg(),jB=t=>t&&t.charAt(0).toLowerCase()+t.slice(1);function mp({defaultTheme:t,theme:e,themeId:n}){return OB(e)?t:e[n]||e}function LB(t){return t?(e,n)=>n[t]:null}const Ek=({styledArg:t,props:e,defaultTheme:n,themeId:o})=>{const i=t(S({},e,{theme:mp(S({},e,{defaultTheme:n,themeId:o}))}));let r;if(i&&i.variants&&(r=i.variants,delete i.variants),r){const s=im(e,om(r),r);return[i,...s]}return i};function qI(t={}){const{themeId:e,defaultTheme:n=FB,rootShouldForwardProp:o=Lu,slotShouldForwardProp:i=Lu}=t,r=s=>Bg(S({},s,{theme:mp(S({},s,{defaultTheme:n,themeId:e}))}));return r.__mui_systemSx=!0,(s,a={})=>{P5(s,C=>C.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:h=LB(jB(c))}=a,p=ce(a,TB),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let b,v=Lu;c==="Root"||c==="root"?v=o:c?v=i:IB(s)&&(v=void 0);const y=zI(s,S({shouldForwardProp:v,label:b},p)),w=(C,...k)=>{const P=k?k.map(O=>{if(typeof O=="function"&&O.__emotion_real!==O)return I=>Ek({styledArg:O,props:I,defaultTheme:n,themeId:e});if(br(O)){let I=O,$;return O&&O.variants&&($=O.variants,delete I.variants,I=F=>{let E=O;return im(F,om($),$).forEach(j=>{E=Un(E,j)}),E}),I}return O}):[];let M=C;if(br(C)){let O;C&&C.variants&&(O=C.variants,delete M.variants,M=I=>{let $=C;return im(I,om(O),O).forEach(E=>{$=Un($,E)}),$})}else typeof C=="function"&&C.__emotion_real!==C&&(M=O=>Ek({styledArg:C,props:O,defaultTheme:n,themeId:e}));l&&h&&P.push(O=>{const I=mp(S({},O,{defaultTheme:n,themeId:e})),$=EB(l,I);if($){const F={};return Object.entries($).forEach(([E,D])=>{F[E]=typeof D=="function"?D(S({},O,{theme:I})):D}),h(O,F)}return null}),l&&!g&&P.push(O=>{const I=mp(S({},O,{defaultTheme:n,themeId:e}));return $B(O,DB(l,I),I,l)}),m||P.push(r);const _=P.length-k.length;if(Array.isArray(C)&&_>0){const O=new Array(_).fill("");M=[...C,...O],M.raw=[...C.raw,...O]}const R=y(M,...P);return s.muiName&&(R.muiName=s.muiName),R};return y.withConfig&&(w.withConfig=y.withConfig),w}}const AB=qI(),NB=AB;function GI(t){const{theme:e,name:n,props:o}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?o:ww(e.components[n].defaultProps,o)}function KI({props:t,name:e,defaultTheme:n,themeId:o}){let i=Fc(n);return o&&(i=i[o]||i),GI({theme:i,name:e,props:t})}function Nw(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function zB(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,i)=>i<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function _a(t){if(t.type)return t;if(t.charAt(0)==="#")return _a(zB(t));const e=t.indexOf("("),n=t.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ms(9,t));let o=t.substring(e+1,t.length-1),i;if(n==="color"){if(o=o.split(" "),i=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Ms(10,i))}else o=o.split(",");return o=o.map(r=>parseFloat(r)),{type:n,values:o,colorSpace:i}}function Ug(t){const{type:e,colorSpace:n}=t;let{values:o}=t;return e.indexOf("rgb")!==-1?o=o.map((i,r)=>r<3?parseInt(i,10):i):e.indexOf("hsl")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),e.indexOf("color")!==-1?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${e}(${o})`}function VB(t){t=_a(t);const{values:e}=t,n=e[0],o=e[1]/100,i=e[2]/100,r=o*Math.min(i,1-i),s=(c,u=(c+n/30)%12)=>i-r*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),Ug({type:a,values:l})}function Dk(t){t=_a(t);let e=t.type==="hsl"||t.type==="hsla"?_a(VB(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function BB(t,e){const n=Dk(t),o=Dk(e);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Le(t,e){return t=_a(t),e=Nw(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Ug(t)}function sr(t,e){if(t=_a(t),e=Nw(e),t.type.indexOf("hsl")!==-1)t.values[2]*=1-e;else if(t.type.indexOf("rgb")!==-1||t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Ug(t)}function ar(t,e){if(t=_a(t),e=Nw(e),t.type.indexOf("hsl")!==-1)t.values[2]+=(100-t.values[2])*e;else if(t.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Ug(t)}const HB=x.createContext(null),YI=HB;function QI(){return x.useContext(YI)}const WB=typeof Symbol=="function"&&Symbol.for,UB=WB?Symbol.for("mui.nested"):"__THEME_NESTED__";function qB(t,e){return typeof e=="function"?e(t):S({},t,e)}function GB(t){const{children:e,theme:n}=t,o=QI(),i=x.useMemo(()=>{const r=o===null?n:qB(o,n);return r!=null&&(r[UB]=o!==null),r},[n,o]);return f.jsx(YI.Provider,{value:i,children:e})}const $k={};function Fk(t,e,n,o=!1){return x.useMemo(()=>{const i=t&&e[t]||e;if(typeof n=="function"){const r=n(i),s=t?S({},e,{[t]:r}):r;return o?()=>s:s}return t?S({},e,{[t]:n}):S({},e,n)},[t,e,n,o])}function KB(t){const{children:e,theme:n,themeId:o}=t,i=Wg($k),r=QI()||$k,s=Fk(o,i,n),a=Fk(o,r,n,!0);return f.jsx(GB,{theme:a,children:f.jsx(ph.Provider,{value:s,children:e})})}const YB=["component","direction","spacing","divider","children","className","useFlexGap"],QB=Hg(),XB=NB("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function JB(t){return KI({props:t,name:"MuiStack",defaultTheme:QB})}function ZB(t,e){const n=x.Children.toArray(t).filter(Boolean);return n.reduce((o,i,r)=>(o.push(i),r({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],t4=({ownerState:t,theme:e})=>{let n=S({display:"flex",flexDirection:"column"},Di({theme:e},s0({values:t.direction,breakpoints:e.breakpoints.values}),o=>({flexDirection:o})));if(t.spacing){const o=jw(e),i=Object.keys(e.breakpoints.values).reduce((l,c)=>((typeof t.spacing=="object"&&t.spacing[c]!=null||typeof t.direction=="object"&&t.direction[c]!=null)&&(l[c]=!0),l),{}),r=s0({values:t.direction,base:i}),s=s0({values:t.spacing,base:i});typeof r=="object"&&Object.keys(r).forEach((l,c,u)=>{if(!r[l]){const h=c>0?r[u[c-1]]:"column";r[l]=h}}),n=Un(n,Di({theme:e},s,(l,c)=>t.useFlexGap?{gap:Ma(o,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${e4(c?r[c]:t.direction)}`]:Ma(o,l)}}))}return n=I5(e.breakpoints,n),n};function n4(t={}){const{createStyledComponent:e=XB,useThemeProps:n=JB,componentName:o="MuiStack"}=t,i=()=>Oe({root:["root"]},l=>Ie(o,l),{}),r=e(t4);return x.forwardRef(function(l,c){const u=n(l),d=Aw(u),{component:h="div",direction:p="column",spacing:g=0,divider:m,children:b,className:v,useFlexGap:y=!1}=d,w=ce(d,YB),C={direction:p,spacing:g,useFlexGap:y},k=i();return f.jsx(r,S({as:h,ownerState:C,ref:c,className:me(k.root,v)},w,{children:m?ZB(b,m):b}))})}function o4(t,e){return S({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},e)}const i4={black:"#000",white:"#fff"},Pd=i4,r4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},s4=r4,a4={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ja=a4,l4={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Za=l4,c4={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Qc=c4,u4={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},el=u4,d4={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},tl=d4,h4={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},nl=h4,f4=["mode","contrastThreshold","tonalOffset"],jk={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Pd.white,default:Pd.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},a0={text:{primary:Pd.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Pd.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Lk(t,e,n,o){const i=o.light||o,r=o.dark||o*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=ar(t.main,i):e==="dark"&&(t.dark=sr(t.main,r)))}function p4(t="light"){return t==="dark"?{main:el[200],light:el[50],dark:el[400]}:{main:el[700],light:el[400],dark:el[800]}}function m4(t="light"){return t==="dark"?{main:Ja[200],light:Ja[50],dark:Ja[400]}:{main:Ja[500],light:Ja[300],dark:Ja[700]}}function g4(t="light"){return t==="dark"?{main:Za[500],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[400],dark:Za[800]}}function v4(t="light"){return t==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[700],light:tl[500],dark:tl[900]}}function b4(t="light"){return t==="dark"?{main:nl[400],light:nl[300],dark:nl[700]}:{main:nl[800],light:nl[500],dark:nl[900]}}function y4(t="light"){return t==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:"#ed6c02",light:Qc[500],dark:Qc[900]}}function x4(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:o=.2}=t,i=ce(t,f4),r=t.primary||p4(e),s=t.secondary||m4(e),a=t.error||g4(e),l=t.info||v4(e),c=t.success||b4(e),u=t.warning||y4(e);function d(m){return BB(m,a0.text.primary)>=n?a0.text.primary:jk.text.primary}const h=({color:m,name:b,mainShade:v=500,lightShade:y=300,darkShade:w=700})=>{if(m=S({},m),!m.main&&m[v]&&(m.main=m[v]),!m.hasOwnProperty("main"))throw new Error(Ms(11,b?` (${b})`:"",v));if(typeof m.main!="string")throw new Error(Ms(12,b?` (${b})`:"",JSON.stringify(m.main)));return Lk(m,"light",y,o),Lk(m,"dark",w,o),m.contrastText||(m.contrastText=d(m.main)),m},p={dark:a0,light:jk};return Un(S({common:S({},Pd),mode:e,primary:h({color:r,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:s4,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:o},p[e]),i)}const w4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function C4(t){return Math.round(t*1e5)/1e5}const Ak={textTransform:"uppercase"},Nk='"Roboto", "Helvetica", "Arial", sans-serif';function S4(t,e){const n=typeof e=="function"?e(t):e,{fontFamily:o=Nk,fontSize:i=14,fontWeightLight:r=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,h=ce(n,w4),p=i/14,g=d||(v=>`${v/c*p}rem`),m=(v,y,w,C,k)=>S({fontFamily:o,fontWeight:v,fontSize:g(y),lineHeight:w},o===Nk?{letterSpacing:`${C4(C/y)}em`}:{},k,u),b={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,Ak),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,Ak),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un(S({htmlFontSize:c,pxToRem:g,fontFamily:o,fontSize:i,fontWeightLight:r,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},b),h,{clone:!1})}const k4=.2,P4=.14,M4=.12;function Vt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${k4})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${P4})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${M4})`].join(",")}const _4=["none",Vt(0,2,1,-1,0,1,1,0,0,1,3,0),Vt(0,3,1,-2,0,2,2,0,0,1,5,0),Vt(0,3,3,-2,0,3,4,0,0,1,8,0),Vt(0,2,4,-1,0,4,5,0,0,1,10,0),Vt(0,3,5,-1,0,5,8,0,0,1,14,0),Vt(0,3,5,-1,0,6,10,0,0,1,18,0),Vt(0,4,5,-2,0,7,10,1,0,2,16,1),Vt(0,5,5,-3,0,8,10,1,0,3,14,2),Vt(0,5,6,-3,0,9,12,1,0,3,16,2),Vt(0,6,6,-3,0,10,14,1,0,4,18,3),Vt(0,6,7,-4,0,11,15,1,0,4,20,3),Vt(0,7,8,-4,0,12,17,2,0,5,22,4),Vt(0,7,8,-4,0,13,19,2,0,5,24,4),Vt(0,7,9,-4,0,14,21,2,0,5,26,4),Vt(0,8,9,-5,0,15,22,2,0,6,28,5),Vt(0,8,10,-5,0,16,24,2,0,6,30,5),Vt(0,8,11,-5,0,17,26,2,0,6,32,5),Vt(0,9,11,-5,0,18,28,2,0,7,34,6),Vt(0,9,12,-6,0,19,29,2,0,7,36,6),Vt(0,10,13,-6,0,20,31,3,0,8,38,7),Vt(0,10,13,-6,0,21,33,3,0,8,40,7),Vt(0,10,14,-6,0,22,35,3,0,8,42,7),Vt(0,11,14,-7,0,23,36,3,0,9,44,8),Vt(0,11,15,-7,0,24,38,3,0,9,46,8)],R4=_4,T4=["duration","easing","delay"],O4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},XI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zk(t){return`${Math.round(t)}ms`}function I4(t){if(!t)return 0;const e=t/36;return Math.round((4+15*e**.25+e/5)*10)}function E4(t){const e=S({},O4,t.easing),n=S({},XI,t.duration);return S({getAutoHeightDuration:I4,create:(i=["all"],r={})=>{const{duration:s=n.standard,easing:a=e.easeInOut,delay:l=0}=r;return ce(r,T4),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:zk(s)} ${a} ${typeof l=="string"?l:zk(l)}`).join(",")}},t,{easing:e,duration:n})}const D4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$4=D4,F4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zw(t={},...e){const{mixins:n={},palette:o={},transitions:i={},typography:r={}}=t,s=ce(t,F4);if(t.vars)throw new Error(Ms(18));const a=x4(o),l=Hg(t);let c=Un(l,{mixins:o4(l.breakpoints,n),palette:a,shadows:R4.slice(),typography:S4(a,r),transitions:E4(i),zIndex:S({},$4)});return c=Un(c,s),c=e.reduce((u,d)=>Un(u,d),c),c.unstable_sxConfig=S({},Vg,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return Bg({sx:d,theme:this})},c}const j4=zw(),qg=j4,Ra="$$material",Yn=t=>Lu(t)&&t!=="classes",Vw=Lu,L4=qI({themeId:Ra,defaultTheme:qg,rootShouldForwardProp:Yn}),q=L4,A4=t=>{let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,(e/100).toFixed(2)},Vk=A4;function Pe({props:t,name:e}){return KI({props:t,name:e,defaultTheme:qg,themeId:Ra})}function Dt(){const t=Fc(qg);return t[Ra]||t}function N4(t){return Ie("MuiPaper",t)}Te("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const z4=["className","component","elevation","square","variant"],V4=t=>{const{square:e,elevation:n,variant:o,classes:i}=t,r={root:["root",o,!e&&"rounded",o==="elevation"&&`elevation${n}`]};return Oe(r,N4,i)},B4=q("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(({theme:t,ownerState:e})=>{var n;return S({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},e.variant==="elevation"&&S({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Le("#fff",Vk(e.elevation))}, ${Le("#fff",Vk(e.elevation))})`},t.vars&&{backgroundImage:(n=t.vars.overlays)==null?void 0:n[e.elevation]}))}),H4=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPaper"}),{className:i,component:r="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,c=ce(o,z4),u=S({},o,{component:r,elevation:s,square:a,variant:l}),d=V4(u);return f.jsx(B4,S({as:r,ownerState:u,className:me(d.root,i),ref:n},c))}),js=H4;function W4(t){return Ie("MuiTableContainer",t)}Te("MuiTableContainer",["root"]);const U4=["className","component"],q4=t=>{const{classes:e}=t;return Oe({root:["root"]},W4,e)},G4=q("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),K4=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableContainer"}),{className:i,component:r="div"}=o,s=ce(o,U4),a=S({},o,{component:r}),l=q4(a);return f.jsx(G4,S({ref:n,as:r,className:me(l.root,i),ownerState:a},s))}),Y4=K4,Q4=x.createContext(),JI=Q4;function X4(t){return Ie("MuiTable",t)}Te("MuiTable",["root","stickyHeader"]);const J4=["className","component","padding","size","stickyHeader"],Z4=t=>{const{classes:e,stickyHeader:n}=t;return Oe({root:["root",n&&"stickyHeader"]},X4,e)},e3=q("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(({theme:t,ownerState:e})=>S({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":S({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},e.stickyHeader&&{borderCollapse:"separate"})),Bk="table",t3=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTable"}),{className:i,component:r=Bk,padding:s="normal",size:a="medium",stickyHeader:l=!1}=o,c=ce(o,J4),u=S({},o,{component:r,padding:s,size:a,stickyHeader:l}),d=Z4(u),h=x.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return f.jsx(JI.Provider,{value:h,children:f.jsx(e3,S({as:r,role:r===Bk?null:"table",ref:n,className:me(d.root,i),ownerState:u},c))})}),n3=t3,o3=x.createContext(),gh=o3;function i3(t){return Ie("MuiTableBody",t)}Te("MuiTableBody",["root"]);const r3=["className","component"],s3=t=>{const{classes:e}=t;return Oe({root:["root"]},i3,e)},a3=q("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),l3={variant:"body"},Hk="tbody",c3=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableBody"}),{className:i,component:r=Hk}=o,s=ce(o,r3),a=S({},o,{component:r}),l=s3(a);return f.jsx(gh.Provider,{value:l3,children:f.jsx(a3,S({className:me(l.root,i),as:r,ref:n,role:r===Hk?null:"rowgroup",ownerState:a},s))})}),ef=c3;function u3(t){return Ie("MuiTypography",t)}Te("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const d3=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h3=t=>{const{align:e,gutterBottom:n,noWrap:o,paragraph:i,variant:r,classes:s}=t,a={root:["root",r,t.align!=="inherit"&&`align${le(e)}`,n&&"gutterBottom",o&&"noWrap",i&&"paragraph"]};return Oe(a,u3,s)},f3=q("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${le(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>S({margin:0},e.variant==="inherit"&&{font:"inherit"},e.variant!=="inherit"&&t.typography[e.variant],e.align!=="inherit"&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),Wk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},p3={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},m3=t=>p3[t]||t,g3=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTypography"}),i=m3(o.color),r=Aw(S({},o,{color:i})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:h="body1",variantMapping:p=Wk}=r,g=ce(r,d3),m=S({},r,{align:s,color:i,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:h,variantMapping:p}),b=l||(d?"p":p[h]||Wk[h])||"span",v=h3(m);return f.jsx(f3,S({as:b,ref:n,ownerState:m,className:me(v.root,a)},g))}),An=g3;function v3(t){return Ie("MuiTableRow",t)}const b3=Te("MuiTableRow",["root","selected","hover","head","footer"]),Uk=b3,y3=["className","component","hover","selected"],x3=t=>{const{classes:e,selected:n,hover:o,head:i,footer:r}=t;return Oe({root:["root",n&&"selected",o&&"hover",i&&"head",r&&"footer"]},v3,e)},w3=q("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Uk.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Uk.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Le(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),qk="tr",C3=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableRow"}),{className:i,component:r=qk,hover:s=!1,selected:a=!1}=o,l=ce(o,y3),c=x.useContext(gh),u=S({},o,{component:r,hover:s,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=x3(u);return f.jsx(w3,S({as:r,ref:n,className:me(d.root,i),role:r===qk?null:"row",ownerState:u},l))}),Gg=C3;function S3(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function k3(t){return parseFloat(t)}const P3=["theme"];function M3(t){let{theme:e}=t,n=ce(t,P3);const o=e[Ra];return f.jsx(KB,S({},n,{themeId:o?Ra:void 0,theme:o||e}))}function _3(t){return Ie("MuiSkeleton",t)}Te("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const R3=["animation","className","component","height","style","variant","width"];let rm=t=>t,Gk,Kk,Yk,Qk;const T3=t=>{const{classes:e,variant:n,animation:o,hasChildren:i,width:r,height:s}=t;return Oe({root:["root",n,o,i&&"withChildren",i&&!r&&"fitContent",i&&!s&&"heightAuto"]},_3,e)},O3=Fi(Gk||(Gk=rm` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`)),I3=Fi(Kk||(Kk=rm` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`)),E3=q("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.animation!==!1&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})(({theme:t,ownerState:e})=>{const n=S3(t.shape.borderRadius)||"px",o=k3(t.shape.borderRadius);return S({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Le(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},e.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${o}${n}/${Math.round(o/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},e.variant==="circular"&&{borderRadius:"50%"},e.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},e.hasChildren&&{"& > *":{visibility:"hidden"}},e.hasChildren&&!e.width&&{maxWidth:"fit-content"},e.hasChildren&&!e.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&rr(Yk||(Yk=rm` + animation: ${0} 2s ease-in-out 0.5s infinite; + `),O3),({ownerState:t,theme:e})=>t.animation==="wave"&&rr(Qk||(Qk=rm` + position: relative; + overflow: hidden; + + /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ + -webkit-mask-image: -webkit-radial-gradient(white, black); + + &::after { + animation: ${0} 2s linear 0.5s infinite; + background: linear-gradient( + 90deg, + transparent, + ${0}, + transparent + ); + content: ''; + position: absolute; + transform: translateX(-100%); /* Avoid flash during server-side hydration */ + bottom: 0; + left: 0; + right: 0; + top: 0; + } + `),I3,(e.vars||e).palette.action.hover)),D3=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiSkeleton"}),{animation:i="pulse",className:r,component:s="span",height:a,style:l,variant:c="text",width:u}=o,d=ce(o,R3),h=S({},o,{animation:i,component:s,variant:c,hasChildren:!!d.children}),p=T3(h);return f.jsx(E3,S({as:s,ref:n,className:me(p.root,r),ownerState:h},d,{style:S({width:u,height:a},l)}))}),$3=D3;function F3(t){return Ie("MuiTableCell",t)}const j3=Te("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),L3=j3,A3=["align","className","component","padding","scope","size","sortDirection","variant"],N3=t=>{const{classes:e,variant:n,align:o,padding:i,size:r,stickyHeader:s}=t,a={root:["root",n,s&&"stickyHeader",o!=="inherit"&&`align${le(o)}`,i!=="normal"&&`padding${le(i)}`,`size${le(r)}`]};return Oe(a,F3,e)},z3=q("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${le(n.size)}`],n.padding!=="normal"&&e[`padding${le(n.padding)}`],n.align!=="inherit"&&e[`align${le(n.align)}`],n.stickyHeader&&e.stickyHeader]}})(({theme:t,ownerState:e})=>S({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid + ${t.palette.mode==="light"?ar(Le(t.palette.divider,1),.88):sr(Le(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},e.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},e.variant==="body"&&{color:(t.vars||t).palette.text.primary},e.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},e.size==="small"&&{padding:"6px 16px",[`&.${L3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},e.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},e.padding==="none"&&{padding:0},e.align==="left"&&{textAlign:"left"},e.align==="center"&&{textAlign:"center"},e.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},e.align==="justify"&&{textAlign:"justify"},e.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),V3=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableCell"}),{align:i="inherit",className:r,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d}=o,h=ce(o,A3),p=x.useContext(JI),g=x.useContext(gh),m=g&&g.variant==="head";let b;s?b=s:b=m?"th":"td";let v=l;b==="td"?v=void 0:!v&&m&&(v="col");const y=d||g&&g.variant,w=S({},o,{align:i,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&p&&p.stickyHeader,variant:y}),C=N3(w);let k=null;return u&&(k=u==="asc"?"ascending":"descending"),f.jsx(z3,S({as:b,ref:n,className:me(C.root,r),"aria-sort":k,scope:v,ownerState:w},h))}),Kg=V3,B3=Te("MuiBox",["root"]),H3=B3,W3=zw(),U3=_B({themeId:Ra,defaultTheme:W3,defaultClassName:H3.root,generateClassName:Cw.generate}),Xe=U3;/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function as(t,e){return typeof t=="function"?t(e):t}function zo(t,e){return n=>{e.setState(o=>({...o,[t]:as(n,o[t])}))}}function sm(t){return t instanceof Function}function q3(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function ZI(t,e){const n=[],o=i=>{i.forEach(r=>{n.push(r);const s=e(r);s!=null&&s.length&&o(s)})};return o(t),n}function Ye(t,e,n){let o=[],i;return()=>{let r;n.key&&n.debug&&(r=Date.now());const s=t();if(!(s.length!==o.length||s.some((c,u)=>o[u]!==c)))return i;o=s;let l;if(n.key&&n.debug&&(l=Date.now()),i=e(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-r)*100)/100,u=Math.round((Date.now()-l)*100)/100,d=u/16,h=(p,g)=>{for(p=String(p);p.length{let p=h;for(const m of l.split(".")){var g;p=(g=p)==null?void 0:g[m]}return p}:u=h=>h[a.accessorKey]),!c)throw new Error;let d={id:`${String(c)}`,accessorFn:u,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:Ye(()=>[!0],()=>{var h;return[d,...(h=d.columns)==null?void 0:h.flatMap(p=>p.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns}}),getLeafColumns:Ye(()=>[t._getOrderColumnsFn()],h=>{var p;if((p=d.columns)!=null&&p.length){let g=d.columns.flatMap(m=>m.getLeafColumns());return h(g)}return[d]},{key:"column.getLeafColumns",debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns}})};for(const h of t._features)h.createColumn==null||h.createColumn(d,t);return d}function Xk(t,e,n){var o;let r={id:(o=n.id)!=null?o:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(r),s},getContext:()=>({table:t,header:r,column:e})};return t._features.forEach(s=>{s.createHeader==null||s.createHeader(r,t)}),r}const K3={createTable:t=>{t.getHeaderGroups=Ye(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,o,i)=>{var r,s;const a=(r=o==null?void 0:o.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?r:[],l=(s=i==null?void 0:i.map(d=>n.find(h=>h.id===d)).filter(Boolean))!=null?s:[],c=n.filter(d=>!(o!=null&&o.includes(d.id))&&!(i!=null&&i.includes(d.id)));return tf(e,[...a,...c,...l],t)},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getCenterHeaderGroups=Ye(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,o,i)=>(n=n.filter(r=>!(o!=null&&o.includes(r.id))&&!(i!=null&&i.includes(r.id))),tf(e,n,t,"center")),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getLeftHeaderGroups=Ye(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,o)=>{var i;const r=(i=o==null?void 0:o.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?i:[];return tf(e,r,t,"left")},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getRightHeaderGroups=Ye(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,o)=>{var i;const r=(i=o==null?void 0:o.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?i:[];return tf(e,r,t,"right")},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getFooterGroups=Ye(()=>[t.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getLeftFooterGroups=Ye(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getCenterFooterGroups=Ye(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getRightFooterGroups=Ye(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getFlatHeaders=Ye(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getLeftFlatHeaders=Ye(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getCenterFlatHeaders=Ye(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getRightFlatHeaders=Ye(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getCenterLeafHeaders=Ye(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getLeftLeafHeaders=Ye(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getRightLeafHeaders=Ye(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}}),t.getLeafHeaders=Ye(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,n,o)=>{var i,r,s,a,l,c;return[...(i=(r=e[0])==null?void 0:r.headers)!=null?i:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(c=o[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugHeaders}})}};function tf(t,e,n,o){var i,r;let s=0;const a=function(h,p){p===void 0&&(p=1),s=Math.max(s,p),h.filter(g=>g.getIsVisible()).forEach(g=>{var m;(m=g.columns)!=null&&m.length&&a(g.columns,p+1)},0)};a(t);let l=[];const c=(h,p)=>{const g={depth:p,id:[o,`${p}`].filter(Boolean).join("_"),headers:[]},m=[];h.forEach(b=>{const v=[...m].reverse()[0],y=b.column.depth===g.depth;let w,C=!1;if(y&&b.column.parent?w=b.column.parent:(w=b.column,C=!0),v&&(v==null?void 0:v.column)===w)v.subHeaders.push(b);else{const k=Xk(n,w,{id:[o,p,w.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${m.filter(P=>P.column===w).length}`:void 0,depth:p,index:m.length});k.subHeaders.push(b),m.push(k)}g.headers.push(b),b.headerGroup=g}),l.push(g),p>0&&c(m,p-1)},u=e.map((h,p)=>Xk(n,h,{depth:s,index:p}));c(u,s-1),l.reverse();const d=h=>h.filter(g=>g.column.getIsVisible()).map(g=>{let m=0,b=0,v=[0];g.subHeaders&&g.subHeaders.length?(v=[],d(g.subHeaders).forEach(w=>{let{colSpan:C,rowSpan:k}=w;m+=C,v.push(k)})):m=1;const y=Math.min(...v);return b=b+y,g.colSpan=m,g.rowSpan=b,{colSpan:m,rowSpan:b}});return d((i=(r=l[0])==null?void 0:r.headers)!=null?i:[]),l}const nf={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},l0=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Y3={getDefaultColumnDef:()=>nf,getInitialState:t=>({columnSizing:{},columnSizingInfo:l0(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:zo("columnSizing",t),onColumnSizingInfoChange:zo("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,o,i;const r=e.getState().columnSizing[t.id];return Math.min(Math.max((n=t.columnDef.minSize)!=null?n:nf.minSize,(o=r??t.columnDef.size)!=null?o:nf.size),(i=t.columnDef.maxSize)!=null?i:nf.maxSize)},t.getStart=n=>{const o=n?n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns(),i=o.findIndex(r=>r.id===t.id);if(i>0){const r=o[i-1];return r.getStart(n)+r.getSize()}return 0},t.resetSize=()=>{e.setColumnSizing(n=>{let{[t.id]:o,...i}=n;return i})},t.getCanResize=()=>{var n,o;return((n=t.columnDef.enableResizing)!=null?n:!0)&&((o=e.options.enableColumnResizing)!=null?o:!0)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let n=0;const o=i=>{if(i.subHeaders.length)i.subHeaders.forEach(o);else{var r;n+=(r=i.column.getSize())!=null?r:0}};return o(t),n},t.getStart=()=>{if(t.index>0){const n=t.headerGroup.headers[t.index-1];return n.getStart()+n.getSize()}return 0},t.getResizeHandler=n=>{const o=e.getColumn(t.column.id),i=o==null?void 0:o.getCanResize();return r=>{if(!o||!i||(r.persist==null||r.persist(),c0(r)&&r.touches&&r.touches.length>1))return;const s=t.getSize(),a=t?t.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[o.id,o.getSize()]],l=c0(r)?Math.round(r.touches[0].clientX):r.clientX,c={},u=(v,y)=>{typeof y=="number"&&(e.setColumnSizingInfo(w=>{var C,k;const P=e.options.columnResizeDirection==="rtl"?-1:1,M=(y-((C=w==null?void 0:w.startOffset)!=null?C:0))*P,_=Math.max(M/((k=w==null?void 0:w.startSize)!=null?k:0),-.999999);return w.columnSizingStart.forEach(R=>{let[O,I]=R;c[O]=Math.round(Math.max(I+I*_,0)*100)/100}),{...w,deltaOffset:M,deltaPercentage:_}}),(e.options.columnResizeMode==="onChange"||v==="end")&&e.setColumnSizing(w=>({...w,...c})))},d=v=>u("move",v),h=v=>{u("end",v),e.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||typeof document<"u"?document:null,g={moveHandler:v=>d(v.clientX),upHandler:v=>{p==null||p.removeEventListener("mousemove",g.moveHandler),p==null||p.removeEventListener("mouseup",g.upHandler),h(v.clientX)}},m={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var y;p==null||p.removeEventListener("touchmove",m.moveHandler),p==null||p.removeEventListener("touchend",m.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),h((y=v.touches[0])==null?void 0:y.clientX)}},b=Q3()?{passive:!1}:!1;c0(r)?(p==null||p.addEventListener("touchmove",m.moveHandler,b),p==null||p.addEventListener("touchend",m.upHandler,b)):(p==null||p.addEventListener("mousemove",g.moveHandler,b),p==null||p.addEventListener("mouseup",g.upHandler,b)),e.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id}))}}},createTable:t=>{t.setColumnSizing=e=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:(n=t.initialState.columnSizing)!=null?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?l0():(n=t.initialState.columnSizingInfo)!=null?n:l0())},t.getTotalSize=()=>{var e,n;return(e=(n=t.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,n;return(e=(n=t.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,n;return(e=(n=t.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,n;return(e=(n=t.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0}}};let of=null;function Q3(){if(typeof of=="boolean")return of;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch{t=!1}return of=t,of}function c0(t){return t.type==="touchstart"}const X3={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:zo("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var o,i;if(!e){t._queue(()=>{e=!0});return}if((o=(i=t.options.autoResetAll)!=null?i:t.options.autoResetExpanded)!=null?o:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}},t.setExpanded=o=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(o),t.toggleAllRowsExpanded=o=>{o??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=o=>{var i,r;t.setExpanded(o?{}:(i=(r=t.initialState)==null?void 0:r.expanded)!=null?i:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const o=t.getState().expanded;return o===!0||Object.values(o).some(Boolean)},t.getIsAllRowsExpanded=()=>{const o=t.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||t.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},t.getExpandedDepth=()=>{let o=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(r=>{const s=r.split(".");o=Math.max(o,s.length)}),o},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(o=>{var i;const r=o===!0?!0:!!(o!=null&&o[t.id]);let s={};if(o===!0?Object.keys(e.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=o,n=(i=n)!=null?i:!r,!r&&n)return{...s,[t.id]:!0};if(r&&!n){const{[t.id]:a,...l}=s;return l}return o})},t.getIsExpanded=()=>{var n;const o=e.getState().expanded;return!!((n=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(t))!=null?n:o===!0||o!=null&&o[t.id])},t.getCanExpand=()=>{var n,o,i;return(n=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?n:((o=e.options.enableExpanding)!=null?o:!0)&&!!((i=t.subRows)!=null&&i.length)},t.getIsAllParentsExpanded=()=>{let n=!0,o=t;for(;n&&o.parentId;)o=e.getRow(o.parentId,!0),n=o.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const n=t.getCanExpand();return()=>{n&&t.toggleExpanded()}}}},eE=(t,e,n)=>{var o;const i=n.toLowerCase();return!!(!((o=t.getValue(e))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};eE.autoRemove=t=>Ti(t);const tE=(t,e,n)=>{var o;return!!(!((o=t.getValue(e))==null||(o=o.toString())==null)&&o.includes(n))};tE.autoRemove=t=>Ti(t);const nE=(t,e,n)=>{var o;return((o=t.getValue(e))==null||(o=o.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};nE.autoRemove=t=>Ti(t);const oE=(t,e,n)=>{var o;return(o=t.getValue(e))==null?void 0:o.includes(n)};oE.autoRemove=t=>Ti(t)||!(t!=null&&t.length);const iE=(t,e,n)=>!n.some(o=>{var i;return!((i=t.getValue(e))!=null&&i.includes(o))});iE.autoRemove=t=>Ti(t)||!(t!=null&&t.length);const rE=(t,e,n)=>n.some(o=>{var i;return(i=t.getValue(e))==null?void 0:i.includes(o)});rE.autoRemove=t=>Ti(t)||!(t!=null&&t.length);const sE=(t,e,n)=>t.getValue(e)===n;sE.autoRemove=t=>Ti(t);const aE=(t,e,n)=>t.getValue(e)==n;aE.autoRemove=t=>Ti(t);const Bw=(t,e,n)=>{let[o,i]=n;const r=t.getValue(e);return r>=o&&r<=i};Bw.resolveFilterValue=t=>{let[e,n]=t,o=typeof e!="number"?parseFloat(e):e,i=typeof n!="number"?parseFloat(n):n,r=e===null||Number.isNaN(o)?-1/0:o,s=n===null||Number.isNaN(i)?1/0:i;if(r>s){const a=r;r=s,s=a}return[r,s]};Bw.autoRemove=t=>Ti(t)||Ti(t[0])&&Ti(t[1]);const Ai={includesString:eE,includesStringSensitive:tE,equalsString:nE,arrIncludes:oE,arrIncludesAll:iE,arrIncludesSome:rE,equals:sE,weakEquals:aE,inNumberRange:Bw};function Ti(t){return t==null||t===""}const J3={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],globalFilter:void 0,...t}),getDefaultOptions:t=>({onColumnFiltersChange:zo("columnFilters",t),onGlobalFilterChange:zo("globalFilter",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const o=(n=t.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[e.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(t.id);return typeof o=="string"?Ai.includesString:typeof o=="number"?Ai.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Ai.equals:Array.isArray(o)?Ai.arrIncludes:Ai.weakEquals},t.getFilterFn=()=>{var n,o;return sm(t.columnDef.filterFn)?t.columnDef.filterFn:t.columnDef.filterFn==="auto"?t.getAutoFilterFn():(n=(o=e.options.filterFns)==null?void 0:o[t.columnDef.filterFn])!=null?n:Ai[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,o,i;return((n=t.columnDef.enableColumnFilter)!=null?n:!0)&&((o=e.options.enableColumnFilters)!=null?o:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&!!t.accessorFn},t.getCanGlobalFilter=()=>{var n,o,i,r;return((n=t.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=e.options.enableGlobalFilter)!=null?o:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&((r=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?r:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return(n=e.getState().columnFilters)==null||(n=n.find(o=>o.id===t.id))==null?void 0:n.value},t.getFilterIndex=()=>{var n,o;return(n=(o=e.getState().columnFilters)==null?void 0:o.findIndex(i=>i.id===t.id))!=null?n:-1},t.setFilterValue=n=>{e.setColumnFilters(o=>{const i=t.getFilterFn(),r=o==null?void 0:o.find(u=>u.id===t.id),s=as(n,r?r.value:void 0);if(Jk(i,s,t)){var a;return(a=o==null?void 0:o.filter(u=>u.id!==t.id))!=null?a:[]}const l={id:t.id,value:s};if(r){var c;return(c=o==null?void 0:o.map(u=>u.id===t.id?l:u))!=null?c:[]}return o!=null&&o.length?[...o,l]:[l]})},t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.getGlobalAutoFilterFn=()=>Ai.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:o}=t.options;return sm(o)?o:o==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[o])!=null?e:Ai[o]},t.setColumnFilters=e=>{const n=t.getAllLeafColumns(),o=i=>{var r;return(r=as(e,i))==null?void 0:r.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Jk(l,s.value,a))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(o)},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)},t.resetColumnFilters=e=>{var n,o;t.setColumnFilters(e?[]:(n=(o=t.initialState)==null?void 0:o.columnFilters)!=null?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel()),t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}};function Jk(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const Z3=(t,e,n)=>n.reduce((o,i)=>{const r=i.getValue(t);return o+(typeof r=="number"?r:0)},0),eH=(t,e,n)=>{let o;return n.forEach(i=>{const r=i.getValue(t);r!=null&&(o>r||o===void 0&&r>=r)&&(o=r)}),o},tH=(t,e,n)=>{let o;return n.forEach(i=>{const r=i.getValue(t);r!=null&&(o=r)&&(o=r)}),o},nH=(t,e,n)=>{let o,i;return n.forEach(r=>{const s=r.getValue(t);s!=null&&(o===void 0?s>=s&&(o=i=s):(o>s&&(o=s),i{let n=0,o=0;if(e.forEach(i=>{let r=i.getValue(t);r!=null&&(r=+r)>=r&&(++n,o+=r)}),n)return o/n},iH=(t,e)=>{if(!e.length)return;const n=e.map(r=>r.getValue(t));if(!q3(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),i=n.sort((r,s)=>r-s);return n.length%2!==0?i[o]:(i[o-1]+i[o])/2},rH=(t,e)=>Array.from(new Set(e.map(n=>n.getValue(t))).values()),sH=(t,e)=>new Set(e.map(n=>n.getValue(t))).size,aH=(t,e)=>e.length,gp={sum:Z3,min:eH,max:tH,extent:nH,mean:oH,median:iH,unique:rH,uniqueCount:sH,count:aH},lH={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return(e=(n=t.getValue())==null||n.toString==null?void 0:n.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:zo("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(n=>n!=null&&n.includes(t.id)?n.filter(o=>o!==t.id):[...n??[],t.id])},t.getCanGroup=()=>{var n,o,i,r;return(n=(o=(i=(r=t.columnDef.enableGrouping)!=null?r:!0)!=null?i:e.options.enableGrouping)!=null?o:!0)!=null?n:!!t.accessorFn},t.getIsGrouped=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const n=t.getCanGroup();return()=>{n&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(t.id);if(typeof o=="number")return gp.sum;if(Object.prototype.toString.call(o)==="[object Date]")return gp.extent},t.getAggregationFn=()=>{var n,o;if(!t)throw new Error;return sm(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:t.columnDef.aggregationFn==="auto"?t.getAutoAggregationFn():(n=(o=e.options.aggregationFns)==null?void 0:o[t.columnDef.aggregationFn])!=null?n:gp[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,o;t.setGrouping(e?[]:(n=(o=t.initialState)==null?void 0:o.grouping)!=null?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const o=e.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(t._groupingValuesCache[n]=o.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,o)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var i;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function cH(t,e,n){if(!(e!=null&&e.length)||!n)return t;const o=t.filter(r=>!e.includes(r.id));return n==="remove"?o:[...e.map(r=>t.find(s=>s.id===r)).filter(Boolean),...o]}const uH={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:zo("columnOrder",t)}),createTable:t=>{t.setColumnOrder=e=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:(n=t.initialState.columnOrder)!=null?n:[])},t._getOrderColumnsFn=Ye(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,n,o)=>i=>{let r=[];if(!(e!=null&&e.length))r=i;else{const s=[...e],a=[...i];for(;a.length&&s.length;){const l=s.shift(),c=a.findIndex(u=>u.id===l);c>-1&&r.push(a.splice(c,1)[0])}r=[...r,...a]}return cH(r,n,o)},{key:!1})}},xy=0,wy=10,u0=()=>({pageIndex:xy,pageSize:wy}),dH={getInitialState:t=>({...t,pagination:{...u0(),...t==null?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:zo("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var o,i;if(!e){t._queue(()=>{e=!0});return}if((o=(i=t.options.autoResetAll)!=null?i:t.options.autoResetPageIndex)!=null?o:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}},t.setPagination=o=>{const i=r=>as(o,r);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(i)},t.resetPagination=o=>{var i;t.setPagination(o?u0():(i=t.initialState.pagination)!=null?i:u0())},t.setPageIndex=o=>{t.setPagination(i=>{let r=as(o,i.pageIndex);const s=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return r=Math.max(0,Math.min(r,s)),{...i,pageIndex:r}})},t.resetPageIndex=o=>{var i,r;t.setPageIndex(o?xy:(i=(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.pageIndex)!=null?i:xy)},t.resetPageSize=o=>{var i,r;t.setPageSize(o?wy:(i=(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.pageSize)!=null?i:wy)},t.setPageSize=o=>{t.setPagination(i=>{const r=Math.max(1,as(o,i.pageSize)),s=i.pageSize*i.pageIndex,a=Math.floor(s/r);return{...i,pageIndex:a,pageSize:r}})},t.setPageCount=o=>t.setPagination(i=>{var r;let s=as(o,(r=t.options.pageCount)!=null?r:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...i,pageCount:s}}),t.getPageOptions=Ye(()=>[t.getPageCount()],o=>{let i=[];return o&&o>0&&(i=[...new Array(o)].fill(null).map((r,s)=>s)),i},{key:!1,debug:()=>{var o;return(o=t.options.debugAll)!=null?o:t.options.debugTable}}),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:o}=t.getState().pagination,i=t.getPageCount();return i===-1?!0:i===0?!1:ot.setPageIndex(o=>o-1),t.nextPage=()=>t.setPageIndex(o=>o+1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var o;return(o=t.options.pageCount)!=null?o:Math.ceil(t.getPrePaginationRowModel().rows.length/t.getState().pagination.pageSize)}}},d0=()=>({left:[],right:[]}),h0=()=>({top:[],bottom:[]}),hH={getInitialState:t=>({columnPinning:d0(),rowPinning:h0(),...t}),getDefaultOptions:t=>({onColumnPinningChange:zo("columnPinning",t),onRowPinningChange:zo("rowPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const o=t.getLeafColumns().map(i=>i.id).filter(Boolean);e.setColumnPinning(i=>{var r,s;if(n==="right"){var a,l;return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(d=>!(o!=null&&o.includes(d))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(d=>!(o!=null&&o.includes(d))),...o]}}if(n==="left"){var c,u;return{left:[...((c=i==null?void 0:i.left)!=null?c:[]).filter(d=>!(o!=null&&o.includes(d))),...o],right:((u=i==null?void 0:i.right)!=null?u:[]).filter(d=>!(o!=null&&o.includes(d)))}}return{left:((r=i==null?void 0:i.left)!=null?r:[]).filter(d=>!(o!=null&&o.includes(d))),right:((s=i==null?void 0:i.right)!=null?s:[]).filter(d=>!(o!=null&&o.includes(d)))}})},t.getCanPin=()=>t.getLeafColumns().some(o=>{var i,r,s;return((i=o.columnDef.enablePinning)!=null?i:!0)&&((r=(s=e.options.enableColumnPinning)!=null?s:e.options.enablePinning)!=null?r:!0)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(a=>a.id),{left:o,right:i}=e.getState().columnPinning,r=n.some(a=>o==null?void 0:o.includes(a)),s=n.some(a=>i==null?void 0:i.includes(a));return r?"left":s?"right":!1},t.getPinnedIndex=()=>{var n,o;const i=t.getIsPinned();return i?(n=(o=e.getState().columnPinning)==null||(o=o[i])==null?void 0:o.indexOf(t.id))!=null?n:-1:0}},createRow:(t,e)=>{t.pin=(n,o,i)=>{const r=o?t.getLeafRows().map(l=>{let{id:c}=l;return c}):[],s=i?t.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...s,t.id,...r]);e.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,h;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(a!=null&&a.has(m))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(m=>!(a!=null&&a.has(m))),...Array.from(a)]}}if(n==="top"){var p,g;return{top:[...((p=l==null?void 0:l.top)!=null?p:[]).filter(m=>!(a!=null&&a.has(m))),...Array.from(a)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(m=>!(a!=null&&a.has(m)))}}return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(m=>!(a!=null&&a.has(m))),bottom:((u=l==null?void 0:l.bottom)!=null?u:[]).filter(m=>!(a!=null&&a.has(m)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:i}=e.options;return typeof o=="function"?o(t):(n=o??i)!=null?n:!0},t.getIsPinned=()=>{const n=[t.id],{top:o,bottom:i}=e.getState().rowPinning,r=n.some(a=>o==null?void 0:o.includes(a)),s=n.some(a=>i==null?void 0:i.includes(a));return r?"top":s?"bottom":!1},t.getPinnedIndex=()=>{var n,o;const i=t.getIsPinned();if(!i)return-1;const r=(n=e._getPinnedRows(i))==null?void 0:n.map(s=>{let{id:a}=s;return a});return(o=r==null?void 0:r.indexOf(t.id))!=null?o:-1},t.getCenterVisibleCells=Ye(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,o,i)=>{const r=[...o??[],...i??[]];return n.filter(s=>!r.includes(s.column.id))},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}}),t.getLeftVisibleCells=Ye(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,,],(n,o)=>(o??[]).map(r=>n.find(s=>s.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}}),t.getRightVisibleCells=Ye(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(n,o)=>(o??[]).map(r=>n.find(s=>s.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})},createTable:t=>{t.setColumnPinning=e=>t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,o;return t.setColumnPinning(e?d0():(n=(o=t.initialState)==null?void 0:o.columnPinning)!=null?n:d0())},t.getIsSomeColumnsPinned=e=>{var n;const o=t.getState().columnPinning;if(!e){var i,r;return!!((i=o.left)!=null&&i.length||(r=o.right)!=null&&r.length)}return!!((n=o[e])!=null&&n.length)},t.getLeftLeafColumns=Ye(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(o=>e.find(i=>i.id===o)).filter(Boolean),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugColumns}}),t.getRightLeafColumns=Ye(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(o=>e.find(i=>i.id===o)).filter(Boolean),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugColumns}}),t.getCenterLeafColumns=Ye(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,o)=>{const i=[...n??[],...o??[]];return e.filter(r=>!i.includes(r.id))},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugColumns}}),t.setRowPinning=e=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,o;return t.setRowPinning(e?h0():(n=(o=t.initialState)==null?void 0:o.rowPinning)!=null?n:h0())},t.getIsSomeRowsPinned=e=>{var n;const o=t.getState().rowPinning;if(!e){var i,r;return!!((i=o.top)!=null&&i.length||(r=o.bottom)!=null&&r.length)}return!!((n=o[e])!=null&&n.length)},t._getPinnedRows=e=>Ye(()=>[t.getRowModel().rows,t.getState().rowPinning[e]],(n,o)=>{var i;return((i=t.options.keepPinnedRows)==null||i?(o??[]).map(s=>{const a=t.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(o??[]).map(s=>n.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:e}))},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})(),t.getTopRows=()=>t._getPinnedRows("top"),t.getBottomRows=()=>t._getPinnedRows("bottom"),t.getCenterRows=Ye(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,n,o)=>{const i=new Set([...n??[],...o??[]]);return e.filter(r=>!i.has(r.id))},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugRows}})}},fH={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:zo("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:(n=t.initialState.rowSelection)!=null?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=typeof e<"u"?e:!t.getIsAllRowsSelected();const o={...n},i=t.getPreGroupedRowModel().flatRows;return e?i.forEach(r=>{r.getCanSelect()&&(o[r.id]=!0)}):i.forEach(r=>{delete o[r.id]}),o})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const o=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),i={...n};return t.getRowModel().rows.forEach(r=>{Cy(i,r.id,o,!0,t)}),i}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=Ye(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?f0(t,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable}}),t.getFilteredSelectedRowModel=Ye(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?f0(t,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable}}),t.getGroupedSelectedRowModel=Ye(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?f0(t,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable}}),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let o=!!(e.length&&Object.keys(n).length);return o&&e.some(i=>i.getCanSelect()&&!n[i.id])&&(o=!1),o},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=t.getState();let o=!!e.length;return o&&e.some(i=>!n[i.id])&&(o=!1),o},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys((e=t.getState().rowSelection)!=null?e:{}).length;return n>0&&n{const e=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:e.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,o)=>{const i=t.getIsSelected();e.setRowSelection(r=>{var s;if(n=typeof n<"u"?n:!i,t.getCanSelect()&&i===n)return r;const a={...r};return Cy(a,t.id,n,(s=o==null?void 0:o.selectChildren)!=null?s:!0,e),a})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return Hw(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return Sy(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return Sy(t,n)==="all"},t.getCanSelect=()=>{var n;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(t):(n=e.options.enableRowSelection)!=null?n:!0},t.getCanSelectSubRows=()=>{var n;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(t):(n=e.options.enableSubRowSelection)!=null?n:!0},t.getCanMultiSelect=()=>{var n;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(t):(n=e.options.enableMultiRowSelection)!=null?n:!0},t.getToggleSelectedHandler=()=>{const n=t.getCanSelect();return o=>{var i;n&&t.toggleSelected((i=o.target)==null?void 0:i.checked)}}}},Cy=(t,e,n,o,i)=>{var r;const s=i.getRow(e,!0);n?(s.getCanMultiSelect()||Object.keys(t).forEach(a=>delete t[a]),s.getCanSelect()&&(t[e]=!0)):delete t[e],o&&(r=s.subRows)!=null&&r.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Cy(t,a.id,n,o,i))};function f0(t,e){const n=t.getState().rowSelection,o=[],i={},r=function(s,a){return s.map(l=>{var c;const u=Hw(l,n);if(u&&(o.push(l),i[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:r(l.subRows)}),u)return l}).filter(Boolean)};return{rows:r(e.rows),flatRows:o,rowsById:i}}function Hw(t,e){var n;return(n=e[t.id])!=null?n:!1}function Sy(t,e,n){var o;if(!((o=t.subRows)!=null&&o.length))return!1;let i=!0,r=!1;return t.subRows.forEach(s=>{if(!(r&&!i)&&(s.getCanSelect()&&(Hw(s,e)?r=!0:i=!1),s.subRows&&s.subRows.length)){const a=Sy(s,e);a==="all"?r=!0:(a==="some"&&(r=!0),i=!1)}}),i?"all":r?"some":!1}const ky=/([0-9]+)/gm,pH=(t,e,n)=>lE(_s(t.getValue(n)).toLowerCase(),_s(e.getValue(n)).toLowerCase()),mH=(t,e,n)=>lE(_s(t.getValue(n)),_s(e.getValue(n))),gH=(t,e,n)=>Ww(_s(t.getValue(n)).toLowerCase(),_s(e.getValue(n)).toLowerCase()),vH=(t,e,n)=>Ww(_s(t.getValue(n)),_s(e.getValue(n))),bH=(t,e,n)=>{const o=t.getValue(n),i=e.getValue(n);return o>i?1:oWw(t.getValue(n),e.getValue(n));function Ww(t,e){return t===e?0:t>e?1:-1}function _s(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function lE(t,e){const n=t.split(ky).filter(Boolean),o=e.split(ky).filter(Boolean);for(;n.length&&o.length;){const i=n.shift(),r=o.shift(),s=parseInt(i,10),a=parseInt(r,10),l=[s,a].sort();if(isNaN(l[0])){if(i>r)return 1;if(r>i)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-o.length}const na={alphanumeric:pH,alphanumericCaseSensitive:mH,text:gH,textCaseSensitive:vH,datetime:bH,basic:yH},xH={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:zo("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const i of n){const r=i==null?void 0:i.getValue(t.id);if(Object.prototype.toString.call(r)==="[object Date]")return na.datetime;if(typeof r=="string"&&(o=!0,r.split(ky).length>1))return na.alphanumeric}return o?na.text:na.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(t.id))=="string"?"asc":"desc"},t.getSortingFn=()=>{var n,o;if(!t)throw new Error;return sm(t.columnDef.sortingFn)?t.columnDef.sortingFn:t.columnDef.sortingFn==="auto"?t.getAutoSortingFn():(n=(o=e.options.sortingFns)==null?void 0:o[t.columnDef.sortingFn])!=null?n:na[t.columnDef.sortingFn]},t.toggleSorting=(n,o)=>{const i=t.getNextSortingOrder(),r=typeof n<"u"&&n!==null;e.setSorting(s=>{const a=s==null?void 0:s.find(p=>p.id===t.id),l=s==null?void 0:s.findIndex(p=>p.id===t.id);let c=[],u,d=r?n:i==="desc";if(s!=null&&s.length&&t.getCanMultiSort()&&o?a?u="toggle":u="add":s!=null&&s.length&&l!==s.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(r||i||(u="remove")),u==="add"){var h;c=[...s,{id:t.id,desc:d}],c.splice(0,c.length-((h=e.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=s.map(p=>p.id===t.id?{...p,desc:d}:p):u==="remove"?c=s.filter(p=>p.id!==t.id):c=[{id:t.id,desc:d}];return c})},t.getFirstSortDir=()=>{var n,o;return((n=(o=t.columnDef.sortDescFirst)!=null?o:e.options.sortDescFirst)!=null?n:t.getAutoSortDir()==="desc")?"desc":"asc"},t.getNextSortingOrder=n=>{var o,i;const r=t.getFirstSortDir(),s=t.getIsSorted();return s?s!==r&&((o=e.options.enableSortingRemoval)==null||o)&&(!(n&&(i=e.options.enableMultiRemove)!=null)||i)?!1:s==="desc"?"asc":"desc":r},t.getCanSort=()=>{var n,o;return((n=t.columnDef.enableSorting)!=null?n:!0)&&((o=e.options.enableSorting)!=null?o:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,o;return(n=(o=t.columnDef.enableMultiSort)!=null?o:e.options.enableMultiSort)!=null?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const o=(n=e.getState().sorting)==null?void 0:n.find(i=>i.id===t.id);return o?o.desc?"desc":"asc":!1},t.getSortIndex=()=>{var n,o;return(n=(o=e.getState().sorting)==null?void 0:o.findIndex(i=>i.id===t.id))!=null?n:-1},t.clearSorting=()=>{e.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return o=>{n&&(o.persist==null||o.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(o):!1))}}},createTable:t=>{t.setSorting=e=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,o;t.setSorting(e?[]:(n=(o=t.initialState)==null?void 0:o.sorting)!=null?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},wH={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:zo("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(o=>({...o,[t.id]:n??!t.getIsVisible()}))},t.getIsVisible=()=>{var n,o;return(n=(o=e.getState().columnVisibility)==null?void 0:o[t.id])!=null?n:!0},t.getCanHide=()=>{var n,o;return((n=t.columnDef.enableHiding)!=null?n:!0)&&((o=e.options.enableHiding)!=null?o:!0)},t.getToggleVisibilityHandler=()=>n=>{t.toggleVisibility==null||t.toggleVisibility(n.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=Ye(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}}),t.getVisibleCells=Ye(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,o,i)=>[...n,...o,...i],{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})},createTable:t=>{const e=(n,o)=>Ye(()=>[o(),o().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(r=>r.getIsVisible==null?void 0:r.getIsVisible()),{key:n,debug:()=>{var i;return(i=t.options.debugAll)!=null?i:t.options.debugColumns}});t.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=n=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(n),t.resetColumnVisibility=n=>{var o;t.setColumnVisibility(n?{}:(o=t.initialState.columnVisibility)!=null?o:{})},t.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((i,r)=>({...i,[r.id]:n||!(r.getCanHide!=null&&r.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;t.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}},Zk=[K3,wH,uH,hH,J3,xH,lH,X3,dH,fH,Y3];function CH(t){var e;(t.debugAll||t.debugTable)&&console.info("Creating Table Instance...");let n={_features:Zk};const o=n._features.reduce((u,d)=>Object.assign(u,d.getDefaultOptions==null?void 0:d.getDefaultOptions(n)),{}),i=u=>n.options.mergeOptions?n.options.mergeOptions(o,u):{...o,...u};let s={...{},...(e=t.initialState)!=null?e:{}};n._features.forEach(u=>{var d;s=(d=u.getInitialState==null?void 0:u.getInitialState(s))!=null?d:s});const a=[];let l=!1;const c={_features:Zk,options:{...o,...t},initialState:s,_queue:u=>{a.push(u),l||(l=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();l=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{n.setState(n.initialState)},setOptions:u=>{const d=as(u,n.options);n.options=i(d)},getState:()=>n.options.state,setState:u=>{n.options.onStateChange==null||n.options.onStateChange(u)},_getRowId:(u,d,h)=>{var p;return(p=n.options.getRowId==null?void 0:n.options.getRowId(u,d,h))!=null?p:`${h?[h.id,d].join("."):d}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(u,d)=>{let h=(d?n.getPrePaginationRowModel():n.getRowModel()).rowsById[u];if(!h&&(h=n.getCoreRowModel().rowsById[u],!h))throw new Error;return h},_getDefaultColumnDef:Ye(()=>[n.options.defaultColumn],u=>{var d;return u=(d=u)!=null?d:{},{header:h=>{const p=h.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:h=>{var p,g;return(p=(g=h.renderValue())==null||g.toString==null?void 0:g.toString())!=null?p:null},...n._features.reduce((h,p)=>Object.assign(h,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...u}},{debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:Ye(()=>[n._getColumnDefs()],u=>{const d=function(h,p,g){return g===void 0&&(g=0),h.map(m=>{const b=G3(n,m,g,p),v=m;return b.columns=v.columns?d(v.columns,b,g+1):[],b})};return d(u)},{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getAllFlatColumns:Ye(()=>[n.getAllColumns()],u=>u.flatMap(d=>d.getFlatColumns()),{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),_getAllFlatColumnsById:Ye(()=>[n.getAllFlatColumns()],u=>u.reduce((d,h)=>(d[h.id]=h,d),{}),{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getAllLeafColumns:Ye(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(u,d)=>{let h=u.flatMap(p=>p.getLeafColumns());return d(h)},{key:!1,debug:()=>{var u;return(u=n.options.debugAll)!=null?u:n.options.debugColumns}}),getColumn:u=>n._getAllFlatColumnsById()[u]};Object.assign(n,c);for(let u=0;u{var s;return(s=r.getValue())!=null?s:t.options.renderFallbackValue},r={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(o),renderValue:i,getContext:Ye(()=>[t,n,e,r],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),{key:!1,debug:()=>t.options.debugAll})};return t._features.forEach(s=>{s.createCell==null||s.createCell(r,n,e,t)},{}),r}const vh=(t,e,n,o,i,r,s)=>{let a={id:e,index:o,original:n,depth:i,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=t.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=t.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:t.options.renderFallbackValue},subRows:r??[],getLeafRows:()=>ZI(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?t.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:Ye(()=>[t.getAllLeafColumns()],l=>l.map(c=>SH(t,a,c,c.id)),{key:!1,debug:()=>{var l;return(l=t.options.debugAll)!=null?l:t.options.debugRows}}),_getAllCellsByColumnId:Ye(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var l;return(l=t.options.debugAll)!=null?l:t.options.debugRows}})};for(let l=0;lYe(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(i,r,s){r===void 0&&(r=0);const a=[];for(let c=0;c{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable},onChange:()=>{t._autoResetPageIndex()}})}function cE(t,e,n){return n.options.filterFromLeafRows?PH(t,e,n):MH(t,e,n)}function PH(t,e,n){var o;const i=[],r={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,a=function(l,c){c===void 0&&(c=0);const u=[];for(let h=0;hYe(()=>[t.getPreFilteredRowModel(),t.getState().columnFilters,t.getState().globalFilter],(e,n,o)=>{if(!e.rows.length||!(n!=null&&n.length)&&!o){for(let h=0;h{var p;const g=t.getColumn(h.id);if(!g)return;const m=g.getFilterFn();m&&i.push({id:h.id,filterFn:m,resolvedValue:(p=m.resolveFilterValue==null?void 0:m.resolveFilterValue(h.value))!=null?p:h.value})});const s=n.map(h=>h.id),a=t.getGlobalFilterFn(),l=t.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());o&&a&&l.length&&(s.push("__global__"),l.forEach(h=>{var p;r.push({id:h.id,filterFn:a,resolvedValue:(p=a.resolveFilterValue==null?void 0:a.resolveFilterValue(o))!=null?p:o})}));let c,u;for(let h=0;h{p.columnFiltersMeta[m]=b})}if(r.length){for(let g=0;g{p.columnFiltersMeta[m]=b})){p.columnFilters.__global__=!0;break}}p.columnFilters.__global__!==!0&&(p.columnFilters.__global__=!1)}}const d=h=>{for(let p=0;p{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable},onChange:()=>{t._autoResetPageIndex()}})}function RH(){return(t,e)=>Ye(()=>[t.getPreFilteredRowModel(),t.getState().columnFilters,t.getState().globalFilter,t.getFilteredRowModel()],(n,o,i)=>{if(!n.rows.length||!(o!=null&&o.length)&&!i)return n;const r=[...o.map(a=>a.id).filter(a=>a!==e),i?"__global__":void 0].filter(Boolean),s=a=>{for(let l=0;l{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable},onChange:()=>{}})}function TH(){return(t,e)=>Ye(()=>{var n;return[(n=t.getColumn(e))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let o=new Map;for(let r=0;r{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable},onChange:()=>{}})}function OH(){return(t,e)=>Ye(()=>{var n;return[(n=t.getColumn(e))==null?void 0:n.getFacetedRowModel()]},n=>{var o;if(!n)return;const i=(o=n.flatRows[0])==null?void 0:o.getUniqueValues(e);if(typeof i>"u")return;let r=[i,i];for(let s=0;sr[1]&&(r[1]=c)}}return r},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable},onChange:()=>{}})}function IH(){return t=>Ye(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||!(e!=null&&e.length))return n;const o=t.getState().sorting,i=[],r=o.filter(l=>{var c;return(c=t.getColumn(l.id))==null?void 0:c.getCanSort()}),s={};r.forEach(l=>{const c=t.getColumn(l.id);c&&(s[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const a=l=>{const c=l.map(u=>({...u}));return c.sort((u,d)=>{for(let p=0;p{var d;i.push(u),(d=u.subRows)!=null&&d.length&&(u.subRows=a(u.subRows))}),c};return{rows:a(n.rows),flatRows:i,rowsById:n.rowsById}},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable},onChange:()=>{t._autoResetPageIndex()}})}function EH(){return t=>Ye(()=>[t.getState().grouping,t.getPreGroupedRowModel()],(e,n)=>{if(!n.rows.length||!e.length)return n;const o=e.filter(l=>t.getColumn(l)),i=[],r={},s=function(l,c,u){if(c===void 0&&(c=0),c>=o.length)return l.map(g=>(g.depth=c,i.push(g),r[g.id]=g,g.subRows&&(g.subRows=s(g.subRows,c+1,g.id)),g));const d=o[c],h=DH(l,d);return Array.from(h.entries()).map((g,m)=>{let[b,v]=g,y=`${d}:${b}`;y=u?`${u}>${y}`:y;const w=s(v,c+1,y),C=c?ZI(v,P=>P.subRows):v,k=vh(t,y,C[0].original,m,c,void 0,u);return Object.assign(k,{groupingColumnId:d,groupingValue:b,subRows:w,leafRows:C,getValue:P=>{if(o.includes(P)){if(k._valuesCache.hasOwnProperty(P))return k._valuesCache[P];if(v[0]){var M;k._valuesCache[P]=(M=v[0].getValue(P))!=null?M:void 0}return k._valuesCache[P]}if(k._groupingValuesCache.hasOwnProperty(P))return k._groupingValuesCache[P];const _=t.getColumn(P),R=_==null?void 0:_.getAggregationFn();if(R)return k._groupingValuesCache[P]=R(P,C,v),k._groupingValuesCache[P]}}),w.forEach(P=>{i.push(P),r[P.id]=P}),k})},a=s(n.rows,0);return a.forEach(l=>{i.push(l),r[l.id]=l}),{rows:a,flatRows:i,rowsById:r}},{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable},onChange:()=>{t._queue(()=>{t._autoResetExpanded(),t._autoResetPageIndex()})}})}function DH(t,e){const n=new Map;return t.reduce((o,i)=>{const r=`${i.getGroupingValue(e)}`,s=o.get(r);return s?s.push(i):o.set(r,[i]),o},n)}function $H(){return t=>Ye(()=>[t.getState().expanded,t.getPreExpandedRowModel(),t.options.paginateExpandedRows],(e,n,o)=>!n.rows.length||e!==!0&&!Object.keys(e??{}).length||!o?n:uE(n),{key:!1,debug:()=>{var e;return(e=t.options.debugAll)!=null?e:t.options.debugTable}})}function uE(t){const e=[],n=o=>{var i;e.push(o),(i=o.subRows)!=null&&i.length&&o.getIsExpanded()&&o.subRows.forEach(n)};return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}function FH(t){return e=>Ye(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(n,o)=>{if(!o.rows.length)return o;const{pageSize:i,pageIndex:r}=n;let{rows:s,flatRows:a,rowsById:l}=o;const c=i*r,u=c+i;s=s.slice(c,u);let d;e.options.paginateExpandedRows?d={rows:s,flatRows:a,rowsById:l}:d=uE({rows:s,flatRows:a,rowsById:l}),d.flatRows=[];const h=p=>{d.flatRows.push(p),p.subRows.length&&p.subRows.forEach(h)};return d.rows.forEach(h),d},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}})}/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function jH(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=x.useState(()=>({current:CH(e)})),[o,i]=x.useState(()=>n.current.initialState);return n.current.setOptions(r=>({...r,...t,state:{...o,...t.state},onStateChange:s=>{i(s),t.onStateChange==null||t.onStateChange(s)}})),n.current}/** + * react-virtual + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function am(){return am=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"&&delete o[r]}),n.options=lm({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:AH,rangeExtractor:dE,onChange:function(){},measureElement:VH,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},o)},this.notify=function(o){n.options.onChange==null||n.options.onChange(n,o)},this.maybeNotify=ol(function(){return n.calculateRange(),[n.isScrolling,n.range?n.range.startIndex:null,n.range?n.range.endIndex:null]},function(o){n.notify(o)},{key:!1,debug:function(){return n.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){n.unsubs.filter(Boolean).forEach(function(o){return o()}),n.unsubs=[],n.scrollElement=null},this._didMount=function(){return n.measureElementCache.forEach(n.observer.observe),function(){n.observer.disconnect(),n.cleanup()}},this._willUpdate=function(){var o=n.options.getScrollElement();n.scrollElement!==o&&(n.cleanup(),n.scrollElement=o,n._scrollToOffset(n.scrollOffset,{adjustments:void 0,behavior:void 0}),n.unsubs.push(n.options.observeElementRect(n,function(i){n.scrollRect=i,n.maybeNotify()})),n.unsubs.push(n.options.observeElementOffset(n,function(i){n.scrollAdjustments=0,n.scrollOffset!==i&&(n.isScrollingTimeoutId!==null&&(clearTimeout(n.isScrollingTimeoutId),n.isScrollingTimeoutId=null),n.isScrolling=!0,n.scrollDirection=n.scrollOffset=0;a--){var l=o[a];if(!r.has(l.lane)){var c=s.get(l.lane);if(c==null||l.end>c.end?s.set(l.lane,l):l.end0?Math.min.apply(Math,n.pendingMeasuredCacheIndexes):0;n.pendingMeasuredCacheIndexes=[];for(var u=n.measurementsCache.slice(0,c),d=c;d0&&i>0?WH({measurements:o,outerSize:i,scrollOffset:r}):null},{key:!1,debug:function(){return n.options.debug}}),this.getIndexes=ol(function(){return[n.options.rangeExtractor,n.calculateRange(),n.options.overscan,n.options.count]},function(o,i,r,s){return i===null?[]:o(lm({},i,{overscan:r,count:s}))},{key:!1,debug:function(){return n.options.debug}}),this.indexFromElement=function(o){var i=n.options.indexAttribute,r=o.getAttribute(i);return r?parseInt(r,10):(console.warn("Missing attribute name '"+i+"={index}' on measured element."),-1)},this._measureElement=function(o,i){var r=n.measurementsCache[n.indexFromElement(o)];if(!r||!o.isConnected){n.measureElementCache.forEach(function(l,c){l===o&&(n.observer.unobserve(o),n.measureElementCache.delete(c))});return}var s=n.measureElementCache.get(r.key);s!==o&&(s&&n.observer.unobserve(s),n.observer.observe(o),n.measureElementCache.set(r.key,o));var a=n.options.measureElement(o,i,n);n.resizeItem(r,a)},this.resizeItem=function(o,i){var r,s=(r=n.itemSizeCache.get(o.key))!=null?r:o.size,a=i-s;a!==0&&(o.start=n.scrollOffset+r?i="end":i="start"),i==="start"?o=o:i==="end"?o=o-r:i==="center"&&(o=o-r/2);var s=n.options.horizontal?"scrollWidth":"scrollHeight",a=n.scrollElement?"document"in n.scrollElement?n.scrollElement.document.documentElement[s]:n.scrollElement[s]:0,l=a-n.getSize();return Math.max(Math.min(l,o),0)},this.getOffsetForIndex=function(o,i){i===void 0&&(i="auto"),o=Math.max(0,Math.min(o,n.options.count-1));var r=p0(n.getMeasurements()[o]);if(i==="auto")if(r.end>=n.scrollOffset+n.getSize()-n.options.scrollPaddingEnd)i="end";else if(r.start<=n.scrollOffset+n.options.scrollPaddingStart)i="start";else return[n.scrollOffset,i];var s=i==="end"?r.end+n.options.scrollPaddingEnd:r.start-n.options.scrollPaddingStart;return[n.getOffsetForAlignment(s,i),i]},this.isDynamicMode=function(){return n.measureElementCache.size>0},this.cancelScrollToIndex=function(){n.scrollToIndexTimeoutId!==null&&(clearTimeout(n.scrollToIndexTimeoutId),n.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(o,i){var r=i===void 0?{}:i,s=r.align,a=s===void 0?"start":s,l=r.behavior;n.cancelScrollToIndex(),l==="smooth"&&n.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n._scrollToOffset(n.getOffsetForAlignment(o,a),{adjustments:void 0,behavior:l})},this.scrollToIndex=function(o,i){var r=i===void 0?{}:i,s=r.align,a=s===void 0?"auto":s,l=r.behavior;o=Math.max(0,Math.min(o,n.options.count-1)),n.cancelScrollToIndex(),l==="smooth"&&n.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var c=n.getOffsetForIndex(o,a),u=c[0],d=c[1];n._scrollToOffset(u,{adjustments:void 0,behavior:l}),l!=="smooth"&&n.isDynamicMode()&&(n.scrollToIndexTimeoutId=setTimeout(function(){n.scrollToIndexTimeoutId=null;var h=n.measureElementCache.has(n.options.getItemKey(o));if(h){var p=n.getOffsetForIndex(o,d),g=p[0];LH(g,n.scrollOffset)||n.scrollToIndex(o,{align:d,behavior:l})}else n.scrollToIndex(o,{align:d,behavior:l})}))},this.scrollBy=function(o,i){var r=i===void 0?{}:i,s=r.behavior;n.cancelScrollToIndex(),s==="smooth"&&n.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n._scrollToOffset(n.scrollOffset+o,{adjustments:void 0,behavior:s})},this.getTotalSize=function(){var o;return(((o=n.getMeasurements()[n.options.count-1])==null?void 0:o.end)||n.options.paddingStart)-n.options.scrollMargin+n.options.paddingEnd},this._scrollToOffset=function(o,i){var r=i.adjustments,s=i.behavior;n.options.scrollToFn(o,{behavior:s,adjustments:r},n)},this.measure=function(){n.itemSizeCache=new Map,n.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(o){n.itemSizeCache.set(o.key,o.size)}),this.maybeNotify()},hE=function(e,n,o,i){for(;e<=n;){var r=(e+n)/2|0,s=o(r);if(si)n=r-1;else return r}return e>0?e-1:0};function WH(t){for(var e=t.measurements,n=t.outerSize,o=t.scrollOffset,i=e.length-1,r=function(c){return e[c].start},s=hE(0,i,r,o),a=s;at.replace(/[|\\{}()[\]^$+*?.-]/g,e=>`\\${e}`),KH=t=>t.replace(/\s{2,}/g," ").split(" ").join("|"),YH=({terms:t,matchExactly:e=!1})=>{if(typeof t!="string")throw new TypeError("Expected a string");const n=GH(t.trim());return`(${e?n:KH(n)})`},QH=({terms:t,matchExactly:e=!1})=>{try{const n=/^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(t);return n?new RegExp(n[2],n[3]):new RegExp(YH({terms:t,matchExactly:e}),"ig")}catch{throw new TypeError("Expected terms to be either a string or a RegExp!")}},XH=t=>e=>e!==null&&typeof e=="object"&&t in e,rf=XH("match"),sf=t=>typeof t<"u";function JH({curr:t,next:e,prev:n,clipBy:o=3}){const i=t.text.split(" "),r=i.length;if(t.match||o>=r)return t.text;const s="...";return sf(e)&&sf(n)&&rf(n)&&rf(e)?r>o*2?[...i.slice(0,o),s,...i.slice(-o)].join(" "):t.text:sf(e)&&rf(e)?[s,...i.slice(-o)].join(" "):sf(n)&&rf(n)?[...i.slice(0,o),s].join(" "):t.text}var ZH=Object.defineProperty,eW=Object.defineProperties,tW=Object.getOwnPropertyDescriptors,nP=Object.getOwnPropertySymbols,nW=Object.prototype.hasOwnProperty,oW=Object.prototype.propertyIsEnumerable,oP=(t,e,n)=>e in t?ZH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,af=(t,e)=>{for(var n in e||(e={}))nW.call(e,n)&&oP(t,n,e[n]);if(nP)for(var n of nP(e))oW.call(e,n)&&oP(t,n,e[n]);return t},iW=(t,e)=>eW(t,tW(e));const rW=t=>t.length>0,m0=({text:t,query:e,clipBy:n,matchExactly:o=!1})=>{const i=typeof e=="string"?e.trim():e;if(i==="")return[{key:tP(),text:t,match:!1}];const r=QH({terms:e,matchExactly:o});return t.split(r).filter(rW).map(s=>({key:tP(),text:s,match:o?s.toLowerCase()===i.toLowerCase():r.test(s)})).map((s,a,l)=>af(af({},s),typeof n=="number"&&{text:JH(iW(af(af({curr:s},a0&&{prev:l[a-1]}),{clipBy:n}))}))};function cm(t,e){return cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},cm(t,e)}function Uw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,cm(t,e)}function sW(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function aW(t,e){t.classList?t.classList.add(e):sW(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function iP(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function lW(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=iP(t.className,e):t.setAttribute("class",iP(t.className&&t.className.baseVal||"",e))}const rP={disabled:!1},um=no.createContext(null);var mE=function(e){return e.scrollTop},gu="unmounted",Xs="exited",Js="entering",cl="entered",Py="exiting",Er=function(t){Uw(e,t);function e(o,i){var r;r=t.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return r.appearStatus=null,o.in?a?(l=Xs,r.appearStatus=Js):l=cl:o.unmountOnExit||o.mountOnEnter?l=gu:l=Xs,r.state={status:l},r.nextCallback=null,r}e.getDerivedStateFromProps=function(i,r){var s=i.in;return s&&r.status===gu?{status:Xs}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var r=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Js&&s!==cl&&(r=Js):(s===Js||s===cl)&&(r=Py)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,r,s,a;return r=s=a=i,i!=null&&typeof i!="number"&&(r=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:r,enter:s,appear:a}},n.updateStatus=function(i,r){if(i===void 0&&(i=!1),r!==null)if(this.cancelNextCallback(),r===Js){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Jh.findDOMNode(this);s&&mE(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xs&&this.setState({status:gu})},n.performEnter=function(i){var r=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Jh.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),h=a?d.appear:d.enter;if(!i&&!s||rP.disabled){this.safeSetState({status:cl},function(){r.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Js},function(){r.props.onEntering(c,u),r.onTransitionEnd(h,function(){r.safeSetState({status:cl},function(){r.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,r=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Jh.findDOMNode(this);if(!r||rP.disabled){this.safeSetState({status:Xs},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Py},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Xs},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,r){r=this.setNextCallback(r),this.setState(i,r)},n.setNextCallback=function(i){var r=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,r.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,r){this.setNextCallback(r);var s=this.props.nodeRef?this.props.nodeRef.current:Jh.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===gu)return null;var r=this.props,s=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var a=ce(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return no.createElement(um.Provider,{value:null},typeof s=="function"?s(i,a):no.cloneElement(no.Children.only(s),a))},e}(no.Component);Er.contextType=um;Er.propTypes={};function il(){}Er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:il,onEntering:il,onEntered:il,onExit:il,onExiting:il,onExited:il};Er.UNMOUNTED=gu;Er.EXITED=Xs;Er.ENTERING=Js;Er.ENTERED=cl;Er.EXITING=Py;const Yg=Er;var cW=function(e,n){return e&&n&&n.split(" ").forEach(function(o){return aW(e,o)})},g0=function(e,n){return e&&n&&n.split(" ").forEach(function(o){return lW(e,o)})},qw=function(t){Uw(e,t);function e(){for(var o,i=arguments.length,r=new Array(i),s=0;s{if(!a&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),f.jsx("span",{className:h,style:p,children:f.jsx("span",{className:g})})}const vW=Te("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zo=vW,bW=["center","classes","className"];let Qg=t=>t,sP,aP,lP,cP;const My=550,yW=80,xW=Fi(sP||(sP=Qg` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),wW=Fi(aP||(aP=Qg` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),CW=Fi(lP||(lP=Qg` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),SW=q("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),kW=q(gW,{name:"MuiTouchRipple",slot:"Ripple"})(cP||(cP=Qg` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Zo.rippleVisible,xW,My,({theme:t})=>t.transitions.easing.easeInOut,Zo.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,Zo.child,Zo.childLeaving,wW,My,({theme:t})=>t.transitions.easing.easeInOut,Zo.childPulsate,CW,({theme:t})=>t.transitions.easing.easeInOut),PW=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:r={},className:s}=o,a=ce(o,bW),[l,c]=x.useState([]),u=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const h=x.useRef(!1),p=x.useRef(0),g=x.useRef(null),m=x.useRef(null);x.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const b=x.useCallback(C=>{const{pulsate:k,rippleX:P,rippleY:M,rippleSize:_,cb:R}=C;c(O=>[...O,f.jsx(kW,{classes:{ripple:me(r.ripple,Zo.ripple),rippleVisible:me(r.rippleVisible,Zo.rippleVisible),ripplePulsate:me(r.ripplePulsate,Zo.ripplePulsate),child:me(r.child,Zo.child),childLeaving:me(r.childLeaving,Zo.childLeaving),childPulsate:me(r.childPulsate,Zo.childPulsate)},timeout:My,pulsate:k,rippleX:P,rippleY:M,rippleSize:_},u.current)]),u.current+=1,d.current=R},[r]),v=x.useCallback((C={},k={},P=()=>{})=>{const{pulsate:M=!1,center:_=i||k.pulsate,fakeElement:R=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const O=R?null:m.current,I=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,F,E;if(_||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)$=Math.round(I.width/2),F=Math.round(I.height/2);else{const{clientX:D,clientY:j}=C.touches&&C.touches.length>0?C.touches[0]:C;$=Math.round(D-I.left),F=Math.round(j-I.top)}if(_)E=Math.sqrt((2*I.width**2+I.height**2)/3),E%2===0&&(E+=1);else{const D=Math.max(Math.abs((O?O.clientWidth:0)-$),$)*2+2,j=Math.max(Math.abs((O?O.clientHeight:0)-F),F)*2+2;E=Math.sqrt(D**2+j**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{b({pulsate:M,rippleX:$,rippleY:F,rippleSize:E,cb:P})},p.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},yW)):b({pulsate:M,rippleX:$,rippleY:F,rippleSize:E,cb:P})},[i,b]),y=x.useCallback(()=>{v({},{pulsate:!0})},[v]),w=x.useCallback((C,k)=>{if(clearTimeout(p.current),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,p.current=setTimeout(()=>{w(C,k)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),d.current=k},[]);return x.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:w}),[y,v,w]),f.jsx(SW,S({className:me(Zo.root,r.root,s),ref:m},a,{children:f.jsx(Yw,{component:null,exit:!0,children:l})}))}),MW=PW;function _W(t){return Ie("MuiButtonBase",t)}const RW=Te("MuiButtonBase",["root","disabled","focusVisible"]),TW=RW,OW=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],IW=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:o,classes:i}=t,s=Oe({root:["root",e&&"disabled",n&&"focusVisible"]},_W,i);return n&&o&&(s.root+=` ${o}`),s},EW=q("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${TW.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),DW=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:r=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:p="a",onBlur:g,onClick:m,onContextMenu:b,onDragLeave:v,onFocus:y,onFocusVisible:w,onKeyDown:C,onKeyUp:k,onMouseDown:P,onMouseLeave:M,onMouseUp:_,onTouchEnd:R,onTouchMove:O,onTouchStart:I,tabIndex:$=0,TouchRippleProps:F,touchRippleRef:E,type:D}=o,j=ce(o,OW),N=x.useRef(null),A=x.useRef(null),L=mt(A,E),{isFocusVisibleRef:V,onFocus:W,onBlur:Y,ref:se}=xg(),[B,U]=x.useState(!1);c&&B&&U(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{U(!0),N.current.focus()}}),[]);const[z,Q]=x.useState(!1);x.useEffect(()=>{Q(!0)},[]);const J=z&&!u&&!c;x.useEffect(()=>{B&&h&&!u&&z&&A.current.pulsate()},[u,h,B,z]);function ee(be,De,We=d){return je(Ae=>(De&&De(Ae),!We&&A.current&&A.current[be](Ae),!0))}const ie=ee("start",P),ne=ee("stop",b),oe=ee("stop",v),H=ee("stop",_),ue=ee("stop",be=>{B&&be.preventDefault(),M&&M(be)}),he=ee("start",I),pe=ee("stop",R),$e=ee("stop",O),re=ee("stop",be=>{Y(be),V.current===!1&&U(!1),g&&g(be)},!1),Ce=je(be=>{N.current||(N.current=be.currentTarget),W(be),V.current===!0&&(U(!0),w&&w(be)),y&&y(be)}),G=()=>{const be=N.current;return l&&l!=="button"&&!(be.tagName==="A"&&be.href)},X=x.useRef(!1),ve=je(be=>{h&&!X.current&&B&&A.current&&be.key===" "&&(X.current=!0,A.current.stop(be,()=>{A.current.start(be)})),be.target===be.currentTarget&&G()&&be.key===" "&&be.preventDefault(),C&&C(be),be.target===be.currentTarget&&G()&&be.key==="Enter"&&!c&&(be.preventDefault(),m&&m(be))}),ke=je(be=>{h&&be.key===" "&&A.current&&B&&!be.defaultPrevented&&(X.current=!1,A.current.stop(be,()=>{A.current.pulsate(be)})),k&&k(be),m&&be.target===be.currentTarget&&G()&&be.key===" "&&!be.defaultPrevented&&m(be)});let _e=l;_e==="button"&&(j.href||j.to)&&(_e=p);const fe={};_e==="button"?(fe.type=D===void 0?"button":D,fe.disabled=c):(!j.href&&!j.to&&(fe.role="button"),c&&(fe["aria-disabled"]=c));const ae=mt(n,se,N),xe=S({},o,{centerRipple:r,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:h,tabIndex:$,focusVisible:B}),we=IW(xe);return f.jsxs(EW,S({as:_e,className:me(we.root,a),ownerState:xe,onBlur:re,onClick:m,onContextMenu:ne,onFocus:Ce,onKeyDown:ve,onKeyUp:ke,onMouseDown:ie,onMouseLeave:ue,onMouseUp:H,onDragLeave:oe,onTouchEnd:pe,onTouchMove:$e,onTouchStart:he,ref:ae,tabIndex:c?-1:$,type:D},fe,j,{children:[s,J?f.jsx(MW,S({ref:L,center:r},F)):null]}))}),hi=DW;function $W(t){return Ie("MuiButton",t)}const FW=Te("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lf=FW,jW=x.createContext({}),LW=jW,AW=x.createContext(void 0),NW=AW,zW=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],VW=t=>{const{color:e,disableElevation:n,fullWidth:o,size:i,variant:r,classes:s}=t,a={root:["root",r,`${r}${le(e)}`,`size${le(i)}`,`${r}Size${le(i)}`,e==="inherit"&&"colorInherit",n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${le(i)}`],endIcon:["endIcon",`iconSize${le(i)}`]},l=Oe(a,$W,s);return S({},s,l)},vE=t=>S({},t.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},t.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},t.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),BW=q(hi,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${le(n.color)}`],e[`size${le(n.size)}`],e[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var n,o;const i=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return S({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="text"&&e.color!=="inherit"&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="outlined"&&e.color!=="inherit"&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},e.variant==="contained"&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},e.variant==="contained"&&e.color!=="inherit"&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":S({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${lf.focusVisible}`]:S({},e.variant==="contained"&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${lf.disabled}`]:S({color:(t.vars||t).palette.action.disabled},e.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},e.variant==="contained"&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},e.variant==="text"&&{padding:"6px 8px"},e.variant==="text"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main},e.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},e.variant==="outlined"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${Le(t.palette[e.color].main,.5)}`},e.variant==="contained"&&{color:t.vars?t.vars.palette.text.primary:(n=(o=t.palette).getContrastText)==null?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},e.variant==="contained"&&e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},e.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},e.size==="small"&&e.variant==="text"&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="text"&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="outlined"&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="outlined"&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},e.size==="small"&&e.variant==="contained"&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},e.size==="large"&&e.variant==="contained"&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lf.disabled}`]:{boxShadow:"none"}}),HW=q("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${le(n.size)}`]]}})(({ownerState:t})=>S({display:"inherit",marginRight:8,marginLeft:-4},t.size==="small"&&{marginLeft:-2},vE(t))),WW=q("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${le(n.size)}`]]}})(({ownerState:t})=>S({display:"inherit",marginRight:-4,marginLeft:8},t.size==="small"&&{marginRight:-2},vE(t))),UW=x.forwardRef(function(e,n){const o=x.useContext(LW),i=x.useContext(NW),r=ww(o,e),s=Pe({props:r,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:m,fullWidth:b=!1,size:v="medium",startIcon:y,type:w,variant:C="text"}=s,k=ce(s,zW),P=S({},s,{color:l,component:c,disabled:d,disableElevation:h,disableFocusRipple:p,fullWidth:b,size:v,type:w,variant:C}),M=VW(P),_=y&&f.jsx(HW,{className:M.startIcon,ownerState:P,children:y}),R=g&&f.jsx(WW,{className:M.endIcon,ownerState:P,children:g}),O=i||"";return f.jsxs(BW,S({ownerState:P,className:me(o.className,M.root,u,O),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:me(M.focusVisible,m),ref:n,type:w},k,{classes:M,children:[_,a,R]}))}),ii=UW;function tr(t){return typeof t=="string"}function vu(t,e,n){return t===void 0||tr(t)?e:S({},e,{ownerState:S({},e.ownerState,n)})}function qW(t,e,n=(o,i)=>o===i){return t.length===e.length&&t.every((o,i)=>n(o,e[i]))}const GW={disableDefaultClasses:!1},KW=x.createContext(GW);function YW(t){const{disableDefaultClasses:e}=x.useContext(KW);return n=>e?"":t(n)}function Au(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(o=>o.match(/^on[A-Z]/)&&typeof t[o]=="function"&&!e.includes(o)).forEach(o=>{n[o]=t[o]}),n}function Ls(t,e,n){return typeof t=="function"?t(e,n):t}function uP(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function QW(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:r}=t;if(!e){const p=me(n==null?void 0:n.className,r,i==null?void 0:i.className,o==null?void 0:o.className),g=S({},n==null?void 0:n.style,i==null?void 0:i.style,o==null?void 0:o.style),m=S({},n,i,o);return p.length>0&&(m.className=p),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const s=Au(S({},i,o)),a=uP(o),l=uP(i),c=e(s),u=me(c==null?void 0:c.className,n==null?void 0:n.className,r,i==null?void 0:i.className,o==null?void 0:o.className),d=S({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,o==null?void 0:o.style),h=S({},c,n,l,a);return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}const XW=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function nt(t){var e;const{elementType:n,externalSlotProps:o,ownerState:i,skipResolvingSlotProps:r=!1}=t,s=ce(t,XW),a=r?{}:Ls(o,i),{props:l,internalRef:c}=QW(S({},s,{externalSlotProps:a})),u=mt(c,a==null?void 0:a.ref,(e=t.additionalProps)==null?void 0:e.ref);return vu(n,S({},l,{ref:u}),i)}function JW(t){const{badgeContent:e,invisible:n=!1,max:o=99,showZero:i=!1}=t,r=xw({badgeContent:e,max:o});let s=n;n===!1&&e===0&&!i&&(s=!0);const{badgeContent:a,max:l=o}=s?r:t,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}const ZW=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function e6(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function t6(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=o=>t.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function n6(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||t6(t))}function o6(t){const e=[],n=[];return Array.from(t.querySelectorAll(ZW)).forEach((o,i)=>{const r=e6(o);r===-1||!n6(o)||(r===0?e.push(o):n.push({documentOrder:i,tabIndex:r,node:o}))}),n.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(e)}function i6(){return!0}function bE(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:r=o6,isEnabled:s=i6,open:a}=t,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),h=x.useRef(null),p=x.useRef(!1),g=x.useRef(null),m=mt(e.ref,g),b=x.useRef(null);x.useEffect(()=>{!a||!g.current||(p.current=!n)},[n,a]),x.useEffect(()=>{if(!a||!g.current)return;const w=Wt(g.current);return g.current.contains(w.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),p.current&&g.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),x.useEffect(()=>{if(!a||!g.current)return;const w=Wt(g.current),C=M=>{b.current=M,!(o||!s()||M.key!=="Tab")&&w.activeElement===g.current&&M.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const M=g.current;if(M===null)return;if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(M.contains(w.activeElement)||o&&w.activeElement!==c.current&&w.activeElement!==u.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!p.current)return;let _=[];if((w.activeElement===c.current||w.activeElement===u.current)&&(_=r(g.current)),_.length>0){var R,O;const I=!!((R=b.current)!=null&&R.shiftKey&&((O=b.current)==null?void 0:O.key)==="Tab"),$=_[0],F=_[_.length-1];typeof $!="string"&&typeof F!="string"&&(I?F.focus():$.focus())}else M.focus()};w.addEventListener("focusin",k),w.addEventListener("keydown",C,!0);const P=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),w.removeEventListener("focusin",k),w.removeEventListener("keydown",C,!0)}},[n,o,i,s,a,r]);const v=w=>{d.current===null&&(d.current=w.relatedTarget),p.current=!0,h.current=w.target;const C=e.props.onFocus;C&&C(w)},y=w=>{d.current===null&&(d.current=w.relatedTarget),p.current=!0};return f.jsxs(x.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(e,{ref:m,onFocus:v}),f.jsx("div",{tabIndex:a?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}var vo="top",fi="bottom",pi="right",bo="left",Qw="auto",bh=[vo,fi,pi,bo],pc="start",Md="end",r6="clippingParents",yE="viewport",Xc="popper",s6="reference",dP=bh.reduce(function(t,e){return t.concat([e+"-"+pc,e+"-"+Md])},[]),xE=[].concat(bh,[Qw]).reduce(function(t,e){return t.concat([e,e+"-"+pc,e+"-"+Md])},[]),a6="beforeRead",l6="read",c6="afterRead",u6="beforeMain",d6="main",h6="afterMain",f6="beforeWrite",p6="write",m6="afterWrite",g6=[a6,l6,c6,u6,d6,h6,f6,p6,m6];function lr(t){return t?(t.nodeName||"").toLowerCase():null}function Vo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ta(t){var e=Vo(t).Element;return t instanceof e||t instanceof Element}function li(t){var e=Vo(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Xw(t){if(typeof ShadowRoot>"u")return!1;var e=Vo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function v6(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},i=e.attributes[n]||{},r=e.elements[n];!li(r)||!lr(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(s){var a=i[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function b6(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var i=e.elements[o],r=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),a=s.reduce(function(l,c){return l[c]="",l},{});!li(i)||!lr(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(l){i.removeAttribute(l)}))})}}const y6={name:"applyStyles",enabled:!0,phase:"write",fn:v6,effect:b6,requires:["computeStyles"]};function nr(t){return t.split("-")[0]}var ba=Math.max,dm=Math.min,mc=Math.round;function _y(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wE(){return!/^((?!chrome|android).)*safari/i.test(_y())}function gc(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),i=1,r=1;e&&li(t)&&(i=t.offsetWidth>0&&mc(o.width)/t.offsetWidth||1,r=t.offsetHeight>0&&mc(o.height)/t.offsetHeight||1);var s=Ta(t)?Vo(t):window,a=s.visualViewport,l=!wE()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/i,u=(o.top+(l&&a?a.offsetTop:0))/r,d=o.width/i,h=o.height/r;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function Jw(t){var e=gc(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function CE(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Xw(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Or(t){return Vo(t).getComputedStyle(t)}function x6(t){return["table","td","th"].indexOf(lr(t))>=0}function As(t){return((Ta(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xg(t){return lr(t)==="html"?t:t.assignedSlot||t.parentNode||(Xw(t)?t.host:null)||As(t)}function hP(t){return!li(t)||Or(t).position==="fixed"?null:t.offsetParent}function w6(t){var e=/firefox/i.test(_y()),n=/Trident/i.test(_y());if(n&&li(t)){var o=Or(t);if(o.position==="fixed")return null}var i=Xg(t);for(Xw(i)&&(i=i.host);li(i)&&["html","body"].indexOf(lr(i))<0;){var r=Or(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function yh(t){for(var e=Vo(t),n=hP(t);n&&x6(n)&&Or(n).position==="static";)n=hP(n);return n&&(lr(n)==="html"||lr(n)==="body"&&Or(n).position==="static")?e:n||w6(t)||e}function Zw(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Nu(t,e,n){return ba(t,dm(e,n))}function C6(t,e,n){var o=Nu(t,e,n);return o>n?n:o}function SE(){return{top:0,right:0,bottom:0,left:0}}function kE(t){return Object.assign({},SE(),t)}function PE(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}var S6=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,kE(typeof e!="number"?e:PE(e,bh))};function k6(t){var e,n=t.state,o=t.name,i=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=nr(n.placement),l=Zw(a),c=[bo,pi].indexOf(a)>=0,u=c?"height":"width";if(!(!r||!s)){var d=S6(i.padding,n),h=Jw(r),p=l==="y"?vo:bo,g=l==="y"?fi:pi,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],v=yh(r),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,w=m/2-b/2,C=d[p],k=y-h[u]-d[g],P=y/2-h[u]/2+w,M=Nu(C,P,k),_=l;n.modifiersData[o]=(e={},e[_]=M,e.centerOffset=M-P,e)}}function P6(t){var e=t.state,n=t.options,o=n.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||CE(e.elements.popper,i)&&(e.elements.arrow=i))}const M6={name:"arrow",enabled:!0,phase:"main",fn:k6,effect:P6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vc(t){return t.split("-")[1]}var _6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function R6(t,e){var n=t.x,o=t.y,i=e.devicePixelRatio||1;return{x:mc(n*i)/i||0,y:mc(o*i)/i||0}}function fP(t){var e,n=t.popper,o=t.popperRect,i=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=s.x,p=h===void 0?0:h,g=s.y,m=g===void 0?0:g,b=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),w=bo,C=vo,k=window;if(c){var P=yh(n),M="clientHeight",_="clientWidth";if(P===Vo(n)&&(P=As(n),Or(P).position!=="static"&&a==="absolute"&&(M="scrollHeight",_="scrollWidth")),P=P,i===vo||(i===bo||i===pi)&&r===Md){C=fi;var R=d&&P===k&&k.visualViewport?k.visualViewport.height:P[M];m-=R-o.height,m*=l?1:-1}if(i===bo||(i===vo||i===fi)&&r===Md){w=pi;var O=d&&P===k&&k.visualViewport?k.visualViewport.width:P[_];p-=O-o.width,p*=l?1:-1}}var I=Object.assign({position:a},c&&_6),$=u===!0?R6({x:p,y:m},Vo(n)):{x:p,y:m};if(p=$.x,m=$.y,l){var F;return Object.assign({},I,(F={},F[C]=y?"0":"",F[w]=v?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",F))}return Object.assign({},I,(e={},e[C]=y?m+"px":"",e[w]=v?p+"px":"",e.transform="",e))}function T6(t){var e=t.state,n=t.options,o=n.gpuAcceleration,i=o===void 0?!0:o,r=n.adaptive,s=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:nr(e.placement),variation:vc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,fP(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,fP(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const O6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T6,data:{}};var cf={passive:!0};function I6(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,r=i===void 0?!0:i,s=o.resize,a=s===void 0?!0:s,l=Vo(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(u){u.addEventListener("scroll",n.update,cf)}),a&&l.addEventListener("resize",n.update,cf),function(){r&&c.forEach(function(u){u.removeEventListener("scroll",n.update,cf)}),a&&l.removeEventListener("resize",n.update,cf)}}const E6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I6,data:{}};var D6={left:"right",right:"left",bottom:"top",top:"bottom"};function vp(t){return t.replace(/left|right|bottom|top/g,function(e){return D6[e]})}var $6={start:"end",end:"start"};function pP(t){return t.replace(/start|end/g,function(e){return $6[e]})}function e1(t){var e=Vo(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function t1(t){return gc(As(t)).left+e1(t).scrollLeft}function F6(t,e){var n=Vo(t),o=As(t),i=n.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,l=0;if(i){r=i.width,s=i.height;var c=wE();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:a+t1(t),y:l}}function j6(t){var e,n=As(t),o=e1(t),i=(e=t.ownerDocument)==null?void 0:e.body,r=ba(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ba(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+t1(t),l=-o.scrollTop;return Or(i||n).direction==="rtl"&&(a+=ba(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}function n1(t){var e=Or(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function ME(t){return["html","body","#document"].indexOf(lr(t))>=0?t.ownerDocument.body:li(t)&&n1(t)?t:ME(Xg(t))}function zu(t,e){var n;e===void 0&&(e=[]);var o=ME(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),r=Vo(o),s=i?[r].concat(r.visualViewport||[],n1(o)?o:[]):o,a=e.concat(s);return i?a:a.concat(zu(Xg(s)))}function Ry(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function L6(t,e){var n=gc(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function mP(t,e,n){return e===yE?Ry(F6(t,n)):Ta(e)?L6(e,n):Ry(j6(As(t)))}function A6(t){var e=zu(Xg(t)),n=["absolute","fixed"].indexOf(Or(t).position)>=0,o=n&&li(t)?yh(t):t;return Ta(o)?e.filter(function(i){return Ta(i)&&CE(i,o)&&lr(i)!=="body"}):[]}function N6(t,e,n,o){var i=e==="clippingParents"?A6(t):[].concat(e),r=[].concat(i,[n]),s=r[0],a=r.reduce(function(l,c){var u=mP(t,c,o);return l.top=ba(u.top,l.top),l.right=dm(u.right,l.right),l.bottom=dm(u.bottom,l.bottom),l.left=ba(u.left,l.left),l},mP(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function _E(t){var e=t.reference,n=t.element,o=t.placement,i=o?nr(o):null,r=o?vc(o):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case vo:l={x:s,y:e.y-n.height};break;case fi:l={x:s,y:e.y+e.height};break;case pi:l={x:e.x+e.width,y:a};break;case bo:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?Zw(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(r){case pc:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Md:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function _d(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=o===void 0?t.placement:o,r=n.strategy,s=r===void 0?t.strategy:r,a=n.boundary,l=a===void 0?r6:a,c=n.rootBoundary,u=c===void 0?yE:c,d=n.elementContext,h=d===void 0?Xc:d,p=n.altBoundary,g=p===void 0?!1:p,m=n.padding,b=m===void 0?0:m,v=kE(typeof b!="number"?b:PE(b,bh)),y=h===Xc?s6:Xc,w=t.rects.popper,C=t.elements[g?y:h],k=N6(Ta(C)?C:C.contextElement||As(t.elements.popper),l,u,s),P=gc(t.elements.reference),M=_E({reference:P,element:w,strategy:"absolute",placement:i}),_=Ry(Object.assign({},w,M)),R=h===Xc?_:P,O={top:k.top-R.top+v.top,bottom:R.bottom-k.bottom+v.bottom,left:k.left-R.left+v.left,right:R.right-k.right+v.right},I=t.modifiersData.offset;if(h===Xc&&I){var $=I[i];Object.keys(O).forEach(function(F){var E=[pi,fi].indexOf(F)>=0?1:-1,D=[vo,fi].indexOf(F)>=0?"y":"x";O[F]+=$[D]*E})}return O}function z6(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?xE:l,u=vc(o),d=u?a?dP:dP.filter(function(g){return vc(g)===u}):bh,h=d.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=d);var p=h.reduce(function(g,m){return g[m]=_d(t,{placement:m,boundary:i,rootBoundary:r,padding:s})[nr(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}function V6(t){if(nr(t)===Qw)return[];var e=vp(t);return[pP(t),e,pP(e)]}function B6(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,r=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,m=n.allowedAutoPlacements,b=e.options.placement,v=nr(b),y=v===b,w=l||(y||!g?[vp(b)]:V6(b)),C=[b].concat(w).reduce(function(B,U){return B.concat(nr(U)===Qw?z6(e,{placement:U,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):U)},[]),k=e.rects.reference,P=e.rects.popper,M=new Map,_=!0,R=C[0],O=0;O=0,D=E?"width":"height",j=_d(e,{placement:I,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=E?F?pi:bo:F?fi:vo;k[D]>P[D]&&(N=vp(N));var A=vp(N),L=[];if(r&&L.push(j[$]<=0),a&&L.push(j[N]<=0,j[A]<=0),L.every(function(B){return B})){R=I,_=!1;break}M.set(I,L)}if(_)for(var V=g?3:1,W=function(U){var z=C.find(function(Q){var J=M.get(Q);if(J)return J.slice(0,U).every(function(ee){return ee})});if(z)return R=z,"break"},Y=V;Y>0;Y--){var se=W(Y);if(se==="break")break}e.placement!==R&&(e.modifiersData[o]._skip=!0,e.placement=R,e.reset=!0)}}const H6={name:"flip",enabled:!0,phase:"main",fn:B6,requiresIfExists:["offset"],data:{_skip:!1}};function gP(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function vP(t){return[vo,pi,fi,bo].some(function(e){return t[e]>=0})}function W6(t){var e=t.state,n=t.name,o=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,s=_d(e,{elementContext:"reference"}),a=_d(e,{altBoundary:!0}),l=gP(s,o),c=gP(a,i,r),u=vP(l),d=vP(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const U6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:W6};function q6(t,e,n){var o=nr(t),i=[bo,vo].indexOf(o)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*i,[bo,pi].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function G6(t){var e=t.state,n=t.options,o=t.name,i=n.offset,r=i===void 0?[0,0]:i,s=xE.reduce(function(u,d){return u[d]=q6(d,e.rects,r),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}const K6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G6};function Y6(t){var e=t.state,n=t.name;e.modifiersData[n]=_E({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Q6={name:"popperOffsets",enabled:!0,phase:"read",fn:Y6,data:{}};function X6(t){return t==="x"?"y":"x"}function J6(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,r=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,g=n.tetherOffset,m=g===void 0?0:g,b=_d(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=nr(e.placement),y=vc(e.placement),w=!y,C=Zw(v),k=X6(C),P=e.modifiersData.popperOffsets,M=e.rects.reference,_=e.rects.popper,R=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,O=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(P){if(r){var F,E=C==="y"?vo:bo,D=C==="y"?fi:pi,j=C==="y"?"height":"width",N=P[C],A=N+b[E],L=N-b[D],V=p?-_[j]/2:0,W=y===pc?M[j]:_[j],Y=y===pc?-_[j]:-M[j],se=e.elements.arrow,B=p&&se?Jw(se):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:SE(),z=U[E],Q=U[D],J=Nu(0,M[j],B[j]),ee=w?M[j]/2-V-J-z-O.mainAxis:W-J-z-O.mainAxis,ie=w?-M[j]/2+V+J+Q+O.mainAxis:Y+J+Q+O.mainAxis,ne=e.elements.arrow&&yh(e.elements.arrow),oe=ne?C==="y"?ne.clientTop||0:ne.clientLeft||0:0,H=(F=I==null?void 0:I[C])!=null?F:0,ue=N+ee-H-oe,he=N+ie-H,pe=Nu(p?dm(A,ue):A,N,p?ba(L,he):L);P[C]=pe,$[C]=pe-N}if(a){var $e,re=C==="x"?vo:bo,Ce=C==="x"?fi:pi,G=P[k],X=k==="y"?"height":"width",ve=G+b[re],ke=G-b[Ce],_e=[vo,bo].indexOf(v)!==-1,fe=($e=I==null?void 0:I[k])!=null?$e:0,ae=_e?ve:G-M[X]-_[X]-fe+O.altAxis,xe=_e?G+M[X]+_[X]-fe-O.altAxis:ke,we=p&&_e?C6(ae,G,xe):Nu(p?ae:ve,G,p?xe:ke);P[k]=we,$[k]=we-G}e.modifiersData[o]=$}}const Z6={name:"preventOverflow",enabled:!0,phase:"main",fn:J6,requiresIfExists:["offset"]};function eU(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function tU(t){return t===Vo(t)||!li(t)?e1(t):eU(t)}function nU(t){var e=t.getBoundingClientRect(),n=mc(e.width)/t.offsetWidth||1,o=mc(e.height)/t.offsetHeight||1;return n!==1||o!==1}function oU(t,e,n){n===void 0&&(n=!1);var o=li(e),i=li(e)&&nU(e),r=As(e),s=gc(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((lr(e)!=="body"||n1(r))&&(a=tU(e)),li(e)?(l=gc(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=t1(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function iU(t){var e=new Map,n=new Set,o=[];t.forEach(function(r){e.set(r.name,r)});function i(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),o.push(r)}return t.forEach(function(r){n.has(r.name)||i(r)}),o}function rU(t){var e=iU(t);return g6.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function sU(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function aU(t){var e=t.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}var bP={placement:"bottom",modifiers:[],strategy:"absolute"};function yP(){for(var t=arguments.length,e=new Array(t),n=0;n{r||a(dU(i)||document.body)},[i,r]),nn(()=>{if(s&&!r)return wd(n,s),()=>{wd(n,null)}},[n,s,r]),r){if(x.isValidElement(o)){const c={ref:l};return x.cloneElement(o,c)}return f.jsx(x.Fragment,{children:o})}return f.jsx(x.Fragment,{children:s&&Ic.createPortal(o,s)})});function hU(t){return Ie("MuiPopper",t)}Te("MuiPopper",["root"]);const fU=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],pU=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function mU(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function Ty(t){return typeof t=="function"?t():t}function gU(t){return t.nodeType!==void 0}const vU=()=>Oe({root:["root"]},YW(hU)),bU={},yU=x.forwardRef(function(e,n){var o;const{anchorEl:i,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:h,slotProps:p={},slots:g={},TransitionProps:m}=e,b=ce(e,fU),v=x.useRef(null),y=mt(v,n),w=x.useRef(null),C=mt(w,h),k=x.useRef(C);nn(()=>{k.current=C},[C]),x.useImperativeHandle(h,()=>w.current,[]);const P=mU(u,s),[M,_]=x.useState(P),[R,O]=x.useState(Ty(i));x.useEffect(()=>{w.current&&w.current.forceUpdate()}),x.useEffect(()=>{i&&O(Ty(i))},[i]),nn(()=>{if(!R||!c)return;const D=A=>{_(A.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{D(A)}}];l!=null&&(j=j.concat(l)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const N=uU(R,v.current,S({placement:P},d,{modifiers:j}));return k.current(N),()=>{N.destroy(),k.current(null)}},[R,a,l,c,d,P]);const I={placement:M};m!==null&&(I.TransitionProps=m);const $=vU(),F=(o=g.root)!=null?o:"div",E=nt({elementType:F,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:$.root});return f.jsx(F,S({},E,{children:typeof r=="function"?r(I):r}))}),xU=x.forwardRef(function(e,n){const{anchorEl:o,children:i,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:h=bU,popperRef:p,style:g,transition:m=!1,slotProps:b={},slots:v={}}=e,y=ce(e,pU),[w,C]=x.useState(!0),k=()=>{C(!1)},P=()=>{C(!0)};if(!l&&!u&&(!m||w))return null;let M;if(r)M=r;else if(o){const O=Ty(o);M=O&&gU(O)?Wt(O).body:Wt(null).body}const _=!u&&l&&(!m||w)?"none":void 0,R=m?{in:u,onEnter:k,onExited:P}:void 0;return f.jsx(RE,{disablePortal:a,container:M,children:f.jsx(yU,S({anchorEl:o,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!w:u,placement:d,popperOptions:h,popperRef:p,slotProps:b,slots:v},y,{style:S({position:"fixed",top:0,left:0,display:_},g),TransitionProps:R,children:i}))})});function wU(t){const e=Wt(t);return e.body===t?ir(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Vu(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function xP(t){return parseInt(ir(t).getComputedStyle(t).paddingRight,10)||0}function CU(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,o=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||o}function wP(t,e,n,o,i){const r=[e,n,...o];[].forEach.call(t.children,s=>{const a=r.indexOf(s)===-1,l=!CU(s);a&&l&&Vu(s,i)})}function v0(t,e){let n=-1;return t.some((o,i)=>e(o)?(n=i,!0):!1),n}function SU(t,e){const n=[],o=t.container;if(!e.disableScrollLock){if(wU(o)){const s=wI(Wt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${xP(o)+s}px`;const a=Wt(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${xP(l)+s}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=Wt(o).body;else{const s=o.parentElement,a=ir(o);r=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:a})=>{r?s.style.setProperty(a,r):s.style.removeProperty(a)})}}function kU(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class PU{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,n){let o=this.modals.indexOf(e);if(o!==-1)return o;o=this.modals.length,this.modals.push(e),e.modalRef&&Vu(e.modalRef,!1);const i=kU(n);wP(n,e.mount,e.modalRef,i,!0);const r=v0(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(e),o):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:i}),o)}mount(e,n){const o=v0(this.containers,r=>r.modals.indexOf(e)!==-1),i=this.containers[o];i.restore||(i.restore=SU(i,n))}remove(e,n=!0){const o=this.modals.indexOf(e);if(o===-1)return o;const i=v0(this.containers,s=>s.modals.indexOf(e)!==-1),r=this.containers[i];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(o,1),r.modals.length===0)r.restore&&r.restore(),e.modalRef&&Vu(e.modalRef,n),wP(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&Vu(s.modalRef,!1)}return o}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function MU(t){return typeof t=="function"?t():t}function _U(t){return t?t.props.hasOwnProperty("in"):!1}const RU=new PU;function TU(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=RU,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=t,h=x.useRef({}),p=x.useRef(null),g=x.useRef(null),m=mt(g,d),[b,v]=x.useState(!u),y=_U(l);let w=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(w=!1);const C=()=>Wt(p.current),k=()=>(h.current.modalRef=g.current,h.current.mount=p.current,h.current),P=()=>{i.mount(k(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},M=je(()=>{const j=MU(e)||C().body;i.add(k(),j),g.current&&P()}),_=x.useCallback(()=>i.isTopModal(k()),[i]),R=je(j=>{p.current=j,j&&(u&&_()?P():g.current&&Vu(g.current,w))}),O=x.useCallback(()=>{i.remove(k(),w)},[w,i]);x.useEffect(()=>()=>{O()},[O]),x.useEffect(()=>{u?M():(!y||!r)&&O()},[u,O,y,r,M]);const I=j=>N=>{var A;(A=j.onKeyDown)==null||A.call(j,N),!(N.key!=="Escape"||N.which===229||!_())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},$=j=>N=>{var A;(A=j.onClick)==null||A.call(j,N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(j={})=>{const N=Au(t);delete N.onTransitionEnter,delete N.onTransitionExited;const A=S({},N,j);return S({role:"presentation"},A,{onKeyDown:I(A),ref:m})},getBackdropProps:(j={})=>{const N=j;return S({"aria-hidden":!0},N,{onClick:$(N),open:u})},getTransitionProps:()=>{const j=()=>{v(!1),s&&s()},N=()=>{v(!0),a&&a(),r&&O()};return{onEnter:em(j,l==null?void 0:l.props.onEnter),onExited:em(N,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:R,isTopModal:_,exited:b,hasTransition:y}}const OU=Math.min,IU=Math.max,hm=Math.round,uf=Math.floor,fm=t=>({x:t,y:t});function EU(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function TE(t){return IE(t)?(t.nodeName||"").toLowerCase():"#document"}function Oi(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function OE(t){var e;return(e=(IE(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function IE(t){return t instanceof Node||t instanceof Oi(t).Node}function Oy(t){return t instanceof Element||t instanceof Oi(t).Element}function o1(t){return t instanceof HTMLElement||t instanceof Oi(t).HTMLElement}function CP(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oi(t).ShadowRoot}function EE(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=i1(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function DU(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $U(t){return["html","body","#document"].includes(TE(t))}function i1(t){return Oi(t).getComputedStyle(t)}function FU(t){if(TE(t)==="html")return t;const e=t.assignedSlot||t.parentNode||CP(t)&&t.host||OE(t);return CP(e)?e.host:e}function DE(t){const e=FU(t);return $U(e)?t.ownerDocument?t.ownerDocument.body:t.body:o1(e)&&EE(e)?e:DE(e)}function pm(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=DE(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=Oi(i);return r?e.concat(s,s.visualViewport||[],EE(i)?i:[],s.frameElement&&n?pm(s.frameElement):[]):e.concat(i,pm(i,[],n))}function jU(t){const e=i1(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=o1(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,a=hm(n)!==r||hm(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function r1(t){return Oy(t)?t:t.contextElement}function b0(t){const e=r1(t);if(!o1(e))return fm(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=jU(e);let s=(r?hm(n.width):n.width)/o,a=(r?hm(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const LU=fm(0);function AU(t){const e=Oi(t);return!DU()||!e.visualViewport?LU:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function NU(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Oi(t)?!1:e}function SP(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=r1(t);let s=fm(1);e&&(o?Oy(o)&&(s=b0(o)):s=b0(t));const a=NU(r,n,o)?AU(r):fm(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const h=Oi(r),p=o&&Oy(o)?Oi(o):o;let g=h.frameElement;for(;g&&o&&p!==h;){const m=b0(g),b=g.getBoundingClientRect(),v=i1(g),y=b.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,w=b.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=y,c+=w,g=Oi(g).frameElement}}return EU({width:u,height:d,x:l,y:c})}function zU(t,e){let n=null,o;const i=OE(t);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const{left:c,top:u,width:d,height:h}=t.getBoundingClientRect();if(a||e(),!d||!h)return;const p=uf(u),g=uf(i.clientWidth-(c+d)),m=uf(i.clientHeight-(u+h)),b=uf(c),y={rootMargin:-p+"px "+-g+"px "+-m+"px "+-b+"px",threshold:IU(0,OU(1,l))||1};let w=!0;function C(k){const P=k[0].intersectionRatio;if(P!==l){if(!w)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(C,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,y)}n.observe(t)}return s(!0),r}function VU(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=r1(t),u=i||r?[...c?pm(c):[],...pm(e)]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),r&&v.addEventListener("resize",n)});const d=c&&a?zU(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(e)})),n()}),c&&!l&&p.observe(c),p.observe(e));let g,m=l?SP(t):null;l&&b();function b(){const v=SP(t);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,g=requestAnimationFrame(b)}return n(),()=>{u.forEach(v=>{i&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const BU=2;function $E(t,e){return t-e}function Jc(t,e,n){return t==null?e:Math.min(Math.max(e,t),n)}function kP(t,e){var n;const{index:o}=(n=t.reduce((i,r,s)=>{const a=Math.abs(e-r);return i===null||a({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},GU=t=>t;let pf;function MP(){return pf===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?pf=CSS.supports("touch-action","none"):pf=!0),pf}function KU(t){const{"aria-labelledby":e,defaultValue:n,disabled:o=!1,disableSwap:i=!1,isRtl:r=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:h="horizontal",rootRef:p,scale:g=GU,step:m=1,tabIndex:b,value:v}=t,y=x.useRef(),[w,C]=x.useState(-1),[k,P]=x.useState(-1),[M,_]=x.useState(!1),R=x.useRef(0),[O,I]=Rn({controlled:v,default:n??l,name:"Slider"}),$=u&&((fe,ae,xe)=>{const we=fe.nativeEvent||fe,be=new we.constructor(we.type,we);Object.defineProperty(be,"target",{writable:!0,value:{value:ae,name:c}}),u(be,ae,xe)}),F=Array.isArray(O);let E=F?O.slice().sort($E):[O];E=E.map(fe=>Jc(fe,l,a));const D=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((fe,ae)=>({value:l+m*ae})):s||[],j=D.map(fe=>fe.value),{isFocusVisibleRef:N,onBlur:A,onFocus:L,ref:V}=xg(),[W,Y]=x.useState(-1),se=x.useRef(),B=mt(V,se),U=mt(p,B),z=fe=>ae=>{var xe;const we=Number(ae.currentTarget.getAttribute("data-index"));L(ae),N.current===!0&&Y(we),P(we),fe==null||(xe=fe.onFocus)==null||xe.call(fe,ae)},Q=fe=>ae=>{var xe;A(ae),N.current===!1&&Y(-1),P(-1),fe==null||(xe=fe.onBlur)==null||xe.call(fe,ae)};nn(()=>{if(o&&se.current.contains(document.activeElement)){var fe;(fe=document.activeElement)==null||fe.blur()}},[o]),o&&w!==-1&&C(-1),o&&W!==-1&&Y(-1);const J=fe=>ae=>{var xe;(xe=fe.onChange)==null||xe.call(fe,ae);const we=Number(ae.currentTarget.getAttribute("data-index")),be=E[we],De=j.indexOf(be);let We=ae.target.valueAsNumber;if(D&&m==null){const Ae=j[j.length-1];We>Ae?We=Ae:We{const{current:xe}=se,{width:we,height:be,bottom:De,left:We}=xe.getBoundingClientRect();let Ae;ie.indexOf("vertical")===0?Ae=(De-fe.y)/be:Ae=(fe.x-We)/we,ie.indexOf("-reverse")!==-1&&(Ae=1-Ae);let ge;if(ge=HU(Ae,l,a),m)ge=UU(ge,m,l);else{const te=kP(j,ge);ge=j[te]}ge=Jc(ge,l,a);let Ne=0;if(F){ae?Ne=ee.current:Ne=kP(E,ge),i&&(ge=Jc(ge,E[Ne-1]||-1/0,E[Ne+1]||1/0));const te=ge;ge=PP({values:E,newValue:ge,index:Ne}),i&&ae||(Ne=ge.indexOf(te),ee.current=Ne)}return{newValue:ge,activeIndex:Ne}},oe=je(fe=>{const ae=df(fe,y);if(!ae)return;if(R.current+=1,fe.type==="mousemove"&&fe.buttons===0){H(fe);return}const{newValue:xe,activeIndex:we}=ne({finger:ae,move:!0});hf({sliderRef:se,activeIndex:we,setActive:C}),I(xe),!M&&R.current>BU&&_(!0),$&&!ff(xe,O)&&$(fe,xe,we)}),H=je(fe=>{const ae=df(fe,y);if(_(!1),!ae)return;const{newValue:xe}=ne({finger:ae,move:!0});C(-1),fe.type==="touchend"&&P(-1),d&&d(fe,xe),y.current=void 0,he()}),ue=je(fe=>{if(o)return;MP()||fe.preventDefault();const ae=fe.changedTouches[0];ae!=null&&(y.current=ae.identifier);const xe=df(fe,y);if(xe!==!1){const{newValue:be,activeIndex:De}=ne({finger:xe});hf({sliderRef:se,activeIndex:De,setActive:C}),I(be),$&&!ff(be,O)&&$(fe,be,De)}R.current=0;const we=Wt(se.current);we.addEventListener("touchmove",oe,{passive:!0}),we.addEventListener("touchend",H,{passive:!0})}),he=x.useCallback(()=>{const fe=Wt(se.current);fe.removeEventListener("mousemove",oe),fe.removeEventListener("mouseup",H),fe.removeEventListener("touchmove",oe),fe.removeEventListener("touchend",H)},[H,oe]);x.useEffect(()=>{const{current:fe}=se;return fe.addEventListener("touchstart",ue,{passive:MP()}),()=>{fe.removeEventListener("touchstart",ue),he()}},[he,ue]),x.useEffect(()=>{o&&he()},[o,he]);const pe=fe=>ae=>{var xe;if((xe=fe.onMouseDown)==null||xe.call(fe,ae),o||ae.defaultPrevented||ae.button!==0)return;ae.preventDefault();const we=df(ae,y);if(we!==!1){const{newValue:De,activeIndex:We}=ne({finger:we});hf({sliderRef:se,activeIndex:We,setActive:C}),I(De),$&&!ff(De,O)&&$(ae,De,We)}R.current=0;const be=Wt(se.current);be.addEventListener("mousemove",oe,{passive:!0}),be.addEventListener("mouseup",H)},$e=mm(F?E[0]:l,l,a),re=mm(E[E.length-1],l,a)-$e,Ce=(fe={})=>{const ae=Au(fe),xe={onMouseDown:pe(ae||{})},we=S({},ae,xe);return S({},fe,{ref:U},we)},G=fe=>ae=>{var xe;(xe=fe.onMouseOver)==null||xe.call(fe,ae);const we=Number(ae.currentTarget.getAttribute("data-index"));P(we)},X=fe=>ae=>{var xe;(xe=fe.onMouseLeave)==null||xe.call(fe,ae),P(-1)};return{active:w,axis:ie,axisProps:qU,dragging:M,focusedThumbIndex:W,getHiddenInputProps:(fe={})=>{var ae;const xe=Au(fe),we={onChange:J(xe||{}),onFocus:z(xe||{}),onBlur:Q(xe||{})},be=S({},xe,we);return S({tabIndex:b,"aria-labelledby":e,"aria-orientation":h,"aria-valuemax":g(a),"aria-valuemin":g(l),name:c,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":(ae=t.step)!=null?ae:void 0,disabled:o},fe,be,{style:S({},vV,{direction:r?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ce,getThumbProps:(fe={})=>{const ae=Au(fe),xe={onMouseOver:G(ae||{}),onMouseLeave:X(ae||{})};return S({},fe,ae,xe)},marks:D,open:k,range:F,rootRef:U,trackLeap:re,trackOffset:$e,values:E,getThumbStyle:fe=>({pointerEvents:w!==-1&&w!==fe?"none":void 0})}}const YU=["onChange","maxRows","minRows","style","value"];function mf(t){return parseInt(t,10)||0}const QU={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _P(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflow}const XU=x.forwardRef(function(e,n){const{onChange:o,maxRows:i,minRows:r=1,style:s,value:a}=e,l=ce(e,YU),{current:c}=x.useRef(a!=null),u=x.useRef(null),d=mt(n,u),h=x.useRef(null),p=x.useRef(0),[g,m]=x.useState({outerHeightStyle:0}),b=x.useCallback(()=>{const C=u.current,P=ir(C).getComputedStyle(C);if(P.width==="0px")return{outerHeightStyle:0};const M=h.current;M.style.width=P.width,M.value=C.value||e.placeholder||"x",M.value.slice(-1)===` +`&&(M.value+=" ");const _=P.boxSizing,R=mf(P.paddingBottom)+mf(P.paddingTop),O=mf(P.borderBottomWidth)+mf(P.borderTopWidth),I=M.scrollHeight;M.value="x";const $=M.scrollHeight;let F=I;r&&(F=Math.max(Number(r)*$,F)),i&&(F=Math.min(Number(i)*$,F)),F=Math.max(F,$);const E=F+(_==="border-box"?R+O:0),D=Math.abs(F-I)<=1;return{outerHeightStyle:E,overflow:D}},[i,r,e.placeholder]),v=(C,k)=>{const{outerHeightStyle:P,overflow:M}=k;return p.current<20&&(P>0&&Math.abs((C.outerHeightStyle||0)-P)>1||C.overflow!==M)?(p.current+=1,{overflow:M,outerHeightStyle:P}):C},y=x.useCallback(()=>{const C=b();_P(C)||m(k=>v(k,C))},[b]);nn(()=>{const C=()=>{const I=b();_P(I)||Ic.flushSync(()=>{m($=>v($,I))})},k=()=>{p.current=0,C()};let P;const M=Ba(k),_=u.current,R=ir(_);R.addEventListener("resize",M);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(k),O.observe(_)),()=>{M.clear(),cancelAnimationFrame(P),R.removeEventListener("resize",M),O&&O.disconnect()}},[b]),nn(()=>{y()}),x.useEffect(()=>{p.current=0},[a]);const w=C=>{p.current=0,c||y(),o&&o(C)};return f.jsxs(x.Fragment,{children:[f.jsx("textarea",S({value:a,onChange:w,ref:d,rows:r,style:S({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},s)},l)),f.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},QU.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function RP(t){return typeof t.normalize<"u"?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function JU(t={}){const{ignoreAccents:e=!0,ignoreCase:n=!0,limit:o,matchFrom:i="any",stringify:r,trim:s=!1}=t;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),e&&(u=RP(u));const d=u?a.filter(h=>{let p=(r||c)(h);return n&&(p=p.toLowerCase()),e&&(p=RP(p)),i==="start"?p.indexOf(u)===0:p.indexOf(u)>-1}):a;return typeof o=="number"?d.slice(0,o):d}}function y0(t,e){for(let n=0;n{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))};function t8(t){const{unstable_isActiveElementInListbox:e=e8,unstable_classNamePrefix:n="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:r=!1,blurOnSelect:s=!1,clearOnBlur:a=!t.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=t.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:h=!1,disabled:p,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:b=ZU,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionKey:C,getOptionLabel:k=de=>{var Z;return(Z=de.label)!=null?Z:de},groupBy:P,handleHomeEndKeys:M=!t.freeSolo,id:_,includeInputInList:R=!1,inputValue:O,isOptionEqualToValue:I=(de,Z)=>de===Z,multiple:$=!1,onChange:F,onClose:E,onHighlightChange:D,onInputChange:j,onOpen:N,open:A,openOnFocus:L=!1,options:V,readOnly:W=!1,selectOnFocus:Y=!t.freeSolo,value:se}=t,B=cr(_);let U=k;U=de=>{const Z=k(de);return typeof Z!="string"?String(Z):Z};const z=x.useRef(!1),Q=x.useRef(!0),J=x.useRef(null),ee=x.useRef(null),[ie,ne]=x.useState(null),[oe,H]=x.useState(-1),ue=i?0:-1,he=x.useRef(ue),[pe,$e]=Rn({controlled:se,default:u,name:c}),[re,Ce]=Rn({controlled:O,default:"",name:c,state:"inputValue"}),[G,X]=x.useState(!1),ve=x.useCallback((de,Z)=>{if(!($?pe.length!(v&&($?pe:[pe]).some(Z=>Z!==null&&I(de,Z)))),{inputValue:xe&&fe?"":re,getOptionLabel:U}):[],De=xw({filteredOptions:be,value:pe,inputValue:re});x.useEffect(()=>{const de=pe!==De.value;G&&!de||y&&!de||ve(null,pe)},[pe,ve,G,De.value,y]);const We=ke&&be.length>0&&!W,Ae=je(de=>{de===-1?J.current.focus():ie.querySelector(`[data-tag-index="${de}"]`).focus()});x.useEffect(()=>{$&&oe>pe.length-1&&(H(-1),Ae(-1))},[pe,$,oe,Ae]);function ge(de,Z){if(!ee.current||de<0||de>=be.length)return-1;let Ee=de;for(;;){const Be=ee.current.querySelector(`[data-option-index="${Ee}"]`),ot=g?!1:!Be||Be.disabled||Be.getAttribute("aria-disabled")==="true";if(Be&&Be.hasAttribute("tabindex")&&!ot)return Ee;if(Z==="next"?Ee=(Ee+1)%be.length:Ee=(Ee-1+be.length)%be.length,Ee===de)return-1}}const Ne=je(({event:de,index:Z,reason:Ee="auto"})=>{if(he.current=Z,Z===-1?J.current.removeAttribute("aria-activedescendant"):J.current.setAttribute("aria-activedescendant",`${B}-option-${Z}`),D&&D(de,Z===-1?null:be[Z],Ee),!ee.current)return;const Be=ee.current.querySelector(`[role="option"].${n}-focused`);Be&&(Be.classList.remove(`${n}-focused`),Be.classList.remove(`${n}-focusVisible`));let ot=ee.current;if(ee.current.getAttribute("role")!=="listbox"&&(ot=ee.current.parentElement.querySelector('[role="listbox"]')),!ot)return;if(Z===-1){ot.scrollTop=0;return}const Yt=ee.current.querySelector(`[data-option-index="${Z}"]`);if(Yt&&(Yt.classList.add(`${n}-focused`),Ee==="keyboard"&&Yt.classList.add(`${n}-focusVisible`),ot.scrollHeight>ot.clientHeight&&Ee!=="mouse"&&Ee!=="touch")){const rn=Yt,Je=ot.clientHeight+ot.scrollTop,Nn=rn.offsetTop+rn.offsetHeight;Nn>Je?ot.scrollTop=Nn-ot.clientHeight:rn.offsetTop-rn.offsetHeight*(P?1.3:0){if(!we)return;const Yt=ge((()=>{const rn=be.length-1;if(Z==="reset")return ue;if(Z==="start")return 0;if(Z==="end")return rn;const Je=he.current+Z;return Je<0?Je===-1&&R?-1:m&&he.current!==-1||Math.abs(Z)>1?0:rn:Je>rn?Je===rn+1&&R?-1:m||Math.abs(Z)>1?rn:0:Je})(),Ee);if(Ne({index:Yt,reason:Be,event:de}),o&&Z!=="reset")if(Yt===-1)J.current.value=re;else{const rn=U(be[Yt]);J.current.value=rn,rn.toLowerCase().indexOf(re.toLowerCase())===0&&re.length>0&&J.current.setSelectionRange(re.length,rn.length)}}),ye=()=>{const de=(Z,Ee)=>{const Be=Z?U(Z):"",ot=Ee?U(Ee):"";return Be===ot};if(he.current!==-1&&De.filteredOptions&&De.filteredOptions.length!==be.length&&De.inputValue===re&&($?pe.length===De.value.length&&De.value.every((Z,Ee)=>U(pe[Ee])===U(Z)):de(De.value,pe))){const Z=De.filteredOptions[he.current];if(Z&&be.some(Be=>U(Be)===U(Z)))return!0}return!1},Ve=x.useCallback(()=>{if(!we||ye())return;const de=$?pe[0]:pe;if(be.length===0||de==null){te({diff:"reset"});return}if(ee.current){if(de!=null){const Z=be[he.current];if($&&Z&&y0(pe,Be=>I(Z,Be))!==-1)return;const Ee=y0(be,Be=>I(Be,de));Ee===-1?te({diff:"reset"}):Ne({index:Ee});return}if(he.current>=be.length-1){Ne({index:be.length-1});return}Ne({index:he.current})}},[be.length,$?!1:pe,v,te,Ne,we,re,$]),Ke=je(de=>{wd(ee,de),de&&Ve()});x.useEffect(()=>{Ve()},[Ve]);const Qe=de=>{ke||(_e(!0),ae(!0),N&&N(de))},ct=(de,Z)=>{ke&&(_e(!1),E&&E(de,Z))},yt=(de,Z,Ee,Be)=>{if($){if(pe.length===Z.length&&pe.every((ot,Yt)=>ot===Z[Yt]))return}else if(pe===Z)return;F&&F(de,Z,Ee,Be),$e(Z)},$t=x.useRef(!1),Tt=(de,Z,Ee="selectOption",Be="options")=>{let ot=Ee,Yt=Z;if($){Yt=Array.isArray(pe)?pe.slice():[];const rn=y0(Yt,Je=>I(Z,Je));rn===-1?Yt.push(Z):Be!=="freeSolo"&&(Yt.splice(rn,1),ot="removeOption")}ve(de,Yt),yt(de,Yt,ot,{option:Z}),!h&&(!de||!de.ctrlKey&&!de.metaKey)&&ct(de,ot),(s===!0||s==="touch"&&$t.current||s==="mouse"&&!$t.current)&&J.current.blur()};function st(de,Z){if(de===-1)return-1;let Ee=de;for(;;){if(Z==="next"&&Ee===pe.length||Z==="previous"&&Ee===-1)return-1;const Be=ie.querySelector(`[data-tag-index="${Ee}"]`);if(!Be||!Be.hasAttribute("tabindex")||Be.disabled||Be.getAttribute("aria-disabled")==="true")Ee+=Z==="next"?1:-1;else return Ee}}const Ft=(de,Z)=>{if(!$)return;re===""&&ct(de,"toggleInput");let Ee=oe;oe===-1?re===""&&Z==="previous"&&(Ee=pe.length-1):(Ee+=Z==="next"?1:-1,Ee<0&&(Ee=0),Ee===pe.length&&(Ee=-1)),Ee=st(Ee,Z),H(Ee),Ae(Ee)},In=de=>{z.current=!0,Ce(""),j&&j(de,"","clear"),yt(de,$?[]:null,"clear")},on=de=>Z=>{if(de.onKeyDown&&de.onKeyDown(Z),!Z.defaultMuiPrevented&&(oe!==-1&&["ArrowLeft","ArrowRight"].indexOf(Z.key)===-1&&(H(-1),Ae(-1)),Z.which!==229))switch(Z.key){case"Home":we&&M&&(Z.preventDefault(),te({diff:"start",direction:"next",reason:"keyboard",event:Z}));break;case"End":we&&M&&(Z.preventDefault(),te({diff:"end",direction:"previous",reason:"keyboard",event:Z}));break;case"PageUp":Z.preventDefault(),te({diff:-TP,direction:"previous",reason:"keyboard",event:Z}),Qe(Z);break;case"PageDown":Z.preventDefault(),te({diff:TP,direction:"next",reason:"keyboard",event:Z}),Qe(Z);break;case"ArrowDown":Z.preventDefault(),te({diff:1,direction:"next",reason:"keyboard",event:Z}),Qe(Z);break;case"ArrowUp":Z.preventDefault(),te({diff:-1,direction:"previous",reason:"keyboard",event:Z}),Qe(Z);break;case"ArrowLeft":Ft(Z,"previous");break;case"ArrowRight":Ft(Z,"next");break;case"Enter":if(he.current!==-1&&we){const Ee=be[he.current],Be=w?w(Ee):!1;if(Z.preventDefault(),Be)return;Tt(Z,Ee,"selectOption"),o&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else y&&re!==""&&xe===!1&&($&&Z.preventDefault(),Tt(Z,re,"createOption","freeSolo"));break;case"Escape":we?(Z.preventDefault(),Z.stopPropagation(),ct(Z,"escape")):l&&(re!==""||$&&pe.length>0)&&(Z.preventDefault(),Z.stopPropagation(),In(Z));break;case"Backspace":if($&&!W&&re===""&&pe.length>0){const Ee=oe===-1?pe.length-1:oe,Be=pe.slice();Be.splice(Ee,1),yt(Z,Be,"removeOption",{option:pe[Ee]})}break;case"Delete":if($&&!W&&re===""&&pe.length>0&&oe!==-1){const Ee=oe,Be=pe.slice();Be.splice(Ee,1),yt(Z,Be,"removeOption",{option:pe[Ee]})}break}},Mt=de=>{X(!0),L&&!z.current&&Qe(de)},ao=de=>{if(e(ee)){J.current.focus();return}X(!1),Q.current=!0,z.current=!1,r&&he.current!==-1&&we?Tt(de,be[he.current],"blur"):r&&y&&re!==""?Tt(de,re,"blur","freeSolo"):a&&ve(de,pe),ct(de,"blur")},Ze=de=>{const Z=de.target.value;re!==Z&&(Ce(Z),ae(!1),j&&j(de,Z,"input")),Z===""?!d&&!$&&yt(de,null,"clear"):Qe(de)},tt=de=>{const Z=Number(de.currentTarget.getAttribute("data-option-index"));he.current!==Z&&Ne({event:de,index:Z,reason:"mouse"})},ht=de=>{Ne({event:de,index:Number(de.currentTarget.getAttribute("data-option-index")),reason:"touch"}),$t.current=!0},Ot=de=>{const Z=Number(de.currentTarget.getAttribute("data-option-index"));Tt(de,be[Z],"selectOption"),$t.current=!1},En=de=>Z=>{const Ee=pe.slice();Ee.splice(de,1),yt(Z,Ee,"removeOption",{option:pe[de]})},gn=de=>{ke?ct(de,"toggleInput"):Qe(de)},wo=de=>{de.currentTarget.contains(de.target)&&de.target.getAttribute("id")!==B&&de.preventDefault()},jr=de=>{de.currentTarget.contains(de.target)&&(J.current.focus(),Y&&Q.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),Q.current=!1)},Qn=de=>{!p&&(re===""||!ke)&&gn(de)};let Xn=y&&re.length>0;Xn=Xn||($?pe.length>0:pe!==null);let bi=be;return P&&(bi=be.reduce((de,Z,Ee)=>{const Be=P(Z);return de.length>0&&de[de.length-1].group===Be?de[de.length-1].options.push(Z):de.push({key:Ee,index:Ee,group:Be,options:[Z]}),de},[])),p&&G&&ao(),{getRootProps:(de={})=>S({"aria-owns":We?`${B}-listbox`:null},de,{onKeyDown:on(de),onMouseDown:wo,onClick:jr}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:re,onBlur:ao,onFocus:Mt,onChange:Ze,onMouseDown:Qn,"aria-activedescendant":we?"":null,"aria-autocomplete":o?"both":"list","aria-controls":We?`${B}-listbox`:void 0,"aria-expanded":We,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:In}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:gn}),getTagProps:({index:de})=>S({key:de,"data-tag-index":de,tabIndex:-1},!W&&{onDelete:En(de)}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:Ke,onMouseDown:de=>{de.preventDefault()}}),getOptionProps:({index:de,option:Z})=>{var Ee;const Be=($?pe:[pe]).some(Yt=>Yt!=null&&I(Z,Yt)),ot=w?w(Z):!1;return{key:(Ee=C==null?void 0:C(Z))!=null?Ee:U(Z),tabIndex:-1,role:"option",id:`${B}-option-${de}`,onMouseMove:tt,onClick:Ot,onTouchStart:ht,"data-option-index":de,"aria-disabled":ot,"aria-selected":Be}},id:B,inputValue:re,value:pe,dirty:Xn,expanded:we&&ie,popupOpen:we,focused:G||oe!==-1,anchorEl:ie,setAnchorEl:ne,focusedTag:oe,groupedOptions:bi}}const FE=t=>t.scrollTop;function bc(t,e){var n,o;const{timeout:i,easing:r,style:s={}}=t;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[e.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof r=="object"?r[e.mode]:r,delay:s.transitionDelay}}const n8=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Iy(t){return`scale(${t}, ${t**2})`}const o8={entering:{opacity:1,transform:Iy(1)},entered:{opacity:1,transform:"none"}},x0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jE=x.forwardRef(function(e,n){const{addEndListener:o,appear:i=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:h,onExiting:p,style:g,timeout:m="auto",TransitionComponent:b=Yg}=e,v=ce(e,n8),y=x.useRef(),w=x.useRef(),C=Dt(),k=x.useRef(null),P=mt(k,r.ref,n),M=D=>j=>{if(D){const N=k.current;j===void 0?D(N):D(N,j)}},_=M(u),R=M((D,j)=>{FE(D);const{duration:N,delay:A,easing:L}=bc({style:g,timeout:m,easing:s},{mode:"enter"});let V;m==="auto"?(V=C.transitions.getAutoHeightDuration(D.clientHeight),w.current=V):V=N,D.style.transition=[C.transitions.create("opacity",{duration:V,delay:A}),C.transitions.create("transform",{duration:x0?V:V*.666,delay:A,easing:L})].join(","),l&&l(D,j)}),O=M(c),I=M(p),$=M(D=>{const{duration:j,delay:N,easing:A}=bc({style:g,timeout:m,easing:s},{mode:"exit"});let L;m==="auto"?(L=C.transitions.getAutoHeightDuration(D.clientHeight),w.current=L):L=j,D.style.transition=[C.transitions.create("opacity",{duration:L,delay:N}),C.transitions.create("transform",{duration:x0?L:L*.666,delay:x0?N:N||L*.333,easing:A})].join(","),D.style.opacity=0,D.style.transform=Iy(.75),d&&d(D)}),F=M(h),E=D=>{m==="auto"&&(y.current=setTimeout(D,w.current||0)),o&&o(k.current,D)};return x.useEffect(()=>()=>{clearTimeout(y.current)},[]),f.jsx(b,S({appear:i,in:a,nodeRef:k,onEnter:R,onEntered:O,onEntering:_,onExit:$,onExited:F,onExiting:I,addEndListener:E,timeout:m==="auto"?null:m},v,{children:(D,j)=>x.cloneElement(r,S({style:S({opacity:0,transform:Iy(.75),visibility:D==="exited"&&!a?"hidden":void 0},o8[D],g,r.props.style),ref:P},j))}))});jE.muiSupportAuto=!0;const Rd=jE,i8=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],r8=q(xU,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),s8=x.forwardRef(function(e,n){var o;const i=Wg(),r=Pe({props:e,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:h,modifiers:p,open:g,placement:m,popperOptions:b,popperRef:v,transition:y,slots:w,slotProps:C}=r,k=ce(r,i8),P=(o=w==null?void 0:w.root)!=null?o:l==null?void 0:l.Root,M=S({anchorEl:s,container:u,disablePortal:d,keepMounted:h,modifiers:p,open:g,placement:m,popperOptions:b,popperRef:v,transition:y},k);return f.jsx(r8,S({as:a,direction:i==null?void 0:i.direction,slots:{root:P},slotProps:C??c},M,{ref:n}))}),xh=s8;function a8(t){return Ie("MuiTooltip",t)}const l8=Te("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ls=l8,c8=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function u8(t){return Math.round(t*1e5)/1e5}const d8=t=>{const{classes:e,disableInteractive:n,arrow:o,touch:i,placement:r}=t,s={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",i&&"touch",`tooltipPlacement${le(r.split("-")[0])}`],arrow:["arrow"]};return Oe(s,a8,e)},h8=q(xh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(({theme:t,ownerState:e,open:n})=>S({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!e.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},e.arrow&&{[`&[data-popper-placement*="bottom"] .${ls.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ls.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ls.arrow}`]:S({},e.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ls.arrow}`]:S({},e.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),f8=q("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${le(n.placement.split("-")[0])}`]]}})(({theme:t,ownerState:e})=>S({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Le(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},e.arrow&&{position:"relative",margin:0},e.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${u8(16/14)}em`,fontWeight:t.typography.fontWeightRegular},{[`.${ls.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},e.isRtl?S({marginLeft:"14px"},e.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},e.touch&&{marginRight:"24px"})),[`.${ls.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},e.isRtl?S({marginRight:"14px"},e.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},e.touch&&{marginLeft:"24px"})),[`.${ls.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},e.touch&&{marginBottom:"24px"}),[`.${ls.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},e.touch&&{marginTop:"24px"})})),p8=q("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Le(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let gf=!1,w0=null,Zc={x:0,y:0};function vf(t,e){return n=>{e&&e(n),t(n)}}const m8=x.forwardRef(function(e,n){var o,i,r,s,a,l,c,u,d,h,p,g,m,b,v,y,w,C,k;const P=Pe({props:e,name:"MuiTooltip"}),{arrow:M=!1,children:_,components:R={},componentsProps:O={},describeChild:I=!1,disableFocusListener:$=!1,disableHoverListener:F=!1,disableInteractive:E=!1,disableTouchListener:D=!1,enterDelay:j=100,enterNextDelay:N=0,enterTouchDelay:A=700,followCursor:L=!1,id:V,leaveDelay:W=0,leaveTouchDelay:Y=1500,onClose:se,onOpen:B,open:U,placement:z="bottom",PopperComponent:Q,PopperProps:J={},slotProps:ee={},slots:ie={},title:ne,TransitionComponent:oe=Rd,TransitionProps:H}=P,ue=ce(P,c8),he=x.isValidElement(_)?_:f.jsx("span",{children:_}),pe=Dt(),$e=pe.direction==="rtl",[re,Ce]=x.useState(),[G,X]=x.useState(null),ve=x.useRef(!1),ke=E||L,_e=x.useRef(),fe=x.useRef(),ae=x.useRef(),xe=x.useRef(),[we,be]=Rn({controlled:U,default:!1,name:"Tooltip",state:"open"});let De=we;const We=cr(V),Ae=x.useRef(),ge=x.useCallback(()=>{Ae.current!==void 0&&(document.body.style.WebkitUserSelect=Ae.current,Ae.current=void 0),clearTimeout(xe.current)},[]);x.useEffect(()=>()=>{clearTimeout(_e.current),clearTimeout(fe.current),clearTimeout(ae.current),ge()},[ge]);const Ne=Je=>{clearTimeout(w0),gf=!0,be(!0),B&&!De&&B(Je)},te=je(Je=>{clearTimeout(w0),w0=setTimeout(()=>{gf=!1},800+W),be(!1),se&&De&&se(Je),clearTimeout(_e.current),_e.current=setTimeout(()=>{ve.current=!1},pe.transitions.duration.shortest)}),ye=Je=>{ve.current&&Je.type!=="touchstart"||(re&&re.removeAttribute("title"),clearTimeout(fe.current),clearTimeout(ae.current),j||gf&&N?fe.current=setTimeout(()=>{Ne(Je)},gf?N:j):Ne(Je))},Ve=Je=>{clearTimeout(fe.current),clearTimeout(ae.current),ae.current=setTimeout(()=>{te(Je)},W)},{isFocusVisibleRef:Ke,onBlur:Qe,onFocus:ct,ref:yt}=xg(),[,$t]=x.useState(!1),Tt=Je=>{Qe(Je),Ke.current===!1&&($t(!1),Ve(Je))},st=Je=>{re||Ce(Je.currentTarget),ct(Je),Ke.current===!0&&($t(!0),ye(Je))},Ft=Je=>{ve.current=!0;const Nn=he.props;Nn.onTouchStart&&Nn.onTouchStart(Je)},In=ye,on=Ve,Mt=Je=>{Ft(Je),clearTimeout(ae.current),clearTimeout(_e.current),ge(),Ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",xe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ae.current,ye(Je)},A)},ao=Je=>{he.props.onTouchEnd&&he.props.onTouchEnd(Je),ge(),clearTimeout(ae.current),ae.current=setTimeout(()=>{te(Je)},Y)};x.useEffect(()=>{if(!De)return;function Je(Nn){(Nn.key==="Escape"||Nn.key==="Esc")&&te(Nn)}return document.addEventListener("keydown",Je),()=>{document.removeEventListener("keydown",Je)}},[te,De]);const Ze=mt(he.ref,yt,Ce,n);!ne&&ne!==0&&(De=!1);const tt=x.useRef(),ht=Je=>{const Nn=he.props;Nn.onMouseMove&&Nn.onMouseMove(Je),Zc={x:Je.clientX,y:Je.clientY},tt.current&&tt.current.update()},Ot={},En=typeof ne=="string";I?(Ot.title=!De&&En&&!F?ne:null,Ot["aria-describedby"]=De?We:null):(Ot["aria-label"]=En?ne:null,Ot["aria-labelledby"]=De&&!En?We:null);const gn=S({},Ot,ue,he.props,{className:me(ue.className,he.props.className),onTouchStart:Ft,ref:Ze},L?{onMouseMove:ht}:{}),wo={};D||(gn.onTouchStart=Mt,gn.onTouchEnd=ao),F||(gn.onMouseOver=vf(In,gn.onMouseOver),gn.onMouseLeave=vf(on,gn.onMouseLeave),ke||(wo.onMouseOver=In,wo.onMouseLeave=on)),$||(gn.onFocus=vf(st,gn.onFocus),gn.onBlur=vf(Tt,gn.onBlur),ke||(wo.onFocus=st,wo.onBlur=Tt));const jr=x.useMemo(()=>{var Je;let Nn=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return(Je=J.popperOptions)!=null&&Je.modifiers&&(Nn=Nn.concat(J.popperOptions.modifiers)),S({},J.popperOptions,{modifiers:Nn})},[G,J]),Qn=S({},P,{isRtl:$e,arrow:M,disableInteractive:ke,placement:z,PopperComponentProp:Q,touch:ve.current}),Xn=d8(Qn),bi=(o=(i=ie.popper)!=null?i:R.Popper)!=null?o:h8,de=(r=(s=(a=ie.transition)!=null?a:R.Transition)!=null?s:oe)!=null?r:Rd,Z=(l=(c=ie.tooltip)!=null?c:R.Tooltip)!=null?l:f8,Ee=(u=(d=ie.arrow)!=null?d:R.Arrow)!=null?u:p8,Be=vu(bi,S({},J,(h=ee.popper)!=null?h:O.popper,{className:me(Xn.popper,J==null?void 0:J.className,(p=(g=ee.popper)!=null?g:O.popper)==null?void 0:p.className)}),Qn),ot=vu(de,S({},H,(m=ee.transition)!=null?m:O.transition),Qn),Yt=vu(Z,S({},(b=ee.tooltip)!=null?b:O.tooltip,{className:me(Xn.tooltip,(v=(y=ee.tooltip)!=null?y:O.tooltip)==null?void 0:v.className)}),Qn),rn=vu(Ee,S({},(w=ee.arrow)!=null?w:O.arrow,{className:me(Xn.arrow,(C=(k=ee.arrow)!=null?k:O.arrow)==null?void 0:C.className)}),Qn);return f.jsxs(x.Fragment,{children:[x.cloneElement(he,gn),f.jsx(bi,S({as:Q??xh,placement:z,anchorEl:L?{getBoundingClientRect:()=>({top:Zc.y,left:Zc.x,right:Zc.x,bottom:Zc.y,width:0,height:0})}:re,popperRef:tt,open:re?De:!1,id:We,transition:!0},wo,Be,{popperOptions:jr,children:({TransitionProps:Je})=>f.jsx(de,S({timeout:pe.transitions.duration.shorter},Je,ot,{children:f.jsxs(Z,S({},Yt,{children:[ne,M?f.jsx(Ee,S({},rn,{ref:X})):null]}))}))}))]})}),ft=m8,g8=x.createContext({}),Cs=g8;function v8(t){return Ie("MuiDivider",t)}const b8=Te("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),OP=b8,y8=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],x8=t=>{const{absolute:e,children:n,classes:o,flexItem:i,light:r,orientation:s,textAlign:a,variant:l}=t;return Oe({root:["root",e&&"absolute",l,r&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},v8,o)},w8=q("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,n.orientation==="vertical"&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&n.orientation==="vertical"&&e.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&e.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&e.textAlignLeft]}})(({theme:t,ownerState:e})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Le(t.palette.divider,.08)},e.variant==="inset"&&{marginLeft:72},e.variant==="middle"&&e.orientation==="horizontal"&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},e.variant==="middle"&&e.orientation==="vertical"&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:t})=>S({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:t,ownerState:e})=>S({},e.children&&e.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}}),({theme:t,ownerState:e})=>S({},e.children&&e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}}),({ownerState:t})=>S({},t.textAlign==="right"&&t.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},t.textAlign==="left"&&t.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),C8=q("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,n.orientation==="vertical"&&e.wrapperVertical]}})(({theme:t,ownerState:e})=>S({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},e.orientation==="vertical"&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),LE=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDivider"}),{absolute:i=!1,children:r,className:s,component:a=r?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=a!=="hr"?"separator":void 0,textAlign:h="center",variant:p="fullWidth"}=o,g=ce(o,y8),m=S({},o,{absolute:i,component:a,flexItem:l,light:c,orientation:u,role:d,textAlign:h,variant:p}),b=x8(m);return f.jsx(w8,S({as:a,className:me(b.root,s),role:d,ref:n,ownerState:m},g,{children:r?f.jsx(C8,{className:b.wrapper,ownerState:m,children:r}):null}))});LE.muiSkipListHighlight=!0;const gm=LE;function S8(t){return Ie("MuiListItemIcon",t)}const k8=Te("MuiListItemIcon",["root","alignItemsFlexStart"]),IP=k8,P8=["className"],M8=t=>{const{alignItems:e,classes:n}=t;return Oe({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},S8,n)},_8=q("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(({theme:t,ownerState:e})=>S({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},e.alignItems==="flex-start"&&{marginTop:8})),R8=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiListItemIcon"}),{className:i}=o,r=ce(o,P8),s=x.useContext(Cs),a=S({},o,{alignItems:s.alignItems}),l=M8(a);return f.jsx(_8,S({className:me(l.root,i),ownerState:a,ref:n},r))}),Co=R8,T8=Te("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),EP=T8;function O8(t){return Ie("MuiMenuItem",t)}const I8=Te("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eu=I8,E8=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],D8=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},$8=t=>{const{disabled:e,dense:n,divider:o,disableGutters:i,selected:r,classes:s}=t,l=Oe({root:["root",n&&"dense",e&&"disabled",!i&&"gutters",o&&"divider",r&&"selected"]},O8,s);return S({},s,l)},F8=q(hi,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:D8})(({theme:t,ownerState:e})=>S({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${eu.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Le(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${eu.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${eu.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Le(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${eu.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${eu.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${OP.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${OP.inset}`]:{marginLeft:52},[`& .${EP.root}`]:{marginTop:0,marginBottom:0},[`& .${EP.inset}`]:{paddingLeft:36},[`& .${IP.root}`]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${IP.root} svg`]:{fontSize:"1.25rem"}}))),j8=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:h}=o,p=ce(o,E8),g=x.useContext(Cs),m=x.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),b=x.useRef(null);nn(()=>{i&&b.current&&b.current.focus()},[i]);const v=S({},o,{dense:m.dense,divider:a,disableGutters:l}),y=$8(o),w=mt(b,n);let C;return o.disabled||(C=d!==void 0?d:-1),f.jsx(Cs.Provider,{value:m,children:f.jsx(F8,S({ref:w,role:u,tabIndex:C,component:r,focusVisibleClassName:me(y.focusVisible,c),className:me(y.root,h)},p,{ownerState:v,classes:y}))})}),sn=j8;function Ha({props:t,states:e,muiFormControl:n}){return e.reduce((o,i)=>(o[i]=t[i],n&&typeof t[i]>"u"&&(o[i]=n[i]),o),{})}const L8=x.createContext(void 0),Jg=L8;function Dr(){return x.useContext(Jg)}function A8(t){return f.jsx(SB,S({},t,{defaultTheme:qg,themeId:Ra}))}function DP(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function vm(t,e=!1){return t&&(DP(t.value)&&t.value!==""||e&&DP(t.defaultValue)&&t.defaultValue!=="")}function N8(t){return t.startAdornment}function z8(t){return Ie("MuiInputBase",t)}const V8=Te("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oo=V8,B8=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Zg=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${le(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},ev=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},H8=t=>{const{classes:e,color:n,disabled:o,error:i,endAdornment:r,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:g}=t,m={root:["root",`color${le(n)}`,o&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",h&&h!=="medium"&&`size${le(h)}`,u&&"multiline",p&&"adornedStart",r&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",o&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",r&&"inputAdornedEnd",d&&"readOnly"]};return Oe(m,z8,e)},tv=q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zg})(({theme:t,ownerState:e})=>S({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oo.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&S({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),nv=q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ev})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light",o=S({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},r=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oo.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Oo.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),W8=f.jsx(A8,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),U8=x.forwardRef(function(e,n){var o;const i=Pe({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:p,endAdornment:g,fullWidth:m=!1,id:b,inputComponent:v="input",inputProps:y={},inputRef:w,maxRows:C,minRows:k,multiline:P=!1,name:M,onBlur:_,onChange:R,onClick:O,onFocus:I,onKeyDown:$,onKeyUp:F,placeholder:E,readOnly:D,renderSuffix:j,rows:N,slotProps:A={},slots:L={},startAdornment:V,type:W="text",value:Y}=i,se=ce(i,B8),B=y.value!=null?y.value:Y,{current:U}=x.useRef(B!=null),z=x.useRef(),Q=x.useCallback(we=>{},[]),J=mt(z,w,y.ref,Q),[ee,ie]=x.useState(!1),ne=Dr(),oe=Ha({props:i,muiFormControl:ne,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=ne?ne.focused:ee,x.useEffect(()=>{!ne&&h&&ee&&(ie(!1),_&&_())},[ne,h,ee,_]);const H=ne&&ne.onFilled,ue=ne&&ne.onEmpty,he=x.useCallback(we=>{vm(we)?H&&H():ue&&ue()},[H,ue]);nn(()=>{U&&he({value:B})},[B,he,U]);const pe=we=>{if(oe.disabled){we.stopPropagation();return}I&&I(we),y.onFocus&&y.onFocus(we),ne&&ne.onFocus?ne.onFocus(we):ie(!0)},$e=we=>{_&&_(we),y.onBlur&&y.onBlur(we),ne&&ne.onBlur?ne.onBlur(we):ie(!1)},re=(we,...be)=>{if(!U){const De=we.target||z.current;if(De==null)throw new Error(Ms(1));he({value:De.value})}y.onChange&&y.onChange(we,...be),R&&R(we,...be)};x.useEffect(()=>{he(z.current)},[]);const Ce=we=>{z.current&&we.currentTarget===we.target&&z.current.focus(),O&&O(we)};let G=v,X=y;P&&G==="input"&&(N?X=S({type:void 0,minRows:N,maxRows:N},X):X=S({type:void 0,maxRows:C,minRows:k},X),G=XU);const ve=we=>{he(we.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};x.useEffect(()=>{ne&&ne.setAdornedStart(!!V)},[ne,V]);const ke=S({},i,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:ne,fullWidth:m,hiddenLabel:oe.hiddenLabel,multiline:P,size:oe.size,startAdornment:V,type:W}),_e=H8(ke),fe=L.root||c.Root||tv,ae=A.root||u.root||{},xe=L.input||c.Input||nv;return X=S({},X,(o=A.input)!=null?o:u.input),f.jsxs(x.Fragment,{children:[!p&&W8,f.jsxs(fe,S({},ae,!tr(fe)&&{ownerState:S({},ke,ae.ownerState)},{ref:n,onClick:Ce},se,{className:me(_e.root,ae.className,l,D&&"MuiInputBase-readOnly"),children:[V,f.jsx(Jg.Provider,{value:null,children:f.jsx(xe,S({ownerState:ke,"aria-invalid":oe.error,"aria-describedby":r,autoComplete:s,autoFocus:a,defaultValue:d,disabled:oe.disabled,id:b,onAnimationStart:ve,name:M,placeholder:E,readOnly:D,required:oe.required,rows:N,value:B,onKeyDown:$,onKeyUp:F,type:W},X,!tr(xe)&&{as:G,ownerState:S({},ke,X.ownerState)},{ref:J,className:me(_e.input,X.className,D&&"MuiInputBase-readOnly"),onBlur:$e,onChange:re,onFocus:pe}))}),g,j?j(S({},oe,{startAdornment:V})):null]}))]})}),s1=U8;function q8(t){return Ie("MuiInput",t)}const G8=S({},Oo,Te("MuiInput",["root","underline","input"])),Kr=G8,K8=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Y8=t=>{const{classes:e,disableUnderline:n}=t,i=Oe({root:["root",!n&&"underline"],input:["input"]},q8,e);return S({},e,i)},Q8=q(tv,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Zg(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let o=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(o=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),S({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[e.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Kr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kr.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Kr.disabled}, .${Kr.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${Kr.disabled}:before`]:{borderBottomStyle:"dotted"}})}),X8=q(nv,{name:"MuiInput",slot:"Input",overridesResolver:ev})({}),AE=x.forwardRef(function(e,n){var o,i,r,s;const a=Pe({props:e,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:m={},type:b="text"}=a,v=ce(a,K8),y=Y8(a),C={root:{ownerState:{disableUnderline:l}}},k=g??u?Un(g??u,C):C,P=(o=(i=m.root)!=null?i:c.Root)!=null?o:Q8,M=(r=(s=m.input)!=null?s:c.Input)!=null?r:X8;return f.jsx(s1,S({slots:{root:P,input:M},slotProps:k,fullWidth:d,inputComponent:h,multiline:p,ref:n,type:b},v,{classes:y}))});AE.muiName="Input";const NE=AE;function J8(t){return Ie("MuiFilledInput",t)}const Z8=S({},Oo,Te("MuiFilledInput",["root","underline","input"])),Io=Z8,e9=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],t9=t=>{const{classes:e,disableUnderline:n}=t,i=Oe({root:["root",!n&&"underline"],input:["input"]},J8,e);return S({},e,i)},n9=q(tv,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Zg(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var n;const o=t.palette.mode==="light",i=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${Io.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${Io.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a}},!e.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(t.vars||t).palette[e.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Io.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Io.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Io.disabled}, .${Io.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Io.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&S({padding:"25px 12px 8px"},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9}))}),o9=q(nv,{name:"MuiFilledInput",slot:"Input",overridesResolver:ev})(({theme:t,ownerState:e})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&e.size==="small"&&{paddingTop:8,paddingBottom:9},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),zE=x.forwardRef(function(e,n){var o,i,r,s;const a=Pe({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:g={},type:m="text"}=a,b=ce(a,e9),v=S({},a,{fullWidth:u,inputComponent:d,multiline:h,type:m}),y=t9(a),w={root:{ownerState:v},input:{ownerState:v}},C=p??c?Un(w,p??c):w,k=(o=(i=g.root)!=null?i:l.Root)!=null?o:n9,P=(r=(s=g.input)!=null?s:l.Input)!=null?r:o9;return f.jsx(s1,S({slots:{root:k,input:P},componentsProps:C,fullWidth:u,inputComponent:d,multiline:h,ref:n,type:m},b,{classes:y}))});zE.muiName="Input";const VE=zE;var $P;const i9=["children","classes","className","label","notched"],r9=q("fieldset",{shouldForwardProp:Yn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),s9=q("legend",{shouldForwardProp:Yn})(({ownerState:t,theme:e})=>S({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));function a9(t){const{className:e,label:n,notched:o}=t,i=ce(t,i9),r=n!=null&&n!=="",s=S({},t,{notched:o,withLabel:r});return f.jsx(r9,S({"aria-hidden":!0,className:e,ownerState:s},i,{children:f.jsx(s9,{ownerState:s,children:r?f.jsx("span",{children:n}):$P||($P=f.jsx("span",{className:"notranslate",children:"​"}))})}))}function l9(t){return Ie("MuiOutlinedInput",t)}const c9=S({},Oo,Te("MuiOutlinedInput",["root","notchedOutline","input"])),Vi=c9,u9=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],d9=t=>{const{classes:e}=t,o=Oe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},l9,e);return S({},e,o)},h9=q(tv,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zg})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Vi.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vi.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Vi.focused} .${Vi.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${Vi.error} .${Vi.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Vi.disabled} .${Vi.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&S({padding:"16.5px 14px"},e.size==="small"&&{padding:"8.5px 14px"}))}),f9=q(a9,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),p9=q(nv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ev})(({theme:t,ownerState:e})=>S({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},e.size==="small"&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),BE=x.forwardRef(function(e,n){var o,i,r,s,a;const l=Pe({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:h,multiline:p=!1,notched:g,slots:m={},type:b="text"}=l,v=ce(l,u9),y=d9(l),w=Dr(),C=Ha({props:l,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:w,fullWidth:u,hiddenLabel:C.hiddenLabel,multiline:p,size:C.size,type:b}),P=(o=(i=m.root)!=null?i:c.Root)!=null?o:h9,M=(r=(s=m.input)!=null?s:c.Input)!=null?r:p9;return f.jsx(s1,S({slots:{root:P,input:M},renderSuffix:_=>f.jsx(f9,{ownerState:k,className:y.notchedOutline,label:h!=null&&h!==""&&C.required?a||(a=f.jsxs(x.Fragment,{children:[h," ","*"]})):h,notched:typeof g<"u"?g:!!(_.startAdornment||_.filled||_.focused)}),fullWidth:u,inputComponent:d,multiline:p,ref:n,type:b},v,{classes:S({},y,{notchedOutline:null})}))});BE.muiName="Input";const HE=BE;function m9(t){return Ie("MuiFormLabel",t)}const g9=Te("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Bu=g9,v9=["children","className","color","component","disabled","error","filled","focused","required"],b9=t=>{const{classes:e,color:n,focused:o,disabled:i,error:r,filled:s,required:a}=t,l={root:["root",`color${le(n)}`,i&&"disabled",r&&"error",s&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return Oe(l,m9,e)},y9=q("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},e)=>S({},e.root,t.color==="secondary"&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>S({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Bu.focused}`]:{color:(t.vars||t).palette[e.color].main},[`&.${Bu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Bu.error}`]:{color:(t.vars||t).palette.error.main}})),x9=q("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${Bu.error}`]:{color:(t.vars||t).palette.error.main}})),w9=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiFormLabel"}),{children:i,className:r,component:s="label"}=o,a=ce(o,v9),l=Dr(),c=Ha({props:o,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=S({},o,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=b9(u);return f.jsxs(y9,S({as:s,ownerState:u,className:me(d.root,r),ref:n},a,{children:[i,c.required&&f.jsxs(x9,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),C9=w9;function S9(t){return Ie("MuiInputLabel",t)}Te("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const k9=["disableAnimation","margin","shrink","variant","className"],P9=t=>{const{classes:e,formControl:n,size:o,shrink:i,disableAnimation:r,variant:s,required:a}=t,l={root:["root",n&&"formControl",!r&&"animated",i&&"shrink",o&&o!=="normal"&&`size${le(o)}`,s],asterisk:[a&&"asterisk"]},c=Oe(l,S9,e);return S({},e,c)},M9=q(C9,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${Bu.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(({theme:t,ownerState:e})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},e.size==="small"&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},e.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},e.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),e.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},e.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),_9=x.forwardRef(function(e,n){const o=Pe({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:r,className:s}=o,a=ce(o,k9),l=Dr();let c=r;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=Ha({props:o,muiFormControl:l,states:["size","variant","required","focused"]}),d=S({},o,{disableAnimation:i,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=P9(d);return f.jsx(M9,S({"data-shrink":c,ownerState:d,ref:n,className:me(h.root,s)},a,{classes:h}))}),WE=_9;function R9(t){return Ie("MuiFormControl",t)}Te("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const T9=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],O9=t=>{const{classes:e,margin:n,fullWidth:o}=t,i={root:["root",n!=="none"&&`margin${le(n)}`,o&&"fullWidth"]};return Oe(i,R9,e)},I9=q("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>S({},e.root,e[`margin${le(t.margin)}`],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},t.margin==="normal"&&{marginTop:16,marginBottom:8},t.margin==="dense"&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),E9=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiFormControl"}),{children:i,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:h=!1,margin:p="none",required:g=!1,size:m="medium",variant:b="outlined"}=o,v=ce(o,T9),y=S({},o,{color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:h,margin:p,required:g,size:m,variant:b}),w=O9(y),[C,k]=x.useState(()=>{let F=!1;return i&&x.Children.forEach(i,E=>{if(!Fu(E,["Input","Select"]))return;const D=Fu(E,["Select"])?E.props.input:E;D&&N8(D.props)&&(F=!0)}),F}),[P,M]=x.useState(()=>{let F=!1;return i&&x.Children.forEach(i,E=>{Fu(E,["Input","Select"])&&(vm(E.props,!0)||vm(E.props.inputProps,!0))&&(F=!0)}),F}),[_,R]=x.useState(!1);l&&_&&R(!1);const O=u!==void 0&&!l?u:_;let I;const $=x.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:O,fullWidth:d,hiddenLabel:h,size:m,onBlur:()=>{R(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{R(!0)},registerEffect:I,required:g,variant:b}),[C,s,l,c,P,O,d,h,I,g,m,b]);return f.jsx(Jg.Provider,{value:$,children:f.jsx(I9,S({as:a,ownerState:y,className:me(w.root,r),ref:n},v,{children:i}))})}),D9=E9;function $9(t){return Ie("MuiFormHelperText",t)}const F9=Te("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),FP=F9;var jP;const j9=["children","className","component","disabled","error","filled","focused","margin","required","variant"],L9=t=>{const{classes:e,contained:n,size:o,disabled:i,error:r,filled:s,focused:a,required:l}=t,c={root:["root",i&&"disabled",r&&"error",o&&`size${le(o)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Oe(c,$9,e)},A9=q("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${le(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(({theme:t,ownerState:e})=>S({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${FP.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${FP.error}`]:{color:(t.vars||t).palette.error.main}},e.size==="small"&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),N9=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiFormHelperText"}),{children:i,className:r,component:s="p"}=o,a=ce(o,j9),l=Dr(),c=Ha({props:o,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=S({},o,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=L9(u);return f.jsx(A9,S({as:s,ownerState:u,className:me(d.root,r),ref:n},a,{children:i===" "?jP||(jP=f.jsx("span",{className:"notranslate",children:"​"})):i}))}),UE=N9;function z9(t){return Ie("MuiList",t)}Te("MuiList",["root","padding","dense","subheader"]);const V9=["children","className","component","dense","disablePadding","subheader"],B9=t=>{const{classes:e,disablePadding:n,dense:o,subheader:i}=t;return Oe({root:["root",!n&&"padding",o&&"dense",i&&"subheader"]},z9,e)},H9=q("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),W9=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiList"}),{children:i,className:r,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=o,u=ce(o,V9),d=x.useMemo(()=>({dense:a}),[a]),h=S({},o,{component:s,dense:a,disablePadding:l}),p=B9(h);return f.jsx(Cs.Provider,{value:d,children:f.jsxs(H9,S({as:s,className:me(p.root,r),ref:n,ownerState:h},u,{children:[c,i]}))})}),qE=W9,U9=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function C0(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function LP(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function GE(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.indexOf(e.keys.join(""))===0}function tu(t,e,n,o,i,r){let s=!1,a=i(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(s)return!1;s=!0}const l=o?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!GE(a,r)||l)a=i(t,a,n);else return a.focus(),!0}return!1}const q9=x.forwardRef(function(e,n){const{actions:o,autoFocus:i=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,h=ce(e,U9),p=x.useRef(null),g=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nn(()=>{i&&p.current.focus()},[i]),x.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,C)=>{const k=!p.current.style.width;if(w.clientHeight{const C=p.current,k=w.key,P=Wt(C).activeElement;if(k==="ArrowDown")w.preventDefault(),tu(C,P,c,l,C0);else if(k==="ArrowUp")w.preventDefault(),tu(C,P,c,l,LP);else if(k==="Home")w.preventDefault(),tu(C,null,c,l,C0);else if(k==="End")w.preventDefault(),tu(C,null,c,l,LP);else if(k.length===1){const M=g.current,_=k.toLowerCase(),R=performance.now();M.keys.length>0&&(R-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&_!==M.keys[0]&&(M.repeating=!1)),M.lastTime=R,M.keys.push(_);const O=P&&!M.repeating&&GE(P,M);M.previousKeyMatched&&(O||tu(C,P,!1,l,C0,M))?w.preventDefault():M.previousKeyMatched=!1}u&&u(w)},b=mt(p,n);let v=-1;x.Children.forEach(s,(w,C)=>{if(!x.isValidElement(w)){v===C&&(v+=1,v>=s.length&&(v=-1));return}w.props.disabled||(d==="selectedMenu"&&w.props.selected||v===-1)&&(v=C),v===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))});const y=x.Children.map(s,(w,C)=>{if(C===v){const k={};return r&&(k.autoFocus=!0),w.props.tabIndex===void 0&&d==="selectedMenu"&&(k.tabIndex=0),x.cloneElement(w,k)}return w});return f.jsx(qE,S({role:"menu",ref:b,className:a,onKeyDown:m,tabIndex:i?0:-1},h,{children:y}))}),a1=q9,G9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],K9={entering:{opacity:1},entered:{opacity:1}},Y9=x.forwardRef(function(e,n){const o=Dt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:p,onExited:g,onExiting:m,style:b,timeout:v=i,TransitionComponent:y=Yg}=e,w=ce(e,G9),C=x.useRef(null),k=mt(C,a.ref,n),P=E=>D=>{if(E){const j=C.current;D===void 0?E(j):E(j,D)}},M=P(h),_=P((E,D)=>{FE(E);const j=bc({style:b,timeout:v,easing:l},{mode:"enter"});E.style.webkitTransition=o.transitions.create("opacity",j),E.style.transition=o.transitions.create("opacity",j),u&&u(E,D)}),R=P(d),O=P(m),I=P(E=>{const D=bc({style:b,timeout:v,easing:l},{mode:"exit"});E.style.webkitTransition=o.transitions.create("opacity",D),E.style.transition=o.transitions.create("opacity",D),p&&p(E)}),$=P(g),F=E=>{r&&r(C.current,E)};return f.jsx(y,S({appear:s,in:c,nodeRef:C,onEnter:_,onEntered:R,onEntering:M,onExit:I,onExited:$,onExiting:O,addEndListener:F,timeout:v},w,{children:(E,D)=>x.cloneElement(a,S({style:S({opacity:0,visibility:E==="exited"&&!c?"hidden":void 0},K9[E],b,a.props.style),ref:k},D))}))}),Wa=Y9;function Q9(t){return Ie("MuiBackdrop",t)}Te("MuiBackdrop",["root","invisible"]);const X9=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],J9=t=>{const{classes:e,invisible:n}=t;return Oe({root:["root",n&&"invisible"]},Q9,e)},Z9=q("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),e7=x.forwardRef(function(e,n){var o,i,r;const s=Pe({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:d={},invisible:h=!1,open:p,slotProps:g={},slots:m={},TransitionComponent:b=Wa,transitionDuration:v}=s,y=ce(s,X9),w=S({},s,{component:c,invisible:h}),C=J9(w),k=(o=g.root)!=null?o:d.root;return f.jsx(b,S({in:p,timeout:v},y,{children:f.jsx(Z9,S({"aria-hidden":!0},k,{as:(i=(r=m.root)!=null?r:u.Root)!=null?i:c,className:me(C.root,l,k==null?void 0:k.className),ownerState:S({},w,k==null?void 0:k.ownerState),classes:C,ref:n,children:a}))}))}),KE=e7;function t7(t){return Ie("MuiModal",t)}Te("MuiModal",["root","hidden","backdrop"]);const n7=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],o7=t=>{const{open:e,exited:n,classes:o}=t;return Oe({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},t7,o)},i7=q("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>S({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),r7=q(KE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),s7=x.forwardRef(function(e,n){var o,i,r,s,a,l;const c=Pe({name:"MuiModal",props:e}),{BackdropComponent:u=r7,BackdropProps:d,className:h,closeAfterTransition:p=!1,children:g,container:m,component:b,components:v={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:M=!1,disableScrollLock:_=!1,hideBackdrop:R=!1,keepMounted:O=!1,onBackdropClick:I,open:$,slotProps:F,slots:E}=c,D=ce(c,n7),j=S({},c,{closeAfterTransition:p,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:M,disableScrollLock:_,hideBackdrop:R,keepMounted:O}),{getRootProps:N,getBackdropProps:A,getTransitionProps:L,portalRef:V,isTopModal:W,exited:Y,hasTransition:se}=TU(S({},j,{rootRef:n})),B=S({},j,{exited:Y}),U=o7(B),z={};if(g.props.tabIndex===void 0&&(z.tabIndex="-1"),se){const{onEnter:H,onExited:ue}=L();z.onEnter=H,z.onExited=ue}const Q=(o=(i=E==null?void 0:E.root)!=null?i:v.Root)!=null?o:i7,J=(r=(s=E==null?void 0:E.backdrop)!=null?s:v.Backdrop)!=null?r:u,ee=(a=F==null?void 0:F.root)!=null?a:y.root,ie=(l=F==null?void 0:F.backdrop)!=null?l:y.backdrop,ne=nt({elementType:Q,externalSlotProps:ee,externalForwardedProps:D,getSlotProps:N,additionalProps:{ref:n,as:b},ownerState:B,className:me(h,ee==null?void 0:ee.className,U==null?void 0:U.root,!B.open&&B.exited&&(U==null?void 0:U.hidden))}),oe=nt({elementType:J,externalSlotProps:ie,additionalProps:d,getSlotProps:H=>A(S({},H,{onClick:ue=>{I&&I(ue),H!=null&&H.onClick&&H.onClick(ue)}})),className:me(ie==null?void 0:ie.className,d==null?void 0:d.className,U==null?void 0:U.backdrop),ownerState:B});return!O&&!$&&(!se||Y)?null:f.jsx(RE,{ref:V,container:m,disablePortal:P,children:f.jsxs(Q,S({},ne,{children:[!R&&u?f.jsx(J,S({},oe)):null,f.jsx(bE,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:M,isEnabled:W,open:$,children:x.cloneElement(g,z)})]}))})}),YE=s7;function a7(t){return Ie("MuiPopover",t)}Te("MuiPopover",["root","paper"]);const l7=["onEntering"],c7=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],u7=["slotProps"];function AP(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function NP(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function zP(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function S0(t){return typeof t=="function"?t():t}const d7=t=>{const{classes:e}=t;return Oe({root:["root"],paper:["paper"]},a7,e)},h7=q(YE,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),QE=q(js,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),f7=x.forwardRef(function(e,n){var o,i,r;const s=Pe({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:h,className:p,container:g,elevation:m=8,marginThreshold:b=16,open:v,PaperProps:y={},slots:w,slotProps:C,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=Rd,transitionDuration:M="auto",TransitionProps:{onEntering:_}={},disableScrollLock:R=!1}=s,O=ce(s.TransitionProps,l7),I=ce(s,c7),$=(o=C==null?void 0:C.paper)!=null?o:y,F=x.useRef(),E=mt(F,$.ref),D=S({},s,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:b,externalPaperSlotProps:$,transformOrigin:k,TransitionComponent:P,transitionDuration:M,TransitionProps:O}),j=d7(D),N=x.useCallback(()=>{if(d==="anchorPosition")return u;const H=S0(l),he=(H&&H.nodeType===1?H:Wt(F.current).body).getBoundingClientRect();return{top:he.top+AP(he,c.vertical),left:he.left+NP(he,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),A=x.useCallback(H=>({vertical:AP(H,k.vertical),horizontal:NP(H,k.horizontal)}),[k.horizontal,k.vertical]),L=x.useCallback(H=>{const ue={width:H.offsetWidth,height:H.offsetHeight},he=A(ue);if(d==="none")return{top:null,left:null,transformOrigin:zP(he)};const pe=N();let $e=pe.top-he.vertical,re=pe.left-he.horizontal;const Ce=$e+ue.height,G=re+ue.width,X=ir(S0(l)),ve=X.innerHeight-b,ke=X.innerWidth-b;if(b!==null&&$eve){const _e=Ce-ve;$e-=_e,he.vertical+=_e}if(b!==null&&reke){const _e=G-ke;re-=_e,he.horizontal+=_e}return{top:`${Math.round($e)}px`,left:`${Math.round(re)}px`,transformOrigin:zP(he)}},[l,d,N,A,b]),[V,W]=x.useState(v),Y=x.useCallback(()=>{const H=F.current;if(!H)return;const ue=L(H);ue.top!==null&&(H.style.top=ue.top),ue.left!==null&&(H.style.left=ue.left),H.style.transformOrigin=ue.transformOrigin,W(!0)},[L]);x.useEffect(()=>(R&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[l,R,Y]);const se=(H,ue)=>{_&&_(H,ue),Y()},B=()=>{W(!1)};x.useEffect(()=>{v&&Y()}),x.useImperativeHandle(a,()=>v?{updatePosition:()=>{Y()}}:null,[v,Y]),x.useEffect(()=>{if(!v)return;const H=Ba(()=>{Y()}),ue=ir(l);return ue.addEventListener("resize",H),()=>{H.clear(),ue.removeEventListener("resize",H)}},[l,v,Y]);let U=M;M==="auto"&&!P.muiSupportAuto&&(U=void 0);const z=g||(l?Wt(S0(l)).body:void 0),Q=(i=w==null?void 0:w.root)!=null?i:h7,J=(r=w==null?void 0:w.paper)!=null?r:QE,ee=nt({elementType:J,externalSlotProps:S({},$,{style:V?$.style:S({},$.style,{opacity:0})}),additionalProps:{elevation:m,ref:E},ownerState:D,className:me(j.paper,$==null?void 0:$.className)}),ie=nt({elementType:Q,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:I,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:D,className:me(j.root,p)}),{slotProps:ne}=ie,oe=ce(ie,u7);return f.jsx(Q,S({},oe,!tr(Q)&&{slotProps:ne,disableScrollLock:R},{children:f.jsx(P,S({appear:!0,in:v,onEntering:se,onExited:B,timeout:U},O,{children:f.jsx(J,S({},ee,{children:h}))}))}))}),XE=f7;function p7(t){return Ie("MuiMenu",t)}Te("MuiMenu",["root","paper","list"]);const m7=["onEntering"],g7=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],v7={vertical:"top",horizontal:"right"},b7={vertical:"top",horizontal:"left"},y7=t=>{const{classes:e}=t;return Oe({root:["root"],paper:["paper"],list:["list"]},p7,e)},x7=q(XE,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),w7=q(QE,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),C7=q(a1,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),S7=x.forwardRef(function(e,n){var o,i;const r=Pe({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:h,PaperProps:p={},PopoverClasses:g,transitionDuration:m="auto",TransitionProps:{onEntering:b}={},variant:v="selectedMenu",slots:y={},slotProps:w={}}=r,C=ce(r.TransitionProps,m7),k=ce(r,g7),P=Dt(),M=P.direction==="rtl",_=S({},r,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:p,transitionDuration:m,TransitionProps:C,variant:v}),R=y7(_),O=s&&!c&&h,I=x.useRef(null),$=(L,V)=>{I.current&&I.current.adjustStyleForScrollbar(L,P),b&&b(L,V)},F=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let E=-1;x.Children.map(a,(L,V)=>{x.isValidElement(L)&&(L.props.disabled||(v==="selectedMenu"&&L.props.selected||E===-1)&&(E=V))});const D=(o=y.paper)!=null?o:w7,j=(i=w.paper)!=null?i:p,N=nt({elementType:y.root,externalSlotProps:w.root,ownerState:_,className:[R.root,l]}),A=nt({elementType:D,externalSlotProps:j,ownerState:_,className:R.paper});return f.jsx(x7,S({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?v7:b7,slots:{paper:D,root:y.root},slotProps:{root:N,paper:A},open:h,ref:n,transitionDuration:m,TransitionProps:S({onEntering:$},C),ownerState:_},k,{classes:g,children:f.jsx(C7,S({onKeyDown:F,actions:I,autoFocus:s&&(E===-1||c),autoFocusItem:O,variant:v},u,{className:me(R.list,u.className),children:a}))}))}),wh=S7;function k7(t){return Ie("MuiNativeSelect",t)}const P7=Te("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l1=P7,M7=["className","disabled","error","IconComponent","inputRef","variant"],_7=t=>{const{classes:e,variant:n,disabled:o,multiple:i,open:r,error:s}=t,a={select:["select",n,o&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${le(n)}`,r&&"iconOpen",o&&"disabled"]};return Oe(a,k7,e)},JE=({ownerState:t,theme:e})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},e.vars?{backgroundColor:`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:e.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${l1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},t.variant==="filled"&&{"&&&":{paddingRight:32}},t.variant==="outlined"&&{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}),R7=q("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yn,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${l1.multiple}`]:e.multiple}]}})(JE),ZE=({ownerState:t,theme:e})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${l1.disabled}`]:{color:(e.vars||e).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},t.variant==="filled"&&{right:7},t.variant==="outlined"&&{right:7}),T7=q("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${le(n.variant)}`],n.open&&e.iconOpen]}})(ZE),O7=x.forwardRef(function(e,n){const{className:o,disabled:i,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=ce(e,M7),u=S({},e,{disabled:i,variant:l,error:r}),d=_7(u);return f.jsxs(x.Fragment,{children:[f.jsx(R7,S({ownerState:u,className:me(d.select,o),disabled:i,ref:a||n},c)),e.multiple?null:f.jsx(T7,{as:s,ownerState:u,className:d.icon})]})}),I7=O7;function E7(t){return Ie("MuiSelect",t)}const D7=Te("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nu=D7;var VP;const $7=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],F7=q("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${nu.select}`]:e.select},{[`&.${nu.select}`]:e[n.variant]},{[`&.${nu.error}`]:e.error},{[`&.${nu.multiple}`]:e.multiple}]}})(JE,{[`&.${nu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),j7=q("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${le(n.variant)}`],n.open&&e.iconOpen]}})(ZE),L7=q("input",{shouldForwardProp:t=>Vw(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function BP(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function A7(t){return t==null||typeof t=="string"&&!t.trim()}const N7=t=>{const{classes:e,variant:n,disabled:o,multiple:i,open:r,error:s}=t,a={select:["select",n,o&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${le(n)}`,r&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Oe(a,E7,e)},z7=x.forwardRef(function(e,n){var o;const{"aria-describedby":i,"aria-label":r,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:h,displayEmpty:p,error:g=!1,IconComponent:m,inputRef:b,labelId:v,MenuProps:y={},multiple:w,name:C,onBlur:k,onChange:P,onClose:M,onFocus:_,onOpen:R,open:O,readOnly:I,renderValue:$,SelectDisplayProps:F={},tabIndex:E,value:D,variant:j="standard"}=e,N=ce(e,$7),[A,L]=Rn({controlled:D,default:d,name:"Select"}),[V,W]=Rn({controlled:O,default:u,name:"Select"}),Y=x.useRef(null),se=x.useRef(null),[B,U]=x.useState(null),{current:z}=x.useRef(O!=null),[Q,J]=x.useState(),ee=mt(n,b),ie=x.useCallback(ge=>{se.current=ge,ge&&U(ge)},[]),ne=B==null?void 0:B.parentNode;x.useImperativeHandle(ee,()=>({focus:()=>{se.current.focus()},node:Y.current,value:A}),[A]),x.useEffect(()=>{u&&V&&B&&!z&&(J(a?null:ne.clientWidth),se.current.focus())},[B,a]),x.useEffect(()=>{s&&se.current.focus()},[s]),x.useEffect(()=>{if(!v)return;const ge=Wt(se.current).getElementById(v);if(ge){const Ne=()=>{getSelection().isCollapsed&&se.current.focus()};return ge.addEventListener("click",Ne),()=>{ge.removeEventListener("click",Ne)}}},[v]);const oe=(ge,Ne)=>{ge?R&&R(Ne):M&&M(Ne),z||(J(a?null:ne.clientWidth),W(ge))},H=ge=>{ge.button===0&&(ge.preventDefault(),se.current.focus(),oe(!0,ge))},ue=ge=>{oe(!1,ge)},he=x.Children.toArray(l),pe=ge=>{const Ne=he.find(te=>te.props.value===ge.target.value);Ne!==void 0&&(L(Ne.props.value),P&&P(ge,Ne))},$e=ge=>Ne=>{let te;if(Ne.currentTarget.hasAttribute("tabindex")){if(w){te=Array.isArray(A)?A.slice():[];const ye=A.indexOf(ge.props.value);ye===-1?te.push(ge.props.value):te.splice(ye,1)}else te=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Ne),A!==te&&(L(te),P)){const ye=Ne.nativeEvent||Ne,Ve=new ye.constructor(ye.type,ye);Object.defineProperty(Ve,"target",{writable:!0,value:{value:te,name:C}}),P(Ve,ge)}w||oe(!1,Ne)}},re=ge=>{I||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ge.key)!==-1&&(ge.preventDefault(),oe(!0,ge))},Ce=B!==null&&V,G=ge=>{!Ce&&k&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:A,name:C}}),k(ge))};delete N["aria-invalid"];let X,ve;const ke=[];let _e=!1;(vm({value:A})||p)&&($?X=$(A):_e=!0);const fe=he.map(ge=>{if(!x.isValidElement(ge))return null;let Ne;if(w){if(!Array.isArray(A))throw new Error(Ms(2));Ne=A.some(te=>BP(te,ge.props.value)),Ne&&_e&&ke.push(ge.props.children)}else Ne=BP(A,ge.props.value),Ne&&_e&&(ve=ge.props.children);return x.cloneElement(ge,{"aria-selected":Ne?"true":"false",onClick:$e(ge),onKeyUp:te=>{te.key===" "&&te.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(te)},role:"option",selected:Ne,value:void 0,"data-value":ge.props.value})});_e&&(w?ke.length===0?X=null:X=ke.reduce((ge,Ne,te)=>(ge.push(Ne),te{const{color:e,fontSize:n,classes:o}=t,i={root:["root",e!=="inherit"&&`color${le(e)}`,`fontSize${le(n)}`]};return Oe(i,B7,o)},U7=q("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${le(n.color)}`],e[`fontSize${le(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,o,i,r,s,a,l,c,u,d,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(o=n.create)==null?void 0:o.call(n,"fill",{duration:(i=t.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((r=t.typography)==null||(s=r.pxToRem)==null?void 0:s.call(r,20))||"1.25rem",medium:((a=t.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=t.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:(d=(h=(t.vars||t).palette)==null||(h=h[e.color])==null?void 0:h.main)!=null?d:{action:(p=(t.vars||t).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(g=(t.vars||t).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[e.color]}}),eD=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiSvgIcon"}),{children:i,className:r,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24"}=o,p=ce(o,H7),g=x.isValidElement(i)&&i.type==="svg",m=S({},o,{color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g}),b={};u||(b.viewBox=h);const v=W7(m);return f.jsxs(U7,S({as:a,className:me(v.root,r),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,g&&i.props,{ownerState:m,children:[g?i.props.children:i,d?f.jsx("title",{children:d}):null]}))});eD.muiName="SvgIcon";const HP=eD;function Rt(t,e){function n(o,i){return f.jsx(HP,S({"data-testid":`${e}Icon`,ref:i},o,{children:t}))}return n.muiName=HP.muiName,x.memo(x.forwardRef(n))}const tD=Rt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),q7=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],G7=["root"],K7=t=>{const{classes:e}=t;return e},c1={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Yn(t)&&t!=="variant",slot:"Root"},Y7=q(NE,c1)(""),Q7=q(HE,c1)(""),X7=q(VE,c1)(""),nD=x.forwardRef(function(e,n){const o=Pe({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=tD,id:d,input:h,inputProps:p,label:g,labelId:m,MenuProps:b,multiple:v=!1,native:y=!1,onClose:w,onOpen:C,open:k,renderValue:P,SelectDisplayProps:M,variant:_="outlined"}=o,R=ce(o,q7),O=y?I7:V7,I=Dr(),$=Ha({props:o,muiFormControl:I,states:["variant","error"]}),F=$.variant||_,E=S({},o,{variant:F,classes:s}),D=K7(E),j=ce(D,G7),N=h||{standard:f.jsx(Y7,{ownerState:E}),outlined:f.jsx(Q7,{label:g,ownerState:E}),filled:f.jsx(X7,{ownerState:E})}[F],A=mt(n,N.ref);return f.jsx(x.Fragment,{children:x.cloneElement(N,S({inputComponent:O,inputProps:S({children:r,error:$.error,IconComponent:u,variant:F,type:void 0,multiple:v},y?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:b,onClose:w,onOpen:C,open:k,renderValue:P,SelectDisplayProps:S({id:d},M)},p,{classes:p?Un(j,p.classes):j},h?h.props.inputProps:{})},v&&y&&F==="outlined"?{notched:!0}:{},{ref:A,className:me(N.props.className,a,D.root)},!h&&{variant:F},R))})});nD.muiName="Select";const oD=nD;function J7(t){return Ie("MuiTextField",t)}Te("MuiTextField",["root"]);const Z7=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],eq={standard:NE,filled:VE,outlined:HE},tq=t=>{const{classes:e}=t;return Oe({root:["root"]},J7,e)},nq=q(D9,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),oq=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:r=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:g,id:m,InputLabelProps:b,inputProps:v,InputProps:y,inputRef:w,label:C,maxRows:k,minRows:P,multiline:M=!1,name:_,onBlur:R,onChange:O,onFocus:I,placeholder:$,required:F=!1,rows:E,select:D=!1,SelectProps:j,type:N,value:A,variant:L="outlined"}=o,V=ce(o,Z7),W=S({},o,{autoFocus:r,color:l,disabled:u,error:d,fullWidth:p,multiline:M,required:F,select:D,variant:L}),Y=tq(W),se={};L==="outlined"&&(b&&typeof b.shrink<"u"&&(se.notched=b.shrink),se.label=C),D&&((!j||!j.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const B=cr(m),U=g&&B?`${B}-helper-text`:void 0,z=C&&B?`${B}-label`:void 0,Q=eq[L],J=f.jsx(Q,S({"aria-describedby":U,autoComplete:i,autoFocus:r,defaultValue:c,fullWidth:p,multiline:M,name:_,rows:E,maxRows:k,minRows:P,type:N,value:A,id:B,inputRef:w,onBlur:R,onChange:O,onFocus:I,placeholder:$,inputProps:v},se,y));return f.jsxs(nq,S({className:me(Y.root,a),disabled:u,error:d,fullWidth:p,ref:n,required:F,color:l,variant:L,ownerState:W},V,{children:[C!=null&&C!==""&&f.jsx(WE,S({htmlFor:B,id:z},b,{children:C})),D?f.jsx(oD,S({"aria-describedby":U,id:B,labelId:z,value:A,input:J},j,{children:s})):J,g&&f.jsx(UE,S({id:U},h,{children:g}))]}))}),Oa=oq,iq={configure:t=>{Cw.configure(t)}},rq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:le,createChainedFunction:em,createSvgIcon:Rt,debounce:Ba,deprecatedPropType:oV,isMuiElement:Fu,ownerDocument:Wt,ownerWindow:ir,requirePropFactory:iV,setRef:wd,unstable_ClassNameGenerator:iq,unstable_useEnhancedEffect:nn,unstable_useId:cr,unsupportedProp:aV,useControlled:Rn,useEventCallback:je,useForkRef:mt,useIsFocusVisible:xg},Symbol.toStringTag,{value:"Module"}));function sq(t){return Ie("MuiCollapse",t)}Te("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const aq=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],lq=t=>{const{orientation:e,classes:n}=t,o={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return Oe(o,sq,n)},cq=q("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.state==="entered"&&e.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&e.hidden]}})(({theme:t,ownerState:e})=>S({height:0,overflow:"hidden",transition:t.transitions.create("height")},e.orientation==="horizontal"&&{height:"auto",width:0,transition:t.transitions.create("width")},e.state==="entered"&&S({height:"auto",overflow:"visible"},e.orientation==="horizontal"&&{width:"auto"}),e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&{visibility:"hidden"})),uq=q("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(({ownerState:t})=>S({display:"flex",width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),dq=q("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(({ownerState:t})=>S({width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),iD=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiCollapse"}),{addEndListener:i,children:r,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:h,onEntering:p,onExit:g,onExited:m,onExiting:b,orientation:v="vertical",style:y,timeout:w=XI.standard,TransitionComponent:C=Yg}=o,k=ce(o,aq),P=S({},o,{orientation:v,collapsedSize:a}),M=lq(P),_=Dt(),R=x.useRef(),O=x.useRef(null),I=x.useRef(),$=typeof a=="number"?`${a}px`:a,F=v==="horizontal",E=F?"width":"height";x.useEffect(()=>()=>{clearTimeout(R.current)},[]);const D=x.useRef(null),j=mt(n,D),N=z=>Q=>{if(z){const J=D.current;Q===void 0?z(J):z(J,Q)}},A=()=>O.current?O.current[F?"clientWidth":"clientHeight"]:0,L=N((z,Q)=>{O.current&&F&&(O.current.style.position="absolute"),z.style[E]=$,d&&d(z,Q)}),V=N((z,Q)=>{const J=A();O.current&&F&&(O.current.style.position="");const{duration:ee,easing:ie}=bc({style:y,timeout:w,easing:c},{mode:"enter"});if(w==="auto"){const ne=_.transitions.getAutoHeightDuration(J);z.style.transitionDuration=`${ne}ms`,I.current=ne}else z.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;z.style[E]=`${J}px`,z.style.transitionTimingFunction=ie,p&&p(z,Q)}),W=N((z,Q)=>{z.style[E]="auto",h&&h(z,Q)}),Y=N(z=>{z.style[E]=`${A()}px`,g&&g(z)}),se=N(m),B=N(z=>{const Q=A(),{duration:J,easing:ee}=bc({style:y,timeout:w,easing:c},{mode:"exit"});if(w==="auto"){const ie=_.transitions.getAutoHeightDuration(Q);z.style.transitionDuration=`${ie}ms`,I.current=ie}else z.style.transitionDuration=typeof J=="string"?J:`${J}ms`;z.style[E]=$,z.style.transitionTimingFunction=ee,b&&b(z)}),U=z=>{w==="auto"&&(R.current=setTimeout(z,I.current||0)),i&&i(D.current,z)};return f.jsx(C,S({in:u,onEnter:L,onEntered:W,onEntering:V,onExit:Y,onExited:se,onExiting:B,addEndListener:U,nodeRef:D,timeout:w==="auto"?null:w},k,{children:(z,Q)=>f.jsx(cq,S({as:l,className:me(M.root,s,{entered:M.entered,exited:!u&&$==="0px"&&M.hidden}[z]),style:S({[F?"minWidth":"minHeight"]:$},y),ownerState:S({},P,{state:z}),ref:j},Q,{children:f.jsx(uq,{ownerState:S({},P,{state:z}),className:M.wrapper,ref:O,children:f.jsx(dq,{ownerState:S({},P,{state:z}),className:M.wrapperInner,children:r})})}))}))});iD.muiSupportAuto=!0;const Ch=iD,hq=n4({createStyledComponent:q("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>Pe({props:t,name:"MuiStack"})}),Sh=hq;function fq(t){return Ie("MuiIconButton",t)}const pq=Te("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),mq=pq,gq=["edge","children","className","color","disabled","disableFocusRipple","size"],vq=t=>{const{classes:e,disabled:n,color:o,edge:i,size:r}=t,s={root:["root",n&&"disabled",o!=="default"&&`color${le(o)}`,i&&`edge${le(i)}`,`size${le(r)}`]};return Oe(s,fq,e)},bq=q(hi,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${le(n.color)}`],n.edge&&e[`edge${le(n.edge)}`],e[`size${le(n.size)}`]]}})(({theme:t,ownerState:e})=>S({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var n;const o=(n=(t.vars||t).palette)==null?void 0:n[e.color];return S({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&S({color:o==null?void 0:o.main},!e.disableRipple&&{"&:hover":S({},o&&{backgroundColor:t.vars?`rgba(${o.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${mq.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),yq=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiIconButton"}),{edge:i=!1,children:r,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=o,d=ce(o,gq),h=S({},o,{edge:i,color:a,disabled:l,disableFocusRipple:c,size:u}),p=vq(h);return f.jsx(bq,S({className:me(p.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:h},d,{children:r}))}),at=yq;function xq(t){return Ie("MuiCircularProgress",t)}Te("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const wq=["className","color","disableShrink","size","style","thickness","value","variant"];let ov=t=>t,WP,UP,qP,GP;const Ar=44,Cq=Fi(WP||(WP=ov` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Sq=Fi(UP||(UP=ov` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),kq=t=>{const{classes:e,variant:n,color:o,disableShrink:i}=t,r={root:["root",n,`color${le(o)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,i&&"circleDisableShrink"]};return Oe(r,xq,e)},Pq=q("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${le(n.color)}`]]}})(({ownerState:t,theme:e})=>S({display:"inline-block"},t.variant==="determinate"&&{transition:e.transitions.create("transform")},t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main}),({ownerState:t})=>t.variant==="indeterminate"&&rr(qP||(qP=ov` + animation: ${0} 1.4s linear infinite; + `),Cq)),Mq=q("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),_q=q("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${le(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(({ownerState:t,theme:e})=>S({stroke:"currentColor"},t.variant==="determinate"&&{transition:e.transitions.create("stroke-dashoffset")},t.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink&&rr(GP||(GP=ov` + animation: ${0} 1.4s ease-in-out infinite; + `),Sq)),Rq=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiCircularProgress"}),{className:i,color:r="primary",disableShrink:s=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=o,h=ce(o,wq),p=S({},o,{color:r,disableShrink:s,size:a,thickness:c,value:u,variant:d}),g=kq(p),m={},b={},v={};if(d==="determinate"){const y=2*Math.PI*((Ar-c)/2);m.strokeDasharray=y.toFixed(3),v["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,b.transform="rotate(-90deg)"}return f.jsx(Pq,S({className:me(g.root,i),style:S({width:a,height:a},b,l),ownerState:p,ref:n,role:"progressbar"},v,h,{children:f.jsx(Mq,{className:g.svg,ownerState:p,viewBox:`${Ar/2} ${Ar/2} ${Ar} ${Ar}`,children:f.jsx(_q,{className:g.circle,style:m,ownerState:p,cx:Ar,cy:Ar,r:(Ar-c)/2,fill:"none",strokeWidth:c})})}))}),Ey=Rq;function Tq(t){return Ie("PrivateSwitchBase",t)}Te("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Oq=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Iq=t=>{const{classes:e,checked:n,disabled:o,edge:i}=t,r={root:["root",n&&"checked",o&&"disabled",i&&`edge${le(i)}`],input:["input"]};return Oe(r,Tq,e)},Eq=q(hi)(({ownerState:t})=>S({padding:9,borderRadius:"50%"},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12})),Dq=q("input",{shouldForwardProp:Yn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$q=x.forwardRef(function(e,n){const{autoFocus:o,checked:i,checkedIcon:r,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:h,inputProps:p,inputRef:g,name:m,onBlur:b,onChange:v,onFocus:y,readOnly:w,required:C=!1,tabIndex:k,type:P,value:M}=e,_=ce(e,Oq),[R,O]=Rn({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),I=Dr(),$=L=>{y&&y(L),I&&I.onFocus&&I.onFocus(L)},F=L=>{b&&b(L),I&&I.onBlur&&I.onBlur(L)},E=L=>{if(L.nativeEvent.defaultPrevented)return;const V=L.target.checked;O(V),v&&v(L,V)};let D=l;I&&typeof D>"u"&&(D=I.disabled);const j=P==="checkbox"||P==="radio",N=S({},e,{checked:R,disabled:D,disableFocusRipple:c,edge:u}),A=Iq(N);return f.jsxs(Eq,S({component:"span",className:me(A.root,s),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:$,onBlur:F,ownerState:N,ref:n},_,{children:[f.jsx(Dq,S({autoFocus:o,checked:i,defaultChecked:a,className:A.input,disabled:D,id:j?h:void 0,name:m,onChange:E,readOnly:w,ref:g,required:C,ownerState:N,tabIndex:k,type:P},P==="checkbox"&&M===void 0?{}:{value:M},p)),R?r:d]}))}),u1=$q,Fq=Rt(f.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jq=Rt(f.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Lq=Rt(f.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Aq(t){return Ie("MuiCheckbox",t)}const Nq=Te("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),k0=Nq,zq=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Vq=t=>{const{classes:e,indeterminate:n,color:o,size:i}=t,r={root:["root",n&&"indeterminate",`color${le(o)}`,`size${le(i)}`]},s=Oe(r,Aq,e);return S({},e,s)},Bq=q(u1,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${le(n.size)}`],n.color!=="default"&&e[`color${le(n.color)}`]]}})(({theme:t,ownerState:e})=>S({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${e.color==="default"?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(e.color==="default"?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${k0.checked}, &.${k0.indeterminate}`]:{color:(t.vars||t).palette[e.color].main},[`&.${k0.disabled}`]:{color:(t.vars||t).palette.action.disabled}})),Hq=f.jsx(jq,{}),Wq=f.jsx(Fq,{}),Uq=f.jsx(Lq,{}),qq=x.forwardRef(function(e,n){var o,i;const r=Pe({props:e,name:"MuiCheckbox"}),{checkedIcon:s=Hq,color:a="primary",icon:l=Wq,indeterminate:c=!1,indeterminateIcon:u=Uq,inputProps:d,size:h="medium",className:p}=r,g=ce(r,zq),m=c?u:l,b=c?u:s,v=S({},r,{color:a,indeterminate:c,size:h}),y=Vq(v);return f.jsx(Bq,S({type:"checkbox",inputProps:S({"data-indeterminate":c},d),icon:x.cloneElement(m,{fontSize:(o=m.props.fontSize)!=null?o:h}),checkedIcon:x.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:v,ref:n,className:me(y.root,p)},g,{classes:y}))}),d1=qq,Gq=Rt(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Kq=Rt(f.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Yq=q("span",{shouldForwardProp:Yn})({position:"relative",display:"flex"}),Qq=q(Gq)({transform:"scale(1)"}),Xq=q(Kq)(({theme:t,ownerState:e})=>S({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}));function rD(t){const{checked:e=!1,classes:n={},fontSize:o}=t,i=S({},t,{checked:e});return f.jsxs(Yq,{className:n.root,ownerState:i,children:[f.jsx(Qq,{fontSize:o,className:n.background,ownerState:i}),f.jsx(Xq,{fontSize:o,className:n.dot,ownerState:i})]})}const Jq=x.createContext(void 0),Zq=Jq;function eG(){return x.useContext(Zq)}function tG(t){return Ie("MuiRadio",t)}const nG=Te("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),KP=nG,oG=["checked","checkedIcon","color","icon","name","onChange","size","className"],iG=t=>{const{classes:e,color:n,size:o}=t,i={root:["root",`color${le(n)}`,o!=="medium"&&`size${le(o)}`]};return S({},e,Oe(i,tG,e))},rG=q(u1,{shouldForwardProp:t=>Yn(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size!=="medium"&&e[`size${le(n.size)}`],e[`color${le(n.color)}`]]}})(({theme:t,ownerState:e})=>S({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${e.color==="default"?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(e.color==="default"?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${KP.checked}`]:{color:(t.vars||t).palette[e.color].main}},{[`&.${KP.disabled}`]:{color:(t.vars||t).palette.action.disabled}}));function sG(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const YP=f.jsx(rD,{checked:!0}),QP=f.jsx(rD,{}),aG=x.forwardRef(function(e,n){var o,i;const r=Pe({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=YP,color:l="primary",icon:c=QP,name:u,onChange:d,size:h="medium",className:p}=r,g=ce(r,oG),m=S({},r,{color:l,size:h}),b=iG(m),v=eG();let y=s;const w=em(d,v&&v.onChange);let C=u;return v&&(typeof y>"u"&&(y=sG(v.value,r.value)),typeof C>"u"&&(C=v.name)),f.jsx(rG,S({type:"radio",icon:x.cloneElement(c,{fontSize:(o=QP.props.fontSize)!=null?o:h}),checkedIcon:x.cloneElement(a,{fontSize:(i=YP.props.fontSize)!=null?i:h}),ownerState:m,classes:b,name:C,checked:y,onChange:w,ref:n,className:me(b.root,p)},g))}),lG=aG;/** + * match-sorter-utils + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const sD={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},cG=Object.keys(sD).join("|"),uG=new RegExp(cG,"g");function dG(t){return t.replace(uG,e=>sD[e])}/** + * @name match-sorter + * @license MIT license. + * @copyright (c) 2099 Kent C. Dodds + * @author Kent C. Dodds (https://kentcdodds.com) + */const to={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function hG(t,e,n){var o;if(n=n||{},n.threshold=(o=n.threshold)!=null?o:to.MATCHES,!n.accessors){const s=XP(t,e,n);return{rankedValue:t,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}const i=vG(t,n.accessors),r={rankedValue:t,rank:to.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s=to.MATCHES?l=c:l>u&&(l=u),l=Math.min(l,u),l>=d&&l>r.rank&&(r.rank=l,r.passed=!0,r.accessorIndex=s,r.accessorThreshold=d,r.rankedValue=a.itemValue)}return r}function XP(t,e,n){return t=JP(t,n),e=JP(e,n),e.length>t.length?to.NO_MATCH:t===e?to.CASE_SENSITIVE_EQUAL:(t=t.toLowerCase(),e=e.toLowerCase(),t===e?to.EQUAL:t.startsWith(e)?to.STARTS_WITH:t.includes(` ${e}`)?to.WORD_STARTS_WITH:t.includes(e)?to.CONTAINS:e.length===1?to.NO_MATCH:fG(t).includes(e)?to.ACRONYM:pG(t,e))}function fG(t){let e="";return t.split(" ").forEach(o=>{o.split("-").forEach(r=>{e+=r.substr(0,1)})}),e}function pG(t,e){let n=0,o=0;function i(l,c,u){for(let d=u,h=c.length;d-1))return to.NO_MATCH}const a=o-s;return r(a)}function mG(t,e){return t.rank===e.rank?0:t.rank>e.rank?-1:1}function JP(t,e){let{keepDiacritics:n}=e;return t=`${t}`,n||(t=dG(t)),t}function gG(t,e){let n=e;typeof e=="object"&&(n=e.accessor);const o=n(t);return o==null?[]:Array.isArray(o)?o:[String(o)]}function vG(t,e){const n=[];for(let o=0,i=e.length;o{const{classes:e}=t;return Oe({root:["root"]},lY,e)},dY=q("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-footer-group"}),hY={variant:"footer"},iM="tfoot",fY=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableFooter"}),{className:i,component:r=iM}=o,s=ce(o,cY),a=S({},o,{component:r}),l=uY(a);return f.jsx(gh.Provider,{value:hY,children:f.jsx(dY,S({as:r,className:me(l.root,i),ref:n,role:r===iM?null:"rowgroup",ownerState:a},s))})}),pY=fY;function mY(t){return Ie("MuiTableHead",t)}Te("MuiTableHead",["root"]);const gY=["className","component"],vY=t=>{const{classes:e}=t;return Oe({root:["root"]},mY,e)},bY=q("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),yY={variant:"head"},rM="thead",xY=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableHead"}),{className:i,component:r=rM}=o,s=ce(o,gY),a=S({},o,{component:r}),l=vY(a);return f.jsx(gh.Provider,{value:yY,children:f.jsx(bY,S({as:r,className:me(l.root,i),ref:n,role:r===rM?null:"rowgroup",ownerState:a},s))})}),wY=xY;function CY(t){return Ie("MuiFormControlLabel",t)}const SY=Te("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),bu=SY,kY=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],PY=t=>{const{classes:e,disabled:n,labelPlacement:o,error:i,required:r}=t,s={root:["root",n&&"disabled",`labelPlacement${le(o)}`,i&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Oe(s,CY,e)},MY=q("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${bu.label}`]:e.label},e.root,e[`labelPlacement${le(n.labelPlacement)}`]]}})(({theme:t,ownerState:e})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${bu.disabled}`]:{cursor:"default"}},e.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},e.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},e.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${bu.label}`]:{[`&.${bu.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})),_Y=q("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({[`&.${bu.error}`]:{color:(t.vars||t).palette.error.main}})),RY=x.forwardRef(function(e,n){var o,i;const r=Pe({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:h="end",required:p,slotProps:g={}}=r,m=ce(r,kY),b=Dr(),v=(o=c??l.props.disabled)!=null?o:b==null?void 0:b.disabled,y=p??l.props.required,w={disabled:v,required:y};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof l.props[R]>"u"&&typeof r[R]<"u"&&(w[R]=r[R])});const C=Ha({props:r,muiFormControl:b,states:["error"]}),k=S({},r,{disabled:v,labelPlacement:h,required:y,error:C.error}),P=PY(k),M=(i=g.typography)!=null?i:a.typography;let _=d;return _!=null&&_.type!==An&&!u&&(_=f.jsx(An,S({component:"span"},M,{className:me(P.label,M==null?void 0:M.className),children:_}))),f.jsxs(MY,S({className:me(P.root,s),ownerState:k,ref:n},m,{children:[x.cloneElement(l,w),y?f.jsxs(Sh,{display:"block",children:[_,f.jsxs(_Y,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):_]}))}),zD=RY;function TY(t){return Ie("MuiListSubheader",t)}Te("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const OY=["className","color","component","disableGutters","disableSticky","inset"],IY=t=>{const{classes:e,color:n,disableGutters:o,inset:i,disableSticky:r}=t,s={root:["root",n!=="default"&&`color${le(n)}`,!o&&"gutters",i&&"inset",!r&&"sticky"]};return Oe(s,TY,e)},EY=q("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${le(n.color)}`],!n.disableGutters&&e.gutters,n.inset&&e.inset,!n.disableSticky&&e.sticky]}})(({theme:t,ownerState:e})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},e.color==="primary"&&{color:(t.vars||t).palette.primary.main},e.color==="inherit"&&{color:"inherit"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.inset&&{paddingLeft:72},!e.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})),VD=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiListSubheader"}),{className:i,color:r="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1}=o,u=ce(o,OY),d=S({},o,{color:r,component:s,disableGutters:a,disableSticky:l,inset:c}),h=IY(d);return f.jsx(EY,S({as:s,className:me(h.root,i),ref:n,ownerState:d},u))});VD.muiSkipListHighlight=!0;const DY=VD,$Y=Rt(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function FY(t){return Ie("MuiChip",t)}const jY=Te("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),xt=jY,LY=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],AY=t=>{const{classes:e,disabled:n,size:o,color:i,iconColor:r,onDelete:s,clickable:a,variant:l}=t,c={root:["root",l,n&&"disabled",`size${le(o)}`,`color${le(i)}`,a&&"clickable",a&&`clickableColor${le(i)}`,s&&"deletable",s&&`deletableColor${le(i)}`,`${l}${le(i)}`],label:["label",`label${le(o)}`],avatar:["avatar",`avatar${le(o)}`,`avatarColor${le(i)}`],icon:["icon",`icon${le(o)}`,`iconColor${le(r)}`],deleteIcon:["deleteIcon",`deleteIcon${le(o)}`,`deleteIconColor${le(i)}`,`deleteIcon${le(l)}Color${le(i)}`]};return Oe(c,FY,e)},NY=q("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:o,iconColor:i,clickable:r,onDelete:s,size:a,variant:l}=n;return[{[`& .${xt.avatar}`]:e.avatar},{[`& .${xt.avatar}`]:e[`avatar${le(a)}`]},{[`& .${xt.avatar}`]:e[`avatarColor${le(o)}`]},{[`& .${xt.icon}`]:e.icon},{[`& .${xt.icon}`]:e[`icon${le(a)}`]},{[`& .${xt.icon}`]:e[`iconColor${le(i)}`]},{[`& .${xt.deleteIcon}`]:e.deleteIcon},{[`& .${xt.deleteIcon}`]:e[`deleteIcon${le(a)}`]},{[`& .${xt.deleteIcon}`]:e[`deleteIconColor${le(o)}`]},{[`& .${xt.deleteIcon}`]:e[`deleteIcon${le(l)}Color${le(o)}`]},e.root,e[`size${le(a)}`],e[`color${le(o)}`],r&&e.clickable,r&&o!=="default"&&e[`clickableColor${le(o)})`],s&&e.deletable,s&&o!=="default"&&e[`deletableColor${le(o)}`],e[l],e[`${l}${le(o)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return S({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${xt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${xt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},[`& .${xt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${xt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${xt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${xt.icon}`]:S({marginLeft:5,marginRight:-6},e.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},e.iconColor===e.color&&S({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},e.color!=="default"&&{color:"inherit"})),[`& .${xt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:Le(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Le(t.palette.text.primary,.4)}},e.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},e.color!=="default"&&{color:t.vars?`rgba(${t.vars.palette[e.color].contrastTextChannel} / 0.7)`:Le(t.palette[e.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].contrastText}})},e.size==="small"&&{height:24},e.color!=="default"&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},e.onDelete&&{[`&.${xt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},e.onDelete&&e.color!=="default"&&{[`&.${xt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}})},({theme:t,ownerState:e})=>S({},e.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Le(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${xt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},e.clickable&&e.color!=="default"&&{[`&:hover, &.${xt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}}),({theme:t,ownerState:e})=>S({},e.variant==="outlined"&&{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${xt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${xt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${xt.avatar}`]:{marginLeft:4},[`& .${xt.avatarSmall}`]:{marginLeft:2},[`& .${xt.icon}`]:{marginLeft:4},[`& .${xt.iconSmall}`]:{marginLeft:2},[`& .${xt.deleteIcon}`]:{marginRight:5},[`& .${xt.deleteIconSmall}`]:{marginRight:3}},e.variant==="outlined"&&e.color!=="default"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:Le(t.palette[e.color].main,.7)}`,[`&.${xt.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette[e.color].main,t.palette.action.hoverOpacity)},[`&.${xt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:Le(t.palette[e.color].main,t.palette.action.focusOpacity)},[`& .${xt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:Le(t.palette[e.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].main}}})),zY=q("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:o}=n;return[e.label,e[`label${le(o)}`]]}})(({ownerState:t})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},t.variant==="outlined"&&{paddingLeft:11,paddingRight:11},t.size==="small"&&{paddingLeft:8,paddingRight:8},t.size==="small"&&t.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sM(t){return t.key==="Backspace"||t.key==="Delete"}const VY=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiChip"}),{avatar:i,className:r,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:h,onClick:p,onDelete:g,onKeyDown:m,onKeyUp:b,size:v="medium",variant:y="filled",tabIndex:w,skipFocusWhenDisabled:C=!1}=o,k=ce(o,LY),P=x.useRef(null),M=mt(P,n),_=L=>{L.stopPropagation(),g&&g(L)},R=L=>{L.currentTarget===L.target&&sM(L)&&L.preventDefault(),m&&m(L)},O=L=>{L.currentTarget===L.target&&(g&&sM(L)?g(L):L.key==="Escape"&&P.current&&P.current.blur()),b&&b(L)},I=s!==!1&&p?!0:s,$=I||g?hi:l||"div",F=S({},o,{component:$,disabled:u,size:v,color:a,iconColor:x.isValidElement(d)&&d.props.color||a,onDelete:!!g,clickable:I,variant:y}),E=AY(F),D=$===hi?S({component:l||"div",focusVisibleClassName:E.focusVisible},g&&{disableRipple:!0}):{};let j=null;g&&(j=c&&x.isValidElement(c)?x.cloneElement(c,{className:me(c.props.className,E.deleteIcon),onClick:_}):f.jsx($Y,{className:me(E.deleteIcon),onClick:_}));let N=null;i&&x.isValidElement(i)&&(N=x.cloneElement(i,{className:me(E.avatar,i.props.className)}));let A=null;return d&&x.isValidElement(d)&&(A=x.cloneElement(d,{className:me(E.icon,d.props.className)})),f.jsxs(NY,S({as:$,className:me(E.root,r),disabled:I&&u?!0:void 0,onClick:p,onKeyDown:R,onKeyUp:O,ref:M,tabIndex:C&&u?-1:w,ownerState:F},D,k,{children:[N||A,f.jsx(zY,{className:me(E.label),ownerState:F,children:h}),j]}))}),Td=VY,BD=Rt(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function BY(t){return Ie("MuiAutocomplete",t)}const HY=Te("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),lt=HY;var aM,lM;const WY=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],UY=["ref"],qY=["key"],GY=t=>{const{classes:e,disablePortal:n,expanded:o,focused:i,fullWidth:r,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=t,d={root:["root",o&&"expanded",i&&"focused",r&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${le(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Oe(d,BY,e)},KY=q("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{fullWidth:o,hasClearIcon:i,hasPopupIcon:r,inputFocused:s,size:a}=n;return[{[`& .${lt.tag}`]:e.tag},{[`& .${lt.tag}`]:e[`tagSize${le(a)}`]},{[`& .${lt.inputRoot}`]:e.inputRoot},{[`& .${lt.input}`]:e.input},{[`& .${lt.input}`]:s&&e.inputFocused},e.root,o&&e.fullWidth,r&&e.hasPopupIcon,i&&e.hasClearIcon]}})(({ownerState:t})=>S({[`&.${lt.focused} .${lt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${lt.clearIndicator}`]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{[`& .${lt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},t.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${lt.inputRoot}`]:{flexWrap:"wrap",[`.${lt.hasPopupIcon}&, .${lt.hasClearIcon}&`]:{paddingRight:30},[`.${lt.hasPopupIcon}.${lt.hasClearIcon}&`]:{paddingRight:56},[`& .${lt.input}`]:{width:0,minWidth:30}},[`& .${Kr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Kr.root}.${Oo.sizeSmall}`]:{[`& .${Kr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Vi.root}`]:{padding:9,[`.${lt.hasPopupIcon}&, .${lt.hasClearIcon}&`]:{paddingRight:39},[`.${lt.hasPopupIcon}.${lt.hasClearIcon}&`]:{paddingRight:65},[`& .${lt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${lt.endAdornment}`]:{right:9}},[`& .${Vi.root}.${Oo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${lt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Io.root}`]:{paddingTop:19,paddingLeft:8,[`.${lt.hasPopupIcon}&, .${lt.hasClearIcon}&`]:{paddingRight:39},[`.${lt.hasPopupIcon}.${lt.hasClearIcon}&`]:{paddingRight:65},[`& .${Io.input}`]:{padding:"7px 4px"},[`& .${lt.endAdornment}`]:{right:9}},[`& .${Io.root}.${Oo.sizeSmall}`]:{paddingBottom:1,[`& .${Io.input}`]:{padding:"2.5px 4px"}},[`& .${Oo.hiddenLabel}`]:{paddingTop:8},[`& .${Io.root}.${Oo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${lt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Io.root}.${Oo.hiddenLabel}.${Oo.sizeSmall}`]:{[`& .${lt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${lt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})),YY=q("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(t,e)=>e.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),QY=q(at,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(t,e)=>e.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),XY=q(at,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:t},e)=>S({},e.popupIndicator,t.popupOpen&&e.popupIndicatorOpen)})(({ownerState:t})=>S({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})),JY=q(xh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${lt.option}`]:e.option},e.popper,n.disablePortal&&e.popperDisablePortal]}})(({theme:t,ownerState:e})=>S({zIndex:(t.vars||t).zIndex.modal},e.disablePortal&&{position:"absolute"})),ZY=q(js,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(t,e)=>e.paper})(({theme:t})=>S({},t.typography.body1,{overflow:"auto"})),eQ=q("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(t,e)=>e.loading})(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"})),tQ=q("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(t,e)=>e.noOptions})(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"})),nQ=q("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(t,e)=>e.listbox})(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${lt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${lt.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${lt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Le(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${lt.focused}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${lt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}})),oQ=q(DY,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(t,e)=>e.groupLabel})(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8})),iQ=q("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(t,e)=>e.groupUl})({padding:0,[`& .${lt.option}`]:{paddingLeft:24}}),rQ=x.forwardRef(function(e,n){var o,i,r,s;const a=Pe({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:h,className:p,clearIcon:g=aM||(aM=f.jsx(BD,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:b=!1,clearText:v="Clear",closeText:y="Close",componentsProps:w={},defaultValue:C=a.multiple?[]:null,disableClearable:k=!1,disableCloseOnSelect:P=!1,disabled:M=!1,disabledItemsFocusable:_=!1,disableListWrap:R=!1,disablePortal:O=!1,filterSelectedOptions:I=!1,forcePopupIcon:$="auto",freeSolo:F=!1,fullWidth:E=!1,getLimitTagsText:D=Z=>`+${Z}`,getOptionLabel:j,groupBy:N,handleHomeEndKeys:A=!a.freeSolo,includeInputInList:L=!1,limitTags:V=-1,ListboxComponent:W="ul",ListboxProps:Y,loading:se=!1,loadingText:B="Loading…",multiple:U=!1,noOptionsText:z="No options",openOnFocus:Q=!1,openText:J="Open",PaperComponent:ee=js,PopperComponent:ie=xh,popupIcon:ne=lM||(lM=f.jsx(tD,{})),readOnly:oe=!1,renderGroup:H,renderInput:ue,renderOption:he,renderTags:pe,selectOnFocus:$e=!a.freeSolo,size:re="medium",slotProps:Ce={}}=a,G=ce(a,WY),{getRootProps:X,getInputProps:ve,getInputLabelProps:ke,getPopupIndicatorProps:_e,getClearProps:fe,getTagProps:ae,getListboxProps:xe,getOptionProps:we,value:be,dirty:De,expanded:We,id:Ae,popupOpen:ge,focused:Ne,focusedTag:te,anchorEl:ye,setAnchorEl:Ve,inputValue:Ke,groupedOptions:Qe}=t8(S({},a,{componentName:"Autocomplete"})),ct=!k&&!M&&De&&!oe,yt=(!F||$===!0)&&$!==!1,{onMouseDown:$t}=ve(),{ref:Tt}=Y??{},st=xe(),{ref:Ft}=st,In=ce(st,UY),on=mt(Ft,Tt),ao=j||(Z=>{var Ee;return(Ee=Z.label)!=null?Ee:Z}),Ze=S({},a,{disablePortal:O,expanded:We,focused:Ne,fullWidth:E,getOptionLabel:ao,hasClearIcon:ct,hasPopupIcon:yt,inputFocused:te===-1,popupOpen:ge,size:re}),tt=GY(Ze);let ht;if(U&&be.length>0){const Z=Ee=>S({className:tt.tag,disabled:M},ae(Ee));pe?ht=pe(be,Z,Ze):ht=be.map((Ee,Be)=>f.jsx(Td,S({label:ao(Ee),size:re},Z({index:Be}),h)))}if(V>-1&&Array.isArray(ht)){const Z=ht.length-V;!Ne&&Z>0&&(ht=ht.splice(0,V),ht.push(f.jsx("span",{className:tt.tag,children:D(Z)},ht.length)))}const En=H||(Z=>f.jsxs("li",{children:[f.jsx(oQ,{className:tt.groupLabel,ownerState:Ze,component:"div",children:Z.group}),f.jsx(iQ,{className:tt.groupUl,ownerState:Ze,children:Z.children})]},Z.key)),wo=he||((Z,Ee)=>{const{key:Be}=Z,ot=ce(Z,qY);return f.jsx("li",S({},ot,{children:ao(Ee)}),Be)}),jr=(Z,Ee)=>{const Be=we({option:Z,index:Ee});return wo(S({},Be,{className:tt.option}),Z,{selected:Be["aria-selected"],index:Ee,inputValue:Ke},Ze)},Qn=(o=Ce.clearIndicator)!=null?o:w.clearIndicator,Xn=(i=Ce.paper)!=null?i:w.paper,bi=(r=Ce.popper)!=null?r:w.popper,de=(s=Ce.popupIndicator)!=null?s:w.popupIndicator;return f.jsxs(x.Fragment,{children:[f.jsx(KY,S({ref:n,className:me(tt.root,p),ownerState:Ze},X(G),{children:ue({id:Ae,disabled:M,fullWidth:!0,size:re==="small"?"small":void 0,InputLabelProps:ke(),InputProps:S({ref:Ve,className:tt.inputRoot,startAdornment:ht,onClick:Z=>{Z.target===Z.currentTarget&&$t(Z)}},(ct||yt)&&{endAdornment:f.jsxs(YY,{className:tt.endAdornment,ownerState:Ze,children:[ct?f.jsx(QY,S({},fe(),{"aria-label":v,title:v,ownerState:Ze},Qn,{className:me(tt.clearIndicator,Qn==null?void 0:Qn.className),children:g})):null,yt?f.jsx(XY,S({},_e(),{disabled:M,"aria-label":ge?y:J,title:ge?y:J,ownerState:Ze},de,{className:me(tt.popupIndicator,de==null?void 0:de.className),children:ne})):null]})}),inputProps:S({className:tt.input,disabled:M,readOnly:oe},ve())})})),ye?f.jsx(JY,S({as:ie,disablePortal:O,style:{width:ye?ye.clientWidth:null},ownerState:Ze,role:"presentation",anchorEl:ye,open:ge},bi,{className:me(tt.popper,bi==null?void 0:bi.className),children:f.jsxs(ZY,S({ownerState:Ze,as:ee},Xn,{className:me(tt.paper,Xn==null?void 0:Xn.className),children:[se&&Qe.length===0?f.jsx(eQ,{className:tt.loading,ownerState:Ze,children:B}):null,Qe.length===0&&!F&&!se?f.jsx(tQ,{className:tt.noOptions,ownerState:Ze,role:"presentation",onMouseDown:Z=>{Z.preventDefault()},children:z}):null,Qe.length>0?f.jsx(nQ,S({as:W,className:tt.listbox,ownerState:Ze},In,Y,{ref:on,children:Qe.map((Z,Ee)=>N?En({key:Z.key,group:Z.group,children:Z.options.map((Be,ot)=>jr(Be,Z.index+ot))}):jr(Z,Ee))})):null]}))})):null]})}),sQ=rQ;function aQ(t){return Ie("MuiInputAdornment",t)}const lQ=Te("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),cM=lQ;var uM;const cQ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],uQ=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${le(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},dQ=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:o,position:i,size:r,variant:s}=t,a={root:["root",n&&"disablePointerEvents",i&&`position${le(i)}`,s,o&&"hiddenLabel",r&&`size${le(r)}`]};return Oe(a,aQ,e)},hQ=q("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:uQ})(({theme:t,ownerState:e})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},e.variant==="filled"&&{[`&.${cM.positionStart}&:not(.${cM.hiddenLabel})`]:{marginTop:16}},e.position==="start"&&{marginRight:8},e.position==="end"&&{marginLeft:8},e.disablePointerEvents===!0&&{pointerEvents:"none"})),fQ=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiInputAdornment"}),{children:i,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u}=o,d=ce(o,cQ),h=Dr()||{};let p=u;u&&h.variant,h&&!p&&(p=h.variant);const g=S({},o,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:p}),m=dQ(g);return f.jsx(Jg.Provider,{value:null,children:f.jsx(hQ,S({as:s,ownerState:g,className:me(m.root,r),ref:n},d,{children:typeof i=="string"&&!l?f.jsx(An,{color:"text.secondary",children:i}):f.jsxs(x.Fragment,{children:[c==="start"?uM||(uM=f.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),yc=fQ;function pQ(t,e,n,o,i){const[r,s]=x.useState(()=>i&&n?n(t).matches:o?o(t).matches:e);return nn(()=>{let a=!0;if(!n)return;const l=n(t),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[t,n]),r}const HD=x.useSyncExternalStore;function mQ(t,e,n,o,i){const r=x.useCallback(()=>e,[e]),s=x.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(o!==null){const{matches:u}=o(t);return()=>u}return r},[r,t,o,i,n]),[a,l]=x.useMemo(()=>{if(n===null)return[r,()=>()=>{}];const u=n(t);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[r,n,t]);return HD(l,a,s)}function Rs(t,e={}){const n=Wg(),o=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:r=o?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=GI({name:"MuiUseMediaQuery",props:e,theme:n});let l=typeof t=="function"?t(n):t;return l=l.replace(/^@media( ?)/m,""),(HD!==void 0?mQ:pQ)(l,i,r,s,a)}const Qi=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),q1=({openTo:t,defaultOpenTo:e,views:n,defaultViews:o})=>{const i=n??o;let r;if(t!=null)r=t;else if(i.includes(e))r=e;else if(i.length>0)r=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:r}},Hu=({date:t,disableFuture:e,disablePast:n,maxDate:o,minDate:i,isDateDisabled:r,utils:s,timezone:a})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,a));n&&s.isBefore(i,l)&&(i=l),e&&s.isAfter(o,l)&&(o=l);let c=t,u=t;for(s.isBefore(t,i)&&(c=i,u=null),s.isAfter(t,o)&&(u&&(u=o),c=null);c||u;){if(c&&s.isAfter(c,o)&&(c=null),u&&s.isBefore(u,i)&&(u=null),c){if(!r(c))return c;c=s.addDays(c,1)}if(u){if(!r(u))return u;u=s.addDays(u,-1)}}return null},gQ=(t,e)=>e==null||!t.isValid(e)?null:e,Gn=(t,e,n)=>e==null||!t.isValid(e)?n:e,vQ=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),G1=(t,e)=>{const o=[t.startOfYear(e)];for(;o.length<12;){const i=o[o.length-1];o.push(t.addMonths(i,1))}return o},Dy=(t,e,n)=>{let o=e;return o=t.setHours(o,t.getHours(n)),o=t.setMinutes(o,t.getMinutes(n)),o=t.setSeconds(o,t.getSeconds(n)),o},K1=(t,e,n)=>n==="date"?t.startOfDay(t.dateWithTimezone(void 0,e)):t.dateWithTimezone(void 0,e),Pi=(t,e)=>{const n=t.setHours(t.date(),e==="am"?2:14);return t.format(n,"meridiem")},bQ=["year","month","day"],jl=t=>bQ.includes(t),Od=(t,{format:e,views:n},o)=>{if(e!=null)return e;const i=t.formats;return Qi(n,["year"])?i.year:Qi(n,["month"])?i.month:Qi(n,["day"])?i.dayOfMonth:Qi(n,["month","year"])?`${i.month} ${i.year}`:Qi(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:o?/en/.test(t.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},yQ=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(o=>t.addDays(n,o))},WD=["hours","minutes","seconds"],xc=t=>WD.includes(t),Br=t=>WD.includes(t)||t==="meridiem",xQ=(t,e)=>t?e.getHours(t)>=12?"pm":"am":null,Id=(t,e,n)=>n&&(t>=12?"pm":"am")!==e?e==="am"?t-12:t+12:t,wQ=(t,e,n,o)=>{const i=Id(o.getHours(t),e,n);return o.setHours(t,i)},dM=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),kh=(t,e)=>(n,o)=>t?e.isAfter(n,o):dM(n,e)>dM(o,e),bm=(t,{format:e,views:n,ampm:o})=>{if(e!=null)return e;const i=t.formats;return Qi(n,["hours"])?o?`${i.hours12h} ${i.meridiem}`:i.hours24h:Qi(n,["minutes"])?i.minutes:Qi(n,["seconds"])?i.seconds:Qi(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:Qi(n,["hours","minutes","seconds"])?o?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:o?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},ki={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},CQ=t=>Math.max(...t.map(e=>{var n;return(n=ki[e.type])!=null?n:1})),ou=(t,e,n)=>{if(e===ki.year)return t.startOfYear(n);if(e===ki.month)return t.startOfMonth(n);if(e===ki.day)return t.startOfDay(n);let o=n;return e{var r;let s=i?i():ou(e,n,K1(e,o));t.minDate!=null&&e.isAfterDay(t.minDate,s)&&(s=ou(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,s)&&(s=ou(e,n,t.maxDate));const a=kh((r=t.disableIgnoringDatePartForTimeValidation)!=null?r:!1,e);return t.minTime!=null&&a(t.minTime,s)&&(s=ou(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:Dy(e,s,t.minTime))),t.maxTime!=null&&a(s,t.maxTime)&&(s=ou(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:Dy(e,s,t.maxTime))),s},UD=(t,e)=>{const n=t.formatTokenMap[e];if(n==null)throw new Error([`MUI: The token "${e}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},kQ=t=>{switch(t){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},iv=(t,e,n)=>{const o=[],i=t.dateWithTimezone(void 0,e),r=t.startOfWeek(i),s=t.endOfWeek(i);let a=r;for(;t.isBefore(a,s);)o.push(a),a=t.addDays(a,1);return o.map(l=>t.formatByString(l,n))},qD=(t,e,n,o)=>{switch(n){case"month":return G1(t,t.dateWithTimezone(void 0,e)).map(i=>t.formatByString(i,o));case"weekDay":return iv(t,e,o);case"meridiem":{const i=t.dateWithTimezone(void 0,e);return[t.startOfDay(i),t.endOfDay(i)].map(r=>t.formatByString(r,o))}default:return[]}},GD=(t,e,n)=>{let o=e;for(o=Number(o).toString();o.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=t.setDate(o.longestMonth,n);return t.formatByString(s,i.format)}const r=n.toString();return i.hasLeadingZerosInInput?GD(t,r,i.maxLength):r},PQ=(t,e,n,o,i,r,s)=>{const a=kQ(o),l=o==="Home",c=o==="End",u=n.value===""||l||c,d=()=>{const p=i[n.type]({currentDate:r,format:n.format,contentType:n.contentType}),g=y=>KD(t,e,y,p,n),m=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let v=parseInt(n.value,10)+a*m;if(u){if(n.type==="year"&&!c&&!l)return t.formatByString(t.dateWithTimezone(void 0,e),n.format);a>0||l?v=p.minimum:v=p.maximum}return v%m!==0&&((a<0||l)&&(v+=m-(m+v)%m),(a>0||c)&&(v-=v%m)),v>p.maximum?g(p.minimum+(v-p.maximum-1)%(p.maximum-p.minimum+1)):v{const p=qD(t,e,n.type,n.format);if(p.length===0)return n.value;if(u)return a>0||l?p[0]:p[p.length-1];const m=(p.indexOf(n.value)+p.length+a)%p.length;return p[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():h()},Y1=(t,e)=>{let n=t.value||t.placeholder;const o=e==="non-input"?t.hasLeadingZerosInFormat:t.hasLeadingZerosInInput;return e==="non-input"&&t.hasLeadingZerosInInput&&!t.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(e)&&t.contentType==="digit"&&!o&&n.length===1&&(n=`${n}‎`),e==="input-rtl"&&(n=`⁨${n}⁩`),n},kl=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),YD=(t,e)=>{let n=0,o=e?1:0;const i=[];for(let r=0;r{switch(o.type){case"year":return n.fieldYearPlaceholder({digitAmount:t.formatByString(t.dateWithTimezone(void 0,e),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:o.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:o.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},hM=(t,e,n,o)=>t.formatByString(t.parse(e,n),o),QD=(t,e,n)=>t.formatByString(t.dateWithTimezone(void 0,e),n).length===4,XD=(t,e,n,o,i)=>{if(n!=="digit")return!1;const r=t.dateWithTimezone(void 0,e);switch(o){case"year":return QD(t,e,i)?t.formatByString(t.setYear(r,1),i)==="0001":t.formatByString(t.setYear(r,2001),i)==="01";case"month":return t.formatByString(t.startOfYear(r),i).length>1;case"day":return t.formatByString(t.startOfMonth(r),i).length>1;case"weekDay":return t.formatByString(t.startOfWeek(r),i).length>1;case"hours":return t.formatByString(t.setHours(r,1),i).length>1;case"minutes":return t.formatByString(t.setMinutes(r,1),i).length>1;case"seconds":return t.formatByString(t.setSeconds(r,1),i).length>1;default:throw new Error("Invalid section type")}},_Q=(t,e)=>{const n=[],{start:o,end:i}=t.escapedCharacters,r=new RegExp(`(\\${o}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=r.exec(e);)n.push({start:s.index,end:r.lastIndex-1});return n},fM=(t,e,n,o,i,r,s,a)=>{let l="";const c=[],u=t.date(),d=w=>{if(w==="")return null;const C=UD(t,w),k=XD(t,e,C.contentType,C.type,w),P=s?k:C.contentType==="digit",M=i!=null&&t.isValid(i);let _=M?t.formatByString(i,w):"",R=null;if(P)if(k)R=_===""?t.formatByString(u,w).length:_.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);R=C.maxLength,M&&(_=GD(t,_,R))}return c.push(S({},C,{format:w,maxLength:R,value:_,placeholder:MQ(t,e,n,C,w),hasLeadingZeros:k,hasLeadingZerosInFormat:k,hasLeadingZerosInInput:P,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let h=10,p=o,g=t.expandFormat(o);for(;g!==p;)if(p=g,g=t.expandFormat(p),h-=1,h<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=g,b=_Q(t,m),v=new RegExp(`^(${Object.keys(t.formatTokenMap).sort((w,C)=>C.length-w.length).join("|")})`,"g");let y="";for(let w=0;wR.start<=w&&R.end>=w),k=m[w],P=C!=null,M=`${y}${m.slice(w)}`,_=v.test(M);!P&&k.match(/([A-Za-z]+)/)&&_?(y=M.slice(0,v.lastIndex),w+=v.lastIndex-1):P&&(C==null?void 0:C.start)===w||(C==null?void 0:C.end)===w||(d(y),y="",c.length===0?l+=k:c[c.length-1].endSeparator+=k)}return d(y),c.map(w=>{const C=k=>{let P=k;return a&&P!==null&&P.includes(" ")&&(P=`⁩${P}⁦`),r==="spacious"&&["/",".","-"].includes(P)&&(P=` ${P} `),P};return w.startSeparator=C(w.startSeparator),w.endSeparator=C(w.endSeparator),w})},RQ=(t,e)=>{const n=e.some(a=>a.type==="day"),o=[],i=[];for(let a=0;a{const o=t.map(i=>{const r=Y1(i,e?"input-rtl":"input-ltr");return`${i.startSeparator}${r}${i.endSeparator}`}).join("");return e?`⁦${o}⁩`:o},OQ=(t,e)=>{const n=t.dateWithTimezone(void 0,e),o=t.endOfYear(n),i=t.endOfDay(n),{maxDaysInMonth:r,longestMonth:s}=G1(t,n).reduce((a,l)=>{const c=t.getDaysInMonth(l);return c>a.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:a},{maxDaysInMonth:0,longestMonth:null});return{year:({format:a})=>({minimum:0,maximum:QD(t,e,a)?9999:99}),month:()=>({minimum:1,maximum:t.getMonth(o)+1}),day:({currentDate:a})=>({minimum:1,maximum:a!=null&&t.isValid(a)?t.getDaysInMonth(a):r,longestMonth:s}),weekDay:({format:a,contentType:l})=>{if(l==="digit"){const c=iv(t,e,a).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:a})=>{const l=t.getHours(i);return t.formatByString(t.endOfDay(n),a)!==l.toString()?{minimum:1,maximum:Number(t.formatByString(t.startOfDay(n),a))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:t.getMinutes(i)}),seconds:()=>({minimum:0,maximum:t.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},IQ=(t,e,n,o,i)=>{switch(n.type){case"year":return t.setYear(i,t.getYear(o));case"month":return t.setMonth(i,t.getMonth(o));case"weekDay":{const r=iv(t,e,n.format),s=t.formatByString(o,n.format),a=r.indexOf(s),c=r.indexOf(n.value)-a;return t.addDays(o,c)}case"day":return t.setDate(i,t.getDate(o));case"meridiem":{const r=t.getHours(o)<12,s=t.getHours(i);return r&&s>=12?t.addHours(i,-12):!r&&s<12?t.addHours(i,12):i}case"hours":return t.setHours(i,t.getHours(o));case"minutes":return t.setMinutes(i,t.getMinutes(o));case"seconds":return t.setSeconds(i,t.getSeconds(o));default:return i}},pM={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},mM=(t,e,n,o,i,r)=>[...o].sort((s,a)=>pM[s.type]-pM[a.type]).reduce((s,a)=>!r||a.modified?IQ(t,e,a,n,s):s,i),EQ=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,DQ=(t,e)=>{const n={};if(!e)return t.forEach((l,c)=>{const u=c===0?null:c-1,d=c===t.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:t.length-1};const o={},i={};let r=0,s=0,a=t.length-1;for(;a>=0;){s=t.findIndex((l,c)=>{var u;return c>=r&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=t.length-1);for(let l=s;l>=r;l-=1)i[l]=a,o[a]=l,a-=1;r=s+1}return t.forEach((l,c)=>{const u=i[c],d=u===0?null:o[u-1],h=u===t.length-1?null:o[u+1];n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:o[0],endIndex:o[t.length-1]}},$Q=["value","referenceDate"],Cn={emptyValue:null,getTodayValue:K1,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,o=ce(t,$Q);return e!=null&&o.utils.isValid(e)?e:n??SQ(o)},cleanValue:gQ,areValuesEqual:vQ,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},Q1={updateReferenceValue:(t,e,n)=>e==null||!t.isValid(e)?n:e,getSectionsFromValue:(t,e,n,o,i)=>!t.isValid(e)&&!!n?n:YD(i(e),o),getValueStrFromSections:TQ,getActiveDateManager:(t,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!t.isValid(n)?e.referenceValue:n})}),parseValueStr:(t,e,n)=>n(t.trim(),e)},FQ=["localeText"],$y=x.createContext(null),JD=function(e){var n;const{localeText:o}=e,i=ce(e,FQ),{utils:r,localeText:s}=(n=x.useContext($y))!=null?n:{utils:void 0,localeText:void 0},a=Pe({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:h,localeText:p}=a,g=x.useMemo(()=>S({},p,s,o),[p,s,o]),m=x.useMemo(()=>{if(!c)return r||null;const y=new c({locale:h,formats:u,instance:d});if(!y.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[c,h,u,d,r]),b=x.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=x.useMemo(()=>({utils:m,defaultDates:b,localeText:g}),[b,m,g]);return f.jsx($y.Provider,{value:v,children:l})},jQ=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},t)}}}}),ZD={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n)=>`Select ${t}. ${e===null?"No time selected":`Selected time is ${n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e)=>t!==null&&e.isValid(t)?`Choose date, selected date is ${e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e)=>t!==null&&e.isValid(t)?`Choose time, selected time is ${e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},LQ=ZD;jQ(ZD);const Ua=()=>{const t=x.useContext($y);if(t===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(t.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const e=x.useMemo(()=>S({},LQ,t.localeText),[t.localeText]);return x.useMemo(()=>S({},t,{localeText:e}),[t,e])},rt=()=>Ua().utils,qa=()=>Ua().defaultDates,Sn=()=>Ua().localeText,Ns=t=>{const e=rt(),n=x.useRef();return n.current===void 0&&(n.current=e.dateWithTimezone(void 0,t)),n.current};function e$(t){return Ie("MuiPickersToolbar",t)}Te("MuiPickersToolbar",["root","content"]);const AQ=t=>{const{classes:e,isLandscape:n}=t;return Oe({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},e$,e)},NQ=q("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>S({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},e.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),zQ=q("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})(({ownerState:t})=>{var e;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:t.isLandscape?"flex-start":"space-between",flexDirection:t.isLandscape?(e=t.landscapeDirection)!=null?e:"column":"row",flex:1,alignItems:t.isLandscape?"flex-start":"center"}}),X1=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPickersToolbar"}),{children:i,className:r,toolbarTitle:s,hidden:a,titleId:l}=o,c=o,u=AQ(c);return a?null:f.jsxs(NQ,{ref:n,className:me(u.root,r),ownerState:c,children:[f.jsx(An,{color:"text.secondary",variant:"overline",id:l,children:s}),f.jsx(zQ,{className:u.content,ownerState:c,children:i})]})});function VQ(t){return Ie("MuiDatePickerToolbar",t)}Te("MuiDatePickerToolbar",["root","title"]);const BQ=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],HQ=t=>{const{classes:e}=t;return Oe({root:["root"],title:["title"]},VQ,e)},WQ=q(X1,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),UQ=q(An,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})(({ownerState:t})=>S({},t.isLandscape&&{margin:"auto 16px auto auto"})),qQ=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:r,toolbarFormat:s,toolbarPlaceholder:a="––",views:l}=o,c=ce(o,BQ),u=rt(),d=Sn(),h=HQ(o),p=x.useMemo(()=>{if(!i)return a;const m=Od(u,{format:s,views:l},!0);return u.formatByString(i,m)},[i,s,a,u,l]),g=o;return f.jsx(WQ,S({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:r,className:h.root},c,{children:f.jsx(UQ,{variant:"h4",align:r?"left":"center",ownerState:g,className:h.title,children:p})}))}),Ph=t=>{if(t!==void 0)return Object.keys(t).reduce((e,n)=>S({},e,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:t[n]}),{})};function t$(t,e){var n,o,i,r;const s=rt(),a=qa(),l=Pe({props:t,name:e}),c=x.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:S({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:Ph(l.components);return S({},l,{localeText:c},q1({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Gn(s,l.minDate,a.minDate),maxDate:Gn(s,l.maxDate,a.maxDate),slots:S({toolbar:qQ},u),slotProps:(r=l.slotProps)!=null?r:l.componentsProps})}const GQ=Rt(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),KQ=Rt(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),YQ=Rt(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),n$=Rt(f.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),QQ=Rt(f.jsxs(x.Fragment,{children:[f.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),XQ=Rt(f.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),JQ=Rt(f.jsxs(x.Fragment,{children:[f.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),ZQ=Rt(f.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function eX(t){return Ie("MuiPickersArrowSwitcher",t)}Te("MuiPickersArrowSwitcher",["root","spacer","button"]);const tX=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],nX=["ownerState"],oX=["ownerState"],iX=q("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),rX=q("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),gM=q(at,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})(({ownerState:t})=>S({},t.hidden&&{visibility:"hidden"})),sX=t=>{const{classes:e}=t;return Oe({root:["root"],spacer:["spacer"],button:["button"]},eX,e)},o$=x.forwardRef(function(e,n){var o,i,r,s;const l=Dt().direction==="rtl",c=Pe({props:e,name:"MuiPickersArrowSwitcher"}),{children:u,className:d,slots:h,slotProps:p,isNextDisabled:g,isNextHidden:m,onGoToNext:b,nextLabel:v,isPreviousDisabled:y,isPreviousHidden:w,onGoToPrevious:C,previousLabel:k}=c,P=ce(c,tX),M=c,_=sX(M),R={isDisabled:g,isHidden:m,goTo:b,label:v},O={isDisabled:y,isHidden:w,goTo:C,label:k},I=(o=h==null?void 0:h.previousIconButton)!=null?o:gM,$=nt({elementType:I,externalSlotProps:p==null?void 0:p.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:S({},M,{hidden:O.isHidden}),className:_.button}),F=(i=h==null?void 0:h.nextIconButton)!=null?i:gM,E=nt({elementType:F,externalSlotProps:p==null?void 0:p.nextIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"start",onClick:R.goTo},ownerState:S({},M,{hidden:R.isHidden}),className:_.button}),D=(r=h==null?void 0:h.leftArrowIcon)!=null?r:KQ,j=nt({elementType:D,externalSlotProps:p==null?void 0:p.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),N=ce(j,nX),A=(s=h==null?void 0:h.rightArrowIcon)!=null?s:YQ,L=nt({elementType:A,externalSlotProps:p==null?void 0:p.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),V=ce(L,oX);return f.jsxs(iX,S({ref:n,className:me(_.root,d),ownerState:M},P,{children:[f.jsx(I,S({},$,{children:l?f.jsx(A,S({},V)):f.jsx(D,S({},N))})),u?f.jsx(An,{variant:"subtitle1",component:"span",children:u}):f.jsx(rX,{className:_.spacer,ownerState:M}),f.jsx(F,S({},E,{children:l?f.jsx(D,S({},N)):f.jsx(A,S({},V))}))]}))});function aX(t){return Ie("MuiDialogContent",t)}Te("MuiDialogContent",["root","dividers"]);function lX(t){return Ie("MuiDialogTitle",t)}const cX=Te("MuiDialogTitle",["root"]),uX=cX,dX=["className","dividers"],hX=t=>{const{classes:e,dividers:n}=t;return Oe({root:["root",n&&"dividers"]},aX,e)},fX=q("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(({theme:t,ownerState:e})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${uX.root} + &`]:{paddingTop:0}})),pX=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDialogContent"}),{className:i,dividers:r=!1}=o,s=ce(o,dX),a=S({},o,{dividers:r}),l=hX(a);return f.jsx(fX,S({className:me(l.root,i),ownerState:a,ref:n},s))}),Ed=pX;function mX(t){return Ie("MuiDialog",t)}const gX=Te("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Wu=gX,vX=x.createContext({}),i$=vX,bX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],yX=q(KE,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),xX=t=>{const{classes:e,scroll:n,maxWidth:o,fullWidth:i,fullScreen:r}=t,s={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(o))}`,i&&"paperFullWidth",r&&"paperFullScreen"]};return Oe(s,mX,e)},wX=q(YE,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),CX=q("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${le(n.scroll)}`]]}})(({ownerState:t})=>S({height:"100%","@media print":{height:"auto"},outline:0},t.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},t.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),SX=q(js,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${le(n.scroll)}`],e[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(({theme:t,ownerState:e})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},e.maxWidth==="xs"&&{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Wu.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&e.maxWidth!=="xs"&&{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`,[`&.${Wu.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wu.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),kX=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDialog"}),i=Dt(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:g=!1,maxWidth:m="sm",onBackdropClick:b,onClose:v,open:y,PaperComponent:w=js,PaperProps:C={},scroll:k="paper",TransitionComponent:P=Wa,transitionDuration:M=r,TransitionProps:_}=o,R=ce(o,bX),O=S({},o,{disableEscapeKeyDown:h,fullScreen:p,fullWidth:g,maxWidth:m,scroll:k}),I=xX(O),$=x.useRef(),F=N=>{$.current=N.target===N.currentTarget},E=N=>{$.current&&($.current=null,b&&b(N),v&&v(N,"backdropClick"))},D=cr(a),j=x.useMemo(()=>({titleId:D}),[D]);return f.jsx(wX,S({className:me(I.root,d),closeAfterTransition:!0,components:{Backdrop:yX},componentsProps:{backdrop:S({transitionDuration:M,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:y,ref:n,onClick:E,ownerState:O},R,{children:f.jsx(P,S({appear:!0,in:y,timeout:M,role:"presentation"},_,{children:f.jsx(CX,{className:me(I.container),onMouseDown:F,ownerState:O,children:f.jsx(SX,S({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:me(I.paper,C.className),ownerState:O,children:f.jsx(i$.Provider,{value:j,children:u})}))})}))}))}),r$=kX,Dd=36,rv=2,sv=320,PX=280,av=334,s$=232,yu=48,MX=q(r$)({[`& .${Wu.container}`]:{outline:0},[`& .${Wu.paper}`]:{outline:0,minWidth:sv}}),_X=q(Ed)({"&:first-of-type":{padding:0}});function RX(t){var e,n;const{children:o,onDismiss:i,open:r,slots:s,slotProps:a}=t,l=(e=s==null?void 0:s.dialog)!=null?e:MX,c=(n=s==null?void 0:s.mobileTransition)!=null?n:Wa;return f.jsx(l,S({open:r,onClose:i},a==null?void 0:a.dialog,{TransitionComponent:c,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:f.jsx(_X,{children:o})}))}function TX(t){return Ie("MuiPickersPopper",t)}Te("MuiPickersPopper",["root","paper"]);function ul(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const OX=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation()),e&&e(n)},ym=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?ym(e.shadowRoot):e:null},J1="@media (pointer: fine)",IX="@media (prefers-reduced-motion: reduce)",Ll=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),vM=Ll&&Ll[1]?parseInt(Ll[1],10):null,bM=Ll&&Ll[2]?parseInt(Ll[2],10):null,EX=vM&&vM<10||bM&&bM<13||!1,a$=()=>Rs(IX,{defaultMatches:!1})||EX,DX=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],$X=t=>{const{classes:e}=t;return Oe({root:["root"],paper:["paper"]},TX,e)},FX=q(xh,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.modal})),jX=q(js,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(t,e)=>e.paper})(({ownerState:t})=>S({outline:0,transformOrigin:"top center"},t.placement.includes("top")&&{transformOrigin:"bottom center"}));function LX(t,e){return e.documentElement.clientWidth{if(!t)return;function l(){r.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),r.current=!1}},[t]);const s=je(l=>{if(!r.current)return;const c=o.current;o.current=!1;const u=Wt(i.current);if(!i.current||"clientX"in l&&LX(l,u))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!u.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!c&&e(l)}),a=()=>{o.current=!0};return x.useEffect(()=>{if(t){const l=Wt(i.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[t,s]),x.useEffect(()=>{if(t){const l=Wt(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),o.current=!1}}},[t,s]),[i,a,a]}const NX=x.forwardRef((t,e)=>{const{PaperComponent:n,popperPlacement:o,ownerState:i,children:r,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=t,u=ce(t,DX),d=S({},i,{placement:o}),h=nt({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:a,ownerState:d});return f.jsx(n,S({},u,h,{onClick:p=>{var g;l(p),(g=h.onClick)==null||g.call(h,p)},onTouchStart:p=>{var g;c(p),(g=h.onTouchStart)==null||g.call(h,p)},ownerState:d,children:r}))});function zX(t){var e,n,o,i;const r=Pe({props:t,name:"MuiPickersPopper"}),{anchorEl:s,children:a,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:d,open:h,role:p,placement:g,slots:m,slotProps:b,reduceAnimations:v}=r;x.useEffect(()=>{function L(V){h&&(V.key==="Escape"||V.key==="Esc")&&d()}return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[d,h]);const y=x.useRef(null);x.useEffect(()=>{p==="tooltip"||c&&!c()||(h?y.current=ym(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[h,p,c]);const[w,C,k]=AX(h,u??d),P=x.useRef(null),M=mt(P,l),_=mt(M,w),R=r,O=$X(R),I=a$(),$=v??I,F=L=>{L.key==="Escape"&&(L.stopPropagation(),d())},E=((e=m==null?void 0:m.desktopTransition)!=null?e:$)?Wa:Rd,D=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:bE,j=(o=m==null?void 0:m.desktopPaper)!=null?o:jX,N=(i=m==null?void 0:m.popper)!=null?i:FX,A=nt({elementType:N,externalSlotProps:b==null?void 0:b.popper,additionalProps:{transition:!0,role:p,open:h,anchorEl:s,placement:g,onKeyDown:F},className:O.root,ownerState:r});return f.jsx(N,S({},A,{children:({TransitionProps:L,placement:V})=>f.jsx(D,S({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},b==null?void 0:b.desktopTrapFocus,{children:f.jsx(E,S({},L,b==null?void 0:b.desktopTransition,{children:f.jsx(NX,{PaperComponent:j,ownerState:R,popperPlacement:V,ref:_,onPaperClick:C,onPaperTouchStart:k,paperClasses:O.paper,paperSlotProps:b==null?void 0:b.desktopPaper,children:a})}))}))}))}function VX(t){return Ie("MuiPickersToolbarText",t)}const yM=Te("MuiPickersToolbarText",["root","selected"]),BX=["className","selected","value"],HX=t=>{const{classes:e,selected:n}=t;return Oe({root:["root",n&&"selected"]},VX,e)},WX=q(An,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`&.${yM.selected}`]:e.selected}]})(({theme:t})=>({transition:t.transitions.create("color"),color:(t.vars||t).palette.text.secondary,[`&.${yM.selected}`]:{color:(t.vars||t).palette.text.primary}})),Z1=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPickersToolbarText"}),{className:i,value:r}=o,s=ce(o,BX),a=HX(o);return f.jsx(WX,S({ref:n,className:me(i,a.root),component:"span"},s,{children:r}))}),UX=["align","className","selected","typographyClassName","value","variant","width"],qX=t=>{const{classes:e}=t;return Oe({root:["root"]},e$,e)},GX=q(ii,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:0,minWidth:16,textTransform:"none"}),To=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPickersToolbarButton"}),{align:i,className:r,selected:s,typographyClassName:a,value:l,variant:c,width:u}=o,d=ce(o,UX),h=qX(o);return f.jsx(GX,S({variant:"text",ref:n,className:me(r,h.root)},u?{sx:{width:u}}:{},d,{children:f.jsx(Z1,{align:i,className:a,variant:c,value:l,selected:s})}))}),eC=({timezone:t,value:e,defaultValue:n,onChange:o,valueManager:i})=>{var r,s;const a=rt(),l=x.useRef(n),c=(r=e??l.current)!=null?r:i.emptyValue,u=x.useMemo(()=>i.getTimezone(a,c),[a,i,c]),d=je(m=>u==null?m:i.setTimezone(a,u,m)),h=(s=t??u)!=null?s:"default",p=x.useMemo(()=>i.setTimezone(a,h,c),[i,a,h,c]),g=je((m,...b)=>{const v=d(m);o==null||o(v,...b)});return{value:p,handleValueChange:g,timezone:h}},jc=({name:t,timezone:e,value:n,defaultValue:o,onChange:i,valueManager:r})=>{const[s,a]=Rn({name:t,state:"value",controlled:n,default:o??r.emptyValue}),l=je((c,...u)=>{a(c),i==null||i(c,...u)});return eC({timezone:e,value:s,defaultValue:void 0,onChange:l,valueManager:r})};function l$(t,e,n,o){const{value:i,onError:r}=t,s=Ua(),a=x.useRef(o),l=e({adapter:s,value:i,props:t});return x.useEffect(()=>{r&&!n(l,a.current)&&r(l,i),a.current=l},[n,r,a,l,i]),l}const KX=t=>{const e=rt(),n=Sn(),o=Ua(),r=Dt().direction==="rtl",{valueManager:s,fieldValueManager:a,valueType:l,validator:c,internalProps:u,internalProps:{value:d,defaultValue:h,referenceDate:p,onChange:g,format:m,formatDensity:b="dense",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:w=!1,timezone:C}}=t,{timezone:k,value:P,handleValueChange:M}=eC({timezone:C,value:d,defaultValue:h,onChange:g,valueManager:s}),_=x.useMemo(()=>OQ(e,k),[e,k]),R=x.useCallback((B,U=null)=>a.getSectionsFromValue(e,B,U,r,z=>fM(e,k,n,m,z,b,w,r)),[a,m,n,r,w,e,b,k]),O=x.useMemo(()=>a.getValueStrFromSections(R(s.emptyValue),r),[a,R,s.emptyValue,r]),[I,$]=x.useState(()=>{const B=R(P),U={sections:B,value:P,referenceValue:s.emptyValue,tempValueStrAndroid:null},z=CQ(B),Q=s.getInitialReferenceValue({referenceDate:p,value:P,utils:e,props:u,granularity:z,timezone:k});return S({},U,{referenceValue:Q})}),[F,E]=Rn({controlled:v,default:null,name:"useField",state:"selectedSectionIndexes"}),D=B=>{E(B),y==null||y(B),$(U=>S({},U,{selectedSectionQuery:null}))},j=x.useMemo(()=>{if(F==null)return null;if(F==="all")return{startIndex:0,endIndex:I.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof F=="number")return{startIndex:F,endIndex:F};if(typeof F=="string"){const B=I.sections.findIndex(U=>U.type===F);return{startIndex:B,endIndex:B}}return F},[F,I.sections]),N=({value:B,referenceValue:U,sections:z})=>{if($(J=>S({},J,{sections:z,value:B,referenceValue:U,tempValueStrAndroid:null})),s.areValuesEqual(e,I.value,B))return;const Q={validationError:c({adapter:o,value:B,props:S({},u,{value:B,timezone:k})})};M(B,Q)},A=(B,U)=>{const z=[...I.sections];return z[B]=S({},z[B],{value:U,modified:!0}),YD(z,r)},L=()=>{N({value:s.emptyValue,referenceValue:I.referenceValue,sections:R(s.emptyValue)})},V=()=>{if(j==null)return;const B=I.sections[j.startIndex],U=a.getActiveDateManager(e,I,B),Q=U.getSections(I.sections).filter(ne=>ne.value!=="").length===(B.value===""?0:1),J=A(j.startIndex,""),ee=Q?null:e.date(new Date("")),ie=U.getNewValuesFromNewActiveDate(ee);(ee!=null&&!e.isValid(ee))!=(U.date!=null&&!e.isValid(U.date))?N(S({},ie,{sections:J})):$(ne=>S({},ne,ie,{sections:J,tempValueStrAndroid:null}))},W=B=>{const U=(J,ee)=>{const ie=e.parse(J,m);if(ie==null||!e.isValid(ie))return null;const ne=fM(e,k,n,m,ie,b,w,r);return mM(e,k,ie,ne,ee,!1)},z=a.parseValueStr(B,I.referenceValue,U),Q=a.updateReferenceValue(e,z,I.referenceValue);N({value:z,referenceValue:Q,sections:R(z,I.sections)})},Y=({activeSection:B,newSectionValue:U,shouldGoToNextSection:z})=>{z&&j&&j.startIndexS({},H,ne,{sections:J,tempValueStrAndroid:null}))},se=B=>$(U=>S({},U,{tempValueStrAndroid:B}));return x.useEffect(()=>{const B=R(I.value);$(U=>S({},U,{sections:B}))},[m,e.locale]),x.useEffect(()=>{let B=!1;s.areValuesEqual(e,I.value,P)?B=s.getTimezone(e,I.value)!==s.getTimezone(e,P):B=!0,B&&$(U=>S({},U,{value:P,referenceValue:a.updateReferenceValue(e,P,U.referenceValue),sections:R(P)}))},[P]),{state:I,selectedSectionIndexes:j,setSelectedSections:D,clearValue:L,clearActiveSection:V,updateSectionValue:Y,updateValueFromValueStr:W,setTempAndroidValueStr:se,sectionsValueBoundaries:_,placeholder:O,timezone:k}},YX=5e3,rl=t=>t.saveQuery!=null,QX=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,setTempAndroidValueStr:o,timezone:i})=>{const r=rt(),[s,a]=x.useState(null),l=je(()=>a(null));x.useEffect(()=>{var p;s!=null&&((p=t[s.sectionIndex])==null?void 0:p.type)!==s.sectionType&&l()},[t,s,l]),x.useEffect(()=>{if(s!=null){const p=setTimeout(()=>l(),YX);return()=>{window.clearTimeout(p)}}return()=>{}},[s,l]);const c=({keyPressed:p,sectionIndex:g},m,b)=>{const v=p.toLowerCase(),y=t[g];if(s!=null&&(!b||b(s.value))&&s.sectionIndex===g){const C=`${s.value}${v}`,k=m(C,y);if(!rl(k))return a({sectionIndex:g,value:C,sectionType:y.type}),k}const w=m(v,y);return rl(w)&&!w.saveQuery?(l(),null):(a({sectionIndex:g,value:v,sectionType:y.type}),rl(w)?null:w)},u=p=>{const g=(v,y,w)=>{const C=y.filter(k=>k.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},m=(v,y,w,C)=>{const k=P=>qD(r,i,y.type,P);if(y.contentType==="letter")return g(y.format,k(y.format),v);if(w&&C!=null&&UD(r,w).contentType==="letter"){const P=k(w),M=g(w,P,v);return rl(M)?{saveQuery:!1}:S({},M,{sectionValue:C(M.sectionValue,P)})}return{saveQuery:!1}};return c(p,(v,y)=>{switch(y.type){case"month":{const w=C=>hM(r,C,r.formats.month,y.format);return m(v,y,r.formats.month,w)}case"weekDay":{const w=(C,k)=>k.indexOf(C).toString();return m(v,y,r.formats.weekday,w)}case"meridiem":return m(v,y);default:return{saveQuery:!1}}})},d=p=>{const g=(b,v)=>{const y=+`${b}`,w=n[v.type]({currentDate:null,format:v.format,contentType:v.contentType});if(y>w.maximum)return{saveQuery:!1};if(yw.maximum||b.length===w.maximum.toString().length;return{sectionValue:KD(r,i,y,w,v),shouldGoToNextSection:C}};return c(p,(b,v)=>{if(v.contentType==="digit"||v.contentType==="digit-with-letter")return g(b,v);if(v.type==="month"){const y=XD(r,i,"digit","month","MM"),w=g(b,{type:v.type,format:"MM",hasLeadingZerosInFormat:y,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(rl(w))return w;const C=hM(r,w.sectionValue,"MM",v.format);return S({},w,{sectionValue:C})}if(v.type==="weekDay"){const y=g(b,v);if(rl(y))return y;const w=iv(r,i,v.format)[Number(y.sectionValue)-1];return S({},y,{sectionValue:w})}return{saveQuery:!1}},b=>!Number.isNaN(Number(b)))};return{applyCharacterEditing:je(p=>{const g=t[p.sectionIndex],b=!Number.isNaN(Number(p.keyPressed))?d(p):u(p);b==null?o(null):e({activeSection:g,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})}),resetCharacterQuery:l}},XX=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],tC=t=>{const e=rt(),{state:n,selectedSectionIndexes:o,setSelectedSections:i,clearValue:r,clearActiveSection:s,updateSectionValue:a,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:d,timezone:h}=KX(t),{inputRef:p,internalProps:g,internalProps:{readOnly:m=!1,unstableFieldRef:b,minutesStep:v},forwardedProps:{onClick:y,onKeyDown:w,onFocus:C,onBlur:k,onMouseUp:P,onPaste:M,error:_,clearable:R,onClear:O,disabled:I},fieldValueManager:$,valueManager:F,validator:E}=t,D=ce(t.forwardedProps,XX),{applyCharacterEditing:j,resetCharacterQuery:N}=QX({sections:n.sections,updateSectionValue:a,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:h}),A=x.useRef(null),L=mt(p,A),V=x.useRef(void 0),Y=Dt().direction==="rtl",se=x.useMemo(()=>DQ(n.sections,Y),[n.sections,Y]),B=()=>{var G;if(m){i(null);return}const X=(G=A.current.selectionStart)!=null?G:0;let ve;X<=n.sections[0].startInInput||X>=n.sections[n.sections.length-1].endInInput?ve=1:ve=n.sections.findIndex(_e=>_e.startInInput-_e.startSeparator.length>X);const ke=ve===-1?n.sections.length-1:ve-1;i(ke)},U=je((G,...X)=>{G.isDefaultPrevented()||(y==null||y(G,...X),B())}),z=je(G=>{P==null||P(G),G.preventDefault()}),Q=je((...G)=>{C==null||C(...G);const X=A.current;window.clearTimeout(V.current),V.current=setTimeout(()=>{!X||X!==A.current||o!=null||m||(X.value.length&&Number(X.selectionEnd)-Number(X.selectionStart)===X.value.length?i("all"):B())})}),J=je((...G)=>{k==null||k(...G),i(null)}),ee=je(G=>{if(M==null||M(G),m){G.preventDefault();return}const X=G.clipboardData.getData("text");if(o&&o.startIndex===o.endIndex){const ve=n.sections[o.startIndex],ke=/^[a-zA-Z]+$/.test(X),_e=/^[0-9]+$/.test(X),fe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(X);if(ve.contentType==="letter"&&ke||ve.contentType==="digit"&&_e||ve.contentType==="digit-with-letter"&&fe){N(),a({activeSection:ve,newSectionValue:X,shouldGoToNextSection:!0}),G.preventDefault();return}if(ke||_e){G.preventDefault();return}}G.preventDefault(),N(),l(X)}),ie=je(G=>{if(m)return;const X=G.target.value;if(X===""){N(),r();return}const ve=G.nativeEvent.data,ke=ve&&ve.length>1,_e=ke?ve:X,fe=kl(_e);if(o==null||ke){l(ke?ve:fe);return}let ae;if(o.startIndex===0&&o.endIndex===n.sections.length-1&&fe.length===1)ae=fe;else{const xe=kl($.getValueStrFromSections(n.sections,Y));let we=-1,be=-1;for(let ge=0;geDe.end)return;const Ae=fe.length-xe.length+De.end-kl(De.endSeparator||"").length;ae=fe.slice(De.start+kl(De.startSeparator||"").length,Ae)}if(ae.length===0){EQ()?c(_e):(N(),s());return}j({keyPressed:ae,sectionIndex:o.startIndex})}),ne=je(G=>{switch(w==null||w(G),!0){case(G.key==="a"&&(G.ctrlKey||G.metaKey)):{G.preventDefault(),i("all");break}case G.key==="ArrowRight":{if(G.preventDefault(),o==null)i(se.startIndex);else if(o.startIndex!==o.endIndex)i(o.endIndex);else{const X=se.neighbors[o.startIndex].rightIndex;X!==null&&i(X)}break}case G.key==="ArrowLeft":{if(G.preventDefault(),o==null)i(se.endIndex);else if(o.startIndex!==o.endIndex)i(o.startIndex);else{const X=se.neighbors[o.startIndex].leftIndex;X!==null&&i(X)}break}case G.key==="Delete":{if(G.preventDefault(),m)break;o==null||o.startIndex===0&&o.endIndex===n.sections.length-1?r():s(),N();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(G.key):{if(G.preventDefault(),m||o==null)break;const X=n.sections[o.startIndex],ve=$.getActiveDateManager(e,n,X),ke=PQ(e,h,X,G.key,u,ve.date,{minutesStep:v});a({activeSection:X,newSectionValue:ke,shouldGoToNextSection:!1});break}}});nn(()=>{if(!A.current)return;if(o==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}const G=n.sections[o.startIndex],X=n.sections[o.endIndex];let ve=G.startInInput,ke=X.endInInput;if(o.shouldSelectBoundarySelectors&&(ve-=G.startSeparator.length,ke+=X.endSeparator.length),ve!==A.current.selectionStart||ke!==A.current.selectionEnd){const _e=A.current.scrollTop;A.current===ym(document)&&A.current.setSelectionRange(ve,ke),A.current.scrollTop=_e}});const oe=l$(S({},g,{value:n.value,timezone:h}),E,F.isSameError,F.defaultErrorState),H=x.useMemo(()=>_!==void 0?_:F.hasError(oe),[F,oe,_]);x.useEffect(()=>{!H&&!o&&N()},[n.referenceValue,o,H]),x.useEffect(()=>(A.current&&A.current===document.activeElement&&i("all"),()=>window.clearTimeout(V.current)),[]),x.useEffect(()=>{n.tempValueStrAndroid!=null&&o!=null&&(N(),s())},[n.tempValueStrAndroid]);const ue=x.useMemo(()=>{var G;return(G=n.tempValueStrAndroid)!=null?G:$.getValueStrFromSections(n.sections,Y)},[n.sections,$,n.tempValueStrAndroid,Y]),he=x.useMemo(()=>o==null||n.sections[o.startIndex].contentType==="letter"?"text":"numeric",[o,n.sections]),pe=A.current&&A.current===ym(document),$e=F.areValuesEqual(e,n.value,F.emptyValue),re=!pe&&$e;x.useImperativeHandle(b,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var G,X;const ve=(G=A.current.selectionStart)!=null?G:0,ke=(X=A.current.selectionEnd)!=null?X:0;if(ve===0&&ke===0)return null;const _e=ve<=n.sections[0].startInInput?1:n.sections.findIndex(fe=>fe.startInInput-fe.startSeparator.length>ve);return _e===-1?n.sections.length-1:_e-1},setSelectedSections:G=>i(G)}));const Ce=je((G,...X)=>{var ve;G.preventDefault(),O==null||O(G,...X),r(),A==null||(ve=A.current)==null||ve.focus(),i(0)});return S({placeholder:d,autoComplete:"off",disabled:!!I},D,{value:re?"":ue,inputMode:he,readOnly:m,onClick:U,onFocus:Q,onBlur:J,onPaste:ee,onChange:ie,onKeyDown:ne,onMouseUp:z,onClear:Ce,error:H,ref:L,clearable:!!(R&&!$e&&!m&&!I)})},JX=({open:t,onOpen:e,onClose:n})=>{const o=x.useRef(typeof t=="boolean").current,[i,r]=x.useState(!1);x.useEffect(()=>{if(o){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");r(t)}},[o,t]);const s=x.useCallback(a=>{o||r(a),a&&e&&e(),!a&&n&&n()},[o,e,n]);return{isOpen:i,setIsOpen:s}},ZX=t=>{const{action:e,hasChanged:n,dateState:o,isControlled:i}=t,r=!i&&!o.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?r&&["accept","today","clear"].includes(e.pickerAction)?!0:n(o.lastPublishedValue):e.name==="setValueFromView"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?r?!0:n(o.lastPublishedValue):!1},eJ=t=>{const{action:e,hasChanged:n,dateState:o,isControlled:i,closeOnSelect:r}=t,s=!i&&!o.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?s&&["accept","today","clear"].includes(e.pickerAction)?!0:n(o.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&r?s?!0:n(o.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(o.lastCommittedValue):!1},tJ=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},nJ=({props:t,valueManager:e,valueType:n,wrapperVariant:o,validator:i})=>{const{onAccept:r,onChange:s,value:a,defaultValue:l,closeOnSelect:c=o==="desktop",selectedSections:u,onSelectedSectionsChange:d,timezone:h}=t,{current:p}=x.useRef(l),{current:g}=x.useRef(a!==void 0),m=rt(),b=Ua(),[v,y]=Rn({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:C}=JX(t),[k,P]=x.useState(()=>{let Q;return a!==void 0?Q=a:p!==void 0?Q=p:Q=e.emptyValue,{draft:Q,lastPublishedValue:Q,lastCommittedValue:Q,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),{timezone:M,handleValueChange:_}=eC({timezone:h,value:a,defaultValue:p,onChange:s,valueManager:e});l$(S({},t,{value:k.draft,timezone:M}),i,e.isSameError,e.defaultErrorState);const R=je(Q=>{const J={action:Q,dateState:k,hasChanged:oe=>!e.areValuesEqual(m,Q.value,oe),isControlled:g,closeOnSelect:c},ee=ZX(J),ie=eJ(J),ne=tJ(J);if(P(oe=>S({},oe,{draft:Q.value,lastPublishedValue:ee?Q.value:oe.lastPublishedValue,lastCommittedValue:ie?Q.value:oe.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ee){const H={validationError:Q.name==="setValueFromField"?Q.context.validationError:i({adapter:b,value:Q.value,props:S({},t,{value:Q.value,timezone:M})})};Q.name==="setValueFromShortcut"&&Q.shortcut!=null&&(H.shortcut=Q.shortcut),_(Q.value,H)}ie&&r&&r(Q.value),ne&&C(!1)});if(a!==void 0&&(k.lastControlledValue===void 0||!e.areValuesEqual(m,k.lastControlledValue,a))){const Q=e.areValuesEqual(m,k.draft,a);P(J=>S({},J,{lastControlledValue:a},Q?{}:{lastCommittedValue:a,lastPublishedValue:a,draft:a,hasBeenModifiedSinceMount:!0}))}const O=je(()=>{R({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),I=je(()=>{R({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),$=je(()=>{R({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),F=je(()=>{R({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),E=je(()=>{R({value:e.getTodayValue(m,M,n),name:"setValueFromAction",pickerAction:"today"})}),D=je(()=>C(!0)),j=je(()=>C(!1)),N=je((Q,J="partial")=>R({name:"setValueFromView",value:Q,selectionState:J})),A=je((Q,J,ee)=>R({name:"setValueFromShortcut",value:Q,changeImportance:J??"accept",shortcut:ee})),L=je((Q,J)=>R({name:"setValueFromField",value:Q,context:J})),V=je(Q=>{y(Q),d==null||d(Q)}),W={onClear:O,onAccept:I,onDismiss:$,onCancel:F,onSetToday:E,onOpen:D,onClose:j},Y={value:k.draft,onChange:L,selectedSections:v,onSelectedSectionsChange:V},se=x.useMemo(()=>e.cleanValue(m,k.draft),[m,e,k.draft]),B={value:se,onChange:N,onClose:j,open:w,onSelectedSectionsChange:V},z=S({},W,{value:se,onChange:N,onSelectShortcut:A,isValid:Q=>{const J=i({adapter:b,value:Q,props:S({},t,{value:Q,timezone:M})});return!e.hasError(J)}});return{open:w,fieldProps:Y,viewProps:B,layoutProps:z,actions:W}};function Mh({onChange:t,onViewChange:e,openTo:n,view:o,views:i,autoFocus:r,focusedView:s,onFocusedViewChange:a}){var l,c;const u=x.useRef(n),d=x.useRef(i),h=x.useRef(i.includes(n)?n:i[0]),[p,g]=Rn({name:"useViews",state:"view",controlled:o,default:h.current}),m=x.useRef(r?p:null),[b,v]=Rn({name:"useViews",state:"focusedView",controlled:s,default:m.current});x.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(R=>!i.includes(R)))&&(g(i.includes(n)?n:i[0]),d.current=i,u.current=n)},[n,g,p,i]);const y=i.indexOf(p),w=(l=i[y-1])!=null?l:null,C=(c=i[y+1])!=null?c:null,k=je((R,O)=>{v(O?R:I=>R===I?null:I),a==null||a(R,O)}),P=je(R=>{k(R,!0),R!==p&&(g(R),e&&e(R))}),M=je(()=>{C&&P(C)}),_=je((R,O,I)=>{const $=O==="finish",F=I?i.indexOf(I){const{onChange:r,open:s,onSelectedSectionsChange:a,onClose:l}=e,{views:c,openTo:u,onViewChange:d,disableOpenPicker:h,viewRenderers:p,timezone:g}=t,m=ce(t,oJ),{view:b,setView:v,defaultView:y,focusedView:w,setFocusedView:C,setValueAndGoToNextView:k}=Mh({view:void 0,views:c,openTo:u,onChange:r,onViewChange:d,autoFocus:i}),{hasUIView:P,viewModeLookup:M}=x.useMemo(()=>c.reduce((E,D)=>{let j;return h?j="field":p[D]!=null?j="UI":j="field",E.viewModeLookup[D]=j,j==="UI"&&(E.hasUIView=!0),E},{hasUIView:!1,viewModeLookup:{}}),[h,p,c]),_=x.useMemo(()=>c.reduce((E,D)=>p[D]!=null&&xc(D)?E+1:E,0),[p,c]),R=M[b],O=je(()=>R==="UI"),[I,$]=x.useState(R==="UI"?b:null);return I!==b&&M[b]==="UI"&&$(b),nn(()=>{R==="field"&&s&&(l(),setTimeout(()=>{o==null||o.current.focus(),a(b)}))},[b]),nn(()=>{if(!s)return;let E=b;R==="field"&&I!=null&&(E=I),E!==y&&M[E]==="UI"&&M[y]==="UI"&&(E=y),E!==b&&v(E),C(E,!0)},[s]),{hasUIView:P,shouldRestoreFocus:O,layoutProps:{views:c,view:I,onViewChange:v},renderCurrentView:()=>{if(I==null)return null;const E=p[I];return E==null?null:E(S({},m,n,e,{views:c,timezone:g,onChange:k,view:I,onViewChange:v,focusedView:w,onFocusedViewChange:C,showViewSwitcher:_>1,timeViewsCount:_}))}}};function xM(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const rJ=(t,e)=>{const[n,o]=x.useState(xM);return nn(()=>{const r=()=>{o(xM())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),ul(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},sJ=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:i}=t,r=rJ(n.views,i);return{layoutProps:S({},n,e,{isLandscape:r,wrapperVariant:o,disabled:t.disabled,readOnly:t.readOnly})}},aJ=(t,e="warning")=>{let n=!1;const o=Array.isArray(t)?t.join(` +`):t;return()=>{n||(n=!0,e==="error"?console.error(o):console.warn(o))}};aJ(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const c$=({props:t,valueManager:e,valueType:n,wrapperVariant:o,inputRef:i,additionalViewProps:r,validator:s,autoFocusView:a})=>{const l=nJ({props:t,valueManager:e,valueType:n,wrapperVariant:o,validator:s}),c=iJ({props:t,inputRef:i,additionalViewProps:r,autoFocusView:a,propsFromPickerValue:l.viewProps}),u=sJ({props:t,wrapperVariant:o,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function u$(t){return Ie("MuiPickersLayout",t)}const M0=Te("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]);function lJ(t){return Ie("MuiDialogActions",t)}Te("MuiDialogActions",["root","spacing"]);const cJ=["className","disableSpacing"],uJ=t=>{const{classes:e,disableSpacing:n}=t;return Oe({root:["root",!n&&"spacing"]},lJ,e)},dJ=q("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})(({ownerState:t})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),hJ=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:r=!1}=o,s=ce(o,cJ),a=S({},o,{disableSpacing:r}),l=uJ(a);return f.jsx(dJ,S({className:me(l.root,i),ownerState:a,ref:n},s))}),$d=hJ,fJ=["onAccept","onClear","onCancel","onSetToday","actions"];function pJ(t){const{onAccept:e,onClear:n,onCancel:o,onSetToday:i,actions:r}=t,s=ce(t,fJ),a=Sn();if(r==null||r.length===0)return null;const l=r==null?void 0:r.map(c=>{switch(c){case"clear":return f.jsx(ii,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(ii,{onClick:o,children:a.cancelButtonLabel},c);case"accept":return f.jsx(ii,{onClick:e,children:a.okButtonLabel},c);case"today":return f.jsx(ii,{onClick:i,children:a.todayButtonLabel},c);default:return null}});return f.jsx($d,S({},s,{children:l}))}function mJ(t){return Ie("MuiListItem",t)}const gJ=Te("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),dl=gJ,vJ=Te("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),bJ=vJ;function yJ(t){return Ie("MuiListItemSecondaryAction",t)}Te("MuiListItemSecondaryAction",["root","disableGutters"]);const xJ=["className"],wJ=t=>{const{disableGutters:e,classes:n}=t;return Oe({root:["root",e&&"disableGutters"]},yJ,n)},CJ=q("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})(({ownerState:t})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),d$=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=o,r=ce(o,xJ),s=x.useContext(Cs),a=S({},o,{disableGutters:s.disableGutters}),l=wJ(a);return f.jsx(CJ,S({className:me(l.root,i),ownerState:a,ref:n},r))});d$.muiName="ListItemSecondaryAction";const SJ=d$,kJ=["className"],PJ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],MJ=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]},_J=t=>{const{alignItems:e,button:n,classes:o,dense:i,disabled:r,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=t;return Oe({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",r&&"disabled",n&&"button",e==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},mJ,o)},RJ=q("div",{name:"MuiListItem",slot:"Root",overridesResolver:MJ})(({theme:t,ownerState:e})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&S({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${bJ.root}`]:{paddingRight:48}},{[`&.${dl.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${dl.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Le(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${dl.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${dl.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.alignItems==="flex-start"&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dl.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Le(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Le(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),TJ=q("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),OJ=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:r=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:h="li",ContainerProps:{className:p}={},dense:g=!1,disabled:m=!1,disableGutters:b=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:C,selected:k=!1,slotProps:P={},slots:M={}}=o,_=ce(o.ContainerProps,kJ),R=ce(o,PJ),O=x.useContext(Cs),I=x.useMemo(()=>({dense:g||O.dense||!1,alignItems:i,disableGutters:b}),[i,O.dense,g,b]),$=x.useRef(null);nn(()=>{r&&$.current&&$.current.focus()},[r]);const F=x.Children.toArray(a),E=F.length&&Fu(F[F.length-1],["ListItemSecondaryAction"]),D=S({},o,{alignItems:i,autoFocus:r,button:s,dense:I.dense,disabled:m,disableGutters:b,disablePadding:v,divider:y,hasSecondaryAction:E,selected:k}),j=_J(D),N=mt($,n),A=M.root||u.Root||RJ,L=P.root||d.root||{},V=S({className:me(j.root,L.className,l),disabled:m},R);let W=c||"li";return s&&(V.component=c||"div",V.focusVisibleClassName=me(dl.focusVisible,w),W=hi),E?(W=!V.component&&!c?"div":W,h==="li"&&(W==="li"?W="div":V.component==="li"&&(V.component="div")),f.jsx(Cs.Provider,{value:I,children:f.jsxs(TJ,S({as:h,className:me(j.container,p),ref:N,ownerState:D},_,{children:[f.jsx(A,S({},L,!tr(A)&&{as:W,ownerState:S({},D,L.ownerState)},V,{children:F})),F.pop()]}))})):f.jsx(Cs.Provider,{value:I,children:f.jsxs(A,S({},L,{as:W,ref:N},!tr(A)&&{ownerState:S({},D,L.ownerState)},V,{children:[F,C&&f.jsx(SJ,{children:C})]}))})}),IJ=OJ,EJ=["items","changeImportance","isLandscape","onChange","isValid"],DJ=["getValue"];function $J(t){const{items:e,changeImportance:n,onChange:o,isValid:i}=t,r=ce(t,EJ);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,c=ce(a,DJ);const u=l({isValid:i});return{label:c.label,onClick:()=>{o(u,n,c)},disabled:!i(u)}});return f.jsx(qE,S({dense:!0,sx:[{maxHeight:av,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:s.map(a=>f.jsx(IJ,{children:f.jsx(Td,S({},a))},a.label))}))}function FJ(t){return t.view!==null}const jJ=t=>{const{classes:e,isLandscape:n}=t;return Oe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},u$,e)},LJ=t=>{var e,n;const{wrapperVariant:o,onAccept:i,onClear:r,onCancel:s,onSetToday:a,view:l,views:c,onViewChange:u,value:d,onChange:h,onSelectShortcut:p,isValid:g,isLandscape:m,disabled:b,readOnly:v,children:y,components:w,componentsProps:C,slots:k,slotProps:P}=t,M=k??Ph(w),_=P??C,R=jJ(t),O=(e=M==null?void 0:M.actionBar)!=null?e:pJ,I=nt({elementType:O,externalSlotProps:_==null?void 0:_.actionBar,additionalProps:{onAccept:i,onClear:r,onCancel:s,onSetToday:a,actions:o==="desktop"?[]:["cancel","accept"],className:R.actionBar},ownerState:S({},t,{wrapperVariant:o})}),$=f.jsx(O,S({},I)),F=M==null?void 0:M.toolbar,E=nt({elementType:F,externalSlotProps:_==null?void 0:_.toolbar,additionalProps:{isLandscape:m,onChange:h,value:d,view:l,onViewChange:u,views:c,disabled:b,readOnly:v,className:R.toolbar},ownerState:S({},t,{wrapperVariant:o})}),D=FJ(E)&&F?f.jsx(F,S({},E)):null,j=y,N=M==null?void 0:M.tabs,A=l&&N?f.jsx(N,S({view:l,onViewChange:u},_==null?void 0:_.tabs)):null,L=(n=M==null?void 0:M.shortcuts)!=null?n:$J,V=nt({elementType:L,externalSlotProps:_==null?void 0:_.shortcuts,additionalProps:{isValid:g,isLandscape:m,onChange:p,className:R.shortcuts},ownerState:{isValid:g,isLandscape:m,onChange:p,className:R.shortcuts,wrapperVariant:o}}),W=l&&L?f.jsx(L,S({},V)):null;return{toolbar:D,content:j,tabs:A,actionBar:$,shortcuts:W}},AJ=LJ,NJ=t=>{const{isLandscape:e,classes:n}=t;return Oe({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},u$,n)},h$=q("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${M0.toolbar}`]:e.isLandscape?{gridColumn:t.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${M0.shortcuts}`]:e.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:t.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${M0.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));h$.propTypes={as:T.elementType,ownerState:T.shape({isLandscape:T.bool.isRequired}).isRequired,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object])};const zJ=q("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),f$=function(e){const n=Pe({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:r,actionBar:s,shortcuts:a}=AJ(n),{sx:l,className:c,isLandscape:u,ref:d,wrapperVariant:h}=n,p=n,g=NJ(p);return f.jsxs(h$,{ref:d,sx:l,className:me(c,g.root),ownerState:p,children:[u?a:o,u?o:a,f.jsx(zJ,{className:g.contentWrapper,children:h==="desktop"?f.jsxs(x.Fragment,{children:[i,r]}):f.jsxs(x.Fragment,{children:[r,i]})}),s]})};function VJ(t,{disableFuture:e,maxDate:n,timezone:o}){const i=rt();return x.useMemo(()=>{const r=i.dateWithTimezone(void 0,o),s=i.startOfMonth(e&&i.isBefore(r,n)?r:n);return!i.isAfter(s,t)},[e,n,t,i,o])}function BJ(t,{disablePast:e,minDate:n,timezone:o}){const i=rt();return x.useMemo(()=>{const r=i.dateWithTimezone(void 0,o),s=i.startOfMonth(e&&i.isAfter(r,n)?r:n);return!i.isBefore(s,t)},[e,n,t,i,o])}function lv(t,e,n,o){const i=rt(),r=xQ(t,i),s=x.useCallback(a=>{const l=t==null?null:wQ(t,a,!!e,i);n(l,o??"partial")},[e,t,n,o,i]);return{meridiemMode:r,handleMeridiemChange:s}}const Fy=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],jy=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],p$=["minDateTime","maxDateTime"],HJ=[...Fy,...jy,...p$],Lc=t=>HJ.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{}),WJ=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],nC=(t,e)=>{const n=S({},t),o={},i=r=>{n.hasOwnProperty(r)&&(o[r]=n[r],delete n[r])};return WJ.forEach(i),e==="date"?Fy.forEach(i):e==="time"?jy.forEach(i):e==="date-time"&&(Fy.forEach(i),jy.forEach(i),p$.forEach(i)),{forwardedProps:n,internalProps:o}},_h=({props:t,value:e,adapter:n})=>{if(e===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:r,disablePast:s,disableFuture:a,timezone:l}=t,c=n.utils.dateWithTimezone(void 0,l),u=Gn(n.utils,t.minDate,n.defaultDates.minDate),d=Gn(n.utils,t.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(e):return"invalidDate";case!!(o&&o(e)):return"shouldDisableDate";case!!(i&&i(e)):return"shouldDisableMonth";case!!(r&&r(e)):return"shouldDisableYear";case!!(a&&n.utils.isAfterDay(e,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(e,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(e,u)):return"minDate";case!!(d&&n.utils.isAfterDay(e,d)):return"maxDate";default:return null}},cv=({adapter:t,value:e,props:n})=>{if(e===null)return null;const{minTime:o,maxTime:i,minutesStep:r,shouldDisableClock:s,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:d}=n,h=t.utils.dateWithTimezone(void 0,d),p=kh(l,t.utils);switch(!0){case!t.utils.isValid(e):return"invalidDate";case!!(o&&p(o,e)):return"minTime";case!!(i&&p(e,i)):return"maxTime";case!!(u&&t.utils.isAfter(e,h)):return"disableFuture";case!!(c&&t.utils.isBefore(e,h)):return"disablePast";case!!(a&&a(e,"hours")):return"shouldDisableTime-hours";case!!(a&&a(e,"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(t.utils.getHours(e),"hours")):return"shouldDisableClock-hours";case!!(s&&s(t.utils.getMinutes(e),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(t.utils.getSeconds(e),"seconds")):return"shouldDisableClock-seconds";case!!(r&&t.utils.getMinutes(e)%r!==0):return"minutesStep";default:return null}},oC=({props:t,value:e,adapter:n})=>{const o=_h({adapter:n,value:e,props:t});return o!==null?o:cv({adapter:n,value:e,props:t})};function UJ(t){return Ie("MuiPickersDay",t)}const Vs=Te("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),qJ=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],GJ=t=>{const{selected:e,disableMargin:n,disableHighlightToday:o,today:i,disabled:r,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,c=s&&!a;return Oe({root:["root",e&&!c&&"selected",r&&"disabled",!n&&"dayWithMargin",!o&&i&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},UJ,l)},m$=({theme:t,ownerState:e})=>S({},t.typography.caption,{width:Dd,height:Dd,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Le(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${Vs.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Vs.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${Vs.disabled}:not(.${Vs.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${Vs.disabled}&.${Vs.selected}`]:{opacity:.6}},!e.disableMargin&&{margin:`0 ${rv}px`},e.outsideCurrentMonth&&e.showDaysOutsideCurrentMonth&&{color:(t.vars||t).palette.text.secondary},!e.disableHighlightToday&&e.today&&{[`&:not(.${Vs.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}),g$=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},KJ=q(hi,{name:"MuiPickersDay",slot:"Root",overridesResolver:g$})(m$),YJ=q("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:g$})(({theme:t,ownerState:e})=>S({},m$({theme:t,ownerState:e}),{opacity:0,pointerEvents:"none"})),iu=()=>{},QJ=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPickersDay"}),{autoFocus:i=!1,className:r,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:d,onDaySelect:h,onFocus:p=iu,onBlur:g=iu,onKeyDown:m=iu,onMouseDown:b=iu,onMouseEnter:v=iu,outsideCurrentMonth:y,selected:w=!1,showDaysOutsideCurrentMonth:C=!1,children:k,today:P=!1}=o,M=ce(o,qJ),_=S({},o,{autoFocus:i,disabled:a,disableHighlightToday:l,disableMargin:c,selected:w,showDaysOutsideCurrentMonth:C,today:P}),R=GJ(_),O=rt(),I=x.useRef(null),$=mt(I,n);nn(()=>{i&&!a&&!u&&!y&&I.current.focus()},[i,a,u,y]);const F=D=>{b(D),y&&D.preventDefault()},E=D=>{a||h(s),y&&D.currentTarget.focus(),d&&d(D)};return y&&!C?f.jsx(YJ,{className:me(R.root,R.hiddenDaySpacingFiller,r),ownerState:_,role:M.role}):f.jsx(KJ,S({className:me(R.root,r),ref:$,centerRipple:!0,disabled:a,tabIndex:w?0:-1,onKeyDown:D=>m(D,s),onFocus:D=>p(D,s),onBlur:D=>g(D,s),onMouseEnter:D=>v(D,s),onClick:E,onMouseDown:F},M,{ownerState:_,children:k||O.format(s,"dayOfMonth")}))}),XJ=x.memo(QJ),JJ=t=>Ie("MuiPickersSlideTransition",t),Uo=Te("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ZJ=["children","className","reduceAnimations","slideDirection","transKey","classes"],eZ=t=>{const{classes:e,slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Oe(o,JJ,e)},tZ=q(Yw,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${Uo["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${Uo["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${Uo.slideEnterActive}`]:e.slideEnterActive},{[`.${Uo.slideExit}`]:e.slideExit},{[`.${Uo["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${Uo["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Uo["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Uo["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Uo.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${Uo.slideExit}`]:{transform:"translate(0%)"},[`& .${Uo["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${Uo["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function nZ(t){const e=Pe({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:i,transKey:r}=e,s=ce(e,ZJ),a=eZ(e),l=Dt();if(i)return f.jsx("div",{className:me(a.root,o),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return f.jsx(tZ,{className:me(a.root,o),childFactory:u=>x.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(uW,S({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),r)})}const v$=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:o,maxDate:i,disableFuture:r,disablePast:s,timezone:a})=>{const l=Ua();return x.useCallback(c=>_h({adapter:l,value:c,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:o,maxDate:i,disableFuture:r,disablePast:s,timezone:a}})!==null,[l,t,e,n,o,i,r,s,a])},oZ=t=>Ie("MuiDayCalendar",t);Te("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const iZ=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],rZ=["ownerState"],sZ=t=>{const{classes:e}=t;return Oe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},oZ,e)},b$=(Dd+rv*2)*6,aZ=q("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),lZ=q("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),cZ=q(An,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),uZ=q(An,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),dZ=q(An,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>S({},t.typography.caption,{width:Dd,height:Dd,padding:0,margin:`0 ${rv}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),hZ=q("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:b$}),fZ=q(nZ,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:b$}),pZ=q("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),mZ=q("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${rv}px 0`,display:"flex",justifyContent:"center"});function gZ(t){var e,n,o;let{parentProps:i,day:r,focusableDay:s,selectedDays:a,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=t,d=ce(t,iZ);const{disabled:h,disableHighlightToday:p,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:m,components:b,componentsProps:v,slots:y,slotProps:w,timezone:C}=i,k=rt(),P=Ns(C),M=s!==null&&k.isSameDay(r,s),_=a.some(N=>k.isSameDay(N,r)),R=k.isSameDay(r,P),O=(e=(n=y==null?void 0:y.day)!=null?n:b==null?void 0:b.Day)!=null?e:XJ,I=nt({elementType:O,externalSlotProps:(o=w==null?void 0:w.day)!=null?o:v==null?void 0:v.day,additionalProps:S({disableHighlightToday:p,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:g,"data-timestamp":k.toJsDate(r).valueOf()},d),ownerState:S({},i,{day:r,selected:_})}),$=ce(I,rZ),F=x.useMemo(()=>h||l(r),[h,l,r]),E=x.useMemo(()=>k.getMonth(r)!==c,[k,r,c]),D=x.useMemo(()=>{const N=k.startOfMonth(k.setMonth(r,c));return m?k.isSameDay(r,k.startOfWeek(N)):k.isSameDay(r,N)},[c,r,m,k]),j=x.useMemo(()=>{const N=k.endOfMonth(k.setMonth(r,c));return m?k.isSameDay(r,k.endOfWeek(N)):k.isSameDay(r,N)},[c,r,m,k]);return f.jsx(O,S({},$,{day:r,disabled:F,autoFocus:u&&M,today:R,outsideCurrentMonth:E,isFirstVisibleCell:D,isLastVisibleCell:j,selected:_,tabIndex:M?0:-1,"aria-selected":_,"aria-current":R?"date":void 0}))}function vZ(t){const e=Pe({props:t,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:o,currentMonth:i,selectedDays:r,focusedDay:s,loading:a,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:d,renderLoading:h=()=>f.jsx("span",{children:"..."}),slideDirection:p,TransitionProps:g,disablePast:m,disableFuture:b,minDate:v,maxDate:y,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:k,dayOfWeekFormatter:P,hasFocus:M,onFocusedViewChange:_,gridLabelId:R,displayWeekNumber:O,fixedWeekNumber:I,autoFocus:$,timezone:F}=e,E=Ns(F),D=rt(),j=sZ(e),A=Dt().direction==="rtl",L=P||((re,Ce)=>D.format(Ce,"weekdayShort").charAt(0).toUpperCase()),V=v$({shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:k,minDate:v,maxDate:y,disablePast:m,disableFuture:b,timezone:F}),W=Sn(),[Y,se]=Rn({name:"DayCalendar",state:"hasFocus",controlled:M,default:$??!1}),[B,U]=x.useState(()=>s||E),z=je(re=>{u||l(re)}),Q=re=>{V(re)||(n(re),U(re),_==null||_(!0),se(!0))},J=je((re,Ce)=>{switch(re.key){case"ArrowUp":Q(D.addDays(Ce,-7)),re.preventDefault();break;case"ArrowDown":Q(D.addDays(Ce,7)),re.preventDefault();break;case"ArrowLeft":{const G=D.addDays(Ce,A?1:-1),X=D.addMonths(Ce,A?1:-1),ve=Hu({utils:D,date:G,minDate:A?G:D.startOfMonth(X),maxDate:A?D.endOfMonth(X):G,isDateDisabled:V,timezone:F});Q(ve||G),re.preventDefault();break}case"ArrowRight":{const G=D.addDays(Ce,A?-1:1),X=D.addMonths(Ce,A?-1:1),ve=Hu({utils:D,date:G,minDate:A?D.startOfMonth(X):G,maxDate:A?G:D.endOfMonth(X),isDateDisabled:V,timezone:F});Q(ve||G),re.preventDefault();break}case"Home":Q(D.startOfWeek(Ce)),re.preventDefault();break;case"End":Q(D.endOfWeek(Ce)),re.preventDefault();break;case"PageUp":Q(D.addMonths(Ce,1)),re.preventDefault();break;case"PageDown":Q(D.addMonths(Ce,-1)),re.preventDefault();break}}),ee=je((re,Ce)=>Q(Ce)),ie=je((re,Ce)=>{Y&&D.isSameDay(B,Ce)&&(_==null||_(!1))}),ne=D.getMonth(i),oe=x.useMemo(()=>r.filter(re=>!!re).map(re=>D.startOfDay(re)),[D,r]),H=ne,ue=x.useMemo(()=>x.createRef(),[H]),he=D.startOfWeek(E),pe=x.useMemo(()=>{const re=D.startOfMonth(i),Ce=D.endOfMonth(i);return V(B)||D.isAfterDay(B,Ce)||D.isBeforeDay(B,re)?Hu({utils:D,date:B,minDate:re,maxDate:Ce,disablePast:m,disableFuture:b,isDateDisabled:V,timezone:F}):B},[i,b,m,B,V,D,F]),$e=x.useMemo(()=>{const re=D.setTimezone(i,F),Ce=D.getWeekArray(re);let G=D.addMonths(re,1);for(;I&&Ce.length{Ce.length{var G;const X=D.format(re,"weekdayShort");return f.jsx(cZ,{variant:"caption",role:"columnheader","aria-label":D.format(D.addDays(he,Ce),"weekday"),className:j.weekDayLabel,children:(G=L==null?void 0:L(X,re))!=null?G:X},X+Ce.toString())})]}),a?f.jsx(hZ,{className:j.loadingContainer,children:h()}):f.jsx(fZ,S({transKey:H,onExited:c,reduceAnimations:d,slideDirection:p,className:me(o,j.slideTransition)},g,{nodeRef:ue,children:f.jsx(pZ,{ref:ue,role:"rowgroup",className:j.monthContainer,children:$e.map((re,Ce)=>f.jsxs(mZ,{role:"row",className:j.weekContainer,"aria-rowindex":Ce+1,children:[O&&f.jsx(dZ,{className:j.weekNumber,role:"rowheader","aria-label":W.calendarWeekNumberAriaLabelText(D.getWeekNumber(re[0])),children:W.calendarWeekNumberText(D.getWeekNumber(re[0]))}),re.map((G,X)=>f.jsx(gZ,{parentProps:e,day:G,selectedDays:oe,focusableDay:pe,onKeyDown:J,onFocus:ee,onBlur:ie,onDaySelect:z,isDateDisabled:V,currentMonthNumber:ne,isViewFocused:Y,"aria-colindex":X+1},G.toString()))]},`week-${re[0]}`))})}))]})}const bZ=(t,e,n)=>(o,i)=>{switch(i.type){case"changeMonth":return S({},o,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!t});case"finishMonthSwitchingAnimation":return S({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,o.focusedDay))return o;const r=i.focusedDay!=null&&!e&&!n.isSameMonth(o.currentMonth,i.focusedDay);return S({},o,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:r&&!t&&!i.withoutMonthSwitchingAnimation,currentMonth:r?n.startOfMonth(i.focusedDay):o.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},yZ=t=>{const{value:e,referenceDate:n,defaultCalendarMonth:o,disableFuture:i,disablePast:r,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:h}=t,p=Ns(h),g=rt(),m=x.useRef(bZ(!!u,s,g)).current,b=x.useMemo(()=>{let _=null;return n?_=n:o&&(_=g.startOfMonth(o)),Cn.getInitialReferenceValue({value:e,utils:g,timezone:h,props:t,referenceDate:_,granularity:ki.day})},[]),[v,y]=x.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g.isValid(e)?e:p,currentMonth:g.startOfMonth(b),slideDirection:"left"}),w=x.useCallback(_=>{y(S({type:"changeMonth"},_)),c&&c(_.newMonth)},[c]),C=x.useCallback(_=>{const R=_;g.isSameMonth(R,v.currentMonth)||w({newMonth:g.startOfMonth(R),direction:g.isAfterDay(R,v.currentMonth)?"left":"right"})},[v.currentMonth,w,g]),k=v$({shouldDisableDate:d,minDate:l,maxDate:a,disableFuture:i,disablePast:r,timezone:h}),P=x.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),M=je((_,R)=>{k(_)||y({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:R})});return{referenceDate:b,calendarState:v,changeMonth:C,changeFocusedDay:M,isDateDisabled:k,onMonthSwitchingAnimationEnd:P,handleChangeMonth:w}},xZ=["props","getOpenDialogAriaText"],wZ=["ownerState"],CZ=["ownerState"],iC=t=>{var e,n,o,i,r;let{props:s,getOpenDialogAriaText:a}=t,l=ce(t,xZ);const{slots:c,slotProps:u,className:d,sx:h,format:p,formatDensity:g,timezone:m,name:b,label:v,inputRef:y,readOnly:w,disabled:C,autoFocus:k,localeText:P,reduceAnimations:M}=s,_=rt(),R=x.useRef(null),O=x.useRef(null),I=cr(),$=(e=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?e:!1,{open:F,actions:E,hasUIView:D,layoutProps:j,renderCurrentView:N,shouldRestoreFocus:A,fieldProps:L}=c$(S({},l,{props:s,inputRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),V=(o=c.inputAdornment)!=null?o:yc,W=nt({elementType:V,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:s}),Y=ce(W,wZ),se=(i=c.openPickerButton)!=null?i:at,B=nt({elementType:se,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:C||w,onClick:F?E.onClose:E.onOpen,"aria-label":a(L.value,_),edge:Y.position},ownerState:s}),U=ce(B,CZ),z=c.openPickerIcon,Q=c.field,J=nt({elementType:Q,externalSlotProps:u==null?void 0:u.field,additionalProps:S({},L,$&&{id:I},{readOnly:w,disabled:C,className:d,sx:h,format:p,formatDensity:g,timezone:m,label:v,name:b,autoFocus:k&&!s.open,focused:F?!0:void 0}),ownerState:s});D&&(J.InputProps=S({},J.InputProps,{ref:O,[`${Y.position}Adornment`]:f.jsx(V,S({},Y,{children:f.jsx(se,S({},U,{children:f.jsx(z,S({},u==null?void 0:u.openPickerIcon))}))}))}));const ee=S({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},J.slots),ie=(r=c.layout)!=null?r:f$,ne=mt(R,J.inputRef,y);let oe=I;$&&(v?oe=`${I}-label`:oe=void 0);const H=S({},u,{toolbar:S({},u==null?void 0:u.toolbar,{titleId:I}),popper:S({"aria-labelledby":oe},u==null?void 0:u.popper)});return{renderPicker:()=>f.jsxs(JD,{localeText:P,children:[f.jsx(Q,S({},J,{slots:ee,slotProps:H,inputRef:ne})),f.jsx(zX,S({role:"dialog",placement:"bottom-start",anchorEl:O.current},E,{open:F,slots:c,slotProps:H,shouldRestoreFocus:A,reduceAnimations:M,children:f.jsx(ie,S({},j,H==null?void 0:H.layout,{slots:c,slotProps:H,children:N()}))}))]})}},SZ=t=>{var e,n,o;const i=rt(),r=qa();return S({},t,{disablePast:(e=t.disablePast)!=null?e:!1,disableFuture:(n=t.disableFuture)!=null?n:!1,format:(o=t.format)!=null?o:i.formats.keyboardDate,minDate:Gn(i,t.minDate,r.minDate),maxDate:Gn(i,t.maxDate,r.maxDate)})},kZ=({props:t,inputRef:e})=>{const n=SZ(t),{forwardedProps:o,internalProps:i}=nC(n,"date");return tC({inputRef:e,forwardedProps:o,internalProps:i,valueManager:Cn,fieldValueManager:Q1,validator:_h,valueType:"date"})},PZ=["ownerState"],rC=({clearable:t,fieldProps:e,InputProps:n,onClear:o,slots:i,slotProps:r,components:s,componentsProps:a})=>{var l,c,u,d,h,p;const g=Sn(),m=(l=(c=i==null?void 0:i.clearButton)!=null?c:s==null?void 0:s.ClearButton)!=null?l:at,b=nt({elementType:m,externalSlotProps:(u=r==null?void 0:r.clearButton)!=null?u:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:g.fieldClearLabel}}),v=ce(b,PZ),y=(d=(h=i==null?void 0:i.clearIcon)!=null?h:s==null?void 0:s.ClearIcon)!=null?d:ZQ,w=nt({elementType:y,externalSlotProps:(p=r==null?void 0:r.clearIcon)!=null?p:a==null?void 0:a.clearIcon,ownerState:{}}),C=S({},n,{endAdornment:f.jsxs(x.Fragment,{children:[t&&f.jsx(yc,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:f.jsx(m,S({},v,{onClick:o,children:f.jsx(y,S({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]})}),k=S({},e,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(e.sx)?e.sx:[e.sx]]});return{InputProps:C,fieldProps:k}},MZ=["components","componentsProps","slots","slotProps","InputProps","inputProps"],_Z=["inputRef"],RZ=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],y$=x.forwardRef(function(e,n){var o,i,r;const s=Pe({props:e,name:"MuiDateField"}),{components:a,componentsProps:l,slots:c,slotProps:u,InputProps:d,inputProps:h}=s,p=ce(s,MZ),g=s,m=(o=(i=c==null?void 0:c.textField)!=null?i:a==null?void 0:a.TextField)!=null?o:Oa,b=nt({elementType:m,externalSlotProps:(r=u==null?void 0:u.textField)!=null?r:l==null?void 0:l.textField,externalForwardedProps:p,ownerState:g}),{inputRef:v}=b,y=ce(b,_Z);y.inputProps=S({},h,y.inputProps),y.InputProps=S({},d,y.InputProps);const w=kZ({props:y,inputRef:v}),{ref:C,onPaste:k,onKeyDown:P,inputMode:M,readOnly:_,clearable:R,onClear:O}=w,I=ce(w,RZ),{InputProps:$,fieldProps:F}=rC({onClear:O,clearable:R,fieldProps:I,InputProps:I.InputProps,slots:c,slotProps:u,components:a,componentsProps:l});return f.jsx(m,S({ref:n},F,{InputProps:S({},$,{readOnly:_}),inputProps:S({},I.inputProps,{inputMode:M,onPaste:k,onKeyDown:P,ref:C})}))}),TZ=t=>Ie("MuiPickersFadeTransitionGroup",t);Te("MuiPickersFadeTransitionGroup",["root"]);const OZ=t=>{const{classes:e}=t;return Oe({root:["root"]},TZ,e)},IZ=q(Yw,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function x$(t){const e=Pe({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:i,transKey:r}=e,s=OZ(e),a=Dt();return i?n:f.jsx(IZ,{className:me(s.root,o),children:f.jsx(Wa,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},r)})}function EZ(t){return Ie("MuiPickersMonth",t)}const bf=Te("MuiPickersMonth",["root","monthButton","disabled","selected"]),DZ=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],$Z=t=>{const{disabled:e,selected:n,classes:o}=t;return Oe({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},EZ,o)},FZ=q("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})(({ownerState:t})=>({flexBasis:t.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),jZ=q("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${bf.disabled}`]:e.disabled},{[`&.${bf.selected}`]:e.selected}]})(({theme:t})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bf.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${bf.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),LZ=x.memo(function(e){const n=Pe({props:e,name:"MuiPickersMonth"}),{autoFocus:o,children:i,disabled:r,selected:s,value:a,tabIndex:l,onClick:c,onKeyDown:u,onFocus:d,onBlur:h,"aria-current":p,"aria-label":g}=n,m=ce(n,DZ),b=x.useRef(null),v=$Z(n);return nn(()=>{if(o){var y;(y=b.current)==null||y.focus()}},[o]),f.jsx(FZ,S({className:v.root,ownerState:n},m,{children:f.jsx(jZ,{ref:b,disabled:r,type:"button",role:"radio",tabIndex:r?-1:l,"aria-current":p,"aria-checked":s,"aria-label":g,onClick:y=>c(y,a),onKeyDown:y=>u(y,a),onFocus:y=>d(y,a),onBlur:y=>h(y,a),className:v.monthButton,ownerState:n,children:i})}))});function AZ(t){return Ie("MuiMonthCalendar",t)}Te("MuiMonthCalendar",["root"]);const NZ=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],zZ=t=>{const{classes:e}=t;return Oe({root:["root"]},AZ,e)};function VZ(t,e){const n=rt(),o=qa(),i=Pe({props:t,name:e});return S({disableFuture:!1,disablePast:!1},i,{minDate:Gn(n,i.minDate,o.minDate),maxDate:Gn(n,i.maxDate,o.maxDate)})}const BZ=q("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:sv,boxSizing:"border-box"}),HZ=x.forwardRef(function(e,n){const o=VZ(e,"MuiMonthCalendar"),{className:i,value:r,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:d,minDate:h,onChange:p,shouldDisableMonth:g,readOnly:m,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:y,hasFocus:w,onFocusedViewChange:C,monthsPerRow:k=3,timezone:P,gridLabelId:M}=o,_=ce(o,NZ),{value:R,handleValueChange:O,timezone:I}=jc({name:"MonthCalendar",timezone:P,value:r,defaultValue:s,onChange:p,valueManager:Cn}),$=Ns(I),F=Fc(),E=rt(),D=x.useMemo(()=>Cn.getInitialReferenceValue({value:R,utils:E,props:o,timezone:I,referenceDate:a,granularity:ki.month}),[]),j=o,N=zZ(j),A=x.useMemo(()=>E.getMonth($),[E,$]),L=x.useMemo(()=>R!=null?E.getMonth(R):b?null:E.getMonth(D),[R,E,b,D]),[V,W]=x.useState(()=>L||A),[Y,se]=Rn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:v??!1}),B=je(ne=>{se(ne),C&&C(ne)}),U=x.useCallback(ne=>{const oe=E.startOfMonth(u&&E.isAfter($,h)?$:h),H=E.startOfMonth(c&&E.isBefore($,d)?$:d),ue=E.startOfMonth(ne);return E.isBefore(ue,oe)||E.isAfter(ue,H)?!0:g?g(ue):!1},[c,u,d,h,$,g,E]),z=je((ne,oe)=>{if(m)return;const H=E.setMonth(R??D,oe);O(H)}),Q=je(ne=>{U(E.setMonth(R??D,ne))||(W(ne),B(!0),y&&y(ne))});x.useEffect(()=>{W(ne=>L!==null&&ne!==L?L:ne)},[L]);const J=je((ne,oe)=>{switch(ne.key){case"ArrowUp":Q((12+oe-3)%12),ne.preventDefault();break;case"ArrowDown":Q((12+oe+3)%12),ne.preventDefault();break;case"ArrowLeft":Q((12+oe+(F.direction==="ltr"?-1:1))%12),ne.preventDefault();break;case"ArrowRight":Q((12+oe+(F.direction==="ltr"?1:-1))%12),ne.preventDefault();break}}),ee=je((ne,oe)=>{Q(oe)}),ie=je((ne,oe)=>{V===oe&&B(!1)});return f.jsx(BZ,S({ref:n,className:me(N.root,i),ownerState:j,role:"radiogroup","aria-labelledby":M},_,{children:G1(E,R??D).map(ne=>{const oe=E.getMonth(ne),H=E.format(ne,"monthShort"),ue=E.format(ne,"month"),he=oe===L,pe=l||U(ne);return f.jsx(LZ,{selected:he,value:oe,onClick:z,onKeyDown:J,autoFocus:Y&&oe===V,disabled:pe,tabIndex:oe===V?0:-1,onFocus:ee,onBlur:ie,"aria-current":A===oe?"date":void 0,"aria-label":ue,monthsPerRow:k,children:H},H)})}))});function WZ(t){return Ie("MuiPickersYear",t)}const yf=Te("MuiPickersYear",["root","yearButton","selected","disabled"]),UZ=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],qZ=t=>{const{disabled:e,selected:n,classes:o}=t;return Oe({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},WZ,o)},GZ=q("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})(({ownerState:t})=>({flexBasis:t.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),KZ=q("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${yf.disabled}`]:e.disabled},{[`&.${yf.selected}`]:e.selected}]})(({theme:t})=>S({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:Le(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${yf.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${yf.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),YZ=x.memo(function(e){const n=Pe({props:e,name:"MuiPickersYear"}),{autoFocus:o,className:i,children:r,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:d,onFocus:h,onBlur:p,"aria-current":g}=n,m=ce(n,UZ),b=x.useRef(null),v=qZ(n);return x.useEffect(()=>{o&&b.current.focus()},[o]),f.jsx(GZ,S({className:me(v.root,i),ownerState:n},m,{children:f.jsx(KZ,{ref:b,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":g,"aria-checked":a,onClick:y=>u(y,l),onKeyDown:y=>d(y,l),onFocus:y=>h(y,l),onBlur:y=>p(y,l),className:v.yearButton,ownerState:n,children:r})}))});function QZ(t){return Ie("MuiYearCalendar",t)}Te("MuiYearCalendar",["root"]);const XZ=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],JZ=t=>{const{classes:e}=t;return Oe({root:["root"]},QZ,e)};function ZZ(t,e){var n;const o=rt(),i=qa(),r=Pe({props:t,name:e});return S({disablePast:!1,disableFuture:!1},r,{yearsPerRow:(n=r.yearsPerRow)!=null?n:3,minDate:Gn(o,r.minDate,i.minDate),maxDate:Gn(o,r.maxDate,i.maxDate)})}const eee=q("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:sv,maxHeight:PX,boxSizing:"border-box",position:"relative"}),tee=x.forwardRef(function(e,n){const o=ZZ(e,"MuiYearCalendar"),{autoFocus:i,className:r,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:h,minDate:p,onChange:g,readOnly:m,shouldDisableYear:b,disableHighlightToday:v,onYearFocus:y,hasFocus:w,onFocusedViewChange:C,yearsPerRow:k,timezone:P,gridLabelId:M}=o,_=ce(o,XZ),{value:R,handleValueChange:O,timezone:I}=jc({name:"YearCalendar",timezone:P,value:s,defaultValue:a,onChange:g,valueManager:Cn}),$=Ns(I),F=Fc(),E=rt(),D=x.useMemo(()=>Cn.getInitialReferenceValue({value:R,utils:E,props:o,timezone:I,referenceDate:l,granularity:ki.year}),[]),j=o,N=JZ(j),A=x.useMemo(()=>E.getYear($),[E,$]),L=x.useMemo(()=>R!=null?E.getYear(R):v?null:E.getYear(D),[R,E,v,D]),[V,W]=x.useState(()=>L||A),[Y,se]=Rn({name:"YearCalendar",state:"hasFocus",controlled:w,default:i??!1}),B=je(H=>{se(H),C&&C(H)}),U=x.useCallback(H=>{if(d&&E.isBeforeYear(H,$)||u&&E.isAfterYear(H,$)||p&&E.isBeforeYear(H,p)||h&&E.isAfterYear(H,h))return!0;if(!b)return!1;const ue=E.startOfYear(H);return b(ue)},[u,d,h,p,$,b,E]),z=je((H,ue)=>{if(m)return;const he=E.setYear(R??D,ue);O(he)}),Q=je(H=>{U(E.setYear(R??D,H))||(W(H),B(!0),y==null||y(H))});x.useEffect(()=>{W(H=>L!==null&&H!==L?L:H)},[L]);const J=je((H,ue)=>{switch(H.key){case"ArrowUp":Q(ue-k),H.preventDefault();break;case"ArrowDown":Q(ue+k),H.preventDefault();break;case"ArrowLeft":Q(ue+(F.direction==="ltr"?-1:1)),H.preventDefault();break;case"ArrowRight":Q(ue+(F.direction==="ltr"?1:-1)),H.preventDefault();break}}),ee=je((H,ue)=>{Q(ue)}),ie=je((H,ue)=>{V===ue&&B(!1)}),ne=x.useRef(null),oe=mt(n,ne);return x.useEffect(()=>{if(i||ne.current===null)return;const H=ne.current.querySelector('[tabindex="0"]');if(!H)return;const ue=H.offsetHeight,he=H.offsetTop,pe=ne.current.clientHeight,$e=ne.current.scrollTop,re=he+ue;ue>pe||he<$e||(ne.current.scrollTop=re-pe/2-ue/2)},[i]),f.jsx(eee,S({ref:oe,className:me(N.root,r),ownerState:j,role:"radiogroup","aria-labelledby":M},_,{children:E.getYearRange(p,h).map(H=>{const ue=E.getYear(H),he=ue===L,pe=c||U(H);return f.jsx(YZ,{selected:he,value:ue,onClick:z,onKeyDown:J,autoFocus:Y&&ue===V,disabled:pe,tabIndex:ue===V?0:-1,onFocus:ee,onBlur:ie,"aria-current":A===ue?"date":void 0,yearsPerRow:k,children:E.format(H,"year")},E.format(H,"year"))})}))}),nee=t=>Ie("MuiPickersCalendarHeader",t),oee=Te("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),iee=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],ree=["ownerState"],see=t=>{const{classes:e}=t;return Oe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},nee,e)},aee=q("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),lee=q("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>S({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),cee=q("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),uee=q(at,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})(({ownerState:t})=>S({marginRight:"auto"},t.view==="year"&&{[`.${oee.switchViewIcon}`]:{transform:"rotate(180deg)"}})),dee=q(GQ,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),hee=x.forwardRef(function(e,n){var o,i,r,s;const a=Sn(),l=rt(),c=Pe({props:e,name:"MuiPickersCalendarHeader"}),{slots:u,slotProps:d,components:h,currentMonth:p,disabled:g,disableFuture:m,disablePast:b,maxDate:v,minDate:y,onMonthChange:w,onViewChange:C,view:k,reduceAnimations:P,views:M,labelId:_,className:R,timezone:O}=c,I=ce(c,iee),$=c,F=see(c),E=(o=(i=u==null?void 0:u.switchViewButton)!=null?i:h==null?void 0:h.SwitchViewButton)!=null?o:uee,D=nt({elementType:E,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(k)},ownerState:$,className:F.switchViewButton}),j=(r=(s=u==null?void 0:u.switchViewIcon)!=null?s:h==null?void 0:h.SwitchViewIcon)!=null?r:dee,N=nt({elementType:j,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:F.switchViewIcon}),A=ce(N,ree),L=()=>w(l.addMonths(p,1),"left"),V=()=>w(l.addMonths(p,-1),"right"),W=VJ(p,{disableFuture:m,maxDate:v,timezone:O}),Y=BJ(p,{disablePast:b,minDate:y,timezone:O}),se=()=>{if(!(M.length===1||!C||g))if(M.length===2)C(M.find(B=>B!==k)||M[0]);else{const B=M.indexOf(k)!==0?0:1;C(M[B])}};return M.length===1&&M[0]==="year"?null:f.jsxs(aee,S({},I,{ownerState:$,className:me(R,F.root),ref:n,children:[f.jsxs(lee,{role:"presentation",onClick:se,ownerState:$,"aria-live":"polite",className:F.labelContainer,children:[f.jsx(x$,{reduceAnimations:P,transKey:l.format(p,"monthAndYear"),children:f.jsx(cee,{id:_,ownerState:$,className:F.label,children:l.format(p,"monthAndYear")})}),M.length>1&&!g&&f.jsx(E,S({},D,{children:f.jsx(j,S({},A))}))]}),f.jsx(Wa,{in:k==="day",children:f.jsx(o$,{slots:u,slotProps:d,onGoToPrevious:V,isPreviousDisabled:Y,previousLabel:a.previousMonth,onGoToNext:L,isNextDisabled:W,nextLabel:a.nextMonth})})]}))}),uv=q("div")({overflow:"hidden",width:sv,maxHeight:av,display:"flex",flexDirection:"column",margin:"0 auto"}),fee=t=>Ie("MuiDateCalendar",t);Te("MuiDateCalendar",["root","viewTransitionContainer"]);const pee=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],mee=t=>{const{classes:e}=t;return Oe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},fee,e)};function gee(t,e){var n,o,i,r,s,a,l;const c=rt(),u=qa(),d=a$(),h=Pe({props:t,name:e});return S({},h,{loading:(n=h.loading)!=null?n:!1,disablePast:(o=h.disablePast)!=null?o:!1,disableFuture:(i=h.disableFuture)!=null?i:!1,openTo:(r=h.openTo)!=null?r:"day",views:(s=h.views)!=null?s:["year","day"],reduceAnimations:(a=h.reduceAnimations)!=null?a:d,renderLoading:(l=h.renderLoading)!=null?l:()=>f.jsx("span",{children:"..."}),minDate:Gn(c,h.minDate,u.minDate),maxDate:Gn(c,h.maxDate,u.maxDate)})}const vee=q(uv,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:av}),bee=q(x$,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),w$=x.forwardRef(function(e,n){var o,i,r;const s=rt(),a=cr(),l=gee(e,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:d,defaultValue:h,referenceDate:p,disableFuture:g,disablePast:m,defaultCalendarMonth:b,onChange:v,onYearChange:y,onMonthChange:w,reduceAnimations:C,shouldDisableDate:k,shouldDisableMonth:P,shouldDisableYear:M,view:_,views:R,openTo:O,className:I,disabled:$,readOnly:F,minDate:E,maxDate:D,disableHighlightToday:j,focusedView:N,onFocusedViewChange:A,showDaysOutsideCurrentMonth:L,fixedWeekNumber:V,dayOfWeekFormatter:W,components:Y,componentsProps:se,slots:B,slotProps:U,loading:z,renderLoading:Q,displayWeekNumber:J,yearsPerRow:ee,monthsPerRow:ie,timezone:ne}=l,oe=ce(l,pee),{value:H,handleValueChange:ue,timezone:he}=jc({name:"DateCalendar",timezone:ne,value:d,defaultValue:h,onChange:v,valueManager:Cn}),{view:pe,setView:$e,focusedView:re,setFocusedView:Ce,goToNextView:G,setValueAndGoToNextView:X}=Mh({view:_,views:R,openTo:O,onChange:ue,onViewChange:u,autoFocus:c,focusedView:N,onFocusedViewChange:A}),{referenceDate:ve,calendarState:ke,changeFocusedDay:_e,changeMonth:fe,handleChangeMonth:ae,isDateDisabled:xe,onMonthSwitchingAnimationEnd:we}=yZ({value:H,defaultCalendarMonth:b,referenceDate:p,reduceAnimations:C,onMonthChange:w,minDate:E,maxDate:D,shouldDisableDate:k,disablePast:m,disableFuture:g,timezone:he}),be=$&&H||E,De=$&&H||D,We=`${a}-grid-label`,Ae=re!==null,ge=(o=(i=B==null?void 0:B.calendarHeader)!=null?i:Y==null?void 0:Y.CalendarHeader)!=null?o:hee,Ne=nt({elementType:ge,externalSlotProps:(r=U==null?void 0:U.calendarHeader)!=null?r:se==null?void 0:se.calendarHeader,additionalProps:{views:R,view:pe,currentMonth:ke.currentMonth,onViewChange:$e,onMonthChange:(st,Ft)=>ae({newMonth:st,direction:Ft}),minDate:be,maxDate:De,disabled:$,disablePast:m,disableFuture:g,reduceAnimations:C,timezone:he,labelId:We,slots:B,slotProps:U},ownerState:l}),te=je(st=>{const Ft=s.startOfMonth(st),In=s.endOfMonth(st),on=xe(st)?Hu({utils:s,date:st,minDate:s.isBefore(E,Ft)?Ft:E,maxDate:s.isAfter(D,In)?In:D,disablePast:m,disableFuture:g,isDateDisabled:xe,timezone:he}):st;on?(X(on,"finish"),w==null||w(Ft)):(G(),fe(Ft)),_e(on,!0)}),ye=je(st=>{const Ft=s.startOfYear(st),In=s.endOfYear(st),on=xe(st)?Hu({utils:s,date:st,minDate:s.isBefore(E,Ft)?Ft:E,maxDate:s.isAfter(D,In)?In:D,disablePast:m,disableFuture:g,isDateDisabled:xe,timezone:he}):st;on?(X(on,"finish"),y==null||y(on)):(G(),fe(Ft)),_e(on,!0)}),Ve=je(st=>ue(st&&Dy(s,st,H??ve),"finish",pe));x.useEffect(()=>{H!=null&&s.isValid(H)&&fe(H)},[H]);const Ke=l,Qe=mee(Ke),ct={disablePast:m,disableFuture:g,maxDate:D,minDate:E},yt={disableHighlightToday:j,readOnly:F,disabled:$,timezone:he,gridLabelId:We},$t=x.useRef(pe);x.useEffect(()=>{$t.current!==pe&&(re===$t.current&&Ce(pe,!0),$t.current=pe)},[re,Ce,pe]);const Tt=x.useMemo(()=>[H],[H]);return f.jsxs(vee,S({ref:n,className:me(Qe.root,I),ownerState:Ke},oe,{children:[f.jsx(ge,S({},Ne)),f.jsx(bee,{reduceAnimations:C,className:Qe.viewTransitionContainer,transKey:pe,ownerState:Ke,children:f.jsxs("div",{children:[pe==="year"&&f.jsx(tee,S({},ct,yt,{value:H,onChange:ye,shouldDisableYear:M,hasFocus:Ae,onFocusedViewChange:st=>Ce("year",st),yearsPerRow:ee,referenceDate:ve})),pe==="month"&&f.jsx(HZ,S({},ct,yt,{hasFocus:Ae,className:I,value:H,onChange:te,shouldDisableMonth:P,onFocusedViewChange:st=>Ce("month",st),monthsPerRow:ie,referenceDate:ve})),pe==="day"&&f.jsx(vZ,S({},ke,ct,yt,{onMonthSwitchingAnimationEnd:we,onFocusedDayChange:_e,reduceAnimations:C,selectedDays:Tt,onSelectedDaysChange:Ve,shouldDisableDate:k,shouldDisableMonth:P,shouldDisableYear:M,hasFocus:Ae,onFocusedViewChange:st=>Ce("day",st),showDaysOutsideCurrentMonth:L,fixedWeekNumber:V,dayOfWeekFormatter:W,displayWeekNumber:J,components:Y,componentsProps:se,slots:B,slotProps:U,loading:z,renderLoading:Q}))]})})]}))}),ci=({view:t,onViewChange:e,views:n,focusedView:o,onFocusedViewChange:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:p,maxDate:g,shouldDisableDate:m,shouldDisableMonth:b,shouldDisableYear:v,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:k,yearsPerRow:P,defaultCalendarMonth:M,components:_,componentsProps:R,slots:O,slotProps:I,loading:$,renderLoading:F,disableHighlightToday:E,readOnly:D,disabled:j,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:A,sx:L,autoFocus:V,fixedWeekNumber:W,displayWeekNumber:Y,timezone:se})=>f.jsx(w$,{view:t,onViewChange:e,views:n.filter(jl),focusedView:o&&jl(o)?o:null,onFocusedViewChange:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:p,maxDate:g,shouldDisableDate:m,shouldDisableMonth:b,shouldDisableYear:v,reduceAnimations:y,onMonthChange:w,monthsPerRow:C,onYearChange:k,yearsPerRow:P,defaultCalendarMonth:M,components:_,componentsProps:R,slots:O,slotProps:I,loading:$,renderLoading:F,disableHighlightToday:E,readOnly:D,disabled:j,showDaysOutsideCurrentMonth:N,dayOfWeekFormatter:A,sx:L,autoFocus:V,fixedWeekNumber:W,displayWeekNumber:Y,timezone:se}),C$=x.forwardRef(function(e,n){var o,i,r,s;const a=Sn(),l=rt(),c=t$(e,"MuiDesktopDatePicker"),u=S({day:ci,month:ci,year:ci},c.viewRenderers),d=S({},c,{viewRenderers:u,format:Od(l,c,!1),yearsPerRow:(o=c.yearsPerRow)!=null?o:4,slots:S({openPickerIcon:n$,field:y$},c.slots),slotProps:S({},c.slotProps,{field:p=>{var g;return S({},Ls((g=c.slotProps)==null?void 0:g.field,p),Lc(c),{ref:n})},toolbar:S({hidden:!0},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=iC({props:d,valueManager:Cn,valueType:"date",getOpenDialogAriaText:(r=(s=d.localeText)==null?void 0:s.openDatePickerDialogue)!=null?r:a.openDatePickerDialogue,validator:_h});return h()});C$.propTypes={autoFocus:T.bool,className:T.string,closeOnSelect:T.bool,components:T.object,componentsProps:T.object,dayOfWeekFormatter:T.func,defaultCalendarMonth:T.any,defaultValue:T.any,disabled:T.bool,disableFuture:T.bool,disableHighlightToday:T.bool,disableOpenPicker:T.bool,disablePast:T.bool,displayWeekNumber:T.bool,fixedWeekNumber:T.number,format:T.string,formatDensity:T.oneOf(["dense","spacious"]),inputRef:Dc,label:T.node,loading:T.bool,localeText:T.object,maxDate:T.any,minDate:T.any,monthsPerRow:T.oneOf([3,4]),name:T.string,onAccept:T.func,onChange:T.func,onClose:T.func,onError:T.func,onMonthChange:T.func,onOpen:T.func,onSelectedSectionsChange:T.func,onViewChange:T.func,onYearChange:T.func,open:T.bool,openTo:T.oneOf(["day","month","year"]),orientation:T.oneOf(["landscape","portrait"]),readOnly:T.bool,reduceAnimations:T.bool,referenceDate:T.any,renderLoading:T.func,selectedSections:T.oneOfType([T.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),T.number,T.shape({endIndex:T.number.isRequired,startIndex:T.number.isRequired})]),shouldDisableDate:T.func,shouldDisableMonth:T.func,shouldDisableYear:T.func,showDaysOutsideCurrentMonth:T.bool,slotProps:T.object,slots:T.object,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),timezone:T.string,value:T.any,view:T.oneOf(["day","month","year"]),viewRenderers:T.shape({day:T.func,month:T.func,year:T.func}),views:T.arrayOf(T.oneOf(["day","month","year"]).isRequired),yearsPerRow:T.oneOf([3,4])};const yee=["props","getOpenDialogAriaText"],sC=t=>{var e,n,o;let{props:i,getOpenDialogAriaText:r}=t,s=ce(t,yee);const{slots:a,slotProps:l,className:c,sx:u,format:d,formatDensity:h,timezone:p,name:g,label:m,inputRef:b,readOnly:v,disabled:y,localeText:w}=i,C=rt(),k=x.useRef(null),P=cr(),M=(e=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?e:!1,{open:_,actions:R,layoutProps:O,renderCurrentView:I,fieldProps:$}=c$(S({},s,{props:i,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=a.field,E=nt({elementType:F,externalSlotProps:l==null?void 0:l.field,additionalProps:S({},$,M&&{id:P},!(y||v)&&{onClick:R.onOpen,onKeyDown:OX(R.onOpen)},{readOnly:v??!0,disabled:y,className:c,sx:u,format:d,formatDensity:h,timezone:p,label:m,name:g}),ownerState:i});E.inputProps=S({},E.inputProps,{"aria-label":r($.value,C)});const D=S({textField:a.textField},E.slots),j=(o=a.layout)!=null?o:f$,N=mt(k,E.inputRef,b);let A=P;M&&(m?A=`${P}-label`:A=void 0);const L=S({},l,{toolbar:S({},l==null?void 0:l.toolbar,{titleId:P}),mobilePaper:S({"aria-labelledby":A},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>f.jsxs(JD,{localeText:w,children:[f.jsx(F,S({},E,{slots:D,slotProps:L,inputRef:N})),f.jsx(RX,S({},R,{open:_,slots:a,slotProps:L,children:f.jsx(j,S({},O,L==null?void 0:L.layout,{slots:a,slotProps:L,children:I()}))}))]})}},S$=x.forwardRef(function(e,n){var o,i,r;const s=Sn(),a=rt(),l=t$(e,"MuiMobileDatePicker"),c=S({day:ci,month:ci,year:ci},l.viewRenderers),u=S({},l,{viewRenderers:c,format:Od(a,l,!1),slots:S({field:y$},l.slots),slotProps:S({},l.slotProps,{field:h=>{var p;return S({},Ls((p=l.slotProps)==null?void 0:p.field,h),Lc(l),{ref:n})},toolbar:S({hidden:!1},(o=l.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:d}=sC({props:u,valueManager:Cn,valueType:"date",getOpenDialogAriaText:(i=(r=u.localeText)==null?void 0:r.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:_h});return d()});S$.propTypes={autoFocus:T.bool,className:T.string,closeOnSelect:T.bool,components:T.object,componentsProps:T.object,dayOfWeekFormatter:T.func,defaultCalendarMonth:T.any,defaultValue:T.any,disabled:T.bool,disableFuture:T.bool,disableHighlightToday:T.bool,disableOpenPicker:T.bool,disablePast:T.bool,displayWeekNumber:T.bool,fixedWeekNumber:T.number,format:T.string,formatDensity:T.oneOf(["dense","spacious"]),inputRef:Dc,label:T.node,loading:T.bool,localeText:T.object,maxDate:T.any,minDate:T.any,monthsPerRow:T.oneOf([3,4]),name:T.string,onAccept:T.func,onChange:T.func,onClose:T.func,onError:T.func,onMonthChange:T.func,onOpen:T.func,onSelectedSectionsChange:T.func,onViewChange:T.func,onYearChange:T.func,open:T.bool,openTo:T.oneOf(["day","month","year"]),orientation:T.oneOf(["landscape","portrait"]),readOnly:T.bool,reduceAnimations:T.bool,referenceDate:T.any,renderLoading:T.func,selectedSections:T.oneOfType([T.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),T.number,T.shape({endIndex:T.number.isRequired,startIndex:T.number.isRequired})]),shouldDisableDate:T.func,shouldDisableMonth:T.func,shouldDisableYear:T.func,showDaysOutsideCurrentMonth:T.bool,slotProps:T.object,slots:T.object,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),timezone:T.string,value:T.any,view:T.oneOf(["day","month","year"]),viewRenderers:T.shape({day:T.func,month:T.func,year:T.func}),views:T.arrayOf(T.oneOf(["day","month","year"]).isRequired),yearsPerRow:T.oneOf([3,4])};const xee=["desktopModeMediaQuery"],wee=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=J1}=o,r=ce(o,xee);return Rs(i,{defaultMatches:!0})?f.jsx(C$,S({ref:n},r)):f.jsx(S$,S({ref:n},r))}),Cee=t=>{var e,n,o,i,r,s,a,l;const c=rt(),u=qa(),h=((e=t.ampm)!=null?e:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return S({},t,{disablePast:(n=t.disablePast)!=null?n:!1,disableFuture:(o=t.disableFuture)!=null?o:!1,format:(i=t.format)!=null?i:h,disableIgnoringDatePartForTimeValidation:!!(t.minDateTime||t.maxDateTime),minDate:Gn(c,(r=t.minDateTime)!=null?r:t.minDate,u.minDate),maxDate:Gn(c,(s=t.maxDateTime)!=null?s:t.maxDate,u.maxDate),minTime:(a=t.minDateTime)!=null?a:t.minTime,maxTime:(l=t.maxDateTime)!=null?l:t.maxTime})},See=({props:t,inputRef:e})=>{const n=Cee(t),{forwardedProps:o,internalProps:i}=nC(n,"date-time");return tC({inputRef:e,forwardedProps:o,internalProps:i,valueManager:Cn,fieldValueManager:Q1,validator:oC,valueType:"date-time"})},kee=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Pee=["inputRef"],Mee=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],k$=x.forwardRef(function(e,n){var o,i,r;const s=Pe({props:e,name:"MuiDateTimeField"}),{components:a,componentsProps:l,slots:c,slotProps:u,InputProps:d,inputProps:h}=s,p=ce(s,kee),g=s,m=(o=(i=c==null?void 0:c.textField)!=null?i:a==null?void 0:a.TextField)!=null?o:Oa,b=nt({elementType:m,externalSlotProps:(r=u==null?void 0:u.textField)!=null?r:l==null?void 0:l.textField,externalForwardedProps:p,ownerState:g}),{inputRef:v}=b,y=ce(b,Pee);y.inputProps=S({},h,y.inputProps),y.InputProps=S({},d,y.InputProps);const w=See({props:y,inputRef:v}),{ref:C,onPaste:k,onKeyDown:P,inputMode:M,readOnly:_,clearable:R,onClear:O}=w,I=ce(w,Mee),{InputProps:$,fieldProps:F}=rC({onClear:O,clearable:R,fieldProps:I,InputProps:I.InputProps,slots:c,slotProps:u,components:a,componentsProps:l});return f.jsx(m,S({ref:n},F,{InputProps:S({},$,{readOnly:_}),inputProps:S({},I.inputProps,{inputMode:M,onPaste:k,onKeyDown:P,ref:C})}))});function _ee(t){return Ie("MuiTab",t)}const Ree=Te("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Bs=Ree,Tee=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Oee=t=>{const{classes:e,textColor:n,fullWidth:o,wrapped:i,icon:r,label:s,selected:a,disabled:l}=t,c={root:["root",r&&s&&"labelIcon",`textColor${le(n)}`,o&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Oe(c,_ee,e)},Iee=q(hi,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.label&&n.icon&&e.labelIcon,e[`textColor${le(n.textColor)}`],n.fullWidth&&e.fullWidth,n.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>S({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Bs.iconWrapper}`]:S({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Bs.selected}`]:{opacity:1},[`&.${Bs.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${Bs.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Bs.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${Bs.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Bs.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),Eee=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTab"}),{className:i,disabled:r=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:h,onClick:p,onFocus:g,selected:m,selectionFollowsFocus:b,textColor:v="inherit",value:y,wrapped:w=!1}=o,C=ce(o,Tee),k=S({},o,{disabled:r,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:a,textColor:v,wrapped:w}),P=Oee(k),M=l&&d&&x.isValidElement(l)?x.cloneElement(l,{className:me(P.iconWrapper,l.props.className)}):l,_=O=>{!m&&h&&h(O,y),p&&p(O)},R=O=>{b&&!m&&h&&h(O,y),g&&g(O)};return f.jsxs(Iee,S({focusRipple:!s,className:me(P.root,i),ref:n,role:"tab","aria-selected":m,disabled:r,onClick:_,onFocus:R,ownerState:k,tabIndex:m?0:-1},C,{children:[c==="top"||c==="start"?f.jsxs(x.Fragment,{children:[M,d]}):f.jsxs(x.Fragment,{children:[d,M]}),u]}))}),wM=Eee;function Dee(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function $ee(t,e,n,o={},i=()=>{}){const{ease:r=Dee,duration:s=300}=o;let a=null;const l=e[t];let c=!1;const u=()=>{c=!0},d=h=>{if(c){i(new Error("Animation cancelled"));return}a===null&&(a=h);const p=Math.min(1,(h-a)/s);if(e[t]=r(p)*(n-l)+l,p>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const Fee=["onChange"],jee={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Lee(t){const{onChange:e}=t,n=ce(t,Fee),o=x.useRef(),i=x.useRef(null),r=()=>{o.current=i.current.offsetHeight-i.current.clientHeight};return nn(()=>{const s=Ba(()=>{const l=o.current;r(),l!==o.current&&e(o.current)}),a=ir(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[e]),x.useEffect(()=>{r(),e(o.current)},[e]),f.jsx("div",S({style:jee,ref:i},n))}const Aee=Rt(f.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Nee=Rt(f.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function zee(t){return Ie("MuiTabScrollButton",t)}const Vee=Te("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Bee=Vee,Hee=["className","slots","slotProps","direction","orientation","disabled"],Wee=t=>{const{classes:e,orientation:n,disabled:o}=t;return Oe({root:["root",n,o&&"disabled"]},zee,e)},Uee=q(hi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.orientation&&e[n.orientation]]}})(({ownerState:t})=>S({width:40,flexShrink:0,opacity:.8,[`&.${Bee.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),qee=x.forwardRef(function(e,n){var o,i;const r=Pe({props:e,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:c}=r,u=ce(r,Hee),h=Dt().direction==="rtl",p=S({isRtl:h},r),g=Wee(p),m=(o=a.StartScrollButtonIcon)!=null?o:Aee,b=(i=a.EndScrollButtonIcon)!=null?i:Nee,v=nt({elementType:m,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),y=nt({elementType:b,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return f.jsx(Uee,S({component:"div",className:me(g.root,s),ref:n,role:null,ownerState:p,tabIndex:null},u,{children:c==="left"?f.jsx(m,S({},v)):f.jsx(b,S({},y))}))}),Gee=qee;function Kee(t){return Ie("MuiTabs",t)}const Yee=Te("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bp=Yee,Qee=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],CM=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,SM=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,xf=(t,e,n)=>{let o=!1,i=n(t,e);for(;i;){if(i===t.firstChild){if(o)return;o=!0}const r=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||r)i=n(t,i);else{i.focus();return}}},Xee=t=>{const{vertical:e,fixed:n,hideScrollbar:o,scrollableX:i,scrollableY:r,centered:s,scrollButtonsHideMobile:a,classes:l}=t;return Oe({root:["root",e&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",i&&"scrollableX",r&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},Kee,l)},Jee=q("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${bp.scrollButtons}`]:e.scrollButtons},{[`& .${bp.scrollButtons}`]:n.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,n.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bp.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Zee=q("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.scroller,n.fixed&&e.fixed,n.hideScrollbar&&e.hideScrollbar,n.scrollableX&&e.scrollableX,n.scrollableY&&e.scrollableY]}})(({ownerState:t})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),ete=q("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.flexContainer,n.vertical&&e.flexContainerVertical,n.centered&&e.centered]}})(({ownerState:t})=>S({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),tte=q("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),nte=q(Lee)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),kM={},ote=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTabs"}),i=Dt(),r=i.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:d,component:h="div",allowScrollButtonsMobile:p=!1,indicatorColor:g="primary",onChange:m,orientation:b="horizontal",ScrollButtonComponent:v=Gee,scrollButtons:y="auto",selectionFollowsFocus:w,slots:C={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:M={},textColor:_="primary",value:R,variant:O="standard",visibleScrollbar:I=!1}=o,$=ce(o,Qee),F=O==="scrollable",E=b==="vertical",D=E?"scrollTop":"scrollLeft",j=E?"top":"left",N=E?"bottom":"right",A=E?"clientHeight":"clientWidth",L=E?"height":"width",V=S({},o,{component:h,allowScrollButtonsMobile:p,indicatorColor:g,orientation:b,vertical:E,scrollButtons:y,textColor:_,variant:O,visibleScrollbar:I,fixed:!F,hideScrollbar:F&&!I,scrollableX:F&&!E,scrollableY:F&&E,centered:c&&!F,scrollButtonsHideMobile:!p}),W=Xee(V),Y=nt({elementType:C.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:V}),se=nt({elementType:C.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:V}),[B,U]=x.useState(!1),[z,Q]=x.useState(kM),[J,ee]=x.useState(!1),[ie,ne]=x.useState(!1),[oe,H]=x.useState(!1),[ue,he]=x.useState({overflow:"hidden",scrollbarWidth:0}),pe=new Map,$e=x.useRef(null),re=x.useRef(null),Ce=()=>{const te=$e.current;let ye;if(te){const Ke=te.getBoundingClientRect();ye={clientWidth:te.clientWidth,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollLeftNormalized:pV(te,i.direction),scrollWidth:te.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let Ve;if(te&&R!==!1){const Ke=re.current.children;if(Ke.length>0){const Qe=Ke[pe.get(R)];Ve=Qe?Qe.getBoundingClientRect():null}}return{tabsMeta:ye,tabMeta:Ve}},G=je(()=>{const{tabsMeta:te,tabMeta:ye}=Ce();let Ve=0,Ke;if(E)Ke="top",ye&&te&&(Ve=ye.top-te.top+te.scrollTop);else if(Ke=r?"right":"left",ye&&te){const ct=r?te.scrollLeftNormalized+te.clientWidth-te.scrollWidth:te.scrollLeft;Ve=(r?-1:1)*(ye[Ke]-te[Ke]+ct)}const Qe={[Ke]:Ve,[L]:ye?ye[L]:0};if(isNaN(z[Ke])||isNaN(z[L]))Q(Qe);else{const ct=Math.abs(z[Ke]-Qe[Ke]),yt=Math.abs(z[L]-Qe[L]);(ct>=1||yt>=1)&&Q(Qe)}}),X=(te,{animation:ye=!0}={})=>{ye?$ee(D,$e.current,te,{duration:i.transitions.duration.standard}):$e.current[D]=te},ve=te=>{let ye=$e.current[D];E?ye+=te:(ye+=te*(r?-1:1),ye*=r&&CI()==="reverse"?-1:1),X(ye)},ke=()=>{const te=$e.current[A];let ye=0;const Ve=Array.from(re.current.children);for(let Ke=0;Kete){Ke===0&&(ye=te);break}ye+=Qe[A]}return ye},_e=()=>{ve(-1*ke())},fe=()=>{ve(ke())},ae=x.useCallback(te=>{he({overflow:null,scrollbarWidth:te})},[]),xe=()=>{const te={};te.scrollbarSizeListener=F?f.jsx(nte,{onChange:ae,className:me(W.scrollableX,W.hideScrollbar)}):null;const Ve=F&&(y==="auto"&&(J||ie)||y===!0);return te.scrollButtonStart=Ve?f.jsx(v,S({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:b,direction:r?"right":"left",onClick:_e,disabled:!J},M,{className:me(W.scrollButtons,M.className)})):null,te.scrollButtonEnd=Ve?f.jsx(v,S({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:se},orientation:b,direction:r?"left":"right",onClick:fe,disabled:!ie},M,{className:me(W.scrollButtons,M.className)})):null,te},we=je(te=>{const{tabsMeta:ye,tabMeta:Ve}=Ce();if(!(!Ve||!ye)){if(Ve[j]ye[N]){const Ke=ye[D]+(Ve[N]-ye[N]);X(Ke,{animation:te})}}}),be=je(()=>{F&&y!==!1&&H(!oe)});x.useEffect(()=>{const te=Ba(()=>{$e.current&&G()});let ye;const Ve=ct=>{ct.forEach(yt=>{yt.removedNodes.forEach($t=>{var Tt;(Tt=ye)==null||Tt.unobserve($t)}),yt.addedNodes.forEach($t=>{var Tt;(Tt=ye)==null||Tt.observe($t)})}),te(),be()},Ke=ir($e.current);Ke.addEventListener("resize",te);let Qe;return typeof ResizeObserver<"u"&&(ye=new ResizeObserver(te),Array.from(re.current.children).forEach(ct=>{ye.observe(ct)})),typeof MutationObserver<"u"&&(Qe=new MutationObserver(Ve),Qe.observe(re.current,{childList:!0})),()=>{var ct,yt;te.clear(),Ke.removeEventListener("resize",te),(ct=Qe)==null||ct.disconnect(),(yt=ye)==null||yt.disconnect()}},[G,be]),x.useEffect(()=>{const te=Array.from(re.current.children),ye=te.length;if(typeof IntersectionObserver<"u"&&ye>0&&F&&y!==!1){const Ve=te[0],Ke=te[ye-1],Qe={root:$e.current,threshold:.99},ct=st=>{ee(!st[0].isIntersecting)},yt=new IntersectionObserver(ct,Qe);yt.observe(Ve);const $t=st=>{ne(!st[0].isIntersecting)},Tt=new IntersectionObserver($t,Qe);return Tt.observe(Ke),()=>{yt.disconnect(),Tt.disconnect()}}},[F,y,oe,u==null?void 0:u.length]),x.useEffect(()=>{U(!0)},[]),x.useEffect(()=>{G()}),x.useEffect(()=>{we(kM!==z)},[we,z]),x.useImperativeHandle(l,()=>({updateIndicator:G,updateScrollButtons:be}),[G,be]);const De=f.jsx(tte,S({},P,{className:me(W.indicator,P.className),ownerState:V,style:S({},z,P.style)}));let We=0;const Ae=x.Children.map(u,te=>{if(!x.isValidElement(te))return null;const ye=te.props.value===void 0?We:te.props.value;pe.set(ye,We);const Ve=ye===R;return We+=1,x.cloneElement(te,S({fullWidth:O==="fullWidth",indicator:Ve&&!B&&De,selected:Ve,selectionFollowsFocus:w,onChange:m,textColor:_,value:ye},We===1&&R===!1&&!te.props.tabIndex?{tabIndex:0}:{}))}),ge=te=>{const ye=re.current,Ve=Wt(ye).activeElement;if(Ve.getAttribute("role")!=="tab")return;let Qe=b==="horizontal"?"ArrowLeft":"ArrowUp",ct=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&r&&(Qe="ArrowRight",ct="ArrowLeft"),te.key){case Qe:te.preventDefault(),xf(ye,Ve,SM);break;case ct:te.preventDefault(),xf(ye,Ve,CM);break;case"Home":te.preventDefault(),xf(ye,null,CM);break;case"End":te.preventDefault(),xf(ye,null,SM);break}},Ne=xe();return f.jsxs(Jee,S({className:me(W.root,d),ownerState:V,ref:n,as:h},$,{children:[Ne.scrollButtonStart,Ne.scrollbarSizeListener,f.jsxs(Zee,{className:W.scroller,ownerState:V,style:{overflow:ue.overflow,[E?`margin${r?"Left":"Right"}`:"marginBottom"]:I?void 0:-ue.scrollbarWidth},ref:$e,children:[f.jsx(ete,{"aria-label":s,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:W.flexContainer,ownerState:V,onKeyDown:ge,ref:re,role:"tablist",children:Ae}),B&&De]}),Ne.scrollButtonEnd]}))}),ite=ote;function rte(t){return Ie("MuiDateTimePickerTabs",t)}Te("MuiDateTimePickerTabs",["root"]);const ste=t=>jl(t)?"date":"time",ate=t=>t==="date"?"day":"hours",lte=t=>{const{classes:e}=t;return Oe({root:["root"]},rte,e)},cte=q(ite,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({boxShadow:`0 -1px 0 0 inset ${(t.vars||t).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(t.vars||t).palette.divider}`,[`& .${bp.indicator}`]:{bottom:"auto",top:0}}})),ute=function(e){const n=Pe({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:o=f.jsx(XQ,{}),onViewChange:i,timeIcon:r=f.jsx(JQ,{}),view:s,hidden:a=typeof window>"u"||window.innerHeight<667}=n,l=Sn(),c=lte(n),u=(d,h)=>{i(ate(h))};return a?null:f.jsxs(cte,{ownerState:n,variant:"fullWidth",value:ste(s),onChange:u,className:c.root,children:[f.jsx(wM,{value:"date","aria-label":l.dateTableLabel,icon:f.jsx(x.Fragment,{children:o})}),f.jsx(wM,{value:"time","aria-label":l.timeTableLabel,icon:f.jsx(x.Fragment,{children:r})})]})};function dte(t){return Ie("MuiDateTimePickerToolbar",t)}const _0=Te("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),hte=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],fte=t=>{const{classes:e,theme:n,isLandscape:o}=t,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",o&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Oe(i,dte,e)},P$=q(X1,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>({paddingLeft:e.toolbarVariant==="desktop"&&!e.isLandscape?24:16,paddingRight:e.toolbarVariant==="desktop"&&!e.isLandscape?0:16,borderBottom:e.toolbarVariant==="desktop"?`1px solid ${(t.vars||t).palette.divider}`:void 0,borderRight:e.toolbarVariant==="desktop"&&e.isLandscape?`1px solid ${(t.vars||t).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));P$.propTypes={as:T.elementType,classes:T.object,className:T.string,isLandscape:T.bool.isRequired,isMobileKeyboardViewOpen:T.bool,landscapeDirection:T.oneOf(["column","row"]),ownerState:T.object.isRequired,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),toggleMobileKeyboardView:T.func,toolbarTitle:T.node,viewType:T.oneOf(["date","time"])};const pte=q("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(t,e)=>e.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),M$=q("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(t,e)=>e.timeContainer})(({theme:t,ownerState:e})=>{const n=e.isLandscape&&e.toolbarVariant!=="desktop"?"column":"row";return S({display:"flex",flexDirection:n},e.toolbarVariant==="desktop"&&S({},!e.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),t.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),mte=q("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(t,e)=>e.timeDigitsContainer})(({theme:t,ownerState:e})=>S({display:"flex"},e.toolbarVariant==="desktop"&&{gap:1.5},t.direction==="rtl"&&{flexDirection:"row-reverse"}));M$.propTypes={as:T.elementType,ownerState:T.object.isRequired,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object])};const PM=q(Z1,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(t,e)=>e.separator})(({ownerState:t})=>({margin:t.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),gte=q("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(t,e)=>[{[`.${_0.ampmLabel}`]:e.ampmLabel},{[`&.${_0.ampmLandscape}`]:e.ampmLandscape},e.ampmSelection]})(({ownerState:t})=>S({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},t.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${_0.ampmLabel}`]:{fontSize:17}}));function vte(t){const e=Pe({props:t,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:o,value:i,onChange:r,view:s,isLandscape:a,onViewChange:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,disabled:h,readOnly:p,toolbarVariant:g="mobile"}=e,m=ce(e,hte),b=e,v=rt(),{meridiemMode:y,handleMeridiemChange:w}=lv(i,n,r),C=!!(n&&!o),k=g==="desktop",P=Sn(),M=Dt(),_=fte(S({},b,{theme:M})),R=I=>n?v.format(I,"hours12h"):v.format(I,"hours24h"),O=x.useMemo(()=>i?c?v.formatByString(i,c):v.format(i,"shortDate"):u,[i,c,u,v]);return f.jsxs(P$,S({toolbarTitle:P.dateTimePickerToolbarTitle,isLandscape:a,className:_.root},m,{ownerState:b,children:[f.jsxs(pte,{className:_.dateContainer,ownerState:b,children:[d.includes("year")&&f.jsx(To,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?v.format(i,"year"):"–"}),d.includes("day")&&f.jsx(To,{tabIndex:-1,variant:k?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:O})]}),f.jsxs(M$,{className:_.timeContainer,ownerState:b,children:[f.jsxs(mte,{className:_.timeDigitsContainer,ownerState:b,children:[d.includes("hours")&&f.jsx(To,{variant:k?"h5":"h3",width:k&&!a?yu:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?R(i):"--"}),d.includes("minutes")&&f.jsxs(x.Fragment,{children:[f.jsx(PM,{variant:k?"h5":"h3",value:":",className:_.separator,ownerState:b}),f.jsx(To,{variant:k?"h5":"h3",width:k&&!a?yu:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?v.format(i,"minutes"):"--"})]}),d.includes("seconds")&&f.jsxs(x.Fragment,{children:[f.jsx(PM,{variant:k?"h5":"h3",value:":",className:_.separator,ownerState:b}),f.jsx(To,{variant:k?"h5":"h3",width:k&&!a?yu:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?v.format(i,"seconds"):"--"})]})]}),C&&!k&&f.jsxs(gte,{className:_.ampmSelection,ownerState:b,children:[f.jsx(To,{variant:"subtitle2",selected:y==="am",typographyClassName:_.ampmLabel,value:Pi(v,"am"),onClick:p?void 0:()=>w("am"),disabled:h}),f.jsx(To,{variant:"subtitle2",selected:y==="pm",typographyClassName:_.ampmLabel,value:Pi(v,"pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]}),n&&k&&f.jsx(To,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&y?Pi(v,y):"--",width:yu})]})]}))}function _$(t,e){var n,o,i,r,s,a,l,c,u,d,h;const p=rt(),g=qa(),m=Pe({props:t,name:e}),b=(n=m.ampm)!=null?n:p.is12HourCycleInCurrentLocale(),v=x.useMemo(()=>{var C;return((C=m.localeText)==null?void 0:C.toolbarTitle)==null?m.localeText:S({},m.localeText,{dateTimePickerToolbarTitle:m.localeText.toolbarTitle})},[m.localeText]),y=(o=m.slots)!=null?o:Ph(m.components),w=(i=m.slotProps)!=null?i:m.componentsProps;return S({},m,q1({views:m.views,openTo:m.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:b,localeText:v,orientation:(r=m.orientation)!=null?r:"portrait",disableIgnoringDatePartForTimeValidation:(s=m.disableIgnoringDatePartForTimeValidation)!=null?s:!!(m.minDateTime||m.maxDateTime||m.disablePast||m.disableFuture),disableFuture:(a=m.disableFuture)!=null?a:!1,disablePast:(l=m.disablePast)!=null?l:!1,minDate:Gn(p,(c=m.minDateTime)!=null?c:m.minDate,g.minDate),maxDate:Gn(p,(u=m.maxDateTime)!=null?u:m.maxDate,g.maxDate),minTime:(d=m.minDateTime)!=null?d:m.minTime,maxTime:(h=m.maxDateTime)!=null?h:m.maxTime,slots:S({toolbar:vte,tabs:ute},y),slotProps:S({},w,{toolbar:S({ampm:b},w==null?void 0:w.toolbar)})})}function bte(t){return Ie("MuiMultiSectionDigitalClock",t)}Te("MuiMultiSectionDigitalClock",["root"]);function yte(t){return Ie("MuiMultiSectionDigitalClockSection",t)}const xte=Te("MuiMultiSectionDigitalClockSection",["root","item"]),wte=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Cte=t=>{const{classes:e}=t;return Oe({root:["root"],item:["item"]},yte,e)},Ste=q(a1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>({maxHeight:s$,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),kte=q(sn,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(t,e)=>e.item})(({theme:t})=>({padding:8,margin:"2px 4px",width:yu,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.primary.main,t.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Le(t.palette.primary.main,t.palette.action.focusOpacity)}})),Pte=x.forwardRef(function(e,n){var o;const i=x.useRef(null),r=mt(n,i),s=x.useRef(null),a=Pe({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,disabled:d,readOnly:h,items:p,active:g,slots:m,slotProps:b,skipDisabled:v}=a,y=ce(a,wte),w=x.useMemo(()=>S({},a,{alreadyRendered:!!i.current}),[a]),C=Cte(w),k=(o=m==null?void 0:m.digitalClockSectionItem)!=null?o:kte;return x.useEffect(()=>{if(i.current===null)return;const P=i.current.querySelector('[role="option"][aria-selected="true"]');if(g&&l&&P&&P.focus(),!P||s.current===P)return;s.current=P;const M=P.offsetTop;i.current.scrollTop=M-4}),f.jsx(Ste,S({ref:r,className:me(C.root,u),ownerState:w,autoFocusItem:l&&g,role:"listbox"},y,{children:p.map(P=>{var M,_;if(v&&(M=P.isDisabled)!=null&&M.call(P,P.value))return null;const R=P.isSelected(P.value);return f.jsx(k,S({onClick:()=>!h&&c(P.value),selected:R,disabled:d||((_=P.isDisabled)==null?void 0:_.call(P,P.value)),disableRipple:h,role:"option","aria-disabled":h,"aria-label":P.ariaLabel,"aria-selected":R,className:C.item},b==null?void 0:b.digitalClockSectionItem,{children:P.label}),P.label)})}))}),Mte=({now:t,value:e,utils:n,ampm:o,isDisabled:i,resolveAriaLabel:r,timeStep:s})=>{const a=e?n.getHours(e):null,l=[],c=d=>a===null?!1:o?d===12?a===12||a===0:a===d||a-12===d:a===d,u=o?11:23;for(let d=0;d<=u;d+=s){let h=n.format(n.setHours(t,d),o?"hours12h":"hours24h");const p=r(parseInt(h,10).toString());h=n.formatNumber(h),l.push({value:d,label:h,isSelected:c,isDisabled:i,ariaLabel:p})}return l},MM=({value:t,utils:e,isDisabled:n,timeStep:o,resolveLabel:i,resolveAriaLabel:r,hasValue:s=!0})=>{const a=l=>t===null?!1:s&&t===l;return[...Array.from({length:Math.ceil(60/o)},(l,c)=>{const u=o*c;return{value:u,label:e.formatNumber(i(u)),isDisabled:n,isSelected:a,ariaLabel:r(u.toString())}})]},aC=({value:t,referenceDate:e,utils:n,props:o,timezone:i})=>{const r=x.useMemo(()=>Cn.getInitialReferenceValue({value:t,utils:n,props:o,referenceDate:e,granularity:ki.day,timezone:i,getTodayDate:()=>K1(n,i,"date")}),[]);return t??r},_te=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],Rte=t=>{const{classes:e}=t;return Oe({root:["root"]},bte,e)},Tte=q(uv,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(t.vars||t).palette.divider}`})),Ote=x.forwardRef(function(e,n){const o=rt(),i=Pe({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:r=o.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:a,components:l,componentsProps:c,slots:u,slotProps:d,value:h,defaultValue:p,referenceDate:g,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:b,minTime:v,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:k,shouldDisableTime:P,onChange:M,view:_,views:R=["hours","minutes"],openTo:O,onViewChange:I,focusedView:$,onFocusedViewChange:F,className:E,disabled:D,readOnly:j,skipDisabled:N=!1,timezone:A}=i,L=ce(i,_te),{value:V,handleValueChange:W,timezone:Y}=jc({name:"MultiSectionDigitalClock",timezone:A,value:h,defaultValue:p,onChange:M,valueManager:Cn}),se=Sn(),B=Ns(Y),U=x.useMemo(()=>S({hours:1,minutes:5,seconds:5},s),[s]),z=aC({value:V,referenceDate:g,utils:o,props:i,timezone:Y}),Q=je((G,X,ve)=>W(G,X,ve)),J=x.useMemo(()=>!r||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[r,R]),{view:ee,setValueAndGoToNextView:ie,focusedView:ne}=Mh({view:_,views:J,openTo:O,onViewChange:I,onChange:Q,focusedView:$,onFocusedViewChange:F}),oe=je(G=>{ie(G,"finish","meridiem")}),{meridiemMode:H,handleMeridiemChange:ue}=lv(z,r,oe,"finish"),he=x.useCallback((G,X)=>{const ve=kh(m,o),ke=X==="hours"||X==="minutes"&&J.includes("seconds"),_e=({start:ae,end:xe})=>!(v&&ve(v,xe)||b&&ve(ae,b)||y&&ve(ae,B)||w&&ve(B,ke?xe:ae)),fe=(ae,xe=1)=>{if(ae%xe!==0||k!=null&&k(ae,X))return!1;if(P)switch(X){case"hours":return!P(o.setHours(z,ae),"hours");case"minutes":return!P(o.setMinutes(z,ae),"minutes");case"seconds":return!P(o.setSeconds(z,ae),"seconds");default:return!1}return!0};switch(X){case"hours":{const ae=Id(G,H,r),xe=o.setHours(z,ae),we=o.setSeconds(o.setMinutes(xe,0),0),be=o.setSeconds(o.setMinutes(xe,59),59);return!_e({start:we,end:be})||!fe(ae)}case"minutes":{const ae=o.setMinutes(z,G),xe=o.setSeconds(ae,0),we=o.setSeconds(ae,59);return!_e({start:xe,end:we})||!fe(G,C)}case"seconds":{const ae=o.setSeconds(z,G);return!_e({start:ae,end:ae})||!fe(G)}default:throw new Error("not supported")}},[r,z,m,b,H,v,C,k,P,o,y,w,B,J]),pe=x.useCallback(G=>{switch(G){case"hours":return{onChange:X=>{const ve=Id(X,H,r);ie(o.setHours(z,ve),"finish","hours")},items:Mte({now:B,value:V,ampm:r,utils:o,isDisabled:X=>D||he(X,"hours"),timeStep:U.hours,resolveAriaLabel:se.hoursClockNumberText})};case"minutes":return{onChange:X=>{ie(o.setMinutes(z,X),"finish","minutes")},items:MM({value:o.getMinutes(z),utils:o,isDisabled:X=>D||he(X,"minutes"),resolveLabel:X=>o.format(o.setMinutes(B,X),"minutes"),timeStep:U.minutes,hasValue:!!V,resolveAriaLabel:se.minutesClockNumberText})};case"seconds":return{onChange:X=>{ie(o.setSeconds(z,X),"finish","seconds")},items:MM({value:o.getSeconds(z),utils:o,isDisabled:X=>D||he(X,"seconds"),resolveLabel:X=>o.format(o.setSeconds(B,X),"seconds"),timeStep:U.seconds,hasValue:!!V,resolveAriaLabel:se.secondsClockNumberText})};case"meridiem":{const X=Pi(o,"am"),ve=Pi(o,"pm");return{onChange:ue,items:[{value:"am",label:X,isSelected:()=>!!V&&H==="am",ariaLabel:X},{value:"pm",label:ve,isSelected:()=>!!V&&H==="pm",ariaLabel:ve}]}}default:throw new Error(`Unknown view: ${G} found.`)}},[B,V,r,o,U.hours,U.minutes,U.seconds,se.hoursClockNumberText,se.minutesClockNumberText,se.secondsClockNumberText,H,ie,z,D,he,ue]),$e=x.useMemo(()=>J.reduce((G,X)=>S({},G,{[X]:pe(X)}),{}),[J,pe]),re=i,Ce=Rte(re);return f.jsx(Tte,S({ref:n,className:me(Ce.root,E),ownerState:re,role:"group"},L,{children:Object.entries($e).map(([G,X])=>f.jsx(Pte,{items:X.items,onChange:X.onChange,active:ee===G,autoFocus:a??ne===G,disabled:D,readOnly:j,slots:u??l,slotProps:d??c,skipDisabled:N,"aria-label":se.selectViewText(G)},G))}))}),Ite=q("div")({display:"flex",margin:"0 auto"});function Ete(t){return Ie("MuiTimeClock",t)}Te("MuiTimeClock",["root","arrowSwitcher"]);const wc=220,or=36,Fd={x:wc/2,y:wc/2},R$={x:Fd.x,y:0},Dte=R$.x-Fd.x,$te=R$.y-Fd.y,Fte=t=>t*(180/Math.PI),T$=(t,e,n)=>{const o=e-Fd.x,i=n-Fd.y,r=Math.atan2(Dte,$te)-Math.atan2(o,i);let s=Fte(r);s=Math.round(s/t)*t,s%=360;const a=Math.floor(s/t)||0,l=o**2+i**2,c=Math.sqrt(l);return{value:a,distance:c}},jte=(t,e,n=1)=>{const o=n*6;let{value:i}=T$(o,t,e);return i=i*n%60,i},Lte=(t,e,n)=>{const{value:o,distance:i}=T$(30,t,e);let r=o||12;return n?r%=12:i{const{classes:e}=t;return Oe({root:["root"],thumb:["thumb"]},Ate,e)},Vte=q("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>S({width:2,backgroundColor:(t.vars||t).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},e.shouldAnimate&&{transition:t.transitions.create(["transform","height"])})),Bte=q("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t,ownerState:e})=>S({width:4,height:4,backgroundColor:(t.vars||t).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${or/2}px)`,border:`${(or-4)/2}px solid ${(t.vars||t).palette.primary.main}`,boxSizing:"content-box"},e.hasSelected&&{backgroundColor:(t.vars||t).palette.primary.main}));function Hte(t){const e=Pe({props:t,name:"MuiClockPointer"}),{className:n,isInner:o,type:i,viewValue:r}=e,s=ce(e,Nte),a=x.useRef(i);x.useEffect(()=>{a.current=i},[i]);const l=S({},e,{shouldAnimate:a.current!==i}),c=zte(l),u=()=>{let h=360/(i==="hours"?12:60)*r;return i==="hours"&&r>12&&(h-=360),{height:Math.round((o?.26:.4)*wc),transform:`rotateZ(${h}deg)`}};return f.jsx(Vte,S({style:u(),className:me(n,c.root),ownerState:l},s,{children:f.jsx(Bte,{ownerState:l,className:c.thumb})}))}function Wte(t){return Ie("MuiClock",t)}Te("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Ute=t=>{const{classes:e}=t;return Oe({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Wte,e)},qte=q("div",{name:"MuiClock",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:t.spacing(2)})),Gte=q("div",{name:"MuiClock",slot:"Clock",overridesResolver:(t,e)=>e.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Kte=q("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})({"&:focus":{outline:"none"}}),Yte=q("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(t,e)=>e.squareMask})(({ownerState:t})=>S({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},t.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),Qte=q("div",{name:"MuiClock",slot:"Pin",overridesResolver:(t,e)=>e.pin})(({theme:t})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(t.vars||t).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Xte=q(at,{name:"MuiClock",slot:"AmButton",overridesResolver:(t,e)=>e.amButton})(({theme:t,ownerState:e})=>S({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:or},e.meridiemMode==="am"&&{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:hover":{backgroundColor:(t.vars||t).palette.primary.light}})),Jte=q(at,{name:"MuiClock",slot:"PmButton",overridesResolver:(t,e)=>e.pmButton})(({theme:t,ownerState:e})=>S({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:or},e.meridiemMode==="pm"&&{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:hover":{backgroundColor:(t.vars||t).palette.primary.light}})),_M=q(An,{name:"MuiClock",slot:"meridiemText",overridesResolver:(t,e)=>e.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Zte(t){const e=Pe({props:t,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:i,children:r,value:s,handleMeridiemChange:a,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:d,selectedId:h,type:p,viewValue:g,disabled:m,readOnly:b,className:v}=e,y=e,w=rt(),C=Sn(),k=x.useRef(!1),P=Ute(y),M=l(g,p),_=!n&&p==="hours"&&(g<1||g>12),R=(L,V)=>{m||b||l(L,p)||d(L,V)},O=(L,V)=>{let{offsetX:W,offsetY:Y}=L;if(W===void 0){const B=L.target.getBoundingClientRect();W=L.changedTouches[0].clientX-B.left,Y=L.changedTouches[0].clientY-B.top}const se=p==="seconds"||p==="minutes"?jte(W,Y,u):Lte(W,Y,!!n);R(se,V)},I=L=>{k.current=!0,O(L,"shallow")},$=L=>{k.current&&(O(L,"finish"),k.current=!1)},F=L=>{L.buttons>0&&O(L.nativeEvent,"shallow")},E=L=>{k.current&&(k.current=!1),O(L.nativeEvent,"finish")},D=x.useMemo(()=>p==="hours"?!0:g%5===0,[p,g]),j=p==="minutes"?u:1,N=x.useRef(null);nn(()=>{i&&N.current.focus()},[i]);const A=L=>{if(!k.current)switch(L.key){case"Home":R(0,"partial"),L.preventDefault();break;case"End":R(p==="minutes"?59:23,"partial"),L.preventDefault();break;case"ArrowUp":R(g+j,"partial"),L.preventDefault();break;case"ArrowDown":R(g-j,"partial"),L.preventDefault();break}};return f.jsxs(qte,{className:me(v,P.root),children:[f.jsxs(Gte,{className:P.clock,children:[f.jsx(Yte,{onTouchMove:I,onTouchEnd:$,onMouseUp:E,onMouseMove:F,ownerState:{disabled:m},className:P.squareMask}),!M&&f.jsxs(x.Fragment,{children:[f.jsx(Qte,{className:P.pin}),s!=null&&f.jsx(Hte,{type:p,viewValue:g,isInner:_,hasSelected:D})]}),f.jsx(Kte,{"aria-activedescendant":h,"aria-label":C.clockLabelText(p,s,w),ref:N,role:"listbox",onKeyDown:A,tabIndex:0,className:P.wrapper,children:r})]}),n&&o&&f.jsxs(x.Fragment,{children:[f.jsx(Xte,{onClick:b?void 0:()=>a("am"),disabled:m||c===null,ownerState:y,className:P.amButton,title:Pi(w,"am"),children:f.jsx(_M,{variant:"caption",className:P.meridiemText,children:Pi(w,"am")})}),f.jsx(Jte,{disabled:m||c===null,onClick:b?void 0:()=>a("pm"),ownerState:y,className:P.pmButton,title:Pi(w,"pm"),children:f.jsx(_M,{variant:"caption",className:P.meridiemText,children:Pi(w,"pm")})})]})]})}function ene(t){return Ie("MuiClockNumber",t)}const wf=Te("MuiClockNumber",["root","selected","disabled"]),tne=["className","disabled","index","inner","label","selected"],nne=t=>{const{classes:e,selected:n,disabled:o}=t;return Oe({root:["root",n&&"selected",o&&"disabled"]},ene,e)},one=q("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`&.${wf.disabled}`]:e.disabled},{[`&.${wf.selected}`]:e.selected}]})(({theme:t,ownerState:e})=>S({height:or,width:or,position:"absolute",left:`calc((100% - ${or}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(t.vars||t).palette.text.primary,fontFamily:t.typography.fontFamily,"&:focused":{backgroundColor:(t.vars||t).palette.background.paper},[`&.${wf.selected}`]:{color:(t.vars||t).palette.primary.contrastText},[`&.${wf.disabled}`]:{pointerEvents:"none",color:(t.vars||t).palette.text.disabled}},e.inner&&S({},t.typography.body2,{color:(t.vars||t).palette.text.secondary})));function O$(t){const e=Pe({props:t,name:"MuiClockNumber"}),{className:n,disabled:o,index:i,inner:r,label:s,selected:a}=e,l=ce(e,tne),c=e,u=nne(c),d=i%12/12*Math.PI*2-Math.PI/2,h=(wc-or-2)/2*(r?.65:1),p=Math.round(Math.cos(d)*h),g=Math.round(Math.sin(d)*h);return f.jsx(one,S({className:me(n,u.root),"aria-disabled":o?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${g+(wc-or)/2}px`},ownerState:c},l,{children:s}))}const ine=({ampm:t,value:e,getClockNumberText:n,isDisabled:o,selectedId:i,utils:r})=>{const s=e?r.getHours(e):null,a=[],l=t?1:0,c=t?12:23,u=d=>s===null?!1:t?d===12?s===12||s===0:s===d||s-12===d:s===d;for(let d=l;d<=c;d+=1){let h=d.toString();d===0&&(h="00");const p=!t&&(d===0||d>12);h=r.formatNumber(h);const g=u(d);a.push(f.jsx(O$,{id:g?i:void 0,index:d,inner:p,selected:g,disabled:o(d),label:h,"aria-label":n(h)},d))}return a},RM=({utils:t,value:e,isDisabled:n,getClockNumberText:o,selectedId:i})=>{const r=t.formatNumber;return[[5,r("05")],[10,r("10")],[15,r("15")],[20,r("20")],[25,r("25")],[30,r("30")],[35,r("35")],[40,r("40")],[45,r("45")],[50,r("50")],[55,r("55")],[0,r("00")]].map(([s,a],l)=>{const c=s===e;return f.jsx(O$,{label:a,id:c?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:c,"aria-label":o(a)},s)})},rne=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],sne=t=>{const{classes:e}=t;return Oe({root:["root"],arrowSwitcher:["arrowSwitcher"]},Ete,e)},ane=q(uv,{name:"MuiTimeClock",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",position:"relative"}),lne=q(o$,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(t,e)=>e.arrowSwitcher})({position:"absolute",right:12,top:15}),cne=["hours","minutes"],une=x.forwardRef(function(e,n){const o=rt(),i=Pe({props:e,name:"MuiTimeClock"}),{ampm:r=o.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:a,components:l,componentsProps:c,slots:u,slotProps:d,value:h,defaultValue:p,referenceDate:g,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:b,minTime:v,disableFuture:y,disablePast:w,minutesStep:C=1,shouldDisableClock:k,shouldDisableTime:P,showViewSwitcher:M,onChange:_,view:R,views:O=cne,openTo:I,onViewChange:$,focusedView:F,onFocusedViewChange:E,className:D,disabled:j,readOnly:N,timezone:A}=i,L=ce(i,rne),V=u??Ph(l),W=d??c,{value:Y,handleValueChange:se,timezone:B}=jc({name:"TimeClock",timezone:A,value:h,defaultValue:p,onChange:_,valueManager:Cn}),U=aC({value:Y,referenceDate:g,utils:o,props:i,timezone:B}),z=Sn(),Q=Ns(B),{view:J,setView:ee,previousView:ie,nextView:ne,setValueAndGoToNextView:oe}=Mh({view:R,views:O,openTo:I,onViewChange:$,onChange:se,focusedView:F,onFocusedViewChange:E}),{meridiemMode:H,handleMeridiemChange:ue}=lv(U,r,oe),he=x.useCallback((G,X)=>{const ve=kh(m,o),ke=X==="hours"||X==="minutes"&&O.includes("seconds"),_e=({start:ae,end:xe})=>!(v&&ve(v,xe)||b&&ve(ae,b)||y&&ve(ae,Q)||w&&ve(Q,ke?xe:ae)),fe=(ae,xe=1)=>{if(ae%xe!==0||k!=null&&k(ae,X))return!1;if(P)switch(X){case"hours":return!P(o.setHours(U,ae),"hours");case"minutes":return!P(o.setMinutes(U,ae),"minutes");case"seconds":return!P(o.setSeconds(U,ae),"seconds");default:return!1}return!0};switch(X){case"hours":{const ae=Id(G,H,r),xe=o.setHours(U,ae),we=o.setSeconds(o.setMinutes(xe,0),0),be=o.setSeconds(o.setMinutes(xe,59),59);return!_e({start:we,end:be})||!fe(ae)}case"minutes":{const ae=o.setMinutes(U,G),xe=o.setSeconds(ae,0),we=o.setSeconds(ae,59);return!_e({start:xe,end:we})||!fe(G,C)}case"seconds":{const ae=o.setSeconds(U,G);return!_e({start:ae,end:ae})||!fe(G)}default:throw new Error("not supported")}},[r,U,m,b,H,v,C,k,P,o,y,w,Q,O]),pe=cr(),$e=x.useMemo(()=>{switch(J){case"hours":{const G=(X,ve)=>{const ke=Id(X,H,r);oe(o.setHours(U,ke),ve)};return{onChange:G,viewValue:o.getHours(U),children:ine({value:Y,utils:o,ampm:r,onChange:G,getClockNumberText:z.hoursClockNumberText,isDisabled:X=>j||he(X,"hours"),selectedId:pe})}}case"minutes":{const G=o.getMinutes(U),X=(ve,ke)=>{oe(o.setMinutes(U,ve),ke)};return{viewValue:G,onChange:X,children:RM({utils:o,value:G,onChange:X,getClockNumberText:z.minutesClockNumberText,isDisabled:ve=>j||he(ve,"minutes"),selectedId:pe})}}case"seconds":{const G=o.getSeconds(U),X=(ve,ke)=>{oe(o.setSeconds(U,ve),ke)};return{viewValue:G,onChange:X,children:RM({utils:o,value:G,onChange:X,getClockNumberText:z.secondsClockNumberText,isDisabled:ve=>j||he(ve,"seconds"),selectedId:pe})}}default:throw new Error("You must provide the type for ClockView")}},[J,o,Y,r,z.hoursClockNumberText,z.minutesClockNumberText,z.secondsClockNumberText,H,oe,U,he,pe,j]),re=i,Ce=sne(re);return f.jsxs(ane,S({ref:n,className:me(Ce.root,D),ownerState:re},L,{children:[f.jsx(Zte,S({autoFocus:a??!!F,ampmInClock:s&&O.includes("hours"),value:Y,type:J,ampm:r,minutesStep:C,isTimeDisabled:he,meridiemMode:H,handleMeridiemChange:ue,selectedId:pe,disabled:j,readOnly:N},$e)),M&&f.jsx(lne,{className:Ce.arrowSwitcher,slots:V,slotProps:W,onGoToPrevious:()=>ee(ie),isPreviousDisabled:!ie,previousLabel:z.openPreviousView,onGoToNext:()=>ee(ne),isNextDisabled:!ne,nextLabel:z.openNextView,ownerState:re})]}))});function dne(t){return Ie("MuiDigitalClock",t)}const hne=Te("MuiDigitalClock",["root","list","item"]),fne=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],pne=t=>{const{classes:e}=t;return Oe({root:["root"],list:["list"],item:["item"]},dne,e)},mne=q(uv,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(t,e)=>e.root})(({ownerState:t})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},maxHeight:s$})),gne=q(a1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(t,e)=>e.list})({padding:0}),vne=q(sn,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(t,e)=>e.item})(({theme:t})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.primary.main,t.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(t.vars||t).palette.primary.main,color:(t.vars||t).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Le(t.palette.primary.main,t.palette.action.focusOpacity)}})),bne=x.forwardRef(function(e,n){var o,i,r;const s=rt(),a=x.useRef(null),l=mt(n,a),c=Pe({props:e,name:"MuiDigitalClock"}),{ampm:u=s.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:h,components:p,componentsProps:g,slots:m,slotProps:b,value:v,defaultValue:y,referenceDate:w,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:k,minTime:P,disableFuture:M,disablePast:_,minutesStep:R=1,shouldDisableClock:O,shouldDisableTime:I,onChange:$,view:F,openTo:E,onViewChange:D,focusedView:j,onFocusedViewChange:N,className:A,disabled:L,readOnly:V,views:W=["hours"],skipDisabled:Y=!1,timezone:se}=c,B=ce(c,fne),{value:U,handleValueChange:z,timezone:Q}=jc({name:"DigitalClock",timezone:se,value:v,defaultValue:y,onChange:$,valueManager:Cn}),J=Sn(),ee=Ns(Q),ie=x.useMemo(()=>S({},c,{alreadyRendered:!!a.current}),[c]),ne=pne(ie),oe=(o=(i=m==null?void 0:m.digitalClockItem)!=null?i:p==null?void 0:p.DigitalClockItem)!=null?o:vne,H=nt({elementType:oe,externalSlotProps:(r=b==null?void 0:b.digitalClockItem)!=null?r:g==null?void 0:g.digitalClockItem,ownerState:{},className:ne.item}),ue=aC({value:U,referenceDate:w,utils:s,props:c,timezone:Q}),he=je(G=>z(G,"finish","hours")),{setValueAndGoToNextView:pe}=Mh({view:F,views:W,openTo:E,onViewChange:D,onChange:he,focusedView:j,onFocusedViewChange:N}),$e=je(G=>{pe(G,"finish")});x.useEffect(()=>{if(a.current===null)return;const G=a.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!G)return;const X=G.offsetTop;a.current.scrollTop=X-4});const re=x.useCallback(G=>{const X=kh(C,s),ve=()=>!(P&&X(P,G)||k&&X(G,k)||M&&X(G,ee)||_&&X(ee,G)),ke=()=>s.getMinutes(G)%R!==0||O!=null&&O(s.toJsDate(G).getTime(),"hours")?!1:I?!I(G,"hours"):!0;return!ve()||!ke()},[C,s,P,k,M,ee,_,R,O,I]),Ce=x.useMemo(()=>{const G=s.startOfDay(ue);return[G,...Array.from({length:Math.ceil(24*60/d)-1},(X,ve)=>s.addMinutes(G,d*(ve+1)))]},[ue,d,s]);return f.jsx(mne,S({ref:l,className:me(ne.root,A),ownerState:ie},B,{children:f.jsx(gne,{autoFocusItem:h||!!j,role:"listbox","aria-label":J.timePickerToolbarTitle,className:ne.list,children:Ce.map(G=>{if(Y&&re(G))return null;const X=s.isEqual(G,U);return f.jsx(oe,S({onClick:()=>!V&&$e(G),selected:X,disabled:L||re(G),disableRipple:V,role:"option","aria-disabled":V,"aria-selected":X},H,{children:s.format(G,u?"fullTime12h":"fullTime24h")}),s.toISO(G))})})}))}),Al=({view:t,onViewChange:e,focusedView:n,onFocusedViewChange:o,views:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:m,shouldDisableClock:b,minutesStep:v,ampm:y,ampmInClock:w,components:C,componentsProps:k,slots:P,slotProps:M,readOnly:_,disabled:R,sx:O,autoFocus:I,showViewSwitcher:$,disableIgnoringDatePartForTimeValidation:F,timezone:E})=>f.jsx(une,{view:t,onViewChange:e,focusedView:n&&xc(n)?n:null,onFocusedViewChange:o,views:i.filter(xc),value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:m,shouldDisableClock:b,minutesStep:v,ampm:y,ampmInClock:w,components:C,componentsProps:k,slots:P,slotProps:M,readOnly:_,disabled:R,sx:O,autoFocus:I,showViewSwitcher:$,disableIgnoringDatePartForTimeValidation:F,timezone:E}),I$=({view:t,onViewChange:e,focusedView:n,onFocusedViewChange:o,views:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:m,shouldDisableClock:b,minutesStep:v,ampm:y,components:w,componentsProps:C,slots:k,slotProps:P,readOnly:M,disabled:_,sx:R,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:F,timezone:E})=>f.jsx(bne,{view:t,onViewChange:e,focusedView:n,onFocusedViewChange:o,views:i.filter(xc),value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:m,shouldDisableClock:b,minutesStep:v,ampm:y,components:w,componentsProps:C,slots:k,slotProps:P,readOnly:M,disabled:_,sx:R,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeStep:$==null?void 0:$.minutes,skipDisabled:F,timezone:E}),Ly=({view:t,onViewChange:e,focusedView:n,onFocusedViewChange:o,views:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:m,shouldDisableClock:b,minutesStep:v,ampm:y,components:w,componentsProps:C,slots:k,slotProps:P,readOnly:M,disabled:_,sx:R,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:F,timezone:E})=>f.jsx(Ote,{view:t,onViewChange:e,focusedView:n,onFocusedViewChange:o,views:i.filter(xc),value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:g,shouldDisableTime:m,shouldDisableClock:b,minutesStep:v,ampm:y,components:w,componentsProps:C,slots:k,slotProps:P,readOnly:M,disabled:_,sx:R,autoFocus:O,disableIgnoringDatePartForTimeValidation:I,timeSteps:$,skipDisabled:F,timezone:E}),Hs=({view:t,onViewChange:e,views:n,focusedView:o,onFocusedViewChange:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:p,minTime:g,maxDate:m,maxTime:b,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:w,shouldDisableTime:C,shouldDisableClock:k,reduceAnimations:P,minutesStep:M,ampm:_,onMonthChange:R,monthsPerRow:O,onYearChange:I,yearsPerRow:$,defaultCalendarMonth:F,components:E,componentsProps:D,slots:j,slotProps:N,loading:A,renderLoading:L,disableHighlightToday:V,readOnly:W,disabled:Y,showDaysOutsideCurrentMonth:se,dayOfWeekFormatter:B,sx:U,autoFocus:z,fixedWeekNumber:Q,displayWeekNumber:J,timezone:ee,disableIgnoringDatePartForTimeValidation:ie,timeSteps:ne,skipDisabled:oe,timeViewsCount:H,shouldRenderTimeInASingleColumn:ue})=>{var he,pe;const $e=!!((he=Ls((pe=N==null?void 0:N.actionBar)!=null?pe:D==null?void 0:D.actionBar,{}))!=null&&(he=he.actions)!=null&&he.length),re={view:Br(t)?t:"hours",onViewChange:e,focusedView:o&&Br(o)?o:null,onFocusedViewChange:i,views:n.filter(Br),value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:C,shouldDisableClock:k,minutesStep:M,ampm:_,components:E,componentsProps:D,slots:j,slotProps:N,readOnly:W,disabled:Y,autoFocus:z,disableIgnoringDatePartForTimeValidation:ie,timeSteps:ne,skipDisabled:oe,timezone:ee};return f.jsxs(x.Fragment,{children:[f.jsxs(Ite,{children:[f.jsx(w$,{view:jl(t)?t:"day",onViewChange:e,views:n.filter(jl),focusedView:o&&jl(o)?o:null,onFocusedViewChange:i,value:r,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:p,maxDate:m,shouldDisableDate:v,shouldDisableMonth:y,shouldDisableYear:w,reduceAnimations:P,onMonthChange:R,monthsPerRow:O,onYearChange:I,yearsPerRow:$,defaultCalendarMonth:F,components:E,componentsProps:D,slots:j,slotProps:N,loading:A,renderLoading:L,disableHighlightToday:V,readOnly:W,disabled:Y,showDaysOutsideCurrentMonth:se,dayOfWeekFormatter:B,sx:U,autoFocus:z,fixedWeekNumber:Q,displayWeekNumber:J,timezone:ee}),H>0&&f.jsxs(x.Fragment,{children:[f.jsx(gm,{orientation:"vertical"}),ue?I$(S({},re,{view:"hours",views:["hours"],focusedView:o&&Br(o)?"hours":null,sx:S({width:"auto",[`&.${hne.root}`]:{maxHeight:av}},Array.isArray(U)?U:[U])})):Ly(S({},re,{view:Br(t)?t:"hours",views:n.filter(Br),focusedView:o&&Br(o)?o:null,sx:S({borderBottom:0,width:"auto",[`.${xte.root}`]:{maxHeight:"100%"}},Array.isArray(U)?U:[U])}))]})]}),$e&&f.jsx(gm,{})]})},yne=["views","format"],E$=(t,e)=>{let{views:n,format:o}=e,i=ce(e,yne);if(o)return o;const r=[],s=[];if(n.forEach(c=>{xc(c)?s.push(c):r.push(c)}),s.length===0)return Od(t,S({views:r},i),!1);if(r.length===0)return bm(t,S({views:s},i));const a=bm(t,S({views:s},i));return`${Od(t,S({views:r},i),!1)} ${a}`},xne=(t,e,n)=>n?e.filter(o=>!Br(o)||o==="hours"):t?[...e,"meridiem"]:e,wne=(t,e)=>{var n,o;return 24*60/(((n=t.hours)!=null?n:1)*((o=t.minutes)!=null?o:5))<=e};function D$({thresholdToRenderTimeInASingleColumn:t,ampm:e,timeSteps:n,views:o}){const i=t??24,r=S({hours:1,minutes:5,seconds:5},n),s=wne(r,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:r,shouldRenderTimeInASingleColumn:s,views:xne(e,o,s)}}const $$=x.forwardRef(function(e,n){var o,i,r,s,a,l,c;const u=Sn(),d=rt(),h=_$(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:p,thresholdToRenderTimeInASingleColumn:g,views:m,timeSteps:b}=D$(h),v=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,y=v?{day:Hs,month:Hs,year:Hs,hours:Hs,minutes:Hs,seconds:Hs,meridiem:Hs}:S({day:ci,month:ci,year:ci,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),w=(o=h.ampmInClock)!=null?o:!0,C=v?["accept"]:[],k=S({},h,{viewRenderers:y,format:E$(d,h),views:m,yearsPerRow:(i=h.yearsPerRow)!=null?i:4,ampmInClock:w,timeSteps:b,thresholdToRenderTimeInASingleColumn:g,shouldRenderTimeInASingleColumn:p,slots:S({field:k$,openPickerIcon:n$},h.slots),slotProps:S({},h.slotProps,{field:M=>{var _;return S({},Ls((_=h.slotProps)==null?void 0:_.field,M),Lc(h),{ref:n})},toolbar:S({hidden:!0,ampmInClock:w,toolbarVariant:v?"desktop":"mobile"},(r=h.slotProps)==null?void 0:r.toolbar),tabs:S({hidden:!0},(s=h.slotProps)==null?void 0:s.tabs),actionBar:S({actions:C},(a=h.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:P}=iC({props:k,valueManager:Cn,valueType:"date-time",getOpenDialogAriaText:(l=(c=k.localeText)==null?void 0:c.openDatePickerDialogue)!=null?l:u.openDatePickerDialogue,validator:oC});return P()});$$.propTypes={ampm:T.bool,ampmInClock:T.bool,autoFocus:T.bool,className:T.string,closeOnSelect:T.bool,components:T.object,componentsProps:T.object,dayOfWeekFormatter:T.func,defaultCalendarMonth:T.any,defaultValue:T.any,disabled:T.bool,disableFuture:T.bool,disableHighlightToday:T.bool,disableIgnoringDatePartForTimeValidation:T.bool,disableOpenPicker:T.bool,disablePast:T.bool,displayWeekNumber:T.bool,fixedWeekNumber:T.number,format:T.string,formatDensity:T.oneOf(["dense","spacious"]),inputRef:Dc,label:T.node,loading:T.bool,localeText:T.object,maxDate:T.any,maxDateTime:T.any,maxTime:T.any,minDate:T.any,minDateTime:T.any,minTime:T.any,minutesStep:T.number,monthsPerRow:T.oneOf([3,4]),name:T.string,onAccept:T.func,onChange:T.func,onClose:T.func,onError:T.func,onMonthChange:T.func,onOpen:T.func,onSelectedSectionsChange:T.func,onViewChange:T.func,onYearChange:T.func,open:T.bool,openTo:T.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:T.oneOf(["landscape","portrait"]),readOnly:T.bool,reduceAnimations:T.bool,referenceDate:T.any,renderLoading:T.func,selectedSections:T.oneOfType([T.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),T.number,T.shape({endIndex:T.number.isRequired,startIndex:T.number.isRequired})]),shouldDisableClock:T.func,shouldDisableDate:T.func,shouldDisableMonth:T.func,shouldDisableTime:T.func,shouldDisableYear:T.func,showDaysOutsideCurrentMonth:T.bool,skipDisabled:T.bool,slotProps:T.object,slots:T.object,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),thresholdToRenderTimeInASingleColumn:T.number,timeSteps:T.shape({hours:T.number,minutes:T.number,seconds:T.number}),timezone:T.string,value:T.any,view:T.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:T.shape({day:T.func,hours:T.func,meridiem:T.func,minutes:T.func,month:T.func,seconds:T.func,year:T.func}),views:T.arrayOf(T.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:T.oneOf([3,4])};const F$=x.forwardRef(function(e,n){var o,i,r,s,a;const l=Sn(),c=rt(),u=_$(e,"MuiMobileDateTimePicker"),d=S({day:ci,month:ci,year:ci,hours:Al,minutes:Al,seconds:Al},u.viewRenderers),h=(o=u.ampmInClock)!=null?o:!1,p=S({},u,{viewRenderers:d,format:E$(c,u),ampmInClock:h,slots:S({field:k$},u.slots),slotProps:S({},u.slotProps,{field:m=>{var b;return S({},Ls((b=u.slotProps)==null?void 0:b.field,m),Lc(u),{ref:n})},toolbar:S({hidden:!1,ampmInClock:h},(i=u.slotProps)==null?void 0:i.toolbar),tabs:S({hidden:!1},(r=u.slotProps)==null?void 0:r.tabs)})}),{renderPicker:g}=sC({props:p,valueManager:Cn,valueType:"date-time",getOpenDialogAriaText:(s=(a=p.localeText)==null?void 0:a.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:oC});return g()});F$.propTypes={ampm:T.bool,ampmInClock:T.bool,autoFocus:T.bool,className:T.string,closeOnSelect:T.bool,components:T.object,componentsProps:T.object,dayOfWeekFormatter:T.func,defaultCalendarMonth:T.any,defaultValue:T.any,disabled:T.bool,disableFuture:T.bool,disableHighlightToday:T.bool,disableIgnoringDatePartForTimeValidation:T.bool,disableOpenPicker:T.bool,disablePast:T.bool,displayWeekNumber:T.bool,fixedWeekNumber:T.number,format:T.string,formatDensity:T.oneOf(["dense","spacious"]),inputRef:Dc,label:T.node,loading:T.bool,localeText:T.object,maxDate:T.any,maxDateTime:T.any,maxTime:T.any,minDate:T.any,minDateTime:T.any,minTime:T.any,minutesStep:T.number,monthsPerRow:T.oneOf([3,4]),name:T.string,onAccept:T.func,onChange:T.func,onClose:T.func,onError:T.func,onMonthChange:T.func,onOpen:T.func,onSelectedSectionsChange:T.func,onViewChange:T.func,onYearChange:T.func,open:T.bool,openTo:T.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:T.oneOf(["landscape","portrait"]),readOnly:T.bool,reduceAnimations:T.bool,referenceDate:T.any,renderLoading:T.func,selectedSections:T.oneOfType([T.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),T.number,T.shape({endIndex:T.number.isRequired,startIndex:T.number.isRequired})]),shouldDisableClock:T.func,shouldDisableDate:T.func,shouldDisableMonth:T.func,shouldDisableTime:T.func,shouldDisableYear:T.func,showDaysOutsideCurrentMonth:T.bool,slotProps:T.object,slots:T.object,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),timezone:T.string,value:T.any,view:T.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:T.shape({day:T.func,hours:T.func,minutes:T.func,month:T.func,seconds:T.func,year:T.func}),views:T.arrayOf(T.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:T.oneOf([3,4])};const Cne=["desktopModeMediaQuery"],Sne=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=J1}=o,r=ce(o,Cne);return Rs(i,{defaultMatches:!0})?f.jsx($$,S({ref:n},r)):f.jsx(F$,S({ref:n},r))}),kne=t=>{var e,n,o,i;const r=rt(),a=((e=t.ampm)!=null?e:r.is12HourCycleInCurrentLocale())?r.formats.fullTime12h:r.formats.fullTime24h;return S({},t,{disablePast:(n=t.disablePast)!=null?n:!1,disableFuture:(o=t.disableFuture)!=null?o:!1,format:(i=t.format)!=null?i:a})},Pne=({props:t,inputRef:e})=>{const n=kne(t),{forwardedProps:o,internalProps:i}=nC(n,"time");return tC({inputRef:e,forwardedProps:o,internalProps:i,valueManager:Cn,fieldValueManager:Q1,validator:cv,valueType:"time"})},Mne=["slots","slotProps","components","componentsProps","InputProps","inputProps"],_ne=["inputRef"],Rne=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],j$=x.forwardRef(function(e,n){var o,i,r;const s=Pe({props:e,name:"MuiTimeField"}),{slots:a,slotProps:l,components:c,componentsProps:u,InputProps:d,inputProps:h}=s,p=ce(s,Mne),g=s,m=(o=(i=a==null?void 0:a.textField)!=null?i:c==null?void 0:c.TextField)!=null?o:Oa,b=nt({elementType:m,externalSlotProps:(r=l==null?void 0:l.textField)!=null?r:u==null?void 0:u.textField,externalForwardedProps:p,ownerState:g}),{inputRef:v}=b,y=ce(b,_ne);y.inputProps=S({},h,y.inputProps),y.InputProps=S({},d,y.InputProps);const w=Pne({props:y,inputRef:v}),{ref:C,onPaste:k,onKeyDown:P,inputMode:M,readOnly:_,clearable:R,onClear:O}=w,I=ce(w,Rne),{InputProps:$,fieldProps:F}=rC({onClear:O,clearable:R,fieldProps:I,InputProps:I.InputProps,slots:a,slotProps:l,components:c,componentsProps:u});return f.jsx(m,S({ref:n},F,{InputProps:S({},$,{readOnly:_}),inputProps:S({},I.inputProps,{inputMode:M,onPaste:k,onKeyDown:P,ref:C})}))});function Tne(t){return Ie("MuiTimePickerToolbar",t)}const Uu=Te("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),One=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],Ine=t=>{const{theme:e,isLandscape:n,classes:o}=t,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",e.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Oe(i,Tne,o)},Ene=q(X1,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Dne=q(Z1,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(t,e)=>e.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),L$=q("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(t,e)=>[{[`&.${Uu.hourMinuteLabelLandscape}`]:e.hourMinuteLabelLandscape,[`&.${Uu.hourMinuteLabelReverse}`]:e.hourMinuteLabelReverse},e.hourMinuteLabel]})(({theme:t,ownerState:e})=>S({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},e.isLandscape&&{marginTop:"auto"},t.direction==="rtl"&&{flexDirection:"row-reverse"}));L$.propTypes={as:T.elementType,ownerState:T.object.isRequired,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object])};const A$=q("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(t,e)=>[{[`.${Uu.ampmLabel}`]:e.ampmLabel},{[`&.${Uu.ampmLandscape}`]:e.ampmLandscape},e.ampmSelection]})(({ownerState:t})=>S({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},t.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Uu.ampmLabel}`]:{fontSize:17}}));A$.propTypes={as:T.elementType,ownerState:T.object.isRequired,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object])};function $ne(t){const e=Pe({props:t,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,value:i,isLandscape:r,onChange:s,view:a,onViewChange:l,views:c,disabled:u,readOnly:d}=e,h=ce(e,One),p=rt(),g=Sn(),m=Dt(),b=!!(n&&!o&&c.includes("hours")),{meridiemMode:v,handleMeridiemChange:y}=lv(i,n,s),w=M=>n?p.format(M,"hours12h"):p.format(M,"hours24h"),C=e,k=Ine(S({},C,{theme:m})),P=f.jsx(Dne,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:k.separator});return f.jsxs(Ene,S({landscapeDirection:"row",toolbarTitle:g.timePickerToolbarTitle,isLandscape:r,ownerState:C,className:k.root},h,{children:[f.jsxs(L$,{className:k.hourMinuteLabel,ownerState:C,children:[ul(c,"hours")&&f.jsx(To,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:a==="hours",value:i?w(i):"--"}),ul(c,["hours","minutes"])&&P,ul(c,"minutes")&&f.jsx(To,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:a==="minutes",value:i?p.format(i,"minutes"):"--"}),ul(c,["minutes","seconds"])&&P,ul(c,"seconds")&&f.jsx(To,{variant:"h3",onClick:()=>l("seconds"),selected:a==="seconds",value:i?p.format(i,"seconds"):"--"})]}),b&&f.jsxs(A$,{className:k.ampmSelection,ownerState:C,children:[f.jsx(To,{disableRipple:!0,variant:"subtitle2",selected:v==="am",typographyClassName:k.ampmLabel,value:Pi(p,"am"),onClick:d?void 0:()=>y("am"),disabled:u}),f.jsx(To,{disableRipple:!0,variant:"subtitle2",selected:v==="pm",typographyClassName:k.ampmLabel,value:Pi(p,"pm"),onClick:d?void 0:()=>y("pm"),disabled:u})]})]}))}function N$(t,e){var n,o,i,r,s;const a=rt(),l=Pe({props:t,name:e}),c=(n=l.ampm)!=null?n:a.is12HourCycleInCurrentLocale(),u=x.useMemo(()=>{var p;return((p=l.localeText)==null?void 0:p.toolbarTitle)==null?l.localeText:S({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(o=l.slots)!=null?o:Ph(l.components),h=(i=l.slotProps)!=null?i:l.componentsProps;return S({},l,{ampm:c,localeText:u},q1({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:S({toolbar:$ne},d),slotProps:S({},h,{toolbar:S({ampm:c,ampmInClock:l.ampmInClock},h==null?void 0:h.toolbar)})})}const z$=x.forwardRef(function(e,n){var o,i,r,s,a,l;const c=Sn(),u=rt(),d=N$(e,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:h,views:p,timeSteps:g}=D$(d),m=h?I$:Ly,b=S({hours:m,minutes:m,seconds:m,meridiem:m},d.viewRenderers),v=(o=d.ampmInClock)!=null?o:!0,y=h?[]:["accept"],C=((i=b.hours)==null?void 0:i.name)===Ly.name?p:p.filter(M=>M!=="meridiem"),k=S({},d,{ampmInClock:v,timeSteps:g,viewRenderers:b,format:bm(u,d),views:h?["hours"]:C,slots:S({field:j$,openPickerIcon:QQ},d.slots),slotProps:S({},d.slotProps,{field:M=>{var _;return S({},Ls((_=d.slotProps)==null?void 0:_.field,M),Lc(d),{ref:n})},toolbar:S({hidden:!0,ampmInClock:v},(r=d.slotProps)==null?void 0:r.toolbar),actionBar:S({actions:y},(s=d.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:P}=iC({props:k,valueManager:Cn,valueType:"time",getOpenDialogAriaText:(a=(l=k.localeText)==null?void 0:l.openTimePickerDialogue)!=null?a:c.openTimePickerDialogue,validator:cv});return P()});z$.propTypes={ampm:T.bool,ampmInClock:T.bool,autoFocus:T.bool,className:T.string,closeOnSelect:T.bool,components:T.object,componentsProps:T.object,defaultValue:T.any,disabled:T.bool,disableFuture:T.bool,disableIgnoringDatePartForTimeValidation:T.bool,disableOpenPicker:T.bool,disablePast:T.bool,format:T.string,formatDensity:T.oneOf(["dense","spacious"]),inputRef:Dc,label:T.node,localeText:T.object,maxTime:T.any,minTime:T.any,minutesStep:T.number,name:T.string,onAccept:T.func,onChange:T.func,onClose:T.func,onError:T.func,onOpen:T.func,onSelectedSectionsChange:T.func,onViewChange:T.func,open:T.bool,openTo:T.oneOf(["hours","meridiem","minutes","seconds"]),orientation:T.oneOf(["landscape","portrait"]),readOnly:T.bool,reduceAnimations:T.bool,referenceDate:T.any,selectedSections:T.oneOfType([T.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),T.number,T.shape({endIndex:T.number.isRequired,startIndex:T.number.isRequired})]),shouldDisableClock:T.func,shouldDisableTime:T.func,skipDisabled:T.bool,slotProps:T.object,slots:T.object,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),thresholdToRenderTimeInASingleColumn:T.number,timeSteps:T.shape({hours:T.number,minutes:T.number,seconds:T.number}),timezone:T.string,value:T.any,view:T.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:T.shape({hours:T.func,meridiem:T.func,minutes:T.func,seconds:T.func}),views:T.arrayOf(T.oneOf(["hours","minutes","seconds"]).isRequired)};const V$=x.forwardRef(function(e,n){var o,i,r,s;const a=Sn(),l=rt(),c=N$(e,"MuiMobileTimePicker"),u=S({hours:Al,minutes:Al,seconds:Al},c.viewRenderers),d=(o=c.ampmInClock)!=null?o:!1,h=S({},c,{ampmInClock:d,viewRenderers:u,format:bm(l,c),slots:S({field:j$},c.slots),slotProps:S({},c.slotProps,{field:g=>{var m;return S({},Ls((m=c.slotProps)==null?void 0:m.field,g),Lc(c),{ref:n})},toolbar:S({hidden:!1,ampmInClock:d},(i=c.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=sC({props:h,valueManager:Cn,valueType:"time",getOpenDialogAriaText:(r=(s=h.localeText)==null?void 0:s.openTimePickerDialogue)!=null?r:a.openTimePickerDialogue,validator:cv});return p()});V$.propTypes={ampm:T.bool,ampmInClock:T.bool,autoFocus:T.bool,className:T.string,closeOnSelect:T.bool,components:T.object,componentsProps:T.object,defaultValue:T.any,disabled:T.bool,disableFuture:T.bool,disableIgnoringDatePartForTimeValidation:T.bool,disableOpenPicker:T.bool,disablePast:T.bool,format:T.string,formatDensity:T.oneOf(["dense","spacious"]),inputRef:Dc,label:T.node,localeText:T.object,maxTime:T.any,minTime:T.any,minutesStep:T.number,name:T.string,onAccept:T.func,onChange:T.func,onClose:T.func,onError:T.func,onOpen:T.func,onSelectedSectionsChange:T.func,onViewChange:T.func,open:T.bool,openTo:T.oneOf(["hours","minutes","seconds"]),orientation:T.oneOf(["landscape","portrait"]),readOnly:T.bool,reduceAnimations:T.bool,referenceDate:T.any,selectedSections:T.oneOfType([T.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),T.number,T.shape({endIndex:T.number.isRequired,startIndex:T.number.isRequired})]),shouldDisableClock:T.func,shouldDisableTime:T.func,slotProps:T.object,slots:T.object,sx:T.oneOfType([T.arrayOf(T.oneOfType([T.func,T.object,T.bool])),T.func,T.object]),timezone:T.string,value:T.any,view:T.oneOf(["hours","minutes","seconds"]),viewRenderers:T.shape({hours:T.func,minutes:T.func,seconds:T.func}),views:T.arrayOf(T.oneOf(["hours","minutes","seconds"]).isRequired)};const Fne=["desktopModeMediaQuery"],jne=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=J1}=o,r=ce(o,Fne);return Rs(i,{defaultMatches:!0})?f.jsx(z$,S({ref:n},r)):f.jsx(V$,S({ref:n},r))}),Lne=t=>!t||!tr(t),Ane=Lne;function Nne(t){return Ie("MuiSlider",t)}const zne=Te("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Mi=zne,Vne=t=>{const{open:e}=t;return{offset:me(e&&Mi.valueLabelOpen),circle:Mi.valueLabelCircle,label:Mi.valueLabelLabel}};function Bne(t){const{children:e,className:n,value:o}=t,i=Vne(t);return e?x.cloneElement(e,{className:me(e.props.className)},f.jsxs(x.Fragment,{children:[e.props.children,f.jsx("span",{className:me(i.offset,n),"aria-hidden":!0,children:f.jsx("span",{className:i.circle,children:f.jsx("span",{className:i.label,children:o})})})]})):null}const Hne=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function TM(t){return t}const Wne=q("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`color${le(n.color)}`],n.size!=="medium"&&e[`size${le(n.size)}`],n.marked&&e.marked,n.orientation==="vertical"&&e.vertical,n.track==="inverted"&&e.trackInverted,n.track===!1&&e.trackFalse]}})(({theme:t,ownerState:e})=>S({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[e.color].main,WebkitTapHighlightColor:"transparent"},e.orientation==="horizontal"&&S({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},e.size==="small"&&{height:2},e.marked&&{marginBottom:20}),e.orientation==="vertical"&&S({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},e.size==="small"&&{width:2},e.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Mi.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Mi.dragging}`]:{[`& .${Mi.thumb}, & .${Mi.track}`]:{transition:"none"}}})),Une=q("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})(({ownerState:t})=>S({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},t.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track==="inverted"&&{opacity:1})),qne=q("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?ar(t.palette[e.color].main,.62):sr(t.palette[e.color].main,.5);return S({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},e.size==="small"&&{border:"none"},e.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track===!1&&{display:"none"},e.track==="inverted"&&{backgroundColor:t.vars?t.vars.palette.Slider[`${e.color}Track`]:n,borderColor:t.vars?t.vars.palette.Slider[`${e.color}Track`]:n})}),Gne=q("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.thumb,e[`thumbColor${le(n.color)}`],n.size!=="medium"&&e[`thumbSize${le(n.size)}`]]}})(({theme:t,ownerState:e})=>S({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},e.size==="small"&&{width:12,height:12},e.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},e.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":S({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},e.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Mi.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.16)`:Le(t.palette[e.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Mi.active}`]:{boxShadow:`0px 0px 0px 14px ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.16)`:Le(t.palette[e.color].main,.16)}`},[`&.${Mi.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Kne=q(Bne,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(({theme:t,ownerState:e})=>S({[`&.${Mi.valueLabelOpen}`]:{transform:`${e.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:`${e.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},e.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},e.orientation==="vertical"&&{right:e.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},e.size==="small"&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Yne=q("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Vw(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:n}=t;return[e.mark,n&&e.markActive]}})(({theme:t,ownerState:e,markActive:n})=>S({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},e.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},e.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})),Qne=q("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Vw(t)&&t!=="markLabelActive",overridesResolver:(t,e)=>e.markLabel})(({theme:t,ownerState:e,markLabelActive:n})=>S({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},e.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},e.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(t.vars||t).palette.text.primary})),Xne=t=>{const{disabled:e,dragging:n,marked:o,orientation:i,track:r,classes:s,color:a,size:l}=t,c={root:["root",e&&"disabled",n&&"dragging",o&&"marked",i==="vertical"&&"vertical",r==="inverted"&&"trackInverted",r===!1&&"trackFalse",a&&`color${le(a)}`,l&&`size${le(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",l&&`thumbSize${le(l)}`,a&&`thumbColor${le(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oe(c,Nne,s)},Jne=({children:t})=>t,Zne=x.forwardRef(function(e,n){var o,i,r,s,a,l,c,u,d,h,p,g,m,b,v,y,w,C,k,P,M,_,R,O;const I=Pe({props:e,name:"MuiSlider"}),F=Dt().direction==="rtl",{"aria-label":E,"aria-valuetext":D,"aria-labelledby":j,component:N="span",components:A={},componentsProps:L={},color:V="primary",classes:W,className:Y,disableSwap:se=!1,disabled:B=!1,getAriaLabel:U,getAriaValueText:z,marks:Q=!1,max:J=100,min:ee=0,orientation:ie="horizontal",size:ne="medium",step:oe=1,scale:H=TM,slotProps:ue,slots:he,track:pe="normal",valueLabelDisplay:$e="off",valueLabelFormat:re=TM}=I,Ce=ce(I,Hne),G=S({},I,{isRtl:F,max:J,min:ee,classes:W,disabled:B,disableSwap:se,orientation:ie,marks:Q,color:V,size:ne,step:oe,scale:H,track:pe,valueLabelDisplay:$e,valueLabelFormat:re}),{axisProps:X,getRootProps:ve,getHiddenInputProps:ke,getThumbProps:_e,open:fe,active:ae,axis:xe,focusedThumbIndex:we,range:be,dragging:De,marks:We,values:Ae,trackOffset:ge,trackLeap:Ne,getThumbStyle:te}=KU(S({},G,{rootRef:n}));G.marked=We.length>0&&We.some(de=>de.label),G.dragging=De,G.focusedThumbIndex=we;const ye=Xne(G),Ve=(o=(i=he==null?void 0:he.root)!=null?i:A.Root)!=null?o:Wne,Ke=(r=(s=he==null?void 0:he.rail)!=null?s:A.Rail)!=null?r:Une,Qe=(a=(l=he==null?void 0:he.track)!=null?l:A.Track)!=null?a:qne,ct=(c=(u=he==null?void 0:he.thumb)!=null?u:A.Thumb)!=null?c:Gne,yt=(d=(h=he==null?void 0:he.valueLabel)!=null?h:A.ValueLabel)!=null?d:Kne,$t=(p=(g=he==null?void 0:he.mark)!=null?g:A.Mark)!=null?p:Yne,Tt=(m=(b=he==null?void 0:he.markLabel)!=null?b:A.MarkLabel)!=null?m:Qne,st=(v=(y=he==null?void 0:he.input)!=null?y:A.Input)!=null?v:"input",Ft=(w=ue==null?void 0:ue.root)!=null?w:L.root,In=(C=ue==null?void 0:ue.rail)!=null?C:L.rail,on=(k=ue==null?void 0:ue.track)!=null?k:L.track,Mt=(P=ue==null?void 0:ue.thumb)!=null?P:L.thumb,ao=(M=ue==null?void 0:ue.valueLabel)!=null?M:L.valueLabel,Ze=(_=ue==null?void 0:ue.mark)!=null?_:L.mark,tt=(R=ue==null?void 0:ue.markLabel)!=null?R:L.markLabel,ht=(O=ue==null?void 0:ue.input)!=null?O:L.input,Ot=nt({elementType:Ve,getSlotProps:ve,externalSlotProps:Ft,externalForwardedProps:Ce,additionalProps:S({},Ane(Ve)&&{as:N}),ownerState:S({},G,Ft==null?void 0:Ft.ownerState),className:[ye.root,Y]}),En=nt({elementType:Ke,externalSlotProps:In,ownerState:G,className:ye.rail}),gn=nt({elementType:Qe,externalSlotProps:on,additionalProps:{style:S({},X[xe].offset(ge),X[xe].leap(Ne))},ownerState:S({},G,on==null?void 0:on.ownerState),className:ye.track}),wo=nt({elementType:ct,getSlotProps:_e,externalSlotProps:Mt,ownerState:S({},G,Mt==null?void 0:Mt.ownerState),className:ye.thumb}),jr=nt({elementType:yt,externalSlotProps:ao,ownerState:S({},G,ao==null?void 0:ao.ownerState),className:ye.valueLabel}),Qn=nt({elementType:$t,externalSlotProps:Ze,ownerState:G,className:ye.mark}),Xn=nt({elementType:Tt,externalSlotProps:tt,ownerState:G,className:ye.markLabel}),bi=nt({elementType:st,getSlotProps:ke,externalSlotProps:ht,ownerState:G});return f.jsxs(Ve,S({},Ot,{children:[f.jsx(Ke,S({},En)),f.jsx(Qe,S({},gn)),We.filter(de=>de.value>=ee&&de.value<=J).map((de,Z)=>{const Ee=mm(de.value,ee,J),Be=X[xe].offset(Ee);let ot;return pe===!1?ot=Ae.indexOf(de.value)!==-1:ot=pe==="normal"&&(be?de.value>=Ae[0]&&de.value<=Ae[Ae.length-1]:de.value<=Ae[0])||pe==="inverted"&&(be?de.value<=Ae[0]||de.value>=Ae[Ae.length-1]:de.value>=Ae[0]),f.jsxs(x.Fragment,{children:[f.jsx($t,S({"data-index":Z},Qn,!tr($t)&&{markActive:ot},{style:S({},Be,Qn.style),className:me(Qn.className,ot&&ye.markActive)})),de.label!=null?f.jsx(Tt,S({"aria-hidden":!0,"data-index":Z},Xn,!tr(Tt)&&{markLabelActive:ot},{style:S({},Be,Xn.style),className:me(ye.markLabel,Xn.className,ot&&ye.markLabelActive),children:de.label})):null]},Z)}),Ae.map((de,Z)=>{const Ee=mm(de,ee,J),Be=X[xe].offset(Ee),ot=$e==="off"?Jne:yt;return f.jsx(ot,S({},!tr(ot)&&{valueLabelFormat:re,valueLabelDisplay:$e,value:typeof re=="function"?re(H(de),Z):re,index:Z,open:fe===Z||ae===Z||$e==="on",disabled:B},jr,{children:f.jsx(ct,S({"data-index":Z},wo,{className:me(ye.thumb,wo.className,ae===Z&&ye.active,we===Z&&ye.focusVisible),style:S({},Be,te(Z),wo.style),children:f.jsx(st,S({"data-index":Z,"aria-label":U?U(Z):E,"aria-valuenow":H(de),"aria-labelledby":j,"aria-valuetext":z?z(H(de),Z):D,value:Ae[Z]},bi))}))}),Z)})]}))}),eoe=Zne;function toe(t){return Ie("MuiBadge",t)}const noe=Te("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Nr=noe,ooe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],R0=10,T0=4,ioe=t=>{const{color:e,anchorOrigin:n,invisible:o,overlap:i,variant:r,classes:s={}}=t,a={root:["root"],badge:["badge",r,o&&"invisible",`anchorOrigin${le(n.vertical)}${le(n.horizontal)}`,`anchorOrigin${le(n.vertical)}${le(n.horizontal)}${le(i)}`,`overlap${le(i)}`,e!=="default"&&`color${le(e)}`]};return Oe(a,toe,s)},roe=q("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,e)=>e.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),soe=q("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${le(n.anchorOrigin.vertical)}${le(n.anchorOrigin.horizontal)}${le(n.overlap)}`],n.color!=="default"&&e[`color${le(n.color)}`],n.invisible&&e.invisible]}})(({theme:t})=>{var e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:R0*2,lineHeight:1,padding:"0 6px",height:R0*2,borderRadius:R0,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys(((e=t.vars)!=null?e:t).palette).filter(n=>{var o,i;return((o=t.vars)!=null?o:t).palette[n].main&&((i=t.vars)!=null?i:t).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:T0,height:T0*2,minWidth:T0*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Nr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}}),aoe=x.forwardRef(function(e,n){var o,i,r,s,a,l;const c=Pe({props:e,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:h,components:p={},componentsProps:g={},children:m,overlap:b="rectangular",color:v="default",invisible:y=!1,max:w=99,badgeContent:C,slots:k,slotProps:P,showZero:M=!1,variant:_="standard"}=c,R=ce(c,ooe),{badgeContent:O,invisible:I,max:$,displayValue:F}=JW({max:w,invisible:y,badgeContent:C,showZero:M}),E=xw({anchorOrigin:u,color:v,overlap:b,variant:_,badgeContent:C}),D=I||O==null&&_!=="dot",{color:j=v,overlap:N=b,anchorOrigin:A=u,variant:L=_}=D?E:c,V=L!=="dot"?F:void 0,W=S({},c,{badgeContent:O,invisible:D,max:$,displayValue:V,showZero:M,anchorOrigin:A,color:j,overlap:N,variant:L}),Y=ioe(W),se=(o=(i=k==null?void 0:k.root)!=null?i:p.Root)!=null?o:roe,B=(r=(s=k==null?void 0:k.badge)!=null?s:p.Badge)!=null?r:soe,U=(a=P==null?void 0:P.root)!=null?a:g.root,z=(l=P==null?void 0:P.badge)!=null?l:g.badge,Q=nt({elementType:se,externalSlotProps:U,externalForwardedProps:R,additionalProps:{ref:n,as:h},ownerState:W,className:me(U==null?void 0:U.className,Y.root,d)}),J=nt({elementType:B,externalSlotProps:z,ownerState:W,className:me(Y.badge,z==null?void 0:z.className)});return f.jsxs(se,S({},Q,{children:[m,f.jsx(B,S({},J,{children:V}))]}))}),loe=aoe,coe=Rt(f.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function uoe(t){return Ie("MuiTableSortLabel",t)}const doe=Te("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),O0=doe,hoe=["active","children","className","direction","hideSortIcon","IconComponent"],foe=t=>{const{classes:e,direction:n,active:o}=t,i={root:["root",o&&"active"],icon:["icon",`iconDirection${le(n)}`]};return Oe(i,uoe,e)},poe=q(hi,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.active&&e.active]}})(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${O0.icon}`]:{opacity:.5}},[`&.${O0.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${O0.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}})),moe=q("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,e[`iconDirection${le(n.direction)}`]]}})(({theme:t,ownerState:e})=>S({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},e.direction==="desc"&&{transform:"rotate(0deg)"},e.direction==="asc"&&{transform:"rotate(180deg)"})),goe=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiTableSortLabel"}),{active:i=!1,children:r,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=coe}=o,u=ce(o,hoe),d=S({},o,{active:i,direction:a,hideSortIcon:l,IconComponent:c}),h=foe(d);return f.jsxs(poe,S({className:me(h.root,s),component:"span",disableRipple:!0,ownerState:d,ref:n},u,{children:[r,l&&!i?null:f.jsx(moe,{as:c,className:me(h.icon),ownerState:d})]}))}),voe=goe;function boe(t){return Ie("MuiLinearProgress",t)}Te("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const yoe=["className","color","value","valueBuffer","variant"];let Ac=t=>t,OM,IM,EM,DM,$M,FM;const Ay=4,xoe=Fi(OM||(OM=Ac` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),woe=Fi(IM||(IM=Ac` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),Coe=Fi(EM||(EM=Ac` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),Soe=t=>{const{classes:e,variant:n,color:o}=t,i={root:["root",`color${le(o)}`,n],dashed:["dashed",`dashedColor${le(o)}`],bar1:["bar",`barColor${le(o)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${le(o)}`,n==="buffer"&&`color${le(o)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Oe(i,boe,e)},lC=(t,e)=>e==="inherit"?"currentColor":t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?ar(t.palette[e].main,.62):sr(t.palette[e].main,.5),koe=q("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`color${le(n.color)}`],e[n.variant]]}})(({ownerState:t,theme:e})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:lC(e,t.color)},t.color==="inherit"&&t.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},t.variant==="buffer"&&{backgroundColor:"transparent"},t.variant==="query"&&{transform:"rotate(180deg)"})),Poe=q("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.dashed,e[`dashedColor${le(n.color)}`]]}})(({ownerState:t,theme:e})=>{const n=lC(e,t.color);return S({position:"absolute",marginTop:0,height:"100%",width:"100%"},t.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},rr(DM||(DM=Ac` + animation: ${0} 3s infinite linear; + `),Coe)),Moe=q("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e[`barColor${le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&e.bar1Indeterminate,n.variant==="determinate"&&e.bar1Determinate,n.variant==="buffer"&&e.bar1Buffer]}})(({ownerState:t,theme:e})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:t.color==="inherit"?"currentColor":(e.vars||e).palette[t.color].main},t.variant==="determinate"&&{transition:`transform .${Ay}s linear`},t.variant==="buffer"&&{zIndex:1,transition:`transform .${Ay}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&rr($M||($M=Ac` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),xoe)),_oe=q("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e[`barColor${le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&e.bar2Indeterminate,n.variant==="buffer"&&e.bar2Buffer]}})(({ownerState:t,theme:e})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},t.variant!=="buffer"&&{backgroundColor:t.color==="inherit"?"currentColor":(e.vars||e).palette[t.color].main},t.color==="inherit"&&{opacity:.3},t.variant==="buffer"&&{backgroundColor:lC(e,t.color),transition:`transform .${Ay}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&rr(FM||(FM=Ac` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),woe)),Roe=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiLinearProgress"}),{className:i,color:r="primary",value:s,valueBuffer:a,variant:l="indeterminate"}=o,c=ce(o,yoe),u=S({},o,{color:r,variant:l}),d=Soe(u),h=Dt(),p={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){p["aria-valuenow"]=Math.round(s),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let m=s-100;h.direction==="rtl"&&(m=-m),g.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&a!==void 0){let m=(a||0)-100;h.direction==="rtl"&&(m=-m),g.bar2.transform=`translateX(${m}%)`}return f.jsxs(koe,S({className:me(d.root,i),ownerState:u,role:"progressbar"},p,{ref:n},c,{children:[l==="buffer"?f.jsx(Poe,{className:d.dashed,ownerState:u}):null,f.jsx(Moe,{className:d.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:f.jsx(_oe,{className:d.bar2,ownerState:u,style:g.bar2})]}))}),Toe=Roe;function Ooe(t){return Ie("MuiPagination",t)}Te("MuiPagination",["root","ul","outlined","text"]);const Ioe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Eoe(t={}){const{boundaryCount:e=1,componentName:n="usePagination",count:o=1,defaultPage:i=1,disabled:r=!1,hideNextButton:s=!1,hidePrevButton:a=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:h=1}=t,p=ce(t,Ioe),[g,m]=Rn({controlled:c,default:i,name:n,state:"page"}),b=(R,O)=>{c||m(O),l&&l(R,O)},v=(R,O)=>{const I=O-R+1;return Array.from({length:I},($,F)=>R+F)},y=v(1,Math.min(e,o)),w=v(Math.max(o-e+1,e+1),o),C=Math.max(Math.min(g-h,o-e-h*2-1),e+2),k=Math.min(Math.max(g+h,e+h*2+2),w.length>0?w[0]-2:o-1),P=[...u?["first"]:[],...a?[]:["previous"],...y,...C>e+2?["start-ellipsis"]:e+1e?[o-e]:[],...w,...s?[]:["next"],...d?["last"]:[]],M=R=>{switch(R){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return o;default:return null}},_=P.map(R=>typeof R=="number"?{onClick:O=>{b(O,R)},type:"page",page:R,selected:R===g,disabled:r,"aria-current":R===g?"true":void 0}:{onClick:O=>{b(O,M(R))},type:R,page:M(R),selected:!1,disabled:r||R.indexOf("ellipsis")===-1&&(R==="next"||R==="last"?g>=o:g<=1)});return S({items:_},p)}function Doe(t){return Ie("MuiPaginationItem",t)}const $oe=Te("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),Go=$oe,jM=Rt(f.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),LM=Rt(f.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),AM=Rt(f.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),NM=Rt(f.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Foe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],B$=(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${le(n.size)}`],n.variant==="text"&&e[`text${le(n.color)}`],n.variant==="outlined"&&e[`outlined${le(n.color)}`],n.shape==="rounded"&&e.rounded,n.type==="page"&&e.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&e.ellipsis,(n.type==="previous"||n.type==="next")&&e.previousNext,(n.type==="first"||n.type==="last")&&e.firstLast]},joe=t=>{const{classes:e,color:n,disabled:o,selected:i,size:r,shape:s,type:a,variant:l}=t,c={root:["root",`size${le(r)}`,l,s,n!=="standard"&&`${l}${le(n)}`,o&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[a]],icon:["icon"]};return Oe(c,Doe,e)},Loe=q("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:B$})(({theme:t,ownerState:e})=>S({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${Go.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),Aoe=q(hi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:B$})(({theme:t,ownerState:e})=>S({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${Go.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Go.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Le(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Go.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${Go.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},e.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},e.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:e})=>S({},e.variant==="text"&&{[`&.${Go.selected}`]:S({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}},[`&.${Go.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}},{[`&.${Go.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},e.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Go.selected}`]:S({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:Le(t.palette[e.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:Le(t.palette[e.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Go.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Le(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${Go.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),Noe=q("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(({theme:t,ownerState:e})=>S({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},e.size==="small"&&{fontSize:t.typography.pxToRem(18)},e.size==="large"&&{fontSize:t.typography.pxToRem(22)})),zoe=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPaginationItem"}),{className:i,color:r="standard",component:s,components:a={},disabled:l=!1,page:c,selected:u=!1,shape:d="circular",size:h="medium",slots:p={},type:g="page",variant:m="text"}=o,b=ce(o,Foe),v=S({},o,{color:r,disabled:l,selected:u,shape:d,size:h,type:g,variant:m}),y=Dt(),w=joe(v),k=(y.direction==="rtl"?{previous:p.next||a.next||NM,next:p.previous||a.previous||AM,last:p.first||a.first||jM,first:p.last||a.last||LM}:{previous:p.previous||a.previous||AM,next:p.next||a.next||NM,first:p.first||a.first||jM,last:p.last||a.last||LM})[g];return g==="start-ellipsis"||g==="end-ellipsis"?f.jsx(Loe,{ref:n,ownerState:v,className:me(w.root,i),children:"…"}):f.jsxs(Aoe,S({ref:n,ownerState:v,component:s,disabled:l,className:me(w.root,i)},b,{children:[g==="page"&&c,k?f.jsx(Noe,{as:k,ownerState:v,className:w.icon}):null]}))}),H$=zoe,Voe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Boe=t=>{const{classes:e,variant:n}=t;return Oe({root:["root",n],ul:["ul"]},Ooe,e)},Hoe=q("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant]]}})({}),Woe=q("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Uoe(t,e,n){return t==="page"?`${n?"":"Go to "}page ${e}`:`Go to ${t} page`}const qoe=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiPagination"}),{boundaryCount:i=1,className:r,color:s="standard",count:a=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=Uoe,hideNextButton:d=!1,hidePrevButton:h=!1,renderItem:p=_=>f.jsx(H$,S({},_)),shape:g="circular",showFirstButton:m=!1,showLastButton:b=!1,siblingCount:v=1,size:y="medium",variant:w="text"}=o,C=ce(o,Voe),{items:k}=Eoe(S({},o,{componentName:"Pagination"})),P=S({},o,{boundaryCount:i,color:s,count:a,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:d,hidePrevButton:h,renderItem:p,shape:g,showFirstButton:m,showLastButton:b,siblingCount:v,size:y,variant:w}),M=Boe(P);return f.jsx(Hoe,S({"aria-label":"pagination navigation",className:me(M.root,r),ownerState:P,ref:n},C,{children:f.jsx(Woe,{className:M.ul,ownerState:P,children:k.map((_,R)=>f.jsx("li",{children:p(S({},_,{color:s,"aria-label":u(_.type,_.page,_.selected),shape:g,size:y,variant:w}))},R))})}))}),Goe=qoe;function Koe(t){return Ie("MuiAlert",t)}const Yoe=Te("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),zM=Yoe,Qoe=Rt(f.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Xoe=Rt(f.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Joe=Rt(f.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Zoe=Rt(f.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),eie=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],tie=t=>{const{variant:e,color:n,severity:o,classes:i}=t,r={root:["root",`${e}${le(n||o)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Oe(r,Koe,i)},nie=q(js,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${le(n.color||n.severity)}`]]}})(({theme:t,ownerState:e})=>{const n=t.palette.mode==="light"?sr:ar,o=t.palette.mode==="light"?ar:sr,i=e.color||e.severity;return S({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&e.variant==="standard"&&{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${i}StandardBg`]:o(t.palette[i].light,.9),[`& .${zM.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}},i&&e.variant==="outlined"&&{color:t.vars?t.vars.palette.Alert[`${i}Color`]:n(t.palette[i].light,.6),border:`1px solid ${(t.vars||t).palette[i].light}`,[`& .${zM.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}},i&&e.variant==="filled"&&S({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${i}FilledColor`],backgroundColor:t.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[i].dark:t.palette[i].main,color:t.palette.getContrastText(t.palette[i].main)}))}),oie=q("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),iie=q("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),VM=q("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),BM={success:f.jsx(Qoe,{fontSize:"inherit"}),warning:f.jsx(Xoe,{fontSize:"inherit"}),error:f.jsx(Joe,{fontSize:"inherit"}),info:f.jsx(Zoe,{fontSize:"inherit"})},rie=x.forwardRef(function(e,n){var o,i,r,s,a,l;const c=Pe({props:e,name:"MuiAlert"}),{action:u,children:d,className:h,closeText:p="Close",color:g,components:m={},componentsProps:b={},icon:v,iconMapping:y=BM,onClose:w,role:C="alert",severity:k="success",slotProps:P={},slots:M={},variant:_="standard"}=c,R=ce(c,eie),O=S({},c,{color:g,severity:k,variant:_}),I=tie(O),$=(o=(i=M.closeButton)!=null?i:m.CloseButton)!=null?o:at,F=(r=(s=M.closeIcon)!=null?s:m.CloseIcon)!=null?r:BD,E=(a=P.closeButton)!=null?a:b.closeButton,D=(l=P.closeIcon)!=null?l:b.closeIcon;return f.jsxs(nie,S({role:C,elevation:0,ownerState:O,className:me(I.root,h),ref:n},R,{children:[v!==!1?f.jsx(oie,{ownerState:O,className:I.icon,children:v||y[k]||BM[k]}):null,f.jsx(iie,{ownerState:O,className:I.message,children:d}),u!=null?f.jsx(VM,{ownerState:O,className:I.action,children:u}):null,u==null&&w?f.jsx(VM,{ownerState:O,className:I.action,children:f.jsx($,S({size:"small","aria-label":p,title:p,color:"inherit",onClick:w},E,{children:f.jsx(F,S({fontSize:"small"},D))}))}):null]}))}),qt=rie;function sie(t){return Ie("MuiAlertTitle",t)}Te("MuiAlertTitle",["root"]);const aie=["className"],lie=t=>{const{classes:e}=t;return Oe({root:["root"]},sie,e)},cie=q(An,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({fontWeight:t.typography.fontWeightMedium,marginTop:-2})),uie=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiAlertTitle"}),{className:i}=o,r=ce(o,aie),s=o,a=lie(s);return f.jsx(cie,S({gutterBottom:!0,component:"div",ownerState:s,ref:n,className:me(a.root,i)},r))}),die=uie;function hie(t){return Ie("MuiSwitch",t)}const fie=Te("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Jn=fie,pie=["className","color","edge","size","sx"],mie=t=>{const{classes:e,edge:n,size:o,color:i,checked:r,disabled:s}=t,a={root:["root",n&&`edge${le(n)}`,`size${le(o)}`],switchBase:["switchBase",`color${le(i)}`,r&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Oe(a,hie,e);return S({},e,l)},gie=q("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${le(n.edge)}`],e[`size${le(n.size)}`]]}})(({ownerState:t})=>S({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${Jn.thumb}`]:{width:16,height:16},[`& .${Jn.switchBase}`]:{padding:4,[`&.${Jn.checked}`]:{transform:"translateX(16px)"}}})),vie=q(u1,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Jn.input}`]:e.input},n.color!=="default"&&e[`color${le(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Jn.checked}`]:{transform:"translateX(20px)"},[`&.${Jn.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Jn.checked} + .${Jn.track}`]:{opacity:.5},[`&.${Jn.disabled} + .${Jn.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Jn.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>S({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Jn.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Le(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jn.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?ar(t.palette[e.color].main,.62):sr(t.palette[e.color].main,.55)}`}},[`&.${Jn.checked} + .${Jn.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),bie=q("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),yie=q("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),xie=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiSwitch"}),{className:i,color:r="primary",edge:s=!1,size:a="medium",sx:l}=o,c=ce(o,pie),u=S({},o,{color:r,edge:s,size:a}),d=mie(u),h=f.jsx(yie,{className:d.thumb,ownerState:u});return f.jsxs(gie,{className:me(d.root,i),sx:l,ownerState:u,children:[f.jsx(vie,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:S({},d,{root:d.switchBase})})),f.jsx(bie,{className:d.track,ownerState:u})]})}),wie=xie,Cie=["className","id"],Sie=t=>{const{classes:e}=t;return Oe({root:["root"]},lX,e)},kie=q(An,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),Pie=x.forwardRef(function(e,n){const o=Pe({props:e,name:"MuiDialogTitle"}),{className:i,id:r}=o,s=ce(o,Cie),a=o,l=Sie(a),{titleId:c=r}=x.useContext(i$);return f.jsx(kie,S({component:"h2",className:me(l.root,i),ownerState:a,ref:n,variant:"h6",id:r??c},s))}),xm=Pie;function Ue(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i{var e,n,o,i;return(i=(e=t.id)!==null&&e!==void 0?e:(o=(n=t.accessorKey)===null||n===void 0?void 0:n.toString)===null||o===void 0?void 0:o.call(n))!==null&&i!==void 0?i:t.header},wm=t=>{const e=[],n=o=>{o.forEach(i=>{i.columns?n(i.columns):e.push(i)})};return n(t),e},W$=({aggregationFns:t,columnDefs:e,columnFilterFns:n,defaultDisplayColumn:o,filterFns:i,sortingFns:r})=>e.map(s=>{var a,l;if(s.id||(s.id=Nl(s)),s.columnDefType||(s.columnDefType="data"),!((a=s.columns)===null||a===void 0)&&a.length)s.columnDefType="group",s.columns=W$({aggregationFns:t,columnDefs:s.columns,columnFilterFns:n,defaultDisplayColumn:o,filterFns:i,sortingFns:r});else if(s.columnDefType==="data"){if(Array.isArray(s.aggregationFn)){const c=s.aggregationFn;s.aggregationFn=(u,d,h)=>c.map(p=>{var g;return(g=t[p])===null||g===void 0?void 0:g.call(t,u,d,h)})}Object.keys(i).includes(n[s.id])&&(s.filterFn=(l=i[n[s.id]])!==null&&l!==void 0?l:i.fuzzy,s._filterFn=n[s.id]),Object.keys(r).includes(s.sortingFn)&&(s.sortingFn=r[s.sortingFn])}else s.columnDefType==="display"&&(s=Object.assign(Object.assign({},o),s));return s}),U$=(t,e,n)=>{t.getCanPin()&&t.pin(e.getIsPinned());const o=[...n];return o.splice(o.indexOf(e.id),0,o.splice(o.indexOf(t.id),1)[0]),o},cC=(t,e)=>!!(t.enableExpanding||t.enableGrouping&&(e===void 0||e!=null&&e.length)||t.renderDetailPanel),Mie=t=>{var e,n;return[t.enableRowPinning&&!(!((e=t.rowPinningDisplayMode)===null||e===void 0)&&e.startsWith("select"))&&"mrt-row-pin",(t.enableRowDragging||t.enableRowOrdering)&&"mrt-row-drag",t.positionActionsColumn==="first"&&(t.enableRowActions||t.enableEditing&&["modal","row"].includes((n=t.editDisplayMode)!==null&&n!==void 0?n:""))&&"mrt-row-actions",t.positionExpandColumn==="first"&&cC(t)&&"mrt-row-expand",t.enableRowSelection&&"mrt-row-select",t.enableRowNumbers&&"mrt-row-numbers"].filter(Boolean)},_ie=t=>{var e;return[t.positionActionsColumn==="last"&&(t.enableRowActions||t.enableEditing&&["modal","row"].includes((e=t.editDisplayMode)!==null&&e!==void 0?e:""))&&"mrt-row-actions",t.positionExpandColumn==="last"&&cC(t)&&"mrt-row-expand",t.layoutMode==="grid-no-grow"&&"mrt-row-spacer"].filter(Boolean)},q$=t=>{const e=Mie(t),n=_ie(t),o=wm(t.columns).map(i=>Nl(i)).filter(i=>!e.includes(i)&&!n.includes(i));return[...e,...o,...n]},Rie=t=>{var e;return t.filterVariant==="multi-select"?"arrIncludesSome":!((e=t.filterVariant)===null||e===void 0)&&e.includes("range")?"betweenInclusive":t.filterVariant==="select"||t.filterVariant==="checkbox"?"equals":"fuzzy"},Tie=(t,e)=>{const n=e.getLeftVisibleLeafColumns();return n.length?n[0].id===t.id:e.getVisibleLeafColumns()[0].id===t.id},Oie=(t,e)=>{const n=e.getRightVisibleLeafColumns(),o=e.getVisibleLeafColumns();return n.length?n[n.length-1].id===t.id:o[o.length-1].id===t.id},Iie=(t,e)=>e.getIsPinned()==="left"&&t.getLeftLeafHeaders().length-1===e.getPinnedIndex(),Eie=t=>t.getIsPinned()==="right"&&t.getPinnedIndex()===0,Die=(t,e)=>t.getRightLeafHeaders().slice(e.getPinnedIndex()+1).reduce((n,o)=>n+o.getSize(),0),G$=t=>{const{getState:e,options:n}=t,{enableGlobalFilterRankedResults:o,manualExpanding:i,manualFiltering:r,manualGrouping:s,manualSorting:a}=n,{expanded:l,globalFilterFn:c}=e();return!i&&!r&&!s&&!a&&o&&c==="fuzzy"&&l!==!0&&!Object.values(l).some(Boolean)},Se=(t,e)=>t instanceof Function?t(e):t,$ie=(t,e)=>vh(t,"mrt-row-create",e??Object.assign({},...wm(t.options.columns).map(n=>({[Nl(n)]:""}))),-1,0),K$=(t,e)=>{const n=dE(t);return e===void 0||(e>=0&&e=0&&e>t.endIndex+t.overscan&&n.push(e)),n};function Y$(){return{accessor:(t,e)=>typeof t=="function"?Object.assign(Object.assign({},e),{accessorFn:t}):Object.assign(Object.assign({},e),{accessorKey:t}),display:t=>t,group:t=>t}}const Zs=t=>{var e,n,o;let i="",r="";return t&&(typeof t!="object"?(i=t,r=t):(i=(n=(e=t.label)!==null&&e!==void 0?e:t.text)!==null&&n!==void 0?n:t.value,r=(o=t.value)!==null&&o!==void 0?o:i)),{label:i,value:r}},qu=t=>t.replace(/[^a-zA-Z0-9]/g,"_"),vi=(t,e)=>Object.assign({baseBackgroundColor:e.palette.mode==="dark"?ar(e.palette.background.default,.05):e.palette.background.default,draggingBorderColor:e.palette.primary.main,matchHighlightColor:e.palette.mode==="dark"?sr(e.palette.warning.dark,.25):ar(e.palette.warning.light,.5),pinnedRowBackgroundColor:Le(e.palette.primary.main,.1),selectedRowBackgroundColor:Le(e.palette.primary.main,.2)},Se(t.options.mrtTheme,e)),uC=({column:t,header:e,table:n,tableCellProps:o,theme:i})=>{var r,s,a,l,c,u,d,h;const{options:{layoutMode:p}}=n,g={minWidth:`max(calc(var(--${e?"header":"col"}-${qu((r=e==null?void 0:e.id)!==null&&r!==void 0?r:t.id)}-size) * 1px), ${(s=t.columnDef.minSize)!==null&&s!==void 0?s:30}px)`,width:`calc(var(--${e?"header":"col"}-${qu((a=e==null?void 0:e.id)!==null&&a!==void 0?a:t.id)}-size) * 1px${e?` + ${(c=(l=e==null?void 0:e.subHeaders)===null||l===void 0?void 0:l.length)!==null&&c!==void 0?c:0}rem`:""})`};return p==="grid"?g.flex=`var(--${e?"header":"col"}-${qu((u=e==null?void 0:e.id)!==null&&u!==void 0?u:t.id)}-size) 0 auto`:p==="grid-no-grow"&&(g.flex="0 0 auto"),Object.assign(Object.assign({backgroundColor:t.getIsPinned()&&t.columnDef.columnDefType!=="group"?Le(sr(vi(n,i).baseBackgroundColor,i.palette.mode==="dark"?.05:.01),.97):"inherit",backgroundImage:"inherit",boxShadow:Iie(n,t)?`-4px 0 8px -6px ${Le(i.palette.grey[700],.5)} inset`:Eie(t)?`4px 0 8px -6px ${Le(i.palette.grey[700],.5)} inset`:void 0,display:p!=null&&p.startsWith("grid")?"flex":void 0,left:t.getIsPinned()==="left"?`${t.getStart("left")}px`:void 0,opacity:((d=n.getState().draggingColumn)===null||d===void 0?void 0:d.id)===t.id||((h=n.getState().hoveredColumn)===null||h===void 0?void 0:h.id)===t.id?.5:1,position:t.getIsPinned()&&t.columnDef.columnDefType!=="group"?"sticky":void 0,right:t.getIsPinned()==="right"?`${Die(n,t)}px`:void 0,transition:n.options.enableColumnVirtualization?"none":"padding 150ms ease-in-out"},g),Se(o==null?void 0:o.sx,i))},Q$=({table:t,theme:e})=>({alignItems:"flex-start",backgroundColor:vi(t,e).baseBackgroundColor,display:"grid",flexWrap:"wrap-reverse",minHeight:"3.5rem",overflow:"hidden",position:"relative",transition:"all 150ms ease-in-out",zIndex:1}),Cf=t=>t.direction==="rtl"?{style:{transform:"scaleX(-1)"}}:void 0,I0=["string","number"],HM=({cell:t,rowRef:e,staticRowIndex:n,table:o})=>{var i,r,s;const{getState:a,options:{enableFilterMatchHighlighting:l}}=o,{column:c,row:u}=t,{columnDef:d}=c,{globalFilter:h,globalFilterFn:p}=a(),g=c.getFilterValue();let m=t.getIsAggregated()&&d.AggregatedCell?d.AggregatedCell({cell:t,column:c,row:u,table:o}):u.getIsGrouped()&&!t.getIsGrouped()?null:t.getIsGrouped()&&d.GroupedCell?d.GroupedCell({cell:t,column:c,row:u,table:o}):void 0;const b=m!==void 0;if(b||(m=t.renderValue()),l&&d.enableFilterMatchHighlighting!==!1&&String(m)&&I0.includes(typeof m)&&(g&&I0.includes(typeof g)&&["autocomplete","text"].includes(d.filterVariant)||h&&I0.includes(typeof h)&&c.getCanGlobalFilter())){const v=m0==null?void 0:m0({matchExactly:(g?d._filterFn:p)!=="fuzzy",query:((i=g??h)!==null&&i!==void 0?i:"").toString(),text:m==null?void 0:m.toString()});((v==null?void 0:v.length)>1||!((r=v==null?void 0:v[0])===null||r===void 0)&&r.match)&&(m=f.jsx("span",{"aria-label":m,role:"note",children:(s=v==null?void 0:v.map(({key:y,match:w,text:C})=>f.jsx(Xe,{"aria-hidden":"true",component:"span",sx:w?{backgroundColor:k=>vi(o,k).matchHighlightColor,borderRadius:"2px",color:k=>k.palette.mode==="dark"?k.palette.common.white:k.palette.common.black,padding:"2px 1px"}:void 0,children:C},y)))!==null&&s!==void 0?s:m}))}return d.Cell&&!b&&(m=d.Cell({cell:t,column:c,renderedCellValue:m,row:u,rowRef:e,staticRowIndex:n,table:o})),m},Fie=t=>{var e,{cell:n,table:o}=t,i=Ue(t,["cell","table"]);const{options:{localization:r,muiCopyButtonProps:s}}=o,{column:a,row:l}=n,{columnDef:c}=a,[u,d]=x.useState(!1),h=(g,m)=>{g.stopPropagation(),navigator.clipboard.writeText(m),d(!0),setTimeout(()=>d(!1),4e3)},p=Object.assign(Object.assign(Object.assign({},Se(s,{cell:n,column:a,row:l,table:o})),Se(c.muiCopyButtonProps,{cell:n,column:a,row:l,table:o})),i);return f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,placement:"top",title:(e=p==null?void 0:p.title)!==null&&e!==void 0?e:u?r.copiedToClipboard:r.clickToCopy,children:f.jsx(ii,Object.assign({onClick:g=>h(g,n.getValue()),size:"small",type:"button",variant:"text"},p,{sx:g=>Object.assign({backgroundColor:"transparent",border:"none",color:"inherit",cursor:"copy",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit",m:"-0.25rem",minWidth:"unset",textAlign:"inherit",textTransform:"inherit"},Se(p==null?void 0:p.sx,g)),title:void 0}))})},X$=t=>{var e,n,o,{cell:i,table:r}=t,s=Ue(t,["cell","table"]);const{getState:a,options:{createDisplayMode:l,editDisplayMode:c,muiEditTextFieldProps:u},refs:{editInputRefs:d},setCreatingRow:h,setEditingCell:p,setEditingRow:g}=r,{column:m,row:b}=i,{columnDef:v}=m,{creatingRow:y,editingRow:w}=a(),C=(y==null?void 0:y.id)===b.id,k=(w==null?void 0:w.id)===b.id,P=v.editVariant==="select",[M,_]=x.useState(()=>i.getValue()),R=Object.assign(Object.assign(Object.assign({},Se(u,{cell:i,column:m,row:b,table:r})),Se(v.muiEditTextFieldProps,{cell:i,column:m,row:b,table:r})),s),O=E=>{b._valuesCache[m.id]=E,C?h(b):k&&g(b)},I=E=>{var D;(D=R.onChange)===null||D===void 0||D.call(R,E),_(E.target.value),R!=null&&R.select&&O(E.target.value)},$=E=>{var D;(D=R.onBlur)===null||D===void 0||D.call(R,E),O(M),p(null)},F=E=>{var D,j;(D=R.onKeyDown)===null||D===void 0||D.call(R,E),E.key==="Enter"&&!E.shiftKey&&((j=d.current[m.id])===null||j===void 0||j.blur())};return v.Edit?f.jsx(f.Fragment,{children:(e=v.Edit)===null||e===void 0?void 0:e.call(v,{cell:i,column:m,row:b,table:r})}):f.jsx(Oa,Object.assign({disabled:Se(v.enableEditing,b)===!1,fullWidth:!0,inputRef:E=>{E&&(d.current[m.id]=E,R.inputRef&&(R.inputRef=E))},label:["custom","modal"].includes(C?l:c)?v.header:void 0,margin:"none",name:m.id,placeholder:["custom","modal"].includes(C?l:c)?void 0:v.header,select:P,size:"small",value:M,variant:"standard"},R,{InputProps:Object.assign(Object.assign(Object.assign({},R.variant!=="outlined"?{disableUnderline:c==="table"}:{}),R.InputProps),{sx:E=>{var D;return Object.assign({mb:0},Se((D=R==null?void 0:R.InputProps)===null||D===void 0?void 0:D.sx,E))}}),inputProps:Object.assign({autoComplete:"new-password"},R.inputProps),onBlur:$,onChange:I,onClick:E=>{var D;E.stopPropagation(),(D=R==null?void 0:R.onClick)===null||D===void 0||D.call(R,E)},onKeyDown:F,children:(n=R.children)!==null&&n!==void 0?n:(o=v==null?void 0:v.editSelectOptions)===null||o===void 0?void 0:o.map(E=>{const{label:D,value:j}=Zs(E);return f.jsx(sn,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:j,children:D},j)})}))},J$=t=>{var e,n,o,i,r,{cell:s,measureElement:a,numRows:l,rowRef:c,staticRowIndex:u,table:d,virtualColumnIndex:h}=t,p=Ue(t,["cell","measureElement","numRows","rowRef","staticRowIndex","table","virtualColumnIndex"]);const g=Dt(),{getState:m,options:{columnResizeDirection:b,columnResizeMode:v,createDisplayMode:y,editDisplayMode:w,enableClickToCopy:C,enableColumnOrdering:k,enableEditing:P,enableGrouping:M,layoutMode:_,muiSkeletonProps:R,muiTableBodyCellProps:O,positionExpandColumn:I},refs:{editInputRefs:$},setEditingCell:F,setHoveredColumn:E}=d,{columnSizingInfo:D,creatingRow:j,density:N,draggingColumn:A,draggingRow:L,editingCell:V,editingRow:W,hoveredColumn:Y,hoveredRow:se,isLoading:B,showSkeletons:U}=m(),{column:z,row:Q}=s,{columnDef:J}=z,{columnDefType:ee}=J,ie={cell:s,column:z,row:Q,table:d},ne=Object.assign(Object.assign(Object.assign({},Se(O,ie)),Se(J.muiTableBodyCellProps,ie)),p),oe=Se(R,{cell:s,column:z,row:Q,table:d}),{draggingBorderColor:H}=vi(d,g),[ue,he]=x.useState(100);x.useEffect(()=>{if(!B&&!U||ue!==100)return;const ke=z.getSize();he(ee==="display"?ke/2:Math.round(Math.random()*(ke-ke/3)+ke/3))},[B,U]);const pe=x.useMemo(()=>{const ke=(A==null?void 0:A.id)===z.id,_e=(Y==null?void 0:Y.id)===z.id,fe=(L==null?void 0:L.id)===Q.id,ae=(se==null?void 0:se.id)===Q.id,xe=Tie(z,d),we=Oie(z,d),be=l&&u===l-1,De=D.isResizingColumn===z.id,We=De&&v==="onChange",Ae=We?`2px solid ${H} !important`:ke||fe?`1px dashed ${g.palette.grey[500]} !important`:_e||ae||De?`2px dashed ${H} !important`:void 0;return We?b==="ltr"?{borderRight:Ae}:{borderLeft:Ae}:Ae?{borderBottom:fe||ae||be&&!De?Ae:void 0,borderLeft:ke||_e||(fe||ae)&&xe?Ae:void 0,borderRight:ke||_e||(fe||ae)&&we?Ae:void 0,borderTop:fe||ae?Ae:void 0}:void 0},[D.isResizingColumn,A,L,Y,se,u]),$e=!s.getIsPlaceholder()&&Se(P,Q)&&Se(J.enableEditing,Q)!==!1,re=$e&&!["custom","modal"].includes(w)&&(w==="table"||(W==null?void 0:W.id)===Q.id||(V==null?void 0:V.id)===s.id)&&!Q.getIsGrouped(),Ce=$e&&y==="row"&&(j==null?void 0:j.id)===Q.id,G=ke=>{var _e;(_e=ne==null?void 0:ne.onDoubleClick)===null||_e===void 0||_e.call(ne,ke),$e&&w==="cell"&&(F(s),queueMicrotask(()=>{var fe;const ae=$.current[z.id];ae&&(ae.focus(),(fe=ae.select)===null||fe===void 0||fe.call(ae))}))},X=ke=>{var _e;(_e=ne==null?void 0:ne.onDragEnter)===null||_e===void 0||_e.call(ne,ke),M&&(Y==null?void 0:Y.id)==="drop-zone"&&E(null),k&&A&&E(J.enableColumnOrdering!==!1?z:null)},ve={cell:s,table:d};return f.jsx(Kg,Object.assign({align:g.direction==="rtl"?"right":"left","data-index":h,ref:ke=>{ke&&(a==null||a(ke))}},ne,{onDoubleClick:G,onDragEnter:X,sx:ke=>Object.assign(Object.assign({"&:hover":{outline:w==="cell"&&$e||w==="table"&&(Ce||re)?`1px solid ${ke.palette.grey[500]}`:void 0,outlineOffset:"-1px",textOverflow:"clip"},alignItems:_!=null&&_.startsWith("grid")?"center":void 0,cursor:$e&&w==="cell"?"pointer":"inherit",justifyContent:_!=null&&_.startsWith("grid")?ne.align:void 0,overflow:"hidden",p:N==="compact"?ee==="display"?"0 0.5rem":"0.5rem":N==="comfortable"?ee==="display"?"0.5rem 0.75rem":"1rem":ee==="display"?"1rem 1.25rem":"1.5rem",textOverflow:ee!=="display"?"ellipsis":void 0,[ke.direction==="rtl"||I==="last"?"pr":"pl"]:z.id==="mrt-row-expand"?`${Q.depth+(N==="compact"?.5:N==="comfortable"?.75:1.25)}rem`:void 0,whiteSpace:Q.getIsPinned()||N==="compact"?"nowrap":"normal",zIndex:(A==null?void 0:A.id)===z.id?2:z.getIsPinned()?1:0},uC({column:z,table:d,tableCellProps:ne,theme:ke})),pe),children:(e=ne.children)!==null&&e!==void 0?e:f.jsxs(f.Fragment,{children:[s.getIsPlaceholder()?(o=(n=J.PlaceholderCell)===null||n===void 0?void 0:n.call(J,{cell:s,column:z,row:Q,table:d}))!==null&&o!==void 0?o:null:U!==!1&&(B||U)?f.jsx($3,Object.assign({animation:"wave",height:20,width:ue},oe)):ee==="display"&&(["mrt-row-expand","mrt-row-numbers","mrt-row-select"].includes(z.id)||!Q.getIsGrouped())?(i=J.Cell)===null||i===void 0?void 0:i.call(J,{cell:s,column:z,renderedCellValue:s.renderValue(),row:Q,rowRef:c,staticRowIndex:u,table:d}):Ce||re?f.jsx(X$,{cell:s,table:d}):(C||J.enableClickToCopy)&&J.enableClickToCopy!==!1?f.jsx(Fie,{cell:s,table:d,children:f.jsx(HM,Object.assign({},ve))}):f.jsx(HM,Object.assign({},ve)),s.getIsGrouped()&&!J.GroupedCell&&f.jsxs(f.Fragment,{children:[" (",(r=Q.subRows)===null||r===void 0?void 0:r.length,")"]})]})}))},jie=x.memo(J$,(t,e)=>e.cell===t.cell),Lie=t=>{var{parentRowRef:e,row:n,rowVirtualizer:o,staticRowIndex:i,table:r,virtualRow:s}=t,a=Ue(t,["parentRowRef","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const{getState:l,getVisibleLeafColumns:c,options:{enableRowVirtualization:u,layoutMode:d,muiDetailPanelProps:h,muiTableBodyRowProps:p,renderDetailPanel:g}}=r,{isLoading:m}=l(),b=Se(p,{isDetailPanel:!0,row:n,staticRowIndex:i,table:r}),v=Object.assign(Object.assign({},Se(h,{row:n,table:r})),a),y=!m&&(g==null?void 0:g({row:n,table:r}));return f.jsx(Gg,Object.assign({className:"Mui-TableBodyCell-DetailPanel","data-index":g?i*2+1:i,ref:w=>{var C;w&&((C=o==null?void 0:o.measureElement)===null||C===void 0||C.call(o,w))}},b,{sx:w=>{var C,k;return Object.assign({display:d!=null&&d.startsWith("grid")?"flex":void 0,position:s?"absolute":void 0,top:s?`${(k=(C=e.current)===null||C===void 0?void 0:C.getBoundingClientRect())===null||k===void 0?void 0:k.height}px`:void 0,transform:s?`translateY(${s==null?void 0:s.start}px)`:void 0,width:"100%"},Se(b==null?void 0:b.sx,w))},children:f.jsx(Kg,Object.assign({className:"Mui-TableBodyCell-DetailPanel",colSpan:c().length},v,{sx:w=>Object.assign({backgroundColor:s?vi(r,w).baseBackgroundColor:void 0,borderBottom:n.getIsExpanded()?void 0:"none",display:d!=null&&d.startsWith("grid")?"flex":void 0,py:y&&n.getIsExpanded()?"1rem":0,transition:u?void 0:"all 150ms ease-in-out",width:"100%"},Se(v==null?void 0:v.sx,w)),children:u?n.getIsExpanded()&&y:f.jsx(Ch,{in:!!n.getIsExpanded(),mountOnEnter:!0,unmountOnExit:!0,children:y})}))}))},xu=({columnVirtualizer:t,numRows:e,pinnedRowIds:n,row:o,rowVirtualizer:i,staticRowIndex:r,table:s,virtualRow:a})=>{var l,c,u,d;const h=Dt(),{getState:p,options:{enableRowOrdering:g,enableRowPinning:m,enableStickyFooter:b,enableStickyHeader:v,layoutMode:y,memoMode:w,muiTableBodyRowProps:C,renderDetailPanel:k,rowPinningDisplayMode:P},refs:{tableFooterRef:M,tableHeadRef:_},setHoveredRow:R}=s,{density:O,draggingColumn:I,draggingRow:$,editingCell:F,editingRow:E,hoveredRow:D,isFullScreen:j,rowPinning:N}=p(),{virtualColumns:A,virtualPaddingLeft:L,virtualPaddingRight:V}=t??{},W=m&&o.getIsPinned(),Y=($==null?void 0:$.id)===o.id,se=(D==null?void 0:D.id)===o.id,B=Se(C,{row:o,staticRowIndex:r,table:s}),[U,z]=x.useMemo(()=>!m||!(P!=null&&P.includes("sticky"))||!n||!o.getIsPinned()?[]:[[...n].reverse().indexOf(o.id),n.indexOf(o.id)],[n,N]),Q=(v||j)&&((l=_.current)===null||l===void 0?void 0:l.clientHeight)||0,J=b&&((c=M.current)===null||c===void 0?void 0:c.clientHeight)||0,ee=Se(B==null?void 0:B.sx,h),ie=O==="compact"?37:O==="comfortable"?53:69,oe=parseInt((d=(u=B==null?void 0:B.style)===null||u===void 0?void 0:u.height)!==null&&d!==void 0?d:ee==null?void 0:ee.height,10)||void 0||ie,H=re=>{g&&$&&R(o)},ue=x.useRef(null),{baseBackgroundColor:he,pinnedRowBackgroundColor:pe,selectedRowBackgroundColor:$e}=vi(s,h);return f.jsxs(f.Fragment,{children:[f.jsxs(Gg,Object.assign({"data-index":k?r*2:r,"data-pinned":!!W||void 0,"data-selected":o.getIsSelected()||o.getIsAllSubRowsSelected()||void 0,onDragEnter:H,ref:re=>{var Ce;re&&(ue.current=re,(Ce=i==null?void 0:i.measureElement)===null||Ce===void 0||Ce.call(i,re))},selected:o.getIsSelected()},B,{style:Object.assign({transform:a?`translateY(${a.start}px)`:void 0},B==null?void 0:B.style),sx:re=>Object.assign({"&:hover td":{backgroundColor:(B==null?void 0:B.hover)!==!1?o.getIsSelected()?`${Le($e,.3)}`:re.palette.mode==="dark"?`${ar(he,.05)}`:`${sr(he,.05)}`:void 0},backgroundColor:`${he} !important`,bottom:!a&&U!==void 0&&W?`${U*oe+(b?J-1:0)}px`:void 0,boxSizing:"border-box",display:y!=null&&y.startsWith("grid")?"flex":void 0,opacity:W?.97:Y||se?.5:1,position:a?"absolute":P!=null&&P.includes("sticky")&&W?"sticky":void 0,td:{backgroundColor:o.getIsSelected()?$e:W?pe:void 0},top:a?0:z!==void 0&&W?`${z*oe+(v||j?Q-1:0)}px`:void 0,transition:a?"none":"all 150ms ease-in-out",width:"100%",zIndex:P!=null&&P.includes("sticky")&&W?2:void 0},ee),children:[L?f.jsx("td",{style:{display:"flex",width:L}}):null,(A??o.getVisibleCells()).map(re=>{const Ce=t?o.getVisibleCells()[re.index]:re,G={cell:Ce,measureElement:!Y&&!se?t==null?void 0:t.measureElement:void 0,numRows:e,rowRef:ue,staticRowIndex:r,table:s,virtualColumnIndex:t?re.index:void 0};return Ce?w==="cells"&&Ce.column.columnDef.columnDefType==="data"&&!I&&!$&&(F==null?void 0:F.id)!==Ce.id&&(E==null?void 0:E.id)!==o.id?f.jsx(jie,Object.assign({},G),Ce.id):f.jsx(J$,Object.assign({},G),Ce.id):null}),V?f.jsx("td",{style:{display:"flex",width:V}}):null]})),k&&!o.getIsGrouped()&&f.jsx(Lie,{parentRowRef:ue,row:o,rowVirtualizer:i,staticRowIndex:r,table:s,virtualRow:a})]})},E0=x.memo(xu,(t,e)=>t.row===e.row&&t.staticRowIndex===e.staticRowIndex),Aie=t=>{var e,n,o,i,r,s,a,l;const{getState:c,options:{columnVirtualizerInstanceRef:u,columnVirtualizerOptions:d,enableColumnPinning:h,enableColumnVirtualization:p},refs:{tableContainerRef:g}}=t,{columnPinning:m,columnVisibility:b,draggingColumn:v}=c(),y=Se(d,{table:t}),[w,C]=x.useMemo(()=>p&&h?[t.getLeftLeafColumns().map(_=>_.getPinnedIndex()),t.getRightLeafColumns().map(_=>t.getVisibleLeafColumns().length-_.getPinnedIndex()-1).sort((_,R)=>_-R)]:[[],[]],[m,p,h]),k=x.useMemo(()=>{var _,R,O,I;if(!p||y!=null&&y.estimateSize)return 0;const $=(I=(O=(R=(_=t.getRowModel().rows[0])===null||_===void 0?void 0:_.getCenterVisibleCells())===null||R===void 0?void 0:R.slice(0,16))===null||O===void 0?void 0:O.map(F=>F.column.getSize()*1.2))!==null&&I!==void 0?I:[];return $.reduce((F,E)=>F+E,0)/$.length},[t.getRowModel().rows,m,b]),P=v!=null&&v.id?t.getVisibleLeafColumns().findIndex(_=>_.id===(v==null?void 0:v.id)):void 0,M=p?fE(Object.assign({count:t.getVisibleLeafColumns().length,estimateSize:()=>k,getScrollElement:()=>g.current,horizontal:!0,overscan:3,rangeExtractor:x.useCallback(_=>{const R=K$(_,P);return[...new Set([...w,...R,...C])]},[w,C,P])},y)):void 0;if(M){const _=M.getVirtualItems();M.virtualColumns=_,_.length&&(M.virtualPaddingLeft=((n=(e=_[w.length])===null||e===void 0?void 0:e.start)!==null&&n!==void 0?n:0)-((i=(o=_[w.length-1])===null||o===void 0?void 0:o.end)!==null&&i!==void 0?i:0),M.virtualPaddingRight=M.getTotalSize()-((s=(r=_[_.length-C.length-1])===null||r===void 0?void 0:r.end)!==null&&s!==void 0?s:0)-(C.length?M.getTotalSize()-((l=(a=_[_.length-C.length])===null||a===void 0?void 0:a.start)!==null&&l!==void 0?l:0):0)),u&&(u.current=M)}return M},dC=t=>{var e,n,{iconButtonProps:o,location:i,onDragEnd:r,onDragStart:s,table:a}=t,l=Ue(t,["iconButtonProps","location","onDragEnd","onDragStart","table"]);const{options:{icons:{DragHandleIcon:c},localization:u}}=a,d=Object.assign(Object.assign({},o),l);return f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,placement:"top",title:(e=d==null?void 0:d.title)!==null&&e!==void 0?e:u.move,children:f.jsx(at,Object.assign({"aria-label":(n=d.title)!==null&&n!==void 0?n:u.move,disableRipple:!0,draggable:"true",size:"small"},d,{onClick:h=>{var p;h.stopPropagation(),(p=d==null?void 0:d.onClick)===null||p===void 0||p.call(d,h)},onDragEnd:r,onDragStart:s,sx:h=>Object.assign({"&:active":{cursor:"grabbing"},"&:hover":{backgroundColor:"transparent",opacity:1},cursor:"grab",m:"0 -0.1rem",opacity:i==="row"?1:.3,p:"2px",transition:"all 150ms ease-in-out"},Se(d==null?void 0:d.sx,h)),title:void 0,children:f.jsx(c,{})}))})},Nie=t=>{var{row:e,rowRef:n,table:o}=t,i=Ue(t,["row","rowRef","table"]);const{options:{muiRowDragHandleProps:r}}=o,s=Object.assign(Object.assign({},Se(r,{row:e,table:o})),i),a=c=>{var u;(u=s==null?void 0:s.onDragStart)===null||u===void 0||u.call(s,c);try{c.dataTransfer.setDragImage(n.current,0,0)}catch(d){console.error(d)}o.setDraggingRow(e)},l=c=>{var u;(u=s==null?void 0:s.onDragEnd)===null||u===void 0||u.call(s,c),o.setDraggingRow(null),o.setHoveredRow(null)};return f.jsx(dC,{iconButtonProps:s,location:"row",onDragEnd:l,onDragStart:a,table:o})},D0=t=>{var{pinningPosition:e,row:n,table:o}=t,i=Ue(t,["pinningPosition","row","table"]);const{options:{icons:{CloseIcon:r,PushPinIcon:s},localization:a,rowPinningDisplayMode:l}}=o,c=n.getIsPinned(),[u,d]=x.useState(!1),h=p=>{d(!1),p.stopPropagation(),n.pin(c?!1:e)};return f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,open:u,title:c?a.unpin:a.pin,children:f.jsx(at,Object.assign({"aria-label":a.pin,onClick:h,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),size:"small"},i,{sx:p=>Object.assign({height:"24px",width:"24px"},Se(i==null?void 0:i.sx,p)),children:c?f.jsx(r,{}):f.jsx(s,{fontSize:"small",style:{transform:`rotate(${l==="sticky"?135:e==="top"?180:0}deg)`}})}))})},zie=t=>{var{row:e,table:n}=t,o=Ue(t,["row","table"]);const{getState:i,options:{enableRowPinning:r,rowPinningDisplayMode:s}}=n,{density:a}=i();if(!Se(r,e))return null;const c=Object.assign({row:e,table:n},o);return s==="top-and-bottom"&&!e.getIsPinned()?f.jsxs(Xe,{sx:{display:"flex",flexDirection:a==="compact"?"row":"column"},children:[f.jsx(D0,Object.assign({pinningPosition:"top"},c)),f.jsx(D0,Object.assign({pinningPosition:"bottom"},c))]}):f.jsx(D0,Object.assign({pinningPosition:s==="bottom"?"bottom":"top"},c))},Vie=t=>{var e,n,{table:o}=t,i=Ue(t,["table"]);const{getCanSomeRowsExpand:r,getIsAllRowsExpanded:s,getIsSomeRowsExpanded:a,getState:l,options:{icons:{KeyboardDoubleArrowDownIcon:c},localization:u,muiExpandAllButtonProps:d,renderDetailPanel:h},toggleAllRowsExpanded:p}=o,{density:g,isLoading:m}=l(),b=Object.assign(Object.assign({},Se(d,{table:o})),i),v=s();return f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,title:(e=b==null?void 0:b.title)!==null&&e!==void 0?e:v?u.collapseAll:u.expandAll,children:f.jsx("span",{children:f.jsx(at,Object.assign({"aria-label":u.expandAll,disabled:m||!h&&!r(),onClick:()=>p(!v)},b,{sx:y=>Object.assign({height:g==="compact"?"1.75rem":"2.25rem",mt:g!=="compact"?"-0.25rem":void 0,width:g==="compact"?"1.75rem":"2.25rem"},Se(b==null?void 0:b.sx,y)),title:void 0,children:(n=b==null?void 0:b.children)!==null&&n!==void 0?n:f.jsx(c,{style:{transform:`rotate(${v?-180:a()?-90:0}deg)`,transition:"transform 150ms"}})}))})})},WM=({row:t,table:e})=>{var n,o;const i=Dt(),{getState:r,options:{icons:{ExpandMoreIcon:s},localization:a,muiExpandButtonProps:l,positionExpandColumn:c,renderDetailPanel:u}}=e,{density:d}=r(),h=Se(l,{row:t,table:e}),p=t.getCanExpand(),g=t.getIsExpanded(),m=v=>{var y;v.stopPropagation(),t.toggleExpanded(),(y=h==null?void 0:h.onClick)===null||y===void 0||y.call(h,v)},b=!!(u!=null&&u({row:t,table:e}));return f.jsx(ft,{disableHoverListener:!p&&!b,enterDelay:1e3,enterNextDelay:1e3,title:(n=h==null?void 0:h.title)!==null&&n!==void 0?n:g?a.collapse:a.expand,children:f.jsx("span",{children:f.jsx(at,Object.assign({"aria-label":a.expand,disabled:!p&&!b},h,{onClick:m,sx:v=>Object.assign({height:d==="compact"?"1.75rem":"2.25rem",opacity:!p&&!b?.3:1,width:d==="compact"?"1.75rem":"2.25rem"},Se(h==null?void 0:h.sx,v)),title:void 0,children:(o=h==null?void 0:h.children)!==null&&o!==void 0?o:f.jsx(s,{style:{transform:`rotate(${!p&&!u?c==="last"||i.direction==="rtl"?90:-90:g?-180:0}deg)`,transition:"transform 150ms"}})}))})})},jd=t=>{var{row:e,table:n,variant:o="icon"}=t,i=Ue(t,["row","table","variant"]);const{getState:r,options:{icons:{CancelIcon:s,SaveIcon:a},localization:l,onCreatingRowCancel:c,onCreatingRowSave:u,onEditingRowCancel:d,onEditingRowSave:h},refs:{editInputRefs:p},setCreatingRow:g,setEditingRow:m}=n,{creatingRow:b,editingRow:v,isSaving:y}=r(),w=(b==null?void 0:b.id)===e.id,C=(v==null?void 0:v.id)===e.id,k=()=>{w?(c==null||c({row:e,table:n}),g(null)):C&&(d==null||d({row:e,table:n}),m(null)),e._valuesCache={}},P=()=>{var M;(M=Object.values(p==null?void 0:p.current).filter(_=>{var R,O;return e.id===((O=(R=_==null?void 0:_.name)===null||R===void 0?void 0:R.split("_"))===null||O===void 0?void 0:O[0])}))===null||M===void 0||M.forEach(_=>{_.value!==void 0&&Object.hasOwn(e==null?void 0:e._valuesCache,_.name)&&(e._valuesCache[_.name]=_.value)}),w?u==null||u({exitCreatingMode:()=>g(null),row:e,table:n,values:e._valuesCache}):C&&(h==null||h({exitEditingMode:()=>m(null),row:e,table:n,values:e==null?void 0:e._valuesCache}))};return f.jsx(Xe,{onClick:M=>M.stopPropagation(),sx:M=>Object.assign({display:"flex",gap:"0.75rem"},Se(i==null?void 0:i.sx,M)),children:o==="icon"?f.jsxs(f.Fragment,{children:[f.jsx(ft,{title:l.cancel,children:f.jsx(at,{"aria-label":l.cancel,onClick:k,children:f.jsx(s,{})})}),(w&&u||C&&h)&&f.jsx(ft,{title:l.save,children:f.jsx(at,{"aria-label":l.save,color:"info",onClick:P,children:y?f.jsx(Ey,{size:18}):f.jsx(a,{})})})]}):f.jsxs(f.Fragment,{children:[f.jsx(ii,{onClick:k,sx:{minWidth:"100px"},children:l.cancel}),f.jsxs(ii,{onClick:P,sx:{minWidth:"100px"},variant:"contained",children:[y&&f.jsx(Ey,{color:"inherit",size:18}),l.save]})]})})},Bie=t=>[{divider:!1,label:t.filterFuzzy,option:"fuzzy",symbol:"≈"},{divider:!1,label:t.filterContains,option:"contains",symbol:"*"},{divider:!1,label:t.filterStartsWith,option:"startsWith",symbol:"a"},{divider:!0,label:t.filterEndsWith,option:"endsWith",symbol:"z"},{divider:!1,label:t.filterEquals,option:"equals",symbol:"="},{divider:!0,label:t.filterNotEquals,option:"notEquals",symbol:"≠"},{divider:!1,label:t.filterBetween,option:"between",symbol:"⇿"},{divider:!0,label:t.filterBetweenInclusive,option:"betweenInclusive",symbol:"⬌"},{divider:!1,label:t.filterGreaterThan,option:"greaterThan",symbol:">"},{divider:!1,label:t.filterGreaterThanOrEqualTo,option:"greaterThanOrEqualTo",symbol:"≥"},{divider:!1,label:t.filterLessThan,option:"lessThan",symbol:"<"},{divider:!0,label:t.filterLessThanOrEqualTo,option:"lessThanOrEqualTo",symbol:"≤"},{divider:!1,label:t.filterEmpty,option:"empty",symbol:"∅"},{divider:!1,label:t.filterNotEmpty,option:"notEmpty",symbol:"!∅"}],Sf=["between","betweenInclusive","inNumberRange"],$0=["empty","notEmpty"],Hie=["arrIncludesSome","arrIncludesAll","arrIncludes"],Wie=["range-slider","date-range","datetime-range","range"],hC=t=>{var e,n,o,i,{anchorEl:r,header:s,onSelect:a,setAnchorEl:l,setFilterValue:c,table:u}=t,d=Ue(t,["anchorEl","header","onSelect","setAnchorEl","setFilterValue","table"]);const{getState:h,options:{columnFilterModeOptions:p,globalFilterModeOptions:g,localization:m,renderColumnFilterModeMenuItems:b,renderGlobalFilterModeMenuItems:v},setColumnFilterFns:y,setGlobalFilterFn:w}=u,{density:C,globalFilterFn:k}=h(),{column:P}=s??{},{columnDef:M}=P??{},_=P==null?void 0:P.getFilterValue();let R=(e=M==null?void 0:M.columnFilterModeOptions)!==null&&e!==void 0?e:p;Wie.includes(M==null?void 0:M.filterVariant)&&(R=[...Sf,...R??[]].filter(F=>Sf.includes(F)));const O=x.useMemo(()=>Bie(m).filter(F=>M?R===void 0||(R==null?void 0:R.includes(F.option)):(!g||g.includes(F.option))&&["contains","fuzzy","startsWith"].includes(F.option)),[]),I=F=>{var E,D;const j=(E=M==null?void 0:M._filterFn)!==null&&E!==void 0?E:"";!s||!P?w(F):F!==j&&(y(N=>Object.assign(Object.assign({},N),{[s.id]:F})),$0.includes(F)?_!==" "&&!$0.includes(j)?P.setFilterValue(" "):_&&P.setFilterValue(_):(M==null?void 0:M.filterVariant)==="multi-select"||Hie.includes(F)?_ instanceof String||_!=null&&_.length?(P.setFilterValue([]),c==null||c([])):_&&P.setFilterValue(_):!((D=M==null?void 0:M.filterVariant)===null||D===void 0)&&D.includes("range")||Sf.includes(F)?!Array.isArray(_)||!(_!=null&&_.every(N=>N===""))&&!Sf.includes(j)?(P.setFilterValue(["",""]),c==null||c("")):P.setFilterValue(_):Array.isArray(_)?(P.setFilterValue(""),c==null||c("")):_===" "&&$0.includes(j)?P.setFilterValue(void 0):P.setFilterValue(_)),l(null),a==null||a()},$=s&&M?M._filterFn:k;return f.jsx(wh,Object.assign({MenuListProps:{dense:C==="compact"},anchorEl:r,anchorOrigin:{horizontal:"right",vertical:"center"},onClose:()=>l(null),open:!!r},d,{children:(i=s&&P&&M?(o=(n=M.renderColumnFilterModeMenuItems)===null||n===void 0?void 0:n.call(M,{column:P,internalFilterOptions:O,onSelectFilterMode:I,table:u}))!==null&&o!==void 0?o:b==null?void 0:b({column:P,internalFilterOptions:O,onSelectFilterMode:I,table:u}):v==null?void 0:v({internalFilterOptions:O,onSelectFilterMode:I,table:u}))!==null&&i!==void 0?i:O.map(({divider:F,label:E,option:D,symbol:j},N)=>f.jsxs(sn,{divider:F,onClick:()=>I(D),selected:D===$,sx:{alignItems:"center",display:"flex",gap:"2ch",my:0,py:"6px"},value:D,children:[f.jsx(Xe,{sx:{fontSize:"1.25rem",width:"2ch"},children:j}),E]},N))}))},So={alignItems:"center",justifyContent:"space-between",my:0,py:"6px"},ko={alignItems:"center",display:"flex"},Uie=t=>{var e,n,o,i,r,s,a,l,c,u,{anchorEl:d,header:h,setAnchorEl:p,table:g}=t,m=Ue(t,["anchorEl","header","setAnchorEl","table"]);const{getState:b,options:{columnFilterDisplayMode:v,columnFilterModeOptions:y,enableColumnFilterModes:w,enableColumnFilters:C,enableColumnPinning:k,enableColumnResizing:P,enableGrouping:M,enableHiding:_,enableSorting:R,enableSortingRemoval:O,icons:{ArrowRightIcon:I,ClearAllIcon:$,DynamicFeedIcon:F,FilterListIcon:E,FilterListOffIcon:D,PushPinIcon:j,RestartAltIcon:N,SortIcon:A,ViewColumnIcon:L,VisibilityOffIcon:V},localization:W,renderColumnActionsMenuItems:Y},refs:{filterInputRefs:se},setColumnFilterFns:B,setColumnOrder:U,setColumnSizingInfo:z,setShowColumnFilters:Q,toggleAllColumnsVisible:J}=g,{column:ee}=h,{columnDef:ie}=ee,{columnSizing:ne,columnVisibility:oe,density:H,showColumnFilters:ue}=b(),he=ee.getFilterValue(),[pe,$e]=x.useState(null),re=()=>{ee.clearSorting(),p(null)},Ce=()=>{ee.toggleSorting(!1),p(null)},G=()=>{ee.toggleSorting(!0),p(null)},X=()=>{z(ge=>Object.assign(Object.assign({},ge),{isResizingColumn:!1})),ee.resetSize(),p(null)},ve=()=>{ee.toggleVisibility(!1),p(null)},ke=ge=>{ee.pin(ge),p(null)},_e=()=>{ee.toggleGrouping(),U(ge=>["mrt-row-expand",...ge]),p(null)},fe=()=>{ee.setFilterValue(void 0),p(null),["empty","notEmpty"].includes(ie._filterFn)&&B(ge=>{var Ne;return Object.assign(Object.assign({},ge),{[h.id]:(Ne=De==null?void 0:De[0])!==null&&Ne!==void 0?Ne:"fuzzy"})})},ae=()=>{Q(!0),queueMicrotask(()=>{var ge;return(ge=se.current[`${ee.id}-0`])===null||ge===void 0?void 0:ge.focus()}),p(null)},xe=()=>{J(!0),p(null)},we=ge=>{ge.stopPropagation(),$e(ge.currentTarget)},be=!!ie.filterSelectOptions,De=(e=ie==null?void 0:ie.columnFilterModeOptions)!==null&&e!==void 0?e:y,We=w&&ie.enableColumnFilterModes!==!1&&!be&&(De===void 0||!!(De!=null&&De.length)),Ae=[...R&&ee.getCanSort()?[O!==!1&&f.jsx(sn,{disabled:!ee.getIsSorted(),onClick:re,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx($,{})}),W.clearSort]})},0),f.jsx(sn,{disabled:ee.getIsSorted()==="asc",onClick:Ce,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(A,{style:{transform:"rotate(180deg) scaleX(-1)"}})}),(n=W.sortByColumnAsc)===null||n===void 0?void 0:n.replace("{column}",String(ie.header))]})},1),f.jsx(sn,{disabled:ee.getIsSorted()==="desc",divider:C||M||_,onClick:G,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(A,{})}),(o=W.sortByColumnDesc)===null||o===void 0?void 0:o.replace("{column}",String(ie.header))]})},2)]:[],...C&&ee.getCanFilter()?[f.jsx(sn,{disabled:!he||Array.isArray(he)&&!he.filter(ge=>ge).length,onClick:fe,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(D,{})}),W.clearFilter]})},3),v==="subheader"&&f.jsxs(sn,{disabled:ue&&!w,divider:M||_,onClick:ue?we:ae,sx:So,children:[f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(E,{})}),(i=W.filterByColumn)===null||i===void 0?void 0:i.replace("{column}",String(ie.header))]}),We&&f.jsx(at,{onClick:we,onMouseEnter:we,size:"small",sx:{p:0},children:f.jsx(I,{})})]},4),We&&f.jsx(hC,{anchorEl:pe,header:h,onSelect:ae,setAnchorEl:$e,table:g},5)].filter(Boolean):[],...M&&ee.getCanGroup()?[f.jsx(sn,{divider:k,onClick:_e,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(F,{})}),(r=W[ee.getIsGrouped()?"ungroupByColumn":"groupByColumn"])===null||r===void 0?void 0:r.replace("{column}",String(ie.header))]})},6)]:[],...k&&ee.getCanPin()?[f.jsx(sn,{disabled:ee.getIsPinned()==="left"||!ee.getCanPin(),onClick:()=>ke("left"),sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(j,{style:{transform:"rotate(90deg)"}})}),W.pinToLeft]})},7),f.jsx(sn,{disabled:ee.getIsPinned()==="right"||!ee.getCanPin(),onClick:()=>ke("right"),sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(j,{style:{transform:"rotate(-90deg)"}})}),W.pinToRight]})},8),f.jsx(sn,{disabled:!ee.getIsPinned(),divider:_,onClick:()=>ke(!1),sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(j,{})}),W.unpin]})},9)]:[],...P&&ee.getCanResize()?[f.jsx(sn,{disabled:!ne[ee.id],onClick:X,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(N,{})}),W.resetColumnSize]})},10)]:[],..._?[f.jsx(sn,{disabled:!ee.getCanHide(),onClick:ve,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(V,{})}),(s=W.hideColumn)===null||s===void 0?void 0:s.replace("{column}",String(ie.header))]})},11),f.jsx(sn,{disabled:!Object.values(oe).filter(ge=>!ge).length,onClick:xe,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(L,{})}),(a=W.showAllColumns)===null||a===void 0?void 0:a.replace("{column}",String(ie.header))]})},12)]:[]].filter(Boolean);return f.jsx(wh,Object.assign({MenuListProps:{dense:H==="compact"},anchorEl:d,onClose:()=>p(null),open:!!d},m,{children:(u=(c=(l=ie.renderColumnActionsMenuItems)===null||l===void 0?void 0:l.call(ie,{closeMenu:()=>p(null),column:ee,internalColumnMenuItems:Ae,table:g}))!==null&&c!==void 0?c:Y==null?void 0:Y({closeMenu:()=>p(null),column:ee,internalColumnMenuItems:Ae,table:g}))!==null&&u!==void 0?u:Ae}))},qie=t=>{var{anchorEl:e,handleEdit:n,row:o,setAnchorEl:i,table:r}=t,s=Ue(t,["anchorEl","handleEdit","row","setAnchorEl","table"]);const{getState:a,options:{editDisplayMode:l,enableEditing:c,icons:{EditIcon:u},localization:d,renderRowActionMenuItems:h}}=r,{density:p}=a();return f.jsxs(wh,Object.assign({MenuListProps:{dense:p==="compact"},anchorEl:e,onClick:g=>g.stopPropagation(),onClose:()=>i(null),open:!!e},s,{children:[Se(c,o)&&["modal","row"].includes(l)&&f.jsx(sn,{onClick:n,sx:So,children:f.jsxs(Xe,{sx:ko,children:[f.jsx(Co,{children:f.jsx(u,{})}),d.edit]})}),h==null?void 0:h({closeMenu:()=>i(null),row:o,table:r})]}))},UM={"&:hover":{opacity:1},height:"2rem",ml:"10px",opacity:.5,transition:"opacity 150ms",width:"2rem"},Gie=t=>{var{cell:e,row:n,table:o}=t,i=Ue(t,["cell","row","table"]);const{getState:r,options:{createDisplayMode:s,editDisplayMode:a,enableEditing:l,icons:{EditIcon:c,MoreHorizIcon:u},localization:d,renderRowActionMenuItems:h,renderRowActions:p},setEditingRow:g}=o,{creatingRow:m,editingRow:b}=r(),v=(m==null?void 0:m.id)===n.id,y=(b==null?void 0:b.id)===n.id,w=v&&s==="row"||y&&a==="row",[C,k]=x.useState(null),P=_=>{_.stopPropagation(),_.preventDefault(),k(_.currentTarget)},M=_=>{_.stopPropagation(),g(Object.assign({},n)),k(null)};return f.jsx(f.Fragment,{children:p&&!w?p({cell:e,row:n,table:o}):w?f.jsx(jd,{row:n,table:o}):!h&&Se(l,n)&&["modal","row"].includes(a)?f.jsx(ft,{placement:"right",title:d.edit,children:f.jsx(at,Object.assign({"aria-label":d.edit,onClick:M,sx:UM},i,{children:f.jsx(c,{})}))}):h?f.jsxs(f.Fragment,{children:[f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,title:d.rowActions,children:f.jsx(at,Object.assign({"aria-label":d.rowActions,onClick:P,size:"small",sx:UM},i,{children:f.jsx(u,{})}))}),f.jsx(qie,{anchorEl:C,handleEdit:M,row:n,setAnchorEl:k,table:o})]}):null})},Ny=t=>{var e,{row:n,selectAll:o,staticRowIndex:i,table:r}=t,s=Ue(t,["row","selectAll","staticRowIndex","table"]);const{getState:a,options:{enableMultiRowSelection:l,enableRowPinning:c,localization:u,muiSelectAllCheckboxProps:d,muiSelectCheckboxProps:h,rowPinningDisplayMode:p,selectAllMode:g}}=r,{density:m,isLoading:b}=a(),v=Object.assign(Object.assign({},n?Se(h,{row:n,staticRowIndex:i,table:r}):Se(d,{table:r})),s),y=c&&(p==null?void 0:p.includes("select")),w=o?g==="page"?r.getIsAllPageRowsSelected():r.getIsAllRowsSelected():void 0,C=(M,_)=>{var R;_.getIsAllSubRowsSelected()&&_.getCanSelectSubRows()&&((R=_.subRows)===null||R===void 0||R.forEach(O=>O.toggleSelected(!1))),_.getToggleSelectedHandler()(M),y&&_.pin(!_.getIsPinned()&&M.target.checked?p!=null&&p.includes("bottom")?"bottom":"top":!1)},k=M=>{g==="all"?r.getToggleAllRowsSelectedHandler()(M):r.getToggleAllPageRowsSelectedHandler()(M),y&&r.setRowPinning({bottom:[],top:[]})},P=Object.assign(Object.assign({"aria-label":o?u.toggleSelectAll:u.toggleSelectRow,checked:o?w:(n==null?void 0:n.getIsSelected())||(n==null?void 0:n.getIsAllSubRowsSelected())&&n.getCanSelectSubRows(),disabled:b||n&&!n.getCanSelect()||(n==null?void 0:n.id)==="mrt-row-create",inputProps:{"aria-label":o?u.toggleSelectAll:u.toggleSelectRow},onChange:M=>{M.stopPropagation(),n?C(M,n):k(M)},size:m==="compact"?"small":"medium"},v),{onClick:M=>{var _;M.stopPropagation(),(_=v==null?void 0:v.onClick)===null||_===void 0||_.call(v,M)},sx:M=>Object.assign({height:m==="compact"?"1.75rem":"2.5rem",m:m!=="compact"?"-0.4rem":void 0,width:m==="compact"?"1.75rem":"2.5rem",zIndex:0},Se(v==null?void 0:v.sx,M)),title:void 0});return f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,title:(e=v==null?void 0:v.title)!==null&&e!==void 0?e:o?u.toggleSelectAll:u.toggleSelectRow,children:l===!1?f.jsx(lG,Object.assign({},P)):f.jsx(d1,Object.assign({indeterminate:o?r.getIsSomeRowsSelected()&&!w:(n==null?void 0:n.getIsSomeSelected())&&n.getCanSelectSubRows()},P))})},Kie=t=>{var e,n,o,i;const{columnOrder:r,creatingRow:s,grouping:a,tableOptions:l}=t,c=(n=(e=l.state)===null||e===void 0?void 0:e.columnOrder)!==null&&n!==void 0?n:r;return x.useMemo(()=>[Yie,Qie,Xie,Jie,Zie,ere,tre].map(u=>u(t,c)).filter(Boolean),[r,s,a,l.displayColumnDefOptions,l.editDisplayMode,l.enableColumnDragging,l.enableColumnFilterModes,l.enableColumnOrdering,l.enableEditing,l.enableExpandAll,l.enableExpanding,l.enableGrouping,l.enableRowActions,l.enableRowDragging,l.enableRowNumbers,l.enableRowOrdering,l.enableRowSelection,l.enableSelectAll,l.groupedColumnMode,l.localization,l.positionActionsColumn,l.positionExpandColumn,l.renderDetailPanel,l.renderRowActionMenuItems,l.renderRowActions,(o=l.state)===null||o===void 0?void 0:o.columnOrder,(i=l.state)===null||i===void 0?void 0:i.grouping])};function Ga({defaultDisplayColumn:t,displayColumnDefOptions:e,localization:n},o,i,r=60){return Object.assign(Object.assign(Object.assign(Object.assign({},t),{header:i?n[i]:"",size:r}),e==null?void 0:e[o]),{id:o})}function Yie({tableOptions:t},e){const n="mrt-row-pin";return e.includes(n)?Object.assign({Cell:({row:o,table:i})=>f.jsx(zie,{row:o,table:i})},Ga(t,n,"pin")):null}function Qie({tableOptions:t},e){const n="mrt-row-drag";return e.includes(n)?Object.assign({Cell:({row:o,rowRef:i,table:r})=>f.jsx(Nie,{row:o,rowRef:i,table:r})},Ga(t,n,"move")):null}function Xie({creatingRow:t,tableOptions:e},n){const o="mrt-row-actions";return n.includes(o)||t&&e.createDisplayMode==="row"?Object.assign({Cell:({cell:i,row:r,table:s})=>f.jsx(Gie,{cell:i,row:r,table:s})},Ga(e,o,"actions")):null}function Jie({grouping:t,tableOptions:e},n){var o,i,r;const s="mrt-row-expand";if(n.includes(s)&&cC(e,(i=(o=e.state)===null||o===void 0?void 0:o.grouping)!==null&&i!==void 0?i:t)){const a=e.positionExpandColumn==="last"?{align:"right"}:void 0;return Object.assign({Cell:({cell:l,column:c,row:u,table:d})=>{var h,p,g;const m={row:u,table:d},b=(h=u.subRows)===null||h===void 0?void 0:h.length;return e.groupedColumnMode==="remove"&&u.groupingColumnId?f.jsxs(Sh,{alignItems:"center",flexDirection:"row",gap:"0.25rem",children:[f.jsx(WM,Object.assign({},m)),f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,placement:"right",title:d.getColumn(u.groupingColumnId).columnDef.header,children:f.jsx("span",{children:u.groupingValue})}),!!b&&f.jsxs("span",{children:["(",b,")"]})]}):f.jsxs(f.Fragment,{children:[f.jsx(WM,Object.assign({},m)),(g=(p=c.columnDef).GroupedCell)===null||g===void 0?void 0:g.call(p,{cell:l,column:c,row:u,table:d})]})},Header:e.enableExpandAll?({table:l})=>f.jsxs(f.Fragment,{children:[f.jsx(Vie,{table:l}),e.groupedColumnMode==="remove"&&t.map(c=>l.getColumn(c).columnDef.header).join(", ")]}):void 0,muiTableBodyCellProps:a,muiTableHeadCellProps:a},Ga(e,s,"expand",e.groupedColumnMode==="remove"?(r=e==null?void 0:e.defaultColumn)===null||r===void 0?void 0:r.size:60))}return null}function Zie({tableOptions:t},e){const n="mrt-row-select";return e.includes(n)?Object.assign({Cell:({row:o,staticRowIndex:i,table:r})=>f.jsx(Ny,{row:o,staticRowIndex:i,table:r}),Header:t.enableSelectAll&&t.enableMultiRowSelection?({table:o})=>f.jsx(Ny,{selectAll:!0,table:o}):void 0},Ga(t,n,"select")):null}function ere({tableOptions:t},e){const n="mrt-row-numbers";return e.includes(n)||t.enableRowNumbers?Object.assign({Cell:({row:o,staticRowIndex:i})=>{var r;return((r=t.rowNumberDisplayMode==="static"?i:o.index)!==null&&r!==void 0?r:0)+1},Header:()=>t.localization.rowNumber},Ga(t,n,"rowNumbers")):null}const F0={children:null,sx:{flex:"1 0 auto",minWidth:0,p:0,width:0}};function tre({tableOptions:t},e){const n="mrt-row-spacer";return e.includes(n)?Object.assign(Object.assign(Object.assign({},Ga(t,n,void 0,0)),lF),{muiTableBodyCellProps:F0,muiTableFooterCellProps:F0,muiTableHeadCellProps:F0}):null}const nre=t=>{const{getIsSomeRowsPinned:e,getState:n,options:{enablePagination:o,enableRowPinning:i,rowCount:r}}=t,{density:s,globalFilter:a,isFullScreen:l,isLoading:c,pagination:u,showSkeletons:d,sorting:h}=n(),p=x.useReducer(()=>({}),{})[1],g=x.useRef(!1),m=x.useRef(),b=x.useRef();x.useEffect(()=>{typeof window<"u"&&(m.current=document.body.style.height)},[]),x.useEffect(()=>{if(g&&typeof window<"u")if(l)b.current=document.body.getBoundingClientRect().top,document.body.style.height="100vh";else{if(document.body.style.height=m.current,!b.current)return;window.scrollTo({behavior:"instant",top:-1*b.current})}g.current=!0},[l]),x.useEffect(()=>{if(!o||c||d)return;const{pageIndex:y,pageSize:w}=u,C=r??t.getPrePaginationRowModel().rows.length;y*w>C&&t.setPageIndex(Math.floor(C/w))},[r,t.getPrePaginationRowModel().rows.length]);const v=x.useRef(h);x.useEffect(()=>{h.length&&(v.current=h)},[h]),x.useEffect(()=>{G$(t)&&(a?t.setSorting([]):t.setSorting(()=>v.current||[]))},[a]),x.useEffect(()=>{i&&e()&&setTimeout(()=>{p()},150)},[s])},ore=(t,e)=>{var n;const{getRowModel:o,getState:i,options:{enableRowVirtualization:r,renderDetailPanel:s,rowVirtualizerInstanceRef:a,rowVirtualizerOptions:l},refs:{tableContainerRef:c}}=t,{density:u,draggingRow:d,expanded:h}=i(),p=Se(l,{table:t}),g=(n=e==null?void 0:e.length)!==null&&n!==void 0?n:o().rows.length,m=u==="compact"?37:u==="comfortable"?58:73,b=r?fE(Object.assign({count:s?g*2:g,estimateSize:v=>s&&v%2===1?h===!0?100:0:m,getScrollElement:()=>c.current,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?v=>v==null?void 0:v.getBoundingClientRect().height:void 0,overscan:4,rangeExtractor:x.useCallback(v=>{var y;return K$(v,(y=d==null?void 0:d.index)!==null&&y!==void 0?y:0)},[d])},p)):void 0;if(b){const v=b.getVirtualItems();b.virtualRows=v,a&&(a.current=b)}return b},ire=(t,e,n)=>{let o=0;return t.columnFiltersMeta[n]&&(o=mG(t.columnFiltersMeta[n],e.columnFiltersMeta[n])),o===0?na.alphanumeric(t,e,n):o},rre=Object.assign(Object.assign({},na),{fuzzy:ire}),sre=(t,e)=>Math.max(...Object.values(e.columnFiltersMeta).map(n=>n.rank))-Math.max(...Object.values(t.columnFiltersMeta).map(n=>n.rank)),are=(t,e=[])=>{const{getBottomRows:n,getCenterRows:o,getPrePaginationRowModel:i,getRowModel:r,getState:s,getTopRows:a,options:{enableGlobalFilterRankedResults:l,enablePagination:c,enableRowPinning:u,manualExpanding:d,manualFiltering:h,manualGrouping:p,manualPagination:g,manualSorting:m,rowPinningDisplayMode:b}}=t,{expanded:v,globalFilter:y,pagination:w,rowPinning:C,sorting:k}=s(),P=x.useMemo(()=>G$(t)&&!Object.values(k).some(Boolean)&&y,[l,v,y,d,h,p,m,k]);return x.useMemo(()=>{let _=[];if(!P)_=!u||b!=null&&b.includes("sticky")?r().rows:o();else if(_=i().rows.sort((R,O)=>sre(R,O)),c&&!g){const R=w.pageIndex*w.pageSize;_=_.slice(R,R+w.pageSize)}return u&&(b!=null&&b.includes("sticky"))&&(_=[...a().filter(R=>!e.includes(R.id)),..._,...n().filter(R=>!e.includes(R.id))]),_},[P,P?i().rows:r().rows,w.pageIndex,w.pageSize,C])},lre=t=>{var e,n,o,i,r,s,a,l,c,u,d,h,p,g,m,b,v,y,w,C,k,P,M,_,R,O,I,$,F,E,D,j,N,A,L;const V=x.useRef(null),W=x.useRef({}),Y=x.useRef({}),se=x.useRef(null),B=x.useRef(null),U=x.useRef({}),z=x.useRef(null),Q=x.useRef(null),J=x.useRef(null),ee=x.useRef(null),ie=x.useMemo(()=>{var Ze,tt,ht;const Ot=(Ze=t.initialState)!==null&&Ze!==void 0?Ze:{};return Ot.columnOrder=(tt=Ot.columnOrder)!==null&&tt!==void 0?tt:q$(t),Ot.globalFilterFn=(ht=t.globalFilterFn)!==null&&ht!==void 0?ht:"fuzzy",Ot},[]),[ne,oe]=x.useState((e=ie.creatingRow)!==null&&e!==void 0?e:null),[H,ue]=x.useState(()=>Object.assign({},...wm(t.columns).map(Ze=>{var tt,ht,Ot,En;return{[Nl(Ze)]:Ze.filterFn instanceof Function?(tt=Ze.filterFn.name)!==null&&tt!==void 0?tt:"custom":(En=(ht=Ze.filterFn)!==null&&ht!==void 0?ht:(Ot=ie==null?void 0:ie.columnFilterFns)===null||Ot===void 0?void 0:Ot[Nl(Ze)])!==null&&En!==void 0?En:Rie(Ze)}}))),[he,pe]=x.useState((n=ie.columnOrder)!==null&&n!==void 0?n:[]),[$e,re]=x.useState((o=ie==null?void 0:ie.density)!==null&&o!==void 0?o:"comfortable"),[Ce,G]=x.useState((i=ie.draggingColumn)!==null&&i!==void 0?i:null),[X,ve]=x.useState((r=ie.draggingRow)!==null&&r!==void 0?r:null),[ke,_e]=x.useState((s=ie.editingCell)!==null&&s!==void 0?s:null),[fe,ae]=x.useState((a=ie.editingRow)!==null&&a!==void 0?a:null),[xe,we]=x.useState((l=ie.globalFilterFn)!==null&&l!==void 0?l:"fuzzy"),[be,De]=x.useState((c=ie.grouping)!==null&&c!==void 0?c:[]),[We,Ae]=x.useState((u=ie.hoveredColumn)!==null&&u!==void 0?u:null),[ge,Ne]=x.useState((d=ie.hoveredRow)!==null&&d!==void 0?d:null),[te,ye]=x.useState((h=ie==null?void 0:ie.isFullScreen)!==null&&h!==void 0?h:!1),[Ve,Ke]=x.useState((g=(p=t.initialState)===null||p===void 0?void 0:p.showAlertBanner)!==null&&g!==void 0?g:!1),[Qe,ct]=x.useState((m=ie==null?void 0:ie.showColumnFilters)!==null&&m!==void 0?m:!1),[yt,$t]=x.useState((b=ie==null?void 0:ie.showGlobalFilter)!==null&&b!==void 0?b:!1),[Tt,st]=x.useState((v=ie==null?void 0:ie.showToolbarDropZone)!==null&&v!==void 0?v:!1),Ft=Kie({columnOrder:he,creatingRow:ne,grouping:be,tableOptions:t}),In=x.useMemo(()=>{var Ze,tt,ht;return W$({aggregationFns:t.aggregationFns,columnDefs:[...Ft,...t.columns],columnFilterFns:(tt=(Ze=t.state)===null||Ze===void 0?void 0:Ze.columnFilterFns)!==null&&tt!==void 0?tt:H,defaultDisplayColumn:(ht=t.defaultDisplayColumn)!==null&&ht!==void 0?ht:{},filterFns:t.filterFns,sortingFns:t.sortingFns})},[H,Ft,t.columns,(y=t.state)===null||y===void 0?void 0:y.columnFilterFns]),on=x.useMemo(()=>{var Ze,tt,ht,Ot,En;return(!((Ze=t.state)===null||Ze===void 0)&&Ze.isLoading||!((tt=t.state)===null||tt===void 0)&&tt.showSkeletons)&&!t.data.length?[...Array(((Ot=(ht=t.state)===null||ht===void 0?void 0:ht.pagination)===null||Ot===void 0?void 0:Ot.pageSize)||((En=ie==null?void 0:ie.pagination)===null||En===void 0?void 0:En.pageSize)||10).fill(null)].map(()=>Object.assign({},...wm(t.columns).map(gn=>({[Nl(gn)]:null})))):t.data},[t.data,(w=t.state)===null||w===void 0?void 0:w.isLoading,(C=t.state)===null||C===void 0?void 0:C.showSkeletons]),Mt=jH(Object.assign(Object.assign({getCoreRowModel:kH(),getExpandedRowModel:t.enableExpanding||t.enableGrouping?$H():void 0,getFacetedMinMaxValues:t.enableFacetedValues?OH():void 0,getFacetedRowModel:t.enableFacetedValues?RH():void 0,getFacetedUniqueValues:t.enableFacetedValues?TH():void 0,getFilteredRowModel:t.enableColumnFilters||t.enableGlobalFilter||t.enableFilters?_H():void 0,getGroupedRowModel:t.enableGrouping?EH():void 0,getPaginationRowModel:t.enablePagination?FH():void 0,getSortedRowModel:t.enableSorting?IH():void 0,getSubRows:Ze=>Ze==null?void 0:Ze.subRows,onColumnOrderChange:pe,onGroupingChange:De},t),{columns:In,data:on,globalFilterFn:(k=t.filterFns)===null||k===void 0?void 0:k[xe??"fuzzy"],initialState:ie,state:Object.assign({columnFilterFns:H,columnOrder:he,creatingRow:ne,density:$e,draggingColumn:Ce,draggingRow:X,editingCell:ke,editingRow:fe,globalFilterFn:xe,grouping:be,hoveredColumn:We,hoveredRow:ge,isFullScreen:te,showAlertBanner:Ve,showColumnFilters:Qe,showGlobalFilter:yt,showToolbarDropZone:Tt},t.state)}));Mt.refs={bottomToolbarRef:V,editInputRefs:W,filterInputRefs:Y,searchInputRef:se,tableContainerRef:B,tableFooterRef:ee,tableHeadCellRefs:U,tableHeadRef:J,tablePaperRef:z,topToolbarRef:Q};const ao=Ze=>{var tt,ht;let Ot=Ze;Ze===!0&&(Ot=$ie(Mt)),(ht=(tt=t==null?void 0:t.onCreatingRowChange)===null||tt===void 0?void 0:tt.call(t,Ot))!==null&&ht!==void 0||oe(Ot)};return Mt.setCreatingRow=ao,Mt.setColumnFilterFns=(P=t.onColumnFilterFnsChange)!==null&&P!==void 0?P:ue,Mt.setDensity=(M=t.onDensityChange)!==null&&M!==void 0?M:re,Mt.setDraggingColumn=(_=t.onDraggingColumnChange)!==null&&_!==void 0?_:G,Mt.setDraggingRow=(R=t.onDraggingRowChange)!==null&&R!==void 0?R:ve,Mt.setEditingCell=(O=t.onEditingCellChange)!==null&&O!==void 0?O:_e,Mt.setEditingRow=(I=t.onEditingRowChange)!==null&&I!==void 0?I:ae,Mt.setGlobalFilterFn=($=t.onGlobalFilterFnChange)!==null&&$!==void 0?$:we,Mt.setHoveredColumn=(F=t.onHoveredColumnChange)!==null&&F!==void 0?F:Ae,Mt.setHoveredRow=(E=t.onHoveredRowChange)!==null&&E!==void 0?E:Ne,Mt.setIsFullScreen=(D=t.onIsFullScreenChange)!==null&&D!==void 0?D:ye,Mt.setShowAlertBanner=(j=t.onShowAlertBannerChange)!==null&&j!==void 0?j:Ke,Mt.setShowColumnFilters=(N=t.onShowColumnFiltersChange)!==null&&N!==void 0?N:ct,Mt.setShowGlobalFilter=(A=t.onShowGlobalFilterChange)!==null&&A!==void 0?A:$t,Mt.setShowToolbarDropZone=(L=t.onShowToolbarDropZoneChange)!==null&&L!==void 0?L:st,nre(Mt),Mt},cre=Object.assign({},gp),Z$=(t,e,n,o)=>{const i=hG(t.getValue(e),n,{threshold:to.MATCHES});return o(i),i.passed};Z$.autoRemove=t=>!t;const eF=(t,e,n)=>t.getValue(e).toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim());eF.autoRemove=t=>!t;const tF=(t,e,n)=>t.getValue(e).toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim());tF.autoRemove=t=>!t;const nF=(t,e,n)=>t.getValue(e).toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim());nF.autoRemove=t=>!t;const dv=(t,e,n)=>t.getValue(e).toString().toLowerCase().trim()===(n==null?void 0:n.toString().toLowerCase().trim());dv.autoRemove=t=>!t;const oF=(t,e,n)=>t.getValue(e).toString().toLowerCase().trim()!==n.toString().toLowerCase().trim();oF.autoRemove=t=>!t;const hv=(t,e,n)=>!isNaN(+n)&&!isNaN(+t.getValue(e))?+t.getValue(e)>+n:t.getValue(e).toString().toLowerCase().trim()>(n==null?void 0:n.toString().toLowerCase().trim());hv.autoRemove=t=>!t;const fC=(t,e,n)=>dv(t,e,n)||hv(t,e,n);fC.autoRemove=t=>!t;const fv=(t,e,n)=>!isNaN(+n)&&!isNaN(+t.getValue(e))?+t.getValue(e)<+n:t.getValue(e).toString().toLowerCase().trim()<(n==null?void 0:n.toString().toLowerCase().trim());fv.autoRemove=t=>!t;const pC=(t,e,n)=>dv(t,e,n)||fv(t,e,n);pC.autoRemove=t=>!t;const iF=(t,e,n)=>(["",void 0].includes(n[0])||hv(t,e,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||fv(t,e,n[1]));iF.autoRemove=t=>!t;const rF=(t,e,n)=>(["",void 0].includes(n[0])||fC(t,e,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||pC(t,e,n[1]));rF.autoRemove=t=>!t;const sF=(t,e,n)=>!t.getValue(e).toString().trim();sF.autoRemove=t=>!t;const aF=(t,e,n)=>!!t.getValue(e).toString().trim();aF.autoRemove=t=>!t;const ure=Object.assign(Object.assign({},Ai),{between:iF,betweenInclusive:rF,contains:eF,empty:sF,endsWith:nF,equals:dv,fuzzy:Z$,greaterThan:hv,greaterThanOrEqualTo:fC,lessThan:fv,lessThanOrEqualTo:pC,notEmpty:aF,notEquals:oF,startsWith:tF}),dre={ArrowDownwardIcon:lD,ArrowRightIcon:cD,CancelIcon:uD,ChevronLeftIcon:dD,ChevronRightIcon:hD,ClearAllIcon:fD,CloseIcon:pD,DensityLargeIcon:mD,DensityMediumIcon:gD,DensitySmallIcon:vD,DragHandleIcon:bD,DynamicFeedIcon:yD,EditIcon:P1,ExpandMoreIcon:xD,FilterAltIcon:wD,FilterListIcon:CD,FilterListOffIcon:SD,FirstPageIcon:kD,FullscreenExitIcon:MD,FullscreenIcon:PD,KeyboardDoubleArrowDownIcon:_D,LastPageIcon:RD,MoreHorizIcon:TD,MoreVertIcon:OD,PushPinIcon:ID,RestartAltIcon:ED,SaveIcon:DD,SearchIcon:$D,SearchOffIcon:FD,SortIcon:jD,SyncAltIcon:LD,ViewColumnIcon:AD,VisibilityOffIcon:ND},hre={actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"Clear search",clearSort:"Clear sort",clickToCopy:"Click to copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {column}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pin:"Pin",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all"},fre={filterVariant:"text",maxSize:1e3,minSize:40,size:180},lF={columnDefType:"display",enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},pre=t=>{var e,{aggregationFns:n,autoResetExpanded:o=!1,columnFilterDisplayMode:i="subheader",columnResizeDirection:r,columnResizeMode:s="onChange",createDisplayMode:a="modal",defaultColumn:l,defaultDisplayColumn:c,editDisplayMode:u="modal",enableBottomToolbar:d=!0,enableColumnActions:h=!0,enableColumnFilters:p=!0,enableColumnOrdering:g=!1,enableColumnPinning:m=!1,enableColumnResizing:b=!1,enableDensityToggle:v=!0,enableExpandAll:y=!0,enableExpanding:w,enableFilterMatchHighlighting:C=!0,enableFilters:k=!0,enableFullScreenToggle:P=!0,enableGlobalFilter:M=!0,enableGlobalFilterRankedResults:_=!0,enableGrouping:R=!1,enableHiding:O=!0,enableMultiRowSelection:I=!0,enableMultiSort:$=!0,enablePagination:F=!0,enableRowPinning:E=!1,enableRowSelection:D=!1,enableSelectAll:j=!0,enableSorting:N=!0,enableStickyHeader:A=!1,enableTableFooter:L=!0,enableTableHead:V=!0,enableToolbarInternalActions:W=!0,enableTopToolbar:Y=!0,filterFns:se,icons:B,layoutMode:U,localization:z,manualFiltering:Q,manualGrouping:J,manualPagination:ee,manualSorting:ie,paginationDisplayMode:ne="default",positionActionsColumn:oe="first",positionExpandColumn:H="first",positionGlobalFilter:ue="right",positionPagination:he="bottom",positionToolbarAlertBanner:pe="top",positionToolbarDropZone:$e="top",rowNumberDisplayMode:re="static",rowPinningDisplayMode:Ce="sticky",selectAllMode:G="page",sortingFns:X}=t,ve=Ue(t,["aggregationFns","autoResetExpanded","columnFilterDisplayMode","columnResizeDirection","columnResizeMode","createDisplayMode","defaultColumn","defaultDisplayColumn","editDisplayMode","enableBottomToolbar","enableColumnActions","enableColumnFilters","enableColumnOrdering","enableColumnPinning","enableColumnResizing","enableDensityToggle","enableExpandAll","enableExpanding","enableFilterMatchHighlighting","enableFilters","enableFullScreenToggle","enableGlobalFilter","enableGlobalFilterRankedResults","enableGrouping","enableHiding","enableMultiRowSelection","enableMultiSort","enablePagination","enableRowPinning","enableRowSelection","enableSelectAll","enableSorting","enableStickyHeader","enableTableFooter","enableTableHead","enableToolbarInternalActions","enableTopToolbar","filterFns","icons","layoutMode","localization","manualFiltering","manualGrouping","manualPagination","manualSorting","paginationDisplayMode","positionActionsColumn","positionExpandColumn","positionGlobalFilter","positionPagination","positionToolbarAlertBanner","positionToolbarDropZone","rowNumberDisplayMode","rowPinningDisplayMode","selectAllMode","sortingFns"]);const ke=Dt(),_e=x.useMemo(()=>Object.assign(Object.assign({},dre),B),[B]),fe=x.useMemo(()=>Object.assign(Object.assign({},hre),z),[z]),ae=x.useMemo(()=>Object.assign(Object.assign({},cre),n),[]),xe=x.useMemo(()=>Object.assign(Object.assign({},ure),se),[]),we=x.useMemo(()=>Object.assign(Object.assign({},rre),X),[]),be=x.useMemo(()=>Object.assign(Object.assign({},fre),l),[l]),De=x.useMemo(()=>Object.assign(Object.assign({},lF),c),[c]);return r||(r=ke.direction||"ltr"),U=U||(b?"grid-no-grow":"semantic"),U==="semantic"&&(ve.enableRowVirtualization||ve.enableColumnVirtualization)&&(U="grid"),ve.enableRowVirtualization&&(A=!0),F===!1&&ee===void 0&&(ee=!0),!((e=ve.data)===null||e===void 0)&&e.length||(Q=!0,J=!0,ee=!0,ie=!0),Object.assign({aggregationFns:ae,autoResetExpanded:o,columnFilterDisplayMode:i,columnResizeDirection:r,columnResizeMode:s,createDisplayMode:a,defaultColumn:be,defaultDisplayColumn:De,editDisplayMode:u,enableBottomToolbar:d,enableColumnActions:h,enableColumnFilters:p,enableColumnOrdering:g,enableColumnPinning:m,enableColumnResizing:b,enableDensityToggle:v,enableExpandAll:y,enableExpanding:w,enableFilterMatchHighlighting:C,enableFilters:k,enableFullScreenToggle:P,enableGlobalFilter:M,enableGlobalFilterRankedResults:_,enableGrouping:R,enableHiding:O,enableMultiRowSelection:I,enableMultiSort:$,enablePagination:F,enableRowPinning:E,enableRowSelection:D,enableSelectAll:j,enableSorting:N,enableStickyHeader:A,enableTableFooter:L,enableTableHead:V,enableToolbarInternalActions:W,enableTopToolbar:Y,filterFns:xe,icons:_e,layoutMode:U,localization:fe,manualFiltering:Q,manualGrouping:J,manualPagination:ee,manualSorting:ie,paginationDisplayMode:ne,positionActionsColumn:oe,positionExpandColumn:H,positionGlobalFilter:ue,positionPagination:he,positionToolbarAlertBanner:pe,positionToolbarDropZone:$e,rowNumberDisplayMode:re,rowPinningDisplayMode:Ce,selectAllMode:G,sortingFns:we},ve)},cF=t=>{var e,n,o,i,r,s,{columnVirtualizer:a,table:l}=t,c=Ue(t,["columnVirtualizer","table"]);const{getBottomRows:u,getIsSomeRowsPinned:d,getRowModel:h,getState:p,getTopRows:g,options:{createDisplayMode:m,enableStickyFooter:b,enableStickyHeader:v,layoutMode:y,localization:w,memoMode:C,muiTableBodyProps:k,renderDetailPanel:P,renderEmptyRowsFallback:M,rowPinningDisplayMode:_},refs:{tableFooterRef:R,tableHeadRef:O,tablePaperRef:I}}=l,{columnFilters:$,creatingRow:F,globalFilter:E,isFullScreen:D,rowPinning:j}=p(),N=Object.assign(Object.assign({},Se(k,{table:l})),c),A=(v||D)&&((e=O.current)===null||e===void 0?void 0:e.clientHeight)||0,L=b&&((n=R.current)===null||n===void 0?void 0:n.clientHeight)||0,V=x.useMemo(()=>{var z,Q;return!(!((z=j.bottom)===null||z===void 0)&&z.length)&&!(!((Q=j.top)===null||Q===void 0)&&Q.length)?[]:h().rows.filter(J=>J.getIsPinned()).map(J=>J.id)},[j,h().rows]),W=are(l,V),Y=ore(l,W),{virtualRows:se}=Y??{},B={columnVirtualizer:a,numRows:W.length,table:l},U=F&&m==="row"&&f.jsx(xu,Object.assign({},B,{row:F,staticRowIndex:-1}));return f.jsxs(f.Fragment,{children:[!(_!=null&&_.includes("sticky"))&&d("top")&&f.jsx(ef,Object.assign({},N,{sx:z=>Object.assign({display:y!=null&&y.startsWith("grid")?"grid":void 0,position:"sticky",top:A-1,zIndex:1},Se(N==null?void 0:N.sx,z)),children:g().map((z,Q)=>{const J=Object.assign(Object.assign({},B),{row:z,staticRowIndex:Q});return C==="rows"?f.jsx(E0,Object.assign({},J),z.id):f.jsx(xu,Object.assign({},J),z.id)})})),Y&&U&&f.jsx(ef,Object.assign({},N,{sx:z=>Object.assign({display:y!=null&&y.startsWith("grid")?"grid":void 0},Se(N==null?void 0:N.sx,z)),children:U})),f.jsxs(ef,Object.assign({},N,{sx:z=>Object.assign({display:y!=null&&y.startsWith("grid")?"grid":void 0,height:Y?`${Y.getTotalSize()}px`:void 0,minHeight:W.length?void 0:"100px",position:"relative"},Se(N==null?void 0:N.sx,z)),children:[!Y&&U,(o=N==null?void 0:N.children)!==null&&o!==void 0?o:!W.length&&!U?f.jsx("tr",{style:{display:y!=null&&y.startsWith("grid")?"grid":void 0},children:f.jsx("td",{colSpan:l.getVisibleLeafColumns().length,style:{display:y!=null&&y.startsWith("grid")?"grid":void 0},children:(i=M==null?void 0:M({table:l}))!==null&&i!==void 0?i:f.jsx(An,{sx:{color:"text.secondary",fontStyle:"italic",maxWidth:`min(100vw, ${(s=(r=I.current)===null||r===void 0?void 0:r.clientWidth)!==null&&s!==void 0?s:360}px)`,py:"2rem",textAlign:"center",width:"100%"},children:E||$.length?w.noResultsFound:w.noRecordsToDisplay})})}):f.jsx(f.Fragment,{children:(se??W).map((z,Q)=>{if(Y)if(P){if(z.index%2===1)return null;Q=z.index/2}else Q=z.index;const J=Y?W[Q]:z,ee=Object.assign(Object.assign({},B),{pinnedRowIds:V,row:J,rowVirtualizer:Y,staticRowIndex:Q,virtualRow:Y?z:void 0}),ie=`${J.id}-${J.index}`;return C==="rows"?f.jsx(E0,Object.assign({},ee),ie):f.jsx(xu,Object.assign({},ee),ie)})})]})),!(_!=null&&_.includes("sticky"))&&d("bottom")&&f.jsx(ef,Object.assign({},N,{sx:z=>Object.assign({bottom:L-1,display:y!=null&&y.startsWith("grid")?"grid":void 0,position:"sticky",zIndex:1},Se(N==null?void 0:N.sx,z)),children:u().map((z,Q)=>{const J=Object.assign(Object.assign({},B),{row:z,staticRowIndex:Q});return C==="rows"?f.jsx(E0,Object.assign({},J),z.id):f.jsx(xu,Object.assign({},J),z.id)})}))]})},mre=x.memo(cF,(t,e)=>t.table.options.data===e.table.options.data),gre=t=>{var e,n,o,{footer:i,table:r}=t,s=Ue(t,["footer","table"]);const a=Dt(),{getState:l,options:{layoutMode:c,muiTableFooterCellProps:u}}=r,{density:d}=l(),{column:h}=i,{columnDef:p}=h,{columnDefType:g}=p,m={column:h,table:r},b=Object.assign(Object.assign(Object.assign({},Se(u,m)),Se(p.muiTableFooterCellProps,m)),s);return f.jsx(Kg,Object.assign({align:g==="group"?"center":a.direction==="rtl"?"right":"left",colSpan:i.colSpan,variant:"footer"},b,{sx:v=>Object.assign(Object.assign({display:c!=null&&c.startsWith("grid")?"grid":void 0,fontWeight:"bold",justifyContent:g==="group"?"center":void 0,p:d==="compact"?"0.5rem":d==="comfortable"?"1rem":"1.5rem",verticalAlign:"top",zIndex:h.getIsPinned()&&g!=="group"?2:1},uC({column:h,table:r,tableCellProps:b,theme:v})),Se(b==null?void 0:b.sx,v)),children:(e=b.children)!==null&&e!==void 0?e:i.isPlaceholder?null:(o=(n=Se(p.Footer,{column:h,footer:i,table:r}))!==null&&n!==void 0?n:p.footer)!==null&&o!==void 0?o:null}))},vre=t=>{var e,{columnVirtualizer:n,footerGroup:o,table:i}=t,r=Ue(t,["columnVirtualizer","footerGroup","table"]);const{options:{layoutMode:s,muiTableFooterRowProps:a}}=i,{virtualColumns:l,virtualPaddingLeft:c,virtualPaddingRight:u}=n??{};if(!(!((e=o.headers)===null||e===void 0)&&e.some(h=>typeof h.column.columnDef.footer=="string"&&!!h.column.columnDef.footer||h.column.columnDef.Footer)))return null;const d=Object.assign(Object.assign({},Se(a,{footerGroup:o,table:i})),r);return f.jsxs(Gg,Object.assign({},d,{sx:h=>Object.assign({backgroundColor:vi(i,h).baseBackgroundColor,display:s!=null&&s.startsWith("grid")?"flex":void 0,width:"100%"},Se(d==null?void 0:d.sx,h)),children:[c?f.jsx("th",{style:{display:"flex",width:c}}):null,(l??o.headers).map(h=>{const p=l?o.headers[h.index]:h;return p?f.jsx(gre,{footer:p,table:i},p.id):null}),u?f.jsx("th",{style:{display:"flex",width:u}}):null]}))},bre=t=>{var{columnVirtualizer:e,table:n}=t,o=Ue(t,["columnVirtualizer","table"]);const{getFooterGroups:i,getState:r,options:{enableStickyFooter:s,layoutMode:a,muiTableFooterProps:l},refs:{tableFooterRef:c}}=n,{isFullScreen:u}=r(),d=Object.assign(Object.assign({},Se(l,{table:n})),o),h=(u||s)&&s!==!1;return f.jsx(pY,Object.assign({},d,{ref:p=>{c.current=p,d!=null&&d.ref&&(d.ref.current=p)},sx:p=>Object.assign({bottom:h?0:void 0,display:a!=null&&a.startsWith("grid")?"grid":void 0,opacity:h?.97:void 0,outline:h?p.palette.mode==="light"?`1px solid ${p.palette.grey[300]}`:`1px solid ${p.palette.grey[700]}`:void 0,position:h?"sticky":void 0,zIndex:h?1:void 0},Se(d==null?void 0:d.sx,p)),children:i().map(p=>f.jsx(vre,{columnVirtualizer:e,footerGroup:p,table:n},p.id))}))},yre=t=>{var e,n,{header:o,table:i}=t,r=Ue(t,["header","table"]);const{options:{icons:{MoreVertIcon:s},localization:a,muiColumnActionsButtonProps:l}}=i,{column:c}=o,{columnDef:u}=c,[d,h]=x.useState(null),p=m=>{m.stopPropagation(),m.preventDefault(),h(m.currentTarget)},g=Object.assign(Object.assign(Object.assign({},Se(l,{column:c,table:i})),Se(u.muiColumnActionsButtonProps,{column:c,table:i})),r);return f.jsxs(f.Fragment,{children:[f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,placement:"top",title:(e=g==null?void 0:g.title)!==null&&e!==void 0?e:a.columnActions,children:f.jsx(at,Object.assign({"aria-label":a.columnActions,onClick:p,size:"small"},g,{sx:m=>Object.assign({"&:hover":{opacity:1},height:"2rem",m:"-8px -4px",opacity:.3,transition:"all 150ms",width:"2rem"},Se(g==null?void 0:g.sx,m)),title:void 0,children:(n=g==null?void 0:g.children)!==null&&n!==void 0?n:f.jsx(s,{style:{transform:"scale(0.9)"}})}))}),d&&f.jsx(Uie,{anchorEl:d,header:o,setAnchorEl:h,table:i})]})},xre=t=>{var e,n,o,{column:i,table:r}=t,s=Ue(t,["column","table"]);const{getState:a,options:{localization:l,muiFilterCheckboxProps:c}}=r,{density:u}=a(),{columnDef:d}=i,h=Object.assign(Object.assign(Object.assign({},Se(c,{column:i,table:r})),Se(d.muiFilterCheckboxProps,{column:i,table:r})),s),p=(e=l.filterByColumn)===null||e===void 0?void 0:e.replace("{column}",d.header);return f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,title:(n=h==null?void 0:h.title)!==null&&n!==void 0?n:p,children:f.jsx(zD,{control:f.jsx(d1,Object.assign({checked:i.getFilterValue()==="true",color:i.getFilterValue()===void 0?"default":"primary",indeterminate:i.getFilterValue()===void 0,size:u==="compact"?"small":"medium"},h,{onChange:(g,m)=>{var b;i.setFilterValue(i.getFilterValue()===void 0?"true":i.getFilterValue()==="true"?"false":void 0),(b=h==null?void 0:h.onChange)===null||b===void 0||b.call(h,g,m)},onClick:g=>{var m;g.stopPropagation(),(m=h==null?void 0:h.onClick)===null||m===void 0||m.call(h,g)},sx:g=>Object.assign({height:"2.5rem",width:"2.5rem"},Se(h==null?void 0:h.sx,g))})),disableTypography:!0,label:(o=h.title)!==null&&o!==void 0?o:p,sx:{color:"text.secondary",fontWeight:"normal",mt:"-4px"},title:void 0})})},zy=t=>{var e,n,o,i,r,s,a,l,c,u,d,h,p,g,m,b,v,{header:y,rangeFilterIndex:w,table:C}=t,k=Ue(t,["header","rangeFilterIndex","table"]);const{options:{columnFilterModeOptions:P,enableColumnFilterModes:M,icons:{CloseIcon:_,FilterListIcon:R},localization:O,manualFiltering:I,muiFilterAutocompleteProps:$,muiFilterDatePickerProps:F,muiFilterDateTimePickerProps:E,muiFilterTextFieldProps:D,muiFilterTimePickerProps:j},refs:{filterInputRefs:N},setColumnFilterFns:A}=C,{column:L}=y,{columnDef:V}=L,{filterVariant:W}=V,Y=Object.assign(Object.assign(Object.assign({},Se(D,{column:L,table:C})),Se(V.muiFilterTextFieldProps,{column:L,table:C})),k),se=Object.assign(Object.assign({},Se($,{column:L,table:C})),Se(V.muiFilterAutocompleteProps,{column:L,table:C})),B=Object.assign(Object.assign({},Se(F,{column:L,table:C})),Se(V.muiFilterDatePickerProps,{column:L,table:C})),U=Object.assign(Object.assign({},Se(E,{column:L,table:C})),Se(V.muiFilterDateTimePickerProps,{column:L,table:C})),z=Object.assign(Object.assign({},Se(j,{column:L,table:C})),Se(V.muiFilterTimePickerProps,{column:L,table:C})),Q=(W==null?void 0:W.startsWith("date"))||(W==null?void 0:W.startsWith("time")),J=W==="autocomplete",ee=(W==null?void 0:W.includes("range"))||w!==void 0,ie=W==="select",ne=W==="multi-select",oe=["autocomplete","text"].includes(W)||!ie&&!ne,H=V._filterFn,ue=["empty","notEmpty"].includes(H)?O[`filter${((n=(e=H==null?void 0:H.charAt)===null||e===void 0?void 0:e.call(H,0))===null||n===void 0?void 0:n.toUpperCase())+(H==null?void 0:H.slice(1))}`]:"",he=ee?w===0?O.min:w===1?O.max:"":(o=Y==null?void 0:Y.placeholder)!==null&&o!==void 0?o:(i=O.filterByColumn)===null||i===void 0?void 0:i.replace("{column}",String(V.header)),pe=(r=V==null?void 0:V.columnFilterModeOptions)!==null&&r!==void 0?r:P,$e=M&&V.enableColumnFilterModes!==!1&&!w&&(pe===void 0||!!(pe!=null&&pe.length)),re=L.getFacetedUniqueValues(),[Ce,G]=x.useState(null),[X,ve]=x.useState(()=>{var te,ye;return ne?L.getFilterValue()||[]:ee?((te=L.getFilterValue())===null||te===void 0?void 0:te[w])||"":(ye=L.getFilterValue())!==null&&ye!==void 0?ye:""}),ke=x.useCallback(Ba(te=>{ee?L.setFilterValue(ye=>{const Ve=ye??["",""];return Ve[w]=te??void 0,Ve}):L.setFilterValue(te??void 0)},oe?I?400:200:1),[]),_e=te=>{ve(te??""),ke(te)},fe=te=>{var ye;const Ve=Y.type==="date"?te.target.valueAsDate:Y.type==="number"?te.target.valueAsNumber:te.target.value;_e(Ve),(ye=Y==null?void 0:Y.onChange)===null||ye===void 0||ye.call(Y,te)},ae=()=>{ne?(ve([]),L.setFilterValue([])):ee?(ve(""),L.setFilterValue(te=>{const ye=Array.isArray(te)&&te||["",""];return ye[w]=void 0,ye})):(ve(""),L.setFilterValue(void 0))},xe=()=>{ve(""),L.setFilterValue(void 0),A(te=>{var ye;return Object.assign(Object.assign({},te),{[y.id]:(ye=pe==null?void 0:pe[0])!==null&&ye!==void 0?ye:"fuzzy"})})},we=te=>{G(te.currentTarget)},be=x.useRef(!1);if(x.useEffect(()=>{if(be.current){const te=L.getFilterValue();te===void 0?ae():ve(ee&&w!==void 0?te[w]:te)}be.current=!0},[L.getFilterValue()]),V.Filter)return f.jsx(f.Fragment,{children:(s=V.Filter)===null||s===void 0?void 0:s.call(V,{column:L,header:y,rangeFilterIndex:w,table:C})});const De=x.useMemo(()=>{var te;return(te=V.filterSelectOptions)!==null&&te!==void 0?te:(ie||ne||J)&&re?Array.from(re.keys()).filter(ye=>ye!=null).sort((ye,Ve)=>ye.localeCompare(Ve)):void 0},[V.filterSelectOptions,re,ne,ie]),We=!J&&!Q&&!ue?f.jsx(yc,{position:"end",sx:{mr:ie||ne?"20px":void 0},children:f.jsx(ft,{placement:"right",title:(a=O.clearFilter)!==null&&a!==void 0?a:"",children:f.jsx("span",{children:f.jsx(at,{"aria-label":O.clearFilter,disabled:!(!((l=X==null?void 0:X.toString())===null||l===void 0)&&l.length),onClick:ae,size:"small",sx:{height:"2rem",transform:"scale(0.9)",width:"2rem"},children:f.jsx(_,{})})})})}):null,Ae=$e?f.jsxs(yc,{position:"start",children:[f.jsx(ft,{title:O.changeFilterMode,children:f.jsx("span",{children:f.jsx(at,{"aria-label":O.changeFilterMode,onClick:we,size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:f.jsx(R,{})})})}),ue&&f.jsx(Td,{label:ue,onDelete:xe})]}):null,ge=Object.assign(Object.assign({FormHelperTextProps:{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",whiteSpace:"nowrap"}},InputProps:We?{endAdornment:We,startAdornment:Ae}:{startAdornment:Ae},fullWidth:!0,helperText:$e?f.jsx("label",{children:O.filterMode.replace("{filterType}",O[`filter${((c=H==null?void 0:H.charAt(0))===null||c===void 0?void 0:c.toUpperCase())+(H==null?void 0:H.slice(1))}`])}):null,inputProps:{"aria-label":he,autoComplete:"new-password",disabled:!!ue,sx:{textOverflow:"ellipsis",width:ue?0:void 0},title:he},inputRef:te=>{N.current[`${L.id}-${w??0}`]=te,Y.inputRef&&(Y.inputRef=te)},margin:"none",placeholder:ue||ie||ne?void 0:he,variant:"standard"},Y),{sx:te=>Object.assign({minWidth:Q?"160px":M&&w===0?"110px":ee?"100px":ue?"auto":"120px",mx:"-2px",p:0,width:"calc(100% + 4px)"},Se(Y==null?void 0:Y.sx,te))}),Ne={onChange:te=>{_e(te)},value:X||null};return f.jsxs(f.Fragment,{children:[W!=null&&W.startsWith("time")?f.jsx(jne,Object.assign({},Ne,z,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>ae()},(u=z==null?void 0:z.slotProps)===null||u===void 0?void 0:u.field),textField:Object.assign(Object.assign({},ge),(d=z==null?void 0:z.slotProps)===null||d===void 0?void 0:d.textField)}})):W!=null&&W.startsWith("datetime")?f.jsx(Sne,Object.assign({},Ne,U,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>ae()},(h=U==null?void 0:U.slotProps)===null||h===void 0?void 0:h.field),textField:Object.assign(Object.assign({},ge),(p=U==null?void 0:U.slotProps)===null||p===void 0?void 0:p.textField)}})):W!=null&&W.startsWith("date")?f.jsx(wee,Object.assign({},Ne,B,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>ae()},(g=B==null?void 0:B.slotProps)===null||g===void 0?void 0:g.field),textField:Object.assign(Object.assign({},ge),(m=B==null?void 0:B.slotProps)===null||m===void 0?void 0:m.textField)}})):J?f.jsx(sQ,Object.assign({freeSolo:!0,getOptionLabel:te=>Zs(te).label,onChange:(te,ye)=>_e(Zs(ye).value),options:(b=De==null?void 0:De.map(te=>Zs(te)))!==null&&b!==void 0?b:[]},se,{renderInput:te=>{var ye;return f.jsx(Oa,Object.assign({},te,ge,{InputProps:Object.assign(Object.assign({},te.InputProps),{startAdornment:(ye=ge==null?void 0:ge.InputProps)===null||ye===void 0?void 0:ye.startAdornment}),inputProps:Object.assign(Object.assign({},te.inputProps),ge==null?void 0:ge.inputProps),onChange:fe,onClick:Ve=>Ve.stopPropagation()}))},value:X})):f.jsx(Oa,Object.assign({select:ie||ne},ge,{SelectProps:Object.assign({displayEmpty:!0,multiple:ne,renderValue:ne?te=>te!=null&&te.length?f.jsx(Xe,{sx:{display:"flex",flexWrap:"wrap",gap:"2px"},children:te==null?void 0:te.map(ye=>{const Ve=De==null?void 0:De.find(Ke=>Zs(Ke).value===ye);return f.jsx(Td,{label:Zs(Ve).label},ye)})}):f.jsx(Xe,{sx:{opacity:.5},children:he}):void 0},ge.SelectProps),onChange:fe,onClick:te=>te.stopPropagation(),value:X??"",children:(ie||ne)&&[f.jsx(sn,{disabled:!0,divider:!0,hidden:!0,value:"",children:f.jsx(Xe,{sx:{opacity:.5},children:he})},"p"),(v=Y.children)!==null&&v!==void 0?v:De==null?void 0:De.map((te,ye)=>{var Ve;const{label:Ke,value:Qe}=Zs(te);return f.jsxs(sn,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:Qe,children:[ne&&f.jsx(d1,{checked:((Ve=L.getFilterValue())!==null&&Ve!==void 0?Ve:[]).includes(Qe),sx:{mr:"0.5rem"}}),Ke," ",!V.filterSelectOptions&&`(${re.get(Qe)})`]},`${ye}-${Qe}`)})]})),f.jsx(hC,{anchorEl:Ce,header:y,setAnchorEl:G,setFilterValue:ve,table:C})]})},wre=t=>{var{header:e,table:n}=t,o=Ue(t,["header","table"]);return f.jsxs(Xe,Object.assign({},o,{sx:i=>Object.assign({display:"grid",gap:"1rem",gridTemplateColumns:"1fr 1fr"},Se(o==null?void 0:o.sx,i)),children:[f.jsx(zy,{header:e,rangeFilterIndex:0,table:n}),f.jsx(zy,{header:e,rangeFilterIndex:1,table:n})]}))},Cre=t=>{var e,n,{header:o,table:i}=t,r=Ue(t,["header","table"]);const{options:{enableColumnFilterModes:s,localization:a,muiFilterSliderProps:l},refs:{filterInputRefs:c}}=i,{column:u}=o,{columnDef:d}=u,h=d._filterFn,p=s&&d.enableColumnFilterModes!==!1,g=Object.assign(Object.assign(Object.assign({},Se(l,{column:u,table:i})),Se(d.muiFilterSliderProps,{column:u,table:i})),r);let[m,b]=g.min!==void 0&&g.max!==void 0?[g.min,g.max]:(e=u.getFacetedMinMaxValues())!==null&&e!==void 0?e:[0,1];Array.isArray(m)&&(m=m[0]),Array.isArray(b)&&(b=b[0]),m===null&&(m=0),b===null&&(b=1);const[v,y]=x.useState([m,b]),w=u.getFilterValue(),C=x.useRef(!1);return x.useEffect(()=>{C.current&&(w===void 0?y([m,b]):Array.isArray(w)&&y(w)),C.current=!0},[w,m,b]),f.jsxs(Sh,{children:[f.jsx(eoe,Object.assign({disableSwap:!0,max:b,min:m,onChange:(k,P)=>{y(P)},onChangeCommitted:(k,P)=>{Array.isArray(P)&&(P[0]<=m&&P[1]>=b?u.setFilterValue(void 0):u.setFilterValue(P))},value:v,valueLabelDisplay:"auto"},g,{slotProps:{input:{ref:k=>{var P,M;k&&(c.current[`${u.id}-0`]=k,!((M=(P=g==null?void 0:g.slotProps)===null||P===void 0?void 0:P.input)===null||M===void 0)&&M.ref&&(g.slotProps.input.ref=k))}}},sx:k=>Object.assign({m:"auto",minWidth:`${u.getSize()-50}px`,mt:p?"6px":"10px",px:"4px",width:"calc(100% - 8px)"},Se(g==null?void 0:g.sx,k))})),p?f.jsx(UE,{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",m:"-3px -6px",whiteSpace:"nowrap"},children:a.filterMode.replace("{filterType}",a[`filter${((n=h==null?void 0:h.charAt(0))===null||n===void 0?void 0:n.toUpperCase())+(h==null?void 0:h.slice(1))}`])}):null]})},uF=t=>{var e,{header:n,table:o}=t,i=Ue(t,["header","table"]);const{getState:r,options:{columnFilterDisplayMode:s}}=o,{showColumnFilters:a}=r(),{column:l}=n,{columnDef:c}=l;return f.jsx(Ch,Object.assign({in:a||s==="popover",mountOnEnter:!0,unmountOnExit:!0},i,{children:c.filterVariant==="checkbox"?f.jsx(xre,{column:l,table:o}):c.filterVariant==="range-slider"?f.jsx(Cre,{header:n,table:o}):!((e=c.filterVariant)===null||e===void 0)&&e.includes("range")||["between","betweenInclusive","inNumberRange"].includes(c._filterFn)?f.jsx(wre,{header:n,table:o}):f.jsx(zy,{header:n,table:o})}))},Sre=t=>{var e,n,o,{header:i,table:r}=t,s=Ue(t,["header","table"]);const{options:{columnFilterDisplayMode:a,icons:{FilterAltIcon:l},localization:c},refs:{filterInputRefs:u},setShowColumnFilters:d}=r,{column:h}=i,{columnDef:p}=h,g=h.getFilterValue(),[m,b]=x.useState(null),v=Array.isArray(g)&&g.some(Boolean)||!!g&&!Array.isArray(g),y=((e=p.filterVariant)===null||e===void 0?void 0:e.includes("range"))||["between","betweenInclusive","inNumberRange"].includes(p._filterFn),w=p._filterFn,C=a==="popover"&&!v?(n=c.filterByColumn)===null||n===void 0?void 0:n.replace("{column}",String(p.header)):c.filteringByColumn.replace("{column}",String(p.header)).replace("{filterType}",w?c[`filter${((o=w==null?void 0:w.charAt(0))===null||o===void 0?void 0:o.toUpperCase())+(w==null?void 0:w.slice(1))}`]:"").replace("{filterValue}",`"${Array.isArray(g)?g.join(`" ${y?c.and:c.or} "`):g}"`).replace('" "',"");return f.jsxs(f.Fragment,{children:[f.jsx(Rd,{in:a==="popover"||!!g&&!y||y&&(!!(g!=null&&g[0])||!!(g!=null&&g[1])),unmountOnExit:!0,children:f.jsx(Xe,{component:"span",sx:{flex:"0 0"},children:f.jsx(ft,{placement:"top",title:C,children:f.jsx(at,Object.assign({disableRipple:!0,onClick:k=>{a==="popover"?b(k.currentTarget):d(!0),queueMicrotask(()=>{var P,M,_,R;(M=(P=u.current[`${h.id}-0`])===null||P===void 0?void 0:P.focus)===null||M===void 0||M.call(P),(R=(_=u.current[`${h.id}-0`])===null||_===void 0?void 0:_.select)===null||R===void 0||R.call(_)}),k.stopPropagation()},size:"small"},s,{sx:k=>Object.assign({height:"16px",ml:"4px",opacity:v?1:.3,p:"8px",transform:"scale(0.75)",transition:"all 150ms ease-in-out",width:"16px"},Se(s==null?void 0:s.sx,k)),children:f.jsx(l,{})}))})})}),f.jsx(XE,{anchorEl:m,anchorOrigin:{horizontal:"center",vertical:"top"},onClick:k=>k.stopPropagation(),onClose:k=>{k.stopPropagation(),b(null)},onKeyDown:k=>k.key==="Enter"&&b(null),open:!!m,slotProps:{paper:{sx:{overflow:"visible"}}},transformOrigin:{horizontal:"center",vertical:"bottom"},children:f.jsx(Xe,{sx:{p:"1rem"},children:f.jsx(uF,{header:i,table:r})})})]})},kre=t=>{var{column:e,table:n,tableHeadCellRef:o}=t,i=Ue(t,["column","table","tableHeadCellRef"]);const{getState:r,options:{enableColumnOrdering:s,muiColumnDragHandleProps:a},setColumnOrder:l,setDraggingColumn:c,setHoveredColumn:u}=n,{columnDef:d}=e,{columnOrder:h,draggingColumn:p,hoveredColumn:g}=r(),m=Object.assign(Object.assign(Object.assign({},Se(a,{column:e,table:n})),Se(d.muiColumnDragHandleProps,{column:e,table:n})),i),b=y=>{var w;(w=m==null?void 0:m.onDragStart)===null||w===void 0||w.call(m,y),c(e);try{y.dataTransfer.setDragImage(o.current,0,0)}catch(C){console.error(C)}},v=y=>{var w;(w=m==null?void 0:m.onDragEnd)===null||w===void 0||w.call(m,y),(g==null?void 0:g.id)==="drop-zone"?e.toggleGrouping():s&&g&&(g==null?void 0:g.id)!==(p==null?void 0:p.id)&&l(U$(e,g,h)),c(null),u(null)};return f.jsx(dC,{iconButtonProps:m,onDragEnd:v,onDragStart:b,table:n})},Pre=t=>{var e,{header:n,table:o}=t,i=Ue(t,["header","table"]);const{getState:r,options:{columnResizeDirection:s,columnResizeMode:a},setColumnSizingInfo:l}=o,{density:c}=r(),{column:u}=n,d=c==="compact"?"-8px":c==="comfortable"?"-16px":"-24px",h=u.columnDef.columnDefType==="display"?"4px":"0";return f.jsx(Xe,{className:"Mui-TableHeadCell-ResizeHandle-Wrapper",onDoubleClick:()=>{l(p=>Object.assign(Object.assign({},p),{isResizingColumn:!1})),u.resetSize()},onMouseDown:n.getResizeHandler(),onTouchStart:n.getResizeHandler(),style:{transform:u.getIsResizing()&&a==="onEnd"?`translateX(${(s==="rtl"?-1:1)*((e=r().columnSizingInfo.deltaOffset)!==null&&e!==void 0?e:0)}px)`:void 0},sx:p=>({"&:active > hr":{backgroundColor:p.palette.info.main,opacity:n.subHeaders.length||a==="onEnd"?1:0},cursor:"col-resize",left:s==="rtl"?h:void 0,ml:s==="rtl"?d:void 0,mr:s==="ltr"?d:void 0,position:"absolute",px:"4px",right:s==="ltr"?h:void 0}),children:f.jsx(gm,{className:"Mui-TableHeadCell-ResizeHandle-Divider",flexItem:!0,orientation:"vertical",sx:p=>Object.assign({borderRadius:"2px",borderWidth:"2px",height:"24px",touchAction:"none",transform:"translateX(4px)",transition:u.getIsResizing()?void 0:"all 150ms ease-in-out",userSelect:"none",zIndex:4},Se(i==null?void 0:i.sx,p))})})},Mre=t=>{var{header:e,table:n}=t,o=Ue(t,["header","table"]);const{getState:i,options:{icons:{ArrowDownwardIcon:r,SyncAltIcon:s},localization:a}}=n,{column:l}=e,{columnDef:c}=l,{isLoading:u,showSkeletons:d,sorting:h}=i(),p=!!l.getIsSorted(),g=u||d?"":l.getIsSorted()?l.getIsSorted()==="desc"?a.sortedByColumnDesc.replace("{column}",c.header):a.sortedByColumnAsc.replace("{column}",c.header):l.getNextSortingOrder()==="desc"?a.sortByColumnDesc.replace("{column}",c.header):a.sortByColumnAsc.replace("{column}",c.header),m=p?l.getIsSorted():void 0;return f.jsx(ft,{placement:"top",title:g,children:f.jsx(loe,{badgeContent:h.length>1?l.getSortIndex()+1:0,overlap:"circular",children:f.jsx(voe,Object.assign({IconComponent:p?r:b=>f.jsx(s,Object.assign({},b,{direction:m,style:{transform:"rotate(-90deg) scaleX(0.9) translateX(-1px)"}})),active:!0,"aria-label":g,direction:m,onClick:b=>{var v;b.stopPropagation(),(v=e.column.getToggleSortingHandler())===null||v===void 0||v(b)}},o,{sx:b=>Object.assign({".MuiTableSortLabel-icon":{color:`${b.palette.mode==="dark"?b.palette.text.primary:b.palette.text.secondary} !important`},flex:"0 0",opacity:p?1:.3,transition:"all 150ms ease-in-out",width:"3ch"},Se(o==null?void 0:o.sx,b))}))})})},_re=t=>{var e,n,o,i,r,s,{header:a,table:l}=t,c=Ue(t,["header","table"]);const u=Dt(),{getState:d,options:{columnFilterDisplayMode:h,columnResizeDirection:p,columnResizeMode:g,enableColumnActions:m,enableColumnDragging:b,enableColumnOrdering:v,enableGrouping:y,enableMultiSort:w,layoutMode:C,muiTableHeadCellProps:k},refs:{tableHeadCellRefs:P},setHoveredColumn:M}=l,{columnSizingInfo:_,density:R,draggingColumn:O,grouping:I,hoveredColumn:$,showColumnFilters:F}=d(),{column:E}=a,{columnDef:D}=E,{columnDefType:j}=D,N=Object.assign(Object.assign(Object.assign({},Se(k,{column:E,table:l})),Se(D.muiTableHeadCellProps,{column:E,table:l})),c),{draggingBorderColor:A}=vi(l,u),L=(m||D.enableColumnActions)&&D.enableColumnActions!==!1,V=b!==!1&&D.enableColumnDragging!==!1&&(b||v&&D.enableColumnOrdering!==!1||y&&D.enableGrouping!==!1&&!I.includes(E.id)),W=x.useMemo(()=>{let U=0;return E.getCanSort()&&(U+=1),L&&(U+=1.75),V&&(U+=1.5),U},[L,V]),Y=x.useMemo(()=>{const U=_.isResizingColumn===E.id&&g==="onChange"&&!a.subHeaders.length,z=U?`2px solid ${A} !important`:(O==null?void 0:O.id)===E.id?`1px dashed ${u.palette.grey[500]}`:($==null?void 0:$.id)===E.id?`2px dashed ${A}`:void 0;return U?p==="ltr"?{borderRight:z}:{borderLeft:z}:z?{borderLeft:z,borderRight:z,borderTop:z}:void 0},[O,$,_.isResizingColumn]),se=U=>{y&&($==null?void 0:$.id)==="drop-zone"&&M(null),v&&O&&j!=="group"&&M(D.enableColumnOrdering!==!1?E:null)},B=(e=Se(D.Header,{column:E,header:a,table:l}))!==null&&e!==void 0?e:D.header;return f.jsxs(Kg,Object.assign({align:j==="group"?"center":u.direction==="rtl"?"right":"left",colSpan:a.colSpan,onDragEnter:se,ref:U=>{U&&(P.current[E.id]=U)}},N,{sx:U=>Object.assign(Object.assign({"& :hover":{".MuiButtonBase-root":{opacity:1}},flexDirection:C!=null&&C.startsWith("grid")?"column":void 0,fontWeight:"bold",overflow:"visible",p:R==="compact"?"0.5rem":R==="comfortable"?j==="display"?"0.75rem":"1rem":j==="display"?"1rem 1.25rem":"1.5rem",pb:j==="display"?0:F||R==="compact"?"0.4rem":"0.6rem",pt:j==="group"||R==="compact"?"0.25rem":R==="comfortable"?".75rem":"1.25rem",userSelect:w&&E.getCanSort()?"none":void 0,verticalAlign:"top",zIndex:E.getIsResizing()||(O==null?void 0:O.id)===E.id?3:E.getIsPinned()&&j!=="group"?2:1},uC({column:E,header:a,table:l,tableCellProps:N,theme:U})),Y),children:[a.isPlaceholder?null:(n=N.children)!==null&&n!==void 0?n:f.jsxs(Xe,{className:"Mui-TableHeadCell-Content",sx:{alignItems:"center",display:"flex",flexDirection:(N==null?void 0:N.align)==="right"?"row-reverse":"row",justifyContent:j==="group"||(N==null?void 0:N.align)==="center"?"center":E.getCanResize()?"space-between":"flex-start",position:"relative",width:"100%"},children:[f.jsxs(Xe,{className:"Mui-TableHeadCell-Content-Labels",onClick:E.getToggleSortingHandler(),sx:{alignItems:"center",cursor:E.getCanSort()&&j!=="group"?"pointer":void 0,display:"flex",flexDirection:(N==null?void 0:N.align)==="right"?"row-reverse":"row",overflow:j==="data"?"hidden":void 0,pl:(N==null?void 0:N.align)==="center"?`${W}rem`:void 0},children:[f.jsx(Xe,{className:"Mui-TableHeadCell-Content-Wrapper",sx:{"&:hover":{textOverflow:"clip"},minWidth:`${Math.min((i=(o=D.header)===null||o===void 0?void 0:o.length)!==null&&i!==void 0?i:0,4)}ch`,overflow:j==="data"?"hidden":void 0,textOverflow:"ellipsis",whiteSpace:((s=(r=D.header)===null||r===void 0?void 0:r.length)!==null&&s!==void 0?s:0)<20?"nowrap":"normal"},title:j==="data"?D.header:void 0,children:B}),E.getCanFilter()&&f.jsx(Sre,{header:a,table:l}),E.getCanSort()&&f.jsx(Mre,{header:a,table:l})]}),j!=="group"&&f.jsxs(Xe,{className:"Mui-TableHeadCell-Content-Actions",sx:{whiteSpace:"nowrap"},children:[V&&f.jsx(kre,{column:E,table:l,tableHeadCellRef:{current:P.current[E.id]}}),L&&f.jsx(yre,{header:a,table:l})]}),E.getCanResize()&&f.jsx(Pre,{header:a,table:l})]}),h==="subheader"&&E.getCanFilter()&&f.jsx(uF,{header:a,table:l})]}))},Rre=t=>{var{columnVirtualizer:e,headerGroup:n,table:o}=t,i=Ue(t,["columnVirtualizer","headerGroup","table"]);const{options:{layoutMode:r,muiTableHeadRowProps:s}}=o,{virtualColumns:a,virtualPaddingLeft:l,virtualPaddingRight:c}=e??{},u=Object.assign(Object.assign({},Se(s,{headerGroup:n,table:o})),i);return f.jsxs(Gg,Object.assign({},u,{sx:d=>Object.assign({backgroundColor:vi(o,d).baseBackgroundColor,boxShadow:`4px 0 8px ${Le(d.palette.common.black,.1)}`,display:r!=null&&r.startsWith("grid")?"flex":void 0,top:0},Se(u==null?void 0:u.sx,d)),children:[l?f.jsx("th",{style:{display:"flex",width:l}}):null,(a??n.headers).map(d=>{const h=a?n.headers[d.index]:d;return h?f.jsx(_re,{header:h,table:o},h.id):null}),c?f.jsx("th",{style:{display:"flex",width:c}}):null]}))},dF=t=>{var{isTopToolbar:e,table:n}=t,o=Ue(t,["isTopToolbar","table"]);const{getState:i,options:{muiLinearProgressProps:r}}=n,{isSaving:s,showProgressBars:a}=i(),l=Object.assign(Object.assign({},Se(r,{isTopToolbar:e,table:n})),o);return f.jsx(Ch,{in:a!==!1&&(a||s),mountOnEnter:!0,sx:{bottom:e?0:void 0,position:"absolute",top:e?void 0:0,width:"100%"},unmountOnExit:!0,children:f.jsx(Toe,Object.assign({"aria-busy":"true","aria-label":"Loading",sx:{position:"relative"}},l))})},Tre=[5,10,15,20,25,30,50,100],hF=t=>{var{position:e="bottom",table:n}=t,o=Ue(t,["position","table"]);const i=Dt(),{getPrePaginationRowModel:r,getState:s,options:{enableToolbarInternalActions:a,icons:{ChevronLeftIcon:l,ChevronRightIcon:c,FirstPageIcon:u,LastPageIcon:d},localization:h,muiPaginationProps:p,paginationDisplayMode:g,rowCount:m},setPageIndex:b,setPageSize:v}=n,{pagination:{pageIndex:y=0,pageSize:w=10},showGlobalFilter:C}=s(),k=Object.assign(Object.assign({},Se(p,{table:n})),o),P=m??r().rows.length,M=Math.ceil(P/w),_=M>2,R=y*w,O=Math.min(y*w+w,P),I=k??{},{SelectProps:$,disabled:F=!1,rowsPerPageOptions:E=Tre,showFirstButton:D=_,showLastButton:j=_,showRowsPerPage:N=!0}=I,A=Ue(I,["SelectProps","disabled","rowsPerPageOptions","showFirstButton","showLastButton","showRowsPerPage"]),L=y<=0||F,V=O>=P||F;return f.jsxs(Xe,{className:"MuiTablePagination-root",sx:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:"8px",justifyContent:{md:"space-between",sm:"center"},justifySelf:"flex-end",mt:e==="top"&&a&&!C?"3rem":void 0,position:"relative",px:"8px",py:"12px",zIndex:2},children:[N&&f.jsxs(Xe,{sx:{alignItems:"center",display:"flex",gap:"8px"},children:[f.jsx(WE,{htmlFor:"mrt-rows-per-page",sx:{mb:0},children:h.rowsPerPage}),f.jsx(oD,Object.assign({disableUnderline:!0,disabled:F,id:"mrt-rows-per-page",inputProps:{"aria-label":h.rowsPerPage},label:h.rowsPerPage,onChange:W=>v(+W.target.value),sx:{mb:0},value:w,variant:"standard"},$,{children:E.map(W=>{var Y;const se=typeof W!="number"?W.value:W,B=typeof W!="number"?W.label:`${W}`;return(Y=$==null?void 0:$.children)!==null&&Y!==void 0?Y:$!=null&&$.native?f.jsx("option",{value:se,children:B},se):f.jsx(sn,{sx:{m:0},value:se,children:B},se)})}))]}),g==="pages"?f.jsx(Goe,Object.assign({count:M,disabled:F,onChange:(W,Y)=>b(Y-1),page:y+1,renderItem:W=>f.jsx(H$,Object.assign({slots:{first:u,last:d,next:c,previous:l}},W)),showFirstButton:D,showLastButton:j},A)):g==="default"?f.jsxs(f.Fragment,{children:[f.jsx(An,{align:"center",component:"span",sx:{m:"0 4px",minWidth:"8ch"},variant:"body2",children:`${O===0?0:(R+1).toLocaleString()}-${O.toLocaleString()} ${h.of} ${P.toLocaleString()}`}),f.jsxs(Xe,{gap:"xs",children:[D&&f.jsx(ft,{enterDelay:1e3,title:h.goToFirstPage,children:f.jsx("span",{children:f.jsx(at,{"aria-label":h.goToFirstPage,disabled:L,onClick:()=>b(0),size:"small",children:f.jsx(u,Object.assign({},Cf(i)))})})}),f.jsx(ft,{enterDelay:1e3,title:h.goToPreviousPage,children:f.jsx("span",{children:f.jsx(at,{"aria-label":h.goToPreviousPage,disabled:L,onClick:()=>b(y-1),size:"small",children:f.jsx(l,Object.assign({},Cf(i)))})})}),f.jsx(ft,{enterDelay:1e3,title:h.goToNextPage,children:f.jsx("span",{children:f.jsx(at,{"aria-label":h.goToNextPage,disabled:V,onClick:()=>b(y+1),size:"small",children:f.jsx(c,Object.assign({},Cf(i)))})})}),j&&f.jsx(ft,{enterDelay:1e3,title:h.goToLastPage,children:f.jsx("span",{children:f.jsx(at,{"aria-label":h.goToLastPage,disabled:V,onClick:()=>b(M-1),size:"small",children:f.jsx(d,Object.assign({},Cf(i)))})})})]})]}):null]})},j0=t=>{var e,{table:n}=t,o=Ue(t,["table"]);const{getState:i,options:{enableGlobalFilterModes:r,icons:{CloseIcon:s,SearchIcon:a},localization:l,manualFiltering:c,muiSearchTextFieldProps:u},refs:{searchInputRef:d},setGlobalFilter:h}=n,{globalFilter:p,showGlobalFilter:g}=i(),m=Object.assign(Object.assign({},Se(u,{table:n})),o),b=x.useRef(!1),[v,y]=x.useState(null),[w,C]=x.useState(p??""),k=x.useCallback(Ba(R=>{var O;h((O=R.target.value)!==null&&O!==void 0?O:void 0)},c?500:250),[]),P=R=>{C(R.target.value),k(R)},M=R=>{y(R.currentTarget)},_=()=>{C(""),h(void 0)};return x.useEffect(()=>{b.current&&(p===void 0?_():C(p)),b.current=!0},[p]),f.jsxs(Ch,{in:g,mountOnEnter:!0,orientation:"horizontal",unmountOnExit:!0,children:[f.jsx(Oa,Object.assign({inputProps:Object.assign({autoComplete:"new-password"},m.inputProps),onChange:P,placeholder:l.search,size:"small",value:w??"",variant:"outlined"},m,{InputProps:Object.assign(Object.assign({endAdornment:f.jsx(yc,{position:"end",children:f.jsx(ft,{title:(e=l.clearSearch)!==null&&e!==void 0?e:"",children:f.jsx("span",{children:f.jsx(at,{"aria-label":l.clearSearch,disabled:!(w!=null&&w.length),onClick:_,size:"small",children:f.jsx(s,{})})})})}),startAdornment:r?f.jsx(yc,{position:"start",children:f.jsx(ft,{title:l.changeSearchMode,children:f.jsx(at,{"aria-label":l.changeSearchMode,onClick:M,size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:f.jsx(a,{})})})}):f.jsx(a,{style:{marginRight:"4px"}})},m.InputProps),{sx:R=>{var O;return Object.assign({mb:0},Se((O=m==null?void 0:m.InputProps)===null||O===void 0?void 0:O.sx,R))}}),inputRef:R=>{d.current=R,m!=null&&m.inputRef&&(m.inputRef=R)}})),f.jsx(hC,{anchorEl:v,onSelect:_,setAnchorEl:y,table:n})]})},mC=t=>{var e,n,o,{stackAlertBanner:i,table:r}=t,s=Ue(t,["stackAlertBanner","table"]);const{getPrePaginationRowModel:a,getState:l,options:{enableRowSelection:c,enableSelectAll:u,localization:d,muiToolbarAlertBannerChipProps:h,muiToolbarAlertBannerProps:p,positionToolbarAlertBanner:g,renderToolbarAlertBannerContent:m,rowCount:b},refs:{tablePaperRef:v}}=r,{density:y,grouping:w,rowSelection:C,showAlertBanner:k}=l(),P=Object.assign(Object.assign({},Se(p,{table:r})),s),M=Se(h,{table:r}),_=x.useMemo(()=>Object.values(C).filter(Boolean).length,[C]),R=_>0?(n=(e=d.selectedCountOfRowCountRowsSelected)===null||e===void 0?void 0:e.replace("{selectedCount}",_.toLocaleString()))===null||n===void 0?void 0:n.replace("{rowCount}",(b??a().rows.length).toString()):null,O=w.length>0?f.jsxs("span",{children:[d.groupedBy," ",w.map((I,$)=>f.jsxs(x.Fragment,{children:[$>0?d.thenBy:"",f.jsx(Td,Object.assign({label:r.getColumn(I).columnDef.header,onDelete:()=>r.getColumn(I).toggleGrouping()},M))]},`${$}-${I}`))]}):null;return f.jsx(Ch,{in:k||!!R||!!O,timeout:i?200:0,children:f.jsx(qt,Object.assign({color:"info",icon:!1},P,{sx:I=>{var $,F;return Object.assign({"& .MuiAlert-message":{maxWidth:`calc(${(F=($=v.current)===null||$===void 0?void 0:$.clientWidth)!==null&&F!==void 0?F:360}px - 1rem)`,width:"100%"},borderRadius:0,fontSize:"1rem",left:0,mb:i?0:g==="bottom"?"-1rem":void 0,p:0,position:"relative",right:0,top:0,width:"100%",zIndex:2},Se(P==null?void 0:P.sx,I))},children:(o=m==null?void 0:m({groupedAlert:O,selectedAlert:R,table:r}))!==null&&o!==void 0?o:f.jsxs(f.Fragment,{children:[(P==null?void 0:P.title)&&f.jsx(die,{children:P.title}),f.jsxs(Sh,{sx:{p:g!=="head-overlay"?"0.5rem 1rem":y==="spacious"?"0.75rem 1.25rem":y==="comfortable"?"0.5rem 0.75rem":"0.25rem 0.5rem"},children:[P==null?void 0:P.children,(P==null?void 0:P.children)&&(R||O)&&f.jsx("br",{}),f.jsxs(Xe,{sx:{display:"flex"},children:[c&&u&&g==="head-overlay"&&f.jsx(Ny,{selectAll:!0,table:r})," ",R]}),R&&O&&f.jsx("br",{}),O]})]})}))})},fF=t=>{var e,n,{table:o}=t,i=Ue(t,["table"]);const{getState:r,options:{enableGrouping:s,localization:a},setHoveredColumn:l,setShowToolbarDropZone:c}=o,{draggingColumn:u,grouping:d,hoveredColumn:h,showToolbarDropZone:p}=r(),g=m=>{l({id:"drop-zone"})};return x.useEffect(()=>{var m;((m=o.options.state)===null||m===void 0?void 0:m.showToolbarDropZone)!==void 0&&c(!!s&&!!u&&u.columnDef.enableGrouping!==!1&&!d.includes(u.id))},[s,u,d]),f.jsx(Wa,{in:p,children:f.jsx(Xe,Object.assign({className:"Mui-ToolbarDropZone",onDragEnter:g},i,{sx:m=>Object.assign({alignItems:"center",backdropFilter:"blur(4px)",backgroundColor:Le(m.palette.info.main,(h==null?void 0:h.id)==="drop-zone"?.2:.1),border:`dashed ${m.palette.info.main} 2px`,boxSizing:"border-box",display:"flex",height:"100%",justifyContent:"center",position:"absolute",width:"100%",zIndex:4},Se(i==null?void 0:i.sx,m)),children:f.jsx(An,{fontStyle:"italic",children:a.dropToGroupBy.replace("{column}",(n=(e=u==null?void 0:u.columnDef)===null||e===void 0?void 0:e.header)!==null&&n!==void 0?n:"")})}))})},Ore=t=>{var{table:e}=t,n=Ue(t,["table"]);const{getState:o,options:{enablePagination:i,muiBottomToolbarProps:r,positionPagination:s,positionToolbarAlertBanner:a,positionToolbarDropZone:l,renderBottomToolbarCustomActions:c},refs:{bottomToolbarRef:u}}=e,{isFullScreen:d}=o(),h=Rs("(max-width:720px)"),p=Object.assign(Object.assign({},Se(r,{table:e})),n),g=h||!!c;return f.jsxs(Xe,Object.assign({},p,{ref:m=>{m&&(u.current=m,p!=null&&p.ref&&(p.ref.current=m))},sx:m=>Object.assign(Object.assign(Object.assign({},Q$({table:e,theme:m})),{bottom:d?"0":void 0,boxShadow:`0 1px 2px -1px ${Le(m.palette.grey[700],.5)} inset`,left:0,position:d?"fixed":"relative",right:0}),Se(p==null?void 0:p.sx,m)),children:[f.jsx(dF,{isTopToolbar:!1,table:e}),a==="bottom"&&f.jsx(mC,{stackAlertBanner:g,table:e}),["both","bottom"].includes(l??"")&&f.jsx(fF,{table:e}),f.jsxs(Xe,{sx:{alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",p:"0.5rem",width:"100%"},children:[c?c({table:e}):f.jsx("span",{}),f.jsx(Xe,{sx:{display:"flex",justifyContent:"flex-end",position:g?"relative":"absolute",right:0,top:0},children:i&&["both","bottom"].includes(s??"")&&f.jsx(hF,{position:"bottom",table:e})})]})]}))},Ire=t=>{var{column:e,table:n}=t,o=Ue(t,["column","table"]);const{options:{icons:{PushPinIcon:i},localization:r}}=n,s=a=>{e.pin(a)};return f.jsx(Xe,Object.assign({},o,{sx:a=>Object.assign({minWidth:"70px",textAlign:"center"},Se(o==null?void 0:o.sx,a)),children:e.getIsPinned()?f.jsx(ft,{title:r.unpin,children:f.jsx(at,{onClick:()=>s(!1),size:"small",children:f.jsx(i,{})})}):f.jsxs(f.Fragment,{children:[f.jsx(ft,{title:r.pinToLeft,children:f.jsx(at,{onClick:()=>s("left"),size:"small",children:f.jsx(i,{style:{transform:"rotate(90deg)"}})})}),f.jsx(ft,{title:r.pinToRight,children:f.jsx(at,{onClick:()=>s("right"),size:"small",children:f.jsx(i,{style:{transform:"rotate(-90deg)"}})})})]})}))},pF=t=>{var e,{allColumns:n,column:o,hoveredColumn:i,setHoveredColumn:r,table:s}=t,a=Ue(t,["allColumns","column","hoveredColumn","setHoveredColumn","table"]);const{getState:l,options:{enableColumnOrdering:c,enableColumnPinning:u,enableHiding:d,localization:h},setColumnOrder:p}=s,{columnOrder:g}=l(),{columnDef:m}=o,{columnDefType:b}=m,v=b!=="group"&&o.getIsVisible()||b==="group"&&o.getLeafColumns().some(R=>R.getIsVisible()),y=R=>{var O,I;b==="group"?(I=(O=R==null?void 0:R.columns)===null||O===void 0?void 0:O.forEach)===null||I===void 0||I.call(O,$=>{$.toggleVisibility(!v)}):R.toggleVisibility()},w=x.useRef(null),[C,k]=x.useState(!1),P=R=>{k(!0);try{R.dataTransfer.setDragImage(w.current,0,0)}catch(O){console.error(O)}},M=R=>{k(!1),r(null),i&&p(U$(o,i,g))},_=R=>{!C&&m.enableColumnOrdering!==!1&&r(o)};return!m.header||m.visibleInShowHideMenu===!1?null:f.jsxs(f.Fragment,{children:[f.jsx(sn,Object.assign({disableRipple:!0,onDragEnter:_,ref:w},a,{sx:R=>Object.assign({alignItems:"center",justifyContent:"flex-start",my:0,opacity:C?.5:1,outline:C?`2px dashed ${R.palette.grey[500]}`:(i==null?void 0:i.id)===o.id?`2px dashed ${vi(s,R).draggingBorderColor}`:"none",outlineOffset:"-2px",pl:`${(o.depth+.5)*2}rem`,py:"6px"},Se(a==null?void 0:a.sx,R)),children:f.jsxs(Xe,{sx:{display:"flex",flexWrap:"nowrap",gap:"8px"},children:[b!=="group"&&c&&!n.some(R=>R.columnDef.columnDefType==="group")&&(m.enableColumnOrdering!==!1?f.jsx(dC,{onDragEnd:M,onDragStart:P,table:s}):f.jsx(Xe,{sx:{width:"28px"}})),u&&(o.getCanPin()?f.jsx(Ire,{column:o,table:s}):f.jsx(Xe,{sx:{width:"70px"}})),d?f.jsx(zD,{checked:v,componentsProps:{typography:{sx:{mb:0,opacity:b!=="display"?1:.5}}},control:f.jsx(ft,{enterDelay:1e3,enterNextDelay:1e3,title:h.toggleVisibility,children:f.jsx(wie,{})}),disabled:!o.getCanHide(),label:m.header,onChange:()=>y(o)}):f.jsx(An,{sx:{alignSelf:"center"},children:m.header})]})})),(e=o.columns)===null||e===void 0?void 0:e.map((R,O)=>f.jsx(pF,{allColumns:n,column:R,hoveredColumn:i,setHoveredColumn:r,table:s},`${O}-${R.id}`))]})},Ere=t=>{var{anchorEl:e,setAnchorEl:n,table:o}=t,i=Ue(t,["anchorEl","setAnchorEl","table"]);const{getAllColumns:r,getAllLeafColumns:s,getCenterLeafColumns:a,getIsAllColumnsVisible:l,getIsSomeColumnsPinned:c,getIsSomeColumnsVisible:u,getLeftLeafColumns:d,getRightLeafColumns:h,getState:p,options:{enableColumnOrdering:g,enableColumnPinning:m,enableHiding:b,localization:v}}=o,{columnOrder:y,columnPinning:w,density:C}=p(),k=R=>{s().filter(O=>O.columnDef.enableHiding!==!1).forEach(O=>O.toggleVisibility(R))},P=x.useMemo(()=>{const R=r();return y.length>0&&!R.some(O=>O.columnDef.columnDefType==="group")?[...d(),...Array.from(new Set(y)).map(O=>a().find(I=>(I==null?void 0:I.id)===O)),...h()].filter(Boolean):R},[y,w,r(),a(),d(),h()]),[M,_]=x.useState(null);return f.jsxs(wh,Object.assign({MenuListProps:{dense:C==="compact"},anchorEl:e,onClose:()=>n(null),open:!!e},i,{children:[f.jsxs(Xe,{sx:{display:"flex",justifyContent:"space-between",p:"0.5rem",pt:0},children:[b&&f.jsx(ii,{disabled:!u(),onClick:()=>k(!1),children:v.hideAll}),g&&f.jsx(ii,{onClick:()=>o.setColumnOrder(q$(o.options)),children:v.resetOrder}),m&&f.jsx(ii,{disabled:!c(),onClick:()=>o.resetColumnPinning(!0),children:v.unpinAll}),b&&f.jsx(ii,{disabled:l(),onClick:()=>k(!0),children:v.showAll})]}),f.jsx(gm,{}),P.map((R,O)=>f.jsx(pF,{allColumns:P,column:R,hoveredColumn:M,setHoveredColumn:_,table:o},`${O}-${R.id}`))]}))},Dre=t=>{var e,{table:n}=t,o=Ue(t,["table"]);const{options:{icons:{ViewColumnIcon:i},localization:r}}=n,[s,a]=x.useState(null),l=c=>{a(c.currentTarget)};return f.jsxs(f.Fragment,{children:[f.jsx(ft,{title:(e=o==null?void 0:o.title)!==null&&e!==void 0?e:r.showHideColumns,children:f.jsx(at,Object.assign({"aria-label":r.showHideColumns,onClick:l},o,{title:void 0,children:f.jsx(i,{})}))}),s&&f.jsx(Ere,{anchorEl:s,setAnchorEl:a,table:n})]})},$re=t=>{var e,{table:n}=t,o=Ue(t,["table"]);const{getState:i,options:{icons:{DensityLargeIcon:r,DensityMediumIcon:s,DensitySmallIcon:a},localization:l},setDensity:c}=n,{density:u}=i(),d=()=>{c(u==="comfortable"?"compact":u==="compact"?"spacious":"comfortable")};return f.jsx(ft,{title:(e=o==null?void 0:o.title)!==null&&e!==void 0?e:l.toggleDensity,children:f.jsx(at,Object.assign({"aria-label":l.toggleDensity,onClick:d},o,{title:void 0,children:u==="compact"?f.jsx(a,{}):u==="comfortable"?f.jsx(s,{}):f.jsx(r,{})}))})},Fre=t=>{var e,{table:n}=t,o=Ue(t,["table"]);const{getState:i,options:{icons:{FilterListIcon:r,FilterListOffIcon:s},localization:a},setShowColumnFilters:l}=n,{showColumnFilters:c}=i(),u=()=>{l(!c)};return f.jsx(ft,{title:(e=o==null?void 0:o.title)!==null&&e!==void 0?e:a.showHideFilters,children:f.jsx(at,Object.assign({"aria-label":a.showHideFilters,onClick:u},o,{title:void 0,children:c?f.jsx(s,{}):f.jsx(r,{})}))})},jre=t=>{var e,{table:n}=t,o=Ue(t,["table"]);const{getState:i,options:{icons:{FullscreenExitIcon:r,FullscreenIcon:s},localization:a},setIsFullScreen:l}=n,{isFullScreen:c}=i(),[u,d]=x.useState(!1),h=()=>{d(!1),l(!c)};return f.jsx(ft,{open:u,title:(e=o==null?void 0:o.title)!==null&&e!==void 0?e:a.toggleFullScreen,children:f.jsx(at,Object.assign({"aria-label":a.toggleFullScreen,onClick:h,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)},o,{title:void 0,children:c?f.jsx(r,{}):f.jsx(s,{})}))})},Lre=t=>{var e,n,{table:o}=t,i=Ue(t,["table"]);const{getState:r,options:{icons:{SearchIcon:s,SearchOffIcon:a},localization:l},refs:{searchInputRef:c},setShowGlobalFilter:u}=o,{globalFilter:d,showGlobalFilter:h}=r(),p=()=>{u(!h),queueMicrotask(()=>{var g;return(g=c.current)===null||g===void 0?void 0:g.focus()})};return f.jsx(ft,{title:(e=i==null?void 0:i.title)!==null&&e!==void 0?e:l.showHideSearch,children:f.jsx(at,Object.assign({"aria-label":(n=i==null?void 0:i.title)!==null&&n!==void 0?n:l.showHideSearch,disabled:!!d,onClick:p},i,{title:void 0,children:h?f.jsx(a,{}):f.jsx(s,{})}))})},Are=t=>{var e,{table:n}=t,o=Ue(t,["table"]);const{options:{columnFilterDisplayMode:i,enableColumnFilters:r,enableColumnOrdering:s,enableColumnPinning:a,enableDensityToggle:l,enableFilters:c,enableFullScreenToggle:u,enableGlobalFilter:d,enableHiding:h,initialState:p,renderToolbarInternalActions:g}}=n;return f.jsx(Xe,Object.assign({},o,{sx:m=>Object.assign({alignItems:"center",display:"flex",zIndex:3},Se(o==null?void 0:o.sx,m)),children:(e=g==null?void 0:g({table:n}))!==null&&e!==void 0?e:f.jsxs(f.Fragment,{children:[c&&d&&!(p!=null&&p.showGlobalFilter)&&f.jsx(Lre,{table:n}),c&&r&&i!=="popover"&&f.jsx(Fre,{table:n}),(h||s||a)&&f.jsx(Dre,{table:n}),l&&f.jsx($re,{table:n}),u&&f.jsx(jre,{table:n})]})}))},Nre=({table:t})=>{var e;const{getState:n,options:{enableGlobalFilter:o,enablePagination:i,enableToolbarInternalActions:r,muiTopToolbarProps:s,positionGlobalFilter:a,positionPagination:l,positionToolbarAlertBanner:c,positionToolbarDropZone:u,renderTopToolbarCustomActions:d},refs:{topToolbarRef:h}}=t,{isFullScreen:p,showGlobalFilter:g}=n(),m=Rs("(max-width:720px)"),b=Rs("(max-width:1024px)"),v=Se(s,{table:t}),y=m||!!d||g&&b,w={sx:b?void 0:{zIndex:2},table:t};return f.jsxs(Xe,Object.assign({},v,{ref:C=>{h.current=C,v!=null&&v.ref&&(v.ref.current=C)},sx:C=>Object.assign(Object.assign(Object.assign({},Q$({table:t,theme:C})),{position:p?"sticky":"relative",top:p?"0":void 0}),Se(v==null?void 0:v.sx,C)),children:[c==="top"&&f.jsx(mC,{stackAlertBanner:y,table:t}),["both","top"].includes(u??"")&&f.jsx(fF,{table:t}),f.jsxs(Xe,{sx:{alignItems:"flex-start",boxSizing:"border-box",display:"flex",gap:"0.5rem",justifyContent:"space-between",p:"0.5rem",position:y?"relative":"absolute",right:0,top:0,width:"100%"},children:[o&&a==="left"&&f.jsx(j0,Object.assign({},w)),(e=d==null?void 0:d({table:t}))!==null&&e!==void 0?e:f.jsx("span",{}),r?f.jsxs(Xe,{sx:{alignItems:"center",display:"flex",flexWrap:"wrap-reverse",gap:"0.5rem",justifyContent:"flex-end"},children:[o&&a==="right"&&f.jsx(j0,Object.assign({},w)),f.jsx(Are,{table:t})]}):o&&a==="right"&&f.jsx(j0,Object.assign({},w))]}),i&&["both","top"].includes(l??"")&&f.jsx(hF,{position:"top",table:t}),f.jsx(dF,{isTopToolbar:!0,table:t})]}))},zre=t=>{var{columnVirtualizer:e,table:n}=t,o=Ue(t,["columnVirtualizer","table"]);const{getHeaderGroups:i,getSelectedRowModel:r,getState:s,options:{enableStickyHeader:a,layoutMode:l,muiTableHeadProps:c,positionToolbarAlertBanner:u},refs:{tableHeadRef:d}}=n,{isFullScreen:h,showAlertBanner:p}=s(),g=Object.assign(Object.assign({},Se(c,{table:n})),o),m=a||h;return f.jsx(wY,Object.assign({},g,{ref:b=>{d.current=b,g!=null&&g.ref&&(g.ref.current=b)},sx:b=>Object.assign({display:l!=null&&l.startsWith("grid")?"grid":void 0,opacity:.97,position:m?"sticky":"relative",top:m&&(l!=null&&l.startsWith("grid"))?0:void 0,zIndex:m?2:void 0},Se(g==null?void 0:g.sx,b)),children:u==="head-overlay"&&(p||r().rows.length>0)?f.jsx("tr",{style:{display:l!=null&&l.startsWith("grid")?"grid":void 0},children:f.jsx("th",{colSpan:n.getVisibleLeafColumns().length,style:{display:l!=null&&l.startsWith("grid")?"grid":void 0,padding:0},children:f.jsx(mC,{table:n})})}):i().map(b=>f.jsx(Rre,{columnVirtualizer:e,headerGroup:b,table:n},b.id))}))},Vre=t=>{var{table:e}=t,n=Ue(t,["table"]);const{getFlatHeaders:o,getState:i,options:{columns:r,enableStickyHeader:s,enableTableFooter:a,enableTableHead:l,layoutMode:c,memoMode:u,muiTableProps:d}}=e,{columnSizing:h,columnSizingInfo:p,columnVisibility:g,isFullScreen:m}=i(),b=Object.assign(Object.assign({},Se(d,{table:e})),n),v=x.useMemo(()=>{const C=o(),k={};for(let P=0;PObject.assign({borderCollapse:"separate",display:c!=null&&c.startsWith("grid")?"grid":void 0},Se(b==null?void 0:b.sx,C)),children:[l&&f.jsx(zre,Object.assign({},w)),u==="table-body"||p.isResizingColumn?f.jsx(mre,Object.assign({},w)):f.jsx(cF,Object.assign({},w)),a&&f.jsx(bre,Object.assign({},w))]}))},Bre=t=>{var{table:e}=t,n=Ue(t,["table"]);const{options:{localization:o,muiCircularProgressProps:i}}=e,r=Object.assign(Object.assign({},Se(i,{table:e})),n);return f.jsx(Xe,{sx:s=>({alignItems:"center",backgroundColor:Le(vi(e,s).baseBackgroundColor,.5),bottom:0,display:"flex",justifyContent:"center",left:0,maxHeight:"100vh",position:"absolute",right:0,top:0,width:"100%",zIndex:2}),children:f.jsx(Ey,Object.assign({"aria-label":o.noRecordsToDisplay,id:"mrt-progress"},r))})},Hre=t=>{var e,{open:n,table:o}=t,i=Ue(t,["open","table"]);const{getState:r,options:{localization:s,muiCreateRowModalProps:a,muiEditRowDialogProps:l,onCreatingRowCancel:c,onEditingRowCancel:u,renderCreateRowDialogContent:d,renderEditRowDialogContent:h},setCreatingRow:p,setEditingRow:g}=o,{creatingRow:m,editingRow:b}=r(),v=m??b,y=Object.assign(Object.assign(Object.assign({},Se(l,{row:v,table:o})),m&&Se(a,{row:v,table:o})),i),w=v.getAllCells().filter(C=>C.column.columnDef.columnDefType==="data").map(C=>f.jsx(X$,{cell:C,table:o},C.id));return f.jsx(r$,Object.assign({fullWidth:!0,maxWidth:"xs",onClose:(C,k)=>{var P;m?(c==null||c({row:v,table:o}),p(null)):(u==null||u({row:v,table:o}),g(null)),v._valuesCache={},(P=y.onClose)===null||P===void 0||P.call(y,C,k)},open:n},y,{children:(e=m&&(d==null?void 0:d({internalEditComponents:w,row:v,table:o}))||(h==null?void 0:h({internalEditComponents:w,row:v,table:o})))!==null&&e!==void 0?e:f.jsxs(f.Fragment,{children:[f.jsx(xm,{sx:{textAlign:"center"},children:s.edit}),f.jsx(Ed,{children:f.jsx("form",{onSubmit:C=>C.preventDefault(),children:f.jsx(Sh,{sx:{gap:"32px",paddingTop:"16px",width:"100%"},children:w})})}),f.jsx($d,{sx:{p:"1.25rem"},children:f.jsx(jd,{row:v,table:o,variant:"text"})})]})}))},Wre=typeof window<"u"?x.useLayoutEffect:x.useEffect,Ure=t=>{var{table:e}=t,n=Ue(t,["table"]);const{getState:o,options:{createDisplayMode:i,editDisplayMode:r,enableStickyHeader:s,muiTableContainerProps:a},refs:{bottomToolbarRef:l,tableContainerRef:c,topToolbarRef:u}}=e,{creatingRow:d,editingRow:h,isFullScreen:p,isLoading:g,showLoadingOverlay:m}=o(),b=m!==!1&&(g||m),[v,y]=x.useState(0),w=Object.assign(Object.assign({},Se(a,{table:e})),n);Wre(()=>{var P,M,_,R;const O=typeof document<"u"&&(M=(P=u.current)===null||P===void 0?void 0:P.offsetHeight)!==null&&M!==void 0?M:0,I=typeof document<"u"&&(R=(_=l==null?void 0:l.current)===null||_===void 0?void 0:_.offsetHeight)!==null&&R!==void 0?R:0;y(O+I)});const C=i==="modal"&&d,k=r==="modal"&&h;return f.jsxs(Y4,Object.assign({"aria-busy":b,"aria-describedby":b?"mrt-progress":void 0},w,{ref:P=>{P&&(c.current=P,w!=null&&w.ref&&(w.ref.current=P))},style:Object.assign({maxHeight:p?`calc(100vh - ${v}px)`:void 0},w==null?void 0:w.style),sx:P=>Object.assign({maxHeight:s?`clamp(350px, calc(100vh - ${v}px), 9999px)`:void 0,maxWidth:"100%",overflow:"auto",position:"relative"},Se(w==null?void 0:w.sx,P)),children:[b?f.jsx(Bre,{table:e}):null,f.jsx(Vre,{table:e}),(C||k)&&f.jsx(Hre,{open:!0,table:e})]}))},qre=t=>{var e,n,{table:o}=t,i=Ue(t,["table"]);const{getState:r,options:{enableBottomToolbar:s,enableTopToolbar:a,muiTablePaperProps:l,renderBottomToolbar:c,renderTopToolbar:u},refs:{tablePaperRef:d}}=o,{isFullScreen:h}=r(),p=Object.assign(Object.assign({},Se(l,{table:o})),i);return f.jsxs(js,Object.assign({elevation:2},p,{ref:g=>{d.current=g,p!=null&&p.ref&&(p.ref.current=g)},style:Object.assign(Object.assign({},h?{bottom:0,height:"100vh",left:0,margin:0,maxHeight:"100vh",maxWidth:"100vw",padding:0,position:"fixed",right:0,top:0,width:"100vw",zIndex:999}:{}),p==null?void 0:p.style),sx:g=>Object.assign({backgroundColor:vi(o,g).baseBackgroundColor,backgroundImage:"unset",overflow:"hidden",transition:"all 100ms ease-in-out"},Se(p==null?void 0:p.sx,g)),children:[a&&((e=Se(u,{table:o}))!==null&&e!==void 0?e:f.jsx(Nre,{table:o})),f.jsx(Ure,{table:o}),s&&((n=Se(c,{table:o}))!==null&&n!==void 0?n:f.jsx(Ore,{table:o}))]}))},Rh=t=>lre(pre(t)),Gre=t=>t.table!==void 0,pv=t=>{let e;return Gre(t)?e=t.table:e=Rh(t),f.jsx(qre,{table:e})},Kre=({data:t,columns:e})=>{const n=Rh({columns:e,data:t,enablePagination:!1,enableSorting:!0,enableGlobalFilter:!1,enableColumnFilters:!1,enableBottomToolbar:!1,initialState:{density:"compact"},muiLinearProgressProps:{color:"info"},muiCircularProgressProps:{color:"info"},rowCount:t.length,enableTopToolbar:!1});return f.jsx(pv,{table:n})},Yre=({data:t,columns:e})=>f.jsx("div",{className:"mx-auto overflow-hidden text-gray-900 border border-gray-300 dark:border-gray-600 rounded-md",children:f.jsx(Kre,{data:t,columns:e})}),Qre=({companyOne:t,companyTwo:e,handleCompanyOneChange:n,handleCompanyTwoChange:o})=>f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"grid gap-6 mb-6 md:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Company Symbol (1)"}),f.jsx("input",{type:"text",onChange:n,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"SYMBOL"})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"last_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Company Symbol (2)"}),f.jsx("input",{type:"text",onChange:o,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"SYMBOL"})]})]}),f.jsx("div",{className:"relative overflow-x-auto shadow-md sm:rounded-lg",children:f.jsxs("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",children:[f.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",className:"px-6 py-3",children:"Metrics"}),f.jsx("th",{scope:"col",className:"px-6 py-3",children:t.symbol==="*"?"Company One":t.symbol}),f.jsx("th",{scope:"col",className:"px-6 py-3",children:e.symbol==="*"?"Company Two":e.symbol})]})}),f.jsxs("tbody",{children:[f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Name"}),f.jsx("td",{className:"px-6 py-2",children:t.name}),f.jsx("td",{className:"px-6 py-2",children:e.name})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Sector"}),f.jsx("td",{className:"px-6 py-2",children:t.sector}),f.jsx("td",{className:"px-6 py-2",children:e.sector})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Open"}),f.jsx("td",{className:"px-6 py-2",children:t.open}),f.jsx("td",{className:"px-6 py-2",children:e.open})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"High"}),f.jsx("td",{className:"px-6 py-2",children:t.high}),f.jsx("td",{className:"px-6 py-2",children:e.high})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Low"}),f.jsx("td",{className:"px-6 py-2",children:t.low}),f.jsx("td",{className:"px-6 py-2",children:e.low})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Close"}),f.jsx("td",{className:"px-6 py-2",children:t.close}),f.jsx("td",{className:"px-6 py-2",children:e.close})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Percentage Change"}),f.jsx("td",{className:"px-6 py-2",children:t.percentage_change}),f.jsx("td",{className:"px-6 py-2",children:e.percentage_change})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Volume"}),f.jsx("td",{className:"px-6 py-2",children:t.volume}),f.jsx("td",{className:"px-6 py-2",children:e.volume})]}),f.jsxs("tr",{className:"bg-white border-b dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600",children:[f.jsx("th",{scope:"row",className:"px-6 py-2 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:"Data as of"}),f.jsx("td",{className:"px-6 py-2",children:t.date}),f.jsx("td",{className:"px-6 py-2",children:e.date})]})]})]})})]});var Nc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cc=typeof window>"u"||"Deno"in window;function Jo(){}function Xre(t,e){return typeof t=="function"?t(e):t}function Vy(t){return typeof t=="number"&&t>=0&&t!==1/0}function mF(t,e){return Math.max(t+(e||0)-Date.now(),0)}function qM(t,e){const{type:n="all",exact:o,fetchStatus:i,predicate:r,queryKey:s,stale:a}=t;if(s){if(o){if(e.queryHash!==gC(s,e.options))return!1}else if(!Ld(e.queryKey,s))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||typeof i<"u"&&i!==e.state.fetchStatus||r&&!r(e))}function GM(t,e){const{exact:n,status:o,predicate:i,mutationKey:r}=t;if(r){if(!e.options.mutationKey)return!1;if(n){if(Ia(e.options.mutationKey)!==Ia(r))return!1}else if(!Ld(e.options.mutationKey,r))return!1}return!(o&&e.state.status!==o||i&&!i(e))}function gC(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ia)(t)}function Ia(t){return JSON.stringify(t,(e,n)=>By(n)?Object.keys(n).sort().reduce((o,i)=>(o[i]=n[i],o),{}):n)}function Ld(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!Ld(t[n],e[n])):!1}function gF(t,e){if(t===e)return t;const n=KM(t)&&KM(e);if(n||By(t)&&By(e)){const o=n?t:Object.keys(t),i=o.length,r=n?e:Object.keys(e),s=r.length,a=n?[]:{};let l=0;for(let c=0;c"u")return!0;const n=e.prototype;return!(!YM(n)||!n.hasOwnProperty("isPrototypeOf"))}function YM(t){return Object.prototype.toString.call(t)==="[object Object]"}function Jre(t){return new Promise(e=>{setTimeout(e,t)})}function Hy(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?gF(t,e):e}function Zre(t,e,n=0){const o=[...t,e];return n&&o.length>n?o.slice(1):o}function ese(t,e,n=0){const o=[e,...t];return n&&o.length>n?o.slice(0,-1):o}var la,Yr,Wl,jT,tse=(jT=class extends Nc{constructor(){super();He(this,la,void 0);He(this,Yr,void 0);He(this,Wl,void 0);Fe(this,Wl,e=>{if(!Cc&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){K(this,Yr)||this.setEventListener(K(this,Wl))}onUnsubscribe(){var e;this.hasListeners()||((e=K(this,Yr))==null||e.call(this),Fe(this,Yr,void 0))}setEventListener(e){var n;Fe(this,Wl,e),(n=K(this,Yr))==null||n.call(this),Fe(this,Yr,e(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(e){K(this,la)!==e&&(Fe(this,la,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof K(this,la)=="boolean"?K(this,la):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},la=new WeakMap,Yr=new WeakMap,Wl=new WeakMap,jT),Sm=new tse,Ul,Qr,ql,LT,nse=(LT=class extends Nc{constructor(){super();He(this,Ul,!0);He(this,Qr,void 0);He(this,ql,void 0);Fe(this,ql,e=>{if(!Cc&&window.addEventListener){const n=()=>e(!0),o=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",o)}}})}onSubscribe(){K(this,Qr)||this.setEventListener(K(this,ql))}onUnsubscribe(){var e;this.hasListeners()||((e=K(this,Qr))==null||e.call(this),Fe(this,Qr,void 0))}setEventListener(e){var n;Fe(this,ql,e),(n=K(this,Qr))==null||n.call(this),Fe(this,Qr,e(this.setOnline.bind(this)))}setOnline(e){K(this,Ul)!==e&&(Fe(this,Ul,e),this.listeners.forEach(o=>{o(e)}))}isOnline(){return K(this,Ul)}},Ul=new WeakMap,Qr=new WeakMap,ql=new WeakMap,LT),km=new nse;function ose(t){return Math.min(1e3*2**t,3e4)}function mv(t){return(t??"online")==="online"?km.isOnline():!0}var vF=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function L0(t){return t instanceof vF}function bF(t){let e=!1,n=0,o=!1,i,r,s;const a=new Promise((b,v)=>{r=b,s=v}),l=b=>{var v;o||(p(new vF(b)),(v=t.abort)==null||v.call(t))},c=()=>{e=!0},u=()=>{e=!1},d=()=>!Sm.isFocused()||t.networkMode!=="always"&&!km.isOnline(),h=b=>{var v;o||(o=!0,(v=t.onSuccess)==null||v.call(t,b),i==null||i(),r(b))},p=b=>{var v;o||(o=!0,(v=t.onError)==null||v.call(t,b),i==null||i(),s(b))},g=()=>new Promise(b=>{var v;i=y=>{const w=o||!d();return w&&b(y),w},(v=t.onPause)==null||v.call(t)}).then(()=>{var b;i=void 0,o||(b=t.onContinue)==null||b.call(t)}),m=()=>{if(o)return;let b;try{b=t.fn()}catch(v){b=Promise.reject(v)}Promise.resolve(b).then(h).catch(v=>{var P;if(o)return;const y=t.retry??(Cc?0:3),w=t.retryDelay??ose,C=typeof w=="function"?w(n,v):w,k=y===!0||typeof y=="number"&&n{if(d())return g()}).then(()=>{e?p(v):m()})})};return mv(t.networkMode)?m():g().then(m),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:c,continueRetry:u}}function ise(){let t=[],e=0,n=h=>{h()},o=h=>{h()},i=h=>setTimeout(h,0);const r=h=>{i=h},s=h=>{let p;e++;try{p=h()}finally{e--,e||c()}return p},a=h=>{e?t.push(h):i(()=>{n(h)})},l=h=>(...p)=>{a(()=>{h(...p)})},c=()=>{const h=t;t=[],h.length&&i(()=>{o(()=>{h.forEach(p=>{n(p)})})})};return{batch:s,batchCalls:l,schedule:a,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{o=h},setScheduler:r}}var yn=ise(),ca,AT,yF=(AT=class{constructor(){He(this,ca,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vy(this.gcTime)&&Fe(this,ca,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Cc?1/0:5*60*1e3))}clearGcTimeout(){K(this,ca)&&(clearTimeout(K(this,ca)),Fe(this,ca,void 0))}},ca=new WeakMap,AT),Gl,Kl,Yo,Xr,Qo,kn,Kd,ua,Yl,yp,wi,dr,NT,rse=(NT=class extends yF{constructor(e){super();He(this,Yl);He(this,wi);He(this,Gl,void 0);He(this,Kl,void 0);He(this,Yo,void 0);He(this,Xr,void 0);He(this,Qo,void 0);He(this,kn,void 0);He(this,Kd,void 0);He(this,ua,void 0);Fe(this,ua,!1),Fe(this,Kd,e.defaultOptions),it(this,Yl,yp).call(this,e.options),Fe(this,kn,[]),Fe(this,Yo,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Fe(this,Gl,e.state||sse(this.options)),this.state=K(this,Gl),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!K(this,kn).length&&this.state.fetchStatus==="idle"&&K(this,Yo).remove(this)}setData(e,n){const o=Hy(this.state.data,e,this.options);return it(this,wi,dr).call(this,{data:o,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),o}setState(e,n){it(this,wi,dr).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var o;const n=K(this,Xr);return(o=K(this,Qo))==null||o.cancel(e),n?n.then(Jo).catch(Jo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(K(this,Gl))}isActive(){return K(this,kn).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||K(this,kn).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!mF(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=K(this,kn).find(o=>o.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=K(this,Qo))==null||n.continue()}onOnline(){var n;const e=K(this,kn).find(o=>o.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=K(this,Qo))==null||n.continue()}addObserver(e){K(this,kn).includes(e)||(K(this,kn).push(e),this.clearGcTimeout(),K(this,Yo).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){K(this,kn).includes(e)&&(Fe(this,kn,K(this,kn).filter(n=>n!==e)),K(this,kn).length||(K(this,Qo)&&(K(this,ua)?K(this,Qo).cancel({revert:!0}):K(this,Qo).cancelRetry()),this.scheduleGc()),K(this,Yo).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return K(this,kn).length}invalidate(){this.state.isInvalidated||it(this,wi,dr).call(this,{type:"invalidate"})}fetch(e,n){var c,u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(K(this,Xr))return(c=K(this,Qo))==null||c.continueRetry(),K(this,Xr)}if(e&&it(this,Yl,yp).call(this,e),!this.options.queryFn){const p=K(this,kn).find(g=>g.options.queryFn);p&&it(this,Yl,yp).call(this,p.options)}const o=new AbortController,i={queryKey:this.queryKey,meta:this.meta},r=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(Fe(this,ua,!0),o.signal)})};r(i);const s=()=>this.options.queryFn?(Fe(this,ua,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};r(a),(u=this.options.behavior)==null||u.onFetch(a,this),Fe(this,Kl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&it(this,wi,dr).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=p=>{var g,m,b,v;L0(p)&&p.silent||it(this,wi,dr).call(this,{type:"error",error:p}),L0(p)||((m=(g=K(this,Yo).config).onError)==null||m.call(g,p,this),(v=(b=K(this,Yo).config).onSettled)==null||v.call(b,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Fe(this,Qo,bF({fn:a.fetchFn,abort:o.abort.bind(o),onSuccess:p=>{var g,m,b,v;if(typeof p>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(m=(g=K(this,Yo).config).onSuccess)==null||m.call(g,p,this),(v=(b=K(this,Yo).config).onSettled)==null||v.call(b,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(p,g)=>{it(this,wi,dr).call(this,{type:"failed",failureCount:p,error:g})},onPause:()=>{it(this,wi,dr).call(this,{type:"pause"})},onContinue:()=>{it(this,wi,dr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode})),Fe(this,Xr,K(this,Qo).promise),K(this,Xr)}},Gl=new WeakMap,Kl=new WeakMap,Yo=new WeakMap,Xr=new WeakMap,Qo=new WeakMap,kn=new WeakMap,Kd=new WeakMap,ua=new WeakMap,Yl=new WeakSet,yp=function(e){this.options={...K(this,Kd),...e},this.updateGcTime(this.options.gcTime)},wi=new WeakSet,dr=function(e){const n=o=>{switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:mv(this.options.networkMode)?"fetching":"paused",...!o.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...o,data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return L0(i)&&i.revert&&K(this,Kl)?{...K(this,Kl),fetchStatus:"idle"}:{...o,error:i,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}};this.state=n(this.state),yn.batch(()=>{K(this,kn).forEach(o=>{o.onQueryUpdate()}),K(this,Yo).notify({query:this,type:"updated",action:e})})},NT);function sse(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=typeof e<"u",o=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Hi,zT,ase=(zT=class extends Nc{constructor(e={}){super();He(this,Hi,void 0);this.config=e,Fe(this,Hi,new Map)}build(e,n,o){const i=n.queryKey,r=n.queryHash??gC(i,n);let s=this.get(r);return s||(s=new rse({cache:this,queryKey:i,queryHash:r,options:e.defaultQueryOptions(n),state:o,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){K(this,Hi).has(e.queryHash)||(K(this,Hi).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=K(this,Hi).get(e.queryHash);n&&(e.destroy(),n===e&&K(this,Hi).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return K(this,Hi).get(e)}getAll(){return[...K(this,Hi).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(o=>qM(n,o))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(o=>qM(e,o)):n}notify(e){yn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){yn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Hi=new WeakMap,zT),Wi,Yd,Mo,Ql,Ui,Hr,VT,lse=(VT=class extends yF{constructor(e){super();He(this,Ui);He(this,Wi,void 0);He(this,Yd,void 0);He(this,Mo,void 0);He(this,Ql,void 0);this.mutationId=e.mutationId,Fe(this,Yd,e.defaultOptions),Fe(this,Mo,e.mutationCache),Fe(this,Wi,[]),this.state=e.state||xF(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...K(this,Yd),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){K(this,Wi).includes(e)||(K(this,Wi).push(e),this.clearGcTimeout(),K(this,Mo).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Fe(this,Wi,K(this,Wi).filter(n=>n!==e)),this.scheduleGc(),K(this,Mo).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){K(this,Wi).length||(this.state.status==="pending"?this.scheduleGc():K(this,Mo).remove(this))}continue(){var e;return((e=K(this,Ql))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,r,s,a,l,c,u,d,h,p,g,m,b,v,y,w,C,k,P,M;const n=()=>(Fe(this,Ql,bF({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(_,R)=>{it(this,Ui,Hr).call(this,{type:"failed",failureCount:_,error:R})},onPause:()=>{it(this,Ui,Hr).call(this,{type:"pause"})},onContinue:()=>{it(this,Ui,Hr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),K(this,Ql).promise),o=this.state.status==="pending";try{if(!o){it(this,Ui,Hr).call(this,{type:"pending",variables:e}),await((r=(i=K(this,Mo).config).onMutate)==null?void 0:r.call(i,e,this));const R=await((a=(s=this.options).onMutate)==null?void 0:a.call(s,e));R!==this.state.context&&it(this,Ui,Hr).call(this,{type:"pending",context:R,variables:e})}const _=await n();return await((c=(l=K(this,Mo).config).onSuccess)==null?void 0:c.call(l,_,e,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,_,e,this.state.context)),await((p=(h=K(this,Mo).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,_,null,e,this.state.context)),it(this,Ui,Hr).call(this,{type:"success",data:_}),_}catch(_){try{throw await((v=(b=K(this,Mo).config).onError)==null?void 0:v.call(b,_,e,this.state.context,this)),await((w=(y=this.options).onError)==null?void 0:w.call(y,_,e,this.state.context)),await((k=(C=K(this,Mo).config).onSettled)==null?void 0:k.call(C,void 0,_,this.state.variables,this.state.context,this)),await((M=(P=this.options).onSettled)==null?void 0:M.call(P,void 0,_,e,this.state.context)),_}finally{it(this,Ui,Hr).call(this,{type:"error",error:_})}}}},Wi=new WeakMap,Yd=new WeakMap,Mo=new WeakMap,Ql=new WeakMap,Ui=new WeakSet,Hr=function(e){const n=o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!mv(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),yn.batch(()=>{K(this,Wi).forEach(o=>{o.onMutationUpdate(e)}),K(this,Mo).notify({mutation:this,type:"updated",action:e})})},VT);function xF(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xo,Qd,da,BT,cse=(BT=class extends Nc{constructor(e={}){super();He(this,Xo,void 0);He(this,Qd,void 0);He(this,da,void 0);this.config=e,Fe(this,Xo,[]),Fe(this,Qd,0)}build(e,n,o){const i=new lse({mutationCache:this,mutationId:++$h(this,Qd)._,options:e.defaultMutationOptions(n),state:o});return this.add(i),i}add(e){K(this,Xo).push(e),this.notify({type:"added",mutation:e})}remove(e){Fe(this,Xo,K(this,Xo).filter(n=>n!==e)),this.notify({type:"removed",mutation:e})}clear(){yn.batch(()=>{K(this,Xo).forEach(e=>{this.remove(e)})})}getAll(){return K(this,Xo)}find(e){const n={exact:!0,...e};return K(this,Xo).find(o=>GM(n,o))}findAll(e={}){return K(this,Xo).filter(n=>GM(e,n))}notify(e){yn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){return Fe(this,da,(K(this,da)??Promise.resolve()).then(()=>{const e=K(this,Xo).filter(n=>n.state.isPaused);return yn.batch(()=>e.reduce((n,o)=>n.then(()=>o.continue().catch(Jo)),Promise.resolve()))}).then(()=>{Fe(this,da,void 0)})),K(this,da)}},Xo=new WeakMap,Qd=new WeakMap,da=new WeakMap,BT);function use(t){return{onFetch:(e,n)=>{const o=async()=>{var g,m,b,v,y;const i=e.options,r=(b=(m=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,s=((v=e.state.data)==null?void 0:v.pages)||[],a=((y=e.state.data)==null?void 0:y.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const u=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},d=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),h=async(w,C,k)=>{if(c)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const P={queryKey:e.queryKey,pageParam:C,direction:k?"backward":"forward",meta:e.options.meta};u(P);const M=await d(P),{maxPages:_}=e.options,R=k?ese:Zre;return{pages:R(w.pages,M,_),pageParams:R(w.pageParams,C,_)}};let p;if(r&&s.length){const w=r==="backward",C=w?dse:QM,k={pages:s,pageParams:a},P=C(i,k);p=await h(k,P,w)}else{p=await h(l,a[0]??i.initialPageParam);const w=t??s.length;for(let C=1;C{var i,r;return(r=(i=e.options).persister)==null?void 0:r.call(i,o,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=o}}}function QM(t,{pages:e,pageParams:n}){const o=e.length-1;return t.getNextPageParam(e[o],e,n[o],n)}function dse(t,{pages:e,pageParams:n}){var o;return(o=t.getPreviousPageParam)==null?void 0:o.call(t,e[0],e,n[0],n)}var vn,Jr,Zr,Xl,Jl,es,Zl,ec,HT,wF=(HT=class{constructor(t={}){He(this,vn,void 0);He(this,Jr,void 0);He(this,Zr,void 0);He(this,Xl,void 0);He(this,Jl,void 0);He(this,es,void 0);He(this,Zl,void 0);He(this,ec,void 0);Fe(this,vn,t.queryCache||new ase),Fe(this,Jr,t.mutationCache||new cse),Fe(this,Zr,t.defaultOptions||{}),Fe(this,Xl,new Map),Fe(this,Jl,new Map),Fe(this,es,0)}mount(){$h(this,es)._++,K(this,es)===1&&(Fe(this,Zl,Sm.subscribe(()=>{Sm.isFocused()&&(this.resumePausedMutations(),K(this,vn).onFocus())})),Fe(this,ec,km.subscribe(()=>{km.isOnline()&&(this.resumePausedMutations(),K(this,vn).onOnline())})))}unmount(){var t,e;$h(this,es)._--,K(this,es)===0&&((t=K(this,Zl))==null||t.call(this),Fe(this,Zl,void 0),(e=K(this,ec))==null||e.call(this),Fe(this,ec,void 0))}isFetching(t){return K(this,vn).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return K(this,Jr).findAll({...t,status:"pending"}).length}getQueryData(t){var e;return(e=K(this,vn).find({queryKey:t}))==null?void 0:e.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e!==void 0?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:n})=>{const o=n.data;return[e,o]})}setQueryData(t,e,n){const o=K(this,vn).find({queryKey:t}),i=o==null?void 0:o.state.data,r=Xre(e,i);if(typeof r>"u")return;const s=this.defaultQueryOptions({queryKey:t});return K(this,vn).build(this,s).setData(r,{...n,manual:!0})}setQueriesData(t,e,n){return yn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,e,n)]))}getQueryState(t){var e;return(e=K(this,vn).find({queryKey:t}))==null?void 0:e.state}removeQueries(t){const e=K(this,vn);yn.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=K(this,vn),o={type:"active",...t};return yn.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries(o,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},o=yn.batch(()=>K(this,vn).findAll(t).map(i=>i.cancel(n)));return Promise.all(o).then(Jo).catch(Jo)}invalidateQueries(t={},e={}){return yn.batch(()=>{if(K(this,vn).findAll(t).forEach(o=>{o.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},o=yn.batch(()=>K(this,vn).findAll(t).filter(i=>!i.isDisabled()).map(i=>{let r=i.fetch(void 0,n);return n.throwOnError||(r=r.catch(Jo)),i.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(o).then(Jo)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const n=K(this,vn).build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Jo).catch(Jo)}fetchInfiniteQuery(t){return t.behavior=use(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Jo).catch(Jo)}resumePausedMutations(){return K(this,Jr).resumePausedMutations()}getQueryCache(){return K(this,vn)}getMutationCache(){return K(this,Jr)}getDefaultOptions(){return K(this,Zr)}setDefaultOptions(t){Fe(this,Zr,t)}setQueryDefaults(t,e){K(this,Xl).set(Ia(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...K(this,Xl).values()];let n={};return e.forEach(o=>{Ld(t,o.queryKey)&&(n={...n,...o.defaultOptions})}),n}setMutationDefaults(t,e){K(this,Jl).set(Ia(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...K(this,Jl).values()];let n={};return e.forEach(o=>{Ld(t,o.mutationKey)&&(n={...n,...o.defaultOptions})}),n}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const e={...K(this,Zr).queries,...(t==null?void 0:t.queryKey)&&this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=gC(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...K(this,Zr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){K(this,vn).clear(),K(this,Jr).clear()}},vn=new WeakMap,Jr=new WeakMap,Zr=new WeakMap,Xl=new WeakMap,Jl=new WeakMap,es=new WeakMap,Zl=new WeakMap,ec=new WeakMap,HT),co,Lt,Xd,Zn,ha,tc,qi,Jd,nc,oc,fa,pa,ts,ic,ma,wu,Zd,Wy,eh,Uy,th,qy,nh,Gy,oh,Ky,ih,Yy,rh,Qy,Wm,CF,WT,hse=(WT=class extends Nc{constructor(e,n){super();He(this,ma);He(this,Zd);He(this,eh);He(this,th);He(this,nh);He(this,oh);He(this,ih);He(this,rh);He(this,Wm);He(this,co,void 0);He(this,Lt,void 0);He(this,Xd,void 0);He(this,Zn,void 0);He(this,ha,void 0);He(this,tc,void 0);He(this,qi,void 0);He(this,Jd,void 0);He(this,nc,void 0);He(this,oc,void 0);He(this,fa,void 0);He(this,pa,void 0);He(this,ts,void 0);He(this,ic,new Set);this.options=n,Fe(this,co,e),Fe(this,qi,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(K(this,Lt).addObserver(this),XM(K(this,Lt),this.options)?it(this,ma,wu).call(this):this.updateResult(),it(this,nh,Gy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xy(K(this,Lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xy(K(this,Lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,it(this,oh,Ky).call(this),it(this,ih,Yy).call(this),K(this,Lt).removeObserver(this)}setOptions(e,n){const o=this.options,i=K(this,Lt);if(this.options=K(this,co).defaultQueryOptions(e),Cm(o,this.options)||K(this,co).getQueryCache().notify({type:"observerOptionsUpdated",query:K(this,Lt),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),it(this,rh,Qy).call(this);const r=this.hasListeners();r&&JM(K(this,Lt),i,this.options,o)&&it(this,ma,wu).call(this),this.updateResult(n),r&&(K(this,Lt)!==i||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&it(this,Zd,Wy).call(this);const s=it(this,eh,Uy).call(this);r&&(K(this,Lt)!==i||this.options.enabled!==o.enabled||s!==K(this,ts))&&it(this,th,qy).call(this,s)}getOptimisticResult(e){const n=K(this,co).getQueryCache().build(K(this,co),e),o=this.createResult(n,e);return pse(this,o)&&(Fe(this,Zn,o),Fe(this,tc,this.options),Fe(this,ha,K(this,Lt).state)),o}getCurrentResult(){return K(this,Zn)}trackResult(e){const n={};return Object.keys(e).forEach(o=>{Object.defineProperty(n,o,{configurable:!1,enumerable:!0,get:()=>(K(this,ic).add(o),e[o])})}),n}getCurrentQuery(){return K(this,Lt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=K(this,co).defaultQueryOptions(e),o=K(this,co).getQueryCache().build(K(this,co),n);return o.isFetchingOptimistic=!0,o.fetch().then(()=>this.createResult(o,n))}fetch(e){return it(this,ma,wu).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),K(this,Zn)))}createResult(e,n){var P;const o=K(this,Lt),i=this.options,r=K(this,Zn),s=K(this,ha),a=K(this,tc),c=e!==o?e.state:K(this,Xd),{state:u}=e;let{error:d,errorUpdatedAt:h,fetchStatus:p,status:g}=u,m=!1,b;if(n._optimisticResults){const M=this.hasListeners(),_=!M&&XM(e,n),R=M&&JM(e,o,n,i);(_||R)&&(p=mv(e.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(g="pending")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.select&&typeof u.data<"u")if(r&&u.data===(s==null?void 0:s.data)&&n.select===K(this,Jd))b=K(this,nc);else try{Fe(this,Jd,n.select),b=n.select(u.data),b=Hy(r==null?void 0:r.data,b,n),Fe(this,nc,b),Fe(this,qi,null)}catch(M){Fe(this,qi,M)}else b=u.data;if(typeof n.placeholderData<"u"&&typeof b>"u"&&g==="pending"){let M;if(r!=null&&r.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))M=r.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((P=K(this,oc))==null?void 0:P.state.data,K(this,oc)):n.placeholderData,n.select&&typeof M<"u")try{M=n.select(M),Fe(this,qi,null)}catch(_){Fe(this,qi,_)}typeof M<"u"&&(g="success",b=Hy(r==null?void 0:r.data,M,n),m=!0)}K(this,qi)&&(d=K(this,qi),b=K(this,nc),h=Date.now(),g="error");const v=p==="fetching",y=g==="pending",w=g==="error",C=y&&v;return{status:g,fetchStatus:p,isPending:y,isSuccess:g==="success",isError:w,isInitialLoading:C,isLoading:C,data:b,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:w&&u.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:m,isRefetchError:w&&u.dataUpdatedAt!==0,isStale:vC(e,n),refetch:this.refetch}}updateResult(e){const n=K(this,Zn),o=this.createResult(K(this,Lt),this.options);if(Fe(this,ha,K(this,Lt).state),Fe(this,tc,this.options),K(this,ha).data!==void 0&&Fe(this,oc,K(this,Lt)),Cm(o,n))return;Fe(this,Zn,o);const i={},r=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!K(this,ic).size)return!0;const l=new Set(a??K(this,ic));return this.options.throwOnError&&l.add("error"),Object.keys(K(this,Zn)).some(c=>{const u=c;return K(this,Zn)[u]!==n[u]&&l.has(u)})};(e==null?void 0:e.listeners)!==!1&&r()&&(i.listeners=!0),it(this,Wm,CF).call(this,{...i,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&it(this,nh,Gy).call(this)}},co=new WeakMap,Lt=new WeakMap,Xd=new WeakMap,Zn=new WeakMap,ha=new WeakMap,tc=new WeakMap,qi=new WeakMap,Jd=new WeakMap,nc=new WeakMap,oc=new WeakMap,fa=new WeakMap,pa=new WeakMap,ts=new WeakMap,ic=new WeakMap,ma=new WeakSet,wu=function(e){it(this,rh,Qy).call(this);let n=K(this,Lt).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Jo)),n},Zd=new WeakSet,Wy=function(){if(it(this,oh,Ky).call(this),Cc||K(this,Zn).isStale||!Vy(this.options.staleTime))return;const n=mF(K(this,Zn).dataUpdatedAt,this.options.staleTime)+1;Fe(this,fa,setTimeout(()=>{K(this,Zn).isStale||this.updateResult()},n))},eh=new WeakSet,Uy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(K(this,Lt)):this.options.refetchInterval)??!1},th=new WeakSet,qy=function(e){it(this,ih,Yy).call(this),Fe(this,ts,e),!(Cc||this.options.enabled===!1||!Vy(K(this,ts))||K(this,ts)===0)&&Fe(this,pa,setInterval(()=>{(this.options.refetchIntervalInBackground||Sm.isFocused())&&it(this,ma,wu).call(this)},K(this,ts)))},nh=new WeakSet,Gy=function(){it(this,Zd,Wy).call(this),it(this,th,qy).call(this,it(this,eh,Uy).call(this))},oh=new WeakSet,Ky=function(){K(this,fa)&&(clearTimeout(K(this,fa)),Fe(this,fa,void 0))},ih=new WeakSet,Yy=function(){K(this,pa)&&(clearInterval(K(this,pa)),Fe(this,pa,void 0))},rh=new WeakSet,Qy=function(){const e=K(this,co).getQueryCache().build(K(this,co),this.options);if(e===K(this,Lt))return;const n=K(this,Lt);Fe(this,Lt,e),Fe(this,Xd,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Wm=new WeakSet,CF=function(e){yn.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(K(this,Zn))}),K(this,co).getQueryCache().notify({query:K(this,Lt),type:"observerResultsUpdated"})})},WT);function fse(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function XM(t,e){return fse(t,e)||t.state.dataUpdatedAt>0&&Xy(t,e,e.refetchOnMount)}function Xy(t,e,n){if(e.enabled!==!1){const o=typeof n=="function"?n(t):n;return o==="always"||o!==!1&&vC(t,e)}return!1}function JM(t,e,n,o){return n.enabled!==!1&&(t!==e||o.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&vC(t,n)}function vC(t,e){return t.isStaleByTime(e.staleTime)}function pse(t,e){return!Cm(t.getCurrentResult(),e)}var ns,os,_o,vr,rc,xp,sh,Jy,UT,mse=(UT=class extends Nc{constructor(n,o){super();He(this,rc);He(this,sh);He(this,ns,void 0);He(this,os,void 0);He(this,_o,void 0);He(this,vr,void 0);Fe(this,ns,n),this.setOptions(o),this.bindMethods(),it(this,rc,xp).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const o=this.options;this.options=K(this,ns).defaultMutationOptions(n),Cm(o,this.options)||K(this,ns).getMutationCache().notify({type:"observerOptionsUpdated",mutation:K(this,_o),observer:this}),(i=K(this,_o))==null||i.setOptions(this.options),o!=null&&o.mutationKey&&this.options.mutationKey&&Ia(o.mutationKey)!==Ia(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=K(this,_o))==null||n.removeObserver(this)}onMutationUpdate(n){it(this,rc,xp).call(this),it(this,sh,Jy).call(this,n)}getCurrentResult(){return K(this,os)}reset(){var n;(n=K(this,_o))==null||n.removeObserver(this),Fe(this,_o,void 0),it(this,rc,xp).call(this),it(this,sh,Jy).call(this)}mutate(n,o){var i;return Fe(this,vr,o),(i=K(this,_o))==null||i.removeObserver(this),Fe(this,_o,K(this,ns).getMutationCache().build(K(this,ns),this.options)),K(this,_o).addObserver(this),K(this,_o).execute(n)}},ns=new WeakMap,os=new WeakMap,_o=new WeakMap,vr=new WeakMap,rc=new WeakSet,xp=function(){var o;const n=((o=K(this,_o))==null?void 0:o.state)??xF();Fe(this,os,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sh=new WeakSet,Jy=function(n){yn.batch(()=>{var o,i,r,s,a,l,c,u;if(K(this,vr)&&this.hasListeners()){const d=K(this,os).variables,h=K(this,os).context;(n==null?void 0:n.type)==="success"?((i=(o=K(this,vr)).onSuccess)==null||i.call(o,n.data,d,h),(s=(r=K(this,vr)).onSettled)==null||s.call(r,n.data,null,d,h)):(n==null?void 0:n.type)==="error"&&((l=(a=K(this,vr)).onError)==null||l.call(a,n.error,d,h),(u=(c=K(this,vr)).onSettled)==null||u.call(c,void 0,n.error,d,h))}this.listeners.forEach(d=>{d(K(this,os))})})},UT),SF=x.createContext(void 0),kF=t=>{const e=x.useContext(SF);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},PF=({client:t,children:e})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),f.jsx(SF.Provider,{value:t,children:e})),MF=x.createContext(!1),gse=()=>x.useContext(MF);MF.Provider;function vse(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var bse=x.createContext(vse()),yse=()=>x.useContext(bse);function _F(t,e){return typeof t=="function"?t(...e):!!t}var xse=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},wse=t=>{x.useEffect(()=>{t.clearReset()},[t])},Cse=({result:t,errorResetBoundary:e,throwOnError:n,query:o})=>t.isError&&!e.isReset()&&!t.isFetching&&o&&_F(n,[t.error,o]),Sse=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},kse=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Pse=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Mse(t,e,n){const o=kF(n),i=gse(),r=yse(),s=o.defaultQueryOptions(t);s._optimisticResults=i?"isRestoring":"optimistic",Sse(s),xse(s,r),wse(r);const[a]=x.useState(()=>new e(o,s)),l=a.getOptimisticResult(s);if(x.useSyncExternalStore(x.useCallback(c=>{const u=i?()=>{}:a.subscribe(yn.batchCalls(c));return a.updateResult(),u},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),x.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),kse(s,l))throw Pse(s,a,r);if(Cse({result:l,errorResetBoundary:r,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:a.trackResult(l)}function RF(t,e){return Mse(t,hse,e)}function zl(t,e){const n=kF(e),[o]=x.useState(()=>new mse(n,t));x.useEffect(()=>{o.setOptions(t)},[o,t]);const i=x.useSyncExternalStore(x.useCallback(s=>o.subscribe(yn.batchCalls(s)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),r=x.useCallback((s,a)=>{o.mutate(s,a).catch(_se)},[o]);if(i.error&&_F(o.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:r,mutateAsync:i.mutate}}function _se(){}var bC={},Rse=gt;Object.defineProperty(bC,"__esModule",{value:!0});var yC=bC.default=void 0,Tse=Rse(vt()),Ose=f;yC=bC.default=(0,Tse.default)((0,Ose.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");const Ise="/hamro-nepse/assets/logo-FbxTVFt1.png",Ese="data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAKAAoAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+uKKK9A+FXhe31SafUbuNZo4GCRRsMqXxkkj2GPzoA4b7Bc+R532eXyevmbDt/OoK+msDGMceleT/Fbwvb6ZJBqVpGsKTuY5Y1GF34yCB7gHP0oA89ooooAK9H+EfiGC0e40udxG0ziSEscBmxgr9eBj8a86RGkdURSzMcBQOSa9n8GfD210O2jub2JLjUWG47xlYvYD19/yoA7KvLPi54hgujb6VA4kaJ/NmKnIVsEBfryc/hXqdcb4z+HtrrltJc2USW+oqCw2DCy+zD19/wA6APFqKc6NG7I6lWU4Kkcg0UAdR8MtOXUfFluXG5bdWnwfUcD9SD+Fe40UUAFFFFAHh3xN05dO8WXBQbVuFWfA9Twf1BP40UUUAf/Z",Dse=[{label:"Market Watch",href:"/market-watch",icon:f.jsx("div",{className:"text-3xl text-center",children:"👓"}),description:"Overview of stock prices, indices, and market trends."},{label:"Portfolio Tracker",href:"/portfolio-tracker",icon:f.jsx("div",{className:"text-xl text-center",children:"🔎"}),description:"Effortlessly monitor and manage your investments with portfolio tracker."},{label:"Watchlist",href:"/watchlist",icon:f.jsx("div",{className:"text-xl text-center",children:"📋"}),description:"Watch over your favourite stocks by making a separate watchlist."},{label:"Compare Company",href:"/compare-company",icon:f.jsx("div",{className:"text-xl text-center",children:"⚖"}),description:"Easily compare key financial metrics between different companies."},{label:"Share Calculator",href:"/share-calculator",icon:f.jsx("div",{className:"text-4xl text-center",children:"🖩"}),description:"Get to know the actual figures when buying and selling shares."},{label:"Investing Calendar",href:"/investing-calendar",icon:f.jsx("div",{className:"text-xl text-center",children:"📰"}),description:"Timely updates on investment related information to aid informed investment decisions."},{label:"Chart",href:"/chart",icon:f.jsx("div",{className:"text-xl text-center",children:"📈"}),description:"Visualize stock performance through dynamic and interactive charts."},{label:"IPO Checker",href:"/ipo-checker",icon:f.jsx("div",{className:"text-xl text-center",children:"✔️"}),description:"Verify whether or not you were allotted the share and the number of shares being allotted."},{label:"Trading Signals",href:"/trading-signals",icon:f.jsx("div",{className:"text-xl text-center",children:"📊"}),description:"Receive actionable trading signals to assist in making strategic buy or sell decisions."}],Pm=[{label:"About",href:"/about",subMenuItems:[]},{label:"Contact",href:"/contact",subMenuItems:[]},{label:"Services",href:"/services",subMenuItems:Dse}],$se=[{label:"Privacy Policy",href:"/privacy-policy"},{label:"Settings",href:"/setting"},{label:"Sign out",href:"/signout"}],Fse="https://sam.superintegratedapp.com/wp-json/api/user/login",jse="https://sam.superintegratedapp.com/wp-json/api/user/logout",Lse="https://sam.superintegratedapp.com/wp-json/api/user/data",Ase="https://sam.superintegratedapp.com/wp-json/api/user/create",Nse="https://sam.superintegratedapp.com/wp-json/api/user/update",zse="https://sam.superintegratedapp.com/wp-json/api/user/reset-password",Vse="https://sam.superintegratedapp.com/wp-json/api/stock-data/?selector=stock&selection=all",Bse="https://sam.superintegratedapp.com/wp-json/api/stock-data/profile",Hse="https://sam.superintegratedapp.com/wp-json/api/stock-portfolio/add",Wse="https://sam.superintegratedapp.com/wp-json/api/stock-portfolio/update",Use="https://sam.superintegratedapp.com/wp-json/api/stock-portfolio/get",qse="https://sam.superintegratedapp.com/wp-json/api/stock-portfolio/remove",Gse="https://sam.superintegratedapp.com/wp-json/api/stock-watchlist/add",Kse="https://sam.superintegratedapp.com/wp-json/api/stock-watchlist/get",Yse="https://sam.superintegratedapp.com/wp-json/api/stock-watchlist/remove",Qse="https://sam.superintegratedapp.com/wp-json/api/stock-investment-data/ipo",TF=x.createContext({}),Xse=({children:t})=>{const[e,n]=x.useState([]),[o,i]=x.useState([]),[r,s]=x.useState([]),[a,l]=x.useState(""),[c,u]=x.useState({}),d="HamroNepse",h=x.useMemo(()=>({isLoggedIn:!1,name:"",email:"",img_url:""}),[]),p=Rs("(prefers-color-scheme: dark)"),g=zw({palette:{mode:p?"dark":"light",primary:{main:p?"#111829":"#1976d2"},text:{primary:p?"#fff":"#111829"},background:{default:p?"#111829":"#fff",paper:p?"#111829":"#fff"}},components:{MuiButton:{styleOverrides:{root:{background:p?"#0369a1":"#38bdf8",color:"#fff",":hover":{background:p?"#0369a1":"#38bdf8"}}}}}}),m=x.useCallback(()=>{(async()=>{try{const y=await fetch(Lse,{method:"POST",credentials:"include"});if(!y.ok)throw new Error("Failed to fetch data");const w=await y.json(),C=w.data.length!==0?{...w.data,isLoggedIn:!0}:h;u(C)}catch(y){console.log("Error fetching data:",y.message),u(h)}})()},[h]);x.useEffect(()=>{m()},[m]),x.useEffect(()=>{(async()=>{try{const y=await fetch(Vse,{credentials:"include"});if(!y.ok)throw new Error("Failed to fetch data");const C=(await y.json()).stock_data;n(C)}catch(y){console.error("Error fetching data:",y.message),n([])}})()},[]),x.useEffect(()=>{(async()=>{try{const y=await fetch(Bse,{credentials:"include"});if(!y.ok)throw new Error("Failed to fetch data");const C=(await y.json()).stock_profile_data;s(C)}catch(y){console.error("Error fetching data:",y.message)}})()},[]),x.useEffect(()=>{(async()=>{try{const y=await fetch(Qse,{credentials:"include"});if(!y.ok)throw new Error("Failed to fetch data");const w=await y.json();if(w.isEverythingOk){const C=w.data.ipo_data;i(C)}else console.error("Error fetching data:",w.response_message)}catch(y){console.error("Error fetching data:",y.message)}})()},[]);const b={name:d,logo:Ise,userAvatar:Ese,userData:c,stockProfileData:r,ipoData:o,marketData:e,activeNavItem:a,setActiveNavItem:l,fetchUserData:m,prefersDarkMode:p};return f.jsx(x.StrictMode,{children:f.jsx(Wz,{basename:"/hamro-nepse",children:f.jsx(M3,{theme:g,children:f.jsx(TF.Provider,{value:b,children:t})})})})},mn=()=>{const{name:t,logo:e,userAvatar:n,userData:o,ipoData:i,marketData:r,stockProfileData:s,activeNavItem:a,setActiveNavItem:l,fetchUserData:c,prefersDarkMode:u}=x.useContext(TF),d=x.useMemo(()=>r.length>0?r[0].date:"YYYY-MM-DD",[r]),h=x.useMemo(()=>s.map(g=>({label:`(${g.symbol}) ${g.name}`,value:g.symbol})),[s]),p=x.useMemo(()=>r.map(g=>{const m=String((Number(g.volume)*Number(g.close)).toFixed(2));return{...g,turnover:m}}),[r]);return{name:t,logo:e,userAvatar:n,userData:o,ipoData:i,marketData:p,stockProfileData:h,marketDataDate:d,activeNavItem:a,setActiveNavItem:l,fetchUserData:c,prefersDarkMode:u}},Jse=()=>{const[t,e]=x.useState([]),{marketData:n}=mn();return x.useEffect(()=>{(async()=>{try{const i=await fetch(Use,{method:"POST",credentials:"include"});if(!i.ok)throw new Error("Failed to fetch data");const a=(await i.json()).data.map(l=>{var h;const c=Number(((h=n.find(p=>p.symbol===l.symbol))==null?void 0:h.close)??0),u=l.quantity*c,d=l.quantity*c-l.quantity*l.buy_rate;return{...l,close:c,total:u,profit_loss:d}});e(a)}catch(i){console.error("Error fetching data:",i.message),e([])}})()},[n]),{tableData:t}},Mn=t=>new DOMParser().parseFromString(t,"text/html").body.textContent||"",Zse=()=>{const{tableData:t}=Jse(),e=Fs(),[n,o]=x.useState(f.jsx(f.Fragment,{})),i=()=>zl({mutationFn:async u=>{const d=new FormData;d.append("symbol",u.symbol),d.append("buy_date",u.buy_date),d.append("buy_rate",String(u.buy_rate)),d.append("quantity",String(u.quantity)),fetch(Hse,{method:"POST",body:d,credentials:"include"}).then(h=>h.json()).then(h=>{o(f.jsx(qt,{variant:"outlined",severity:h.isEverythingOk?"success":"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.responseMessage)}))}).catch(h=>{o(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.message)}))})},onSettled:()=>setTimeout(()=>e(0),500)}),r=()=>RF({queryKey:["Stocks"],queryFn:async()=>Promise.resolve(t),refetchOnWindowFocus:!1}),s=()=>zl({mutationFn:async u=>{const d=new FormData;d.append("symbol",u.symbol),d.append("buy_date",u.buy_date),d.append("buy_rate",String(u.buy_rate)),d.append("quantity",String(u.quantity)),fetch(Wse,{method:"POST",body:d,credentials:"include"}).then(h=>h.json()).then(h=>{o(f.jsx(qt,{variant:"outlined",severity:h.isEverythingOk?"success":"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.responseMessage)}))}).catch(h=>{o(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.message)}))})},onSettled:()=>setTimeout(()=>e(0),500)}),a=()=>zl({mutationFn:async u=>{const d=new FormData;d.append("symbol",u),fetch(qse,{method:"POST",body:d,credentials:"include"}).then(h=>h.json()).then(h=>{o(f.jsx(qt,{variant:"outlined",severity:h.isEverythingOk?"success":"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.responseMessage)}))}).catch(h=>{o(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.message)}))})},onSettled:()=>setTimeout(()=>e(0),500)}),l=u=>!!u.length;return{toastNotification:n,useCreateStock:i,validateStock:u=>({Symbol:l(u.symbol)?"":"Symbol is Required"}),useGetStock:r,useUpdateStock:s,useDeleteStock:a}},eae=()=>{const{toastNotification:t,useCreateStock:e,useGetStock:n,useUpdateStock:o,useDeleteStock:i,validateStock:r}=Zse();return{Portfolio:()=>{const[a,l]=x.useState({}),c=[{accessorKey:"symbol",header:"Symbol",enableEditing:!0,size:80,muiEditTextFieldProps:{required:!0,onFocus:()=>l({...a,symbol:void 0})}},{accessorKey:"buy_date",header:"Buy Date",enableEditing:!0,size:80,muiEditTextFieldProps:{required:!1,onFocus:()=>l({...a,buy_date:void 0})}},{accessorKey:"buy_rate",header:"Buy Rate (in NRP)",enableEditing:!0,muiEditTextFieldProps:{required:!0,onFocus:()=>l({...a,buy_rate:void 0})}},{accessorKey:"quantity",header:"Kitta",enableEditing:!0,muiEditTextFieldProps:{required:!0,onFocus:()=>l({...a,kitta:void 0})}},{accessorKey:"close",header:"LTP",enableEditing:!1},{accessorKey:"total",header:"Amount",enableEditing:!1},{accessorKey:"profit_loss",header:"Profit / Loss",enableEditing:!1}],{mutateAsync:u,isPending:d}=e(),{data:h=[],isError:p,isFetching:g,isLoading:m}=n(),{mutateAsync:b,isPending:v}=o(),{mutateAsync:y,isPending:w}=i(),C=async({values:_,table:R})=>{const O=r(_);if(Object.values(O).some(I=>I)){l(O);return}l({}),await u(_),R.setCreatingRow(null)},k=async({values:_,table:R})=>{const O=r(_);if(Object.values(O).some(I=>I)){l(O);return}l({}),await b(_),R.setEditingRow(null)},P=_=>{window.confirm("Are you sure you want to delete this stock?")&&y(_.original.symbol)},M=Rh({columns:c,data:h,enableEditing:!0,enableColumnActions:!1,enableColumnFilters:!1,enablePagination:!1,enableSorting:!0,enableGlobalFilter:!1,enableBottomToolbar:!1,enableFullScreenToggle:!1,enableDensityToggle:!1,enableHiding:!1,enableTopToolbar:!0,enableTableFooter:!1,initialState:{density:"compact"},muiLinearProgressProps:{color:"info"},muiCircularProgressProps:{color:"info"},getRowId:_=>_.symbol,muiToolbarAlertBannerProps:p?{color:"error",children:"Error loading data"}:void 0,onCreatingRowCancel:()=>l({}),onCreatingRowSave:C,onEditingRowCancel:()=>l({}),onEditingRowSave:k,renderCreateRowDialogContent:({table:_,row:R,internalEditComponents:O})=>f.jsxs(f.Fragment,{children:[f.jsx(xm,{children:"Create New Stock"}),f.jsxs(Ed,{sx:{display:"flex",flexDirection:"column",gap:"1rem"},children:[O," "]}),f.jsx($d,{children:f.jsx(jd,{variant:"text",table:_,row:R})})]}),renderEditRowDialogContent:({table:_,row:R,internalEditComponents:O})=>f.jsxs(f.Fragment,{children:[f.jsx(xm,{children:"Edit Stock"}),f.jsxs(Ed,{sx:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[O," "]}),f.jsx($d,{children:f.jsx(jd,{variant:"text",table:_,row:R})})]}),renderRowActions:({row:_,table:R})=>f.jsxs(Xe,{sx:{display:"flex"},children:[f.jsx(ft,{title:"Edit",children:f.jsx(at,{onClick:()=>R.setEditingRow(_),children:f.jsx(P1,{})})}),f.jsx(ft,{title:"Delete",children:f.jsx(at,{color:"error",onClick:()=>P(_),children:f.jsx(yC,{})})})]}),renderTopToolbarCustomActions:({table:_})=>f.jsx("button",{className:"bg-sky-400 dark:bg-sky-700 px-4 py-2 rounded text-sm text-white",onClick:()=>{_.setCreatingRow(!0)},children:"Add Stock"}),state:{isLoading:m,isSaving:d||v||w,showAlertBanner:p,showProgressBars:g}});return f.jsx(pv,{table:M})},toastNotification:t}},tae=new wF,nae=()=>{const{Portfolio:t,toastNotification:e}=eae();return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mb-4",children:e}),f.jsx(PF,{client:tae,children:f.jsx(t,{})})]})},oae=()=>{const[t,e]=x.useState([]),{marketData:n}=mn();return x.useEffect(()=>{(async()=>{try{const i=await fetch(Kse,{method:"POST",credentials:"include"});if(!i.ok)throw new Error("Failed to fetch data");const a=(await i.json()).data.map(l=>n.find(c=>c.symbol===l.symbol)??{...l,name:"*",open:"*",high:"*",low:"*",close:"*",percentage_change:"*",volume:"*",turnover:"*"});e(a)}catch(i){console.error("Error fetching data:",i.message),e([])}})()},[n]),{tableData:t}},iae=()=>{const{tableData:t}=oae(),e=Fs(),[n,o]=x.useState(f.jsx(f.Fragment,{})),i=()=>zl({mutationFn:async u=>{const d=new FormData;d.append("symbol",u.symbol),fetch(Gse,{method:"POST",body:d,credentials:"include"}).then(h=>h.json()).then(h=>{o(f.jsx(qt,{variant:"outlined",severity:h.isEverythingOk?"success":"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.responseMessage)}))}).catch(h=>{o(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.message)}))})},onSettled:()=>setTimeout(()=>e(0),500)}),r=()=>RF({queryKey:["Stocks"],queryFn:async()=>Promise.resolve(t),refetchOnWindowFocus:!1}),s=()=>zl({mutationFn:async()=>{}}),a=()=>zl({mutationFn:async u=>{const d=new FormData;d.append("symbol",u),fetch(Yse,{method:"POST",body:d,credentials:"include"}).then(h=>h.json()).then(h=>{o(f.jsx(qt,{variant:"outlined",severity:h.isEverythingOk?"success":"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.responseMessage)}))}).catch(h=>{o(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>o(f.jsx(f.Fragment,{})),children:Mn(h.message)}))})},onSettled:()=>setTimeout(()=>e(0),500)}),l=u=>!!u.length;return{toastNotification:n,useCreateStock:i,validateStock:u=>({Symbol:l(u.symbol)?"":"Symbol is Required"}),useGetStock:r,useUpdateStock:s,useDeleteStock:a}},rae=()=>{const{toastNotification:t,useCreateStock:e,useGetStock:n,useUpdateStock:o,useDeleteStock:i,validateStock:r}=iae();return{Watchlist:()=>{const[a,l]=x.useState({}),c=[{accessorKey:"symbol",header:"Symbol",enableEditing:!0,size:80,muiEditTextFieldProps:{required:!0,onFocus:()=>l({...a,symbol:void 0})}},{accessorKey:"name",header:"Name",enableEditing:!1,size:80,muiEditTextFieldProps:{required:!1}},{accessorKey:"open",header:"Open",enableEditing:!1,muiEditTextFieldProps:{required:!1}},{accessorKey:"high",header:"High",enableEditing:!1,muiEditTextFieldProps:{required:!1}},{accessorKey:"low",header:"Low",enableEditing:!1,muiEditTextFieldProps:{required:!1}},{accessorKey:"close",header:"Close",enableEditing:!1,muiEditTextFieldProps:{required:!1}},{accessorKey:"percentage_change",header:"% Change",enableEditing:!1,muiEditTextFieldProps:{required:!1}},{accessorKey:"volume",header:"Volume",enableEditing:!1,muiEditTextFieldProps:{required:!1}},{accessorKey:"turnover",header:"Turnover",enableEditing:!1,muiEditTextFieldProps:{required:!1}}],{mutateAsync:u,isPending:d}=e(),{data:h=[],isError:p,isFetching:g,isLoading:m}=n(),{mutateAsync:b,isPending:v}=o(),{mutateAsync:y,isPending:w}=i(),C=async({values:_,table:R})=>{const O=r(_);if(Object.values(O).some(I=>I)){l(O);return}l({}),await u(_),R.setCreatingRow(null)},k=async({values:_,table:R})=>{const O=r(_);if(Object.values(O).some(I=>I)){l(O);return}l({}),await b(),R.setEditingRow(null)},P=_=>{window.confirm("Are you sure you want to delete this stock?")&&y(_.original.symbol)},M=Rh({columns:c,data:h,enableEditing:!0,enableColumnActions:!1,enableColumnFilters:!1,enablePagination:!1,enableSorting:!0,enableGlobalFilter:!1,enableBottomToolbar:!1,enableFullScreenToggle:!1,enableDensityToggle:!1,enableHiding:!1,enableTopToolbar:!0,enableTableFooter:!1,initialState:{density:"compact"},muiLinearProgressProps:{color:"info"},muiCircularProgressProps:{color:"info"},getRowId:_=>_.symbol,muiToolbarAlertBannerProps:p?{color:"error",children:"Error loading data"}:void 0,onCreatingRowCancel:()=>l({}),onCreatingRowSave:C,onEditingRowCancel:()=>l({}),onEditingRowSave:k,renderCreateRowDialogContent:({table:_,row:R,internalEditComponents:O})=>f.jsxs(f.Fragment,{children:[f.jsx(xm,{children:"Create New Stock"}),f.jsxs(Ed,{sx:{display:"flex",flexDirection:"column",gap:"1rem"},children:[O," "]}),f.jsx($d,{children:f.jsx(jd,{variant:"text",table:_,row:R})})]}),renderRowActions:({row:_})=>f.jsx(Xe,{sx:{display:"flex"},children:f.jsx(ft,{title:"Delete",children:f.jsx(at,{color:"error",onClick:()=>P(_),children:f.jsx(yC,{})})})}),renderTopToolbarCustomActions:({table:_})=>f.jsx("button",{className:"bg-sky-400 dark:bg-sky-700 px-4 py-2 rounded text-sm text-white",onClick:()=>{_.setCreatingRow(!0)},children:"Add Stock"}),state:{isLoading:m,isSaving:d||v||w,showAlertBanner:p,showProgressBars:g}});return f.jsx(pv,{table:M})},toastNotification:t}},sae=new wF,aae=()=>{const{Watchlist:t,toastNotification:e}=rae();return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mb-4",children:e}),f.jsx(PF,{client:sae,children:f.jsx(t,{})})]})},OF=({data:t,columns:e})=>{const n=Rh({columns:e,data:t,enableColumnActions:!1,enableColumnFilters:!1,enablePagination:!1,enableSorting:!1,enableGlobalFilter:!1,enableBottomToolbar:!1,enableFullScreenToggle:!1,enableDensityToggle:!1,enableHiding:!1,enableTopToolbar:!1,initialState:{density:"compact"},muiCircularProgressProps:{color:"info"}});return f.jsx("div",{className:"grid mx-auto overflow-hidden text-gray-900 border border-gray-300 dark:border-gray-600 rounded-md lg:grid-cols",children:f.jsx(pv,{table:n})})};function At(t){var e=t.width,n=t.height;if(e<0)throw new Error("Negative width is not allowed for Size");if(n<0)throw new Error("Negative height is not allowed for Size");return{width:e,height:n}}function ya(t,e){return t.width===e.width&&t.height===e.height}var lae=function(){function t(e){var n=this;this._resolutionListener=function(){return n._onResolutionChanged()},this._resolutionMediaQueryList=null,this._observers=[],this._window=e,this._installResolutionListener()}return t.prototype.dispose=function(){this._uninstallResolutionListener(),this._window=null},Object.defineProperty(t.prototype,"value",{get:function(){return this._window.devicePixelRatio},enumerable:!1,configurable:!0}),t.prototype.subscribe=function(e){var n=this,o={next:e};return this._observers.push(o),{unsubscribe:function(){n._observers=n._observers.filter(function(i){return i!==o})}}},t.prototype._installResolutionListener=function(){if(this._resolutionMediaQueryList!==null)throw new Error("Resolution listener is already installed");var e=this._window.devicePixelRatio;this._resolutionMediaQueryList=this._window.matchMedia("all and (resolution: ".concat(e,"dppx)")),this._resolutionMediaQueryList.addListener(this._resolutionListener)},t.prototype._uninstallResolutionListener=function(){this._resolutionMediaQueryList!==null&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},t.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},t.prototype._onResolutionChanged=function(){var e=this;this._observers.forEach(function(n){return n.next(e._window.devicePixelRatio)}),this._reinstallResolutionListener()},t}();function cae(t){return new lae(t)}var uae=function(){function t(e,n,o){var i;this._canvasElement=null,this._bitmapSizeChangedListeners=[],this._suggestedBitmapSize=null,this._suggestedBitmapSizeChangedListeners=[],this._devicePixelRatioObservable=null,this._canvasElementResizeObserver=null,this._canvasElement=e,this._canvasElementClientSize=At({width:this._canvasElement.clientWidth,height:this._canvasElement.clientHeight}),this._transformBitmapSize=n??function(r){return r},this._allowResizeObserver=(i=o==null?void 0:o.allowResizeObserver)!==null&&i!==void 0?i:!0,this._chooseAndInitObserver()}return t.prototype.dispose=function(){var e,n;if(this._canvasElement===null)throw new Error("Object is disposed");(e=this._canvasElementResizeObserver)===null||e===void 0||e.disconnect(),this._canvasElementResizeObserver=null,(n=this._devicePixelRatioObservable)===null||n===void 0||n.dispose(),this._devicePixelRatioObservable=null,this._suggestedBitmapSizeChangedListeners.length=0,this._bitmapSizeChangedListeners.length=0,this._canvasElement=null},Object.defineProperty(t.prototype,"canvasElement",{get:function(){if(this._canvasElement===null)throw new Error("Object is disposed");return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasElementClientSize",{get:function(){return this._canvasElementClientSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bitmapSize",{get:function(){return At({width:this.canvasElement.width,height:this.canvasElement.height})},enumerable:!1,configurable:!0}),t.prototype.resizeCanvasElement=function(e){this._canvasElementClientSize=At(e),this.canvasElement.style.width="".concat(this._canvasElementClientSize.width,"px"),this.canvasElement.style.height="".concat(this._canvasElementClientSize.height,"px"),this._invalidateBitmapSize()},t.prototype.subscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners.push(e)},t.prototype.unsubscribeBitmapSizeChanged=function(e){this._bitmapSizeChangedListeners=this._bitmapSizeChangedListeners.filter(function(n){return n!==e})},Object.defineProperty(t.prototype,"suggestedBitmapSize",{get:function(){return this._suggestedBitmapSize},enumerable:!1,configurable:!0}),t.prototype.subscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners.push(e)},t.prototype.unsubscribeSuggestedBitmapSizeChanged=function(e){this._suggestedBitmapSizeChangedListeners=this._suggestedBitmapSizeChangedListeners.filter(function(n){return n!==e})},t.prototype.applySuggestedBitmapSize=function(){if(this._suggestedBitmapSize!==null){var e=this._suggestedBitmapSize;this._suggestedBitmapSize=null,this._resizeBitmap(e),this._emitSuggestedBitmapSizeChanged(e,this._suggestedBitmapSize)}},t.prototype._resizeBitmap=function(e){var n=this.bitmapSize;ya(n,e)||(this.canvasElement.width=e.width,this.canvasElement.height=e.height,this._emitBitmapSizeChanged(n,e))},t.prototype._emitBitmapSizeChanged=function(e,n){var o=this;this._bitmapSizeChangedListeners.forEach(function(i){return i.call(o,e,n)})},t.prototype._suggestNewBitmapSize=function(e){var n=this._suggestedBitmapSize,o=At(this._transformBitmapSize(e,this._canvasElementClientSize)),i=ya(this.bitmapSize,o)?null:o;n===null&&i===null||n!==null&&i!==null&&ya(n,i)||(this._suggestedBitmapSize=i,this._emitSuggestedBitmapSizeChanged(n,i))},t.prototype._emitSuggestedBitmapSizeChanged=function(e,n){var o=this;this._suggestedBitmapSizeChangedListeners.forEach(function(i){return i.call(o,e,n)})},t.prototype._chooseAndInitObserver=function(){var e=this;if(!this._allowResizeObserver){this._initDevicePixelRatioObservable();return}hae().then(function(n){return n?e._initResizeObserver():e._initDevicePixelRatioObservable()})},t.prototype._initDevicePixelRatioObservable=function(){var e=this;if(this._canvasElement!==null){var n=ZM(this._canvasElement);if(n===null)throw new Error("No window is associated with the canvas");this._devicePixelRatioObservable=cae(n),this._devicePixelRatioObservable.subscribe(function(){return e._invalidateBitmapSize()}),this._invalidateBitmapSize()}},t.prototype._invalidateBitmapSize=function(){var e,n;if(this._canvasElement!==null){var o=ZM(this._canvasElement);if(o!==null){var i=(n=(e=this._devicePixelRatioObservable)===null||e===void 0?void 0:e.value)!==null&&n!==void 0?n:o.devicePixelRatio,r=this._canvasElement.getClientRects(),s=r[0]!==void 0?fae(r[0],i):At({width:this._canvasElementClientSize.width*i,height:this._canvasElementClientSize.height*i});this._suggestNewBitmapSize(s)}}},t.prototype._initResizeObserver=function(){var e=this;this._canvasElement!==null&&(this._canvasElementResizeObserver=new ResizeObserver(function(n){var o=n.find(function(s){return s.target===e._canvasElement});if(!(!o||!o.devicePixelContentBoxSize||!o.devicePixelContentBoxSize[0])){var i=o.devicePixelContentBoxSize[0],r=At({width:i.inlineSize,height:i.blockSize});e._suggestNewBitmapSize(r)}}),this._canvasElementResizeObserver.observe(this._canvasElement,{box:"device-pixel-content-box"}))},t}();function dae(t,e){if(e.type==="device-pixel-content-box")return new uae(t,e.transform,e.options);throw new Error("Unsupported binding target")}function ZM(t){return t.ownerDocument.defaultView}function hae(){return new Promise(function(t){var e=new ResizeObserver(function(n){t(n.every(function(o){return"devicePixelContentBoxSize"in o})),e.disconnect()});e.observe(document.body,{box:"device-pixel-content-box"})}).catch(function(){return!1})}function fae(t,e){return At({width:Math.round(t.left*e+t.width*e)-Math.round(t.left*e),height:Math.round(t.top*e+t.height*e)-Math.round(t.top*e)})}var pae=function(){function t(e,n,o){if(n.width===0||n.height===0)throw new TypeError("Rendering target could only be created on a media with positive width and height");if(this._mediaSize=n,o.width===0||o.height===0)throw new TypeError("Rendering target could only be created using a bitmap with positive integer width and height");this._bitmapSize=o,this._context=e}return t.prototype.useMediaCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),this._context.scale(this._horizontalPixelRatio,this._verticalPixelRatio),e({context:this._context,mediaSize:this._mediaSize})}finally{this._context.restore()}},t.prototype.useBitmapCoordinateSpace=function(e){try{return this._context.save(),this._context.setTransform(1,0,0,1,0,0),e({context:this._context,mediaSize:this._mediaSize,bitmapSize:this._bitmapSize,horizontalPixelRatio:this._horizontalPixelRatio,verticalPixelRatio:this._verticalPixelRatio})}finally{this._context.restore()}},Object.defineProperty(t.prototype,"_horizontalPixelRatio",{get:function(){return this._bitmapSize.width/this._mediaSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_verticalPixelRatio",{get:function(){return this._bitmapSize.height/this._mediaSize.height},enumerable:!1,configurable:!0}),t}();function Ea(t,e){var n=t.canvasElementClientSize;if(n.width===0||n.height===0)return null;var o=t.bitmapSize;if(o.width===0||o.height===0)return null;var i=t.canvasElement.getContext("2d",e);return i===null?null:new pae(i,n,o)}/*! + * @license + * TradingView Lightweight Charts™ v4.1.2 + * Copyright (c) 2024 TradingView, Inc. + * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0 + */const mae={upColor:"#26a69a",downColor:"#ef5350",wickVisible:!0,borderVisible:!0,borderColor:"#378658",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"#737375",wickUpColor:"#26a69a",wickDownColor:"#ef5350"},gae={upColor:"#26a69a",downColor:"#ef5350",openVisible:!0,thinBars:!0},vae={color:"#2196f3",lineStyle:0,lineWidth:3,lineType:0,lineVisible:!0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBorderWidth:2,crosshairMarkerBackgroundColor:"",lastPriceAnimation:0,pointMarkersVisible:!1},bae={topColor:"rgba( 46, 220, 135, 0.4)",bottomColor:"rgba( 40, 221, 100, 0)",invertFilledArea:!1,lineColor:"#33D778",lineStyle:0,lineWidth:3,lineType:0,lineVisible:!0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBorderWidth:2,crosshairMarkerBackgroundColor:"",lastPriceAnimation:0,pointMarkersVisible:!1},yae={baseValue:{type:"price",price:0},topFillColor1:"rgba(38, 166, 154, 0.28)",topFillColor2:"rgba(38, 166, 154, 0.05)",topLineColor:"rgba(38, 166, 154, 1)",bottomFillColor1:"rgba(239, 83, 80, 0.05)",bottomFillColor2:"rgba(239, 83, 80, 0.28)",bottomLineColor:"rgba(239, 83, 80, 1)",lineWidth:3,lineStyle:0,lineType:0,lineVisible:!0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBorderWidth:2,crosshairMarkerBackgroundColor:"",lastPriceAnimation:0,pointMarkersVisible:!1},xae={color:"#26a69a",base:0},IF={color:"#2196f3"},EF={title:"",visible:!0,lastValueVisible:!0,priceLineVisible:!0,priceLineSource:0,priceLineWidth:1,priceLineColor:"",priceLineStyle:2,baseLineVisible:!0,baseLineWidth:1,baseLineColor:"#B2B5BE",baseLineStyle:0,priceFormat:{type:"price",precision:2,minMove:.01}};var e_,t_;function Da(t,e){const n={0:[],1:[t.lineWidth,t.lineWidth],2:[2*t.lineWidth,2*t.lineWidth],3:[6*t.lineWidth,6*t.lineWidth],4:[t.lineWidth,4*t.lineWidth]}[e];t.setLineDash(n)}function DF(t,e,n,o){t.beginPath();const i=t.lineWidth%2?.5:0;t.moveTo(n,e+i),t.lineTo(o,e+i),t.stroke()}function Ts(t,e){if(!t)throw new Error("Assertion failed"+(e?": "+e:""))}function io(t){if(t===void 0)throw new Error("Value is undefined");return t}function Me(t){if(t===null)throw new Error("Value is null");return t}function Pl(t){return Me(io(t))}(function(t){t[t.Simple=0]="Simple",t[t.WithSteps=1]="WithSteps",t[t.Curved=2]="Curved"})(e_||(e_={})),function(t){t[t.Solid=0]="Solid",t[t.Dotted=1]="Dotted",t[t.Dashed=2]="Dashed",t[t.LargeDashed=3]="LargeDashed",t[t.SparseDotted=4]="SparseDotted"}(t_||(t_={}));const n_={khaki:"#f0e68c",azure:"#f0ffff",aliceblue:"#f0f8ff",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",gray:"#808080",green:"#008000",honeydew:"#f0fff0",floralwhite:"#fffaf0",lightblue:"#add8e6",lightcoral:"#f08080",lemonchiffon:"#fffacd",hotpink:"#ff69b4",lightyellow:"#ffffe0",greenyellow:"#adff2f",lightgoldenrodyellow:"#fafad2",limegreen:"#32cd32",linen:"#faf0e6",lightcyan:"#e0ffff",magenta:"#f0f",maroon:"#800000",olive:"#808000",orange:"#ffa500",oldlace:"#fdf5e6",mediumblue:"#0000cd",transparent:"#0000",lime:"#0f0",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",midnightblue:"#191970",orchid:"#da70d6",mediumorchid:"#ba55d3",mediumturquoise:"#48d1cc",orangered:"#ff4500",royalblue:"#4169e1",powderblue:"#b0e0e6",red:"#f00",coral:"#ff7f50",turquoise:"#40e0d0",white:"#fff",whitesmoke:"#f5f5f5",wheat:"#f5deb3",teal:"#008080",steelblue:"#4682b4",bisque:"#ffe4c4",aquamarine:"#7fffd4",aqua:"#0ff",sienna:"#a0522d",silver:"#c0c0c0",springgreen:"#00ff7f",antiquewhite:"#faebd7",burlywood:"#deb887",brown:"#a52a2a",beige:"#f5f5dc",chocolate:"#d2691e",chartreuse:"#7fff00",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cadetblue:"#5f9ea0",tomato:"#ff6347",fuchsia:"#f0f",blue:"#00f",salmon:"#fa8072",blanchedalmond:"#ffebcd",slateblue:"#6a5acd",slategray:"#708090",thistle:"#d8bfd8",tan:"#d2b48c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",blueviolet:"#8a2be2",black:"#000",darkmagenta:"#8b008b",darkslateblue:"#483d8b",darkkhaki:"#bdb76b",darkorchid:"#9932cc",darkorange:"#ff8c00",darkgreen:"#006400",darkred:"#8b0000",dodgerblue:"#1e90ff",darkslategray:"#2f4f4f",dimgray:"#696969",deepskyblue:"#00bfff",firebrick:"#b22222",forestgreen:"#228b22",indigo:"#4b0082",ivory:"#fffff0",lavenderblush:"#fff0f5",feldspar:"#d19275",indianred:"#cd5c5c",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightskyblue:"#87cefa",lightslategray:"#789",lightslateblue:"#8470ff",snow:"#fffafa",lightseagreen:"#20b2aa",lightsalmon:"#ffa07a",darksalmon:"#e9967a",darkviolet:"#9400d3",mediumpurple:"#9370d8",mediumaquamarine:"#66cdaa",skyblue:"#87ceeb",lavender:"#e6e6fa",lightsteelblue:"#b0c4de",mediumvioletred:"#c71585",mintcream:"#f5fffa",navajowhite:"#ffdead",navy:"#000080",olivedrab:"#6b8e23",palevioletred:"#d87093",violetred:"#d02090",yellow:"#ff0",yellowgreen:"#9acd32",lawngreen:"#7cfc00",pink:"#ffc0cb",paleturquoise:"#afeeee",palegoldenrod:"#eee8aa",darkolivegreen:"#556b2f",darkseagreen:"#8fbc8f",darkturquoise:"#00ced1",peachpuff:"#ffdab9",deeppink:"#ff1493",violet:"#ee82ee",palegreen:"#98fb98",mediumseagreen:"#3cb371",peru:"#cd853f",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",purple:"#800080",seagreen:"#2e8b57",seashell:"#fff5ee",papayawhip:"#ffefd5",mediumslateblue:"#7b68ee",plum:"#dda0dd",mediumspringgreen:"#00fa9a"};function Ko(t){return t<0?0:t>255?255:Math.round(t)||0}function $F(t){return t<=0||t>0?t<0?0:t>1?1:Math.round(1e4*t)/1e4:0}const wae=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,Cae=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,Sae=/^rgb\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*\)$/,kae=/^rgba\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?[\d]{0,10}(?:\.\d+)?)\s*\)$/;function Mm(t){(t=t.toLowerCase())in n_&&(t=n_[t]);{const e=kae.exec(t)||Sae.exec(t);if(e)return[Ko(parseInt(e[1],10)),Ko(parseInt(e[2],10)),Ko(parseInt(e[3],10)),$F(e.length<5?1:parseFloat(e[4]))]}{const e=Cae.exec(t);if(e)return[Ko(parseInt(e[1],16)),Ko(parseInt(e[2],16)),Ko(parseInt(e[3],16)),1]}{const e=wae.exec(t);if(e)return[Ko(17*parseInt(e[1],16)),Ko(17*parseInt(e[2],16)),Ko(17*parseInt(e[3],16)),1]}throw new Error(`Cannot parse color: ${t}`)}function gv(t){const e=Mm(t);return{t:`rgb(${e[0]}, ${e[1]}, ${e[2]})`,i:(n=e,.199*n[0]+.687*n[1]+.114*n[2]>160?"black":"white")};var n}let ln=class{constructor(){this.h=[]}l(e,n,o){const i={o:e,_:n,u:o===!0};this.h.push(i)}v(e){const n=this.h.findIndex(o=>e===o.o);n>-1&&this.h.splice(n,1)}p(e){this.h=this.h.filter(n=>n._!==e)}m(e,n,o){const i=[...this.h];this.h=this.h.filter(r=>!r.u),i.forEach(r=>r.o(e,n,o))}M(){return this.h.length>0}S(){this.h=[]}};function $i(t,...e){for(const n of e)for(const o in n)n[o]!==void 0&&(typeof n[o]!="object"||t[o]===void 0||Array.isArray(n[o])?t[o]=n[o]:$i(t[o],n[o]));return t}function Xi(t){return typeof t=="number"&&isFinite(t)}function Ad(t){return typeof t=="number"&&t%1==0}function Th(t){return typeof t=="string"}function kf(t){return typeof t=="boolean"}function wr(t){const e=t;if(!e||typeof e!="object")return e;let n,o,i;for(o in n=Array.isArray(e)?[]:{},e)e.hasOwnProperty(o)&&(i=e[o],n[o]=i&&typeof i=="object"?wr(i):i);return n}function Pae(t){return t!==null}function Nd(t){return t===null?void 0:t}const xC="-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif";function Sc(t,e,n){return e===void 0&&(e=xC),`${n=n!==void 0?`${n} `:""}${t}px ${e}`}let Mae=class{constructor(e){this.k={C:1,T:5,P:NaN,R:"",D:"",O:"",A:"",V:0,B:0,I:0,L:0,N:0},this.F=e}W(){const e=this.k,n=this.j(),o=this.H();return e.P===n&&e.D===o||(e.P=n,e.D=o,e.R=Sc(n,o),e.L=2.5/12*n,e.V=e.L,e.B=n/12*e.T,e.I=n/12*e.T,e.N=0),e.O=this.$(),e.A=this.U(),this.k}$(){return this.F.W().layout.textColor}U(){return this.F.q()}j(){return this.F.W().layout.fontSize}H(){return this.F.W().layout.fontFamily}},wC=class{constructor(){this.Y=[]}X(e){this.Y=e}K(e,n,o){this.Y.forEach(i=>{i.K(e,n,o)})}},CC=class{K(e,n,o){e.useMediaCoordinateSpace(i=>this.Z(i,n,o))}G(e,n,o){e.useMediaCoordinateSpace(i=>this.J(i,n,o))}J(e,n,o){}},_ae=class extends CC{constructor(){super(...arguments),this.tt=null}it(e){this.tt=e}Z({context:e}){if(this.tt===null||this.tt.nt===null)return;const n=this.tt.nt,o=this.tt,i=r=>{e.beginPath();for(let s=n.to-1;s>=n.from;--s){const a=o.st[s];e.moveTo(a.et,a.rt),e.arc(a.et,a.rt,r,0,2*Math.PI)}e.fill()};o.ht>0&&(e.fillStyle=o.lt,i(o.ot+o.ht)),e.fillStyle=o._t,i(o.ot)}};function Rae(){return{st:[{et:0,rt:0,ut:0,ct:0}],_t:"",lt:"",ot:0,ht:0,nt:null}}const Tae={from:0,to:1};let Oae=class{constructor(e,n){this.dt=new wC,this.ft=[],this.vt=[],this.bt=!0,this.F=e,this.wt=n,this.dt.X(this.ft)}gt(e){const n=this.F.Mt();n.length!==this.ft.length&&(this.vt=n.map(Rae),this.ft=this.vt.map(o=>{const i=new _ae;return i.it(o),i}),this.dt.X(this.ft)),this.bt=!0}xt(){return this.bt&&(this.St(),this.bt=!1),this.dt}St(){const e=this.wt.W().mode===2,n=this.F.Mt(),o=this.wt.kt(),i=this.F.yt();n.forEach((r,s)=>{var a;const l=this.vt[s],c=r.Ct(o);if(e||c===null||!r.Tt())return void(l.nt=null);const u=Me(r.Pt());l._t=c.Rt,l.ot=c.ot,l.ht=c.Dt,l.st[0].ct=c.ct,l.st[0].rt=r.At().Ot(c.ct,u.Vt),l.lt=(a=c.Bt)!==null&&a!==void 0?a:this.F.It(l.st[0].rt/r.At().zt()),l.st[0].ut=o,l.st[0].et=i.Et(o),l.nt=Tae})}},$r=class{K(e,n,o){e.useBitmapCoordinateSpace(i=>this.Z(i,n,o))}},Iae=class extends $r{constructor(e){super(),this.Lt=e}Z({context:e,bitmapSize:n,horizontalPixelRatio:o,verticalPixelRatio:i}){if(this.Lt===null)return;const r=this.Lt.Nt.Tt,s=this.Lt.Ft.Tt;if(!r&&!s)return;const a=Math.round(this.Lt.et*o),l=Math.round(this.Lt.rt*i);e.lineCap="butt",r&&a>=0&&(e.lineWidth=Math.floor(this.Lt.Nt.ht*o),e.strokeStyle=this.Lt.Nt.O,e.fillStyle=this.Lt.Nt.O,Da(e,this.Lt.Nt.Wt),function(c,u,d,h){c.beginPath();const p=c.lineWidth%2?.5:0;c.moveTo(u+p,d),c.lineTo(u+p,h),c.stroke()}(e,a,0,n.height)),s&&l>=0&&(e.lineWidth=Math.floor(this.Lt.Ft.ht*i),e.strokeStyle=this.Lt.Ft.O,e.fillStyle=this.Lt.Ft.O,Da(e,this.Lt.Ft.Wt),DF(e,l,0,n.width))}},Eae=class{constructor(e){this.bt=!0,this.jt={Nt:{ht:1,Wt:0,O:"",Tt:!1},Ft:{ht:1,Wt:0,O:"",Tt:!1},et:0,rt:0},this.Ht=new Iae(this.jt),this.$t=e}gt(){this.bt=!0}xt(){return this.bt&&(this.St(),this.bt=!1),this.Ht}St(){const e=this.$t.Tt(),n=Me(this.$t.Ut()),o=n.qt().W().crosshair,i=this.jt;if(o.mode===2)return i.Ft.Tt=!1,void(i.Nt.Tt=!1);i.Ft.Tt=e&&this.$t.Yt(n),i.Nt.Tt=e&&this.$t.Xt(),i.Ft.ht=o.horzLine.width,i.Ft.Wt=o.horzLine.style,i.Ft.O=o.horzLine.color,i.Nt.ht=o.vertLine.width,i.Nt.Wt=o.vertLine.style,i.Nt.O=o.vertLine.color,i.et=this.$t.Kt(),i.rt=this.$t.Zt()}};function Dae(t,e,n,o,i,r){t.fillRect(e+r,n,o-2*r,r),t.fillRect(e+r,n+i-r,o-2*r,r),t.fillRect(e,n,r,i),t.fillRect(e+o-r,n,r,i)}function vv(t,e,n,o,i,r){t.save(),t.globalCompositeOperation="copy",t.fillStyle=r,t.fillRect(e,n,o,i),t.restore()}function o_(t,e){return t.map(n=>n===0?n:n+e)}function A0(t,e,n,o,i,r){t.beginPath(),t.lineTo(e+o-r[1],n),r[1]!==0&&t.arcTo(e+o,n,e+o,n+r[1],r[1]),t.lineTo(e+o,n+i-r[2]),r[2]!==0&&t.arcTo(e+o,n+i,e+o-r[2],n+i,r[2]),t.lineTo(e+r[3],n+i),r[3]!==0&&t.arcTo(e,n+i,e,n+i-r[3],r[3]),t.lineTo(e,n+r[0]),r[0]!==0&&t.arcTo(e,n,e+r[0],n,r[0])}function i_(t,e,n,o,i,r,s=0,a=[0,0,0,0],l=""){if(t.save(),!s||!l||l===r)return A0(t,e,n,o,i,a),t.fillStyle=r,t.fill(),void t.restore();const c=s/2;r!=="transparent"&&(A0(t,e+s,n+s,o-2*s,i-2*s,o_(a,-s)),t.fillStyle=r,t.fill()),l!=="transparent"&&(A0(t,e+c,n+c,o-s,i-s,o_(a,-c)),t.lineWidth=s,t.strokeStyle=l,t.closePath(),t.stroke()),t.restore()}function FF(t,e,n,o,i,r,s){t.save(),t.globalCompositeOperation="copy";const a=t.createLinearGradient(0,0,0,i);a.addColorStop(0,r),a.addColorStop(1,s),t.fillStyle=a,t.fillRect(e,n,o,i),t.restore()}class r_{constructor(e,n){this.it(e,n)}it(e,n){this.Lt=e,this.Gt=n}zt(e,n){return this.Lt.Tt?e.P+e.L+e.V:0}K(e,n,o,i){if(!this.Lt.Tt||this.Lt.Jt.length===0)return;const r=this.Lt.O,s=this.Gt.t,a=e.useBitmapCoordinateSpace(l=>{const c=l.context;c.font=n.R;const u=this.Qt(l,n,o,i),d=u.ti,h=(p,g)=>{u.ii?i_(c,d.ni,d.si,d.ei,d.ri,p,d.hi,[d.ot,0,0,d.ot],g):i_(c,d.li,d.si,d.ei,d.ri,p,d.hi,[0,d.ot,d.ot,0],g)};return h(s,"transparent"),this.Lt.ai&&(c.fillStyle=r,c.fillRect(d.li,d.oi,d._i-d.li,d.ui)),h("transparent",s),this.Lt.ci&&(c.fillStyle=n.A,c.fillRect(u.ii?d.di-d.hi:0,d.si,d.hi,d.fi-d.si)),u});e.useMediaCoordinateSpace(({context:l})=>{const c=a.vi;l.font=n.R,l.textAlign=a.ii?"right":"left",l.textBaseline="middle",l.fillStyle=r,l.fillText(this.Lt.Jt,c.pi,(c.si+c.fi)/2+c.mi)})}Qt(e,n,o,i){var r;const{context:s,bitmapSize:a,mediaSize:l,horizontalPixelRatio:c,verticalPixelRatio:u}=e,d=this.Lt.ai||!this.Lt.bi?n.T:0,h=this.Lt.wi?n.C:0,p=n.L+this.Gt.gi,g=n.V+this.Gt.Mi,m=n.B,b=n.I,v=this.Lt.Jt,y=n.P,w=o.xi(s,v),C=Math.ceil(o.Si(s,v)),k=y+p+g,P=n.C+m+b+C+d,M=Math.max(1,Math.floor(u));let _=Math.round(k*u);_%2!=M%2&&(_+=1);const R=h>0?Math.max(1,Math.floor(h*c)):0,O=Math.round(P*c),I=Math.round(d*c),$=(r=this.Gt.ki)!==null&&r!==void 0?r:this.Gt.yi,F=Math.round($*u)-Math.floor(.5*u),E=Math.floor(F+M/2-_/2),D=E+_,j=i==="right",N=j?l.width-h:h,A=j?a.width-R:R;let L,V,W;return j?(L=A-O,V=A-I,W=N-d-m-h):(L=A+O,V=A+I,W=N+d+m),{ii:j,ti:{si:E,oi:F,fi:D,ei:O,ri:_,ot:2*c,hi:R,ni:L,li:A,_i:V,ui:M,di:a.width},vi:{si:E/u,fi:D/u,pi:W,mi:w}}}}class bv{constructor(e){this.Ci={yi:0,t:"#000",Mi:0,gi:0},this.Ti={Jt:"",Tt:!1,ai:!0,bi:!1,Bt:"",O:"#FFF",ci:!1,wi:!1},this.Pi={Jt:"",Tt:!1,ai:!1,bi:!0,Bt:"",O:"#FFF",ci:!0,wi:!0},this.bt=!0,this.Ri=new(e||r_)(this.Ti,this.Ci),this.Di=new(e||r_)(this.Pi,this.Ci)}Jt(){return this.Oi(),this.Ti.Jt}yi(){return this.Oi(),this.Ci.yi}gt(){this.bt=!0}zt(e,n=!1){return Math.max(this.Ri.zt(e,n),this.Di.zt(e,n))}Ai(){return this.Ci.ki||0}Vi(e){this.Ci.ki=e}Bi(){return this.Oi(),this.Ti.Tt||this.Pi.Tt}Ii(){return this.Oi(),this.Ti.Tt}xt(e){return this.Oi(),this.Ti.ai=this.Ti.ai&&e.W().ticksVisible,this.Pi.ai=this.Pi.ai&&e.W().ticksVisible,this.Ri.it(this.Ti,this.Ci),this.Di.it(this.Pi,this.Ci),this.Ri}zi(){return this.Oi(),this.Ri.it(this.Ti,this.Ci),this.Di.it(this.Pi,this.Ci),this.Di}Oi(){this.bt&&(this.Ti.ai=!0,this.Pi.ai=!1,this.Ei(this.Ti,this.Pi,this.Ci))}}class $ae extends bv{constructor(e,n,o){super(),this.$t=e,this.Li=n,this.Ni=o}Ei(e,n,o){if(e.Tt=!1,this.$t.W().mode===2)return;const i=this.$t.W().horzLine;if(!i.labelVisible)return;const r=this.Li.Pt();if(!this.$t.Tt()||this.Li.Fi()||r===null)return;const s=gv(i.labelBackgroundColor);o.t=s.t,e.O=s.i;const a=2/12*this.Li.P();o.gi=a,o.Mi=a;const l=this.Ni(this.Li);o.yi=l.yi,e.Jt=this.Li.Wi(l.ct,r),e.Tt=!0}}const Fae=/[1-9]/g;class jF{constructor(){this.Lt=null}it(e){this.Lt=e}K(e,n){if(this.Lt===null||this.Lt.Tt===!1||this.Lt.Jt.length===0)return;const o=e.useMediaCoordinateSpace(({context:h})=>(h.font=n.R,Math.round(n.ji.Si(h,Me(this.Lt).Jt,Fae))));if(o<=0)return;const i=n.Hi,r=o+2*i,s=r/2,a=this.Lt.$i;let l=this.Lt.yi,c=Math.floor(l-s)+.5;c<0?(l+=Math.abs(0-c),c=Math.floor(l-s)+.5):c+r>a&&(l-=Math.abs(a-(c+r)),c=Math.floor(l-s)+.5);const u=c+r,d=Math.ceil(0+n.C+n.T+n.L+n.P+n.V);e.useBitmapCoordinateSpace(({context:h,horizontalPixelRatio:p,verticalPixelRatio:g})=>{const m=Me(this.Lt);h.fillStyle=m.t;const b=Math.round(c*p),v=Math.round(0*g),y=Math.round(u*p),w=Math.round(d*g),C=Math.round(2*p);if(h.beginPath(),h.moveTo(b,v),h.lineTo(b,w-C),h.arcTo(b,w,b+C,w,C),h.lineTo(y-C,w),h.arcTo(y,w,y,w-C,C),h.lineTo(y,v),h.fill(),m.ai){const k=Math.round(m.yi*p),P=v,M=Math.round((P+n.T)*g);h.fillStyle=m.O;const _=Math.max(1,Math.floor(p)),R=Math.floor(.5*p);h.fillRect(k-R,P,_,M-P)}}),e.useMediaCoordinateSpace(({context:h})=>{const p=Me(this.Lt),g=0+n.C+n.T+n.L+n.P/2;h.font=n.R,h.textAlign="left",h.textBaseline="middle",h.fillStyle=p.O;const m=n.ji.xi(h,"Apr0");h.translate(c+i,g+m),h.fillText(p.Jt,0,0)})}}class jae{constructor(e,n,o){this.bt=!0,this.Ht=new jF,this.jt={Tt:!1,t:"#4c525e",O:"white",Jt:"",$i:0,yi:NaN,ai:!0},this.wt=e,this.Ui=n,this.Ni=o}gt(){this.bt=!0}xt(){return this.bt&&(this.St(),this.bt=!1),this.Ht.it(this.jt),this.Ht}St(){const e=this.jt;if(e.Tt=!1,this.wt.W().mode===2)return;const n=this.wt.W().vertLine;if(!n.labelVisible)return;const o=this.Ui.yt();if(o.Fi())return;e.$i=o.$i();const i=this.Ni();if(i===null)return;e.yi=i.yi;const r=o.qi(this.wt.kt());e.Jt=o.Yi(Me(r)),e.Tt=!0;const s=gv(n.labelBackgroundColor);e.t=s.t,e.O=s.i,e.ai=o.W().ticksVisible}}class SC{constructor(){this.Xi=null,this.Ki=0}Zi(){return this.Ki}Gi(e){this.Ki=e}At(){return this.Xi}Ji(e){this.Xi=e}Qi(e){return[]}tn(){return[]}Tt(){return!0}}var s_;(function(t){t[t.Normal=0]="Normal",t[t.Magnet=1]="Magnet",t[t.Hidden=2]="Hidden"})(s_||(s_={}));class Lae extends SC{constructor(e,n){super(),this.nn=null,this.sn=NaN,this.en=0,this.rn=!0,this.hn=new Map,this.ln=!1,this.an=NaN,this.on=NaN,this._n=NaN,this.un=NaN,this.Ui=e,this.cn=n,this.dn=new Oae(e,this),this.fn=((i,r)=>s=>{const a=r(),l=i();if(s===Me(this.nn).vn())return{ct:l,yi:a};{const c=Me(s.Pt());return{ct:s.pn(a,c),yi:a}}})(()=>this.sn,()=>this.on);const o=((i,r)=>()=>{const s=this.Ui.yt().mn(i()),a=r();return s&&Number.isFinite(a)?{ut:s,yi:a}:null})(()=>this.en,()=>this.Kt());this.bn=new jae(this,e,o),this.wn=new Eae(this)}W(){return this.cn}gn(e,n){this._n=e,this.un=n}Mn(){this._n=NaN,this.un=NaN}xn(){return this._n}Sn(){return this.un}kn(e,n,o){this.ln||(this.ln=!0),this.rn=!0,this.yn(e,n,o)}kt(){return this.en}Kt(){return this.an}Zt(){return this.on}Tt(){return this.rn}Cn(){this.rn=!1,this.Tn(),this.sn=NaN,this.an=NaN,this.on=NaN,this.nn=null,this.Mn()}Pn(e){return this.nn!==null?[this.wn,this.dn]:[]}Yt(e){return e===this.nn&&this.cn.horzLine.visible}Xt(){return this.cn.vertLine.visible}Rn(e,n){this.rn&&this.nn===e||this.hn.clear();const o=[];return this.nn===e&&o.push(this.Dn(this.hn,n,this.fn)),o}tn(){return this.rn?[this.bn]:[]}Ut(){return this.nn}On(){this.wn.gt(),this.hn.forEach(e=>e.gt()),this.bn.gt(),this.dn.gt()}An(e){return e&&!e.vn().Fi()?e.vn():null}yn(e,n,o){this.Vn(e,n,o)&&this.On()}Vn(e,n,o){const i=this.an,r=this.on,s=this.sn,a=this.en,l=this.nn,c=this.An(o);this.en=e,this.an=isNaN(e)?NaN:this.Ui.yt().Et(e),this.nn=o;const u=c!==null?c.Pt():null;return c!==null&&u!==null?(this.sn=n,this.on=c.Ot(n,u)):(this.sn=NaN,this.on=NaN),i!==this.an||r!==this.on||a!==this.en||s!==this.sn||l!==this.nn}Tn(){const e=this.Ui.Mt().map(o=>o.In().Bn()).filter(Pae),n=e.length===0?null:Math.max(...e);this.en=n!==null?n:NaN}Dn(e,n,o){let i=e.get(n);return i===void 0&&(i=new $ae(this,n,o),e.set(n,i)),i}}function yv(t){return t==="left"||t==="right"}class $n{constructor(e){this.zn=new Map,this.En=[],this.Ln=e}Nn(e,n){const o=function(i,r){return i===void 0?r:{Fn:Math.max(i.Fn,r.Fn),Wn:i.Wn||r.Wn}}(this.zn.get(e),n);this.zn.set(e,o)}jn(){return this.Ln}Hn(e){const n=this.zn.get(e);return n===void 0?{Fn:this.Ln}:{Fn:Math.max(this.Ln,n.Fn),Wn:n.Wn}}$n(){this.Un(),this.En=[{qn:0}]}Yn(e){this.Un(),this.En=[{qn:1,Vt:e}]}Xn(e){this.Kn(),this.En.push({qn:5,Vt:e})}Un(){this.Kn(),this.En.push({qn:6})}Zn(){this.Un(),this.En=[{qn:4}]}Gn(e){this.Un(),this.En.push({qn:2,Vt:e})}Jn(e){this.Un(),this.En.push({qn:3,Vt:e})}Qn(){return this.En}ts(e){for(const n of e.En)this.ns(n);this.Ln=Math.max(this.Ln,e.Ln),e.zn.forEach((n,o)=>{this.Nn(o,n)})}static ss(){return new $n(2)}static es(){return new $n(3)}ns(e){switch(e.qn){case 0:this.$n();break;case 1:this.Yn(e.Vt);break;case 2:this.Gn(e.Vt);break;case 3:this.Jn(e.Vt);break;case 4:this.Zn();break;case 5:this.Xn(e.Vt);break;case 6:this.Kn()}}Kn(){const e=this.En.findIndex(n=>n.qn===5);e!==-1&&this.En.splice(e,1)}}const a_=".";function Cr(t,e){if(!Xi(t))return"n/a";if(!Ad(e))throw new TypeError("invalid length");if(e<0||e>16)throw new TypeError("invalid length");return e===0?t.toString():("0000000000000000"+t.toString()).slice(-e)}class xv{constructor(e,n){if(n||(n=1),Xi(e)&&Ad(e)||(e=100),e<0)throw new TypeError("invalid base");this.Li=e,this.rs=n,this.hs()}format(e){const n=e<0?"−":"";return e=Math.abs(e),n+this.ls(e)}hs(){if(this.os=0,this.Li>0&&this.rs>0){let e=this.Li;for(;e>1;)e/=10,this.os++}}ls(e){const n=this.Li/this.rs;let o=Math.floor(e),i="";const r=this.os!==void 0?this.os:NaN;if(n>1){let s=+(Math.round(e*n)-o*n).toFixed(this.os);s>=n&&(s-=n,o+=1),i=a_+Cr(+s.toFixed(this.os)*this.rs,r)}else o=Math.round(o*n)/n,r>0&&(i=a_+Cr(0,r));return o.toFixed(0)+i}}class LF extends xv{constructor(e=100){super(e)}format(e){return`${super.format(e)}%`}}class Aae{constructor(e){this._s=e}format(e){let n="";return e<0&&(n="-",e=-e),e<995?n+this.us(e):e<999995?n+this.us(e/1e3)+"K":e<999999995?(e=1e3*Math.round(e/1e3),n+this.us(e/1e6)+"M"):(e=1e6*Math.round(e/1e6),n+this.us(e/1e9)+"B")}us(e){let n;const o=Math.pow(10,this._s);return n=(e=Math.round(e*o)/o)>=1e-15&&e<1?e.toFixed(this._s).replace(/\.?0+$/,""):String(e),n.replace(/(\.[1-9]*)0+$/,(i,r)=>r)}}function AF(t,e,n,o,i,r,s){if(e.length===0||o.from>=e.length||o.to<=0)return;const{context:a,horizontalPixelRatio:l,verticalPixelRatio:c}=t,u=e[o.from];let d=r(t,u),h=u;if(o.to-o.from<2){const p=i/2;a.beginPath();const g={et:u.et-p,rt:u.rt},m={et:u.et+p,rt:u.rt};a.moveTo(g.et*l,g.rt*c),a.lineTo(m.et*l,m.rt*c),s(t,d,g,m)}else{const p=(m,b)=>{s(t,d,h,b),a.beginPath(),d=m,h=b};let g=h;a.beginPath(),a.moveTo(u.et*l,u.rt*c);for(let m=o.from+1;m=g.from;--P){const M=h[P];if(M){const _=m(d,M);_!==w&&(y.beginPath(),w!==null&&y.fill(),y.fillStyle=_,w=_);const R=Math.round(M.et*b)+C,O=M.rt*v;y.moveTo(R,O),y.arc(R,O,k,0,2*Math.PI)}}y.fill()}(e,n,l,o,u)}}class BF extends VF{Ds(e,n){return n._t}}function HF(t,e,n,o,i=0,r=e.length){let s=r-i;for(;0>1,l=i+a;o(e[l],n)===t?(i=l+1,s-=a+1):s=a}return i}const Oh=HF.bind(null,!0),WF=HF.bind(null,!1);function Hae(t,e){return t.ut0&&r=o&&(a=r-1),s>0&&sObject.assign(Object.assign({},e),this.Es.$s().Hs(e.ut)))}Us(){this.zs=null}Fs(){this.Vs&&(this.qs(),this.Vs=!1),this.Bs&&(this.js(),this.Bs=!1),this.As&&(this.Ys(),this.As=!1)}Ys(){const e=this.Es.At(),n=this.Ls.yt();if(this.Us(),n.Fi()||e.Fi())return;const o=n.Xs();if(o===null||this.Es.In().Ks()===0)return;const i=this.Es.Pt();i!==null&&(this.zs=UF(this.Is,o,this.Ns),this.Zs(e,n,i.Vt),this.Gs())}}class wv extends PC{constructor(e,n){super(e,n,!0)}Zs(e,n,o){n.Js(this.Is,Nd(this.zs)),e.Qs(this.Is,o,Nd(this.zs))}te(e,n){return{ut:e,ct:n,et:NaN,rt:NaN}}qs(){const e=this.Es.$s();this.Is=this.Es.In().ie().map(n=>{const o=n.Vt[3];return this.ne(n.se,o,e)})}}class Uae extends wv{constructor(e,n){super(e,n),this.Ws=new wC,this.ee=new Vae,this.re=new BF,this.Ws.X([this.ee,this.re])}ne(e,n,o){return Object.assign(Object.assign({},this.te(e,n)),o.Hs(e))}Gs(){const e=this.Es.W();this.ee.it({ds:e.lineType,st:this.Is,Wt:e.lineStyle,ht:e.lineWidth,fs:null,vs:e.invertFilledArea,nt:this.zs,cs:this.Ls.yt().he()}),this.re.it({ds:e.lineVisible?e.lineType:void 0,st:this.Is,Wt:e.lineStyle,ht:e.lineWidth,nt:this.zs,cs:this.Ls.yt().he(),Rs:e.pointMarkersVisible?e.pointMarkersRadius||e.lineWidth/2+2:void 0})}}class qae extends $r{constructor(){super(...arguments),this.Lt=null,this.le=0,this.ae=0}it(e){this.Lt=e}Z({context:e,horizontalPixelRatio:n,verticalPixelRatio:o}){if(this.Lt===null||this.Lt.In.length===0||this.Lt.nt===null)return;this.le=this.oe(n),this.le>=2&&Math.max(1,Math.floor(n))%2!=this.le%2&&this.le--,this.ae=this.Lt._e?Math.min(this.le,Math.floor(n)):this.le;let i=null;const r=this.ae<=this.le&&this.Lt.he>=Math.floor(1.5*n);for(let s=this.Lt.nt.from;sm+v-1&&(_=m+v-1,M=_-d+1),e.fillRect(P,M,u-P,_-M+1)}const w=c+y;let C=Math.max(m,Math.round(a.pe*o)-l),k=C+d-1;k>m+v-1&&(k=m+v-1,C=k-d+1),e.fillRect(h+1,C,w-h,k-C+1)}}}oe(e){const n=Math.floor(e);return Math.max(n,Math.floor(function(o,i){return Math.floor(.3*o*i)}(Me(this.Lt).he,e)))}}class qF extends PC{constructor(e,n){super(e,n,!1)}Zs(e,n,o){n.Js(this.Is,Nd(this.zs)),e.me(this.Is,o,Nd(this.zs))}be(e,n,o){return{ut:e,we:n.Vt[0],ge:n.Vt[1],Me:n.Vt[2],xe:n.Vt[3],et:NaN,ve:NaN,ce:NaN,de:NaN,pe:NaN}}qs(){const e=this.Es.$s();this.Is=this.Es.In().ie().map(n=>this.ne(n.se,n,e))}}class Gae extends qF{constructor(){super(...arguments),this.Ws=new qae}ne(e,n,o){return Object.assign(Object.assign({},this.be(e,n,o)),o.Hs(e))}Gs(){const e=this.Es.W();this.Ws.it({In:this.Is,he:this.Ls.yt().he(),fe:e.openVisible,_e:e.thinBars,nt:this.zs})}}class Kae extends NF{constructor(){super(...arguments),this.Cs=new kC}ps(e,n){const o=this.tt;return this.Cs.bs(e,{gs:n.Se,Ms:n.ke,xs:n.ye,Ss:n.Ce,ks:e.bitmapSize.height,fs:o.fs})}}class Yae extends VF{constructor(){super(...arguments),this.Te=new kC}Ds(e,n){const o=this.tt;return this.Te.bs(e,{gs:n.Pe,Ms:n.Pe,xs:n.Re,Ss:n.Re,ks:e.bitmapSize.height,fs:o.fs})}}class Qae extends wv{constructor(e,n){super(e,n),this.Ws=new wC,this.De=new Kae,this.Oe=new Yae,this.Ws.X([this.De,this.Oe])}ne(e,n,o){return Object.assign(Object.assign({},this.te(e,n)),o.Hs(e))}Gs(){const e=this.Es.Pt();if(e===null)return;const n=this.Es.W(),o=this.Es.At().Ot(n.baseValue.price,e.Vt),i=this.Ls.yt().he();this.De.it({st:this.Is,ht:n.lineWidth,Wt:n.lineStyle,ds:n.lineType,fs:o,vs:!1,nt:this.zs,cs:i}),this.Oe.it({st:this.Is,ht:n.lineWidth,Wt:n.lineStyle,ds:n.lineVisible?n.lineType:void 0,Rs:n.pointMarkersVisible?n.pointMarkersRadius||n.lineWidth/2+2:void 0,fs:o,nt:this.zs,cs:i})}}class Xae extends $r{constructor(){super(...arguments),this.Lt=null,this.le=0}it(e){this.Lt=e}Z(e){if(this.Lt===null||this.Lt.In.length===0||this.Lt.nt===null)return;const{horizontalPixelRatio:n}=e;this.le=function(r,s){if(r>=2.5&&r<=4)return Math.floor(3*s);const a=1-.2*Math.atan(Math.max(4,r)-4)/(.5*Math.PI),l=Math.floor(r*a*s),c=Math.floor(r*s),u=Math.min(l,c);return Math.max(Math.floor(s),u)}(this.Lt.he,n),this.le>=2&&Math.floor(n)%2!=this.le%2&&this.le--;const o=this.Lt.In;this.Lt.Ae&&this.Ve(e,o,this.Lt.nt),this.Lt.ci&&this.Be(e,o,this.Lt.nt);const i=this.Ie(n);(!this.Lt.ci||this.le>2*i)&&this.ze(e,o,this.Lt.nt)}Ve(e,n,o){if(this.Lt===null)return;const{context:i,horizontalPixelRatio:r,verticalPixelRatio:s}=e;let a="",l=Math.min(Math.floor(r),Math.floor(this.Lt.he*r));l=Math.max(Math.floor(r),Math.min(l,this.le));const c=Math.floor(.5*l);let u=null;for(let d=o.from;d2*l)Dae(i,h,g,p-h+1,m-g+1,l);else{const b=p-h+1;i.fillRect(h,g,b,m-g+1)}c=p}}ze(e,n,o){if(this.Lt===null)return;const{context:i,horizontalPixelRatio:r,verticalPixelRatio:s}=e;let a="";const l=this.Ie(r);for(let c=o.from;ch||i.fillRect(p,d,g-p+1,h-d+1)}}}class Jae extends qF{constructor(){super(...arguments),this.Ws=new Xae}ne(e,n,o){return Object.assign(Object.assign({},this.be(e,n,o)),o.Hs(e))}Gs(){const e=this.Es.W();this.Ws.it({In:this.Is,he:this.Ls.yt().he(),Ae:e.wickVisible,ci:e.borderVisible,nt:this.zs})}}class Zae{constructor(e,n){this.Ne=e,this.Li=n}K(e,n,o){this.Ne.draw(e,this.Li,n,o)}}class z0 extends PC{constructor(e,n,o){super(e,n,!1),this.wn=o,this.Ws=new Zae(this.wn.renderer(),i=>{const r=e.Pt();return r===null?null:e.At().Ot(i,r.Vt)})}Fe(e){return this.wn.priceValueBuilder(e)}We(e){return this.wn.isWhitespace(e)}qs(){const e=this.Es.$s();this.Is=this.Es.In().ie().map(n=>Object.assign(Object.assign({ut:n.se,et:NaN},e.Hs(n.se)),{je:n.He}))}Zs(e,n){n.Js(this.Is,Nd(this.zs))}Gs(){this.wn.update({bars:this.Is.map(ele),barSpacing:this.Ls.yt().he(),visibleRange:this.zs},this.Es.W())}}function ele(t){return{x:t.et,time:t.ut,originalData:t.je,barColor:t.ue}}class tle extends $r{constructor(){super(...arguments),this.Lt=null,this.$e=[]}it(e){this.Lt=e,this.$e=[]}Z({context:e,horizontalPixelRatio:n,verticalPixelRatio:o}){if(this.Lt===null||this.Lt.st.length===0||this.Lt.nt===null)return;this.$e.length||this.Ue(n);const i=Math.max(1,Math.floor(o)),r=Math.round(this.Lt.qe*o)-Math.floor(i/2),s=r+i;for(let a=this.Lt.nt.from;aa.Xe?a.di=s.Os-n-1:s.Os=a.di+n+1)}let i=Math.ceil(this.Lt.he*e);for(let r=this.Lt.nt.from;r0&&i<4)for(let r=this.Lt.nt.from;ri&&(s.Ye>s.Xe?s.di-=1:s.Os+=1)}}}class nle extends wv{constructor(){super(...arguments),this.Ws=new tle}ne(e,n,o){return Object.assign(Object.assign({},this.te(e,n)),o.Hs(e))}Gs(){const e={st:this.Is,he:this.Ls.yt().he(),nt:this.zs,qe:this.Es.At().Ot(this.Es.W().base,Me(this.Es.Pt()).Vt)};this.Ws.it(e)}}class ole extends wv{constructor(){super(...arguments),this.Ws=new BF}ne(e,n,o){return Object.assign(Object.assign({},this.te(e,n)),o.Hs(e))}Gs(){const e=this.Es.W(),n={st:this.Is,Wt:e.lineStyle,ds:e.lineVisible?e.lineType:void 0,ht:e.lineWidth,Rs:e.pointMarkersVisible?e.pointMarkersRadius||e.lineWidth/2+2:void 0,nt:this.zs,cs:this.Ls.yt().he()};this.Ws.it(n)}}const ile=/[2-9]/g;class zd{constructor(e=50){this.Ke=0,this.Ze=1,this.Ge=1,this.Je={},this.Qe=new Map,this.tr=e}ir(){this.Ke=0,this.Qe.clear(),this.Ze=1,this.Ge=1,this.Je={}}Si(e,n,o){return this.nr(e,n,o).width}xi(e,n,o){const i=this.nr(e,n,o);return((i.actualBoundingBoxAscent||0)-(i.actualBoundingBoxDescent||0))/2}nr(e,n,o){const i=o||ile,r=String(n).replace(i,"0");if(this.Qe.has(r))return io(this.Qe.get(r)).sr;if(this.Ke===this.tr){const a=this.Je[this.Ge];delete this.Je[this.Ge],this.Qe.delete(a),this.Ge++,this.Ke--}e.save(),e.textBaseline="middle";const s=e.measureText(r);return e.restore(),s.width===0&&n.length||(this.Qe.set(r,{sr:s,er:this.Ze}),this.Je[this.Ze]=r,this.Ke++,this.Ze++),s}}class rle{constructor(e){this.rr=null,this.k=null,this.hr="right",this.lr=e}ar(e,n,o){this.rr=e,this.k=n,this.hr=o}K(e){this.k!==null&&this.rr!==null&&this.rr.K(e,this.k,this.lr,this.hr)}}class GF{constructor(e,n,o){this._r=e,this.lr=new zd(50),this.ur=n,this.F=o,this.j=-1,this.Ht=new rle(this.lr)}xt(){const e=this.F.cr(this.ur);if(e===null)return null;const n=e.dr(this.ur)?e.vr():this.ur.At();if(n===null)return null;const o=e.pr(n);if(o==="overlay")return null;const i=this.F.mr();return i.P!==this.j&&(this.j=i.P,this.lr.ir()),this.Ht.ar(this._r.zi(),i,o),this.Ht}}class sle extends $r{constructor(){super(...arguments),this.Lt=null}it(e){this.Lt=e}br(e,n){var o;if(!(!((o=this.Lt)===null||o===void 0)&&o.Tt))return null;const{rt:i,ht:r,wr:s}=this.Lt;return n>=i-r-7&&n<=i+r+7?{gr:this.Lt,wr:s}:null}Z({context:e,bitmapSize:n,horizontalPixelRatio:o,verticalPixelRatio:i}){if(this.Lt===null||this.Lt.Tt===!1)return;const r=Math.round(this.Lt.rt*i);r<0||r>n.height||(e.lineCap="butt",e.strokeStyle=this.Lt.O,e.lineWidth=Math.floor(this.Lt.ht*o),Da(e,this.Lt.Wt),DF(e,r,0,n.width))}}class MC{constructor(e){this.Mr={rt:0,O:"rgba(0, 0, 0, 0)",ht:1,Wt:0,Tt:!1},this.Sr=new sle,this.bt=!0,this.Es=e,this.Ls=e.qt(),this.Sr.it(this.Mr)}gt(){this.bt=!0}xt(){return this.Es.Tt()?(this.bt&&(this.kr(),this.bt=!1),this.Sr):null}}class ale extends MC{constructor(e){super(e)}kr(){this.Mr.Tt=!1;const e=this.Es.At(),n=e.yr().yr;if(n!==2&&n!==3)return;const o=this.Es.W();if(!o.baseLineVisible||!this.Es.Tt())return;const i=this.Es.Pt();i!==null&&(this.Mr.Tt=!0,this.Mr.rt=e.Ot(i.Vt,i.Vt),this.Mr.O=o.baseLineColor,this.Mr.ht=o.baseLineWidth,this.Mr.Wt=o.baseLineStyle)}}class lle extends $r{constructor(){super(...arguments),this.Lt=null}it(e){this.Lt=e}He(){return this.Lt}Z({context:e,horizontalPixelRatio:n,verticalPixelRatio:o}){const i=this.Lt;if(i===null)return;const r=Math.max(1,Math.floor(n)),s=r%2/2,a=Math.round(i.Xe.x*n)+s,l=i.Xe.y*o;e.fillStyle=i.Cr,e.beginPath();const c=Math.max(2,1.5*i.Tr)*n;e.arc(a,l,c,0,2*Math.PI,!1),e.fill(),e.fillStyle=i.Pr,e.beginPath(),e.arc(a,l,i.ot*n,0,2*Math.PI,!1),e.fill(),e.lineWidth=r,e.strokeStyle=i.Rr,e.beginPath(),e.arc(a,l,i.ot*n+r/2,0,2*Math.PI,!1),e.stroke()}}const cle=[{Dr:0,Or:.25,Ar:4,Vr:10,Br:.25,Ir:0,zr:.4,Er:.8},{Dr:.25,Or:.525,Ar:10,Vr:14,Br:0,Ir:0,zr:.8,Er:0},{Dr:.525,Or:1,Ar:14,Vr:14,Br:0,Ir:0,zr:0,Er:0}];function u_(t,e,n,o){return function(i,r){if(i==="transparent")return i;const s=Mm(i),a=s[3];return`rgba(${s[0]}, ${s[1]}, ${s[2]}, ${r*a})`}(t,n+(o-n)*e)}function d_(t,e){const n=t%2600/2600;let o;for(const l of cle)if(n>=l.Dr&&n<=l.Or){o=l;break}Ts(o!==void 0,"Last price animation internal logic error");const i=(n-o.Dr)/(o.Or-o.Dr);return{Pr:u_(e,i,o.Br,o.Ir),Rr:u_(e,i,o.zr,o.Er),ot:(r=i,s=o.Ar,a=o.Vr,s+(a-s)*r)};var r,s,a}class ule{constructor(e){this.Ht=new lle,this.bt=!0,this.Lr=!0,this.Nr=performance.now(),this.Fr=this.Nr-1,this.Wr=e}jr(){this.Fr=this.Nr-1,this.gt()}Hr(){if(this.gt(),this.Wr.W().lastPriceAnimation===2){const e=performance.now(),n=this.Fr-e;if(n>0)return void(n<650&&(this.Fr+=2600));this.Nr=e,this.Fr=e+2600}}gt(){this.bt=!0}$r(){this.Lr=!0}Tt(){return this.Wr.W().lastPriceAnimation!==0}Ur(){switch(this.Wr.W().lastPriceAnimation){case 0:return!1;case 1:return!0;case 2:return performance.now()<=this.Fr}}xt(){return this.bt?(this.St(),this.bt=!1,this.Lr=!1):this.Lr&&(this.qr(),this.Lr=!1),this.Ht}St(){this.Ht.it(null);const e=this.Wr.qt().yt(),n=e.Xs(),o=this.Wr.Pt();if(n===null||o===null)return;const i=this.Wr.Yr(!0);if(i.Xr||!n.Kr(i.se))return;const r={x:e.Et(i.se),y:this.Wr.At().Ot(i.ct,o.Vt)},s=i.O,a=this.Wr.W().lineWidth,l=d_(this.Zr(),s);this.Ht.it({Cr:s,Tr:a,Pr:l.Pr,Rr:l.Rr,ot:l.ot,Xe:r})}qr(){const e=this.Ht.He();if(e!==null){const n=d_(this.Zr(),e.Cr);e.Pr=n.Pr,e.Rr=n.Rr,e.ot=n.ot}}Zr(){return this.Ur()?performance.now()-this.Nr:2599}}function Gu(t,e){return zF(Math.min(Math.max(t,12),30)*e)}function Vd(t,e){switch(t){case"arrowDown":case"arrowUp":return Gu(e,1);case"circle":return Gu(e,.8);case"square":return Gu(e,.7)}}function KF(t){return function(e){const n=Math.ceil(e);return n%2!=0?n-1:n}(Gu(t,1))}function h_(t){return Math.max(Gu(t,.1),3)}function YF(t,e,n,o,i){const r=Vd("square",n),s=(r-1)/2,a=t-s,l=e-s;return o>=a&&o<=a+r&&i>=l&&i<=l+r}function f_(t,e,n,o,i){const r=(Vd("arrowUp",i)-1)/2,s=(zF(i/2)-1)/2;e.beginPath(),t?(e.moveTo(n-r,o),e.lineTo(n,o-r),e.lineTo(n+r,o),e.lineTo(n+s,o),e.lineTo(n+s,o+r),e.lineTo(n-s,o+r),e.lineTo(n-s,o)):(e.moveTo(n-r,o),e.lineTo(n,o+r),e.lineTo(n+r,o),e.lineTo(n+s,o),e.lineTo(n+s,o-r),e.lineTo(n-s,o-r),e.lineTo(n-s,o)),e.fill()}function dle(t,e,n,o,i,r){return YF(e,n,o,i,r)}class hle extends CC{constructor(){super(...arguments),this.Lt=null,this.lr=new zd,this.j=-1,this.H="",this.Gr=""}it(e){this.Lt=e}ar(e,n){this.j===e&&this.H===n||(this.j=e,this.H=n,this.Gr=Sc(e,n),this.lr.ir())}br(e,n){if(this.Lt===null||this.Lt.nt===null)return null;for(let o=this.Lt.nt.from;o=o&&a<=o+r&&l>=i-c&&l<=i+c}(t.Jt.et,t.Jt.rt,t.Jt.$i,t.Jt.zt,e,n))||function(o,i,r){if(o.Ks===0)return!1;switch(o.th){case"arrowDown":case"arrowUp":return dle(0,o.et,o.rt,o.Ks,i,r);case"circle":return function(s,a,l,c,u){const d=2+Vd("circle",l)/2,h=s-c,p=a-u;return Math.sqrt(h*h+p*p)<=d}(o.et,o.rt,o.Ks,i,r);case"square":return YF(o.et,o.rt,o.Ks,i,r)}}(t,e,n)}function mle(t,e,n,o,i,r,s,a,l){const c=Xi(n)?n:n.xe,u=Xi(n)?n:n.ge,d=Xi(n)?n:n.Me,h=Xi(e.size)?Math.max(e.size,0):1,p=KF(a.he())*h,g=p/2;switch(t.Ks=p,e.position){case"inBar":return t.rt=s.Ot(c,l),void(t.Jt!==void 0&&(t.Jt.rt=t.rt+g+r+.6*i));case"aboveBar":return t.rt=s.Ot(u,l)-g-o.ih,t.Jt!==void 0&&(t.Jt.rt=t.rt-g-.6*i,o.ih+=1.2*i),void(o.ih+=p+r);case"belowBar":return t.rt=s.Ot(d,l)+g+o.nh,t.Jt!==void 0&&(t.Jt.rt=t.rt+g+r+.6*i,o.nh+=1.2*i),void(o.nh+=p+r)}e.position}class gle{constructor(e,n){this.bt=!0,this.sh=!0,this.eh=!0,this.rh=null,this.Ht=new hle,this.Wr=e,this.Ui=n,this.Lt={st:[],nt:null}}gt(e){this.bt=!0,this.eh=!0,e==="data"&&(this.sh=!0)}xt(e){if(!this.Wr.Tt())return null;this.bt&&this.hh();const n=this.Ui.W().layout;return this.Ht.ar(n.fontSize,n.fontFamily),this.Ht.it(this.Lt),this.Ht}lh(){if(this.eh){if(this.Wr.ah().length>0){const e=this.Ui.yt().he(),n=h_(e),o=1.5*KF(e)+2*n;this.rh={above:o,below:o}}else this.rh=null;this.eh=!1}return this.rh}hh(){const e=this.Wr.At(),n=this.Ui.yt(),o=this.Wr.ah();this.sh&&(this.Lt.st=o.map(u=>({ut:u.time,et:0,rt:0,Ks:0,th:u.shape,O:u.color,Jr:u.Jr,wr:u.id,Jt:void 0})),this.sh=!1);const i=this.Ui.W().layout;this.Lt.nt=null;const r=n.Xs();if(r===null)return;const s=this.Wr.Pt();if(s===null||this.Lt.st.length===0)return;let a=NaN;const l=h_(n.he()),c={ih:l,nh:l};this.Lt.nt=UF(this.Lt.st,r,!0);for(let u=this.Lt.nt.from;u0&&(h.Jt={Qr:d.text,et:0,rt:0,$i:0,zt:0});const p=this.Wr.oh(d.time);p!==null&&mle(h,d,p,c,i.fontSize,l,e,n,s.Vt)}this.bt=!1}}class vle extends MC{constructor(e){super(e)}kr(){const e=this.Mr;e.Tt=!1;const n=this.Es.W();if(!n.priceLineVisible||!this.Es.Tt())return;const o=this.Es.Yr(n.priceLineSource===0);o.Xr||(e.Tt=!0,e.rt=o.yi,e.O=this.Es._h(o.O),e.ht=n.priceLineWidth,e.Wt=n.priceLineStyle)}}class ble extends bv{constructor(e){super(),this.$t=e}Ei(e,n,o){e.Tt=!1,n.Tt=!1;const i=this.$t;if(!i.Tt())return;const r=i.W(),s=r.lastValueVisible,a=i.uh()!=="",l=r.seriesLastValueMode===0,c=i.Yr(!1);if(c.Xr)return;s&&(e.Jt=this.dh(c,s,l),e.Tt=e.Jt.length!==0),(a||l)&&(n.Jt=this.fh(c,s,a,l),n.Tt=n.Jt.length>0);const u=i._h(c.O),d=gv(u);o.t=d.t,o.yi=c.yi,n.Bt=i.qt().It(c.yi/i.At().zt()),e.Bt=u,e.O=d.i,n.O=d.i}fh(e,n,o,i){let r="";const s=this.$t.uh();return o&&s.length!==0&&(r+=`${s} `),n&&i&&(r+=this.$t.At().ph()?e.mh:e.bh),r.trim()}dh(e,n,o){return n?o?this.$t.At().ph()?e.bh:e.mh:e.Jt:""}}function p_(t,e,n,o){const i=Number.isFinite(e),r=Number.isFinite(n);return i&&r?t(e,n):i||r?i?e:n:o}class yo{constructor(e,n){this.wh=e,this.gh=n}Mh(e){return e!==null&&this.wh===e.wh&&this.gh===e.gh}xh(){return new yo(this.wh,this.gh)}Sh(){return this.wh}kh(){return this.gh}yh(){return this.gh-this.wh}Fi(){return this.gh===this.wh||Number.isNaN(this.gh)||Number.isNaN(this.wh)}ts(e){return e===null?this:new yo(p_(Math.min,this.Sh(),e.Sh(),-1/0),p_(Math.max,this.kh(),e.kh(),1/0))}Ch(e){if(!Xi(e)||this.gh-this.wh===0)return;const n=.5*(this.gh+this.wh);let o=this.gh-n,i=this.wh-n;o*=e,i*=e,this.gh=n+o,this.wh=n+i}Th(e){Xi(e)&&(this.gh+=e,this.wh+=e)}Ph(){return{minValue:this.wh,maxValue:this.gh}}static Rh(e){return e===null?null:new yo(e.minValue,e.maxValue)}}class _m{constructor(e,n){this.Dh=e,this.Oh=n||null}Ah(){return this.Dh}Vh(){return this.Oh}Ph(){return this.Dh===null?null:{priceRange:this.Dh.Ph(),margins:this.Oh||void 0}}static Rh(e){return e===null?null:new _m(yo.Rh(e.priceRange),e.margins)}}class yle extends MC{constructor(e,n){super(e),this.Bh=n}kr(){const e=this.Mr;e.Tt=!1;const n=this.Bh.W();if(!this.Es.Tt()||!n.lineVisible)return;const o=this.Bh.Ih();o!==null&&(e.Tt=!0,e.rt=o,e.O=n.color,e.ht=n.lineWidth,e.Wt=n.lineStyle,e.wr=this.Bh.W().id)}}class xle extends bv{constructor(e,n){super(),this.Wr=e,this.Bh=n}Ei(e,n,o){e.Tt=!1,n.Tt=!1;const i=this.Bh.W(),r=i.axisLabelVisible,s=i.title!=="",a=this.Wr;if(!r||!a.Tt())return;const l=this.Bh.Ih();if(l===null)return;s&&(n.Jt=i.title,n.Tt=!0),n.Bt=a.qt().It(l/a.At().zt()),e.Jt=this.zh(i.price),e.Tt=!0;const c=gv(i.axisLabelColor||i.color);o.t=c.t;const u=i.axisLabelTextColor||c.i;e.O=u,n.O=u,o.yi=l}zh(e){const n=this.Wr.Pt();return n===null?"":this.Wr.At().Wi(e,n.Vt)}}class wle{constructor(e,n){this.Wr=e,this.cn=n,this.Eh=new yle(e,this),this._r=new xle(e,this),this.Lh=new GF(this._r,e,e.qt())}Nh(e){$i(this.cn,e),this.gt(),this.Wr.qt().Fh()}W(){return this.cn}Wh(){return this.Eh}jh(){return this.Lh}Hh(){return this._r}gt(){this.Eh.gt(),this._r.gt()}Ih(){const e=this.Wr,n=e.At();if(e.qt().yt().Fi()||n.Fi())return null;const o=e.Pt();return o===null?null:n.Ot(this.cn.price,o.Vt)}}class Cle extends SC{constructor(e){super(),this.Ui=e}qt(){return this.Ui}}const Sle={Bar:(t,e,n,o)=>{var i;const r=e.upColor,s=e.downColor,a=Me(t(n,o)),l=Pl(a.Vt[0])<=Pl(a.Vt[3]);return{ue:(i=a.O)!==null&&i!==void 0?i:l?r:s}},Candlestick:(t,e,n,o)=>{var i,r,s;const a=e.upColor,l=e.downColor,c=e.borderUpColor,u=e.borderDownColor,d=e.wickUpColor,h=e.wickDownColor,p=Me(t(n,o)),g=Pl(p.Vt[0])<=Pl(p.Vt[3]);return{ue:(i=p.O)!==null&&i!==void 0?i:g?a:l,Le:(r=p.Bt)!==null&&r!==void 0?r:g?c:u,Ee:(s=p.$h)!==null&&s!==void 0?s:g?d:h}},Custom:(t,e,n,o)=>{var i;return{ue:(i=Me(t(n,o)).O)!==null&&i!==void 0?i:e.color}},Area:(t,e,n,o)=>{var i,r,s,a;const l=Me(t(n,o));return{ue:(i=l._t)!==null&&i!==void 0?i:e.lineColor,_t:(r=l._t)!==null&&r!==void 0?r:e.lineColor,Ts:(s=l.Ts)!==null&&s!==void 0?s:e.topColor,Ps:(a=l.Ps)!==null&&a!==void 0?a:e.bottomColor}},Baseline:(t,e,n,o)=>{var i,r,s,a,l,c;const u=Me(t(n,o));return{ue:u.Vt[3]>=e.baseValue.price?e.topLineColor:e.bottomLineColor,Pe:(i=u.Pe)!==null&&i!==void 0?i:e.topLineColor,Re:(r=u.Re)!==null&&r!==void 0?r:e.bottomLineColor,Se:(s=u.Se)!==null&&s!==void 0?s:e.topFillColor1,ke:(a=u.ke)!==null&&a!==void 0?a:e.topFillColor2,ye:(l=u.ye)!==null&&l!==void 0?l:e.bottomFillColor1,Ce:(c=u.Ce)!==null&&c!==void 0?c:e.bottomFillColor2}},Line:(t,e,n,o)=>{var i,r;const s=Me(t(n,o));return{ue:(i=s.O)!==null&&i!==void 0?i:e.color,_t:(r=s.O)!==null&&r!==void 0?r:e.color}},Histogram:(t,e,n,o)=>{var i;return{ue:(i=Me(t(n,o)).O)!==null&&i!==void 0?i:e.color}}};class kle{constructor(e){this.Uh=(n,o)=>o!==void 0?o.Vt:this.Wr.In().qh(n),this.Wr=e,this.Yh=Sle[e.Xh()]}Hs(e,n){return this.Yh(this.Uh,this.Wr.W(),e,n)}}var m_;(function(t){t[t.NearestLeft=-1]="NearestLeft",t[t.None=0]="None",t[t.NearestRight=1]="NearestRight"})(m_||(m_={}));const zr=30;class Ple{constructor(){this.Kh=[],this.Zh=new Map,this.Gh=new Map}Jh(){return this.Ks()>0?this.Kh[this.Kh.length-1]:null}Qh(){return this.Ks()>0?this.tl(0):null}Bn(){return this.Ks()>0?this.tl(this.Kh.length-1):null}Ks(){return this.Kh.length}Fi(){return this.Ks()===0}Kr(e){return this.il(e,0)!==null}qh(e){return this.nl(e)}nl(e,n=0){const o=this.il(e,n);return o===null?null:Object.assign(Object.assign({},this.sl(o)),{se:this.tl(o)})}ie(){return this.Kh}el(e,n,o){if(this.Fi())return null;let i=null;for(const r of o)i=Mf(i,this.rl(e,n,r));return i}it(e){this.Gh.clear(),this.Zh.clear(),this.Kh=e}tl(e){return this.Kh[e].se}sl(e){return this.Kh[e]}il(e,n){const o=this.hl(e);if(o===null&&n!==0)switch(n){case-1:return this.ll(e);case 1:return this.al(e);default:throw new TypeError("Unknown search mode")}return o}ll(e){let n=this.ol(e);return n>0&&(n-=1),n!==this.Kh.length&&this.tl(n)n.sen.se>o)}ul(e,n,o){let i=null;for(let r=e;ri.dl&&(i.dl=s)))}return i}rl(e,n,o){if(this.Fi())return null;let i=null;const r=Me(this.Qh()),s=Me(this.Bn()),a=Math.max(e,r),l=Math.min(n,s),c=Math.ceil(a/zr)*zr,u=Math.max(c,Math.floor(l/zr)*zr);{const h=this.ol(a),p=this._l(Math.min(l,c,n));i=Mf(i,this.ul(h,p,o))}let d=this.Zh.get(o);d===void 0&&(d=new Map,this.Zh.set(o,d));for(let h=Math.max(c+1,a);hnew V0(a));return this.gl={vl:r,pl:s},s}tn(){var e,n,o,i;const r=(o=(n=(e=this.yl).timeAxisViews)===null||n===void 0?void 0:n.call(e))!==null&&o!==void 0?o:[];if(((i=this.Ml)===null||i===void 0?void 0:i.vl)===r)return this.Ml.pl;const s=this.Wr.qt().yt(),a=r.map(l=>new _le(l,s));return this.Ml={vl:r,pl:a},a}Rn(){var e,n,o,i;const r=(o=(n=(e=this.yl).priceAxisViews)===null||n===void 0?void 0:n.call(e))!==null&&o!==void 0?o:[];if(((i=this.xl)===null||i===void 0?void 0:i.vl)===r)return this.xl.pl;const s=this.Wr.At(),a=r.map(l=>new Rle(l,s));return this.xl={vl:r,pl:a},a}Tl(){var e,n,o,i;const r=(o=(n=(e=this.yl).priceAxisPaneViews)===null||n===void 0?void 0:n.call(e))!==null&&o!==void 0?o:[];if(((i=this.Sl)===null||i===void 0?void 0:i.vl)===r)return this.Sl.pl;const s=r.map(a=>new V0(a));return this.Sl={vl:r,pl:s},s}Pl(){var e,n,o,i;const r=(o=(n=(e=this.yl).timeAxisPaneViews)===null||n===void 0?void 0:n.call(e))!==null&&o!==void 0?o:[];if(((i=this.kl)===null||i===void 0?void 0:i.vl)===r)return this.kl.pl;const s=r.map(a=>new V0(a));return this.kl={vl:r,pl:s},s}Rl(e,n){var o,i,r;return(r=(i=(o=this.yl).autoscaleInfo)===null||i===void 0?void 0:i.call(o,e,n))!==null&&r!==void 0?r:null}br(e,n){var o,i,r;return(r=(i=(o=this.yl).hitTest)===null||i===void 0?void 0:i.call(o,e,n))!==null&&r!==void 0?r:null}}function B0(t,e,n,o){t.forEach(i=>{e(i).forEach(r=>{r.ml()===n&&o.push(r)})})}function H0(t){return t.Pn()}function Ole(t){return t.Tl()}function Ile(t){return t.Pl()}class _C extends Cle{constructor(e,n,o,i,r){super(e),this.Lt=new Ple,this.Eh=new vle(this),this.Dl=[],this.Ol=new ale(this),this.Al=null,this.Vl=null,this.Bl=[],this.Il=[],this.zl=null,this.El=[],this.cn=n,this.Ll=o;const s=new ble(this);this.hn=[s],this.Lh=new GF(s,this,e),o!=="Area"&&o!=="Line"&&o!=="Baseline"||(this.Al=new ule(this)),this.Nl(),this.Fl(r)}S(){this.zl!==null&&clearTimeout(this.zl)}_h(e){return this.cn.priceLineColor||e}Yr(e){const n={Xr:!0},o=this.At();if(this.qt().yt().Fi()||o.Fi()||this.Lt.Fi())return n;const i=this.qt().yt().Xs(),r=this.Pt();if(i===null||r===null)return n;let s,a;if(e){const d=this.Lt.Jh();if(d===null)return n;s=d,a=d.se}else{const d=this.Lt.nl(i.di(),-1);if(d===null||(s=this.Lt.qh(d.se),s===null))return n;a=d.se}const l=s.Vt[3],c=this.$s().Hs(a,{Vt:s}),u=o.Ot(l,r.Vt);return{Xr:!1,ct:l,Jt:o.Wi(l,r.Vt),mh:o.Wl(l),bh:o.jl(l,r.Vt),O:c.ue,yi:u,se:a}}$s(){return this.Vl!==null||(this.Vl=new kle(this)),this.Vl}W(){return this.cn}Nh(e){const n=e.priceScaleId;n!==void 0&&n!==this.cn.priceScaleId&&this.qt().Hl(this,n),$i(this.cn,e),e.priceFormat!==void 0&&(this.Nl(),this.qt().$l()),this.qt().Ul(this),this.qt().ql(),this.wn.gt("options")}it(e,n){this.Lt.it(e),this.Yl(),this.wn.gt("data"),this.dn.gt("data"),this.Al!==null&&(n&&n.Xl?this.Al.Hr():e.length===0&&this.Al.jr());const o=this.qt().cr(this);this.qt().Kl(o),this.qt().Ul(this),this.qt().ql(),this.qt().Fh()}Zl(e){this.Bl=e,this.Yl();const n=this.qt().cr(this);this.dn.gt("data"),this.qt().Kl(n),this.qt().Ul(this),this.qt().ql(),this.qt().Fh()}Gl(){return this.Bl}ah(){return this.Il}Jl(e){const n=new wle(this,e);return this.Dl.push(n),this.qt().Ul(this),n}Ql(e){const n=this.Dl.indexOf(e);n!==-1&&this.Dl.splice(n,1),this.qt().Ul(this)}Xh(){return this.Ll}Pt(){const e=this.ta();return e===null?null:{Vt:e.Vt[3],ia:e.ut}}ta(){const e=this.qt().yt().Xs();if(e===null)return null;const n=e.Os();return this.Lt.nl(n,1)}In(){return this.Lt}oh(e){const n=this.Lt.qh(e);return n===null?null:this.Ll==="Bar"||this.Ll==="Candlestick"||this.Ll==="Custom"?{we:n.Vt[0],ge:n.Vt[1],Me:n.Vt[2],xe:n.Vt[3]}:n.Vt[3]}na(e){const n=[];B0(this.El,H0,"top",n);const o=this.Al;return o!==null&&o.Tt()&&(this.zl===null&&o.Ur()&&(this.zl=setTimeout(()=>{this.zl=null,this.qt().sa()},0)),o.$r(),n.push(o)),n}Pn(){const e=[];this.ea()||e.push(this.Ol),e.push(this.wn,this.Eh,this.dn);const n=this.Dl.map(o=>o.Wh());return e.push(...n),B0(this.El,H0,"normal",e),e}ra(){return this.ha(H0,"bottom")}la(e){return this.ha(Ole,e)}aa(e){return this.ha(Ile,e)}oa(e,n){return this.El.map(o=>o.br(e,n)).filter(o=>o!==null)}Qi(e){return[this.Lh,...this.Dl.map(n=>n.jh())]}Rn(e,n){if(n!==this.Xi&&!this.ea())return[];const o=[...this.hn];for(const i of this.Dl)o.push(i.Hh());return this.El.forEach(i=>{o.push(...i.Rn())}),o}tn(){const e=[];return this.El.forEach(n=>{e.push(...n.tn())}),e}Rl(e,n){if(this.cn.autoscaleInfoProvider!==void 0){const o=this.cn.autoscaleInfoProvider(()=>{const i=this._a(e,n);return i===null?null:i.Ph()});return _m.Rh(o)}return this._a(e,n)}ua(){return this.cn.priceFormat.minMove}ca(){return this.da}On(){var e;this.wn.gt(),this.dn.gt();for(const n of this.hn)n.gt();for(const n of this.Dl)n.gt();this.Eh.gt(),this.Ol.gt(),(e=this.Al)===null||e===void 0||e.gt(),this.El.forEach(n=>n.On())}At(){return Me(super.At())}Ct(e){if(!((this.Ll==="Line"||this.Ll==="Area"||this.Ll==="Baseline")&&this.cn.crosshairMarkerVisible))return null;const n=this.Lt.qh(e);return n===null?null:{ct:n.Vt[3],ot:this.fa(),Bt:this.va(),Dt:this.pa(),Rt:this.ma(e)}}uh(){return this.cn.title}Tt(){return this.cn.visible}ba(e){this.El.push(new Tle(e,this))}wa(e){this.El=this.El.filter(n=>n.Cl()!==e)}ga(){if(this.wn instanceof z0)return e=>this.wn.Fe(e)}Ma(){if(this.wn instanceof z0)return e=>this.wn.We(e)}ea(){return!yv(this.At().xa())}_a(e,n){if(!Ad(e)||!Ad(n)||this.Lt.Fi())return null;const o=this.Ll==="Line"||this.Ll==="Area"||this.Ll==="Baseline"||this.Ll==="Histogram"?[3]:[2,1],i=this.Lt.el(e,n,o);let r=i!==null?new yo(i.cl,i.dl):null;if(this.Xh()==="Histogram"){const a=this.cn.base,l=new yo(a,a);r=r!==null?r.ts(l):l}let s=this.dn.lh();return this.El.forEach(a=>{const l=a.Rl(e,n);if(l!=null&&l.priceRange){const p=new yo(l.priceRange.minValue,l.priceRange.maxValue);r=r!==null?r.ts(p):p}var c,u,d,h;l!=null&&l.margins&&(c=s,u=l.margins,s={above:Math.max((d=c==null?void 0:c.above)!==null&&d!==void 0?d:0,u.above),below:Math.max((h=c==null?void 0:c.below)!==null&&h!==void 0?h:0,u.below)})}),new _m(r,s)}fa(){switch(this.Ll){case"Line":case"Area":case"Baseline":return this.cn.crosshairMarkerRadius}return 0}va(){switch(this.Ll){case"Line":case"Area":case"Baseline":{const e=this.cn.crosshairMarkerBorderColor;if(e.length!==0)return e}}return null}pa(){switch(this.Ll){case"Line":case"Area":case"Baseline":return this.cn.crosshairMarkerBorderWidth}return 0}ma(e){switch(this.Ll){case"Line":case"Area":case"Baseline":{const n=this.cn.crosshairMarkerBackgroundColor;if(n.length!==0)return n}}return this.$s().Hs(e).ue}Nl(){switch(this.cn.priceFormat.type){case"custom":this.da={format:this.cn.priceFormat.formatter};break;case"volume":this.da=new Aae(this.cn.priceFormat.precision);break;case"percent":this.da=new LF(this.cn.priceFormat.precision);break;default:{const e=Math.pow(10,this.cn.priceFormat.precision);this.da=new xv(e,this.cn.priceFormat.minMove*e)}}this.Xi!==null&&this.Xi.Sa()}Yl(){const e=this.qt().yt();if(!e.ka()||this.Lt.Fi())return void(this.Il=[]);const n=Me(this.Lt.Qh());this.Il=this.Bl.map((o,i)=>{const r=Me(e.ya(o.time,!0)),s=ru instanceof _C).reduce((u,d)=>{if(o.dr(d)||!d.Tt())return u;const h=d.At(),p=d.In();if(h.Fi()||!p.Kr(n))return u;const g=p.qh(n);if(g===null)return u;const m=Pl(d.Pt());return u.concat([h.Ot(g.Vt[3],m.Vt)])},[]);if(l.length===0)return i;l.sort((u,d)=>Math.abs(u-a)-Math.abs(d-a));const c=l[0];return i=r.pn(c,s),i}}class Dle extends $r{constructor(){super(...arguments),this.Lt=null}it(e){this.Lt=e}Z({context:e,bitmapSize:n,horizontalPixelRatio:o,verticalPixelRatio:i}){if(this.Lt===null)return;const r=Math.max(1,Math.floor(o));e.lineWidth=r,function(s,a){s.save(),s.lineWidth%2&&s.translate(.5,.5),a(),s.restore()}(e,()=>{const s=Me(this.Lt);if(s.Pa){e.strokeStyle=s.Ra,Da(e,s.Da),e.beginPath();for(const a of s.Oa){const l=Math.round(a.Aa*o);e.moveTo(l,-r),e.lineTo(l,n.height+r)}e.stroke()}if(s.Va){e.strokeStyle=s.Ba,Da(e,s.Ia),e.beginPath();for(const a of s.za){const l=Math.round(a.Aa*i);e.moveTo(-r,l),e.lineTo(n.width+r,l)}e.stroke()}})}}class $le{constructor(e){this.Ht=new Dle,this.bt=!0,this.nn=e}gt(){this.bt=!0}xt(){if(this.bt){const e=this.nn.qt().W().grid,n={Va:e.horzLines.visible,Pa:e.vertLines.visible,Ba:e.horzLines.color,Ra:e.vertLines.color,Ia:e.horzLines.style,Da:e.vertLines.style,za:this.nn.vn().Ea(),Oa:(this.nn.qt().yt().Ea()||[]).map(o=>({Aa:o.coord}))};this.Ht.it(n),this.bt=!1}return this.Ht}}class Fle{constructor(e){this.wn=new $le(e)}Wh(){return this.wn}}const W0={La:4,Na:1e-4};function Ml(t,e){const n=100*(t-e)/e;return e<0?-n:n}function jle(t,e){const n=Ml(t.Sh(),e),o=Ml(t.kh(),e);return new yo(n,o)}function Ku(t,e){const n=100*(t-e)/e+100;return e<0?-n:n}function Lle(t,e){const n=Ku(t.Sh(),e),o=Ku(t.kh(),e);return new yo(n,o)}function Rm(t,e){const n=Math.abs(t);if(n<1e-15)return 0;const o=Math.log10(n+e.Na)+e.La;return t<0?-o:o}function Yu(t,e){const n=Math.abs(t);if(n<1e-15)return 0;const o=Math.pow(10,n-e.La)-e.Na;return t<0?-o:o}function ru(t,e){if(t===null)return null;const n=Rm(t.Sh(),e),o=Rm(t.kh(),e);return new yo(n,o)}function _f(t,e){if(t===null)return null;const n=Yu(t.Sh(),e),o=Yu(t.kh(),e);return new yo(n,o)}function U0(t){if(t===null)return W0;const e=Math.abs(t.kh()-t.Sh());if(e>=1||e<1e-15)return W0;const n=Math.ceil(Math.abs(Math.log10(e))),o=W0.La+n;return{La:o,Na:1/Math.pow(10,o)}}class q0{constructor(e,n){if(this.Fa=e,this.Wa=n,function(o){if(o<0)return!1;for(let i=o;i>1;i/=10)if(i%10!=0)return!1;return!0}(this.Fa))this.ja=[2,2.5,2];else{this.ja=[];for(let o=this.Fa;o!==1;){if(o%2==0)this.ja.push(2),o/=2;else{if(o%5!=0)throw new Error("unexpected base");this.ja.push(2,2.5),o/=5}if(this.ja.length>100)throw new Error("something wrong with base")}}}Ha(e,n,o){const i=this.Fa===0?0:1/this.Fa;let r=Math.pow(10,Math.max(0,Math.ceil(Math.log10(e-n)))),s=0,a=this.Wa[0];for(;;){const d=Pf(r,i,1e-14)&&r>i+1e-14,h=Pf(r,o*a,1e-14),p=Pf(r,1,1e-14);if(!(d&&h&&p))break;r/=a,a=this.Wa[++s%this.Wa.length]}if(r<=i+1e-14&&(r=i),r=Math.max(1,r),this.ja.length>0&&(l=r,c=1,u=1e-14,Math.abs(l-c)i+1e-14;)r/=a,a=this.ja[++s%this.ja.length];var l,c,u;return r}}class g_{constructor(e,n,o,i){this.$a=[],this.Li=e,this.Fa=n,this.Ua=o,this.qa=i}Ha(e,n){if(e=u?1:-1;let g=null,m=0;for(let b=c-h;b>u;b-=d){const v=this.qa(b,n,!0);g!==null&&Math.abs(v-g)l||(mMe(e.Zi())-Me(n.Zi()))}var v_;(function(t){t[t.Normal=0]="Normal",t[t.Logarithmic=1]="Logarithmic",t[t.Percentage=2]="Percentage",t[t.IndexedTo100=3]="IndexedTo100"})(v_||(v_={}));const b_=new LF,y_=new xv(100,1);class Ale{constructor(e,n,o,i){this.Qa=0,this.io=null,this.Dh=null,this.no=null,this.so={eo:!1,ro:null},this.ho=0,this.lo=0,this.ao=new ln,this.oo=new ln,this._o=[],this.uo=null,this.co=null,this.do=null,this.fo=null,this.da=y_,this.vo=U0(null),this.po=e,this.cn=n,this.mo=o,this.bo=i,this.wo=new g_(this,100,this.Mo.bind(this),this.xo.bind(this))}xa(){return this.po}W(){return this.cn}Nh(e){if($i(this.cn,e),this.Sa(),e.mode!==void 0&&this.So({yr:e.mode}),e.scaleMargins!==void 0){const n=io(e.scaleMargins.top),o=io(e.scaleMargins.bottom);if(n<0||n>1)throw new Error(`Invalid top margin - expect value between 0 and 1, given=${n}`);if(o<0||o>1)throw new Error(`Invalid bottom margin - expect value between 0 and 1, given=${o}`);if(n+o>1)throw new Error(`Invalid margins - sum of margins must be less than 1, given=${n+o}`);this.ko(),this.co=null}}yo(){return this.cn.autoScale}Ja(){return this.cn.mode===1}ph(){return this.cn.mode===2}Co(){return this.cn.mode===3}yr(){return{Wn:this.cn.autoScale,To:this.cn.invertScale,yr:this.cn.mode}}So(e){const n=this.yr();let o=null;e.Wn!==void 0&&(this.cn.autoScale=e.Wn),e.yr!==void 0&&(this.cn.mode=e.yr,e.yr!==2&&e.yr!==3||(this.cn.autoScale=!0),this.so.eo=!1),n.yr===1&&e.yr!==n.yr&&(function(r,s){if(r===null)return!1;const a=Yu(r.Sh(),s),l=Yu(r.kh(),s);return isFinite(a)&&isFinite(l)}(this.Dh,this.vo)?(o=_f(this.Dh,this.vo),o!==null&&this.Po(o)):this.cn.autoScale=!0),e.yr===1&&e.yr!==n.yr&&(o=ru(this.Dh,this.vo),o!==null&&this.Po(o));const i=n.yr!==this.cn.mode;i&&(n.yr===2||this.ph())&&this.Sa(),i&&(n.yr===3||this.Co())&&this.Sa(),e.To!==void 0&&n.To!==e.To&&(this.cn.invertScale=e.To,this.Ro()),this.oo.m(n,this.yr())}Do(){return this.oo}P(){return this.mo.fontSize}zt(){return this.Qa}Oo(e){this.Qa!==e&&(this.Qa=e,this.ko(),this.co=null)}Ao(){if(this.io)return this.io;const e=this.zt()-this.Vo()-this.Bo();return this.io=e,e}Ah(){return this.Io(),this.Dh}Po(e,n){const o=this.Dh;(n||o===null&&e!==null||o!==null&&!o.Mh(e))&&(this.co=null,this.Dh=e)}Fi(){return this.Io(),this.Qa===0||!this.Dh||this.Dh.Fi()}zo(e){return this.To()?e:this.zt()-1-e}Ot(e,n){return this.ph()?e=Ml(e,n):this.Co()&&(e=Ku(e,n)),this.xo(e,n)}Qs(e,n,o){this.Io();const i=this.Bo(),r=Me(this.Ah()),s=r.Sh(),a=r.kh(),l=this.Ao()-1,c=this.To(),u=l/(a-s),d=o===void 0?0:o.from,h=o===void 0?e.length:o.to,p=this.Eo();for(let g=d;ge.On())}Sa(){this.co=null;const e=this.Jo();let n=100;e!==null&&(n=Math.round(1/e.ua())),this.da=y_,this.ph()?(this.da=b_,n=100):this.Co()?(this.da=new xv(100,1),n=100):e!==null&&(this.da=e.ca()),this.wo=new g_(this,n,this.Mo.bind(this),this.xo.bind(this)),this.wo.Xa()}Wo(){this.uo=null}Jo(){return this._o[0]||null}Vo(){return this.To()?this.cn.scaleMargins.bottom*this.zt()+this.lo:this.cn.scaleMargins.top*this.zt()+this.ho}Bo(){return this.To()?this.cn.scaleMargins.top*this.zt()+this.ho:this.cn.scaleMargins.bottom*this.zt()+this.lo}Io(){this.so.eo||(this.so.eo=!0,this.i_())}ko(){this.io=null}xo(e,n){if(this.Io(),this.Fi())return 0;e=this.Ja()&&e?Rm(e,this.vo):e;const o=Me(this.Ah()),i=this.Bo()+(this.Ao()-1)*(e-o.Sh())/o.yh();return this.zo(i)}Mo(e,n){if(this.Io(),this.Fi())return 0;const o=this.zo(e),i=Me(this.Ah()),r=i.Sh()+i.yh()*((o-this.Bo())/(this.Ao()-1));return this.Ja()?Yu(r,this.vo):r}Ro(){this.co=null,this.wo.Xa()}i_(){const e=this.so.ro;if(e===null)return;let n=null;const o=this.Qo();let i=0,r=0;for(const l of o){if(!l.Tt())continue;const c=l.Pt();if(c===null)continue;const u=l.Rl(e.Os(),e.di());let d=u&&u.Ah();if(d!==null){switch(this.cn.mode){case 1:d=ru(d,this.vo);break;case 2:d=jle(d,c.Vt);break;case 3:d=Lle(d,c.Vt)}if(n=n===null?d:n.ts(Me(d)),u!==null){const h=u.Vh();h!==null&&(i=Math.max(i,h.above),r=Math.max(i,h.below))}}}if(i===this.ho&&r===this.lo||(this.ho=i,this.lo=r,this.co=null,this.ko()),n!==null){if(n.Sh()===n.kh()){const l=this.Jo(),c=5*(l===null||this.ph()||this.Co()?1:l.ua());this.Ja()&&(n=_f(n,this.vo)),n=new yo(n.Sh()-c,n.kh()+c),this.Ja()&&(n=ru(n,this.vo))}if(this.Ja()){const l=_f(n,this.vo),c=U0(l);if(s=c,a=this.vo,s.La!==a.La||s.Na!==a.Na){const u=this.no!==null?_f(this.no,this.vo):null;this.vo=c,n=ru(l,c),u!==null&&(this.no=ru(u,c))}}this.Po(n)}else this.Dh===null&&(this.Po(new yo(-.5,.5)),this.vo=U0(null));var s,a;this.so.eo=!0}Eo(){return this.ph()?Ml:this.Co()?Ku:this.Ja()?e=>Rm(e,this.vo):null}n_(e,n,o){return n===void 0?(o===void 0&&(o=this.ca()),o.format(e)):n(e)}zh(e,n){return this.n_(e,this.bo.priceFormatter,n)}Go(e,n){return this.n_(e,this.bo.percentageFormatter,n)}}class Nle{constructor(e,n){this._o=[],this.s_=new Map,this.Qa=0,this.e_=0,this.r_=1e3,this.uo=null,this.h_=new ln,this.wl=e,this.Ui=n,this.l_=new Fle(this);const o=n.W();this.a_=this.o_("left",o.leftPriceScale),this.__=this.o_("right",o.rightPriceScale),this.a_.Do().l(this.u_.bind(this,this.a_),this),this.__.Do().l(this.u_.bind(this,this.__),this),this.c_(o)}c_(e){if(e.leftPriceScale&&this.a_.Nh(e.leftPriceScale),e.rightPriceScale&&this.__.Nh(e.rightPriceScale),e.localization&&(this.a_.Sa(),this.__.Sa()),e.overlayPriceScales){const n=Array.from(this.s_.values());for(const o of n){const i=Me(o[0].At());i.Nh(e.overlayPriceScales),e.localization&&i.Sa()}}}d_(e){switch(e){case"left":return this.a_;case"right":return this.__}return this.s_.has(e)?io(this.s_.get(e))[0].At():null}S(){this.qt().f_().p(this),this.a_.Do().p(this),this.__.Do().p(this),this._o.forEach(e=>{e.S&&e.S()}),this.h_.m()}v_(){return this.r_}p_(e){this.r_=e}qt(){return this.Ui}$i(){return this.e_}zt(){return this.Qa}m_(e){this.e_=e,this.b_()}Oo(e){this.Qa=e,this.a_.Oo(e),this.__.Oo(e),this._o.forEach(n=>{if(this.dr(n)){const o=n.At();o!==null&&o.Oo(e)}}),this.b_()}Ta(){return this._o}dr(e){const n=e.At();return n===null||this.a_!==n&&this.__!==n}Fo(e,n,o){const i=o!==void 0?o:this.g_().w_+1;this.M_(e,n,i)}jo(e){const n=this._o.indexOf(e);Ts(n!==-1,"removeDataSource: invalid data source"),this._o.splice(n,1);const o=Me(e.At()).xa();if(this.s_.has(o)){const r=io(this.s_.get(o)),s=r.indexOf(e);s!==-1&&(r.splice(s,1),r.length===0&&this.s_.delete(o))}const i=e.At();i&&i.Ta().indexOf(e)>=0&&i.jo(e),i!==null&&(i.Wo(),this.x_(i)),this.uo=null}pr(e){return e===this.a_?"left":e===this.__?"right":"overlay"}S_(){return this.a_}k_(){return this.__}y_(e,n){e.Uo(n)}C_(e,n){e.qo(n),this.b_()}T_(e){e.Yo()}P_(e,n){e.Xo(n)}R_(e,n){e.Ko(n),this.b_()}D_(e){e.Zo()}b_(){this._o.forEach(e=>{e.On()})}vn(){let e=null;return this.Ui.W().rightPriceScale.visible&&this.__.Ta().length!==0?e=this.__:this.Ui.W().leftPriceScale.visible&&this.a_.Ta().length!==0?e=this.a_:this._o.length!==0&&(e=this._o[0].At()),e===null&&(e=this.__),e}vr(){let e=null;return this.Ui.W().rightPriceScale.visible?e=this.__:this.Ui.W().leftPriceScale.visible&&(e=this.a_),e}x_(e){e!==null&&e.yo()&&this.O_(e)}A_(e){const n=this.wl.Xs();e.So({Wn:!0}),n!==null&&e.t_(n),this.b_()}V_(){this.O_(this.a_),this.O_(this.__)}B_(){this.x_(this.a_),this.x_(this.__),this._o.forEach(e=>{this.dr(e)&&this.x_(e.At())}),this.b_(),this.Ui.Fh()}No(){return this.uo===null&&(this.uo=XF(this._o)),this.uo}I_(){return this.h_}z_(){return this.l_}O_(e){const n=e.Qo();if(n&&n.length>0&&!this.wl.Fi()){const o=this.wl.Xs();o!==null&&e.t_(o)}e.On()}g_(){const e=this.No();if(e.length===0)return{E_:0,w_:0};let n=0,o=0;for(let i=0;io&&(o=r))}return{E_:n,w_:o}}M_(e,n,o){let i=this.d_(n);if(i===null&&(i=this.o_(n,this.Ui.W().overlayPriceScales)),this._o.push(e),!yv(n)){const r=this.s_.get(n)||[];r.push(e),this.s_.set(n,r)}i.Fo(e),e.Ji(i),e.Gi(o),this.x_(i),this.uo=null}u_(e,n,o){n.yr!==o.yr&&this.O_(e)}o_(e,n){const o=Object.assign({visible:!0,autoScale:!0},wr(n)),i=new Ale(e,o,this.Ui.W().layout,this.Ui.W().localization);return i.Oo(this.zt()),i}}class zle{constructor(e,n,o=50){this.Ke=0,this.Ze=1,this.Ge=1,this.Qe=new Map,this.Je=new Map,this.L_=e,this.N_=n,this.tr=o}F_(e){const n=e.time,o=this.N_.cacheKey(n),i=this.Qe.get(o);if(i!==void 0)return i.W_;if(this.Ke===this.tr){const s=this.Je.get(this.Ge);this.Je.delete(this.Ge),this.Qe.delete(io(s)),this.Ge++,this.Ke--}const r=this.L_(e);return this.Qe.set(o,{W_:r,er:this.Ze}),this.Je.set(this.Ze,o),this.Ke++,this.Ze++,r}}class Qu{constructor(e,n){Ts(e<=n,"right should be >= left"),this.j_=e,this.H_=n}Os(){return this.j_}di(){return this.H_}U_(){return this.H_-this.j_+1}Kr(e){return this.j_<=e&&e<=this.H_}Mh(e){return this.j_===e.Os()&&this.H_===e.di()}}function x_(t,e){return t===null||e===null?t===e:t.Mh(e)}class Vle{constructor(){this.q_=new Map,this.Qe=null,this.Y_=!1}X_(e){this.Y_=e,this.Qe=null}K_(e,n){this.Z_(n),this.Qe=null;for(let o=n;o{e<=o[0].index?n.push(i):o.splice(Oh(o,e,r=>r.indexr-i)){if(!this.q_.get(o))continue;const i=n;n=[];const r=i.length;let s=0;const a=io(this.q_.get(o)),l=a.length;let c=1/0,u=-1/0;for(let d=0;d=e&&p-u>=e)n.push(h),u=p;else if(this.Y_)return i}for(;se.weight?t:e}class Hle{constructor(e,n,o,i){this.e_=0,this.eu=null,this.ru=[],this.fo=null,this.do=null,this.hu=new Vle,this.lu=new Map,this.au=Vl.su(),this.ou=!0,this._u=new ln,this.uu=new ln,this.cu=new ln,this.du=null,this.fu=null,this.vu=[],this.cn=n,this.bo=o,this.pu=n.rightOffset,this.mu=n.barSpacing,this.Ui=e,this.N_=i,this.bu(),this.hu.X_(n.uniformDistribution)}W(){return this.cn}wu(e){$i(this.bo,e),this.gu(),this.bu()}Nh(e,n){var o;$i(this.cn,e),this.cn.fixLeftEdge&&this.Mu(),this.cn.fixRightEdge&&this.xu(),e.barSpacing!==void 0&&this.Ui.Gn(e.barSpacing),e.rightOffset!==void 0&&this.Ui.Jn(e.rightOffset),e.minBarSpacing!==void 0&&this.Ui.Gn((o=e.barSpacing)!==null&&o!==void 0?o:this.mu),this.gu(),this.bu(),this.cu.m()}mn(e){var n,o;return(o=(n=this.ru[e])===null||n===void 0?void 0:n.time)!==null&&o!==void 0?o:null}qi(e){var n;return(n=this.ru[e])!==null&&n!==void 0?n:null}ya(e,n){if(this.ru.length<1)return null;if(this.N_.key(e)>this.N_.key(this.ru[this.ru.length-1].time))return n?this.ru.length-1:null;const o=Oh(this.ru,this.N_.key(e),(i,r)=>this.N_.key(i.time)0}Xs(){return this.Su(),this.au.iu()}ku(){return this.Su(),this.au.nu()}yu(){const e=this.Xs();if(e===null)return null;const n={from:e.Os(),to:e.di()};return this.Cu(n)}Cu(e){const n=Math.round(e.from),o=Math.round(e.to),i=Me(this.Tu()),r=Me(this.Pu());return{from:Me(this.qi(Math.max(i,n))),to:Me(this.qi(Math.min(r,o)))}}Ru(e){return{from:Me(this.ya(e.from,!0)),to:Me(this.ya(e.to,!0))}}$i(){return this.e_}m_(e){if(!isFinite(e)||e<=0||this.e_===e)return;const n=this.ku(),o=this.e_;if(this.e_=e,this.ou=!0,this.cn.lockVisibleTimeRangeOnResize&&o!==0){const i=this.mu*e/o;this.mu=i}if(this.cn.fixLeftEdge&&n!==null&&n.Os()<=0){const i=o-e;this.pu-=Math.round(i/this.mu)+1,this.ou=!0}this.Du(),this.Ou()}Et(e){if(this.Fi()||!Ad(e))return 0;const n=this.Au()+this.pu-e;return this.e_-(n+.5)*this.mu-1}Js(e,n){const o=this.Au(),i=n===void 0?0:n.from,r=n===void 0?e.length:n.to;for(let s=i;sn/2&&!u?m.needAlignCoordinate=!1:m.needAlignCoordinate=d&&g.index<=l||h&&g.index>=c,p++}return this.vu.length=p,this.fu=this.vu,this.vu}Fu(){this.ou=!0,this.Gn(this.cn.barSpacing),this.Jn(this.cn.rightOffset)}Wu(e){this.ou=!0,this.eu=e,this.Ou(),this.Mu()}ju(e,n){const o=this.Bu(e),i=this.he(),r=i+n*(i/10);this.Gn(r),this.cn.rightBarStaysOnScroll||this.Jn(this.Eu()+(o-this.Bu(e)))}Uo(e){this.fo&&this.Zo(),this.do===null&&this.du===null&&(this.Fi()||(this.do=e,this.Hu()))}qo(e){if(this.du===null)return;const n=Zy(this.e_-e,0,this.e_),o=Zy(this.e_-Me(this.do),0,this.e_);n!==0&&o!==0&&this.Gn(this.du.he*n/o)}Yo(){this.do!==null&&(this.do=null,this.$u())}Xo(e){this.fo===null&&this.du===null&&(this.Fi()||(this.fo=e,this.Hu()))}Ko(e){if(this.fo===null)return;const n=(this.fo-e)/this.he();this.pu=Me(this.du).Eu+n,this.ou=!0,this.Ou()}Zo(){this.fo!==null&&(this.fo=null,this.$u())}Uu(){this.qu(this.cn.rightOffset)}qu(e,n=400){if(!isFinite(e))throw new RangeError("offset is required and must be finite number");if(!isFinite(n)||n<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const o=this.pu,i=performance.now();this.Ui.Xn({Yu:r=>(r-i)/n>=1,Xu:r=>{const s=(r-i)/n;return s>=1?e:o+(e-o)*s}})}gt(e,n){this.ou=!0,this.ru=e,this.hu.K_(e,n),this.Ou()}Ku(){return this._u}Zu(){return this.uu}Gu(){return this.cu}Au(){return this.eu||0}Ju(e){const n=e.U_();this.zu(this.e_/n),this.pu=e.di()-this.Au(),this.Ou(),this.ou=!0,this.Ui.Iu(),this.Ui.Fh()}Qu(){const e=this.Tu(),n=this.Pu();e!==null&&n!==null&&this.Ju(new Qu(e,n+this.cn.rightOffset))}tc(e){const n=new Qu(e.from,e.to);this.Ju(n)}Yi(e){return this.bo.timeFormatter!==void 0?this.bo.timeFormatter(e.originalTime):this.N_.formatHorzItem(e.time)}Lu(){const{handleScroll:e,handleScale:n}=this.Ui.W();return!(e.horzTouchDrag||e.mouseWheel||e.pressedMouseMove||e.vertTouchDrag||n.axisDoubleClickReset.time||n.axisPressedMouseMove.time||n.mouseWheel||n.pinch)}Tu(){return this.ru.length===0?null:0}Pu(){return this.ru.length===0?null:this.ru.length-1}ic(e){return(this.e_-1-e)/this.mu}Bu(e){const n=this.ic(e),o=this.Au()+this.pu-n;return Math.round(1e6*o)/1e6}zu(e){const n=this.mu;this.mu=e,this.Du(),n!==this.mu&&(this.ou=!0,this.nc())}Su(){if(!this.ou)return;if(this.ou=!1,this.Fi())return void this.sc(Vl.su());const e=this.Au(),n=this.e_/this.mu,o=this.pu+e,i=new Qu(o-n+1,o);this.sc(new Vl(i))}Du(){const e=this.ec();if(this.mun&&(this.mu=n,this.ou=!0)}}ec(){return this.cn.fixLeftEdge&&this.cn.fixRightEdge&&this.ru.length!==0?this.e_/this.ru.length:this.cn.minBarSpacing}Ou(){const e=this.rc();this.pu>e&&(this.pu=e,this.ou=!0);const n=this.hc();n!==null&&this.puthis.lc(o),this.N_),this.lu.set(e.weight,n)),n.F_(e)}lc(e){return this.N_.formatTickmark(e,this.bo)}sc(e){const n=this.au;this.au=e,x_(n.iu(),this.au.iu())||this._u.m(),x_(n.nu(),this.au.nu())||this.uu.m(),this.nc()}nc(){this.fu=null}gu(){this.nc(),this.lu.clear()}bu(){this.N_.updateFormatter(this.bo)}Mu(){if(!this.cn.fixLeftEdge)return;const e=this.Tu();if(e===null)return;const n=this.Xs();if(n===null)return;const o=n.Os()-e;if(o<0){const i=this.pu-o-1;this.Jn(i)}this.Du()}xu(){this.Ou(),this.Du()}}class Wle extends CC{constructor(e){super(),this.ac=new Map,this.Lt=e}Z(e){}J(e){if(!this.Lt.Tt)return;const{context:n,mediaSize:o}=e;let i=0;for(const s of this.Lt.oc){if(s.Jt.length===0)continue;n.font=s.R;const a=this._c(n,s.Jt);a>o.width?s.ju=o.width/a:s.ju=1,i+=s.uc*s.ju}let r=0;switch(this.Lt.cc){case"top":r=0;break;case"center":r=Math.max((o.height-i)/2,0);break;case"bottom":r=Math.max(o.height-i,0)}n.fillStyle=this.Lt.O;for(const s of this.Lt.oc){n.save();let a=0;switch(this.Lt.dc){case"left":n.textAlign="left",a=s.uc/2;break;case"center":n.textAlign="center",a=o.width/2;break;case"right":n.textAlign="right",a=o.width-1-s.uc/2}n.translate(a,r),n.textBaseline="top",n.font=s.R,n.scale(s.ju,s.ju),n.fillText(s.Jt,0,s.fc),n.restore(),r+=s.uc*s.ju}}_c(e,n){const o=this.vc(e.font);let i=o.get(n);return i===void 0&&(i=e.measureText(n).width,o.set(n,i)),i}vc(e){let n=this.ac.get(e);return n===void 0&&(n=new Map,this.ac.set(e,n)),n}}class Ule{constructor(e){this.bt=!0,this.jt={Tt:!1,O:"",oc:[],cc:"center",dc:"center"},this.Ht=new Wle(this.jt),this.$t=e}gt(){this.bt=!0}xt(){return this.bt&&(this.St(),this.bt=!1),this.Ht}St(){const e=this.$t.W(),n=this.jt;n.Tt=e.visible,n.Tt&&(n.O=e.color,n.dc=e.horzAlign,n.cc=e.vertAlign,n.oc=[{Jt:e.text,R:Sc(e.fontSize,e.fontFamily,e.fontStyle),uc:1.2*e.fontSize,fc:0,ju:0}])}}class qle extends SC{constructor(e,n){super(),this.cn=n,this.wn=new Ule(this)}Rn(){return[]}Pn(){return[this.wn]}W(){return this.cn}On(){this.wn.gt()}}var w_,C_,S_,k_,P_;(function(t){t[t.OnTouchEnd=0]="OnTouchEnd",t[t.OnNextTap=1]="OnNextTap"})(w_||(w_={}));class Gle{constructor(e,n,o){this.mc=[],this.bc=[],this.e_=0,this.wc=null,this.gc=new ln,this.Mc=new ln,this.xc=null,this.Sc=e,this.cn=n,this.N_=o,this.kc=new Mae(this),this.wl=new Hle(this,n.timeScale,this.cn.localization,o),this.wt=new Lae(this,n.crosshair),this.yc=new Ele(n.crosshair),this.Cc=new qle(this,n.watermark),this.Tc(),this.mc[0].p_(2e3),this.Pc=this.Rc(0),this.Dc=this.Rc(1)}$l(){this.Oc($n.es())}Fh(){this.Oc($n.ss())}sa(){this.Oc(new $n(1))}Ul(e){const n=this.Ac(e);this.Oc(n)}Vc(){return this.wc}Bc(e){const n=this.wc;this.wc=e,n!==null&&this.Ul(n.Ic),e!==null&&this.Ul(e.Ic)}W(){return this.cn}Nh(e){$i(this.cn,e),this.mc.forEach(n=>n.c_(e)),e.timeScale!==void 0&&this.wl.Nh(e.timeScale),e.localization!==void 0&&this.wl.wu(e.localization),(e.leftPriceScale||e.rightPriceScale)&&this.gc.m(),this.Pc=this.Rc(0),this.Dc=this.Rc(1),this.$l()}zc(e,n){if(e==="left")return void this.Nh({leftPriceScale:n});if(e==="right")return void this.Nh({rightPriceScale:n});const o=this.Ec(e);o!==null&&(o.At.Nh(n),this.gc.m())}Ec(e){for(const n of this.mc){const o=n.d_(e);if(o!==null)return{Ut:n,At:o}}return null}yt(){return this.wl}Lc(){return this.mc}Nc(){return this.Cc}Fc(){return this.wt}Wc(){return this.Mc}jc(e,n){e.Oo(n),this.Iu()}m_(e){this.e_=e,this.wl.m_(this.e_),this.mc.forEach(n=>n.m_(e)),this.Iu()}Tc(e){const n=new Nle(this.wl,this);e!==void 0?this.mc.splice(e,0,n):this.mc.push(n);const o=e===void 0?this.mc.length-1:e,i=$n.es();return i.Nn(o,{Fn:0,Wn:!0}),this.Oc(i),n}y_(e,n,o){e.y_(n,o)}C_(e,n,o){e.C_(n,o),this.ql(),this.Oc(this.Hc(e,2))}T_(e,n){e.T_(n),this.Oc(this.Hc(e,2))}P_(e,n,o){n.yo()||e.P_(n,o)}R_(e,n,o){n.yo()||(e.R_(n,o),this.ql(),this.Oc(this.Hc(e,2)))}D_(e,n){n.yo()||(e.D_(n),this.Oc(this.Hc(e,2)))}A_(e,n){e.A_(n),this.Oc(this.Hc(e,2))}$c(e){this.wl.Uo(e)}Uc(e,n){const o=this.yt();if(o.Fi()||n===0)return;const i=o.$i();e=Math.max(1,Math.min(e,i)),o.ju(e,n),this.Iu()}qc(e){this.Yc(0),this.Xc(e),this.Kc()}Zc(e){this.wl.qo(e),this.Iu()}Gc(){this.wl.Yo(),this.Fh()}Yc(e){this.wl.Xo(e)}Xc(e){this.wl.Ko(e),this.Iu()}Kc(){this.wl.Zo(),this.Fh()}Mt(){return this.bc}Jc(e,n,o,i,r){this.wt.gn(e,n);let s=NaN,a=this.wl.Vu(e);const l=this.wl.Xs();l!==null&&(a=Math.min(Math.max(l.Os(),a),l.di()));const c=i.vn(),u=c.Pt();u!==null&&(s=c.pn(n,u)),s=this.yc.Ca(s,a,i),this.wt.kn(a,s,i),this.sa(),r||this.Mc.m(this.wt.kt(),{x:e,y:n},o)}Qc(e,n,o){const i=o.vn(),r=i.Pt(),s=i.Ot(e,Me(r)),a=this.wl.ya(n,!0),l=this.wl.Et(Me(a));this.Jc(l,s,null,o,!0)}td(e){this.Fc().Cn(),this.sa(),e||this.Mc.m(null,null,null)}ql(){const e=this.wt.Ut();if(e!==null){const n=this.wt.xn(),o=this.wt.Sn();this.Jc(n,o,null,e)}this.wt.On()}nd(e,n,o){const i=this.wl.mn(0);n!==void 0&&o!==void 0&&this.wl.gt(n,o);const r=this.wl.mn(0),s=this.wl.Au(),a=this.wl.Xs();if(a!==null&&i!==null&&r!==null){const l=a.Kr(s),c=this.N_.key(i)>this.N_.key(r),u=e!==null&&e>s&&!c,d=this.wl.W().allowShiftVisibleRangeOnWhitespaceReplacement,h=l&&(o!==void 0||d)&&this.wl.W().shiftVisibleRangeOnNewBar;if(u&&!h){const p=e-s;this.wl.Jn(this.wl.Eu()-p)}}this.wl.Wu(e)}Kl(e){e!==null&&e.B_()}cr(e){const n=this.mc.find(o=>o.No().includes(e));return n===void 0?null:n}Iu(){this.Cc.On(),this.mc.forEach(e=>e.B_()),this.ql()}S(){this.mc.forEach(e=>e.S()),this.mc.length=0,this.cn.localization.priceFormatter=void 0,this.cn.localization.percentageFormatter=void 0,this.cn.localization.timeFormatter=void 0}sd(){return this.kc}mr(){return this.kc.W()}f_(){return this.gc}ed(e,n,o){const i=this.mc[0],r=this.rd(n,e,i,o);return this.bc.push(r),this.bc.length===1?this.$l():this.Fh(),r}hd(e){const n=this.cr(e),o=this.bc.indexOf(e);Ts(o!==-1,"Series not found"),this.bc.splice(o,1),Me(n).jo(e),e.S&&e.S()}Hl(e,n){const o=Me(this.cr(e));o.jo(e);const i=this.Ec(n);if(i===null){const r=e.Zi();o.Fo(e,n,r)}else{const r=i.Ut===o?e.Zi():void 0;i.Ut.Fo(e,n,r)}}Qu(){const e=$n.ss();e.$n(),this.Oc(e)}ld(e){const n=$n.ss();n.Yn(e),this.Oc(n)}Zn(){const e=$n.ss();e.Zn(),this.Oc(e)}Gn(e){const n=$n.ss();n.Gn(e),this.Oc(n)}Jn(e){const n=$n.ss();n.Jn(e),this.Oc(n)}Xn(e){const n=$n.ss();n.Xn(e),this.Oc(n)}Un(){const e=$n.ss();e.Un(),this.Oc(e)}ad(){return this.cn.rightPriceScale.visible?"right":"left"}od(){return this.Dc}q(){return this.Pc}It(e){const n=this.Dc,o=this.Pc;if(n===o)return n;if(e=Math.max(0,Math.min(100,Math.round(100*e))),this.xc===null||this.xc.Ts!==o||this.xc.Ps!==n)this.xc={Ts:o,Ps:n,_d:new Map};else{const r=this.xc._d.get(e);if(r!==void 0)return r}const i=function(r,s,a){const[l,c,u,d]=Mm(r),[h,p,g,m]=Mm(s),b=[Ko(l+a*(h-l)),Ko(c+a*(p-c)),Ko(u+a*(g-u)),$F(d+a*(m-d))];return`rgba(${b[0]}, ${b[1]}, ${b[2]}, ${b[3]})`}(o,n,e/100);return this.xc._d.set(e,i),i}Hc(e,n){const o=new $n(n);if(e!==null){const i=this.mc.indexOf(e);o.Nn(i,{Fn:n})}return o}Ac(e,n){return n===void 0&&(n=2),this.Hc(this.cr(e),n)}Oc(e){this.Sc&&this.Sc(e),this.mc.forEach(n=>n.z_().Wh().gt())}rd(e,n,o,i){const r=new _C(this,e,n,o,i),s=e.priceScaleId!==void 0?e.priceScaleId:this.ad();return o.Fo(r,s),yv(s)||r.Nh(e),r}Rc(e){const n=this.cn.layout;return n.background.type==="gradient"?e===0?n.background.topColor:n.background.bottomColor:n.background.color}}function ex(t){return!Xi(t)&&!Th(t)}function JF(t){return Xi(t)}(function(t){t[t.Disabled=0]="Disabled",t[t.Continuous=1]="Continuous",t[t.OnDataUpdate=2]="OnDataUpdate"})(C_||(C_={})),function(t){t[t.LastBar=0]="LastBar",t[t.LastVisible=1]="LastVisible"}(S_||(S_={})),function(t){t.Solid="solid",t.VerticalGradient="gradient"}(k_||(k_={})),function(t){t[t.Year=0]="Year",t[t.Month=1]="Month",t[t.DayOfMonth=2]="DayOfMonth",t[t.Time=3]="Time",t[t.TimeWithSeconds=4]="TimeWithSeconds"}(P_||(P_={}));const M_=t=>t.getUTCFullYear();function Kle(t,e,n){return e.replace(/yyyy/g,(o=>Cr(M_(o),4))(t)).replace(/yy/g,(o=>Cr(M_(o)%100,2))(t)).replace(/MMMM/g,((o,i)=>new Date(o.getUTCFullYear(),o.getUTCMonth(),1).toLocaleString(i,{month:"long"}))(t,n)).replace(/MMM/g,((o,i)=>new Date(o.getUTCFullYear(),o.getUTCMonth(),1).toLocaleString(i,{month:"short"}))(t,n)).replace(/MM/g,(o=>Cr((i=>i.getUTCMonth()+1)(o),2))(t)).replace(/dd/g,(o=>Cr((i=>i.getUTCDate())(o),2))(t))}class ZF{constructor(e="yyyy-MM-dd",n="default"){this.ud=e,this.dd=n}F_(e){return Kle(e,this.ud,this.dd)}}class Yle{constructor(e){this.fd=e||"%h:%m:%s"}F_(e){return this.fd.replace("%h",Cr(e.getUTCHours(),2)).replace("%m",Cr(e.getUTCMinutes(),2)).replace("%s",Cr(e.getUTCSeconds(),2))}}const Qle={vd:"yyyy-MM-dd",pd:"%h:%m:%s",md:" ",bd:"default"};class Xle{constructor(e={}){const n=Object.assign(Object.assign({},Qle),e);this.wd=new ZF(n.vd,n.bd),this.gd=new Yle(n.pd),this.Md=n.md}F_(e){return`${this.wd.F_(e)}${this.Md}${this.gd.F_(e)}`}}function Rf(t){return 60*t*60*1e3}function G0(t){return 60*t*1e3}const Tf=[{xd:(__=1,1e3*__),Sd:10},{xd:G0(1),Sd:20},{xd:G0(5),Sd:21},{xd:G0(30),Sd:22},{xd:Rf(1),Sd:30},{xd:Rf(3),Sd:31},{xd:Rf(6),Sd:32},{xd:Rf(12),Sd:33}];var __;function R_(t,e){if(t.getUTCFullYear()!==e.getUTCFullYear())return 70;if(t.getUTCMonth()!==e.getUTCMonth())return 60;if(t.getUTCDate()!==e.getUTCDate())return 50;for(let n=Tf.length-1;n>=0;--n)if(Math.floor(e.getTime()/Tf[n].xd)!==Math.floor(t.getTime()/Tf[n].xd))return Tf[n].Sd;return 0}function K0(t){let e=t;if(Th(t)&&(e=RC(t)),!ex(e))throw new Error("time must be of type BusinessDay");const n=new Date(Date.UTC(e.year,e.month-1,e.day,0,0,0,0));return{kd:Math.round(n.getTime()/1e3),yd:e}}function T_(t){if(!JF(t))throw new Error("time must be of type isUTCTimestamp");return{kd:t}}function RC(t){const e=new Date(t);if(isNaN(e.getTime()))throw new Error(`Invalid date string=${t}, expected format=yyyy-mm-dd`);return{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()}}function O_(t){Th(t.time)&&(t.time=RC(t.time))}class I_{options(){return this.cn}setOptions(e){this.cn=e,this.updateFormatter(e.localization)}preprocessData(e){Array.isArray(e)?function(n){n.forEach(O_)}(e):O_(e)}createConverterToInternalObj(e){return Me(function(n){return n.length===0?null:ex(n[0].time)||Th(n[0].time)?K0:T_}(e))}key(e){return typeof e=="object"&&"kd"in e?e.kd:this.key(this.convertHorzItemToInternal(e))}cacheKey(e){const n=e;return n.yd===void 0?new Date(1e3*n.kd).getTime():new Date(Date.UTC(n.yd.year,n.yd.month-1,n.yd.day)).getTime()}convertHorzItemToInternal(e){return JF(n=e)?T_(n):ex(n)?K0(n):K0(RC(n));var n}updateFormatter(e){if(!this.cn)return;const n=e.dateFormat;this.cn.timeScale.timeVisible?this.Cd=new Xle({vd:n,pd:this.cn.timeScale.secondsVisible?"%h:%m:%s":"%h:%m",md:" ",bd:e.locale}):this.Cd=new ZF(n,e.locale)}formatHorzItem(e){const n=e;return this.Cd.F_(new Date(1e3*n.kd))}formatTickmark(e,n){const o=function(r,s,a){switch(r){case 0:case 10:return s?a?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return s?3:2;case 50:return 2;case 60:return 1;case 70:return 0}}(e.weight,this.cn.timeScale.timeVisible,this.cn.timeScale.secondsVisible),i=this.cn.timeScale;if(i.tickMarkFormatter!==void 0){const r=i.tickMarkFormatter(e.originalTime,o,n.locale);if(r!==null)return r}return function(r,s,a){const l={};switch(s){case 0:l.year="numeric";break;case 1:l.month="short";break;case 2:l.day="numeric";break;case 3:l.hour12=!1,l.hour="2-digit",l.minute="2-digit";break;case 4:l.hour12=!1,l.hour="2-digit",l.minute="2-digit",l.second="2-digit"}const c=r.yd===void 0?new Date(1e3*r.kd):new Date(Date.UTC(r.yd.year,r.yd.month-1,r.yd.day));return new Date(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()).toLocaleString(a,l)}(e.time,o,n.locale)}maxTickMarkWeight(e){let n=e.reduce(Ble,e[0]).weight;return n>30&&n<50&&(n=30),n}fillWeightsForPoints(e,n){(function(o,i=0){if(o.length===0)return;let r=i===0?null:o[i-1].time.kd,s=r!==null?new Date(1e3*r):null,a=0;for(let l=i;l1){const l=Math.ceil(a/(o.length-1)),c=new Date(1e3*(o[0].time.kd-l));o[0].timeWeight=R_(new Date(1e3*o[0].time.kd),c)}})(e,n)}static Td(e){return $i({localization:{dateFormat:"dd MMM 'yy"}},e??{})}}const kc=typeof window<"u";function E_(){return!!kc&&window.navigator.userAgent.toLowerCase().indexOf("firefox")>-1}function Y0(){return!!kc&&/iPhone|iPad|iPod/.test(window.navigator.platform)}function tx(t){return t+t%2}function Q0(t,e){return t.Pd-e.Pd}function X0(t,e,n){const o=(t.Pd-e.Pd)/(t.ut-e.ut);return Math.sign(o)*Math.min(Math.abs(o),n)}class Jle{constructor(e,n,o,i){this.Rd=null,this.Dd=null,this.Od=null,this.Ad=null,this.Vd=null,this.Bd=0,this.Id=0,this.zd=e,this.Ed=n,this.Ld=o,this.rs=i}Nd(e,n){if(this.Rd!==null){if(this.Rd.ut===n)return void(this.Rd.Pd=e);if(Math.abs(this.Rd.Pd-e)50)return;let o=0;const i=X0(this.Rd,this.Dd,this.Ed),r=Q0(this.Rd,this.Dd),s=[i],a=[r];if(o+=r,this.Od!==null){const c=X0(this.Dd,this.Od,this.Ed);if(Math.sign(c)===Math.sign(i)){const u=Q0(this.Dd,this.Od);if(s.push(c),a.push(u),o+=u,this.Ad!==null){const d=X0(this.Od,this.Ad,this.Ed);if(Math.sign(d)===Math.sign(i)){const h=Q0(this.Od,this.Ad);s.push(d),a.push(h),o+=h}}}}let l=0;for(let c=0;c({width:Math.max(i.width,r.width),height:Math.max(i.height,r.height)})});return o.resizeCanvasElement(e),o}function Fa(t){var e;t.width=1,t.height=1,(e=t.getContext("2d"))===null||e===void 0||e.clearRect(0,0,1,1)}function nx(t,e,n,o){t.G&&t.G(e,n,o)}function wp(t,e,n,o){t.K(e,n,o)}function ox(t,e,n,o){const i=t(n,o);for(const r of i){const s=r.xt();s!==null&&e(s)}}function Zle(t){kc&&window.chrome!==void 0&&t.addEventListener("mousedown",e=>{if(e.button===1)return e.preventDefault(),!1})}class TC{constructor(e,n,o){this.Wd=0,this.jd=null,this.Hd={et:Number.NEGATIVE_INFINITY,rt:Number.POSITIVE_INFINITY},this.$d=0,this.Ud=null,this.qd={et:Number.NEGATIVE_INFINITY,rt:Number.POSITIVE_INFINITY},this.Yd=null,this.Xd=!1,this.Kd=null,this.Zd=null,this.Gd=!1,this.Jd=!1,this.Qd=!1,this.tf=null,this.if=null,this.nf=null,this.sf=null,this.ef=null,this.rf=null,this.hf=null,this.lf=0,this.af=!1,this._f=!1,this.uf=!1,this.cf=0,this.df=null,this.ff=!Y0(),this.vf=i=>{this.pf(i)},this.mf=i=>{if(this.bf(i)){const r=this.wf(i);if(++this.$d,this.Ud&&this.$d>1){const{gf:s}=this.Mf(Li(i),this.qd);s<30&&!this.Qd&&this.xf(r,this.kf.Sf),this.yf()}}else{const r=this.wf(i);if(++this.Wd,this.jd&&this.Wd>1){const{gf:s}=this.Mf(Li(i),this.Hd);s<5&&!this.Jd&&this.Cf(r,this.kf.Tf),this.Pf()}}},this.Rf=e,this.kf=n,this.cn=o,this.Df()}S(){this.tf!==null&&(this.tf(),this.tf=null),this.if!==null&&(this.if(),this.if=null),this.sf!==null&&(this.sf(),this.sf=null),this.ef!==null&&(this.ef(),this.ef=null),this.rf!==null&&(this.rf(),this.rf=null),this.nf!==null&&(this.nf(),this.nf=null),this.Of(),this.Pf()}Af(e){this.sf&&this.sf();const n=this.Vf.bind(this);if(this.sf=()=>{this.Rf.removeEventListener("mousemove",n)},this.Rf.addEventListener("mousemove",n),this.bf(e))return;const o=this.wf(e);this.Cf(o,this.kf.Bf),this.ff=!0}Pf(){this.jd!==null&&clearTimeout(this.jd),this.Wd=0,this.jd=null,this.Hd={et:Number.NEGATIVE_INFINITY,rt:Number.POSITIVE_INFINITY}}yf(){this.Ud!==null&&clearTimeout(this.Ud),this.$d=0,this.Ud=null,this.qd={et:Number.NEGATIVE_INFINITY,rt:Number.POSITIVE_INFINITY}}Vf(e){if(this.uf||this.Zd!==null||this.bf(e))return;const n=this.wf(e);this.Cf(n,this.kf.If),this.ff=!0}zf(e){const n=J0(e.changedTouches,Me(this.df));if(n===null||(this.cf=Of(e),this.hf!==null)||this._f)return;this.af=!0;const o=this.Mf(Li(n),Me(this.Zd)),{Ef:i,Lf:r,gf:s}=o;if(this.Gd||!(s<5)){if(!this.Gd){const a=.5*i,l=r>=a&&!this.cn.Nf(),c=a>r&&!this.cn.Ff();l||c||(this._f=!0),this.Gd=!0,this.Qd=!0,this.Of(),this.yf()}if(!this._f){const a=this.wf(e,n);this.xf(a,this.kf.Wf),sl(e)}}}jf(e){if(e.button!==0)return;const n=this.Mf(Li(e),Me(this.Kd)),{gf:o}=n;if(o>=5&&(this.Jd=!0,this.Pf()),this.Jd){const i=this.wf(e);this.Cf(i,this.kf.Hf)}}Mf(e,n){const o=Math.abs(n.et-e.et),i=Math.abs(n.rt-e.rt);return{Ef:o,Lf:i,gf:o+i}}$f(e){let n=J0(e.changedTouches,Me(this.df));if(n===null&&e.touches.length===0&&(n=e.changedTouches[0]),n===null)return;this.df=null,this.cf=Of(e),this.Of(),this.Zd=null,this.rf&&(this.rf(),this.rf=null);const o=this.wf(e,n);if(this.xf(o,this.kf.Uf),++this.$d,this.Ud&&this.$d>1){const{gf:i}=this.Mf(Li(n),this.qd);i<30&&!this.Qd&&this.xf(o,this.kf.Sf),this.yf()}else this.Qd||(this.xf(o,this.kf.qf),this.kf.qf&&sl(e));this.$d===0&&sl(e),e.touches.length===0&&this.Xd&&(this.Xd=!1,sl(e))}pf(e){if(e.button!==0)return;const n=this.wf(e);if(this.Kd=null,this.uf=!1,this.ef&&(this.ef(),this.ef=null),E_()&&this.Rf.ownerDocument.documentElement.removeEventListener("mouseleave",this.vf),!this.bf(e))if(this.Cf(n,this.kf.Yf),++this.Wd,this.jd&&this.Wd>1){const{gf:o}=this.Mf(Li(e),this.Hd);o<5&&!this.Jd&&this.Cf(n,this.kf.Tf),this.Pf()}else this.Jd||this.Cf(n,this.kf.Xf)}Of(){this.Yd!==null&&(clearTimeout(this.Yd),this.Yd=null)}Kf(e){if(this.df!==null)return;const n=e.changedTouches[0];this.df=n.identifier,this.cf=Of(e);const o=this.Rf.ownerDocument.documentElement;this.Qd=!1,this.Gd=!1,this._f=!1,this.Zd=Li(n),this.rf&&(this.rf(),this.rf=null);{const r=this.zf.bind(this),s=this.$f.bind(this);this.rf=()=>{o.removeEventListener("touchmove",r),o.removeEventListener("touchend",s)},o.addEventListener("touchmove",r,{passive:!1}),o.addEventListener("touchend",s,{passive:!1}),this.Of(),this.Yd=setTimeout(this.Zf.bind(this,e),240)}const i=this.wf(e,n);this.xf(i,this.kf.Gf),this.Ud||(this.$d=0,this.Ud=setTimeout(this.yf.bind(this),500),this.qd=Li(n))}Jf(e){if(e.button!==0)return;const n=this.Rf.ownerDocument.documentElement;E_()&&n.addEventListener("mouseleave",this.vf),this.Jd=!1,this.Kd=Li(e),this.ef&&(this.ef(),this.ef=null);{const i=this.jf.bind(this),r=this.pf.bind(this);this.ef=()=>{n.removeEventListener("mousemove",i),n.removeEventListener("mouseup",r)},n.addEventListener("mousemove",i),n.addEventListener("mouseup",r)}if(this.uf=!0,this.bf(e))return;const o=this.wf(e);this.Cf(o,this.kf.Qf),this.jd||(this.Wd=0,this.jd=setTimeout(this.Pf.bind(this),500),this.Hd=Li(e))}Df(){this.Rf.addEventListener("mouseenter",this.Af.bind(this)),this.Rf.addEventListener("touchcancel",this.Of.bind(this));{const e=this.Rf.ownerDocument,n=o=>{this.kf.tv&&(o.composed&&this.Rf.contains(o.composedPath()[0])||o.target&&this.Rf.contains(o.target)||this.kf.tv())};this.if=()=>{e.removeEventListener("touchstart",n)},this.tf=()=>{e.removeEventListener("mousedown",n)},e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!0})}Y0()&&(this.nf=()=>{this.Rf.removeEventListener("dblclick",this.mf)},this.Rf.addEventListener("dblclick",this.mf)),this.Rf.addEventListener("mouseleave",this.iv.bind(this)),this.Rf.addEventListener("touchstart",this.Kf.bind(this),{passive:!0}),Zle(this.Rf),this.Rf.addEventListener("mousedown",this.Jf.bind(this)),this.nv(),this.Rf.addEventListener("touchmove",()=>{},{passive:!1})}nv(){this.kf.sv===void 0&&this.kf.ev===void 0&&this.kf.rv===void 0||(this.Rf.addEventListener("touchstart",e=>this.hv(e.touches),{passive:!0}),this.Rf.addEventListener("touchmove",e=>{if(e.touches.length===2&&this.hf!==null&&this.kf.ev!==void 0){const n=D_(e.touches[0],e.touches[1])/this.lf;this.kf.ev(this.hf,n),sl(e)}},{passive:!1}),this.Rf.addEventListener("touchend",e=>{this.hv(e.touches)}))}hv(e){e.length===1&&(this.af=!1),e.length!==2||this.af||this.Xd?this.lv():this.av(e)}av(e){const n=this.Rf.getBoundingClientRect()||{left:0,top:0};this.hf={et:(e[0].clientX-n.left+(e[1].clientX-n.left))/2,rt:(e[0].clientY-n.top+(e[1].clientY-n.top))/2},this.lf=D_(e[0],e[1]),this.kf.sv!==void 0&&this.kf.sv(),this.Of()}lv(){this.hf!==null&&(this.hf=null,this.kf.rv!==void 0&&this.kf.rv())}iv(e){if(this.sf&&this.sf(),this.bf(e)||!this.ff)return;const n=this.wf(e);this.Cf(n,this.kf.ov),this.ff=!Y0()}Zf(e){const n=J0(e.touches,Me(this.df));if(n===null)return;const o=this.wf(e,n);this.xf(o,this.kf._v),this.Qd=!0,this.Xd=!0}bf(e){return e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents!==void 0?e.sourceCapabilities.firesTouchEvents:Of(e){e.type!=="touchstart"&&sl(e)}}}}function D_(t,e){const n=t.clientX-e.clientX,o=t.clientY-e.clientY;return Math.sqrt(n*n+o*o)}function sl(t){t.cancelable&&t.preventDefault()}function Li(t){return{et:t.pageX,rt:t.pageY}}function Of(t){return t.timeStamp||performance.now()}function J0(t,e){for(let n=0;n{var o,i,r,s;return((i=(o=n.At())===null||o===void 0?void 0:o.xa())!==null&&i!==void 0?i:"")!==e?[]:(s=(r=n.la)===null||r===void 0?void 0:r.call(n,t))!==null&&s!==void 0?s:[]}}class $_{constructor(e,n,o,i){this.Li=null,this.wv=null,this.gv=!1,this.Mv=new zd(200),this.Gr=null,this.xv=0,this.Sv=!1,this.kv=()=>{this.Sv||this.nn.yv().qt().Fh()},this.Cv=()=>{this.Sv||this.nn.yv().qt().Fh()},this.nn=e,this.cn=n,this.mo=n.layout,this.kc=o,this.Tv=i==="left",this.Pv=Z0("normal",i),this.Rv=Z0("top",i),this.Dv=Z0("bottom",i),this.Ov=document.createElement("div"),this.Ov.style.height="100%",this.Ov.style.overflow="hidden",this.Ov.style.width="25px",this.Ov.style.left="0",this.Ov.style.position="relative",this.Av=$a(this.Ov,At({width:16,height:16})),this.Av.subscribeSuggestedBitmapSizeChanged(this.kv);const r=this.Av.canvasElement;r.style.position="absolute",r.style.zIndex="1",r.style.left="0",r.style.top="0",this.Vv=$a(this.Ov,At({width:16,height:16})),this.Vv.subscribeSuggestedBitmapSizeChanged(this.Cv);const s=this.Vv.canvasElement;s.style.position="absolute",s.style.zIndex="2",s.style.left="0",s.style.top="0";const a={Qf:this.Bv.bind(this),Gf:this.Bv.bind(this),Hf:this.Iv.bind(this),Wf:this.Iv.bind(this),tv:this.zv.bind(this),Yf:this.Ev.bind(this),Uf:this.Ev.bind(this),Tf:this.Lv.bind(this),Sf:this.Lv.bind(this),Bf:this.Nv.bind(this),ov:this.Fv.bind(this)};this.Wv=new TC(this.Vv.canvasElement,a,{Nf:()=>!this.cn.handleScroll.vertTouchDrag,Ff:()=>!0})}S(){this.Wv.S(),this.Vv.unsubscribeSuggestedBitmapSizeChanged(this.Cv),Fa(this.Vv.canvasElement),this.Vv.dispose(),this.Av.unsubscribeSuggestedBitmapSizeChanged(this.kv),Fa(this.Av.canvasElement),this.Av.dispose(),this.Li!==null&&this.Li.$o().p(this),this.Li=null}jv(){return this.Ov}P(){return this.mo.fontSize}Hv(){const e=this.kc.W();return this.Gr!==e.R&&(this.Mv.ir(),this.Gr=e.R),e}$v(){if(this.Li===null)return 0;let e=0;const n=this.Hv(),o=Me(this.Av.canvasElement.getContext("2d"));o.save();const i=this.Li.Ea();o.font=this.Uv(),i.length>0&&(e=Math.max(this.Mv.Si(o,i[0].Za),this.Mv.Si(o,i[i.length-1].Za)));const r=this.qv();for(let l=r.length;l--;){const c=this.Mv.Si(o,r[l].Jt());c>e&&(e=c)}const s=this.Li.Pt();if(s!==null&&this.wv!==null){const l=this.Li.pn(1,s),c=this.Li.pn(this.wv.height-2,s);e=Math.max(e,this.Mv.Si(o,this.Li.Wi(Math.floor(Math.min(l,c))+.11111111111111,s)),this.Mv.Si(o,this.Li.Wi(Math.ceil(Math.max(l,c))-.11111111111111,s)))}o.restore();const a=e||34;return tx(Math.ceil(n.C+n.T+n.B+n.I+5+a))}Yv(e){this.wv!==null&&ya(this.wv,e)||(this.wv=e,this.Sv=!0,this.Av.resizeCanvasElement(e),this.Vv.resizeCanvasElement(e),this.Sv=!1,this.Ov.style.width=`${e.width}px`,this.Ov.style.height=`${e.height}px`)}Xv(){return Me(this.wv).width}Ji(e){this.Li!==e&&(this.Li!==null&&this.Li.$o().p(this),this.Li=e,e.$o().l(this.ao.bind(this),this))}At(){return this.Li}ir(){const e=this.nn.Kv();this.nn.yv().qt().A_(e,Me(this.At()))}Zv(e){if(this.wv===null)return;if(e!==1){this.Gv(),this.Av.applySuggestedBitmapSize();const o=Ea(this.Av);o!==null&&(o.useBitmapCoordinateSpace(i=>{this.Jv(i),this.Be(i)}),this.nn.Qv(o,this.Dv),this.tp(o),this.nn.Qv(o,this.Pv),this.ip(o))}this.Vv.applySuggestedBitmapSize();const n=Ea(this.Vv);n!==null&&(n.useBitmapCoordinateSpace(({context:o,bitmapSize:i})=>{o.clearRect(0,0,i.width,i.height)}),this.np(n),this.nn.Qv(n,this.Rv))}sp(){return this.Av.bitmapSize}ep(e,n,o){const i=this.sp();i.width>0&&i.height>0&&e.drawImage(this.Av.canvasElement,n,o)}gt(){var e;(e=this.Li)===null||e===void 0||e.Ea()}Bv(e){if(this.Li===null||this.Li.Fi()||!this.cn.handleScale.axisPressedMouseMove.price)return;const n=this.nn.yv().qt(),o=this.nn.Kv();this.gv=!0,n.y_(o,this.Li,e.localY)}Iv(e){if(this.Li===null||!this.cn.handleScale.axisPressedMouseMove.price)return;const n=this.nn.yv().qt(),o=this.nn.Kv(),i=this.Li;n.C_(o,i,e.localY)}zv(){if(this.Li===null||!this.cn.handleScale.axisPressedMouseMove.price)return;const e=this.nn.yv().qt(),n=this.nn.Kv(),o=this.Li;this.gv&&(this.gv=!1,e.T_(n,o))}Ev(e){if(this.Li===null||!this.cn.handleScale.axisPressedMouseMove.price)return;const n=this.nn.yv().qt(),o=this.nn.Kv();this.gv=!1,n.T_(o,this.Li)}Lv(e){this.cn.handleScale.axisDoubleClickReset.price&&this.ir()}Nv(e){this.Li!==null&&(!this.nn.yv().qt().W().handleScale.axisPressedMouseMove.price||this.Li.ph()||this.Li.Co()||this.rp(1))}Fv(e){this.rp(0)}qv(){const e=[],n=this.Li===null?void 0:this.Li;return(o=>{for(let i=0;i{s.fillStyle=o.borderColor;const c=Math.max(1,Math.floor(l)),u=Math.floor(.5*l),d=Math.round(i.T*a);s.beginPath();for(const h of n)s.rect(Math.floor(r*a),Math.round(h.Aa*l)-u,d,c);s.fill()}),e.useMediaCoordinateSpace(({context:s})=>{var a;s.font=this.Uv(),s.fillStyle=(a=o.textColor)!==null&&a!==void 0?a:this.mo.textColor,s.textAlign=this.Tv?"right":"left",s.textBaseline="middle";const l=this.Tv?Math.round(r-i.B):Math.round(r+i.T+i.B),c=n.map(u=>this.Mv.xi(s,u.Za));for(let u=n.length;u--;){const d=n[u];s.fillText(d.Za,l,d.Aa+c[u])}})}Gv(){if(this.wv===null||this.Li===null)return;let e=this.wv.height/2;const n=[],o=this.Li.No().slice(),i=this.nn.Kv(),r=this.Hv();this.Li===i.vr()&&this.nn.Kv().No().forEach(l=>{i.dr(l)&&o.push(l)});const s=this.Li.Ta()[0],a=this.Li;o.forEach(l=>{const c=l.Rn(i,a);c.forEach(u=>{u.Vi(null),u.Bi()&&n.push(u)}),s===l&&c.length>0&&(e=c[0].yi())}),n.forEach(l=>l.Vi(l.yi())),this.Li.W().alignLabels&&this.hp(n,r,e)}hp(e,n,o){if(this.wv===null)return;const i=e.filter(s=>s.yi()<=o),r=e.filter(s=>s.yi()>o);i.sort((s,a)=>a.yi()-s.yi()),i.length&&r.length&&r.push(i[0]),r.sort((s,a)=>s.yi()-a.yi());for(const s of e){const a=Math.floor(s.zt(n)/2),l=s.yi();l>-a&&lthis.wv.height-a&&ld-c&&a.Vi(d-c)}for(let s=1;s{r.Ii()&&r.xt(Me(this.Li)).K(e,o,this.Mv,i)})}np(e){if(this.wv===null||this.Li===null)return;const n=this.nn.yv().qt(),o=[],i=this.nn.Kv(),r=n.Fc().Rn(i,this.Li);r.length&&o.push(r);const s=this.Hv(),a=this.Tv?"right":"left";o.forEach(l=>{l.forEach(c=>{c.xt(Me(this.Li)).K(e,s,this.Mv,a)})})}rp(e){this.Ov.style.cursor=e===1?"ns-resize":"default"}ao(){const e=this.$v();this.xv{this.Sv||this.wp===null||this.Ui().Fh()},this.Cv=()=>{this.Sv||this.wp===null||this.Ui().Fh()},this.gp=e,this.wp=n,this.wp.I_().l(this.Mp.bind(this),this,!0),this.xp=document.createElement("td"),this.xp.style.padding="0",this.xp.style.position="relative";const o=document.createElement("div");o.style.width="100%",o.style.height="100%",o.style.position="relative",o.style.overflow="hidden",this.Sp=document.createElement("td"),this.Sp.style.padding="0",this.kp=document.createElement("td"),this.kp.style.padding="0",this.xp.appendChild(o),this.Av=$a(o,At({width:16,height:16})),this.Av.subscribeSuggestedBitmapSizeChanged(this.kv);const i=this.Av.canvasElement;i.style.position="absolute",i.style.zIndex="1",i.style.left="0",i.style.top="0",this.Vv=$a(o,At({width:16,height:16})),this.Vv.subscribeSuggestedBitmapSizeChanged(this.Cv);const r=this.Vv.canvasElement;r.style.position="absolute",r.style.zIndex="2",r.style.left="0",r.style.top="0",this.yp=document.createElement("tr"),this.yp.appendChild(this.Sp),this.yp.appendChild(this.xp),this.yp.appendChild(this.kp),this.Cp(),this.Wv=new TC(this.Vv.canvasElement,this,{Nf:()=>this.vp===null&&!this.gp.W().handleScroll.vertTouchDrag,Ff:()=>this.vp===null&&!this.gp.W().handleScroll.horzTouchDrag})}S(){this.lp!==null&&this.lp.S(),this.ap!==null&&this.ap.S(),this.Vv.unsubscribeSuggestedBitmapSizeChanged(this.Cv),Fa(this.Vv.canvasElement),this.Vv.dispose(),this.Av.unsubscribeSuggestedBitmapSizeChanged(this.kv),Fa(this.Av.canvasElement),this.Av.dispose(),this.wp!==null&&this.wp.I_().p(this),this.Wv.S()}Kv(){return Me(this.wp)}Tp(e){this.wp!==null&&this.wp.I_().p(this),this.wp=e,this.wp!==null&&this.wp.I_().l(OC.prototype.Mp.bind(this),this,!0),this.Cp()}yv(){return this.gp}jv(){return this.yp}Cp(){if(this.wp!==null&&(this.Pp(),this.Ui().Mt().length!==0)){if(this.lp!==null){const e=this.wp.S_();this.lp.Ji(Me(e))}if(this.ap!==null){const e=this.wp.k_();this.ap.Ji(Me(e))}}}Rp(){this.lp!==null&&this.lp.gt(),this.ap!==null&&this.ap.gt()}v_(){return this.wp!==null?this.wp.v_():0}p_(e){this.wp&&this.wp.p_(e)}Bf(e){if(!this.wp)return;this.Dp();const n=e.localX,o=e.localY;this.Op(n,o,e)}Qf(e){this.Dp(),this.Ap(),this.Op(e.localX,e.localY,e)}If(e){var n;if(!this.wp)return;this.Dp();const o=e.localX,i=e.localY;this.Op(o,i,e);const r=this.br(o,i);this.gp.Vp((n=r==null?void 0:r.bv)!==null&&n!==void 0?n:null),this.Ui().Bc(r&&{Ic:r.Ic,pv:r.pv})}Xf(e){this.wp!==null&&(this.Dp(),this.Bp(e))}Tf(e){this.wp!==null&&this.Ip(this.cp,e)}Sf(e){this.Tf(e)}Hf(e){this.Dp(),this.zp(e),this.Op(e.localX,e.localY,e)}Yf(e){this.wp!==null&&(this.Dp(),this.fp=!1,this.Ep(e))}qf(e){this.wp!==null&&this.Bp(e)}_v(e){if(this.fp=!0,this.vp===null){const n={x:e.localX,y:e.localY};this.Lp(n,n,e)}}ov(e){this.wp!==null&&(this.Dp(),this.wp.qt().Bc(null),this.Np())}Fp(){return this.up}Wp(){return this.cp}sv(){this.dp=1,this.Ui().Un()}ev(e,n){if(!this.gp.W().handleScale.pinch)return;const o=5*(n-this.dp);this.dp=n,this.Ui().Uc(e.et,o)}Gf(e){this.fp=!1,this.pp=this.vp!==null,this.Ap();const n=this.Ui().Fc();this.vp!==null&&n.Tt()&&(this.mp={x:n.Kt(),y:n.Zt()},this.vp={x:e.localX,y:e.localY})}Wf(e){if(this.wp===null)return;const n=e.localX,o=e.localY;if(this.vp===null)this.zp(e);else{this.pp=!1;const i=Me(this.mp),r=i.x+(n-this.vp.x),s=i.y+(o-this.vp.y);this.Op(r,s,e)}}Uf(e){this.yv().W().trackingMode.exitMode===0&&(this.pp=!0),this.jp(),this.Ep(e)}br(e,n){const o=this.wp;return o===null?null:function(i,r,s){const a=i.No(),l=function(c,u,d){var h,p;let g,m;for(const y of c){const w=(p=(h=y.oa)===null||h===void 0?void 0:h.call(y,u,d))!==null&&p!==void 0?p:[];for(const C of w)b=C.zOrder,(!(v=g==null?void 0:g.zOrder)||b==="top"&&v!=="top"||b==="normal"&&v==="bottom")&&(g=C,m=y)}var b,v;return g&&m?{mv:g,Ic:m}:null}(a,r,s);if((l==null?void 0:l.mv.zOrder)==="top")return If(l);for(const c of a){if(l&&l.Ic===c&&l.mv.zOrder!=="bottom"&&!l.mv.isBackground)return If(l);const u=ece(c.Pn(i),r,s);if(u!==null)return{Ic:c,fv:u.fv,pv:u.pv};if(l&&l.Ic===c&&l.mv.zOrder!=="bottom"&&l.mv.isBackground)return If(l)}return l!=null&&l.mv?If(l):null}(o,e,n)}Hp(e,n){Me(n==="left"?this.lp:this.ap).Yv(At({width:e,height:this.wv.height}))}$p(){return this.wv}Yv(e){ya(this.wv,e)||(this.wv=e,this.Sv=!0,this.Av.resizeCanvasElement(e),this.Vv.resizeCanvasElement(e),this.Sv=!1,this.xp.style.width=e.width+"px",this.xp.style.height=e.height+"px")}Up(){const e=Me(this.wp);e.x_(e.S_()),e.x_(e.k_());for(const n of e.Ta())if(e.dr(n)){const o=n.At();o!==null&&e.x_(o),n.On()}}sp(){return this.Av.bitmapSize}ep(e,n,o){const i=this.sp();i.width>0&&i.height>0&&e.drawImage(this.Av.canvasElement,n,o)}Zv(e){if(e===0||this.wp===null)return;if(e>1&&this.Up(),this.lp!==null&&this.lp.Zv(e),this.ap!==null&&this.ap.Zv(e),e!==1){this.Av.applySuggestedBitmapSize();const o=Ea(this.Av);o!==null&&(o.useBitmapCoordinateSpace(i=>{this.Jv(i)}),this.wp&&(this.qp(o,tce),this.Yp(o),this.Xp(o),this.qp(o,Ef),this.qp(o,nce)))}this.Vv.applySuggestedBitmapSize();const n=Ea(this.Vv);n!==null&&(n.useBitmapCoordinateSpace(({context:o,bitmapSize:i})=>{o.clearRect(0,0,i.width,i.height)}),this.Kp(n),this.qp(n,oce))}Zp(){return this.lp}Gp(){return this.ap}Qv(e,n){this.qp(e,n)}Mp(){this.wp!==null&&this.wp.I_().p(this),this.wp=null}Bp(e){this.Ip(this.up,e)}Ip(e,n){const o=n.localX,i=n.localY;e.M()&&e.m(this.Ui().yt().Vu(o),{x:o,y:i},n)}Jv({context:e,bitmapSize:n}){const{width:o,height:i}=n,r=this.Ui(),s=r.q(),a=r.od();s===a?vv(e,0,0,o,i,a):FF(e,0,0,o,i,s,a)}Yp(e){const n=Me(this.wp).z_().Wh().xt();n!==null&&n.K(e,!1)}Xp(e){const n=this.Ui().Nc();this.Jp(e,Ef,nx,n),this.Jp(e,Ef,wp,n)}Kp(e){this.Jp(e,Ef,wp,this.Ui().Fc())}qp(e,n){const o=Me(this.wp).No();for(const i of o)this.Jp(e,n,nx,i);for(const i of o)this.Jp(e,n,wp,i)}Jp(e,n,o,i){const r=Me(this.wp),s=r.qt().Vc(),a=s!==null&&s.Ic===i,l=s!==null&&a&&s.pv!==void 0?s.pv.gr:void 0;ox(n,c=>o(c,e,a,l),i,r)}Pp(){if(this.wp===null)return;const e=this.gp,n=this.wp.S_().W().visible,o=this.wp.k_().W().visible;n||this.lp===null||(this.Sp.removeChild(this.lp.jv()),this.lp.S(),this.lp=null),o||this.ap===null||(this.kp.removeChild(this.ap.jv()),this.ap.S(),this.ap=null);const i=e.qt().sd();n&&this.lp===null&&(this.lp=new $_(this,e.W(),i,"left"),this.Sp.appendChild(this.lp.jv())),o&&this.ap===null&&(this.ap=new $_(this,e.W(),i,"right"),this.kp.appendChild(this.ap.jv()))}Qp(e){return e.uv&&this.fp||this.vp!==null}tm(e){return Math.max(0,Math.min(e,this.wv.width-1))}im(e){return Math.max(0,Math.min(e,this.wv.height-1))}Op(e,n,o){this.Ui().Jc(this.tm(e),this.im(n),o,Me(this.wp))}Np(){this.Ui().td()}jp(){this.pp&&(this.vp=null,this.Np())}Lp(e,n,o){this.vp=e,this.pp=!1,this.Op(n.x,n.y,o);const i=this.Ui().Fc();this.mp={x:i.Kt(),y:i.Zt()}}Ui(){return this.gp.qt()}Ep(e){if(!this._p)return;const n=this.Ui(),o=this.Kv();if(n.D_(o,o.vn()),this.op=null,this._p=!1,n.Kc(),this.bp!==null){const i=performance.now(),r=n.yt();this.bp.Dr(r.Eu(),i),this.bp.Yu(i)||n.Xn(this.bp)}}Dp(){this.vp=null}Ap(){if(this.wp){if(this.Ui().Un(),document.activeElement!==document.body&&document.activeElement!==document.documentElement)Me(document.activeElement).blur();else{const e=document.getSelection();e!==null&&e.removeAllRanges()}!this.wp.vn().Fi()&&this.Ui().yt().Fi()}}zp(e){if(this.wp===null)return;const n=this.Ui(),o=n.yt();if(o.Fi())return;const i=this.gp.W(),r=i.handleScroll,s=i.kineticScroll;if((!r.pressedMouseMove||e.uv)&&(!r.horzTouchDrag&&!r.vertTouchDrag||!e.uv))return;const a=this.wp.vn(),l=performance.now();if(this.op!==null||this.Qp(e)||(this.op={x:e.clientX,y:e.clientY,kd:l,nm:e.localX,sm:e.localY}),this.op!==null&&!this._p&&(this.op.x!==e.clientX||this.op.y!==e.clientY)){if(e.uv&&s.touch||!e.uv&&s.mouse){const c=o.he();this.bp=new Jle(.2/c,7/c,.997,15/c),this.bp.Nd(o.Eu(),this.op.kd)}else this.bp=null;a.Fi()||n.P_(this.wp,a,e.localY),n.Yc(e.localX),this._p=!0}this._p&&(a.Fi()||n.R_(this.wp,a,e.localY),n.Xc(e.localX),this.bp!==null&&this.bp.Nd(o.Eu(),l))}}class F_{constructor(e,n,o,i,r){this.bt=!0,this.wv=At({width:0,height:0}),this.kv=()=>this.Zv(3),this.Tv=e==="left",this.kc=o.sd,this.cn=n,this.rm=i,this.hm=r,this.Ov=document.createElement("div"),this.Ov.style.width="25px",this.Ov.style.height="100%",this.Ov.style.overflow="hidden",this.Av=$a(this.Ov,At({width:16,height:16})),this.Av.subscribeSuggestedBitmapSizeChanged(this.kv)}S(){this.Av.unsubscribeSuggestedBitmapSizeChanged(this.kv),Fa(this.Av.canvasElement),this.Av.dispose()}jv(){return this.Ov}$p(){return this.wv}Yv(e){ya(this.wv,e)||(this.wv=e,this.Av.resizeCanvasElement(e),this.Ov.style.width=`${e.width}px`,this.Ov.style.height=`${e.height}px`,this.bt=!0)}Zv(e){if(e<3&&!this.bt||this.wv.width===0||this.wv.height===0)return;this.bt=!1,this.Av.applySuggestedBitmapSize();const n=Ea(this.Av);n!==null&&n.useBitmapCoordinateSpace(o=>{this.Jv(o),this.Be(o)})}sp(){return this.Av.bitmapSize}ep(e,n,o){const i=this.sp();i.width>0&&i.height>0&&e.drawImage(this.Av.canvasElement,n,o)}Be({context:e,bitmapSize:n,horizontalPixelRatio:o,verticalPixelRatio:i}){if(!this.rm())return;e.fillStyle=this.cn.timeScale.borderColor;const r=Math.floor(this.kc.W().C*o),s=Math.floor(this.kc.W().C*i),a=this.Tv?n.width-r:0;e.fillRect(a,0,r,s)}Jv({context:e,bitmapSize:n}){vv(e,0,0,n.width,n.height,this.hm())}}function IC(t){return e=>{var n,o;return(o=(n=e.aa)===null||n===void 0?void 0:n.call(e,t))!==null&&o!==void 0?o:[]}}const ice=IC("normal"),rce=IC("top"),sce=IC("bottom");class ace{constructor(e,n){this.lm=null,this.am=null,this.k=null,this.om=!1,this.wv=At({width:0,height:0}),this._m=new ln,this.Mv=new zd(5),this.Sv=!1,this.kv=()=>{this.Sv||this.gp.qt().Fh()},this.Cv=()=>{this.Sv||this.gp.qt().Fh()},this.gp=e,this.N_=n,this.cn=e.W().layout,this.um=document.createElement("tr"),this.dm=document.createElement("td"),this.dm.style.padding="0",this.fm=document.createElement("td"),this.fm.style.padding="0",this.Ov=document.createElement("td"),this.Ov.style.height="25px",this.Ov.style.padding="0",this.vm=document.createElement("div"),this.vm.style.width="100%",this.vm.style.height="100%",this.vm.style.position="relative",this.vm.style.overflow="hidden",this.Ov.appendChild(this.vm),this.Av=$a(this.vm,At({width:16,height:16})),this.Av.subscribeSuggestedBitmapSizeChanged(this.kv);const o=this.Av.canvasElement;o.style.position="absolute",o.style.zIndex="1",o.style.left="0",o.style.top="0",this.Vv=$a(this.vm,At({width:16,height:16})),this.Vv.subscribeSuggestedBitmapSizeChanged(this.Cv);const i=this.Vv.canvasElement;i.style.position="absolute",i.style.zIndex="2",i.style.left="0",i.style.top="0",this.um.appendChild(this.dm),this.um.appendChild(this.Ov),this.um.appendChild(this.fm),this.pm(),this.gp.qt().f_().l(this.pm.bind(this),this),this.Wv=new TC(this.Vv.canvasElement,this,{Nf:()=>!0,Ff:()=>!this.gp.W().handleScroll.horzTouchDrag})}S(){this.Wv.S(),this.lm!==null&&this.lm.S(),this.am!==null&&this.am.S(),this.Vv.unsubscribeSuggestedBitmapSizeChanged(this.Cv),Fa(this.Vv.canvasElement),this.Vv.dispose(),this.Av.unsubscribeSuggestedBitmapSizeChanged(this.kv),Fa(this.Av.canvasElement),this.Av.dispose()}jv(){return this.um}bm(){return this.lm}wm(){return this.am}Qf(e){if(this.om)return;this.om=!0;const n=this.gp.qt();!n.yt().Fi()&&this.gp.W().handleScale.axisPressedMouseMove.time&&n.$c(e.localX)}Gf(e){this.Qf(e)}tv(){const e=this.gp.qt();!e.yt().Fi()&&this.om&&(this.om=!1,this.gp.W().handleScale.axisPressedMouseMove.time&&e.Gc())}Hf(e){const n=this.gp.qt();!n.yt().Fi()&&this.gp.W().handleScale.axisPressedMouseMove.time&&n.Zc(e.localX)}Wf(e){this.Hf(e)}Yf(){this.om=!1;const e=this.gp.qt();e.yt().Fi()&&!this.gp.W().handleScale.axisPressedMouseMove.time||e.Gc()}Uf(){this.Yf()}Tf(){this.gp.W().handleScale.axisDoubleClickReset.time&&this.gp.qt().Zn()}Sf(){this.Tf()}Bf(){this.gp.qt().W().handleScale.axisPressedMouseMove.time&&this.rp(1)}ov(){this.rp(0)}$p(){return this.wv}gm(){return this._m}Mm(e,n,o){ya(this.wv,e)||(this.wv=e,this.Sv=!0,this.Av.resizeCanvasElement(e),this.Vv.resizeCanvasElement(e),this.Sv=!1,this.Ov.style.width=`${e.width}px`,this.Ov.style.height=`${e.height}px`,this._m.m(e)),this.lm!==null&&this.lm.Yv(At({width:n,height:e.height})),this.am!==null&&this.am.Yv(At({width:o,height:e.height}))}xm(){const e=this.Sm();return Math.ceil(e.C+e.T+e.P+e.L+e.V+e.km)}gt(){this.gp.qt().yt().Ea()}sp(){return this.Av.bitmapSize}ep(e,n,o){const i=this.sp();i.width>0&&i.height>0&&e.drawImage(this.Av.canvasElement,n,o)}Zv(e){if(e===0)return;if(e!==1){this.Av.applySuggestedBitmapSize();const o=Ea(this.Av);o!==null&&(o.useBitmapCoordinateSpace(i=>{this.Jv(i),this.Be(i),this.ym(o,sce)}),this.tp(o),this.ym(o,ice)),this.lm!==null&&this.lm.Zv(e),this.am!==null&&this.am.Zv(e)}this.Vv.applySuggestedBitmapSize();const n=Ea(this.Vv);n!==null&&(n.useBitmapCoordinateSpace(({context:o,bitmapSize:i})=>{o.clearRect(0,0,i.width,i.height)}),this.Cm([...this.gp.qt().Mt(),this.gp.qt().Fc()],n),this.ym(n,rce))}ym(e,n){const o=this.gp.qt().Mt();for(const i of o)ox(n,r=>nx(r,e,!1,void 0),i,void 0);for(const i of o)ox(n,r=>wp(r,e,!1,void 0),i,void 0)}Jv({context:e,bitmapSize:n}){vv(e,0,0,n.width,n.height,this.gp.qt().od())}Be({context:e,bitmapSize:n,verticalPixelRatio:o}){if(this.gp.W().timeScale.borderVisible){e.fillStyle=this.Tm();const i=Math.max(1,Math.floor(this.Sm().C*o));e.fillRect(0,0,n.width,i)}}tp(e){const n=this.gp.qt().yt(),o=n.Ea();if(!o||o.length===0)return;const i=this.N_.maxTickMarkWeight(o),r=this.Sm(),s=n.W();s.borderVisible&&s.ticksVisible&&e.useBitmapCoordinateSpace(({context:a,horizontalPixelRatio:l,verticalPixelRatio:c})=>{a.strokeStyle=this.Tm(),a.fillStyle=this.Tm();const u=Math.max(1,Math.floor(l)),d=Math.floor(.5*l);a.beginPath();const h=Math.round(r.T*c);for(let p=o.length;p--;){const g=Math.round(o[p].coord*l);a.rect(g-d,0,u,h)}a.fill()}),e.useMediaCoordinateSpace(({context:a})=>{const l=r.C+r.T+r.L+r.P/2;a.textAlign="center",a.textBaseline="middle",a.fillStyle=this.$(),a.font=this.Uv();for(const c of o)if(c.weight=i){const u=c.needAlignCoordinate?this.Pm(a,c.coord,c.label):c.coord;a.fillText(c.label,u,l)}})}Pm(e,n,o){const i=this.Mv.Si(e,o),r=i/2,s=Math.floor(n-r)+.5;return s<0?n+=Math.abs(0-s):s+i>this.wv.width&&(n-=Math.abs(this.wv.width-(s+i))),n}Cm(e,n){const o=this.Sm();for(const i of e)for(const r of i.tn())r.xt().K(n,o)}Tm(){return this.gp.W().timeScale.borderColor}$(){return this.cn.textColor}j(){return this.cn.fontSize}Uv(){return Sc(this.j(),this.cn.fontFamily)}Rm(){return Sc(this.j(),this.cn.fontFamily,"bold")}Sm(){this.k===null&&(this.k={C:1,N:NaN,L:NaN,V:NaN,Hi:NaN,T:5,P:NaN,R:"",ji:new zd,km:0});const e=this.k,n=this.Uv();if(e.R!==n){const o=this.j();e.P=o,e.R=n,e.L=3*o/12,e.V=3*o/12,e.Hi=9*o/12,e.N=0,e.km=4*o/12,e.ji.ir()}return this.k}rp(e){this.Ov.style.cursor=e===1?"ew-resize":"default"}pm(){const e=this.gp.qt(),n=e.W();n.leftPriceScale.visible||this.lm===null||(this.dm.removeChild(this.lm.jv()),this.lm.S(),this.lm=null),n.rightPriceScale.visible||this.am===null||(this.fm.removeChild(this.am.jv()),this.am.S(),this.am=null);const o={sd:this.gp.qt().sd()},i=()=>n.leftPriceScale.borderVisible&&e.yt().W().borderVisible,r=()=>e.od();n.leftPriceScale.visible&&this.lm===null&&(this.lm=new F_("left",n,o,i,r),this.dm.appendChild(this.lm.jv())),n.rightPriceScale.visible&&this.am===null&&(this.am=new F_("right",n,o,i,r),this.fm.appendChild(this.am.jv()))}}const lce=!!kc&&!!navigator.userAgentData&&navigator.userAgentData.brands.some(t=>t.brand.includes("Chromium"))&&!!kc&&(!((eb=navigator==null?void 0:navigator.userAgentData)===null||eb===void 0)&&eb.platform?navigator.userAgentData.platform==="Windows":navigator.userAgent.toLowerCase().indexOf("win")>=0);var eb;class cce{constructor(e,n,o){var i;this.Dm=[],this.Om=0,this.Qa=0,this.e_=0,this.Am=0,this.Vm=0,this.Bm=null,this.Im=!1,this.up=new ln,this.cp=new ln,this.Mc=new ln,this.zm=null,this.Em=null,this.Lm=e,this.cn=n,this.N_=o,this.um=document.createElement("div"),this.um.classList.add("tv-lightweight-charts"),this.um.style.overflow="hidden",this.um.style.direction="ltr",this.um.style.width="100%",this.um.style.height="100%",(i=this.um).style.userSelect="none",i.style.webkitUserSelect="none",i.style.msUserSelect="none",i.style.MozUserSelect="none",i.style.webkitTapHighlightColor="transparent",this.Nm=document.createElement("table"),this.Nm.setAttribute("cellspacing","0"),this.um.appendChild(this.Nm),this.Fm=this.Wm.bind(this),tb(this.cn)&&this.jm(!0),this.Ui=new Gle(this.Sc.bind(this),this.cn,o),this.qt().Wc().l(this.Hm.bind(this),this),this.$m=new ace(this,this.N_),this.Nm.appendChild(this.$m.jv());const r=n.autoSize&&this.Um();let s=this.cn.width,a=this.cn.height;if(r||s===0||a===0){const l=e.getBoundingClientRect();s=s||l.width,a=a||l.height}this.qm(s,a),this.Ym(),e.appendChild(this.um),this.Xm(),this.Ui.yt().Gu().l(this.Ui.$l.bind(this.Ui),this),this.Ui.f_().l(this.Ui.$l.bind(this.Ui),this)}qt(){return this.Ui}W(){return this.cn}Km(){return this.Dm}Zm(){return this.$m}S(){this.jm(!1),this.Om!==0&&window.cancelAnimationFrame(this.Om),this.Ui.Wc().p(this),this.Ui.yt().Gu().p(this),this.Ui.f_().p(this),this.Ui.S();for(const e of this.Dm)this.Nm.removeChild(e.jv()),e.Fp().p(this),e.Wp().p(this),e.S();this.Dm=[],Me(this.$m).S(),this.um.parentElement!==null&&this.um.parentElement.removeChild(this.um),this.Mc.S(),this.up.S(),this.cp.S(),this.Gm()}qm(e,n,o=!1){if(this.Qa===n&&this.e_===e)return;const i=function(a){const l=Math.floor(a.width),c=Math.floor(a.height);return At({width:l-l%2,height:c-c%2})}(At({width:e,height:n}));this.Qa=i.height,this.e_=i.width;const r=this.Qa+"px",s=this.e_+"px";Me(this.um).style.height=r,Me(this.um).style.width=s,this.Nm.style.height=r,this.Nm.style.width=s,o?this.Jm($n.es(),performance.now()):this.Ui.$l()}Zv(e){e===void 0&&(e=$n.es());for(let n=0;n{let c=0;for(let u=0;u{Me(a==="left"?this.$m.bm():this.$m.wm()).ep(Me(e),l,c)};if(this.cn.timeScale.visible){const a=this.$m.sp();if(e!==null){let l=0;this.sb()&&(s("left",l,o),l=Me(i.Zp()).sp().width),this.$m.ep(e,l,o),l+=a.width,this.eb()&&s("right",l,o)}o+=a.height}return At({width:n,height:o})}ob(){let e=0,n=0,o=0;for(const g of this.Dm)this.sb()&&(n=Math.max(n,Me(g.Zp()).$v(),this.cn.leftPriceScale.minimumWidth)),this.eb()&&(o=Math.max(o,Me(g.Gp()).$v(),this.cn.rightPriceScale.minimumWidth)),e+=g.v_();n=tx(n),o=tx(o);const i=this.e_,r=this.Qa,s=Math.max(i-n-o,0),a=this.cn.timeScale.visible;let l=a?Math.max(this.$m.xm(),this.cn.timeScale.minimumHeight):0;var c;l=(c=l)+c%2;const u=0+l,d=r{r.Rp()}),((o=this.Bm)===null||o===void 0?void 0:o.jn())===3&&(this.Bm.ts(e),this.ub(),this.cb(this.Bm),this.fb(this.Bm,n),e=this.Bm,this.Bm=null)),this.Zv(e)}fb(e,n){for(const o of e.Qn())this.ns(o,n)}cb(e){const n=this.Ui.Lc();for(let o=0;o{if(this.Im=!1,this.Om=0,this.Bm!==null){const o=this.Bm;this.Bm=null,this.Jm(o,n);for(const i of o.Qn())if(i.qn===5&&!i.Vt.Yu(n)){this.qt().Xn(i.Vt);break}}}))}ub(){this.Ym()}Ym(){const e=this.Ui.Lc(),n=e.length,o=this.Dm.length;for(let i=n;i{const d=u.In().nl(e);d!==null&&r.set(u,d)});let s;if(e!==null){const u=(i=this.Ui.yt().qi(e))===null||i===void 0?void 0:i.originalTime;u!==void 0&&(s=u)}const a=this.qt().Vc(),l=a!==null&&a.Ic instanceof _C?a.Ic:void 0,c=a!==null&&a.pv!==void 0?a.pv.wr:void 0;return{bb:s,se:e??void 0,wb:n??void 0,gb:l,Mb:r,xb:c,Sb:o??void 0}}vb(e,n,o){this.up.m(()=>this.mb(e,n,o))}pb(e,n,o){this.cp.m(()=>this.mb(e,n,o))}Hm(e,n,o){this.Mc.m(()=>this.mb(e,n,o))}Xm(){const e=this.cn.timeScale.visible?"":"none";this.$m.jv().style.display=e}sb(){return this.Dm[0].Kv().S_().W().visible}eb(){return this.Dm[0].Kv().k_().W().visible}Um(){return"ResizeObserver"in window&&(this.zm=new ResizeObserver(e=>{const n=e.find(o=>o.target===this.Lm);n&&this.qm(n.contentRect.width,n.contentRect.height)}),this.zm.observe(this.Lm,{box:"border-box"}),!0)}Gm(){this.zm!==null&&this.zm.disconnect(),this.zm=null}}function tb(t){return!!(t.handleScroll.mouseWheel||t.handleScale.mouseWheel)}function ej(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(o=Object.getOwnPropertySymbols(t);ifunction(a,l){return l?l(a):(c=a).open===void 0&&c.value===void 0;var c}(o,s)?L_({ut:e,se:n,bb:i},o):L_(t(e,n,o,i,r),o)}function A_(t){return{Candlestick:Ws(fce),Bar:Ws(hce),Area:Ws(uce),Baseline:Ws(dce),Histogram:Ws(j_),Line:Ws(j_),Custom:Ws(pce)}[t]}function N_(t){return{se:0,yb:new Map,ia:t}}function z_(t,e){if(t!==void 0&&t.length!==0)return{Cb:e.key(t[0].ut),Tb:e.key(t[t.length-1].ut)}}function V_(t){let e;return t.forEach(n=>{e===void 0&&(e=n.bb)}),io(e)}class mce{constructor(e){this.Pb=new Map,this.Rb=new Map,this.Db=new Map,this.Ob=[],this.N_=e}S(){this.Pb.clear(),this.Rb.clear(),this.Db.clear(),this.Ob=[]}Ab(e,n){let o=this.Pb.size!==0,i=!1;const r=this.Rb.get(e);if(r!==void 0)if(this.Rb.size===1)o=!1,i=!0,this.Pb.clear();else for(const l of this.Ob)l.pointData.yb.delete(e)&&(i=!0);let s=[];if(n.length!==0){const l=n.map(p=>p.time),c=this.N_.createConverterToInternalObj(n),u=A_(e.Xh()),d=e.ga(),h=e.Ma();s=n.map((p,g)=>{const m=c(p.time),b=this.N_.key(m);let v=this.Pb.get(b);v===void 0&&(v=N_(m),this.Pb.set(b,v),i=!0);const y=u(m,v.se,p,l[g],d,h);return v.yb.set(e,y),y})}o&&this.Vb(),this.Bb(e,s);let a=-1;if(i){const l=[];this.Pb.forEach(c=>{l.push({timeWeight:0,time:c.ia,pointData:c,originalTime:V_(c.yb)})}),l.sort((c,u)=>this.N_.key(c.time)-this.N_.key(u.time)),a=this.Ib(l)}return this.zb(e,a,function(l,c,u){const d=z_(l,u),h=z_(c,u);if(d!==void 0&&h!==void 0)return{Xl:d.Tb>=h.Tb&&d.Cb>=h.Cb}}(this.Rb.get(e),r,this.N_))}hd(e){return this.Ab(e,[])}Eb(e,n){const o=n;(function(m){m.bb===void 0&&(m.bb=m.time)})(o),this.N_.preprocessData(n);const i=this.N_.createConverterToInternalObj([n])(n.time),r=this.Db.get(e);if(r!==void 0&&this.N_.key(i)this.N_.key(m.time)this.N_.key(i.ut)?Df(n)&&o.push(n):Df(n)?o[o.length-1]=n:o.splice(-1,1),this.Db.set(e,n.ut)}Bb(e,n){n.length!==0?(this.Rb.set(e,n.filter(Df)),this.Db.set(e,n[n.length-1].ut)):(this.Rb.delete(e),this.Db.delete(e))}Vb(){for(const e of this.Ob)e.pointData.yb.size===0&&this.Pb.delete(this.N_.key(e.time))}Ib(e){let n=-1;for(let o=0;o{n.length!==0&&(e=Math.max(e,n[n.length-1].se))}),e}zb(e,n,o){const i={Fb:new Map,yt:{Au:this.Nb()}};if(n!==-1)this.Rb.forEach((r,s)=>{i.Fb.set(s,{He:r,Wb:s===e?o:void 0})}),this.Rb.has(e)||i.Fb.set(e,{He:[],Wb:o}),i.yt.jb=this.Ob,i.yt.Hb=n;else{const r=this.Rb.get(e);i.Fb.set(e,{He:r||[],Wb:o})}return i}}function nb(t,e){t.se=e,t.yb.forEach(n=>{n.se=e})}function EC(t){const e={value:t.Vt[3],time:t.bb};return t.kb!==void 0&&(e.customValues=t.kb),e}function B_(t){const e=EC(t);return t.O!==void 0&&(e.color=t.O),e}function gce(t){const e=EC(t);return t._t!==void 0&&(e.lineColor=t._t),t.Ts!==void 0&&(e.topColor=t.Ts),t.Ps!==void 0&&(e.bottomColor=t.Ps),e}function vce(t){const e=EC(t);return t.Pe!==void 0&&(e.topLineColor=t.Pe),t.Re!==void 0&&(e.bottomLineColor=t.Re),t.Se!==void 0&&(e.topFillColor1=t.Se),t.ke!==void 0&&(e.topFillColor2=t.ke),t.ye!==void 0&&(e.bottomFillColor1=t.ye),t.Ce!==void 0&&(e.bottomFillColor2=t.Ce),e}function tj(t){const e={open:t.Vt[0],high:t.Vt[1],low:t.Vt[2],close:t.Vt[3],time:t.bb};return t.kb!==void 0&&(e.customValues=t.kb),e}function bce(t){const e=tj(t);return t.O!==void 0&&(e.color=t.O),e}function yce(t){const e=tj(t),{O:n,Bt:o,$h:i}=t;return n!==void 0&&(e.color=n),o!==void 0&&(e.borderColor=o),i!==void 0&&(e.wickColor=i),e}function ix(t){return{Area:gce,Line:B_,Baseline:vce,Histogram:B_,Bar:bce,Candlestick:yce,Custom:xce}[t]}function xce(t){const e=t.bb;return Object.assign(Object.assign({},t.He),{time:e})}const wce={vertLine:{color:"#9598A1",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#131722"},horzLine:{color:"#9598A1",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#131722"},mode:1},Cce={vertLines:{color:"#D6DCDE",style:0,visible:!0},horzLines:{color:"#D6DCDE",style:0,visible:!0}},Sce={background:{type:"solid",color:"#FFFFFF"},textColor:"#191919",fontSize:12,fontFamily:xC},ob={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:"#2B2B43",entireTextOnly:!1,visible:!1,ticksVisible:!1,scaleMargins:{bottom:.1,top:.2},minimumWidth:0},kce={rightOffset:0,barSpacing:6,minBarSpacing:.5,fixLeftEdge:!1,fixRightEdge:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!1,borderVisible:!0,borderColor:"#2B2B43",visible:!0,timeVisible:!1,secondsVisible:!0,shiftVisibleRangeOnNewBar:!0,allowShiftVisibleRangeOnWhitespaceReplacement:!1,ticksVisible:!1,uniformDistribution:!1,minimumHeight:0},Pce={color:"rgba(0, 0, 0, 0)",visible:!1,fontSize:48,fontFamily:xC,fontStyle:"",text:"",horzAlign:"center",vertAlign:"center"};function H_(){return{width:0,height:0,autoSize:!1,layout:Sce,crosshair:wce,grid:Cce,overlayPriceScales:Object.assign({},ob),leftPriceScale:Object.assign(Object.assign({},ob),{visible:!1}),rightPriceScale:Object.assign(Object.assign({},ob),{visible:!0}),timeScale:kce,watermark:Pce,localization:{locale:kc?navigator.language:"",dateFormat:"dd MMM 'yy"},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:{time:!0,price:!0},mouseWheel:!0,pinch:!0},kineticScroll:{mouse:!1,touch:!0},trackingMode:{exitMode:1}}}class Mce{constructor(e,n){this.$b=e,this.Ub=n}applyOptions(e){this.$b.qt().zc(this.Ub,e)}options(){return this.Li().W()}width(){return yv(this.Ub)?this.$b.nb(this.Ub):0}Li(){return Me(this.$b.qt().Ec(this.Ub)).At}}function W_(t,e,n){const o=ej(t,["time","originalTime"]),i=Object.assign({time:e},o);return n!==void 0&&(i.originalTime=n),i}const _ce={color:"#FF0000",price:0,lineStyle:2,lineWidth:1,lineVisible:!0,axisLabelVisible:!0,title:"",axisLabelColor:"",axisLabelTextColor:""};class Rce{constructor(e){this.Bh=e}applyOptions(e){this.Bh.Nh(e)}options(){return this.Bh.W()}qb(){return this.Bh}}class Tce{constructor(e,n,o,i,r){this.Yb=new ln,this.Es=e,this.Xb=n,this.Kb=o,this.N_=r,this.Zb=i}S(){this.Yb.S()}priceFormatter(){return this.Es.ca()}priceToCoordinate(e){const n=this.Es.Pt();return n===null?null:this.Es.At().Ot(e,n.Vt)}coordinateToPrice(e){const n=this.Es.Pt();return n===null?null:this.Es.At().pn(e,n.Vt)}barsInLogicalRange(e){if(e===null)return null;const n=new Vl(new Qu(e.from,e.to)).iu(),o=this.Es.In();if(o.Fi())return null;const i=o.nl(n.Os(),1),r=o.nl(n.di(),-1),s=Me(o.Qh()),a=Me(o.Bn());if(i!==null&&r!==null&&i.se>r.se)return{barsBefore:e.from-s,barsAfter:a-e.to};const l={barsBefore:i===null||i.se===s?e.from-s:i.se-s,barsAfter:r===null||r.se===a?a-e.to:a-r.se};return i!==null&&r!==null&&(l.from=i.bb,l.to=r.bb),l}setData(e){this.N_,this.Es.Xh(),this.Xb.Gb(this.Es,e),this.Jb("full")}update(e){this.Es.Xh(),this.Xb.Qb(this.Es,e),this.Jb("update")}dataByIndex(e,n){const o=this.Es.In().nl(e,n);return o===null?null:ix(this.seriesType())(o)}data(){const e=ix(this.seriesType());return this.Es.In().ie().map(n=>e(n))}subscribeDataChanged(e){this.Yb.l(e)}unsubscribeDataChanged(e){this.Yb.v(e)}setMarkers(e){this.N_;const n=e.map(o=>W_(o,this.N_.convertHorzItemToInternal(o.time),o.time));this.Es.Zl(n)}markers(){return this.Es.Gl().map(e=>W_(e,e.originalTime,void 0))}applyOptions(e){this.Es.Nh(e)}options(){return wr(this.Es.W())}priceScale(){return this.Kb.priceScale(this.Es.At().xa())}createPriceLine(e){const n=$i(wr(_ce),e),o=this.Es.Jl(n);return new Rce(o)}removePriceLine(e){this.Es.Ql(e.qb())}seriesType(){return this.Es.Xh()}attachPrimitive(e){this.Es.ba(e),e.attached&&e.attached({chart:this.Zb,series:this,requestUpdate:()=>this.Es.qt().$l()})}detachPrimitive(e){this.Es.wa(e),e.detached&&e.detached()}Jb(e){this.Yb.M()&&this.Yb.m(e)}}class Oce{constructor(e,n,o){this.tw=new ln,this.uu=new ln,this._m=new ln,this.Ui=e,this.wl=e.yt(),this.$m=n,this.wl.Ku().l(this.iw.bind(this)),this.wl.Zu().l(this.nw.bind(this)),this.$m.gm().l(this.sw.bind(this)),this.N_=o}S(){this.wl.Ku().p(this),this.wl.Zu().p(this),this.$m.gm().p(this),this.tw.S(),this.uu.S(),this._m.S()}scrollPosition(){return this.wl.Eu()}scrollToPosition(e,n){n?this.wl.qu(e,1e3):this.Ui.Jn(e)}scrollToRealTime(){this.wl.Uu()}getVisibleRange(){const e=this.wl.yu();return e===null?null:{from:e.from.originalTime,to:e.to.originalTime}}setVisibleRange(e){const n={from:this.N_.convertHorzItemToInternal(e.from),to:this.N_.convertHorzItemToInternal(e.to)},o=this.wl.Ru(n);this.Ui.ld(o)}getVisibleLogicalRange(){const e=this.wl.ku();return e===null?null:{from:e.Os(),to:e.di()}}setVisibleLogicalRange(e){Ts(e.from<=e.to,"The from index cannot be after the to index."),this.Ui.ld(e)}resetTimeScale(){this.Ui.Zn()}fitContent(){this.Ui.Qu()}logicalToCoordinate(e){const n=this.Ui.yt();return n.Fi()?null:n.Et(e)}coordinateToLogical(e){return this.wl.Fi()?null:this.wl.Vu(e)}timeToCoordinate(e){const n=this.N_.convertHorzItemToInternal(e),o=this.wl.ya(n,!1);return o===null?null:this.wl.Et(o)}coordinateToTime(e){const n=this.Ui.yt(),o=n.Vu(e),i=n.qi(o);return i===null?null:i.originalTime}width(){return this.$m.$p().width}height(){return this.$m.$p().height}subscribeVisibleTimeRangeChange(e){this.tw.l(e)}unsubscribeVisibleTimeRangeChange(e){this.tw.v(e)}subscribeVisibleLogicalRangeChange(e){this.uu.l(e)}unsubscribeVisibleLogicalRangeChange(e){this.uu.v(e)}subscribeSizeChange(e){this._m.l(e)}unsubscribeSizeChange(e){this._m.v(e)}applyOptions(e){this.wl.Nh(e)}options(){return Object.assign(Object.assign({},wr(this.wl.W())),{barSpacing:this.wl.he()})}iw(){this.tw.M()&&this.tw.m(this.getVisibleRange())}nw(){this.uu.M()&&this.uu.m(this.getVisibleLogicalRange())}sw(e){this._m.m(e.width,e.height)}}function Ice(t){if(t===void 0||t.type==="custom")return;const e=t;e.minMove!==void 0&&e.precision===void 0&&(e.precision=function(n){if(n>=1)return 0;let o=0;for(;o<8;o++){const i=Math.round(n);if(Math.abs(i-n)<1e-8)return o;n*=10}return o}(e.minMove))}function U_(t){return function(e){if(kf(e.handleScale)){const o=e.handleScale;e.handleScale={axisDoubleClickReset:{time:o,price:o},axisPressedMouseMove:{time:o,price:o},mouseWheel:o,pinch:o}}else if(e.handleScale!==void 0){const{axisPressedMouseMove:o,axisDoubleClickReset:i}=e.handleScale;kf(o)&&(e.handleScale.axisPressedMouseMove={time:o,price:o}),kf(i)&&(e.handleScale.axisDoubleClickReset={time:i,price:i})}const n=e.handleScroll;kf(n)&&(e.handleScroll={horzTouchDrag:n,vertTouchDrag:n,mouseWheel:n,pressedMouseMove:n})}(t),t}class Ece{constructor(e,n,o){this.ew=new Map,this.rw=new Map,this.hw=new ln,this.lw=new ln,this.aw=new ln,this.ow=new mce(n);const i=o===void 0?wr(H_()):$i(wr(H_()),U_(o));this.N_=n,this.$b=new cce(e,i,n),this.$b.Fp().l(s=>{this.hw.M()&&this.hw.m(this._w(s()))},this),this.$b.Wp().l(s=>{this.lw.M()&&this.lw.m(this._w(s()))},this),this.$b.Wc().l(s=>{this.aw.M()&&this.aw.m(this._w(s()))},this);const r=this.$b.qt();this.uw=new Oce(r,this.$b.Zm(),this.N_)}remove(){this.$b.Fp().p(this),this.$b.Wp().p(this),this.$b.Wc().p(this),this.uw.S(),this.$b.S(),this.ew.clear(),this.rw.clear(),this.hw.S(),this.lw.S(),this.aw.S(),this.ow.S()}resize(e,n,o){this.autoSizeActive()||this.$b.qm(e,n,o)}addCustomSeries(e,n){const o=Pl(e),i=Object.assign(Object.assign({},IF),o.defaultOptions());return this.cw("Custom",i,n,o)}addAreaSeries(e){return this.cw("Area",bae,e)}addBaselineSeries(e){return this.cw("Baseline",yae,e)}addBarSeries(e){return this.cw("Bar",gae,e)}addCandlestickSeries(e={}){return function(n){n.borderColor!==void 0&&(n.borderUpColor=n.borderColor,n.borderDownColor=n.borderColor),n.wickColor!==void 0&&(n.wickUpColor=n.wickColor,n.wickDownColor=n.wickColor)}(e),this.cw("Candlestick",mae,e)}addHistogramSeries(e){return this.cw("Histogram",xae,e)}addLineSeries(e){return this.cw("Line",vae,e)}removeSeries(e){const n=io(this.ew.get(e)),o=this.ow.hd(n);this.$b.qt().hd(n),this.dw(o),this.ew.delete(e),this.rw.delete(n)}Gb(e,n){this.dw(this.ow.Ab(e,n))}Qb(e,n){this.dw(this.ow.Eb(e,n))}subscribeClick(e){this.hw.l(e)}unsubscribeClick(e){this.hw.v(e)}subscribeCrosshairMove(e){this.aw.l(e)}unsubscribeCrosshairMove(e){this.aw.v(e)}subscribeDblClick(e){this.lw.l(e)}unsubscribeDblClick(e){this.lw.v(e)}priceScale(e){return new Mce(this.$b,e)}timeScale(){return this.uw}applyOptions(e){this.$b.Nh(U_(e))}options(){return this.$b.W()}takeScreenshot(){return this.$b.tb()}autoSizeActive(){return this.$b.rb()}chartElement(){return this.$b.hb()}paneSize(){const e=this.$b.ab();return{height:e.height,width:e.width}}setCrosshairPosition(e,n,o){const i=this.ew.get(o);if(i===void 0)return;const r=this.$b.qt().cr(i);r!==null&&this.$b.qt().Qc(e,n,r)}clearCrosshairPosition(){this.$b.qt().td(!0)}cw(e,n,o={},i){Ice(o.priceFormat);const r=$i(wr(EF),wr(n),o),s=this.$b.qt().ed(e,r,i),a=new Tce(s,this,this,this,this.N_);return this.ew.set(a,s),this.rw.set(s,a),a}dw(e){const n=this.$b.qt();n.nd(e.yt.Au,e.yt.jb,e.yt.Hb),e.Fb.forEach((o,i)=>i.it(o.He,o.Wb)),n.Iu()}fw(e){return io(this.rw.get(e))}_w(e){const n=new Map;e.Mb.forEach((i,r)=>{const s=r.Xh(),a=ix(s)(i);if(s!=="Custom")Ts(function(l){return l.open!==void 0||l.value!==void 0}(a));else{const l=r.Ma();Ts(!l||l(a)===!1)}n.set(this.fw(r),a)});const o=e.gb===void 0?void 0:this.fw(e.gb);return{time:e.bb,logical:e.se,point:e.wb,hoveredSeries:o,hoveredObjectId:e.xb,seriesData:n,sourceEvent:e.Sb}}}function Dce(t,e,n){let o;if(Th(t)){const r=document.getElementById(t);Ts(r!==null,`Cannot find element in DOM with id=${t}`),o=r}else o=t;const i=new Ece(o,e,n);return e.setOptions(i.options()),i}function $ce(t,e){return Dce(t,new I_,I_.Td(e))}Object.assign(Object.assign({},EF),IF);const Fce=()=>{const[t,e]=x.useState([]),[n,o]=x.useState(!1),[i,r]=x.useState(!1),s=x.useRef(null),a=x.useRef(!1),l=x.useMemo(()=>({layout:{textColor:"black",background:{type:"solid",color:"white"}}}),[]),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null);return x.useEffect(()=>{if(a.current)return;const g=s.current;if(!g)return;(async()=>{var b;try{const v=await fetch("https://sam.superintegratedapp.com/wp-json/api/stock-data/?selector=stock&selection=upper&date_from=2023-01-01",{credentials:"include"});if(!v.ok)throw new Error("Network response was not ok");const y=await v.json();e(y.stock_data);const w=y.stock_data;c.current=$ce(g,l);const C=w.map(P=>({time:P.date,open:+P.open,high:+P.high,low:+P.low,close:+P.close}));c.current.addCandlestickSeries({upColor:"#26a69a",downColor:"#ef5350",borderVisible:!1,wickUpColor:"#26a69a",wickDownColor:"#ef5350"}).setData(C),(b=c.current)==null||b.timeScale().fitContent()}catch(v){console.error("There was a problem with the fetch operation:",v)}})(),a.current=!0},[l]),{chartContainerRef:s,isAreaSeriesChecked:n,handleAreaSeriesChange:async g=>{o(g.target.checked);const m=c.current;if(g.target.checked){const v=t.map(y=>({time:y.date,value:+y.close}));u.current=m.addAreaSeries({lineColor:"#2962FF",topColor:"#2962FF",bottomColor:"rgba(41, 98, 255, 0.28)"}),u.current.setData(v)}else{const b=c.current,v=u.current;v&&b.removeSeries(v)}},isHistogramSeriesChecked:i,handleHistogramSeriesChange:async g=>{r(g.target.checked);const m=c.current;if(g.target.checked){const v=t.map(y=>({time:y.date,value:+y.volume}));d.current=m.addHistogramSeries({color:"#26a69a"}),d.current.setData(v)}else{console.log("uncheck");const b=c.current,v=d.current;v&&b.removeSeries(v)}}}},jce=()=>{const{chartContainerRef:t,isAreaSeriesChecked:e,handleAreaSeriesChange:n,isHistogramSeriesChecked:o,handleHistogramSeriesChange:i}=Fce();return f.jsxs("div",{ref:t,style:{width:"100%",height:"100vh"},children:[f.jsx("input",{type:"checkbox",id:"areaSeries",name:"areaSeries",checked:e,onChange:n}),f.jsx("label",{htmlFor:"areaSeries",children:"Area Series"}),f.jsx("input",{type:"checkbox",id:"histogramSeries",name:"histogramSeries",checked:o,onChange:i}),f.jsx("label",{htmlFor:"histogramSeries",children:"Histogram Series"})]})},Lce=()=>f.jsxs("div",{className:"mx-auto max-w-screen-md",children:[f.jsx("h3",{className:"mb-4 px-1 text-4xl tracking-tight font-extrabold text-center text-gray-900 dark:text-white",children:"Contact Us"}),f.jsx("h2",{className:"mb-4 lg:mb-8 font-light text-center text-gray-500 dark:text-gray-400 sm:text-lg",children:"Got a technical issue? Want to send feedback about a feature? Need details about our future plan? Let us know."}),f.jsxs("form",{action:"#",className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"email",className:"block mb-2 text-md font-medium text-gray-900 dark:text-gray-300",children:"Email"}),f.jsx("input",{type:"email",id:"email",name:"email",className:"shadow-sm bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 dark:shadow-sm-light",placeholder:"name@example.com",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"subject",className:"block mb-2 text-md font-medium text-gray-900 dark:text-gray-300",children:"Subject"}),f.jsx("input",{type:"text",id:"subject",name:"subject",className:"block p-3 w-full text-sm text-gray-900 bg-gray-50 rounded border border-gray-300 shadow-sm focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 dark:shadow-sm-light",placeholder:"Let us know how we can help you",required:!0})]}),f.jsxs("div",{className:"sm:col-span-2",children:[f.jsx("label",{htmlFor:"message",className:"block mb-2 text-md font-medium text-gray-900 dark:text-gray-300",children:"Message"}),f.jsx("textarea",{id:"message",rows:6,name:"message",className:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded shadow-sm border border-gray-300 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500",placeholder:"Leave a comment..."})]}),f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"submit",className:"py-2 px-4 text-sm font-medium rounded sm:w-fit bg-sky-500 dark:bg-sky-700 text-white dark:text-white hover:bg-sky-800 focus:ring-4 focus:outline-none focus:ring-primary-300 dark:focus:ring-primary-800",children:"Send message"})})]})]}),Ace=({label:t,href:e,setActiveNavItem:n})=>f.jsx(Tn,{to:e,className:"hover:underline me-4 md:me-6",onClick:()=>n(t),children:t}),Nce=()=>{const{name:t,logo:e,setActiveNavItem:n}=mn();return f.jsxs("footer",{className:"w-full max-w-screen-xl mx-auto py-3 md:py-4",children:[f.jsx("hr",{className:"my-3 lg:my-4 sm:mx-auto border-gray-300 dark:border-gray-600"}),f.jsxs("div",{className:"sm:flex sm:items-center sm:justify-between",children:[f.jsx("div",{className:"hidden md:block",children:f.jsxs(Tn,{to:"/",onClick:()=>n(""),className:"flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse",children:[f.jsx("img",{src:e,className:"h-12",alt:"HamroNepse Logo"}),f.jsx("span",{className:"self-center text-xl font-semibold whitespace-nowrap",children:t})]})}),f.jsx("div",{className:"w-full md:w-auto flex justify-center",children:f.jsx("ul",{className:"flex flex-wrap items-center mb-3 sm:mb-0 text-md font-medium",children:Pm.map((o,i)=>f.jsx("li",{children:f.jsx(Ace,{href:o.href,label:o.label,setActiveNavItem:n})},i))})})]})]})},zce=()=>{const t=x.useRef(null),[e,n]=x.useState(""),[o,i]=x.useState(f.jsx(f.Fragment,{})),r=50;return{emailRef:t,toastNotification:o,navigationPath:e,maxEmailLength:r,handleOnSubmit:a=>{var u;a.preventDefault();const l=((u=t.current)==null?void 0:u.value)??"";if(l===""){i(f.jsx(qt,{variant:"outlined",severity:"info",icon:!1,onClose:()=>i(f.jsx(f.Fragment,{})),children:"Enter email for password recovery."}));return}if(l.length>r){i(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>i(f.jsx(f.Fragment,{})),children:"Email is too long."}));return}const c=new FormData;c.append("action","send_password_reset_email"),c.append("email",l),fetch(zse,{method:"POST",body:c,credentials:"include"}).then(d=>d.json()).then(d=>{i(f.jsx(qt,{variant:"outlined",severity:d.isEverythingOk?"success":"error",icon:!1,onClose:()=>i(f.jsx(f.Fragment,{})),children:Mn(d.responseMessage)})),d.isEverythingOk&&setTimeout(()=>{n("/login")},1e3)}).catch(d=>{i(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>i(f.jsx(f.Fragment,{})),children:Mn(d.message)}))})}}},Vce=()=>{const t=Fs(),{emailRef:e,toastNotification:n,navigationPath:o,maxEmailLength:i,handleOnSubmit:r}=zce();return x.useEffect(()=>{o!==""&&t(o)},[t,o]),f.jsx("div",{className:"grid mx-auto overflow-hidden rounded-md lg:grid-cols",children:f.jsx("section",{className:"shadow p-12",children:f.jsx("div",{className:"flex flex-col items-center justify-center px-6 py-6 mx-auto lg:h-full lg:py-0",children:f.jsx("div",{className:"w-full bg-white rounded-md shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700",children:f.jsxs("div",{className:"p-6 space-y-4 md:space-y-6 sm:p-8",children:[n,f.jsx("h1",{className:"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white",children:"Reset Password"}),f.jsxs("form",{method:"POST",className:"space-y-4 md:space-y-6",onSubmit:r,children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"email",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Email"}),f.jsx("input",{type:"email",name:"email",id:"email",ref:e,maxLength:i,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"name@company.com",required:!0})]}),f.jsx("button",{className:"w-full text-white bg-sky-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-md text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800",children:"Submit"}),f.jsxs("div",{className:"text-sm font-light text-gray-500 dark:text-gray-400 text-right",children:[f.jsx(Tn,{to:"/login",className:"font-medium text-sky-600 hover:underline dark:text-white",children:"Login"})," / ",f.jsx(Tn,{to:"/signup",className:"font-medium text-sky-600 hover:underline dark:text-white",children:"Sign up"})]})]})]})})})})})},Bce=()=>{const t=x.useRef(null),e=x.useRef(null),n=x.useRef(null),[o,i]=x.useState(""),[r,s]=x.useState(f.jsx(f.Fragment,{})),{fetchUserData:a,userData:l}=mn();return{userData:l,emailRef:t,passwordRef:e,keepLoggedInRef:n,toastNotification:r,navigationPath:o,minLength:8,maxEmailLength:50,maxPasswordLength:16,handleOnSubmit:p=>{var y,w,C;p.preventDefault();const g=((y=t.current)==null?void 0:y.value)??"",m=((w=e.current)==null?void 0:w.value)??"",b=(C=n.current)!=null&&C.checked?"true":"false",v=new FormData;v.append("email",g),v.append("password",m),v.append("remember",b),fetch(Fse,{method:"POST",body:v,credentials:"include"}).then(k=>k.json()).then(k=>{s(f.jsx(qt,{variant:"outlined",severity:k.isEverythingOk?"success":"error",icon:!1,onClose:()=>s(f.jsx(f.Fragment,{})),children:Mn(k.responseMessage)})),k.isEverythingOk&&(a(),setTimeout(()=>{i("/")},1e3))}).catch(k=>{s(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>s(f.jsx(f.Fragment,{})),children:Mn(k.message)}))})}}},zc=({message:t,displayHomeBtn:e,displayLoginBtn:n})=>f.jsxs("div",{className:"bg-gray-200 dark:bg-gray-800 p-8 rounded-md shadow-md text-center",children:[f.jsx("p",{className:"text-gray-800 dark:text-gray-400",children:t}),f.jsx("div",{className:"w-full text-sm flex justify-center mt-4",children:f.jsxs("span",{children:[e&&f.jsx(Tn,{to:"/",className:"me-3 rounded text-white bg-sky-400 dark:bg-sky-600 p-2",children:"Home"}),n&&f.jsx(Tn,{to:"/login",className:"me-3 rounded text-white bg-sky-400 dark:bg-sky-600 p-2",children:"Login"})]})})]}),Hce=()=>{const t=Fs(),{emailRef:e,passwordRef:n,keepLoggedInRef:o,toastNotification:i,navigationPath:r,minLength:s,maxEmailLength:a,maxPasswordLength:l,userData:c,handleOnSubmit:u}=Bce();return x.useEffect(()=>{r!==""&&t(r)},[t,r]),c.isLoggedIn?f.jsx(zc,{message:`User already logged in: ${c.name}`,displayHomeBtn:!0,displayLoginBtn:!1}):f.jsx("div",{className:"grid mx-auto overflow-hidden rounded-md lg:grid-cols",children:f.jsx("section",{className:"shadow py-12",children:f.jsx("div",{className:"flex flex-col items-center justify-center py-6 mx-auto lg:h-full lg:py-0",children:f.jsx("div",{className:"w-full bg-white rounded-md shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700",children:f.jsxs("div",{className:"p-6 space-y-4 md:space-y-6 sm:p-8",children:[i,f.jsx("h1",{className:"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white",children:"Log in to your account"}),f.jsxs("form",{method:"POST",className:"space-y-4 md:space-y-6",onSubmit:u,children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"email",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Email"}),f.jsx("input",{type:"email",name:"email",id:"email",ref:e,maxLength:a,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"name@example.com",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"password",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Password"}),f.jsx("input",{type:"password",name:"password",id:"password",placeholder:"••••••••",ref:n,minLength:s,maxLength:l,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",required:!0})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-start",children:[f.jsx("div",{className:"flex items-center h-5",children:f.jsx("input",{id:"remember","aria-describedby":"remember",ref:o,type:"checkbox",className:"w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-primary-600 dark:ring-offset-gray-800"})}),f.jsx("div",{className:"ml-3 text-sm",children:f.jsx("label",{htmlFor:"remember",className:"text-gray-500 dark:text-gray-300",children:"Remember me"})})]}),f.jsx(Tn,{to:"/forgot-password",className:"text-sm font-medium text-primary-600 hover:underline dark:text-white",children:"Forgot password?"})]}),f.jsx("button",{type:"submit",className:"w-full text-white bg-sky-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-md text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800",children:"Log in"}),f.jsxs("p",{className:"text-sm font-light text-gray-500 dark:text-gray-400",children:["Dont have an account yet?"," ",f.jsx(Tn,{to:"/signup",className:"font-medium text-sky-600 hover:underline dark:text-white",children:"Sign up"})]})]})]})})})})})};function ja(t){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(t)}function Wce(t,e){if(ja(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(ja(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nj(t){var e=Wce(t,"string");return ja(e)=="symbol"?e:String(e)}function Cu(t,e,n){return e=nj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Ge(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,o=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var Kce=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Yce(t){var e=t.defaultInputValue,n=e===void 0?"":e,o=t.defaultMenuIsOpen,i=o===void 0?!1:o,r=t.defaultValue,s=r===void 0?null:r,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,d=t.onMenuClose,h=t.onMenuOpen,p=t.value,g=Fr(t,Kce),m=x.useState(a!==void 0?a:n),b=Pr(m,2),v=b[0],y=b[1],w=x.useState(l!==void 0?l:i),C=Pr(w,2),k=C[0],P=C[1],M=x.useState(p!==void 0?p:s),_=Pr(M,2),R=_[0],O=_[1],I=x.useCallback(function(A,L){typeof c=="function"&&c(A,L),O(A)},[c]),$=x.useCallback(function(A,L){var V;typeof u=="function"&&(V=u(A,L)),y(V!==void 0?V:A)},[u]),F=x.useCallback(function(){typeof h=="function"&&h(),P(!0)},[h]),E=x.useCallback(function(){typeof d=="function"&&d(),P(!1)},[d]),D=a!==void 0?a:v,j=l!==void 0?l:k,N=p!==void 0?p:R;return Ge(Ge({},g),{},{inputValue:D,menuIsOpen:j,onChange:I,onInputChange:$,onMenuClose:E,onMenuOpen:F,value:N})}function Qce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G_(t,e){for(var n=0;n2?n-2:0),i=2;i-1}function lue(t){return Cv(t)?window.innerHeight:t.clientHeight}function sj(t){return Cv(t)?window.pageYOffset:t.scrollTop}function Im(t,e){if(Cv(t)){window.scrollTo(0,e);return}t.scrollTop=e}function cue(t){var e=getComputedStyle(t),n=e.position==="absolute",o=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&o.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function uue(t,e,n,o){return n*((t=t/o-1)*t*t+1)+e}function $f(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Om,i=sj(t),r=e-i,s=10,a=0;function l(){a+=s;var c=uue(a,i,r,n);Im(t,c),an.bottom?Im(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i1?n-1:0),i=1;i=g)return{placement:"bottom",maxHeight:e};if(R>=g&&!s)return r&&$f(l,O,$),{placement:"bottom",maxHeight:e};if(!s&&R>=o||s&&M>=o){r&&$f(l,O,$);var F=s?M-C:R-C;return{placement:"bottom",maxHeight:F}}if(i==="auto"||s){var E=e,D=s?P:_;return D>=o&&(E=Math.min(D-C-a,e)),{placement:"top",maxHeight:E}}if(i==="bottom")return r&&Im(l,O),{placement:"bottom",maxHeight:e};break;case"top":if(P>=g)return{placement:"top",maxHeight:e};if(_>=g&&!s)return r&&$f(l,I,$),{placement:"top",maxHeight:e};if(!s&&_>=o||s&&P>=o){var j=e;return(!s&&_>=o||s&&P>=o)&&(j=s?P-k:_-k),r&&$f(l,I,$),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function wue(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var lj=function(e){return e==="auto"?"bottom":e},Cue=function(e,n){var o,i=e.placement,r=e.theme,s=r.borderRadius,a=r.spacing,l=r.colors;return Ge((o={label:"menu"},Cu(o,wue(i),"100%"),Cu(o,"position","absolute"),Cu(o,"width","100%"),Cu(o,"zIndex",1),o),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},cj=x.createContext(null),Sue=function(e){var n=e.children,o=e.minMenuHeight,i=e.maxMenuHeight,r=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,c=x.useContext(cj)||{},u=c.setPortalPlacement,d=x.useRef(null),h=x.useState(i),p=Pr(h,2),g=p[0],m=p[1],b=x.useState(null),v=Pr(b,2),y=v[0],w=v[1],C=l.spacing.controlHeight;return sx(function(){var k=d.current;if(k){var P=s==="fixed",M=a&&!P,_=xue({maxHeight:i,menuEl:k,minHeight:o,placement:r,shouldScroll:M,isFixedPosition:P,controlHeight:C});m(_.maxHeight),w(_.placement),u==null||u(_.placement)}},[i,r,s,a,o,u,C]),n({ref:d,placerProps:Ge(Ge({},e),{},{placement:y||lj(r),maxHeight:g})})},kue=function(e){var n=e.children,o=e.innerRef,i=e.innerProps;return qe("div",S({},tn(e,"menu",{menu:!0}),{ref:o},i),n)},Pue=kue,Mue=function(e,n){var o=e.maxHeight,i=e.theme.spacing.baseUnit;return Ge({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},_ue=function(e){var n=e.children,o=e.innerProps,i=e.innerRef,r=e.isMulti;return qe("div",S({},tn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:i},o),n)},uj=function(e,n){var o=e.theme,i=o.spacing.baseUnit,r=o.colors;return Ge({textAlign:"center"},n?{}:{color:r.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Rue=uj,Tue=uj,Oue=function(e){var n=e.children,o=n===void 0?"No options":n,i=e.innerProps,r=Fr(e,bue);return qe("div",S({},tn(Ge(Ge({},r),{},{children:o,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),o)},Iue=function(e){var n=e.children,o=n===void 0?"Loading...":n,i=e.innerProps,r=Fr(e,yue);return qe("div",S({},tn(Ge(Ge({},r),{},{children:o,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),o)},Eue=function(e){var n=e.rect,o=e.offset,i=e.position;return{left:n.left,position:i,top:o,width:n.width,zIndex:1}},Due=function(e){var n=e.appendTo,o=e.children,i=e.controlElement,r=e.innerProps,s=e.menuPlacement,a=e.menuPosition,l=x.useRef(null),c=x.useRef(null),u=x.useState(lj(s)),d=Pr(u,2),h=d[0],p=d[1],g=x.useMemo(function(){return{setPortalPlacement:p}},[]),m=x.useState(null),b=Pr(m,2),v=b[0],y=b[1],w=x.useCallback(function(){if(i){var M=due(i),_=a==="fixed"?0:window.pageYOffset,R=M[h]+_;(R!==(v==null?void 0:v.offset)||M.left!==(v==null?void 0:v.rect.left)||M.width!==(v==null?void 0:v.rect.width))&&y({offset:R,rect:M})}},[i,a,h,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);sx(function(){w()},[w]);var C=x.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),i&&l.current&&(c.current=VU(i,l.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);sx(function(){C()},[C]);var k=x.useCallback(function(M){l.current=M,C()},[C]);if(!n&&a!=="fixed"||!v)return null;var P=qe("div",S({ref:k},tn(Ge(Ge({},e),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),r),o);return qe(cj.Provider,{value:g},n?Ic.createPortal(P,n):P)},$ue=function(e){var n=e.isDisabled,o=e.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Fue=function(e){var n=e.children,o=e.innerProps,i=e.isDisabled,r=e.isRtl;return qe("div",S({},tn(e,"container",{"--is-disabled":i,"--is-rtl":r}),o),n)},jue=function(e,n){var o=e.theme.spacing,i=e.isMulti,r=e.hasValue,s=e.selectProps.controlShouldRenderValue;return Ge({alignItems:"center",display:i&&r&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},Lue=function(e){var n=e.children,o=e.innerProps,i=e.isMulti,r=e.hasValue;return qe("div",S({},tn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":r}),o),n)},Aue=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Nue=function(e){var n=e.children,o=e.innerProps;return qe("div",S({},tn(e,"indicatorsContainer",{indicators:!0}),o),n)},X_,zue=["size"],Vue=["innerProps","isRtl","size"],Bue={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},dj=function(e){var n=e.size,o=Fr(e,zue);return qe("svg",S({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Bue},o))},$C=function(e){return qe(dj,S({size:20},e),qe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hj=function(e){return qe(dj,S({size:20},e),qe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},fj=function(e,n){var o=e.isFocused,i=e.theme,r=i.spacing.baseUnit,s=i.colors;return Ge({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:o?s.neutral60:s.neutral20,padding:r*2,":hover":{color:o?s.neutral80:s.neutral40}})},Hue=fj,Wue=function(e){var n=e.children,o=e.innerProps;return qe("div",S({},tn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),n||qe(hj,null))},Uue=fj,que=function(e){var n=e.children,o=e.innerProps;return qe("div",S({},tn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),n||qe($C,null))},Gue=function(e,n){var o=e.isDisabled,i=e.theme,r=i.spacing.baseUnit,s=i.colors;return Ge({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:o?s.neutral10:s.neutral20,marginBottom:r*2,marginTop:r*2})},Kue=function(e){var n=e.innerProps;return qe("span",S({},n,tn(e,"indicatorSeparator",{"indicator-separator":!0})))},Yue=Fi(X_||(X_=iue([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),Que=function(e,n){var o=e.isFocused,i=e.size,r=e.theme,s=r.colors,a=r.spacing.baseUnit;return Ge({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:o?s.neutral60:s.neutral20,padding:a*2})},ib=function(e){var n=e.delay,o=e.offset;return qe("span",{css:rr({animation:"".concat(Yue," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Xue=function(e){var n=e.innerProps,o=e.isRtl,i=e.size,r=i===void 0?4:i,s=Fr(e,Vue);return qe("div",S({},tn(Ge(Ge({},s),{},{innerProps:n,isRtl:o,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),qe(ib,{delay:0,offset:o}),qe(ib,{delay:160,offset:!0}),qe(ib,{delay:320,offset:!o}))},Jue=function(e,n){var o=e.isDisabled,i=e.isFocused,r=e.theme,s=r.colors,a=r.borderRadius,l=r.spacing;return Ge({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:o?s.neutral5:s.neutral0,borderColor:o?s.neutral10:i?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},Zue=function(e){var n=e.children,o=e.isDisabled,i=e.isFocused,r=e.innerRef,s=e.innerProps,a=e.menuIsOpen;return qe("div",S({ref:r},tn(e,"control",{control:!0,"control--is-disabled":o,"control--is-focused":i,"control--menu-is-open":a}),s,{"aria-disabled":o||void 0}),n)},ede=Zue,tde=["data"],nde=function(e,n){var o=e.theme.spacing;return n?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},ode=function(e){var n=e.children,o=e.cx,i=e.getStyles,r=e.getClassNames,s=e.Heading,a=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return qe("div",S({},tn(e,"group",{group:!0}),l),qe(s,S({},a,{selectProps:d,theme:u,getStyles:i,getClassNames:r,cx:o}),c),qe("div",null,n))},ide=function(e,n){var o=e.theme,i=o.colors,r=o.spacing;return Ge({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:r.baseUnit*3,paddingRight:r.baseUnit*3,textTransform:"uppercase"})},rde=function(e){var n=rj(e);n.data;var o=Fr(n,tde);return qe("div",S({},tn(e,"groupHeading",{"group-heading":!0}),o))},sde=ode,ade=["innerRef","isDisabled","isHidden","inputClassName"],lde=function(e,n){var o=e.isDisabled,i=e.value,r=e.theme,s=r.spacing,a=r.colors;return Ge(Ge({visibility:o?"hidden":"visible",transform:i?"translateZ(0)":""},cde),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},pj={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},cde={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ge({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},pj)},ude=function(e){return Ge({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},pj)},dde=function(e){var n=e.cx,o=e.value,i=rj(e),r=i.innerRef,s=i.isDisabled,a=i.isHidden,l=i.inputClassName,c=Fr(i,ade);return qe("div",S({},tn(e,"input",{"input-container":!0}),{"data-value":o||""}),qe("input",S({className:n({input:!0},l),ref:r,style:ude(a),disabled:s},c)))},hde=dde,fde=function(e,n){var o=e.theme,i=o.spacing,r=o.borderRadius,s=o.colors;return Ge({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:r/2,margin:i.baseUnit/2})},pde=function(e,n){var o=e.theme,i=o.borderRadius,r=o.colors,s=e.cropWithEllipsis;return Ge({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},mde=function(e,n){var o=e.theme,i=o.spacing,r=o.borderRadius,s=o.colors,a=e.isFocused;return Ge({alignItems:"center",display:"flex"},n?{}:{borderRadius:r/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},mj=function(e){var n=e.children,o=e.innerProps;return qe("div",o,n)},gde=mj,vde=mj;function bde(t){var e=t.children,n=t.innerProps;return qe("div",S({role:"button"},n),e||qe($C,{size:14}))}var yde=function(e){var n=e.children,o=e.components,i=e.data,r=e.innerProps,s=e.isDisabled,a=e.removeProps,l=e.selectProps,c=o.Container,u=o.Label,d=o.Remove;return qe(c,{data:i,innerProps:Ge(Ge({},tn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),r),selectProps:l},qe(u,{data:i,innerProps:Ge({},tn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),qe(d,{data:i,innerProps:Ge(Ge({},tn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},xde=yde,wde=function(e,n){var o=e.isDisabled,i=e.isFocused,r=e.isSelected,s=e.theme,a=s.spacing,l=s.colors;return Ge({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:r?l.primary:i?l.primary25:"transparent",color:o?l.neutral20:r?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:r?l.primary:l.primary50}})},Cde=function(e){var n=e.children,o=e.isDisabled,i=e.isFocused,r=e.isSelected,s=e.innerRef,a=e.innerProps;return qe("div",S({},tn(e,"option",{option:!0,"option--is-disabled":o,"option--is-focused":i,"option--is-selected":r}),{ref:s,"aria-disabled":o},a),n)},Sde=Cde,kde=function(e,n){var o=e.theme,i=o.spacing,r=o.colors;return Ge({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:r.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Pde=function(e){var n=e.children,o=e.innerProps;return qe("div",S({},tn(e,"placeholder",{placeholder:!0}),o),n)},Mde=Pde,_de=function(e,n){var o=e.isDisabled,i=e.theme,r=i.spacing,s=i.colors;return Ge({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:o?s.neutral40:s.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},Rde=function(e){var n=e.children,o=e.isDisabled,i=e.innerProps;return qe("div",S({},tn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),i),n)},Tde=Rde,Ode={ClearIndicator:que,Control:ede,DropdownIndicator:Wue,DownChevron:hj,CrossIcon:$C,Group:sde,GroupHeading:rde,IndicatorsContainer:Nue,IndicatorSeparator:Kue,Input:hde,LoadingIndicator:Xue,Menu:Pue,MenuList:_ue,MenuPortal:Due,LoadingMessage:Iue,NoOptionsMessage:Oue,MultiValue:xde,MultiValueContainer:gde,MultiValueLabel:vde,MultiValueRemove:bde,Option:Sde,Placeholder:Mde,SelectContainer:Fue,SingleValue:Tde,ValueContainer:Lue},Ide=function(e){return Ge(Ge({},Ode),e.components)},J_=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Ede(t,e){return!!(t===e||J_(t)&&J_(e))}function Dde(t,e){if(t.length!==e.length)return!1;for(var n=0;n1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,o=e.focused,i=e.options,r=e.label,s=r===void 0?"":r,a=e.selectValue,l=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,d=function(m,b){return m&&m.length?"".concat(m.indexOf(b)+1," of ").concat(m.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(d(a,o),".");if(n==="menu"&&u){var h=l?" disabled":"",p="".concat(c?" selected":"").concat(h);return"".concat(s).concat(p,", ").concat(d(i,o),".")}return""},onFilter:function(e){var n=e.inputValue,o=e.resultsMessage;return"".concat(o).concat(n?" for search term "+n:"",".")}},Ade=function(e){var n=e.ariaSelection,o=e.focusedOption,i=e.focusedValue,r=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,g=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,v=l.menuIsOpen,y=l.options,w=l.screenReaderStatus,C=l.tabSelectsValue,k=l.isLoading,P=l["aria-label"],M=l["aria-live"],_=x.useMemo(function(){return Ge(Ge({},Lde),d||{})},[d]),R=x.useMemo(function(){var D="";if(n&&_.onChange){var j=n.option,N=n.options,A=n.removedValue,L=n.removedValues,V=n.value,W=function(J){return Array.isArray(J)?null:J},Y=A||j||W(V),se=Y?h(Y):"",B=N||L||void 0,U=B?B.map(h):[],z=Ge({isDisabled:Y&&m(Y,a),label:se,labels:U},n);D=_.onChange(z)}return D},[n,_,m,a,h]),O=x.useMemo(function(){var D="",j=o||i,N=!!(o&&a&&a.includes(o));if(j&&_.onFocus){var A={focused:j,label:h(j),isDisabled:m(j,a),isSelected:N,options:r,context:j===o?"menu":"value",selectValue:a,isAppleDevice:u};D=_.onFocus(A)}return D},[o,i,h,m,_,r,a,u]),I=x.useMemo(function(){var D="";if(v&&y.length&&!k&&_.onFilter){var j=w({count:r.length});D=_.onFilter({inputValue:p,resultsMessage:j})}return D},[r,p,v,_,y,w,k]),$=(n==null?void 0:n.action)==="initial-input-focus",F=x.useMemo(function(){var D="";if(_.guidance){var j=i?"value":v?"menu":"input";D=_.guidance({"aria-label":P,context:j,isDisabled:o&&m(o,a),isMulti:g,isSearchable:b,tabSelectsValue:C,isInitialFocus:$})}return D},[P,o,i,g,m,b,v,_,a,C,$]),E=qe(x.Fragment,null,qe("span",{id:"aria-selection"},R),qe("span",{id:"aria-focused"},O),qe("span",{id:"aria-results"},I),qe("span",{id:"aria-guidance"},F));return qe(x.Fragment,null,qe(Z_,{id:c},$&&E),qe(Z_,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!$&&E))},Nde=Ade,ax=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],zde=new RegExp("["+ax.map(function(t){return t.letters}).join("")+"]","g"),gj={};for(var rb=0;rb-1}},Wde=["innerRef"];function Ude(t){var e=t.innerRef,n=Fr(t,Wde),o=vue(n,"onExited","in","enter","exit","appear");return qe("input",S({ref:e},o,{css:rr({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var qde=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Gde(t){var e=t.isEnabled,n=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,r=t.onTopLeave,s=x.useRef(!1),a=x.useRef(!1),l=x.useRef(0),c=x.useRef(null),u=x.useCallback(function(b,v){if(c.current!==null){var y=c.current,w=y.scrollTop,C=y.scrollHeight,k=y.clientHeight,P=c.current,M=v>0,_=C-k-w,R=!1;_>v&&s.current&&(o&&o(b),s.current=!1),M&&a.current&&(r&&r(b),a.current=!1),M&&v>_?(n&&!s.current&&n(b),P.scrollTop=C,R=!0,s.current=!0):!M&&-v>w&&(i&&!a.current&&i(b),P.scrollTop=0,R=!0,a.current=!0),R&&qde(b)}},[n,o,i,r]),d=x.useCallback(function(b){u(b,b.deltaY)},[u]),h=x.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),p=x.useCallback(function(b){var v=l.current-b.changedTouches[0].clientY;u(b,v)},[u]),g=x.useCallback(function(b){if(b){var v=pue?{passive:!1}:!1;b.addEventListener("wheel",d,v),b.addEventListener("touchstart",h,v),b.addEventListener("touchmove",p,v)}},[p,h,d]),m=x.useCallback(function(b){b&&(b.removeEventListener("wheel",d,!1),b.removeEventListener("touchstart",h,!1),b.removeEventListener("touchmove",p,!1))},[p,h,d]);return x.useEffect(function(){if(e){var b=c.current;return g(b),function(){m(b)}}},[e,g,m]),function(b){c.current=b}}var tR=["boxSizing","height","overflow","paddingRight","position"],nR={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function oR(t){t.preventDefault()}function iR(t){t.stopPropagation()}function rR(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function sR(){return"ontouchstart"in window||navigator.maxTouchPoints}var aR=!!(typeof window<"u"&&window.document&&window.document.createElement),su=0,al={capture:!1,passive:!1};function Kde(t){var e=t.isEnabled,n=t.accountForScrollbars,o=n===void 0?!0:n,i=x.useRef({}),r=x.useRef(null),s=x.useCallback(function(l){if(aR){var c=document.body,u=c&&c.style;if(o&&tR.forEach(function(g){var m=u&&u[g];i.current[g]=m}),o&&su<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,p=window.innerWidth-h+d||0;Object.keys(nR).forEach(function(g){var m=nR[g];u&&(u[g]=m)}),u&&(u.paddingRight="".concat(p,"px"))}c&&sR()&&(c.addEventListener("touchmove",oR,al),l&&(l.addEventListener("touchstart",rR,al),l.addEventListener("touchmove",iR,al))),su+=1}},[o]),a=x.useCallback(function(l){if(aR){var c=document.body,u=c&&c.style;su=Math.max(su-1,0),o&&su<1&&tR.forEach(function(d){var h=i.current[d];u&&(u[d]=h)}),c&&sR()&&(c.removeEventListener("touchmove",oR,al),l&&(l.removeEventListener("touchstart",rR,al),l.removeEventListener("touchmove",iR,al)))}},[o]);return x.useEffect(function(){if(e){var l=r.current;return s(l),function(){a(l)}}},[e,s,a]),function(l){r.current=l}}var Yde=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Qde={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Xde(t){var e=t.children,n=t.lockEnabled,o=t.captureEnabled,i=o===void 0?!0:o,r=t.onBottomArrive,s=t.onBottomLeave,a=t.onTopArrive,l=t.onTopLeave,c=Gde({isEnabled:i,onBottomArrive:r,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),u=Kde({isEnabled:n}),d=function(p){c(p),u(p)};return qe(x.Fragment,null,n&&qe("div",{onClick:Yde,css:Qde}),e(d))}var Jde={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Zde=function(e){var n=e.name,o=e.onFocus;return qe("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:Jde,value:"",onChange:function(){}})},ehe=Zde;function FC(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function the(){return FC(/^iPhone/i)}function bj(){return FC(/^Mac/i)}function nhe(){return FC(/^iPad/i)||bj()&&navigator.maxTouchPoints>1}function ohe(){return the()||nhe()}function ihe(){return bj()||ohe()}var rhe=function(e){return e.label},she=function(e){return e.label},ahe=function(e){return e.value},lhe=function(e){return!!e.isDisabled},che={clearIndicator:Uue,container:$ue,control:Jue,dropdownIndicator:Hue,group:nde,groupHeading:ide,indicatorsContainer:Aue,indicatorSeparator:Gue,input:lde,loadingIndicator:Que,loadingMessage:Tue,menu:Cue,menuList:Mue,menuPortal:Eue,multiValue:fde,multiValueLabel:pde,multiValueRemove:mde,noOptionsMessage:Rue,option:wde,placeholder:kde,singleValue:_de,valueContainer:jue},uhe={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},dhe=4,yj=4,hhe=38,fhe=yj*2,phe={baseUnit:yj,controlHeight:hhe,menuGutter:fhe},lb={borderRadius:dhe,colors:uhe,spacing:phe},mhe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Q_(),captureMenuScroll:!Q_(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Hde(),formatGroupLabel:rhe,getOptionLabel:she,getOptionValue:ahe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:lhe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!hue(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function lR(t,e,n,o){var i=Cj(t,e,n),r=Sj(t,e,n),s=wj(t,e),a=Em(t,e);return{type:"option",data:e,isDisabled:i,isSelected:r,label:s,value:a,index:o}}function Cp(t,e){return t.options.map(function(n,o){if("options"in n){var i=n.options.map(function(s,a){return lR(t,s,e,a)}).filter(function(s){return uR(t,s)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=lR(t,n,e,o);return uR(t,r)?r:void 0}).filter(mue)}function xj(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,DC(n.options.map(function(o){return o.data}))):e.push(n.data),e},[])}function cR(t,e){return t.reduce(function(n,o){return o.type==="group"?n.push.apply(n,DC(o.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(o.index,"-").concat(i.index)}}))):n.push({data:o.data,id:"".concat(e,"-").concat(o.index)}),n},[])}function ghe(t,e){return xj(Cp(t,e))}function uR(t,e){var n=t.inputValue,o=n===void 0?"":n,i=e.data,r=e.isSelected,s=e.label,a=e.value;return(!Pj(t)||!r)&&kj(t,{label:s,value:a,data:i},o)}function vhe(t,e){var n=t.focusedValue,o=t.selectValue,i=o.indexOf(n);if(i>-1){var r=e.indexOf(n);if(r>-1)return n;if(i-1?n:e[0]}var cb=function(e,n){var o,i=(o=e.find(function(r){return r.data===n}))===null||o===void 0?void 0:o.id;return i||null},wj=function(e,n){return e.getOptionLabel(n)},Em=function(e,n){return e.getOptionValue(n)};function Cj(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function Sj(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var o=Em(t,e);return n.some(function(i){return Em(t,i)===o})}function kj(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var Pj=function(e){var n=e.hideSelectedOptions,o=e.isMulti;return n===void 0?o:n},yhe=1,Mj=function(t){Jce(n,t);var e=eue(n);function n(o){var i;if(Qce(this,n),i=e.call(this,o),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=ihe(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,c){var u=i.props,d=u.onChange,h=u.name;c.name=h,i.ariaOnChange(l,c),d(l,c)},i.setValue=function(l,c,u){var d=i.props,h=d.closeMenuOnSelect,p=d.isMulti,g=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:g}),h&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:c,option:u})},i.selectOption=function(l){var c=i.props,u=c.blurInputOnSelect,d=c.isMulti,h=c.name,p=i.state.selectValue,g=d&&i.isOptionSelected(l,p),m=i.isOptionDisabled(l,p);if(g){var b=i.getOptionValue(l);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==b}),"deselect-option",l)}else if(!m)d?i.setValue([].concat(DC(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:h});return}u&&i.blurInput()},i.removeValue=function(l){var c=i.props.isMulti,u=i.state.selectValue,d=i.getOptionValue(l),h=u.filter(function(g){return i.getOptionValue(g)!==d}),p=jf(c,h,h[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(jf(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,c=i.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),h=jf(l,d,d[0]||null);i.onChange(h,{action:"pop-value",removedValue:u})},i.getFocusedOptionId=function(l){return cb(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return cR(Cp(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;up||h>p}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var c=i.props.inputValue,u=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:c}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var c=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:c}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var c=i.getFocusableOptions(),u=c.indexOf(l);i.setState({focusedOption:l,focusedOptionId:u>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return Pj(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var c=i.props,u=c.isMulti,d=c.backspaceRemovesValue,h=c.escapeClearsValue,p=c.inputValue,g=c.isClearable,m=c.isDisabled,b=c.menuIsOpen,v=c.onKeyDown,y=c.tabSelectsValue,w=c.openMenuOnFocus,C=i.state,k=C.focusedOption,P=C.focusedValue,M=C.selectValue;if(!m&&!(typeof v=="function"&&(v(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;i.focusValue("previous");break;case"ArrowRight":if(!u||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(P)i.removeValue(P);else{if(!d)return;u?i.popValue():g&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!b||!y||!k||w&&i.isOptionSelected(k,M))return;i.selectOption(k);break;case"Enter":if(l.keyCode===229)break;if(b){if(!k||i.isComposing)return;i.selectOption(k);break}return;case"Escape":b?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):g&&h&&i.clearValue();break;case" ":if(p)return;if(!b){i.openMenu("first");break}if(!k)return;i.selectOption(k);break;case"ArrowUp":b?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":b?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!b)return;i.focusOption("pageup");break;case"PageDown":if(!b)return;i.focusOption("pagedown");break;case"Home":if(!b)return;i.focusOption("first");break;case"End":if(!b)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++yhe),i.state.selectValue=K_(o.value),o.menuIsOpen&&i.state.selectValue.length){var r=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),a=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=r,i.state.focusedOption=s[a],i.state.focusedOptionId=cb(r,s[a])}return i}return Xce(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Y_(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var r=this.props,s=r.isDisabled,a=r.menuIsOpen,l=this.state.isFocused;(l&&!s&&i.isDisabled||l&&a&&!i.menuIsOpen)&&this.focusInput(),l&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Y_(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,r){this.props.onInputChange(i,r)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var r=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=i==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(a[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return r.onMenuOpen()})}},{key:"focusValue",value:function(i){var r=this.state,s=r.selectValue,a=r.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(i){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",r=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),i==="up"?l=c>0?c-1:a.length-1:i==="down"?l=(c+1)%a.length:i==="pageup"?(l=c-r,l<0&&(l=0)):i==="pagedown"?(l=c+r,l>a.length-1&&(l=a.length-1)):i==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(lb):Ge(Ge({},lb),this.props.theme):lb}},{key:"getCommonProps",value:function(){var i=this.clearValue,r=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,h=d.isMulti,p=d.isRtl,g=d.options,m=this.hasValue();return{clearValue:i,cx:r,getStyles:s,getClassNames:a,getValue:l,hasValue:m,isMulti:h,isRtl:p,options:g,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,r=i.isClearable,s=i.isMulti;return r===void 0?s:r}},{key:"isOptionDisabled",value:function(i,r){return Cj(this.props,i,r)}},{key:"isOptionSelected",value:function(i,r){return Sj(this.props,i,r)}},{key:"filterOption",value:function(i,r){return kj(this.props,i,r)}},{key:"formatOptionLabel",value:function(i,r){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(i,{context:r,inputValue:s,selectValue:a})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,r=i.isDisabled,s=i.isSearchable,a=i.inputId,l=i.inputValue,c=i.tabIndex,u=i.form,d=i.menuIsOpen,h=i.required,p=this.getComponents(),g=p.Input,m=this.state,b=m.inputIsHidden,v=m.ariaSelection,y=this.commonProps,w=a||this.getElementId("input"),C=Ge(Ge(Ge({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?x.createElement(g,S({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:r,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},C)):x.createElement(Ude,S({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Om,onFocus:this.onInputFocus,disabled:r,tabIndex:c,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,r=this.getComponents(),s=r.MultiValue,a=r.MultiValueContainer,l=r.MultiValueLabel,c=r.MultiValueRemove,u=r.SingleValue,d=r.Placeholder,h=this.commonProps,p=this.props,g=p.controlShouldRenderValue,m=p.isDisabled,b=p.isMulti,v=p.inputValue,y=p.placeholder,w=this.state,C=w.selectValue,k=w.focusedValue,P=w.isFocused;if(!this.hasValue()||!g)return v?null:x.createElement(d,S({},h,{key:"placeholder",isDisabled:m,isFocused:P,innerProps:{id:this.getElementId("placeholder")}}),y);if(b)return C.map(function(_,R){var O=_===k,I="".concat(i.getOptionLabel(_),"-").concat(i.getOptionValue(_));return x.createElement(s,S({},h,{components:{Container:a,Label:l,Remove:c},isFocused:O,isDisabled:m,key:I,index:R,removeProps:{onClick:function(){return i.removeValue(_)},onTouchEnd:function(){return i.removeValue(_)},onMouseDown:function(F){F.preventDefault()}},data:_}),i.formatOptionLabel(_,"value"))});if(v)return null;var M=C[0];return x.createElement(u,S({},h,{data:M,isDisabled:m}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),r=i.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!r||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(r,S({},s,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),r=i.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!r||!c)return null;var d={"aria-hidden":"true"};return x.createElement(r,S({},s,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),r=i.DropdownIndicator,s=i.IndicatorSeparator;if(!r||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return x.createElement(s,S({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),r=i.DropdownIndicator;if(!r)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return x.createElement(r,S({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,r=this.getComponents(),s=r.Group,a=r.GroupHeading,l=r.Menu,c=r.MenuList,u=r.MenuPortal,d=r.LoadingMessage,h=r.NoOptionsMessage,p=r.Option,g=this.commonProps,m=this.state.focusedOption,b=this.props,v=b.captureMenuScroll,y=b.inputValue,w=b.isLoading,C=b.loadingMessage,k=b.minMenuHeight,P=b.maxMenuHeight,M=b.menuIsOpen,_=b.menuPlacement,R=b.menuPosition,O=b.menuPortalTarget,I=b.menuShouldBlockScroll,$=b.menuShouldScrollIntoView,F=b.noOptionsMessage,E=b.onMenuScrollToTop,D=b.onMenuScrollToBottom;if(!M)return null;var j=function(se,B){var U=se.type,z=se.data,Q=se.isDisabled,J=se.isSelected,ee=se.label,ie=se.value,ne=m===z,oe=Q?void 0:function(){return i.onOptionHover(z)},H=Q?void 0:function(){return i.selectOption(z)},ue="".concat(i.getElementId("option"),"-").concat(B),he={id:ue,onClick:H,onMouseMove:oe,onMouseOver:oe,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:J};return x.createElement(p,S({},g,{innerProps:he,data:z,isDisabled:Q,isSelected:J,key:ue,label:ee,type:U,value:ie,isFocused:ne,innerRef:ne?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(se.data,"menu"))},N;if(this.hasOptions())N=this.getCategorizedOptions().map(function(Y){if(Y.type==="group"){var se=Y.data,B=Y.options,U=Y.index,z="".concat(i.getElementId("group"),"-").concat(U),Q="".concat(z,"-heading");return x.createElement(s,S({},g,{key:z,data:se,options:B,Heading:a,headingProps:{id:Q,data:Y.data},label:i.formatGroupLabel(Y.data)}),Y.options.map(function(J){return j(J,"".concat(U,"-").concat(J.index))}))}else if(Y.type==="option")return j(Y,"".concat(Y.index))});else if(w){var A=C({inputValue:y});if(A===null)return null;N=x.createElement(d,g,A)}else{var L=F({inputValue:y});if(L===null)return null;N=x.createElement(h,g,L)}var V={minMenuHeight:k,maxMenuHeight:P,menuPlacement:_,menuPosition:R,menuShouldScrollIntoView:$},W=x.createElement(Sue,S({},g,V),function(Y){var se=Y.ref,B=Y.placerProps,U=B.placement,z=B.maxHeight;return x.createElement(l,S({},g,V,{innerRef:se,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:w,placement:U}),x.createElement(Xde,{captureEnabled:v,onTopArrive:E,onBottomArrive:D,lockEnabled:I},function(Q){return x.createElement(c,S({},g,{innerRef:function(ee){i.getMenuListRef(ee),Q(ee)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:i.getElementId("listbox")},isLoading:w,maxHeight:z,focusedOption:m}),N)}))});return O||R==="fixed"?x.createElement(u,S({},g,{appendTo:O,controlElement:this.controlRef,menuPlacement:_,menuPosition:R}),W):W}},{key:"renderFormField",value:function(){var i=this,r=this.props,s=r.delimiter,a=r.isDisabled,l=r.isMulti,c=r.name,u=r.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!a)return x.createElement(ehe,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var h=d.map(function(m){return i.getOptionValue(m)}).join(s);return x.createElement("input",{name:c,type:"hidden",value:h})}else{var p=d.length>0?d.map(function(m,b){return x.createElement("input",{key:"i-".concat(b),name:c,type:"hidden",value:i.getOptionValue(m)})}):x.createElement("input",{name:c,type:"hidden",value:""});return x.createElement("div",null,p)}else{var g=d[0]?this.getOptionValue(d[0]):"";return x.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,r=this.state,s=r.ariaSelection,a=r.focusedOption,l=r.focusedValue,c=r.isFocused,u=r.selectValue,d=this.getFocusableOptions();return x.createElement(Nde,S({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),r=i.Control,s=i.IndicatorsContainer,a=i.SelectContainer,l=i.ValueContainer,c=this.props,u=c.className,d=c.id,h=c.isDisabled,p=c.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return x.createElement(a,S({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:g}),this.renderLiveRegion(),x.createElement(r,S({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:g,menuIsOpen:p}),x.createElement(l,S({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),x.createElement(s,S({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,r){var s=r.prevProps,a=r.clearFocusValueOnUpdate,l=r.inputIsHiddenAfterUpdate,c=r.ariaSelection,u=r.isFocused,d=r.prevWasFocused,h=r.instancePrefix,p=i.options,g=i.value,m=i.menuIsOpen,b=i.inputValue,v=i.isMulti,y=K_(g),w={};if(s&&(g!==s.value||p!==s.options||m!==s.menuIsOpen||b!==s.inputValue)){var C=m?ghe(i,y):[],k=m?cR(Cp(i,y),"".concat(h,"-option")):[],P=a?vhe(r,y):null,M=bhe(r,C),_=cb(k,M);w={selectValue:y,focusedOption:M,focusedOptionId:_,focusableOptionsWithIds:k,focusedValue:P,clearFocusValueOnUpdate:!1}}var R=l!=null&&i!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},O=c,I=u&&d;return u&&!I&&(O={value:jf(v,y,y[0]||null),options:y,action:"initial-input-focus"},I=!d),(c==null?void 0:c.action)==="initial-input-focus"&&(O=null),Ge(Ge(Ge({},w),R),{},{prevProps:i,ariaSelection:O,prevWasFocused:I})}}]),n}(x.Component);Mj.defaultProps=mhe;var xhe=x.forwardRef(function(t,e){var n=Yce(t);return x.createElement(Mj,S({ref:e},n))}),whe=xhe;const dR=()=>{const{stockProfileData:t}=mn(),[e,n]=x.useState([]),o=Fs(),i=10,r=l=>{l&&o(`stock/${encodeURIComponent(l.value.toLocaleLowerCase())}`)},s=x.useCallback(l=>{const c=t.filter(u=>u.label.toLowerCase().includes(l.toLocaleLowerCase())).slice(0,i);n(l?c:[])},[t]),a={menu:l=>({...l,"& ::-webkit-scrollbar":{height:"100%",width:"5px",marginLeft:"5px"},"& ::-webkit-scrollbar-thumb":{backgroundColor:"#808080"},"& ::-webkit-scrollbar-track, & ::-webkit-scrollbar-thumb":{borderRadius:"21px"},"& div":{color:"#111827",fontSize:"14px",padding:"4px"}})};return f.jsx(whe,{value:"",onChange:r,onInputChange:s,className:"min-w-48 z-50",isClearable:!0,escapeClearsValue:!0,options:e,placeholder:"Search stock...",noOptionsMessage:({inputValue:l})=>l===""?"Stock name / symbol":"Stock not found",styles:a})},Che=({handleDropdownMouseOver:t,handleDropdownMouseOut:e,subMenuItems:n})=>{const{setActiveNavItem:o}=mn(),i=r=>{o(r),e()};return f.jsx("div",{className:"absolute w-52 bg-white dark:bg-gray-900 rounded top-10 p-4 drop-shadow-xl z-10 border border-gray-300 dark:border-gray-600",onMouseOver:t,onMouseOut:e,children:n.map((r,s)=>f.jsx("div",{className:"p-1",children:f.jsx(Tn,{to:r.href,onClick:()=>i(r.label),className:"block hover:text-sky-600",children:r.label})},s))})},She=({label:t,href:e,subMenuItems:n,activeNavItem:o,setActiveNavItem:i})=>{const[r,s]=x.useState(!1),a=()=>{s(!0)},l=()=>{s(!1)};return f.jsxs("div",{className:"flex items-center p-3",onMouseOut:l,onMouseOver:a,children:[f.jsxs(Tn,{to:e,className:"hover:text-sky-600 flex items-center",onClick:()=>i(t),children:[f.jsx("span",{className:o===t?"text-blue-600":"",children:t}),n.length>0&&f.jsx("div",{className:`cursor-pointer inline-block ${o===t?"text-blue-600":""}`,children:f.jsx("svg",{className:"fill-current h-4 w-4 ml-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:f.jsx("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})})]}),n.length>0&&r&&f.jsx(Che,{handleDropdownMouseOver:a,handleDropdownMouseOut:l,subMenuItems:n})]})},khe=({href:t})=>{const{userAvatar:e}=mn();return f.jsx(Tn,{to:t,children:f.jsx("div",{className:"rounded-full border border-gray-300 dark:border-gray-600",children:f.jsx("img",{className:"w-10 h-10 rounded-full",src:e,alt:"user profile photo"})})})},Phe=({href:t})=>f.jsx(Tn,{to:t,children:f.jsx("button",{className:"w-full mt-2 mb-4 text-white bg-gradient-to-r from-sky-500 via-sky-600 to-sky-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-sky-300 dark:focus:focus:ring-sky-800 font-medium rounded text-sm px-5 py-2.5 text-center",children:"Login / Signup"})}),Mhe=()=>{const{fetchUserData:t}=mn();return{signOutUser:x.useCallback(()=>{fetch(jse,{method:"POST",credentials:"include"}).then(n=>n.json()).then(n=>{n.isEverythingOk&&t()}).catch(n=>{console.error("Logout failed:",n.message)})},[t])}},_he=({handleOnClick:t})=>{const{userData:e}=mn(),{signOutUser:n}=Mhe(),o=()=>{n(),t()};return f.jsxs("div",{onClick:t,className:"absolute p-3 min-w-40 bg-white dark:bg-gray-900 rounded-lg top-11 drop-shadow-xl z-10 border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-white text-sm text-left",children:[f.jsx("div",{className:"text-gray-900 dark:text-white",children:e.email}),f.jsx("hr",{className:"mt-2 pt-2 sm:mx-auto border-gray-300 dark:border-gray-600"}),f.jsx("ul",{"aria-labelledby":"dropdownUserAvatarButton",children:$se.map((i,r)=>f.jsx("li",{className:"text-md font-medium me-1",children:i.label==="Sign out"?f.jsx("button",{className:"block hover:text-sky-500",onClick:o,children:i.label}):f.jsx(Tn,{to:i.href,onClick:t,className:"block hover:text-sky-500",children:i.label})},r))})]})},hR=()=>{const{userData:t}=mn(),[e,n]=x.useState(!1),o=()=>{n(!e)};return f.jsxs("div",{className:"relative flex justify-end items-end max-w-full lg:max-w-40",children:[f.jsxs("div",{onClick:o,className:"flex items-center text-sm bg-gray-50 dark:bg-gray-800 rounded-full md:me-0 focus:ring-2 focus:ring-gray-300 dark:focus:ring-gray-600 border border-gray-300 dark:border-gray-600 cursor-pointer pr-3 w-full lg:max-w-max",children:[f.jsx("span",{className:"sr-only",children:"Open user menu"}),f.jsx("img",{className:"w-10 h-10 rounded-full me-2",src:t.img_url,alt:"user profile photo"}),f.jsx("span",{className:"me-3 truncate",children:t.name}),f.jsx("span",{className:e?"rotate-180 transition duration-300":"",children:f.jsx("svg",{className:"w-2.5 h-2.5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6",children:f.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 1 4 4 4-4"})})})]}),e&&f.jsx(_he,{handleOnClick:o})]})},Rhe=()=>{const{name:t,logo:e,userData:n,activeNavItem:o,setActiveNavItem:i}=mn(),[r,s]=x.useState(!1),a=n.isLoggedIn,l=()=>{s(!r)};return f.jsxs("div",{className:"w-full max-w-screen-xl mx-auto py-3 md:py-4",children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between",children:[f.jsxs(Tn,{to:"/",onClick:()=>i(""),className:"flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse",children:[f.jsx("img",{src:e,className:"h-12",alt:"HamroNepse Logo"}),f.jsx("span",{className:"self-center text-xl font-semibold whitespace-nowrap",children:t})]}),f.jsx("div",{className:"flex items-center",children:f.jsx("ul",{className:"hidden relative lg:flex items-center lg:space-x-6 md:space-x-2",children:Pm.map((c,u)=>f.jsx("li",{className:"text-md font-medium",children:f.jsx(She,{label:c.label,href:c.href,subMenuItems:c.subMenuItems,activeNavItem:o,setActiveNavItem:i})},u))})}),f.jsxs("div",{className:"hidden lg:flex items-center align-middle space-x-4",children:[f.jsx("div",{className:"relative h-10",children:f.jsx(dR,{})}),a?f.jsx(hR,{}):f.jsx(khe,{href:"/login"})]}),f.jsx("div",{className:"lg:hidden flex items-center",children:f.jsx("button",{className:"focus:outline-none",onClick:l,children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16m-7 6h7"})})})}),f.jsxs("div",{className:`lg:hidden w-full mt-2 ${r?"block":"hidden"}`,children:[f.jsx("hr",{className:"my-3 sm:mx-auto border-gray-300 dark:border-gray-600"}),f.jsx("ul",{className:"flex flex-col items-start space-y-2 ",children:Pm.map((c,u)=>f.jsx("li",{children:f.jsx(Tn,{to:c.href,className:"hover:text-blue-500",children:c.label})},u))}),f.jsx("div",{className:"relative w-full mt-3 h-12",children:f.jsx(dR,{})}),a?f.jsx(hR,{}):f.jsx(Phe,{href:"/login"})]})]}),f.jsx("hr",{className:"mt-3 lg:my-4 sm:mx-auto border-gray-300 dark:border-gray-600"})]})},The=({items:t})=>f.jsxs("div",{className:"px-1 mx-auto max-w-screen-md",children:[f.jsx("h2",{className:"mb-4 text-4xl tracking-tight font-extrabold text-center",children:"Our Privacy Policy"}),f.jsx("div",{className:"space-y-8",children:t.map(e=>f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium",children:e.title}),e.description.map((n,o)=>f.jsx("p",{className:`text-md font-light text-left text-gray-500 dark:text-gray-400 ${n.hasSpace?"lg:mt-2":""}`,children:n.value},e.title+o))]},e.title))})]}),Ohe=({ServiceItems:t})=>f.jsx("div",{className:"flex flex-wrap",children:t.map((e,n)=>f.jsx("div",{className:"xl:w-1/3 md:w-1/2 p-2",children:f.jsxs(Tn,{to:e.href,className:"block border border-gray-300 dark:border-gray-600 p-6 rounded-md",children:[f.jsx("div",{className:"w-10 h-10 inline-flex items-center justify-center rounded-full bg-indigo-100 text-indigo-500 mb-4",children:e.icon}),f.jsx("h2",{className:"text-lg font-medium title-font mb-2",children:e.label}),f.jsx("p",{className:"leading-relaxed text-base text-gray-600 dark:text-gray-400",children:e.description})]})},"service-item-"+n))}),Ihe=({totalAmount:t,commission:e,sebonFee:n,dpCharge:o,totalAmountReceiveable:i,capitalGainTax:r,capitalGainTaxPercentage:s,profitOrLoss:a,nepseCommission:l,sebonRegularityFee:c})=>f.jsx(f.Fragment,{children:f.jsxs("div",{className:"p-8 border border-gray-300 dark:border-gray-600 rounded-lg",children:[f.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Financial Summary"}),f.jsx("div",{className:"border border-gray-300 dark:border-gray-600 rounded",children:f.jsx("table",{className:"w-full border-collapse",children:f.jsxs("tbody",{children:[f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Total Amount"}),f.jsx("td",{className:"py-2 px-4",children:t})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Commission"}),f.jsx("td",{className:"py-2 px-4",children:e})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"SEBON FEE"}),f.jsx("td",{className:"py-2 px-4",children:n})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"DP Charge"}),f.jsx("td",{className:"py-2 px-4",children:o})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Total Amount Receiveable (Rs)"}),f.jsx("td",{className:"py-2 px-4",children:i})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsxs("td",{className:"py-2 px-4 text-sm font-medium",children:["Capital Gain Tax (",s,"%) (Rs)"]}),f.jsx("td",{className:"py-2 px-4",children:r})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Profit / Loss (Rs)"}),f.jsx("td",{className:"py-2 px-4",children:a})]}),f.jsx("tr",{children:f.jsxs("td",{className:"py-2 px-4 text-sm font-medium",children:["Commission Amount includes NEPSE Commission Rs"," ",l," & SEBON Regularity Fee Rs"," ",c]})})]})})})]})}),Ehe=({totalAmount:t,commission:e,sebonFee:n,dpCharge:o,totalAmountPayable:i,costPerShare:r,nepseCommission:s,sebonRegularityFee:a})=>f.jsx(f.Fragment,{children:f.jsxs("div",{className:"p-8 border border-gray-300 dark:border-gray-600 rounded-lg",children:[f.jsx("h3",{className:"text-lg font-bold mb-4",children:"Financial Summary"}),f.jsx("div",{className:"border border-gray-300 dark:border-gray-600 rounded",children:f.jsx("table",{className:"w-full border-collapse",children:f.jsxs("tbody",{children:[f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Total Amount"}),f.jsx("td",{className:"py-2 px-4",children:t})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Commission"}),f.jsx("td",{className:"py-2 px-4",children:e})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"SEBON FEE"}),f.jsx("td",{className:"py-2 px-4",children:n})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"DP Charge"}),f.jsx("td",{className:"py-2 px-4",children:o})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Total Amount Payable (Rs)"}),f.jsx("td",{className:"py-2 px-4",children:i})]}),f.jsxs("tr",{className:"border-b border-gray-300 dark:border-gray-600",children:[f.jsx("td",{className:"py-2 px-4 text-sm font-medium",children:"Cost Price Per Share (Rs)"}),f.jsx("td",{className:"py-2 px-4",children:r})]}),f.jsx("tr",{children:f.jsxs("td",{className:"py-2 px-4 text-sm font-medium",children:["Commission Amount includes NEPSE Commission Rs"," ",s," & SEBON Regularity Fee Rs"," ",a]})})]})})})]})}),Dhe=({shareCalculatorProp:t})=>{const{transactionType:e,shareQuantity:n,purchasePrice:o,sellingPrice:i,investorType:r,taxRate:s,isWACC:a,totalAmount:l,commission:c,sebonFee:u,dpCharge:d,capitalGainTax:h,totalAmountPayable:p,capitalGainTaxPercentage:g,costPerShare:m,profitOrLoss:b,nepseCommission:v,sebonRegularityFee:y,totalAmountReceiveable:w,handleClear:C,handleIsWaccChange:k,handleTaxRateChange:P,handleTransactionTypeChange:M,handleShareQuantityChange:_,handlePurchasePriceChange:R,handleSellingPriceChange:O,handleInvestorTypeChange:I}=t;return f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsxs("div",{className:"p-10 border border-gray-300 dark:border-gray-600 rounded-lg",children:[f.jsx("h1",{className:"flex font-medium text-sm mb-1",children:"Transaction Type:"}),f.jsx("div",{className:"mb-4",children:f.jsxs("select",{className:"block w-full h-10 p-2 rounded-md bg-white dark:bg-gray-900 text-gray-900 dark:text-white border border-gray-300 dark:border-gray-600 focus:outline-none focus:ring focus:border-blue-300 text-sm",onChange:M,children:[f.jsx("option",{value:"buy",children:"Buy"}),f.jsx("option",{value:"sell",children:"Sell"})]})}),e==="sell"&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block font-medium text-sm mb-1",children:"Share Quantity:"}),f.jsx("input",{type:"text",value:n,onChange:_,className:"border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white text-sm",placeholder:"Enter share quantity"})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block font-medium text-sm mb-1",children:"Purchase Price (Rs):"}),f.jsx("input",{type:"text",value:o,onChange:R,className:"border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white text-sm",placeholder:"Enter purchase price"}),f.jsx("label",{className:"block font-medium text-sm mb-1 mt-3",children:"Selling Price (Rs)"}),f.jsx("input",{type:"text",value:i,onChange:O,className:"border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white text-sm",placeholder:"Enter purchase price"}),f.jsxs("label",{className:"inline-block font-medium text-sm mt-3",children:[f.jsx("input",{type:"checkbox",checked:a,onChange:k,className:"w-3.5 h-3.5 mr-2 mt-2"}),f.jsx("span",{children:"Is WACC"})]})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block font-medium text-sm mb-1",children:"Investor Type:"}),f.jsxs("select",{value:r,onChange:I,className:"border border-gray-300 dark:border-gray-600 rounded-md p-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white text-sm",children:[f.jsx("option",{value:"individual",children:"Individual"}),f.jsx("option",{value:"institutional",children:"Institutional"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block font-medium text-sm mb-1",children:"Capital Gain Tax:"}),f.jsx("select",{value:s,onChange:P,className:"border border-gray-300 dark:border-gray-600 rounded-md p-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white text-sm",children:r==="individual"?f.jsxs(f.Fragment,{children:[f.jsx("option",{value:"5",children:"5%"}),f.jsx("option",{value:"7.5",children:"7.5%"})]}):f.jsx("option",{value:"10",children:"10%"})})]})]}),e==="buy"&&f.jsxs("div",{children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block font-medium text-sm mb-1",children:"Share Quantity:"}),f.jsx("input",{type:"text",value:n,onChange:_,className:"border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white",placeholder:"Enter share quantity"})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block font-medium text-sm mb-1",children:"Purchase Price (Rs):"}),f.jsx("input",{type:"text",value:o,onChange:R,className:"border border-gray-300 dark:border-gray-600 rounded-md px-3 py-2 focus:outline-none focus:ring focus:border-blue-300 w-full bg-white dark:bg-gray-900 text-gray-900 dark:text-white",placeholder:"Enter purchase price"})]})]}),f.jsx("div",{className:"flex justify-end space-x-4 mt-5",children:f.jsx("button",{onClick:C,className:"px-4 py-2 rounded-md bg-gray-500 hover:bg-gray-400 focus:outline-none focus:ring focus:border-blue-300 text-white",children:"Clear"})})]}),e==="buy"&&f.jsx(Ehe,{totalAmount:l,commission:c,sebonFee:u,dpCharge:d,totalAmountPayable:p,costPerShare:m,nepseCommission:v,sebonRegularityFee:y}),e==="sell"&&f.jsx(Ihe,{totalAmount:l,commission:c,sebonFee:u,dpCharge:d,totalAmountReceiveable:w,capitalGainTax:h,capitalGainTaxPercentage:g,profitOrLoss:b,nepseCommission:v,sebonRegularityFee:y})]})},$he=()=>{const t=x.useRef(null),e=x.useRef(null),n=x.useRef(null),o=x.useRef(null),[i,r]=x.useState(""),[s,a]=x.useState(f.jsx(f.Fragment,{})),{userData:l}=mn();return{userData:l,nameRef:t,emailRef:e,passwordRef:n,confirmPasswordRef:o,toastNotification:s,navigationPath:i,minLength:8,maxNameLength:50,maxEmailLength:50,maxPasswordLength:16,handleOnSubmit:g=>{var C,k,P,M;g.preventDefault();const m=((C=t.current)==null?void 0:C.value)??"",b=((k=e.current)==null?void 0:k.value)??"",v=((P=n.current)==null?void 0:P.value)??"",y=((M=o.current)==null?void 0:M.value)??"";if(v!==y){a(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>a(f.jsx(f.Fragment,{})),children:"Password and Confirm Password did not match."}));return}const w=new FormData;w.append("name",m),w.append("email",b),w.append("password",v),w.append("confirm_password",y),fetch(Ase,{method:"POST",body:w,credentials:"include"}).then(_=>_.json()).then(_=>{a(f.jsx(qt,{variant:"outlined",severity:_.isEverythingOk?"success":"error",icon:!1,onClose:()=>a(f.jsx(f.Fragment,{})),children:Mn(_.responseMessage)})),_.isEverythingOk&&setTimeout(()=>{r("/login")},1e3)}).catch(_=>{a(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>a(f.jsx(f.Fragment,{})),children:Mn(_.message)}))})}}},Fhe=()=>{const t=Fs(),{userData:e,nameRef:n,emailRef:o,passwordRef:i,confirmPasswordRef:r,minLength:s,maxNameLength:a,maxEmailLength:l,maxPasswordLength:c,toastNotification:u,navigationPath:d,handleOnSubmit:h}=$he();return x.useEffect(()=>{d!==""&&t(d)},[t,d]),e.isLoggedIn?f.jsx(zc,{message:`User already logged in: ${e.name}`,displayHomeBtn:!0,displayLoginBtn:!1}):f.jsx("div",{className:"flex flex-col items-center justify-center mx-auto lg:h-full p-1",children:f.jsx("div",{className:"w-full bg-white rounded-md shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700",children:f.jsxs("div",{className:"p-6 space-y-4 md:space-y-6 sm:p-8",children:[u,f.jsx("h1",{className:"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white",children:"Create an account"}),f.jsxs("form",{method:"POST",className:"space-y-4 md:space-y-6",onSubmit:h,children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Name"}),f.jsx("input",{type:"text",name:"name",id:"name",ref:n,maxLength:a,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"John Doe",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"email",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Email"}),f.jsx("input",{type:"email",name:"email",id:"email",ref:o,maxLength:l,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"name@example.com",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"password",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Password"}),f.jsx("input",{type:"password",name:"password",id:"password",ref:i,minLength:s,maxLength:c,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"••••••••",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"confirm-password",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Confirm password"}),f.jsx("input",{type:"password",name:"confirm-password",id:"confirm-password",ref:r,minLength:s,maxLength:c,className:"bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-md focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"••••••••",required:!0})]}),f.jsxs("div",{className:"flex items-start",children:[f.jsx("div",{className:"flex items-center h-5",children:f.jsx("input",{id:"terms","aria-describedby":"terms",type:"checkbox",className:"w-4 h-4 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-primary-300 dark:bg-gray-700 dark:border-gray-600 dark:focus:ring-primary-600 dark:ring-offset-gray-800",required:!0})}),f.jsx("div",{className:"ml-3 text-sm",children:f.jsxs("label",{htmlFor:"terms",className:"font-light text-gray-500 dark:text-gray-300",children:["I accept the"," ",f.jsx(Tn,{className:"font-medium underline dark:text-primary-500",to:"/privacy-policy",children:"Terms and Conditions"})]})})]}),f.jsx("button",{type:"submit",className:"w-full text-white bg-sky-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-md text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800",children:"Create an account"}),f.jsxs("p",{className:"text-sm font-light text-gray-500 dark:text-gray-400",children:["Already have an account?"," ",f.jsx(Tn,{to:"/login",className:"font-medium text-sky-600 hover:underline dark:text-white",children:"Login here"})]})]})]})})})};/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Ih(t){return t+.5|0}const cs=(t,e,n)=>Math.max(Math.min(t,n),e);function Su(t){return cs(Ih(t*2.55),0,255)}function Ss(t){return cs(Ih(t*255),0,255)}function gr(t){return cs(Ih(t/2.55)/100,0,1)}function fR(t){return cs(Ih(t*100),0,100)}const qo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},lx=[..."0123456789ABCDEF"],jhe=t=>lx[t&15],Lhe=t=>lx[(t&240)>>4]+lx[t&15],Lf=t=>(t&240)>>4===(t&15),Ahe=t=>Lf(t.r)&&Lf(t.g)&&Lf(t.b)&&Lf(t.a);function Nhe(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&qo[t[1]]*17,g:255&qo[t[2]]*17,b:255&qo[t[3]]*17,a:e===5?qo[t[4]]*17:255}:(e===7||e===9)&&(n={r:qo[t[1]]<<4|qo[t[2]],g:qo[t[3]]<<4|qo[t[4]],b:qo[t[5]]<<4|qo[t[6]],a:e===9?qo[t[7]]<<4|qo[t[8]]:255})),n}const zhe=(t,e)=>t<255?e(t):"";function Vhe(t){var e=Ahe(t)?jhe:Lhe;return t?"#"+e(t.r)+e(t.g)+e(t.b)+zhe(t.a,e):void 0}const Bhe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _j(t,e,n){const o=e*Math.min(n,1-n),i=(r,s=(r+t/30)%12)=>n-o*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function Hhe(t,e,n){const o=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function Whe(t,e,n){const o=_j(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)o[i]*=1-e-n,o[i]+=e;return o}function Uhe(t,e,n,o,i){return t===i?(e-n)/o+(e.5?u/(2-r-s):u/(r+s),l=Uhe(n,o,i,u,r),l=l*60+.5),[l|0,c||0,a]}function LC(t,e,n,o){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,o)).map(Ss)}function AC(t,e,n){return LC(_j,t,e,n)}function qhe(t,e,n){return LC(Whe,t,e,n)}function Ghe(t,e,n){return LC(Hhe,t,e,n)}function Rj(t){return(t%360+360)%360}function Khe(t){const e=Bhe.exec(t);let n=255,o;if(!e)return;e[5]!==o&&(n=e[6]?Su(+e[5]):Ss(+e[5]));const i=Rj(+e[2]),r=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?o=qhe(i,r,s):e[1]==="hsv"?o=Ghe(i,r,s):o=AC(i,r,s),{r:o[0],g:o[1],b:o[2],a:n}}function Yhe(t,e){var n=jC(t);n[0]=Rj(n[0]+e),n=AC(n),t.r=n[0],t.g=n[1],t.b=n[2]}function Qhe(t){if(!t)return;const e=jC(t),n=e[0],o=fR(e[1]),i=fR(e[2]);return t.a<255?`hsla(${n}, ${o}%, ${i}%, ${gr(t.a)})`:`hsl(${n}, ${o}%, ${i}%)`}const pR={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},mR={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Xhe(){const t={},e=Object.keys(mR),n=Object.keys(pR);let o,i,r,s,a;for(o=0;o>16&255,r>>8&255,r&255]}return t}let Af;function Jhe(t){Af||(Af=Xhe(),Af.transparent=[0,0,0,0]);const e=Af[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Zhe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function efe(t){const e=Zhe.exec(t);let n=255,o,i,r;if(e){if(e[7]!==o){const s=+e[7];n=e[8]?Su(s):cs(s*255,0,255)}return o=+e[1],i=+e[3],r=+e[5],o=255&(e[2]?Su(o):cs(o,0,255)),i=255&(e[4]?Su(i):cs(i,0,255)),r=255&(e[6]?Su(r):cs(r,0,255)),{r:o,g:i,b:r,a:n}}}function tfe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${gr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const ub=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,ll=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function nfe(t,e,n){const o=ll(gr(t.r)),i=ll(gr(t.g)),r=ll(gr(t.b));return{r:Ss(ub(o+n*(ll(gr(e.r))-o))),g:Ss(ub(i+n*(ll(gr(e.g))-i))),b:Ss(ub(r+n*(ll(gr(e.b))-r))),a:t.a+n*(e.a-t.a)}}function Nf(t,e,n){if(t){let o=jC(t);o[e]=Math.max(0,Math.min(o[e]+o[e]*n,e===0?360:1)),o=AC(o),t.r=o[0],t.g=o[1],t.b=o[2]}}function Tj(t,e){return t&&Object.assign(e||{},t)}function gR(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ss(t[3]))):(e=Tj(t,{r:0,g:0,b:0,a:1}),e.a=Ss(e.a)),e}function ofe(t){return t.charAt(0)==="r"?efe(t):Khe(t)}class Bd{constructor(e){if(e instanceof Bd)return e;const n=typeof e;let o;n==="object"?o=gR(e):n==="string"&&(o=Nhe(e)||Jhe(e)||ofe(e)),this._rgb=o,this._valid=!!o}get valid(){return this._valid}get rgb(){var e=Tj(this._rgb);return e&&(e.a=gr(e.a)),e}set rgb(e){this._rgb=gR(e)}rgbString(){return this._valid?tfe(this._rgb):void 0}hexString(){return this._valid?Vhe(this._rgb):void 0}hslString(){return this._valid?Qhe(this._rgb):void 0}mix(e,n){if(e){const o=this.rgb,i=e.rgb;let r;const s=n===r?.5:n,a=2*s-1,l=o.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,o.r=255&c*o.r+r*i.r+.5,o.g=255&c*o.g+r*i.g+.5,o.b=255&c*o.b+r*i.b+.5,o.a=s*o.a+(1-s)*i.a,this.rgb=o}return this}interpolate(e,n){return e&&(this._rgb=nfe(this._rgb,e._rgb,n)),this}clone(){return new Bd(this.rgb)}alpha(e){return this._rgb.a=Ss(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Ih(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Nf(this._rgb,2,e),this}darken(e){return Nf(this._rgb,2,-e),this}saturate(e){return Nf(this._rgb,1,e),this}desaturate(e){return Nf(this._rgb,1,-e),this}rotate(e){return Yhe(this._rgb,e),this}}/*! + * Chart.js v4.4.1 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function ur(){}const ife=(()=>{let t=0;return()=>t++})();function Nt(t){return t===null||typeof t>"u"}function Ht(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function pt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Zt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Po(t,e){return Zt(t)?t:e}function ut(t,e){return typeof t>"u"?e:t}const rfe=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function It(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function St(t,e,n,o){let i,r,s;if(Ht(t))if(r=t.length,o)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;it,x:t=>t.x,y:t=>t.y};function lfe(t){const e=t.split("."),n=[];let o="";for(const i of e)o+=i,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function cfe(t){const e=lfe(t);return n=>{for(const o of e){if(o==="")break;n=n&&n[o]}return n}}function Fm(t,e){return(vR[e]||(vR[e]=cfe(e)))(t)}function NC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const jm=t=>typeof t<"u",Os=t=>typeof t=="function",bR=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function ufe(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const pn=Math.PI,Ao=2*pn,dfe=Ao+pn,Lm=Number.POSITIVE_INFINITY,hfe=pn/180,Fo=pn/2,Us=pn/4,yR=pn*2/3,us=Math.log10,Pc=Math.sign;function Ju(t,e,n){return Math.abs(t-e)i-r).pop(),e}function Wd(t){return!isNaN(parseFloat(t))&&isFinite(t)}function pfe(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function Ij(t,e,n){let o,i,r;for(o=0,i=t.length;ol&&c=Math.min(e,n)-o&&t<=Math.max(e,n)+o}function VC(t,e,n){n=n||(s=>t[s]1;)r=i+o>>1,n(r)?i=r:o=r;return{lo:i,hi:o}}const aa=(t,e,n,o)=>VC(t,n,o?i=>{const r=t[i][e];return rt[i][e]VC(t,n,o=>t[o][e]>=n);function yfe(t,e,n){let o=0,i=t.length;for(;oo&&t[i-1]>n;)i--;return o>0||i{const o="_onData"+NC(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const s=i.apply(this,r);return t._chartjs.listeners.forEach(a=>{typeof a[o]=="function"&&a[o](...r)}),s}})})}function CR(t,e){const n=t._chartjs;if(!n)return;const o=n.listeners,i=o.indexOf(e);i!==-1&&o.splice(i,1),!(o.length>0)&&(Dj.forEach(r=>{delete t[r]}),delete t._chartjs)}function wfe(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const $j=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Fj(t,e){let n=[],o=!1;return function(...i){n=i,o||(o=!0,$j.call(window,()=>{o=!1,t.apply(e,n)}))}}function Cfe(t,e){let n;return function(...o){return e?(clearTimeout(n),n=setTimeout(t,e,o)):t.apply(this,o),e}}const BC=t=>t==="start"?"left":t==="end"?"right":"center",Hn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Sfe=(t,e,n,o)=>t===(o?"left":"right")?n:t==="center"?(e+n)/2:e;function kfe(t,e,n){const o=e.length;let i=0,r=o;if(t._sorted){const{iScale:s,_parsed:a}=t,l=s.axis,{min:c,max:u,minDefined:d,maxDefined:h}=s.getUserBounds();d&&(i=ri(Math.min(aa(a,l,c).lo,n?o:aa(e,l,s.getPixelForValue(c)).lo),0,o-1)),h?r=ri(Math.max(aa(a,s.axis,u,!0).hi+1,n?0:aa(e,l,s.getPixelForValue(u),!0).hi+1),i,o)-i:r=o-i}return{start:i,count:r}}function Pfe(t){const{xScale:e,yScale:n,_scaleRanges:o}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!o)return t._scaleRanges=i,!0;const r=o.xmin!==e.min||o.xmax!==e.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,i),r}const zf=t=>t===0||t===1,SR=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ao/n)),kR=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ao/n)+1,Zu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Fo)+1,easeOutSine:t=>Math.sin(t*Fo),easeInOutSine:t=>-.5*(Math.cos(pn*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>zf(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>zf(t)?t:SR(t,.075,.3),easeOutElastic:t=>zf(t)?t:kR(t,.075,.3),easeInOutElastic(t){return zf(t)?t:t<.5?.5*SR(t*2,.1125,.45):.5+.5*kR(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Zu.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Zu.easeInBounce(t*2)*.5:Zu.easeOutBounce(t*2-1)*.5+.5};function HC(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function PR(t){return HC(t)?t:new Bd(t)}function db(t){return HC(t)?t:new Bd(t).saturate(.5).darken(.1).hexString()}const Mfe=["x","y","borderWidth","radius","tension"],_fe=["color","borderColor","backgroundColor"];function Rfe(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:_fe},numbers:{type:"number",properties:Mfe}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function Tfe(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const MR=new Map;function Ofe(t,e){e=e||{};const n=t+JSON.stringify(e);let o=MR.get(n);return o||(o=new Intl.NumberFormat(t,e),MR.set(n,o)),o}function WC(t,e,n){return Ofe(e,n).format(t)}const jj={values(t){return Ht(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const o=this.chart.options.locale;let i,r=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),r=Ife(t,n)}const s=us(Math.abs(r)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),WC(t,o,l)},logarithmic(t,e,n){if(t===0)return"0";const o=n[e].significand||t/Math.pow(10,Math.floor(us(t)));return[1,2,3,5,10,15].includes(o)||e>.8*n.length?jj.numeric.call(this,t,e,n):""}};function Ife(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Sv={formatters:jj};function Efe(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Sv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const La=Object.create(null),ux=Object.create(null);function ed(t,e){if(!e)return t;const n=e.split(".");for(let o=0,i=n.length;oo.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,i)=>db(i.backgroundColor),this.hoverBorderColor=(o,i)=>db(i.borderColor),this.hoverColor=(o,i)=>db(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return hb(this,e,n)}get(e){return ed(this,e)}describe(e,n){return hb(ux,e,n)}override(e,n){return hb(La,e,n)}route(e,n,o,i){const r=ed(this,e),s=ed(this,o),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return pt(l)?Object.assign({},c,l):ut(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var en=new Dfe({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Rfe,Tfe,Efe]);function $fe(t){return!t||Nt(t.size)||Nt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Am(t,e,n,o,i){let r=e[i];return r||(r=e[i]=t.measureText(i).width,n.push(i)),r>o&&(o=r),o}function Ffe(t,e,n,o){o=o||{};let i=o.data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(i=o.data={},r=o.garbageCollect=[],o.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,c,u,d,h;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function Sr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&r.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,Afe(t,r),l=0;l+t||0;function Aj(t,e){const n={},o=pt(e),i=o?Object.keys(e):e,r=pt(t)?o?s=>ut(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)n[s]=Wfe(r(s));return n}function Ufe(t){return Aj(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Bl(t){return Aj(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Kn(t){const e=Ufe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function wn(t,e){t=t||{},e=e||en.font;let n=ut(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let o=ut(t.style,e.style);o&&!(""+o).match(Bfe)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const i={family:ut(t.family,e.family),lineHeight:Hfe(ut(t.lineHeight,e.lineHeight),n),size:n,style:o,weight:ut(t.weight,e.weight),string:""};return i.string=$fe(i),i}function Vf(t,e,n,o){let i=!0,r,s,a;for(r=0,s=t.length;rn&&a===0?0:a+l;return{min:s(o,-Math.abs(r)),max:s(i,r)}}function zs(t,e){return Object.assign(Object.create(t),e)}function UC(t,e=[""],n,o,i=()=>t[0]){const r=n||t;typeof o>"u"&&(o=Bj("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:o,_getTarget:i,override:a=>UC([a,...t],e,r,o)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return zj(a,l,()=>epe(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return TR(a).includes(l)},ownKeys(a){return TR(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function Mc(t,e,n,o){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Nj(t,o),setContext:r=>Mc(t,r,n,o),override:r=>Mc(t.override(r),e,n,o)};return new Proxy(i,{deleteProperty(r,s){return delete r[s],delete t[s],!0},get(r,s,a){return zj(r,s,()=>Kfe(r,s,a))},getOwnPropertyDescriptor(r,s){return r._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(r,s,a){return t[s]=a,delete r[s],!0}})}function Nj(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:o=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:o,isScriptable:Os(n)?n:()=>n,isIndexable:Os(o)?o:()=>o}}const Gfe=(t,e)=>t?t+NC(e):e,qC=(t,e)=>pt(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function zj(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const o=n();return t[e]=o,o}function Kfe(t,e,n){const{_proxy:o,_context:i,_subProxy:r,_descriptors:s}=t;let a=o[e];return Os(a)&&s.isScriptable(e)&&(a=Yfe(e,a,t,n)),Ht(a)&&a.length&&(a=Qfe(e,a,t,s.isIndexable)),qC(e,a)&&(a=Mc(a,i,r&&r[e],s)),a}function Yfe(t,e,n,o){const{_proxy:i,_context:r,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,s||o);return a.delete(t),qC(t,l)&&(l=GC(i._scopes,i,t,l)),l}function Qfe(t,e,n,o){const{_proxy:i,_context:r,_subProxy:s,_descriptors:a}=n;if(typeof r.index<"u"&&o(t))return e[r.index%e.length];if(pt(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=GC(c,i,t,u);e.push(Mc(d,r,s&&s[t],a))}}return e}function Vj(t,e,n){return Os(t)?t(e,n):t}const Xfe=(t,e)=>t===!0?e:typeof t=="string"?Fm(e,t):void 0;function Jfe(t,e,n,o,i){for(const r of e){const s=Xfe(n,r);if(s){t.add(s);const a=Vj(s._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==o)return a}else if(s===!1&&typeof o<"u"&&n!==o)return null}return!1}function GC(t,e,n,o){const i=e._rootScopes,r=Vj(e._fallback,n,o),s=[...t,...i],a=new Set;a.add(o);let l=RR(a,s,n,r||n,o);return l===null||typeof r<"u"&&r!==n&&(l=RR(a,s,r,l,o),l===null)?!1:UC(Array.from(a),[""],i,r,()=>Zfe(e,n,o))}function RR(t,e,n,o,i){for(;n;)n=Jfe(t,e,n,o,i);return n}function Zfe(t,e,n){const o=t._getTarget();e in o||(o[e]={});const i=o[e];return Ht(i)&&pt(n)?n:i||{}}function epe(t,e,n,o){let i;for(const r of e)if(i=Bj(Gfe(r,t),n),typeof i<"u")return qC(t,i)?GC(n,o,t,i):i}function Bj(t,e){for(const n of e){if(!n)continue;const o=n[t];if(typeof o<"u")return o}}function TR(t){let e=t._keys;return e||(e=t._keys=tpe(t._scopes)),e}function tpe(t){const e=new Set;for(const n of t)for(const o of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(o);return Array.from(e)}const npe=Number.EPSILON||1e-14,_c=(t,e)=>et==="x"?"y":"x";function ope(t,e,n,o){const i=t.skip?e:t,r=e,s=n.skip?e:n,a=cx(r,i),l=cx(s,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,h=o*u;return{previous:{x:r.x-d*(s.x-i.x),y:r.y-d*(s.y-i.y)},next:{x:r.x+h*(s.x-i.x),y:r.y+h*(s.y-i.y)}}}function ipe(t,e,n){const o=t.length;let i,r,s,a,l,c=_c(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")spe(t,i);else{let c=o?t[t.length-1]:t[0];for(r=0,s=t.length;rt.ownerDocument.defaultView.getComputedStyle(t,null);function cpe(t,e){return Mv(t).getPropertyValue(e)}const upe=["top","right","bottom","left"];function xa(t,e,n){const o={};n=n?"-"+n:"";for(let i=0;i<4;i++){const r=upe[i];o[r]=parseFloat(t[e+"-"+r+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const dpe=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function hpe(t,e){const n=t.touches,o=n&&n.length?n[0]:t,{offsetX:i,offsetY:r}=o;let s=!1,a,l;if(dpe(i,r,t.target))a=i,l=r;else{const c=e.getBoundingClientRect();a=o.clientX-c.left,l=o.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function ea(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:o}=e,i=Mv(n),r=i.boxSizing==="border-box",s=xa(i,"padding"),a=xa(i,"border","width"),{x:l,y:c,box:u}=hpe(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:p,height:g}=e;return r&&(p-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-d)/p*n.width/o),y:Math.round((c-h)/g*n.height/o)}}function fpe(t,e,n){let o,i;if(e===void 0||n===void 0){const r=YC(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const s=r.getBoundingClientRect(),a=Mv(r),l=xa(a,"border","width"),c=xa(a,"padding");e=s.width-c.width-l.width,n=s.height-c.height-l.height,o=zm(a.maxWidth,r,"clientWidth"),i=zm(a.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:o||Lm,maxHeight:i||Lm}}const Hf=t=>Math.round(t*10)/10;function ppe(t,e,n,o){const i=Mv(t),r=xa(i,"margin"),s=zm(i.maxWidth,t,"clientWidth")||Lm,a=zm(i.maxHeight,t,"clientHeight")||Lm,l=fpe(t,e,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const h=xa(i,"border","width"),p=xa(i,"padding");c-=p.width+h.width,u-=p.height+h.height}return c=Math.max(0,c-r.width),u=Math.max(0,o?c/o:u-r.height),c=Hf(Math.min(c,s,l.maxWidth)),u=Hf(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Hf(c/2)),(e!==void 0||n!==void 0)&&o&&l.height&&u>l.height&&(u=l.height,c=Hf(Math.floor(u*o))),{width:c,height:u}}function OR(t,e,n){const o=e||1,i=Math.floor(t.height*o),r=Math.floor(t.width*o);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==o||s.height!==i||s.width!==r?(t.currentDevicePixelRatio=o,s.height=i,s.width=r,t.ctx.setTransform(o,0,0,o,0,0),!0):!1}const mpe=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};KC()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function IR(t,e){const n=cpe(t,e),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function ta(t,e,n,o){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function gpe(t,e,n,o){return{x:t.x+n*(e.x-t.x),y:o==="middle"?n<.5?t.y:e.y:o==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function vpe(t,e,n,o){const i={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},s=ta(t,i,n),a=ta(i,r,n),l=ta(r,e,n),c=ta(s,a,n),u=ta(a,l,n);return ta(c,u,n)}const bpe=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},ype=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Hl(t,e,n){return t?bpe(e,n):ype()}function Wj(t,e){let n,o;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=o)}function Uj(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function qj(t){return t==="angle"?{between:Ej,compare:gfe,normalize:Eo}:{between:_l,compare:(e,n)=>e-n,normalize:e=>e}}function ER({start:t,end:e,count:n,loop:o,style:i}){return{start:t%n,end:e%n,loop:o&&(e-t+1)%n===0,style:i}}function xpe(t,e,n){const{property:o,start:i,end:r}=n,{between:s,normalize:a}=qj(o),l=e.length;let{start:c,end:u,loop:d}=t,h,p;if(d){for(c+=l,u+=l,h=0,p=l;hl(i,w,v)&&a(i,w)!==0,k=()=>a(r,v)===0||l(r,w,v),P=()=>m||C(),M=()=>!m||k();for(let _=u,R=u;_<=d;++_)y=e[_%s],!y.skip&&(v=c(y[o]),v!==w&&(m=l(v,i,r),b===null&&P()&&(b=a(v,i)===0?_:R),b!==null&&M()&&(g.push(ER({start:b,end:_,loop:h,count:s,style:p})),b=null),R=_,w=v));return b!==null&&g.push(ER({start:b,end:d,loop:h,count:s,style:p})),g}function Kj(t,e){const n=[],o=t.segments;for(let i=0;ii&&t[r%e].skip;)r--;return r%=e,{start:i,end:r}}function Cpe(t,e,n,o){const i=t.length,r=[];let s=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%i];c.skip||c.stop?a.skip||(o=!1,r.push({start:e%i,end:(l-1)%i,loop:o}),e=s=c.stop?l:null):(s=l,a.skip&&(e=l)),a=c}return s!==null&&r.push({start:e%i,end:s%i,loop:o}),r}function Spe(t,e){const n=t.points,o=t.options.spanGaps,i=n.length;if(!i)return[];const r=!!t._loop,{start:s,end:a}=wpe(n,i,r,o);if(o===!0)return DR(t,[{start:s,end:a,loop:r}],n,e);const l=aa({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(o-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=$j.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((o,i)=>{if(!o.running||!o.items.length)return;const r=o.items;let s=r.length-1,a=!1,l;for(;s>=0;--s)l=r[s],l._active?(l._total>o.duration&&(o.duration=l._total),l.tick(e),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,o,e,"progress")),r.length||(o.running=!1,this._notify(i,o,e,"complete"),o.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let o=n.get(e);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,o)),o}listen(e,n,o){this._getAnims(e).listeners[n].push(o)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,i)=>Math.max(o,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const o=n.items;let i=o.length-1;for(;i>=0;--i)o[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var hr=new Mpe;const FR="transparent",_pe={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const o=PR(t||FR),i=o.valid&&PR(e||FR);return i&&i.valid?i.mix(o,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Rpe{constructor(e,n,o,i){const r=n[o];i=Vf([e.to,i,r,e.from]);const s=Vf([e.from,r,i]);this._active=!0,this._fn=e.fn||_pe[e.type||typeof s],this._easing=Zu[e.easing]||Zu.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=o,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,o){if(this._active){this._notify(!1);const i=this._target[this._prop],r=o-this._start,s=this._duration-r;this._start=o,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Vf([e.to,n,i,e.from]),this._from=Vf([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,o=this._duration,i=this._prop,r=this._from,s=this._loop,a=this._to;let l;if(this._active=r!==a&&(s||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,o)=>{e.push({res:n,rej:o})})}_notify(e){const n=e?"res":"rej",o=this._promises||[];for(let i=0;i{const r=e[i];if(!pt(r))return;const s={};for(const a of n)s[a]=r[a];(Ht(r.properties)&&r.properties||[i]).forEach(a=>{(a===i||!o.has(a))&&o.set(a,s)})})}_animateOptions(e,n){const o=n.options,i=Ope(e,o);if(!i)return[];const r=this._createAnimations(i,o);return o.$shared&&Tpe(e.options.$animations,o).then(()=>{e.options=o},()=>{}),r}_createAnimations(e,n){const o=this._properties,i=[],r=e.$animations||(e.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const u=n[c];let d=r[c];const h=o.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}r[c]=d=new Rpe(h,e,c,u),i.push(d)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const o=this._createAnimations(e,n);if(o.length)return hr.add(this._chart,o),!0}}function Tpe(t,e){const n=[],o=Object.keys(e);for(let i=0;i0||!n&&r<0)return i.index}return null}function zR(t,e){const{chart:n,_cachedMeta:o}=t,i=n._stacks||(n._stacks={}),{iScale:r,vScale:s,index:a}=o,l=r.axis,c=s.axis,u=$pe(r,s,o),d=e.length;let h;for(let p=0;pn[o].axis===e).shift()}function Lpe(t,e){return zs(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Ape(t,e,n){return zs(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function au(t,e){const n=t.controller.index,o=t.vScale&&t.vScale.axis;if(o){e=e||t._parsed;for(const i of e){const r=i._stacks;if(!r||r[o]===void 0||r[o][n]===void 0)return;delete r[o][n],r[o]._visualValues!==void 0&&r[o]._visualValues[n]!==void 0&&delete r[o]._visualValues[n]}}}const pb=t=>t==="reset"||t==="none",VR=(t,e)=>e?t:Object.assign({},t),Npe=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Qj(n,!0),values:null};class td{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=AR(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&au(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),i=(d,h,p,g)=>d==="x"?h:d==="r"?g:p,r=n.xAxisID=ut(o.xAxisID,fb(e,"x")),s=n.yAxisID=ut(o.yAxisID,fb(e,"y")),a=n.rAxisID=ut(o.rAxisID,fb(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,r,s,a),u=n.vAxisID=i(l,s,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&CR(this._data,this),e._stacked&&au(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(pt(n))this._data=Dpe(n);else if(o!==n){if(o){CR(o,this);const i=this._cachedMeta;au(i),i._parsed=[]}n&&Object.isExtensible(n)&&xfe(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let i=!1;this._dataCheck();const r=n._stacked;n._stacked=AR(n.vScale,n),n.stack!==o.stack&&(i=!0,au(n),n.stack=o.stack),this._resyncElements(e),(i||r!==n._stacked)&&zR(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:i}=this,{iScale:r,_stacked:s}=o,a=r.axis;let l=e===0&&n===i.length?!0:o._sorted,c=e>0&&o._parsed[e-1],u,d,h;if(this._parsing===!1)o._parsed=i,o._sorted=!0,h=i;else{Ht(i[e])?h=this.parseArrayData(o,i,e,n):pt(i[e])?h=this.parseObjectData(o,i,e,n):h=this.parsePrimitiveData(o,i,e,n);const p=()=>d[a]===null||c&&d[a]m||d=0;--h)if(!g()){this.updateRangeFromParsed(c,e,p,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let i,r,s;for(i=0,r=n.length;i=0&&ethis.getContext(o,i,n),m=c.resolveNamedOptions(h,p,g,d);return m.$shared&&(m.$shared=l,r[s]=Object.freeze(VR(m,l))),m}_resolveAnimations(e,n,o){const i=this.chart,r=this._cachedDataOpts,s=`animation-${n}`,a=r[s];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,o,n))}const c=new Yj(i,l&&l.animations);return l&&l._cacheable&&(r[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||pb(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),i=this._sharedOptions,r=this.getSharedOptions(o),s=this.includeOptions(n,r)||r!==i;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:s}}updateElement(e,n,o,i){pb(i)?Object.assign(e,o):this._resolveAnimations(n,i).update(e,o)}updateSharedOptions(e,n,o){e&&!pb(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,i){e.active=i;const r=this.getStyle(n,i);this._resolveAnimations(n,o,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=o.length,r=n.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,e):r{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(r),a=e;a0&&this.getParsed(n-1);for(let k=0;k=y){M.skip=!0;continue}const _=this.getParsed(k),R=Nt(_[p]),O=M[h]=s.getPixelForValue(_[h],k),I=M[p]=r||R?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,_,l):_[p],k);M.skip=isNaN(O)||isNaN(I)||R,M.stop=k>0&&Math.abs(_[h]-C[h])>b,m&&(M.parsed=_,M.raw=c.data[k]),d&&(M.options=u||this.resolveDataElementOptions(k,P.active?"active":i)),v||this.updateElement(P,k,M,i),C=_}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return o;const r=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,r,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}et(Sp,"id","line"),et(Sp,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),et(Sp,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Gs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class QC{constructor(e){et(this,"options");this.options=e||{}}static override(e){Object.assign(QC.prototype,e)}init(){}formats(){return Gs()}parse(){return Gs()}format(){return Gs()}add(){return Gs()}diff(){return Gs()}startOf(){return Gs()}endOf(){return Gs()}}var zpe={_date:QC};function Vpe(t,e,n,o){const{controller:i,data:r,_sorted:s}=t,a=i._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&s&&r.length){const l=a._reversePixels?bfe:aa;if(o){if(i._sharedOptions){const c=r[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(r,e,n-u),h=l(r,e,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(r,e,n)}return{lo:0,hi:r.length-1}}function Eh(t,e,n,o,i){const r=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=r.length;a{l[s](e[n],i)&&(r.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,i))}),o&&!a?[]:r}var Upe={evaluateInteractionItems:Eh,modes:{index(t,e,n,o){const i=ea(e,t),r=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?mb(t,i,r,o,s):gb(t,i,r,!1,o,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,o){const i=ea(e,t),r=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?mb(t,i,r,o,s):gb(t,i,r,!1,o,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===e)}function HR(t,e){return t.filter(n=>Xj.indexOf(n.pos)===-1&&n.box.axis===e)}function cu(t,e){return t.sort((n,o)=>{const i=e?o:n,r=e?n:o;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function qpe(t){const e=[];let n,o,i,r,s,a;for(n=0,o=(t||[]).length;nc.box.fullSize),!0),o=cu(lu(e,"left"),!0),i=cu(lu(e,"right")),r=cu(lu(e,"top"),!0),s=cu(lu(e,"bottom")),a=HR(e,"x"),l=HR(e,"y");return{fullSize:n,leftAndTop:o.concat(r),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:lu(e,"chartArea"),vertical:o.concat(i).concat(l),horizontal:r.concat(s).concat(a)}}function WR(t,e,n,o){return Math.max(t[n],e[n])+Math.max(t[o],e[o])}function Jj(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Qpe(t,e,n,o){const{pos:i,box:r}=n,s=t.maxPadding;if(!pt(i)){n.size&&(t[i]-=n.size);const d=o[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?r.height:r.width),n.size=d.size/d.count,t[i]+=n.size}r.getPadding&&Jj(s,r.getPadding());const a=Math.max(0,e.outerWidth-WR(s,t,"left","right")),l=Math.max(0,e.outerHeight-WR(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Xpe(t){const e=t.maxPadding;function n(o){const i=Math.max(e[o]-t[o],0);return t[o]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Jpe(t,e){const n=e.maxPadding;function o(i){const r={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{r[s]=Math.max(e[s],n[s])}),r}return o(t?["left","right"]:["top","bottom"])}function ku(t,e,n,o){const i=[];let r,s,a,l,c,u;for(r=0,s=t.length,c=0;r{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:r,availableHeight:s,vBoxMaxWidth:r/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},i);Jj(h,Kn(o));const p=Object.assign({maxPadding:h,w:r,h:s,x:i.left,y:i.top},i),g=Kpe(l.concat(c),d);ku(a.fullSize,p,d,g),ku(l,p,d,g),ku(c,p,d,g)&&ku(l,p,d,g),Xpe(p),UR(a.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,UR(a.rightAndBottom,p,d,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},St(a.chartArea,m=>{const b=m.box;Object.assign(b,t.chartArea),b.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Zj{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,o){}removeEventListener(e,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,o,i){return n=Math.max(0,n||e.width),o=o||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):o)}}isAttached(e){return!0}updateConfig(e){}}class Zpe extends Zj{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const kp="$chartjs",eme={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},qR=t=>t===null||t==="";function tme(t,e){const n=t.style,o=t.getAttribute("height"),i=t.getAttribute("width");if(t[kp]={initial:{height:o,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",qR(i)){const r=IR(t,"width");r!==void 0&&(t.width=r)}if(qR(o))if(t.style.height==="")t.height=t.width/(e||2);else{const r=IR(t,"height");r!==void 0&&(t.height=r)}return t}const eL=mpe?{passive:!0}:!1;function nme(t,e,n){t.addEventListener(e,n,eL)}function ome(t,e,n){t.canvas.removeEventListener(e,n,eL)}function ime(t,e){const n=eme[t.type]||t.type,{x:o,y:i}=ea(t,e);return{type:n,chart:e,native:t,x:o!==void 0?o:null,y:i!==void 0?i:null}}function Vm(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function rme(t,e,n){const o=t.canvas,i=new MutationObserver(r=>{let s=!1;for(const a of r)s=s||Vm(a.addedNodes,o),s=s&&!Vm(a.removedNodes,o);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function sme(t,e,n){const o=t.canvas,i=new MutationObserver(r=>{let s=!1;for(const a of r)s=s||Vm(a.removedNodes,o),s=s&&!Vm(a.addedNodes,o);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ud=new Map;let GR=0;function tL(){const t=window.devicePixelRatio;t!==GR&&(GR=t,Ud.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function ame(t,e){Ud.size||window.addEventListener("resize",tL),Ud.set(t,e)}function lme(t){Ud.delete(t),Ud.size||window.removeEventListener("resize",tL)}function cme(t,e,n){const o=t.canvas,i=o&&YC(o);if(!i)return;const r=Fj((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||r(c,u)});return s.observe(i),ame(t,r),s}function vb(t,e,n){n&&n.disconnect(),e==="resize"&&lme(t)}function ume(t,e,n){const o=t.canvas,i=Fj(r=>{t.ctx!==null&&n(ime(r,t))},t);return nme(o,e,i),i}class dme extends Zj{acquireContext(e,n){const o=e&&e.getContext&&e.getContext("2d");return o&&o.canvas===e?(tme(e,n),o):null}releaseContext(e){const n=e.canvas;if(!n[kp])return!1;const o=n[kp].initial;["height","width"].forEach(r=>{const s=o[r];Nt(s)?n.removeAttribute(r):n.setAttribute(r,s)});const i=o.style||{};return Object.keys(i).forEach(r=>{n.style[r]=i[r]}),n.width=n.width,delete n[kp],!0}addEventListener(e,n,o){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),s={attach:rme,detach:sme,resize:cme}[n]||ume;i[n]=s(e,n,o)}removeEventListener(e,n){const o=e.$proxies||(e.$proxies={}),i=o[n];if(!i)return;({attach:vb,detach:vb,resize:vb}[n]||ome)(e,n,i),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,o,i){return ppe(e,n,o,i)}isAttached(e){const n=YC(e);return!!(n&&n.isConnected)}}function hme(t){return!KC()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Zpe:dme}var Zf;let Ka=(Zf=class{constructor(){et(this,"x");et(this,"y");et(this,"active",!1);et(this,"options");et(this,"$animations")}tooltipPosition(e){const{x:n,y:o}=this.getProps(["x","y"],e);return{x:n,y:o}}hasValue(){return Wd(this.x)&&Wd(this.y)}getProps(e,n){const o=this.$animations;if(!n||!o)return this;const i={};return e.forEach(r=>{i[r]=o[r]&&o[r].active()?o[r]._to:this[r]}),i}},et(Zf,"defaults",{}),et(Zf,"defaultRoutes"),Zf);function fme(t,e){const n=t.options.ticks,o=pme(t),i=Math.min(n.maxTicksLimit||o,o),r=n.major.enabled?gme(e):[],s=r.length,a=r[0],l=r[s-1],c=[];if(s>i)return vme(e,c,r,s/i),c;const u=mme(r,e,i);if(s>0){let d,h;const p=s>1?Math.round((l-a)/(s-1)):null;for(Uf(e,c,u,Nt(p)?0:a-p,a),d=0,h=s-1;di)return l}return Math.max(i,1)}function gme(t){const e=[];let n,o;for(n=0,o=t.length;nt==="left"?"right":t==="right"?"left":t,KR=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,YR=(t,e)=>Math.min(e||t,t);function QR(t,e){const n=[],o=t.length/e,i=t.length;let r=0;for(;rs+a)))return l}function wme(t,e){St(t,n=>{const o=n.gc,i=o.length/2;let r;if(i>e){for(r=0;ro?o:n,o=i&&n>o?n:o,{min:Po(n,Po(o,n)),max:Po(o,Po(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){It(this.options.beforeUpdate,[this])}update(e,n,o){const{beginAtZero:i,grace:r,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qfe(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=r||o<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,p=ri(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/o:p/(o-1),d+6>a&&(a=p/(o-(e.offset?.5:1)),l=this.maxHeight-uu(e.grid)-n.padding-XR(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),s=zC(Math.min(Math.asin(ri((u.highest.height+6)/a,-1,1)),Math.asin(ri(l/c,-1,1))-Math.asin(ri(h/c,-1,1)))),s=Math.max(i,Math.min(r,s))),this.labelRotation=s}afterCalculateLabelRotation(){It(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){It(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:o,title:i,grid:r}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=XR(i,n.options.font);if(a?(e.width=this.maxWidth,e.height=uu(r)+l):(e.height=this.maxHeight,e.width=uu(r)+l),o.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),p=o.padding*2,g=ds(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(a){const v=o.mirror?0:b*d.width+m*h.height;e.height=Math.min(this.maxHeight,e.height+v+p)}else{const v=o.mirror?0:m*d.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+v+p)}this._calculatePadding(c,u,b,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,o,i){const{ticks:{align:r,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;l?c?(h=i*e.width,p=o*n.height):(h=o*e.height,p=i*n.width):r==="start"?p=n.width:r==="end"?h=e.width:r!=="inner"&&(h=e.width/2,p=n.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;r==="start"?(u=0,d=e.height):r==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){It(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,o;for(n=0,o=e.length;n({width:s[R]||0,height:a[R]||0});return{first:_(0),last:_(n-1),widest:_(P),highest:_(M),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return vfe(this._alignToPixels?qs(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*i?a/o:l/i:l*i0}_computeGridLineItems(e){const n=this.axis,o=this.chart,i=this.options,{grid:r,position:s,border:a}=i,l=r.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=uu(r),p=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,v=function(j){return qs(o,j,m)};let y,w,C,k,P,M,_,R,O,I,$,F;if(s==="top")y=v(this.bottom),M=this.bottom-h,R=y-b,I=v(e.top)+b,F=e.bottom;else if(s==="bottom")y=v(this.top),I=e.top,F=v(e.bottom)-b,M=y+b,R=this.top+h;else if(s==="left")y=v(this.right),P=this.right-h,_=y-b,O=v(e.left)+b,$=e.right;else if(s==="right")y=v(this.left),O=e.left,$=v(e.right)-b,P=y+b,_=this.left+h;else if(n==="x"){if(s==="center")y=v((e.top+e.bottom)/2+.5);else if(pt(s)){const j=Object.keys(s)[0],N=s[j];y=v(this.chart.scales[j].getPixelForValue(N))}I=e.top,F=e.bottom,M=y+b,R=M+h}else if(n==="y"){if(s==="center")y=v((e.left+e.right)/2);else if(pt(s)){const j=Object.keys(s)[0],N=s[j];y=v(this.chart.scales[j].getPixelForValue(N))}P=y-b,_=P-h,O=e.left,$=e.right}const E=ut(i.ticks.maxTicksLimit,d),D=Math.max(1,Math.ceil(d/E));for(w=0;w0&&(z-=B/2);break}W={left:z,top:U,width:B+Y.width,height:se+Y.height,color:D.backdropColor}}b.push({label:C,font:R,textOffset:$,options:{rotation:m,color:N,strokeColor:A,strokeWidth:L,textAlign:V,textBaseline:F,translation:[k,P],backdrop:W}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-ds(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:o,mirror:i,padding:r}}=this.options,s=this._getLabelSizes(),a=e+r,l=s.widest.width;let c,u;return n==="left"?i?(u=this.right+r,o==="near"?c="left":o==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,o==="near"?c="right":o==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+r,o==="near"?c="right":o==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,o==="near"?c="left":o==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:o,top:i,width:r,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(o,i,r,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(r=>r.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,o=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,s;const a=(l,c,u)=>{!u.width||!u.color||(o.save(),o.lineWidth=u.width,o.strokeStyle=u.color,o.setLineDash(u.borderDash||[]),o.lineDashOffset=u.borderDashOffset,o.beginPath(),o.moveTo(l.x,l.y),o.lineTo(c.x,c.y),o.stroke(),o.restore())};if(n.display)for(r=0,s=i.length;r{this.draw(r)}}]:[{z:o,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",i=[];let r,s;for(r=0,s=n.length;r{const o=n.split("."),i=o.pop(),r=[t].concat(o).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");en.route(r,i,l,a)})}function Rme(t){return"id"in t&&"defaults"in t}class Tme{constructor(){this.controllers=new qf(td,"datasets",!0),this.elements=new qf(Ka,"elements"),this.plugins=new qf(Object,"plugins"),this.scales=new qf(Ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,o){[...n].forEach(i=>{const r=o||this._getRegistryForType(i);o||r.isForType(i)||r===this.plugins&&i.id?this._exec(e,r,i):St(i,s=>{const a=o||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,n,o){const i=NC(e);It(o["before"+i],[],o),n[e](o),It(o["after"+i],[],o)}_getRegistryForType(e){for(let n=0;nr.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,o),e,"stop"),this._notify(i(o,n),e,"start")}}function Ime(t){const e={},n=[],o=Object.keys(Bi.plugins.items);for(let r=0;r1&&JR(t[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ZR(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Ame(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(o=>o.xAxisID===t||o.yAxisID===t);if(n.length)return ZR(t,"x",n[0])||ZR(t,"y",n[0])}return{}}function Nme(t,e){const n=La[t.type]||{scales:{}},o=e.scales||{},i=hx(t.type,e),r=Object.create(null);return Object.keys(o).forEach(s=>{const a=o[s];if(!pt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=fx(s,a,Ame(s,t),en.scales[a.type]),c=jme(l,i),u=n.scales||{};r[s]=Xu(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||hx(a,e),u=(La[a]||{}).scales||{};Object.keys(u).forEach(d=>{const h=Fme(d,l),p=s[h+"AxisID"]||h;r[p]=r[p]||Object.create(null),Xu(r[p],[{axis:h},o[p],u[d]])})}),Object.keys(r).forEach(s=>{const a=r[s];Xu(a,[en.scales[a.type],en.scale])}),r}function nL(t){const e=t.options||(t.options={});e.plugins=ut(e.plugins,{}),e.scales=Nme(t,e)}function oL(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function zme(t){return t=t||{},t.data=oL(t.data),nL(t),t}const eT=new Map,iL=new Set;function Gf(t,e){let n=eT.get(t);return n||(n=e(),eT.set(t,n),iL.add(n)),n}const du=(t,e,n)=>{const o=Fm(e,n);o!==void 0&&t.add(o)};class Vme{constructor(e){this._config=zme(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=oL(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),nL(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Gf(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Gf(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Gf(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,o=this.type;return Gf(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const o=this._scopeCache;let i=o.get(e);return(!i||n)&&(i=new Map,o.set(e,i)),i}getOptionScopes(e,n,o){const{options:i,type:r}=this,s=this._cachedScopes(e,o),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>du(l,e,d))),u.forEach(d=>du(l,i,d)),u.forEach(d=>du(l,La[r]||{},d)),u.forEach(d=>du(l,en,d)),u.forEach(d=>du(l,ux,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),iL.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,La[n]||{},en.datasets[n]||{},{type:n},en,ux]}resolveNamedOptions(e,n,o,i=[""]){const r={$shared:!0},{resolver:s,subPrefixes:a}=tT(this._resolverCache,e,i);let l=s;if(Hme(s,n)){r.$shared=!1,o=Os(o)?o():o;const c=this.createResolver(e,o,a);l=Mc(s,o,c)}for(const c of n)r[c]=l[c];return r}createResolver(e,n,o=[""],i){const{resolver:r}=tT(this._resolverCache,e,o);return pt(n)?Mc(r,n,void 0,i):r}}function tT(t,e,n){let o=t.get(e);o||(o=new Map,t.set(e,o));const i=n.join();let r=o.get(i);return r||(r={resolver:UC(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},o.set(i,r)),r}const Bme=t=>pt(t)&&Object.getOwnPropertyNames(t).some(e=>Os(t[e]));function Hme(t,e){const{isScriptable:n,isIndexable:o}=Nj(t);for(const i of e){const r=n(i),s=o(i),a=(s||r)&&t[i];if(r&&(Os(a)||Bme(a))||s&&Ht(a))return!0}return!1}var Wme="4.4.1";const Ume=["top","bottom","left","right","chartArea"];function nT(t,e){return t==="top"||t==="bottom"||Ume.indexOf(t)===-1&&e==="x"}function oT(t,e){return function(n,o){return n[t]===o[t]?n[e]-o[e]:n[t]-o[t]}}function iT(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),It(n&&n.onComplete,[t],e)}function qme(t){const e=t.chart,n=e.options.animation;It(n&&n.onProgress,[t],e)}function rL(t){return KC()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Pp={},rT=t=>{const e=rL(t);return Object.values(Pp).filter(n=>n.canvas===e).pop()};function Gme(t,e,n){const o=Object.keys(t);for(const i of o){const r=+i;if(r>=e){const s=t[i];delete t[i],(n>0||r>e)&&(t[r+n]=s)}}}function Kme(t,e,n,o){return!n||t.type==="mouseout"?null:o?e:t}function Kf(t,e,n){return t.options.clip?t[n]:e[n]}function Yme(t,e){const{xScale:n,yScale:o}=t;return n&&o?{left:Kf(n,e,"left"),right:Kf(n,e,"right"),top:Kf(o,e,"top"),bottom:Kf(o,e,"bottom")}:e}var Vr;let _v=(Vr=class{static register(...e){Bi.add(...e),sT()}static unregister(...e){Bi.remove(...e),sT()}constructor(e,n){const o=this.config=new Vme(n),i=rL(e),r=rT(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const s=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||hme(i)),this.platform.updateConfig(o);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=ife(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ome,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Cfe(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Pp[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}hr.listen(this,"complete",iT),hr.listen(this,"progress",qme),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:o,height:i,_aspectRatio:r}=this;return Nt(e)?n&&r?r:i?o/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Bi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():OR(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return _R(this.canvas,this.ctx),this}stop(){return hr.stop(this),this}resize(e,n){hr.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const o=this.options,i=this.canvas,r=o.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,n,r),a=o.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,OR(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),It(o.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};St(n,(o,i)=>{o.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,o=this.scales,i=Object.keys(o).reduce((s,a)=>(s[a]=!1,s),{});let r=[];n&&(r=r.concat(Object.keys(n).map(s=>{const a=n[s],l=fx(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),St(r,s=>{const a=s.options,l=a.id,c=fx(l,a),u=ut(a.type,s.dtype);(a.position===void 0||nT(a.position,c)!==nT(s.dposition))&&(a.position=s.dposition),i[l]=!0;let d=null;if(l in o&&o[l].type===u)d=o[l];else{const h=Bi.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),o[d.id]=d}d.init(a,e)}),St(i,(s,a)=>{s||delete o[a]}),St(o,s=>{si.configure(this,s,s.options),si.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,o=e.length;if(e.sort((i,r)=>i.index-r.index),o>n){for(let i=n;in.length&&delete this._stacks,e.forEach((o,i)=>{n.filter(r=>r===o._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let o,i;for(this._removeUnreferencedMetasets(),o=0,i=n.length;o{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(oT("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){St(this.scales,e=>{si.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!bR(n,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:i,count:r}of n){const s=o==="_removeElements"?-r:r;Gme(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=r=>new Set(e.filter(s=>s[0]===r).map((s,a)=>a+","+s.splice(1).join(","))),i=o(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;si.update(this,this.width,this.height,e);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],St(this.boxes,i=>{o&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,r)=>{i._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,o=e._clip,i=!o.disabled,r=Yme(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&kv(n,{left:o.left===!1?0:r.left-o.left,right:o.right===!1?this.width:r.right+o.right,top:o.top===!1?0:r.top-o.top,bottom:o.bottom===!1?this.height:r.bottom+o.bottom}),e.controller.draw(),i&&Pv(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Sr(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,o,i){const r=Upe.modes[n];return typeof r=="function"?r(this,e,o,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],o=this._metasets;let i=o.filter(r=>r&&r._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},o.push(i)),i}getContext(){return this.$context||(this.$context=zs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const o=this.getDatasetMeta(e);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(e,n){const o=this.getDatasetMeta(e);o.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,o){const i=o?"show":"hide",r=this.getDatasetMeta(e),s=r.controller._resolveAnimations(void 0,i);jm(n)?(r.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),s.update(r,{visible:o}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),hr.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,r,s),e[r]=s},i=(r,s,a)=>{r.offsetX=s,r.offsetY=a,this._eventHandler(r)};St(this.options.events,r=>o(r,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,o=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},i=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),o("resize",r),o("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),o("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){St(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},St(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,o){const i=o?"set":"remove";let r,s,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[s],index:s}});!Dm(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(e,n,o){return this._plugins.notify(this,e,n,o)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,o){const i=this.options.hover,r=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=r(n,e),a=o?e:r(e,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,n){const o={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",o,i)===!1)return;const r=this._handleEvent(e,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,i),(r||o.changed)&&this.render(),this}_handleEvent(e,n,o){const{_active:i=[],options:r}=this,s=n,a=this._getActiveElements(e,i,o,s),l=ufe(e),c=Kme(e,this._lastEvent,o,l);o&&(this._lastEvent=null,It(r.onHover,[e,a,this],this),l&&It(r.onClick,[e,a,this],this));const u=!Dm(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(e,n,o,i){if(e.type==="mouseout")return[];if(!o)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}},et(Vr,"defaults",en),et(Vr,"instances",Pp),et(Vr,"overrides",La),et(Vr,"registry",Bi),et(Vr,"version",Wme),et(Vr,"getChart",rT),Vr);function sT(){return St(_v.instances,t=>t._plugins.invalidate())}function sL(t,e,n=e){t.lineCap=ut(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ut(n.borderDash,e.borderDash)),t.lineDashOffset=ut(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ut(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ut(n.borderWidth,e.borderWidth),t.strokeStyle=ut(n.borderColor,e.borderColor)}function Qme(t,e,n){t.lineTo(n.x,n.y)}function Xme(t){return t.stepped?jfe:t.tension||t.cubicInterpolationMode==="monotone"?Lfe:Qme}function aL(t,e,n={}){const o=t.length,{start:i=0,end:r=o-1}=n,{start:s,end:a}=e,l=Math.max(i,s),c=Math.min(r,a),u=ia&&r>a;return{count:o,start:l,loop:e.loop,ilen:c(s+(c?a-C:C))%r,w=()=>{m!==b&&(t.lineTo(u,b),t.lineTo(u,m),t.lineTo(u,v))};for(l&&(p=i[y(0)],t.moveTo(p.x,p.y)),h=0;h<=a;++h){if(p=i[y(h)],p.skip)continue;const C=p.x,k=p.y,P=C|0;P===g?(kb&&(b=k),u=(d*u+C)/++d):(w(),t.lineTo(C,k),g=P,d=0,m=b=k),v=k}w()}function px(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?Zme:Jme}function ege(t){return t.stepped?gpe:t.tension||t.cubicInterpolationMode==="monotone"?vpe:ta}function tge(t,e,n,o){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,o)&&i.closePath()),sL(t,e.options),t.stroke(i)}function nge(t,e,n,o){const{segments:i,options:r}=e,s=px(e);for(const a of i)sL(t,r,a.style),t.beginPath(),s(t,e,a,{start:n,end:n+o-1})&&t.closePath(),t.stroke()}const oge=typeof Path2D=="function";function ige(t,e,n,o){oge&&!e.options.segment?tge(t,e,n,o):nge(t,e,n,o)}class hs extends Ka{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const i=o.spanGaps?this._loop:this._fullLoop;lpe(this._points,o,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Spe(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,o=e.length;return o&&n[e[o-1].end]}interpolate(e,n){const o=this.options,i=e[n],r=this.points,s=Kj(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=ege(o);let c,u;for(c=0,u=s.length;ce!=="borderDash"&&e!=="fill"});function aT(t,e,n,o){const i=t.options,{[n]:r}=t.getProps([n],o);return Math.abs(e-r){a=XC(s,a,i);const l=i[s],c=i[a];o!==null?(r.push({x:l.x,y:o}),r.push({x:c.x,y:o})):n!==null&&(r.push({x:n,y:l.y}),r.push({x:n,y:c.y}))}),r}function XC(t,e,n){for(;e>t;e--){const o=n[e];if(!isNaN(o.x)&&!isNaN(o.y))break}return e}function lT(t,e,n,o){return t&&e?o(t[n],e[n]):t?t[n]:e?e[n]:0}function lL(t,e){let n=[],o=!1;return Ht(t)?(o=!0,n=t):n=sge(t,e),n.length?new hs({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function cT(t){return t&&t.fill!==!1}function age(t,e,n){let i=t[e].fill;const r=[e];let s;if(!n)return i;for(;i!==!1&&r.indexOf(i)===-1;){if(!Zt(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;r.push(i),i=s.fill}return!1}function lge(t,e,n){const o=hge(t);if(pt(o))return isNaN(o.value)?!1:o;let i=parseFloat(o);return Zt(i)&&Math.floor(i)===i?cge(o[0],e,i,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function cge(t,e,n,o){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=o?!1:n}function uge(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:pt(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function dge(t,e,n){let o;return t==="start"?o=n:t==="end"?o=e.options.reverse?e.min:e.max:pt(t)?o=t.value:o=e.getBaseValue(),o}function hge(t){const e=t.options,n=e.fill;let o=ut(n&&n.target,n);return o===void 0&&(o=!!e.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function fge(t){const{scale:e,index:n,line:o}=t,i=[],r=o.segments,s=o.points,a=pge(e,n);a.push(lL({x:null,y:e.bottom},o));for(let l=0;l=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(r,a.axis),o&&a.fill&&bb(t.ctx,a,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=t.getSortedVisibleDatasetMetas();for(let i=o.length-1;i>=0;--i){const r=o[i].$filler;cT(r)&&bb(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const o=e.meta.$filler;!cT(o)||n.drawTime!=="beforeDatasetDraw"||bb(t.ctx,o,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const fT=(t,e)=>{let{boxHeight:n=e,boxWidth:o=e}=t;return t.usePointStyle&&(n=Math.min(n,e),o=t.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(e,n)}},Pge=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class pT extends Ka{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,o){this.maxWidth=e,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=It(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(o=>e.filter(o,this.chart.data))),e.sort&&(n=n.sort((o,i)=>e.sort(o,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const o=e.labels,i=wn(o.font),r=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=fT(o,r);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,o,i){const{ctx:r,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=e;r.textAlign="left",r.textBaseline="middle";let h=-1,p=-u;return this.legendItems.forEach((g,m)=>{const b=o+n/2+r.measureText(g.text).width;(m===0||c[c.length-1]+b+2*a>s)&&(d+=u,c[c.length-(m>0?0:1)]=0,p+=u,h++),l[m]={left:0,top:p,row:h,width:b,height:i},c[c.length-1]+=b+a}),d}_fitCols(e,n,o,i){const{ctx:r,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,h=0,p=0,g=0,m=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:w}=Mge(o,n,r,b,i);v>0&&p+w+2*a>u&&(d+=h+a,c.push({width:h,height:p}),g+=h+a,m++,h=p=0),l[v]={left:g,top:p,col:m,width:y,height:w},h=Math.max(h,y),p+=w+a}),d+=h,c.push({width:h,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:i},rtl:r}}=this,s=Hl(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=Hn(o,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Hn(o,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+e+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Hn(o,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Hn(o,this.top+e+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;kv(e,this),this._draw(),Pv(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:o,ctx:i}=this,{align:r,labels:s}=e,a=en.color,l=Hl(e.rtl,this.left,this.width),c=wn(s.font),{padding:u}=s,d=c.size,h=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=fT(s,d),v=function(P,M,_){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const R=ut(_.lineWidth,1);if(i.fillStyle=ut(_.fillStyle,a),i.lineCap=ut(_.lineCap,"butt"),i.lineDashOffset=ut(_.lineDashOffset,0),i.lineJoin=ut(_.lineJoin,"miter"),i.lineWidth=R,i.strokeStyle=ut(_.strokeStyle,a),i.setLineDash(ut(_.lineDash,[])),s.usePointStyle){const O={radius:m*Math.SQRT2/2,pointStyle:_.pointStyle,rotation:_.rotation,borderWidth:R},I=l.xPlus(P,g/2),$=M+h;Lj(i,O,I,$,s.pointStyleWidth&&g)}else{const O=M+Math.max((d-m)/2,0),I=l.leftForLtr(P,g),$=Bl(_.borderRadius);i.beginPath(),Object.values($).some(F=>F!==0)?Nm(i,{x:I,y:O,w:g,h:m,radius:$}):i.rect(I,O,g,m),i.fill(),R!==0&&i.stroke()}i.restore()},y=function(P,M,_){Aa(i,_.text,P,M+b/2,c,{strikethrough:_.hidden,textAlign:l.textAlign(_.textAlign)})},w=this.isHorizontal(),C=this._computeTitleHeight();w?p={x:Hn(r,this.left+u,this.right-o[0]),y:this.top+u+C,line:0}:p={x:this.left+u,y:Hn(r,this.top+C+u,this.bottom-n[0].height),line:0},Wj(this.ctx,e.textDirection);const k=b+u;this.legendItems.forEach((P,M)=>{i.strokeStyle=P.fontColor,i.fillStyle=P.fontColor;const _=i.measureText(P.text).width,R=l.textAlign(P.textAlign||(P.textAlign=s.textAlign)),O=g+h+_;let I=p.x,$=p.y;l.setWidth(this.width),w?M>0&&I+O+u>this.right&&($=p.y+=k,p.line++,I=p.x=Hn(r,this.left+u,this.right-o[p.line])):M>0&&$+k>this.bottom&&(I=p.x=I+n[p.line].width+u,p.line++,$=p.y=Hn(r,this.top+C+u,this.bottom-n[p.line].height));const F=l.x(I);if(v(F,$,P),I=Sfe(R,I+g+h,w?I+O:this.right,e.rtl),y(l.x(I),$,P),w)p.x+=O+u;else if(typeof P.text!="string"){const E=c.lineHeight;p.y+=uL(P,E)+u}else p.y+=k}),Uj(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,o=wn(n.font),i=Kn(n.padding);if(!n.display)return;const r=Hl(e.rtl,this.left,this.width),s=this.ctx,a=n.position,l=o.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Hn(e.align,d,this.right-h);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);u=c+Hn(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const p=Hn(a,d,d+h);s.textAlign=r.textAlign(BC(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,Aa(s,n.text,p,u,o)}_computeTitleHeight(){const e=this.options.title,n=wn(e.font),o=Kn(e.padding);return e.display?n.lineHeight+o.height:0}_getLegendItemAt(e,n){let o,i,r;if(_l(e,this.left,this.right)&&_l(n,this.top,this.bottom)){for(r=this.legendHitBoxes,o=0;or.length>s.length?r:s)),e+n.size/2+o.measureText(i).width}function Rge(t,e,n){let o=t;return typeof e.text!="string"&&(o=uL(e,n)),o}function uL(t,e){const n=t.text?t.text.length:0;return e*n}function Tge(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Oge={id:"legend",_element:pT,start(t,e,n){const o=t.legend=new pT({ctx:t.ctx,options:n,chart:t});si.configure(t,o,n),si.addBox(t,o)},stop(t){si.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const o=t.legend;si.configure(t,o,n),o.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const o=e.datasetIndex,i=n.chart;i.isDatasetVisible(o)?(i.hide(o),e.hidden=!0):(i.show(o),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:i,color:r,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Kn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:o||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dL extends Ka{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=Ht(o.text)?o.text.length:1;this._padding=Kn(o.padding);const r=i*wn(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:o,bottom:i,right:r,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=Hn(a,o,r),d=n+e,c=r-o):(s.position==="left"?(u=o+e,d=Hn(a,i,n),l=pn*-.5):(u=r-e,d=Hn(a,n,i),l=pn*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const o=wn(n.font),r=o.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);Aa(e,n.text,0,0,o,{color:n.color,maxWidth:l,rotation:c,textAlign:BC(n.align),textBaseline:"middle",translation:[s,a]})}}function Ige(t,e){const n=new dL({ctx:t.ctx,options:e,chart:t});si.configure(t,n,e),si.addBox(t,n),t.titleBlock=n}var Ege={id:"title",_element:dL,start(t,e,n){Ige(t,n)},stop(t){const e=t.titleBlock;si.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const o=t.titleBlock;si.configure(t,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Pu={average(t){if(!t.length)return!1;let e,n,o=0,i=0,r=0;for(e=0,n=t.length;e-1?t.split(` +`):t}function Dge(t,e){const{element:n,datasetIndex:o,index:i}=e,r=t.getDatasetMeta(o).controller,{label:s,value:a}=r.getLabelAndValue(i);return{chart:t,label:s,parsed:r.getParsed(i),raw:t.data.datasets[o].data[i],formattedValue:a,dataset:r.getDataset(),dataIndex:i,datasetIndex:o,element:n}}function mT(t,e){const n=t.chart.ctx,{body:o,footer:i,title:r}=t,{boxWidth:s,boxHeight:a}=e,l=wn(e.bodyFont),c=wn(e.titleFont),u=wn(e.footerFont),d=r.length,h=i.length,p=o.length,g=Kn(e.padding);let m=g.height,b=0,v=o.reduce((C,k)=>C+k.before.length+k.lines.length+k.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){const C=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=p*C+(v-p)*l.lineHeight+(v-1)*e.bodySpacing}h&&(m+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let y=0;const w=function(C){b=Math.max(b,n.measureText(C).width+y)};return n.save(),n.font=c.string,St(t.title,w),n.font=l.string,St(t.beforeBody.concat(t.afterBody),w),y=e.displayColors?s+2+e.boxPadding:0,St(o,C=>{St(C.before,w),St(C.lines,w),St(C.after,w)}),y=0,n.font=u.string,St(t.footer,w),n.restore(),b+=g.width,{width:b,height:m}}function $ge(t,e){const{y:n,height:o}=e;return nt.height-o/2?"bottom":"center"}function Fge(t,e,n,o){const{x:i,width:r}=o,s=n.caretSize+n.caretPadding;if(t==="left"&&i+r+s>e.width||t==="right"&&i-r-s<0)return!0}function jge(t,e,n,o){const{x:i,width:r}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return o==="center"?c=i<=(a+l)/2?"left":"right":i<=r/2?c="left":i>=s-r/2&&(c="right"),Fge(c,t,e,n)&&(c="center"),c}function gT(t,e,n){const o=n.yAlign||e.yAlign||$ge(t,n);return{xAlign:n.xAlign||e.xAlign||jge(t,e,n,o),yAlign:o}}function Lge(t,e){let{x:n,width:o}=t;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function Age(t,e,n){let{y:o,height:i}=t;return e==="top"?o+=n:e==="bottom"?o-=i+n:o-=i/2,o}function vT(t,e,n,o){const{caretSize:i,caretPadding:r,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=i+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Bl(s);let g=Lge(e,a);const m=Age(e,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,h)+i:a==="right"&&(g+=Math.max(d,p)+i),{x:ri(g,0,o.width-e.width),y:ri(m,0,o.height-e.height)}}function Yf(t,e,n){const o=Kn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-o.right:t.x+o.left}function bT(t){return Ni([],fr(t))}function Nge(t,e,n){return zs(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function yT(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const hL={beforeTitle:ur,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex"u"?hL[e].call(n,o):i}class gx extends Ka{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),i=o.enabled&&n.options.animation&&o.animations,r=new Yj(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Nge(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,i=lo(o,"beforeTitle",this,e),r=lo(o,"title",this,e),s=lo(o,"afterTitle",this,e);let a=[];return a=Ni(a,fr(i)),a=Ni(a,fr(r)),a=Ni(a,fr(s)),a}getBeforeBody(e,n){return bT(lo(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,i=[];return St(e,r=>{const s={before:[],lines:[],after:[]},a=yT(o,r);Ni(s.before,fr(lo(a,"beforeLabel",this,r))),Ni(s.lines,lo(a,"label",this,r)),Ni(s.after,fr(lo(a,"afterLabel",this,r))),i.push(s)}),i}getAfterBody(e,n){return bT(lo(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,i=lo(o,"beforeFooter",this,e),r=lo(o,"footer",this,e),s=lo(o,"afterFooter",this,e);let a=[];return a=Ni(a,fr(i)),a=Ni(a,fr(r)),a=Ni(a,fr(s)),a}_createItems(e){const n=this._active,o=this.chart.data,i=[],r=[],s=[];let a=[],l,c;for(l=0,c=n.length;le.filter(u,d,h,o))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,o))),St(a,u=>{const d=yT(e.callbacks,u);i.push(lo(d,"labelColor",this,u)),r.push(lo(d,"labelPointStyle",this,u)),s.push(lo(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=a,a}update(e,n){const o=this.options.setContext(this.getContext()),i=this._active;let r,s=[];if(!i.length)this.opacity!==0&&(r={opacity:0});else{const a=Pu[o.position].call(this,i,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const l=this._size=mT(this,o),c=Object.assign({},a,l),u=gT(this.chart,o,c),d=vT(o,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,i){const r=this.getCaretPosition(e,o,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:i,yAlign:r}=this,{caretSize:s,cornerRadius:a}=o,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Bl(a),{x:h,y:p}=e,{width:g,height:m}=n;let b,v,y,w,C,k;return r==="center"?(C=p+m/2,i==="left"?(b=h,v=b-s,w=C+s,k=C-s):(b=h+g,v=b+s,w=C-s,k=C+s),y=b):(i==="left"?v=h+Math.max(l,u)+s:i==="right"?v=h+g-Math.max(c,d)-s:v=this.caretX,r==="top"?(w=p,C=w-s,b=v-s,y=v+s):(w=p+m,C=w+s,b=v+s,y=v-s),k=w),{x1:b,x2:v,x3:y,y1:w,y2:C,y3:k}}drawTitle(e,n,o){const i=this.title,r=i.length;let s,a,l;if(r){const c=Hl(o.rtl,this.x,this.width);for(e.x=Yf(this,o.titleAlign,o),n.textAlign=c.textAlign(o.titleAlign),n.textBaseline="middle",s=wn(o.titleFont),a=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,l=0;ly!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Nm(e,{x:m,y:g,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Nm(e,{x:b,y:g+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(m,g,c,l),e.strokeRect(m,g,c,l),e.fillStyle=s.backgroundColor,e.fillRect(b,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:i}=this,{bodySpacing:r,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=o,d=wn(o.bodyFont);let h=d.lineHeight,p=0;const g=Hl(o.rtl,this.x,this.width),m=function(_){n.fillText(_,g.x(e.x+p),e.y+h/2),e.y+=h+r},b=g.textAlign(s);let v,y,w,C,k,P,M;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,e.x=Yf(this,b,o),n.fillStyle=o.bodyColor,St(this.beforeBody,m),p=a&&b!=="right"?s==="center"?c/2+u:c+2+u:0,C=0,P=i.length;C0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,i=o&&o.x,r=o&&o.y;if(i||r){const s=Pu[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=mT(this,e),l=Object.assign({},s,this._size),c=gT(n,e,l),u=vT(e,l,c,n);(i._to!==u.x||r._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=Kn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,i,n),Wj(e,n.textDirection),r.y+=s.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Uj(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,i=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),r=!Dm(o,i),s=this._positionChanged(i,n);(r||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],s=this._getActiveElements(e,r,n,o),a=this._positionChanged(s,e),l=n||!Dm(s,r)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,o,i){const r=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:o,caretY:i,options:r}=this,s=Pu[r.position].call(this,e,n);return s!==!1&&(o!==s.x||i!==s.y)}}et(gx,"positioners",Pu);var zge={id:"tooltip",_element:gx,positioners:Pu,afterInit(t,e,n){n&&(t.tooltip=new gx({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hL},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Vge=(t,e,n,o)=>(typeof e=="string"?(n=t.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function Bge(t,e,n,o){const i=t.indexOf(e);if(i===-1)return Vge(t,e,n,o);const r=t.lastIndexOf(e);return i!==r?n:i}const Hge=(t,e)=>t===null?null:ri(Math.round(t),0,e);function xT(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}et(vx,"id","category"),et(vx,"defaults",{ticks:{callback:xT}});function Wge(t,e){const n=[],{bounds:i,step:r,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,p=r||1,g=u-1,{min:m,max:b}=e,v=!Nt(s),y=!Nt(a),w=!Nt(c),C=(b-m)/(d+1);let k=xR((b-m)/g/p)*p,P,M,_,R;if(k<1e-14&&!v&&!y)return[{value:m},{value:b}];R=Math.ceil(b/k)-Math.floor(m/k),R>g&&(k=xR(R*k/g/p)*p),Nt(l)||(P=Math.pow(10,l),k=Math.ceil(k*P)/P),i==="ticks"?(M=Math.floor(m/k)*k,_=Math.ceil(b/k)*k):(M=m,_=b),v&&y&&r&&pfe((a-s)/r,k/1e3)?(R=Math.round(Math.min((a-s)/k,u)),k=(a-s)/R,M=s,_=a):w?(M=v?s:M,_=y?a:_,R=c-1,k=(_-M)/R):(R=(_-M)/k,Ju(R,Math.round(R),k/1e3)?R=Math.round(R):R=Math.ceil(R));const O=Math.max(wR(k),wR(M));P=Math.pow(10,Nt(l)?O:l),M=Math.round(M*P)/P,_=Math.round(_*P)/P;let I=0;for(v&&(h&&M!==s?(n.push({value:s}),Ma)break;n.push({value:$})}return y&&h&&_!==a?n.length&&Ju(n[n.length-1].value,a,wT(a,C,t))?n[n.length-1].value=a:n.push({value:a}):(!y||_===a)&&n.push({value:_}),n}function wT(t,e,{horizontal:n,minRotation:o}){const i=ds(o),r=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/r,s)}class Bm extends Ya{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Nt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:i,max:r}=this;const s=l=>i=n?i:l,a=l=>r=o?r:l;if(e){const l=Pc(i),c=Pc(r);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||s(i-l)}this.min=i,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=e,i;return o?(i=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let o=this.getTickLimit();o=Math.max(2,o);const i={maxTicks:o,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,s=Wge(i,r);return e.bounds==="ticks"&&Ij(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&e.length){const i=(o-n)/Math.max(e.length-1,1)/2;n-=i,o+=i}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(e){return WC(e,this.chart.options.locale,this.options.ticks.format)}}class bx extends Bm{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Zt(e)?e:0,this.max=Zt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=ds(this.options.ticks.minRotation),i=(e?Math.sin(o):Math.cos(o))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}et(bx,"id","linear"),et(bx,"defaults",{ticks:{callback:Sv.formatters.numeric}});const qd=t=>Math.floor(us(t)),Ks=(t,e)=>Math.pow(10,qd(t)+e);function CT(t){return t/Math.pow(10,qd(t))===1}function ST(t,e,n){const o=Math.pow(10,n),i=Math.floor(t/o);return Math.ceil(e/o)-i}function Uge(t,e){const n=e-t;let o=qd(n);for(;ST(t,e,o)>10;)o++;for(;ST(t,e,o)<10;)o--;return Math.min(o,qd(t))}function qge(t,{min:e,max:n}){e=Po(t.min,e);const o=[],i=qd(e);let r=Uge(e,n),s=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=i>r?Math.pow(10,i):0,c=Math.round((e-l)*s)/s,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,r)),h=Po(t.min,Math.round((l+u+d*Math.pow(10,r))*s)/s);for(;h=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,s=r>=0?1:s),h=Math.round((l+u+d*Math.pow(10,r))*s)/s;const p=Po(t.max,h);return o.push({value:p,major:CT(p),significand:d}),o}class kT extends Ya{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const o=Bm.prototype.parse.apply(this,[e,n]);if(o===0){this._zero=!0;return}return Zt(o)&&o>0?o:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Zt(e)?Math.max(0,e):null,this.max=Zt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Zt(this._userMin)&&(this.min=e===Ks(this.min,0)?Ks(this.min,-1):Ks(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let o=this.min,i=this.max;const r=a=>o=e?o:a,s=a=>i=n?i:a;o===i&&(o<=0?(r(1),s(10)):(r(Ks(o,-1)),s(Ks(i,1)))),o<=0&&r(Ks(i,-1)),i<=0&&s(Ks(o,1)),this.min=o,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},o=qge(n,this);return e.bounds==="ticks"&&Ij(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}getLabelForValue(e){return e===void 0?"0":WC(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=us(e),this._valueRange=us(this.max)-us(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(us(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}et(kT,"id","logarithmic"),et(kT,"defaults",{ticks:{callback:Sv.formatters.logarithmic,major:{enabled:!0}}});function yx(t){const e=t.ticks;if(e.display&&t.display){const n=Kn(e.backdropPadding);return ut(e.font&&e.font.size,en.font.size)+n.height}return 0}function Gge(t,e,n){return n=Ht(n)?n:[n],{w:Ffe(t,e.string,n),h:n.length*e.lineHeight}}function PT(t,e,n,o,i){return t===o||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function Kge(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),o=[],i=[],r=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?pn/r:0;for(let l=0;le.r&&(a=(o.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),i.starte.b&&(l=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function Qge(t,e,n){const o=t.drawingArea,{extra:i,additionalAngle:r,padding:s,size:a}=n,l=t.getPointPosition(e,o+i+s,r),c=Math.round(zC(Eo(l.angle+Fo))),u=tve(l.y,a.h,c),d=Zge(c),h=eve(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+a.w,bottom:u+a.h}}function Xge(t,e){if(!e)return!0;const{left:n,top:o,right:i,bottom:r}=t;return!(Sr({x:n,y:o},e)||Sr({x:n,y:r},e)||Sr({x:i,y:o},e)||Sr({x:i,y:r},e))}function Jge(t,e,n){const o=[],i=t._pointLabels.length,r=t.options,{centerPointLabels:s,display:a}=r.pointLabels,l={extra:yx(r)/2,additionalAngle:s?pn/i:0};let c;for(let u=0;u270||n<90)&&(t-=e),t}function nve(t,e,n){const{left:o,top:i,right:r,bottom:s}=n,{backdropColor:a}=e;if(!Nt(a)){const l=Bl(e.borderRadius),c=Kn(e.backdropPadding);t.fillStyle=a;const u=o-c.left,d=i-c.top,h=r-o+c.width,p=s-i+c.height;Object.values(l).some(g=>g!==0)?(t.beginPath(),Nm(t,{x:u,y:d,w:h,h:p,radius:l}),t.fill()):t.fillRect(u,d,h,p)}}function ove(t,e){const{ctx:n,options:{pointLabels:o}}=t;for(let i=e-1;i>=0;i--){const r=t._pointLabelItems[i];if(!r.visible)continue;const s=o.setContext(t.getPointLabelContext(i));nve(n,s,r);const a=wn(s.font),{x:l,y:c,textAlign:u}=r;Aa(n,t._pointLabels[i],l,c+a.lineHeight/2,a,{color:s.color,textAlign:u,textBaseline:"middle"})}}function fL(t,e,n,o){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Ao);else{let r=t.getPointPosition(0,e);i.moveTo(r.x,r.y);for(let s=1;s{const i=It(this.options.pointLabels.callback,[n,o],this);return i||i===0?i:""}).filter((n,o)=>this.chart.getDataVisibility(o))}fit(){const e=this.options;e.display&&e.pointLabels.display?Kge(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,o,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((o-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,o,i))}getIndexAngle(e){const n=Ao/(this._pointLabels.length||1),o=this.options.startAngle||0;return Eo(e*n+ds(o))}getDistanceFromCenterForValue(e){if(Nt(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Nt(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),p=i.setContext(h),g=r.setContext(h);ive(this,p,l,s,g)}}),o.display){for(e.save(),a=s-1;a>=0;a--){const u=o.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(e.lineWidth=h,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,o=n.ticks;if(!o.display)return;const i=this.getIndexAngle(0);let r,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=o.setContext(this.getContext(l)),u=wn(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,s=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=Kn(c.backdropPadding);e.fillRect(-s/2-d.left,-r-u.size/2-d.top,s+d.width,u.size+d.height)}Aa(e,a.label,0,-r,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}et(Qf,"id","radialLinear"),et(Qf,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Sv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),et(Qf,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),et(Qf,"descriptors",{angleLines:{_fallback:"grid"}});const Rv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ho=Object.keys(Rv);function MT(t,e){return t-e}function _T(t,e){if(Nt(e))return null;const n=t._adapter,{parser:o,round:i,isoWeekday:r}=t._parseOpts;let s=e;return typeof o=="function"&&(s=o(s)),Zt(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Wd(r)||r===!0)?n.startOf(s,"isoWeek",r):n.startOf(s,i)),+s)}function RT(t,e,n,o){const i=ho.length;for(let r=ho.indexOf(t);r=ho.indexOf(n);r--){const s=ho[r];if(Rv[s].common&&t._adapter.diff(i,o,s)>=e-1)return s}return ho[n?ho.indexOf(n):0]}function ave(t){for(let e=ho.indexOf(t)+1,n=ho.length;e=e?n[o]:n[i];t[r]=!0}}function lve(t,e,n,o){const i=t._adapter,r=+i.startOf(e[0].value,o),s=e[e.length-1].value;let a,l;for(a=r;a<=s;a=+i.add(a,1,o))l=n[a],l>=0&&(e[l].major=!0);return e}function OT(t,e,n){const o=[],i={},r=e.length;let s,a;for(s=0;s+e.value))}initOffsets(e=[]){let n=0,o=0,i,r;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?o=r:o=(r-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=ri(n,0,s),o=ri(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,i=this.options,r=i.time,s=r.unit||RT(r.minUnit,n,o,this._getLabelCapacity(n)),a=ut(i.ticks.stepSize,1),l=s==="week"?r.isoWeekday:!1,c=Wd(l)||l===!0,u={};let d=n,h,p;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":s),e.diff(o,n,s)>1e5*a)throw new Error(n+" and "+o+" are too far apart with stepSize of "+a+" "+s);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,p=0;h+m)}getLabelForValue(e){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(e,o.tooltipFormat):n.format(e,o.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,r=this._unit,s=n||i[r];return this._adapter.format(e,s)}_tickFormatFunction(e,n,o,i){const r=this.options,s=r.ticks.callback;if(s)return It(s,[e,n,o],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=o[n],p=c&&d&&h&&h.major;return this._adapter.format(e,i||(p?d:u))}generateTickLabels(e){let n,o,i;for(n=0,o=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,o;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,o=i.length;n=t[o].pos&&e<=t[i].pos&&({lo:o,hi:i}=aa(t,"pos",e)),{pos:r,time:a}=t[o],{pos:s,time:l}=t[i]):(e>=t[o].time&&e<=t[i].time&&({lo:o,hi:i}=aa(t,"time",e)),{time:r,pos:a}=t[o],{time:s,pos:l}=t[i]);const c=s-r;return c?a+(l-a)*(e-r)/c:a}class IT extends Hm{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Xf(n,this.min),this._tableRange=Xf(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:o}=this,i=[],r=[];let s,a,l,c,u;for(s=0,a=e.length;s=n&&c<=o&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,a=i.length;si-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?e=this.normalize(n.concat(o)):e=n.length?n:o,e=this._cache.all=e,e}getDecimalForValue(e){return(Xf(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return Xf(this._table,o*this._tableRange+this._minPos,!0)}}et(IT,"id","timeseries"),et(IT,"defaults",Hm.defaults);const pL="label";function ET(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function cve(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function mL(t,e){t.labels=e}function gL(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pL;const o=[];t.datasets=e.map(i=>{const r=t.datasets.find(s=>s[n]===i[n]);return!r||!i.data||o.includes(r)?{...i}:(o.push(r),Object.assign(r,i),r)})}function uve(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pL;const n={labels:[],datasets:[]};return mL(n,t.labels),gL(n,t.datasets,e),n}function dve(t,e){const{height:n=150,width:o=300,redraw:i=!1,datasetIdKey:r,type:s,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=t,p=x.useRef(null),g=x.useRef(),m=()=>{p.current&&(g.current=new _v(p.current,{type:s,data:uve(a,r),options:l&&{...l},plugins:c}),ET(e,g.current))},b=()=>{ET(e,null),g.current&&(g.current.destroy(),g.current=null)};return x.useEffect(()=>{!i&&g.current&&l&&cve(g.current,l)},[i,l]),x.useEffect(()=>{!i&&g.current&&mL(g.current.config.data,a.labels)},[i,a.labels]),x.useEffect(()=>{!i&&g.current&&a.datasets&&gL(g.current.config.data,a.datasets,r)},[i,a.datasets]),x.useEffect(()=>{g.current&&(i?(b(),setTimeout(m)):g.current.update(d))},[i,l,a.labels,a.datasets,d]),x.useEffect(()=>{g.current&&(b(),setTimeout(m))},[s]),x.useEffect(()=>(m(),()=>b()),[]),no.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:o},h),u)}const hve=x.forwardRef(dve);function fve(t,e){return _v.register(e),x.forwardRef((n,o)=>no.createElement(hve,Object.assign({},n,{ref:o,type:t})))}const pve=fve("line",Sp),mve=t=>{const{prefersDarkMode:e}=mn(),n=x.useMemo(()=>{const l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c=new Date().getMonth();return[...l.slice(c),...l.slice(0,c)]},[]),o=x.useMemo(()=>{const l=t.reduce((d,h)=>{const p=h.date.slice(0,7);return d[p]=[...d[p]||[],h],d},{});return Object.values(l).map(d=>{const h=d.sort((p,g)=>p.date.localeCompare(g.date));return h[h.length-1]}).map(d=>d.close)},[t]),i=x.useMemo(()=>{const l=Math.max.apply(null,o);return l+l/10},[o]),r=x.useMemo(()=>{const l=Math.min.apply(null,o);return l-l/10},[o]),s={labels:n,datasets:[{fill:!0,label:"Stock Data",lineTension:.5,backgroundColor:e?"rgba(255,255,255,0.3)":"rgba(75,192,192,0.3)",borderColor:e?"rgba(255,255,255,1)":"rgba(75,192,192,1)",borderWidth:2,color:e?"rgba(255,255,255,0.3)":"rgba(75,192,192,0.3)",data:o}]};return{data:s,config:{type:"line",data:s,options:{responsive:!0,plugins:{legend:{display:!1}}},scales:{y:{suggestedMin:r,suggestedMax:i}}}}},gve=({stockData:t})=>{const{data:e,config:n}=mve(t);return _v.register(vx,bx,Mp,hs,kge,Ege,zge,Oge),f.jsx(pve,{data:e,options:n})},vve=({stockData:t})=>f.jsx("div",{className:"p-4 rounded-md lg:p-6 dark:bg-gray-800 bg-gray-50",children:f.jsxs("div",{className:"flex flex-wrap justify-center gap-x-10 gap-y-2 text-xs md:text-sm font-medium",children:[f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Symbol"}),f.jsx("span",{className:"",children:t.symbol})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Name"}),f.jsx("span",{className:"",children:t.name})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Sector"}),f.jsx("span",{className:"",children:t.sector})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Open"}),f.jsx("span",{className:"",children:t.open})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"High"}),f.jsx("span",{className:"",children:t.high})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Low"}),f.jsx("span",{className:"",children:t.low})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Close"}),f.jsx("span",{className:"",children:t.close})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"% Change"}),f.jsx("span",{className:"",children:t.percentage_change})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Volume"}),f.jsx("span",{className:"",children:t.volume})]}),f.jsxs("div",{className:"w-full",children:[f.jsx("span",{className:"inline-block min-w-20",children:"Data as of"}),f.jsx("span",{className:"",children:t.date})]})]})}),bve=()=>{const t=x.useRef(null),e=x.useRef(null),n=x.useRef(null),o=x.useRef(null),i=x.useRef(null),[r,s]=x.useState(""),[a,l]=x.useState(f.jsx(f.Fragment,{})),{fetchUserData:c,userData:u}=mn();return{userData:u,nameRef:t,emailRef:e,passwordRef:n,newPasswordRef:o,confirmPasswordRef:i,navigationPath:r,toastNotification:a,minLength:8,maxNameLength:50,maxEmailLength:50,maxPasswordLength:16,handleOnSubmit:b=>{var M,_,R,O,I;b.preventDefault();const v=((M=t.current)==null?void 0:M.value)??"",y=((_=e.current)==null?void 0:_.value)??"",w=((R=n.current)==null?void 0:R.value)??"",C=((O=o.current)==null?void 0:O.value)??"",k=((I=i.current)==null?void 0:I.value)??"";if(C!==k){l(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>l(f.jsx(f.Fragment,{})),children:"Password and Confirm Password did not match."}));return}const P=new FormData;P.append("name",v),P.append("email",y),P.append("password",w),P.append("new_password",C),P.append("confirm_password",k),fetch(Nse,{method:"POST",body:P,credentials:"include"}).then($=>$.json()).then($=>{l(f.jsx(qt,{variant:"outlined",severity:$.isEverythingOk?"success":"error",icon:!1,onClose:()=>l(f.jsx(f.Fragment,{})),children:Mn($.responseMessage)})),$.isEverythingOk&&(c(),setTimeout(()=>{s("/")},1e3))}).catch($=>{l(f.jsx(qt,{variant:"outlined",severity:"error",icon:!1,onClose:()=>l(f.jsx(f.Fragment,{})),children:Mn($.message)}))})}}},yve=()=>{const t=Fs(),{userData:e,toastNotification:n,nameRef:o,emailRef:i,passwordRef:r,newPasswordRef:s,confirmPasswordRef:a,minLength:l,maxNameLength:c,maxEmailLength:u,maxPasswordLength:d,navigationPath:h,handleOnSubmit:p}=bve();return x.useEffect(()=>{h!==""&&t(h)},[t,h]),e.isLoggedIn?f.jsx("div",{className:"flex flex-col items-center justify-center mx-auto lg:h-full p-1",children:f.jsx("div",{className:"w-full bg-white rounded-md shadow dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700",children:f.jsxs("div",{className:"p-6 space-y-4 md:space-y-6 sm:p-8",children:[n,f.jsx("h1",{className:"text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white",children:"Update user data"}),f.jsxs("form",{className:"max-w-md mx-auto",onSubmit:p,children:[f.jsxs("div",{className:"relative z-0 w-full mb-5 group",children:[f.jsx("input",{type:"text",name:"floating_name",id:"floating_name",ref:o,maxLength:c,className:"block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer",defaultValue:e.name,required:!0}),f.jsxs("label",{htmlFor:"floating_name",className:"peer-focus:font-medium absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6",children:["Name ",f.jsx("span",{className:"text-red-400",children:"*"})]})]}),f.jsxs("div",{className:"relative z-0 w-full mb-5 group",children:[f.jsx("input",{type:"email",name:"floating_email",id:"floating_email",ref:i,maxLength:u,className:"block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer",defaultValue:e.email,required:!0}),f.jsxs("label",{htmlFor:"floating_email",className:"peer-focus:font-medium absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6",children:["Email ",f.jsx("span",{className:"text-red-400",children:"*"})]})]}),f.jsxs("div",{className:"relative z-0 w-full mb-5 group",children:[f.jsx("input",{type:"password",name:"floating_password",id:"floating_password",ref:r,minLength:l,maxLength:d,className:"block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer",placeholder:" ",required:!0}),f.jsxs("label",{htmlFor:"floating_password",className:"peer-focus:font-medium absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 rtl:peer-focus:translate-x-1/4 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6",children:["Password ",f.jsx("span",{className:"text-red-400",children:"*"})]})]}),f.jsxs("div",{className:"relative z-0 w-full mb-5 group",children:[f.jsx("input",{type:"password",name:"new_password",id:"floating_new_password",ref:s,minLength:l,maxLength:d,className:"block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer",placeholder:" "}),f.jsx("label",{htmlFor:"floating_new_password",className:"peer-focus:font-medium absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 rtl:peer-focus:translate-x-1/4 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6",children:"New password"})]}),f.jsxs("div",{className:"relative z-0 w-full mb-5 group",children:[f.jsx("input",{type:"password",name:"repeat_password",id:"floating_repeat_password",ref:a,minLength:l,maxLength:d,className:"block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer",placeholder:" "}),f.jsx("label",{htmlFor:"floating_repeat_password",className:"peer-focus:font-medium absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 rtl:peer-focus:translate-x-1/4 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6",children:"Confirm password"})]}),f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"submit",className:"text-white bg-sky-700 hover:bg-sky-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-sky-600 dark:hover:bg-sky-700 dark:focus:ring-blue-800",children:"Submit"})})]})]})})}):f.jsx(zc,{message:"User is not logged in.",displayHomeBtn:!0,displayLoginBtn:!0})},xve=[{title:"Introduction",description:"Welcome to Hamro Nepse, where we're dedicated to providing users with comprehensive and reliable stock data. Our mission is to empower individuals by delivering real-time information, insightful analysis, and user-friendly tools to navigate the world of stocks and investments."},{title:"Who we are ?",description:"At Hamro Nepse, we're a passionate team of financial enthusiasts, data scientists, and developers committed to making stock data accessible to everyone. We believe that informed decision-making is crucial in the financial landscape, and we strive to be your go-to source for accurate and up-to-date information."},{title:"Our Vision",description:"Our vision is to create a platform that not only offers stock data but also fosters financial literacy and understanding. We envision a community where individuals can make confident decisions about their investments, whether they are seasoned investors or just starting their financial journey."},{title:"Why Choose Us ?",description:"We pride ourselves on delivering accurate and reliable stock data. Our commitment to data integrity ensures that you can trust the information you find on our platform.Navigating the complexities of the stock market can be daunting, but our user-friendly interface is designed to make the experience seamless and enjoyable for users of all levels. Hamro Nepse is an open-source project hosted on GitHub. We believe in transparency and collaboration, and we invite developers and contributors to join us in enhancing and improving our platform."},{title:"Our Commitment to You",description:"Your privacy is our priority. We adhere to strict privacy standards, ensuring that your personal information is handled with care and in compliance with applicable laws. We are constantly working to enhance our platform. Your feedback is valuable to us, and we welcome suggestions for improvements or new features."},{title:"Join Us on This Journey",description:"Whether you're a seasoned investor, a curious beginner, or a developer interested in contributing to an open-source project, we invite you to join us on this journey. Together, let's explore the world of stocks, make informed decisions, and build a community that values financial literacy. We're excited to be a part of your financial exploration."}],wve=()=>f.jsx(Kz,{items:xve}),Cve=()=>f.jsx(jce,{}),Sve=()=>{var l;const t=Sz(),e=decodeURIComponent(((l=t.symbol)==null?void 0:l.toUpperCase())??""),[n,o]=x.useState([]),[i,r]=x.useState(!0),s=x.useMemo(()=>new Date(new Date().setFullYear(new Date().getFullYear()-1)).toISOString().slice(0,10),[]);x.useEffect(()=>{(async()=>{const u=`https://sam.superintegratedapp.com/wp-json/api/stock-data/?selector=stock&selection=${e}&date_from=${s}`;try{const d=await fetch(u,{credentials:"include"});if(!d.ok)throw new Error("Failed to fetch data");const p=(await d.json()).stock_data;o(p)}catch(d){console.log("Error fetching data:",d.message),o([])}finally{r(!1)}})()},[s,e]);const a=x.useMemo(()=>n.length,[n]);return!i&&f.jsx(f.Fragment,{children:a!==0?f.jsx("div",{className:"h-full mb-4",children:f.jsxs("div",{className:"flex flex-wrap gap-5 lg:gap-0",children:[f.jsx("div",{className:"w-full lg:w-1/2",children:f.jsx("div",{className:"me-0 lg:me-5",children:f.jsx(vve,{stockData:n[a-1]})})}),f.jsx("div",{className:"w-full lg:w-1/2",children:f.jsx("div",{className:"min-h-80 h-full w-full",children:f.jsx(gve,{stockData:n})})})]})}):f.jsx(zc,{message:"Stock data not found.",displayHomeBtn:!0,displayLoginBtn:!1})})},kve=()=>{const t={symbol:"*",name:"*",sector:"*",open:"*",high:"*",low:"*",close:"*",percentage_change:"*",volume:"*",date:"*"},{marketData:e}=mn(),[n,o]=x.useState(t),[i,r]=x.useState(t);return{companyOne:n,companyTwo:i,handleCompanyOneChange:l=>{const c=e.find(u=>u.symbol===l.target.value.toUpperCase());o(c?{...n,...c}:t)},handleCompanyTwoChange:l=>{const c=e.find(u=>u.symbol===l.target.value.toUpperCase());r(c?{...i,...c}:t)}}},Pve=()=>{const{companyOne:t,companyTwo:e,handleCompanyOneChange:n,handleCompanyTwoChange:o}=kve();return f.jsx(Qre,{companyOne:t,companyTwo:e,handleCompanyOneChange:n,handleCompanyTwoChange:o})},Mve=()=>f.jsx(Lce,{}),_ve=()=>{const{marketData:t}=mn(),e=Y$(),n=[e.accessor("id",{header:"ID",size:20,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("symbol",{header:"Symbol",size:40,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("name",{header:"Name",size:240,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("open",{header:"Open",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("high",{header:"High",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("low",{header:"Low",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("close",{header:"Close",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("percentage_change",{header:"% Change",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("volume",{header:"Volume",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("turnover",{header:"Turnover",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}})],o=x.useMemo(()=>t.sort((m,b)=>Number(b.turnover)-Number(m.turnover)).slice(0,10).map((m,b)=>({...m,id:b+1,turnover:String(Number(m.volume)*Number(m.close))})),[t]),i=x.useMemo(()=>t.sort((m,b)=>Number(b.volume)-Number(m.volume)).slice(0,10).map((m,b)=>({...m,id:b+1})),[t]),r=x.useMemo(()=>t.sort((m,b)=>Number(b.percentage_change)-Number(m.percentage_change)).slice(0,10).map((m,b)=>({...m,id:b+1})),[t]),s=x.useMemo(()=>t.sort((m,b)=>Number(m.percentage_change)-Number(b.percentage_change)).slice(0,10).map((m,b)=>({...m,id:b+1})),[t]),[a,l]=x.useState(o),[c,u]=x.useState("topTurnover"),d=()=>{l(o),u("topTurnover")},h=()=>{l(i),u("topVolume")},p=()=>{l(r),u("topGainer")},g=()=>{l(s),u("topLoser")};return x.useEffect(()=>{l(o)},[o]),{data:a,columns:n,activeButton:c,onTopTurnoverClick:d,onTopVolumeClick:h,onTopGainerClick:p,onTopLoserClick:g}},Rve=()=>{const{data:t,columns:e,activeButton:n,onTopTurnoverClick:o,onTopVolumeClick:i,onTopGainerClick:r,onTopLoserClick:s}=_ve(),a=[{title:"Top Turnover",slug:"topTurnover",action:o},{title:"Top Volume",slug:"topVolume",action:i},{title:"Top Gainers",slug:"topGainer",action:r},{title:"Top Losers",slug:"topLoser",action:s}];return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"grid mx-auto text-gray-900 sm:grid-cols-3 md:grid-cols-5 lg:grid-cols-9",children:a.map(l=>f.jsx("button",{type:"button",onClick:l.action,className:`text-white font-medium rounded text-sm px-5 py-2.5 text-center mb-2 me-2 ${n===l.slug?"bg-sky-500 dark:bg-sky-700":"bg-slate-500 dark:bg-slate-700"}`,children:l.title},l.slug))}),f.jsx("div",{className:"mt-3",children:f.jsx(OF,{data:t,columns:e})})]})},Tve=()=>f.jsxs("div",{className:"bg-gray-200 dark:bg-gray-800 p-8 rounded-md shadow-md text-center",children:[f.jsx("h1",{className:"text-2xl font-semibold mb-4",children:"IPO Checker"}),f.jsxs("p",{className:"text-gray-600 dark:text-gray-400",children:["Please visit"," ",f.jsx("a",{href:"https://iporesult.cdsc.com.np/",target:"_blank",className:"text-sky-600 dark:text-sky-400",children:"AllotmentResult"})," ","in order to check IPO Result"]})]}),Ove=()=>{const{ipoData:t}=mn(),e=Y$(),n=[e.accessor("id",{header:"ID",size:20,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("symbol",{header:"Symbol",size:40,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("name",{header:"Name",size:240,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("units",{header:"Units",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("price",{header:"Price",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("opening_date",{header:"Opening Date",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("closing_date",{header:"Closing Date",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}),e.accessor("status",{header:"Status",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}})],o=x.useMemo(()=>t.map((i,r)=>({...i,id:r+1})),[t]);return{ipo_columns:n,ipo_data:o}},Ive=()=>{const{ipo_columns:t,ipo_data:e}=Ove();return f.jsx("div",{children:f.jsxs("div",{children:[f.jsx("h4",{className:"mb-4 font-semibold",children:"Upcoming IPOs"}),f.jsx(OF,{data:e,columns:t})]})})},Jf=({type:t})=>f.jsx(f.Fragment,{children:t==="forgot-password"?f.jsx(Vce,{}):t==="login"?f.jsx(Hce,{}):t==="update"?f.jsx(yve,{}):f.jsx(Fhe,{})});var Eve={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},Dve=`\r +`,$ve="\uFEFF",JC=t=>Object.assign({},Eve,t);class Fve extends Error{constructor(e){super(e),this.name="CsvGenerationError"}}class jve extends Error{constructor(e){super(e),this.name="EmptyHeadersError"}}class Lve extends Error{constructor(e){super(e),this.name="CsvDownloadEnvironmentError"}}var Dh=t=>t,Ii=t=>t,Tv=Dh,Gd=Dh,DT=Dh,$T=Dh,Ave=function(t,e){return e=='"'&&t.indexOf('"')>-1?t.replace(/"/g,'""'):t},Nve=t=>DT(typeof t=="object"?t.key:t),zve=t=>$T(typeof t=="object"?t.displayLabel:t),Vve=(t,...e)=>e.reduce((n,o)=>o(n),t),Bve=t=>e=>t.useBom?Tv(Ii(e)+$ve):e,Hve=t=>e=>t.showTitle?Tv(Ii(e)+t.title):e,vL=t=>e=>Tv(Ii(t)+Ii(e)+Dve),bL=t=>(e,n)=>Wve(t)(Gd(e+n)),Wve=t=>e=>Dh(Ii(e)+t.fieldSeparator),Uve=(t,e)=>n=>{if(!t.showColumnHeaders)return n;if(e.length<1)throw new jve("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let o=Gd("");for(let i=0;io=>{let i=o;for(var r=0;r"u"?t.replaceUndefinedWith:n[r][Ii(l)];s=bL(t)(s,yL(t,c))}s=Gd(Ii(s).slice(0,-1)),i=vL(i)(s)}return i},FT=t=>+t===t&&(!isFinite(t)||!!(t%1)),yL=(t,e)=>{if(t.decimalSeparator==="locale"&&FT(e))return e.toLocaleString();if(t.decimalSeparator!=="."&&FT(e))return e.toString().replace(".",t.decimalSeparator);if(typeof e=="string"){let n=e;return(t.quoteStrings||t.fieldSeparator&&e.indexOf(t.fieldSeparator)>-1||t.quoteCharacter&&e.indexOf(t.quoteCharacter)>-1||e.indexOf(` +`)>-1||e.indexOf("\r")>-1)&&(n=t.quoteCharacter+Ave(e,t.quoteCharacter)+t.quoteCharacter),n}if(typeof e=="boolean"&&t.boolDisplay){const n=e?"true":"false";return t.boolDisplay[n]}return e},Gve=t=>e=>{const n=JC(t),o=n.useKeysAsHeaders?Object.keys(e[0]):n.columnHeaders;let i=Vve(Tv(""),Bve(n),Hve(n),Uve(n,o),qve(n,o,e));if(Ii(i).length<1)throw new Fve("Output is empty. Is your data formatted correctly?");return i},Kve=t=>e=>{if(!window)throw new Lve("Downloading only supported in a browser environment.");const n=JC(t),o=Ii(e),i=n.useTextFile?"plain":"csv",r=n.useTextFile?"txt":"csv";let s=new Blob([o],{type:`text/${i};charset=utf8;`}),a=document.createElement("a");a.download=`${n.filename}.${r}`,a.href=URL.createObjectURL(s),a.setAttribute("visibility","hidden"),document.body.appendChild(a),a.click(),document.body.removeChild(a)};const Yve=()=>{const{marketData:t,marketDataDate:e}=mn(),n=x.useMemo(()=>t.sort((s,a)=>s.symbol>a.symbol?1:-1).map((s,a)=>({...s,id:a+1})),[t]),o=JC({fieldSeparator:",",decimalSeparator:".",useKeysAsHeaders:!0});return{marketDataDate:e,data:n,handleExportData:()=>{const s=Gve(o)(n);Kve(o)(s)},columns:[{accessorKey:"id",header:"ID",size:10,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"symbol",header:"Symbol",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"open",header:"Open",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"high",header:"High",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"low",header:"Low",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"close",header:"Close",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"percentage_change",header:"% Change",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}},{accessorKey:"volume",header:"Volume",size:80,muiTableHeadCellProps:{align:"center"},muiTableBodyCellProps:{align:"center"}}]}},Qve=()=>{const{marketDataDate:t,data:e,columns:n,handleExportData:o}=Yve();return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex justify-between mb-2",children:[f.jsxs("span",{className:"text-sm py-2 text-gray-900 dark:text-white",children:["Data as of: ",t]}),f.jsx("button",{onClick:o,className:"text-sm px-4 py-2 rounded bg-sky-500 dark:bg-sky-700 text-white dark:text-white",children:"Download"})]}),f.jsx(Yre,{columns:n,data:e})]})},Xve=()=>{const{userData:t}=mn();return t.isLoggedIn?f.jsx(nae,{}):f.jsx(zc,{message:"Please login to use this service.",displayHomeBtn:!0,displayLoginBtn:!0})},Jve=[{title:"Introduction",description:[{hasSpace:!0,value:"Welcome to Hamro Nepse. This privacy policy is designed to inform you about the types of information we may collect, how we use that information, and with whom we may share it."}]},{title:"Information We Collect",description:[{hasSpace:!0,value:"- We may collect personal information when you register, subscribe, or interact with our website. This may include your name, email address, contact details, and any other information you voluntarily provide."},{hasSpace:!1,value:"- We automatically collect certain information about your device, including your IP address, browser type, pages visited, and the time and date of your visit. This helps us understand how users interact with our site and improve its functionality."}]},{title:"How We Use Your Information",description:[{hasSpace:!0,value:"We use the collected information for the following purposes :"},{hasSpace:!0,value:"- To provide and maintain our services, delivering the stock data and features you expect from our website."},{hasSpace:!1,value:"- To improve, personalize, and expand our website, analyzing user behavior helps us enhance user experience and tailor content to your preferences."},{hasSpace:!1,value:"- To communicate with you, responding to your inquiries, providing updates, and addressing any issues or concerns you may have."}]},{title:"Cookies and Tracking Technologies",description:[{hasSpace:!0,value:""}]},{title:"",description:[{hasSpace:!0,value:"Cookies are small files stored on your device that allow us to recognize and remember you. We use cookies and similar technologies to :"},{hasSpace:!0,value:"- Analyze user behavior and trends."},{hasSpace:!1,value:"- Customize your experience based on your preferences."},{hasSpace:!1,value:"- Ensure the security of your account."},{hasSpace:!0,value:"You can control or disable cookies through your browser settings, but please note that some features of our website may not function properly if you do so."}]},{title:"Third Party Services",description:[{hasSpace:!0,value:"We may integrate third-party services to enhance your experience, such as analytics tools or social media plugins. These services may collect information independently, and their use is governed by their respective privacy policies. We encourage you to review these policies."}]},{title:"Data Security",description:[{hasSpace:!0,value:"We take reasonable measures to safeguard your personal information :"},{hasSpace:!0,value:"- Secure Socket Layer (SSL) technology is used to encrypt data during transmission."},{hasSpace:!1,value:"- Regular security audits are conducted to identify and address potential vulnerabilities."},{hasSpace:!0,value:"While we strive to protect your information, no method of transmission over the internet or electronic storage is completely secure. Therefore, we cannot guarantee absolute security."}]},{title:"Changes to This Privacy Policy",description:[{hasSpace:!0,value:"We reserve the right to update our privacy policy to reflect changes in our practices. Any modifications will be effective immediately upon posting the updated policy on the website. We recommend checking our privacy policy periodically for any changes."}]},{title:"Nepse Disclaimer",description:[{hasSpace:!0,value:"Hamro Nepse is an open source platform and uses data from nepse and other related sites. The stock data provided on our website is for informational purposes only and should not be considered financial advice. Users are encouraged to verify information independently and seek professional advice before making any financial decisions. Hamro Nepse does not guarantee the accuracy or completeness of the stock data and shall not be held liable for any financial losses incurred."}]}],Zve=()=>f.jsx(The,{items:Jve}),e0e=()=>{var e;const t=((e=Pm.find(n=>n.label==="Services"))==null?void 0:e.subMenuItems)??[];return f.jsx(Ohe,{ServiceItems:t})},t0e=()=>{const[t,e]=x.useState("buy"),[n,o]=x.useState(0),[i,r]=x.useState(0),[s,a]=x.useState(0),[l,c]=x.useState(!1),[u,d]=x.useState("individual"),[h,p]=x.useState(5),[g,m]=x.useState(0),[b,v]=x.useState(0),[y,w]=x.useState(0),[C,k]=x.useState(0),[P,M]=x.useState(0),[_,R]=x.useState(0),[O,I]=x.useState(0),[$,F]=x.useState(0),[E,D]=x.useState(5),[j,N]=x.useState(0),[A,L]=x.useState(0),[V,W]=x.useState(0);x.useEffect(()=>{if(t==="buy"&&n>0&&i>0){const oe=parseFloat((n*i).toFixed(2)),H=parseFloat(Y(oe).toFixed(2)),ue=parseFloat(se(oe).toFixed(2)),he=25,pe=parseFloat((oe+H+ue+he).toFixed(2)),$e=parseFloat((pe/n).toFixed(2)),re=parseFloat((H*.2).toFixed(2)),Ce=parseFloat((H*.006).toFixed(2));m(oe),v(H),w(ue),k(he),M(pe),R($e),W(re),L(Ce)}else if(t=="sell"&&n>0&&E>0&&u){const H=n*i,ue=l?0:parseFloat(Y(H).toFixed(2)),he=l?0:parseFloat(se(H).toFixed(2)),pe=l?0:25,$e=parseFloat((H+ue+he+pe).toFixed(2)),re=n*s,Ce=parseFloat(Y(re).toFixed(2)),G=parseFloat(se(re).toFixed(2)),X=re-Ce-G-25,ve=parseFloat((X-$e).toFixed(2));let ke=0;if(ve>0){const we=E/100;ke=parseFloat((we*ve).toFixed(2))}const _e=parseFloat((ve-ke).toFixed(2)),fe=parseFloat((X-ke).toFixed(2)),ae=parseFloat((Ce*.2).toFixed(2)),xe=parseFloat((Ce*.006).toFixed(2));m(parseFloat(re.toFixed(2))),v(Ce),w(G),k(25),I(fe),F(ke),N(_e),W(ae),L(xe)}},[t,i,s,l,u,$,h,n,E]);const Y=oe=>{let H=0;return oe<=5e4?H=.4/100*oe:oe>5e4&&oe<=5e5?H=.37/100*oe:oe>5e5&&oe<=2e6?H=.34/100*oe:oe>2e6&&oe<=1e7?H=.3/100*oe:H=.27/100*oe,H<=10&&(H=10),H},se=oe=>.015/100*oe,B=oe=>{const H=oe.target.value??"";e(H),ne()},U=oe=>{const H=Number((oe.target.value??"").replace(/[^0-9]/g,""));o(H)},z=oe=>{const H=Number((oe.target.value??"").replace(/[^0-9.]/g,""));r(H)},Q=oe=>{const H=Number((oe.target.value??"").replace(/[^0-9.]/g,""));a(H)},J=oe=>{const H=oe.target.checked??!1;c(H)},ee=oe=>{const H=oe.target.value??"individual",ue=H==="individual"||H==="institutional"?H:"individual";d(ue),ue=="individual"?D(5):ue=="institutional"&&D(10)},ie=oe=>{const H=Number((oe.target.value??7.5).replace(/[^0-9.]/g,""));p(H),D(H)},ne=()=>{o(0),m(0),r(0),v(0),w(0),k(0),W(0),L(0),t==="buy"?(R(0),M(0)):t==="sell"&&(c(!1),p(5),a(0),d("individual"),I(0),F(0),N(0),D(5))};return{transactionType:t,shareQuantity:n,purchasePrice:i,sellingPrice:s,investorType:u,taxRate:h,isWACC:l,totalAmount:g,commission:b,sebonFee:y,dpCharge:C,capitalGainTax:$,totalAmountPayable:P,capitalGainTaxPercentage:E,costPerShare:_,profitOrLoss:j,nepseCommission:V,sebonRegularityFee:A,totalAmountReceiveable:O,handleClear:ne,handleIsWaccChange:J,handleTaxRateChange:ie,handleTransactionTypeChange:B,handleShareQuantityChange:U,handlePurchasePriceChange:z,handleSellingPriceChange:Q,handleInvestorTypeChange:ee}},n0e=()=>{const t=t0e();return f.jsx(Dhe,{shareCalculatorProp:t})},o0e=()=>f.jsxs("div",{className:"bg-gray-200 dark:bg-gray-800 p-8 rounded-md shadow-md text-center",children:[f.jsx("h1",{className:"text-2xl font-semibold mb-4",children:"Under Construction"}),f.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:"This component is currently under construction. Check back soon!"})]}),i0e=()=>{const{userData:t}=mn();return t.isLoggedIn?f.jsx(aae,{}):f.jsx(zc,{message:"Please login to use this service.",displayHomeBtn:!0,displayLoginBtn:!0})};function r0e(){return f.jsx(Xse,{children:f.jsx("div",{className:"h-full min-h-screen bg-white dark:bg-gray-900 text-gray-900 dark:text-white",children:f.jsx("div",{className:"container mx-auto",children:f.jsxs("div",{className:"relative min-h-screen w-full max-w-screen-xl mx-auto px-3",children:[f.jsx(Rhe,{}),f.jsxs(Az,{children:[f.jsx(un,{path:"/about",element:f.jsx(wve,{})}),f.jsx(un,{path:"/chart",element:f.jsx(Cve,{})}),f.jsx(un,{path:"/stock/:symbol",element:f.jsx(Sve,{})}),f.jsx(un,{path:"/compare-company",element:f.jsx(Pve,{})}),f.jsx(un,{path:"/contact",element:f.jsx(Mve,{})}),f.jsx(un,{path:"/",element:f.jsx(Rve,{})}),f.jsx(un,{path:"/ipo-checker",element:f.jsx(Tve,{})}),f.jsx(un,{path:"/investing-calendar",element:f.jsx(Ive,{})}),f.jsx(un,{path:"/market-watch",element:f.jsx(Qve,{})}),f.jsx(un,{path:"/watchlist",element:f.jsx(i0e,{})}),f.jsx(un,{path:"/portfolio-tracker",element:f.jsx(Xve,{})}),f.jsx(un,{path:"/services",element:f.jsx(e0e,{})}),f.jsx(un,{path:"/share-calculator",element:f.jsx(n0e,{})}),f.jsx(un,{path:"/privacy-policy",element:f.jsx(Zve,{})}),f.jsx(un,{path:"/trading-signals",element:f.jsx(o0e,{})}),f.jsx(un,{path:"/login",element:f.jsx(Jf,{type:"login"})}),f.jsx(un,{path:"/signup",element:f.jsx(Jf,{type:"signup"})}),f.jsx(un,{path:"/forgot-password",element:f.jsx(Jf,{type:"forgot-password"})}),f.jsx(un,{path:"/setting",element:f.jsx(Jf,{type:"update"})})]}),f.jsx(Nce,{})]})})})})}yb.createRoot(document.getElementById("root")).render(f.jsx(no.StrictMode,{children:f.jsx(r0e,{})})); diff --git a/assets/logo-FbxTVFt1.png b/assets/logo-FbxTVFt1.png new file mode 100644 index 0000000..9b67860 Binary files /dev/null and b/assets/logo-FbxTVFt1.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..1fa276d --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + HamroNepse + + + + +
+ + diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..9b67860 Binary files /dev/null and b/logo.png differ