SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
(function() {
var style = document.createElement('style');
style.textContent = "#form-preview-container *,#form-preview-container :before,#form-preview-container :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#form-preview-container ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#form-preview-container *,#form-preview-container :before,#form-preview-container :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}#form-preview-container :before,#form-preview-container :after{--tw-content: \"\"}html #form-preview-container,#form-preview-container :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body #form-preview-container{margin:0;line-height:inherit}#form-preview-container hr{height:0;color:inherit;border-top-width:1px}#form-preview-container abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}#form-preview-container h1,#form-preview-container h2,#form-preview-container h3,#form-preview-container h4,#form-preview-container h5,#form-preview-container h6{font-size:inherit;font-weight:inherit}#form-preview-container a{color:inherit;text-decoration:inherit}#form-preview-container b,#form-preview-container strong{font-weight:bolder}#form-preview-container code,#form-preview-container kbd,#form-preview-container samp,#form-preview-container 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}#form-preview-container small{font-size:80%}#form-preview-container sub,#form-preview-container sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}#form-preview-container sub{bottom:-.25em}#form-preview-container sup{top:-.5em}#form-preview-container table{text-indent:0;border-color:inherit;border-collapse:collapse}#form-preview-container button,#form-preview-container input,#form-preview-container optgroup,#form-preview-container select,#form-preview-container textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}#form-preview-container button,#form-preview-container select{text-transform:none}#form-preview-container button,#form-preview-container input:where([type=button]),#form-preview-container input:where([type=reset]),#form-preview-container input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}#form-preview-container :-moz-focusring{outline:auto}#form-preview-container :-moz-ui-invalid{box-shadow:none}#form-preview-container progress{vertical-align:baseline}#form-preview-container ::-webkit-inner-spin-button,#form-preview-container ::-webkit-outer-spin-button{height:auto}#form-preview-container [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#form-preview-container ::-webkit-search-decoration{-webkit-appearance:none}#form-preview-container ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#form-preview-container summary{display:list-item}#form-preview-container blockquote,#form-preview-container dl,#form-preview-container dd,#form-preview-container h1,#form-preview-container h2,#form-preview-container h3,#form-preview-container h4,#form-preview-container h5,#form-preview-container h6,#form-preview-container hr,#form-preview-container figure,#form-preview-container p,#form-preview-container pre{margin:0}#form-preview-container fieldset{margin:0;padding:0}#form-preview-container legend{padding:0}#form-preview-container ol,#form-preview-container ul,#form-preview-container menu{list-style:none;margin:0;padding:0}#form-preview-container dialog{padding:0}#form-preview-container textarea{resize:vertical}#form-preview-container input::-moz-placeholder,#form-preview-container textarea::-moz-placeholder{opacity:1;color:#9ca3af}#form-preview-container input::placeholder,#form-preview-container textarea::placeholder{opacity:1;color:#9ca3af}#form-preview-container button,#form-preview-container [role=button]{cursor:pointer}#form-preview-container :disabled{cursor:default}#form-preview-container img,#form-preview-container svg,#form-preview-container video,#form-preview-container canvas,#form-preview-container audio,#form-preview-container iframe,#form-preview-container embed,#form-preview-container object{display:block;vertical-align:middle}#form-preview-container img,#form-preview-container video{max-width:100%;height:auto}#form-preview-container [hidden]:where(:not([hidden=until-found])){display:none}html #form-preview-container,body #form-preview-container{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif}#form-preview-container .container{width:100%}@media (min-width: 640px){#form-preview-container .container{max-width:640px}}@media (min-width: 768px){#form-preview-container .container{max-width:768px}}@media (min-width: 1024px){#form-preview-container .container{max-width:1024px}}@media (min-width: 1280px){#form-preview-container .container{max-width:1280px}}@media (min-width: 1536px){#form-preview-container .container{max-width:1536px}}#form-preview-container .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}#form-preview-container .pointer-events-none{pointer-events:none}#form-preview-container .fixed{position:fixed}#form-preview-container .absolute{position:absolute}#form-preview-container .relative{position:relative}#form-preview-container .-right-1{right:-.25rem}#form-preview-container .-top-1{top:-.25rem}#form-preview-container .bottom-6{bottom:1.5rem}#form-preview-container .right-2{right:.5rem}#form-preview-container .right-6{right:1.5rem}#form-preview-container .top-1\\/2{top:50%}#form-preview-container .top-2{top:.5rem}#form-preview-container .z-50{z-index:50}#form-preview-container .m-4{margin:1rem}#form-preview-container .m-auto{margin:auto}#form-preview-container .mx-auto{margin-left:auto;margin-right:auto}#form-preview-container .my-4{margin-top:1rem;margin-bottom:1rem}#form-preview-container .mb-2{margin-bottom:.5rem}#form-preview-container .mb-3{margin-bottom:.75rem}#form-preview-container .mb-4{margin-bottom:1rem}#form-preview-container .mb-8{margin-bottom:2rem}#form-preview-container .ml-1{margin-left:.25rem}#form-preview-container .ml-auto{margin-left:auto}#form-preview-container .mr-2{margin-right:.5rem}#form-preview-container .mr-4{margin-right:1rem}#form-preview-container .mt-1{margin-top:.25rem}#form-preview-container .mt-2{margin-top:.5rem}#form-preview-container .mt-4{margin-top:1rem}#form-preview-container .mt-5{margin-top:1.25rem}#form-preview-container .mt-6{margin-top:1.5rem}#form-preview-container .block{display:block}#form-preview-container .inline{display:inline}#form-preview-container .flex{display:flex}#form-preview-container .inline-flex{display:inline-flex}#form-preview-container .grid{display:grid}#form-preview-container .hidden{display:none}#form-preview-container .h-1{height:.25rem}#form-preview-container .h-10{height:2.5rem}#form-preview-container .h-12{height:3rem}#form-preview-container .h-14{height:3.5rem}#form-preview-container .h-16{height:4rem}#form-preview-container .h-4{height:1rem}#form-preview-container .h-5{height:1.25rem}#form-preview-container .h-6{height:1.5rem}#form-preview-container .h-8{height:2rem}#form-preview-container .h-9{height:2.25rem}#form-preview-container .h-\\[35px\\]{height:35px}#form-preview-container .h-\\[560px\\]{height:560px}#form-preview-container .h-\\[80vh\\]{height:80vh}#form-preview-container .h-full{height:100%}#form-preview-container .min-h-screen{min-height:100vh}#form-preview-container .w-10{width:2.5rem}#form-preview-container .w-12{width:3rem}#form-preview-container .w-14{width:3.5rem}#form-preview-container .w-16{width:4rem}#form-preview-container .w-4{width:1rem}#form-preview-container .w-5{width:1.25rem}#form-preview-container .w-6{width:1.5rem}#form-preview-container .w-8{width:2rem}#form-preview-container .w-\\[380px\\]{width:380px}#form-preview-container .w-full{width:100%}#form-preview-container .w-max{width:-moz-max-content;width:max-content}#form-preview-container .max-w-\\[150px\\]{max-width:150px}#form-preview-container .max-w-\\[600px\\]{max-width:600px}#form-preview-container .max-w-full{max-width:100%}#form-preview-container .max-w-md{max-width:28rem}#form-preview-container .flex-1{flex:1 1 0%}#form-preview-container .origin-bottom-right{transform-origin:bottom right}#form-preview-container .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#form-preview-container .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))}#form-preview-container .translate-y-4{--tw-translate-y: 1rem;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))}#form-preview-container .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))}#form-preview-container .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))}#form-preview-container .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))}#form-preview-container .scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}#form-preview-container .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}#form-preview-container .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}#form-preview-container .animate-spin{animation:spin 1s linear infinite}#form-preview-container .cursor-default{cursor:default}#form-preview-container .cursor-pointer{cursor:pointer}#form-preview-container .resize-none{resize:none}#form-preview-container .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#form-preview-container .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#form-preview-container .flex-row{flex-direction:row}#form-preview-container .flex-col{flex-direction:column}#form-preview-container .items-start{align-items:flex-start}#form-preview-container .items-end{align-items:flex-end}#form-preview-container .items-center{align-items:center}#form-preview-container .justify-end{justify-content:flex-end}#form-preview-container .justify-center{justify-content:center}#form-preview-container .justify-between{justify-content:space-between}#form-preview-container .gap-2{gap:.5rem}#form-preview-container .gap-2\\.5{gap:.625rem}#form-preview-container .gap-3{gap:.75rem}#form-preview-container .gap-4{gap:1rem}#form-preview-container .gap-6{gap:1.5rem}#form-preview-container .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))}#form-preview-container .overflow-auto{overflow:auto}#form-preview-container .overflow-hidden{overflow:hidden}#form-preview-container .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#form-preview-container .rounded{border-radius:.25rem}#form-preview-container .rounded-2xl{border-radius:1rem}#form-preview-container .rounded-full{border-radius:9999px}#form-preview-container .rounded-lg{border-radius:.5rem}#form-preview-container .rounded-md{border-radius:.375rem}#form-preview-container .border{border-width:1px}#form-preview-container .border-2{border-width:2px}#form-preview-container .border-b{border-bottom-width:1px}#form-preview-container .border-b-2{border-bottom-width:2px}#form-preview-container .border-solid{border-style:solid}#form-preview-container .border-dashed{border-style:dashed}#form-preview-container .border-\\[\\#288a68\\]{--tw-border-opacity: 1;border-color:rgb(40 138 104 / var(--tw-border-opacity, 1))}#form-preview-container .border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}#form-preview-container .border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}#form-preview-container .border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}#form-preview-container .border-transparent{border-color:transparent}#form-preview-container .border-b-gray-500{--tw-border-opacity: 1;border-bottom-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}#form-preview-container .bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}#form-preview-container .bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}#form-preview-container .bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}#form-preview-container .bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}#form-preview-container .bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}#form-preview-container .bg-smythos-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}#form-preview-container .bg-transparent{background-color:transparent}#form-preview-container .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}#form-preview-container .object-cover{-o-object-fit:cover;object-fit:cover}#form-preview-container .p-1{padding:.25rem}#form-preview-container .p-2{padding:.5rem}#form-preview-container .p-2\\.5{padding:.625rem}#form-preview-container .p-4{padding:1rem}#form-preview-container .p-6{padding:1.5rem}#form-preview-container .p-\\[9\\.5px\\]{padding:9.5px}#form-preview-container .px-3{padding-left:.75rem;padding-right:.75rem}#form-preview-container .px-4{padding-left:1rem;padding-right:1rem}#form-preview-container .px-\\[10px\\]{padding-left:10px;padding-right:10px}#form-preview-container .py-12{padding-top:3rem;padding-bottom:3rem}#form-preview-container .py-2{padding-top:.5rem;padding-bottom:.5rem}#form-preview-container .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}#form-preview-container .py-3{padding-top:.75rem;padding-bottom:.75rem}#form-preview-container .py-4{padding-top:1rem;padding-bottom:1rem}#form-preview-container .py-8{padding-top:2rem;padding-bottom:2rem}#form-preview-container .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}#form-preview-container .pb-4{padding-bottom:1rem}#form-preview-container .pt-2{padding-top:.5rem}#form-preview-container .pt-6{padding-top:1.5rem}#form-preview-container .text-center{text-align:center}#form-preview-container .text-2xl{font-size:1.5rem;line-height:2rem}#form-preview-container .text-base{font-size:1rem;line-height:1.5rem}#form-preview-container .text-lg{font-size:1.125rem;line-height:1.75rem}#form-preview-container .text-sm{font-size:.875rem;line-height:1.25rem}#form-preview-container .text-xl{font-size:1.25rem;line-height:1.75rem}#form-preview-container .text-xs{font-size:.75rem;line-height:1rem}#form-preview-container .font-bold{font-weight:700}#form-preview-container .font-medium{font-weight:500}#form-preview-container .font-normal{font-weight:400}#form-preview-container .font-semibold{font-weight:600}#form-preview-container .lowercase{text-transform:lowercase}#form-preview-container .leading-5{line-height:1.25rem}#form-preview-container .leading-6{line-height:1.5rem}#form-preview-container .leading-7{line-height:1.75rem}#form-preview-container .tracking-\\[-0\\.025em\\]{letter-spacing:-.025em}#form-preview-container .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}#form-preview-container .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}#form-preview-container .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}#form-preview-container .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}#form-preview-container .text-v2-gray-dark{--tw-text-opacity: 1;color:rgb(66 66 66 / var(--tw-text-opacity, 1))}#form-preview-container .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}#form-preview-container .opacity-0{opacity:0}#form-preview-container .opacity-100{opacity:1}#form-preview-container .opacity-50{opacity:.5}#form-preview-container .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)}#form-preview-container .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#form-preview-container .outline-none{outline:2px solid transparent;outline-offset:2px}#form-preview-container .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)}#form-preview-container .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#form-preview-container .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#form-preview-container .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#form-preview-container .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#form-preview-container .duration-200{transition-duration:.2s}#form-preview-container .duration-300{transition-duration:.3s}#form-preview-container .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#form-preview-container .progress{display:block;position:relative;width:100%;height:12px;background-color:#eee;overflow:hidden}#form-preview-container .progress.line{background-color:#eee;display:flex}#form-preview-container .progress.line:before{height:100%;width:100%;background-color:#9ca3af;content:\"\";animation:running-progress 2s cubic-bezier(.4,0,.2,1) infinite}#form-preview-container .progress.small{height:6px}@keyframes running-progress{0%{margin-left:0;margin-right:100%}50%{margin-left:25%;margin-right:0}to{margin-left:100%;margin-right:0}}#form-preview-container .endpoint-form-preview-sidebar{padding:0}#form-preview-container .endpoint-form-preview-sidebar::-webkit-scrollbar{width:6px}#form-preview-container .endpoint-form-preview-sidebar::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}#form-preview-container .endpoint-form-preview-sidebar::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}#form-preview-container .endpoint-form-preview-sidebar::-webkit-scrollbar-thumb:hover{background:#a8a8a8}#form-preview-container .placeholder\\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}#form-preview-container .placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}#form-preview-container .placeholder\\:font-normal::-moz-placeholder{font-weight:400}#form-preview-container .placeholder\\:font-normal::placeholder{font-weight:400}#form-preview-container .focus-within\\:border-b-2:focus-within{border-bottom-width:2px}#form-preview-container .focus-within\\:border-b-blue-500:focus-within{--tw-border-opacity: 1;border-bottom-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}#form-preview-container .hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}#form-preview-container .hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}#form-preview-container .hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}#form-preview-container .hover\\:bg-smyth-blue:hover{--tw-bg-opacity: 1;background-color:rgb(19 85 182 / var(--tw-bg-opacity, 1))}#form-preview-container .hover\\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}#form-preview-container .hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}#form-preview-container .hover\\:underline:hover{text-decoration-line:underline}#form-preview-container .focus\\:border-b-2:focus{border-bottom-width:2px}#form-preview-container .focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}#form-preview-container .focus\\:border-cyan-500:focus{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity, 1))}#form-preview-container .focus\\:border-b-blue-500:focus{--tw-border-opacity: 1;border-bottom-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}#form-preview-container .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#form-preview-container .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)}#form-preview-container .focus\\:ring-1: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(1px + 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)}#form-preview-container .focus\\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}#form-preview-container .focus\\:ring-cyan-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(6 182 212 / var(--tw-ring-opacity, 1))}#form-preview-container .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}#form-preview-container .focus-visible\\:border-b-2:focus-visible{border-bottom-width:2px}#form-preview-container .focus-visible\\:border-b-blue-500:focus-visible{--tw-border-opacity: 1;border-bottom-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}#form-preview-container .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#form-preview-container .disabled\\:opacity-50:disabled{opacity:.5}#form-preview-container .group:hover .group-hover\\:bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}#form-preview-container .group:hover .group-hover\\:opacity-100{opacity:1}@media (prefers-color-scheme: dark){#form-preview-container .dark\\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}#form-preview-container .dark\\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}#form-preview-container .dark\\:text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}#form-preview-container .dark\\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}#form-preview-container .dark\\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}#form-preview-container .dark\\:placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}#form-preview-container .dark\\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}#form-preview-container .dark\\:focus\\:border-cyan-500:focus{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity, 1))}#form-preview-container .dark\\:focus\\:ring-cyan-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(6 182 212 / var(--tw-ring-opacity, 1))}}\n";
document.head.appendChild(style);
})();
!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,i=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&l(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&l(e,n,t[n]);return e},s=(e,r)=>t(e,n(r)),u=(e,t)=>{var n={};for(var l in e)a.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&r)for(var l of r(e))t.indexOf(l)<0&&o.call(e,l)&&(n[l]=e[l]);return n},c=(e,t,n)=>new Promise((r,a)=>{var o=e=>{try{i(n.next(e))}catch(cy){a(cy)}},l=e=>{try{i(n.throw(e))}catch(cy){a(cy)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,l);i((n=n.apply(e,t)).next())});function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f={exports:{}},p={},h={exports:{}},m={},g=Symbol.for("react.element"),v=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),k=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),C=Symbol.iterator;var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,N={};function F(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||O}function P(){}function z(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||O}F.prototype.isReactComponent={},F.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},F.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},P.prototype=F.prototype;var L=z.prototype=new P;L.constructor=z,T(L,F.prototype),L.isPureReactComponent=!0;var M=Array.isArray,A=Object.prototype.hasOwnProperty,I={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)A.call(t,r)&&!D.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),u=0;u<i;u++)s[u]=arguments[u+2];a.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return{$$typeof:g,type:e,key:o,ref:l,props:a,_owner:I.current}}function $(e){return"object"==typeof e&&null!==e&&e.$$typeof===g}var U=/\/+/g;function V(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function B(e,t,n,r,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case g:case v:l=!0}}if(l)return a=a(l=e),e=""===r?"."+V(l,0):r,M(a)?(n="",null!=e&&(n=e.replace(U,"$&/")+"/"),B(a,t,n,"",function(e){return e})):null!=a&&($(a)&&(a=function(e,t){return{$$typeof:g,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(U,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",M(e))for(var i=0;i<e.length;i++){var s=r+V(o=e[i],i);l+=B(o,t,n,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=C&&e[C]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),i=0;!(o=e.next()).done;)l+=B(o=o.value,t,n,s=r+V(o,i++),a);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function W(e,t,n){if(null==e)return e;var r=[],a=0;return B(e,r,"","",function(e){return t.call(n,e,a++)}),r}function H(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var Q={current:null},q={transition:null},Z={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:q,ReactCurrentOwner:I};function G(){throw Error("act(...) is not supported in production builds of React.")}m.Children={map:W,forEach:function(e,t,n){W(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return W(e,function(){t++}),t},toArray:function(e){return W(e,function(e){return e})||[]},only:function(e){if(!$(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},m.Component=F,m.Fragment=y,m.Profiler=x,m.PureComponent=z,m.StrictMode=b,m.Suspense=E,m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,m.act=G,m.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=T({},e.props),a=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=I.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)A.call(t,s)&&!D.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==i?i[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){i=Array(s);for(var u=0;u<s;u++)i[u]=arguments[u+2];r.children=i}return{$$typeof:g,type:e.type,key:a,ref:o,props:r,_owner:l}},m.createContext=function(e){return(e={$$typeof:k,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:w,_context:e},e.Consumer=e},m.createElement=R,m.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},m.createRef=function(){return{current:null}},m.forwardRef=function(e){return{$$typeof:S,render:e}},m.isValidElement=$,m.lazy=function(e){return{$$typeof:j,_payload:{_status:-1,_result:e},_init:H}},m.memo=function(e,t){return{$$typeof:_,type:e,compare:void 0===t?null:t}},m.startTransition=function(e){var t=q.transition;q.transition={};try{e()}finally{q.transition=t}},m.unstable_act=G,m.useCallback=function(e,t){return Q.current.useCallback(e,t)},m.useContext=function(e){return Q.current.useContext(e)},m.useDebugValue=function(){},m.useDeferredValue=function(e){return Q.current.useDeferredValue(e)},m.useEffect=function(e,t){return Q.current.useEffect(e,t)},m.useId=function(){return Q.current.useId()},m.useImperativeHandle=function(e,t,n){return Q.current.useImperativeHandle(e,t,n)},m.useInsertionEffect=function(e,t){return Q.current.useInsertionEffect(e,t)},m.useLayoutEffect=function(e,t){return Q.current.useLayoutEffect(e,t)},m.useMemo=function(e,t){return Q.current.useMemo(e,t)},m.useReducer=function(e,t,n){return Q.current.useReducer(e,t,n)},m.useRef=function(e){return Q.current.useRef(e)},m.useState=function(e){return Q.current.useState(e)},m.useSyncExternalStore=function(e,t,n){return Q.current.useSyncExternalStore(e,t,n)},m.useTransition=function(){return Q.current.useTransition()},m.version="18.3.1",h.exports=m;var K=h.exports;const Y=d(K);
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var J=K,X=Symbol.for("react.element"),ee=Symbol.for("react.fragment"),te=Object.prototype.hasOwnProperty,ne=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,re={key:!0,ref:!0,__self:!0,__source:!0};function ae(e,t,n){var r,a={},o=null,l=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(l=t.ref),t)te.call(t,r)&&!re.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:X,type:e,key:o,ref:l,props:a,_owner:ne.current}}p.Fragment=ee,p.jsx=ae,p.jsxs=ae,f.exports=p;var oe=f.exports,le={},ie={exports:{}},se={},ue={exports:{}},ce={};
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,l=o>>>1;r<l;){var i=2*(r+1)-1,s=e[i],u=i+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[i]=n,r=i);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,i=l.now();e.unstable_now=function(){return l.now()-i}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(s,a)}a=n(u)}}function x(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,P(w);else{var t=n(u);null!==t&&z(x,t.startTime-e)}}function w(t,a){h=!1,m&&(m=!1,v(_),_=-1),p=!0;var o=f;try{for(b(a),d=n(s);null!==d&&(!(d.expirationTime>a)||t&&!O());){var l=d.callback;if("function"==typeof l){d.callback=null,f=d.priorityLevel;var i=l(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof i?d.callback=i:d===n(s)&&r(s),b(a)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&z(x,g.startTime-a),c=!1}return c}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,_=-1,j=5,C=-1;function O(){return!(e.unstable_now()-C<j)}function T(){if(null!==E){var t=e.unstable_now();C=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof y)k=function(){y(T)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,F=N.port2;N.port1.onmessage=T,k=function(){F.postMessage(null)}}else k=function(){g(T,0)};function P(e){E=e,S||(S=!0,k())}function z(t,n){_=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,P(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,a,o){var l=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?l+o:l:o=l,r){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>l?(r.sortIndex=o,t(u,r),null===n(s)&&r===n(u)&&(m?(v(_),_=-1):m=!0,z(x,o-l))):(r.sortIndex=i,t(s,r),h||p||(h=!0,P(w))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(ce),ue.exports=ce;var de=ue.exports,fe=K,pe=de;
/**
* @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.
*/function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var me=new Set,ge={};function ve(e,t){ye(e,t),ye(e+"Capture",t)}function ye(e,t){for(ge[e]=t,e=0;e<t.length;e++)me.add(t[e])}var be=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),xe=Object.prototype.hasOwnProperty,we=/^[: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]*$/,ke={},Se={};function Ee(e,t,n,r,a,o,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new Ee(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new Ee(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new Ee(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new Ee(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_e[e]=new Ee(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_e[e]=new Ee(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_e[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var je=/[\-:]([a-z])/g;function Ce(e){return e[1].toUpperCase()}function Oe(e,t,n,r){var a=_e.hasOwnProperty(t)?_e[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!xe.call(Se,e)||!xe.call(ke,e)&&(we.test(e)?Se[e]=!0:(ke[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(je,Ce);_e[t]=new Ee(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(je,Ce);_e[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(je,Ce);_e[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)}),_e.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_e[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});var Te=fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ne=Symbol.for("react.element"),Fe=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),ze=Symbol.for("react.strict_mode"),Le=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),Ae=Symbol.for("react.context"),Ie=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),Ve=Symbol.for("react.offscreen"),Be=Symbol.iterator;function We(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Be&&e[Be]||e["@@iterator"])?e:null}var He,Qe=Object.assign;function qe(e){if(void 0===He)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||""}return"\n"+He+e}var Ze=!1;function Ge(e,t){if(!e||Ze)return"";Ze=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var a=u.stack.split("\n"),o=r.stack.split("\n"),l=a.length-1,i=o.length-1;1<=l&&0<=i&&a[l]!==o[i];)i--;for(;1<=l&&0<=i;l--,i--)if(a[l]!==o[i]){if(1!==l||1!==i)do{if(l--,0>--i||a[l]!==o[i]){var s="\n"+a[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=l&&0<=i);break}}}finally{Ze=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qe(e):""}function Ke(e){switch(e.tag){case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return qe("Suspense");case 19:return qe("SuspenseList");case 0:case 2:case 15:return e=Ge(e.type,!1);case 11:return e=Ge(e.type.render,!1);case 1:return e=Ge(e.type,!0);default:return""}}function Ye(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Pe:return"Fragment";case Fe:return"Portal";case Le:return"Profiler";case ze:return"StrictMode";case De:return"Suspense";case Re:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ae:return(e.displayName||"Context")+".Consumer";case Me:return(e._context.displayName||"Context")+".Provider";case Ie:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $e:return null!==(t=e.displayName||null)?t:Ye(e.type)||"Memo";case Ue:t=e._payload,e=e._init;try{return Ye(e(t))}catch(n){}}return null}function Je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ye(t);case 8:return t===ze?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function et(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function tt(e){e._valueTracker||(e._valueTracker=function(e){var t=et(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function nt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=et(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function rt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function at(e,t){var n=t.checked;return Qe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ot(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Xe(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function lt(e,t){null!=(t=t.checked)&&Oe(e,"checked",t,!1)}function it(e,t){lt(e,t);var n=Xe(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ut(e,t.type,n):t.hasOwnProperty("defaultValue")&&ut(e,t.type,Xe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function st(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ut(e,t,n){"number"===t&&rt(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ct=Array.isArray;function dt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Xe(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ft(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(he(91));return Qe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pt(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(he(92));if(ct(n)){if(1<n.length)throw Error(he(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Xe(n)}}function ht(e,t){var n=Xe(t.value),r=Xe(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function mt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function gt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?gt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var yt,bt,xt=(bt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((yt=yt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return bt(e,t)})}:bt);function wt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt={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},St=["Webkit","ms","Moz","O"];function Et(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||kt.hasOwnProperty(e)&&kt[e]?(""+t).trim():t+"px"}function _t(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Et(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(kt).forEach(function(e){St.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kt[t]=kt[e]})});var jt=Qe({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 Ct(e,t){if(t){if(jt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(he(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(he(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(he(62))}}function Ot(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Tt=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Pt=null,zt=null;function Lt(e){if(e=To(e)){if("function"!=typeof Ft)throw Error(he(280));var t=e.stateNode;t&&(t=Fo(t),Ft(e.stateNode,e.type,t))}}function Mt(e){Pt?zt?zt.push(e):zt=[e]:Pt=e}function At(){if(Pt){var e=Pt,t=zt;if(zt=Pt=null,Lt(e),t)for(e=0;e<t.length;e++)Lt(t[e])}}function It(e,t){return e(t)}function Dt(){}var Rt=!1;function $t(e,t,n){if(Rt)return e(t,n);Rt=!0;try{return It(e,t,n)}finally{Rt=!1,(null!==Pt||null!==zt)&&(Dt(),At())}}function Ut(e,t){var n=e.stateNode;if(null===n)return null;var r=Fo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(he(231,t,typeof n));return n}var Vt=!1;if(be)try{var Bt={};Object.defineProperty(Bt,"passive",{get:function(){Vt=!0}}),window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch(bt){Vt=!1}function Wt(e,t,n,r,a,o,l,i,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ht=!1,Qt=null,qt=!1,Zt=null,Gt={onError:function(e){Ht=!0,Qt=e}};function Kt(e,t,n,r,a,o,l,i,s){Ht=!1,Qt=null,Wt.apply(Gt,arguments)}function Yt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xt(e){if(Yt(e)!==e)throw Error(he(188))}function en(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Yt(e)))throw Error(he(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Xt(a),e;if(o===r)return Xt(a),t;o=o.sibling}throw Error(he(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,i=a.child;i;){if(i===n){l=!0,n=a,r=o;break}if(i===r){l=!0,r=a,n=o;break}i=i.sibling}if(!l){for(i=o.child;i;){if(i===n){l=!0,n=o,r=a;break}if(i===r){l=!0,r=o,n=a;break}i=i.sibling}if(!l)throw Error(he(189))}}if(n.alternate!==r)throw Error(he(190))}if(3!==n.tag)throw Error(he(188));return n.stateNode.current===n?e:t}(e))?tn(e):null}function tn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=tn(e);if(null!==t)return t;e=e.sibling}return null}var nn=pe.unstable_scheduleCallback,rn=pe.unstable_cancelCallback,an=pe.unstable_shouldYield,on=pe.unstable_requestPaint,ln=pe.unstable_now,sn=pe.unstable_getCurrentPriorityLevel,un=pe.unstable_ImmediatePriority,cn=pe.unstable_UserBlockingPriority,dn=pe.unstable_NormalPriority,fn=pe.unstable_LowPriority,pn=pe.unstable_IdlePriority,hn=null,mn=null;var gn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(vn(e)/yn|0)|0},vn=Math.log,yn=Math.LN2;var bn=64,xn=4194304;function wn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,l=268435455&n;if(0!==l){var i=l&~a;0!==i?r=wn(i):0!==(o&=l)&&(r=wn(o))}else 0!==(l=n&~a)?r=wn(l):0!==o&&(r=wn(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-gn(t)),r|=e[n],t&=~a;return r}function Sn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function En(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function _n(){var e=bn;return!(4194240&(bn<<=1))&&(bn=64),e}function jn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-gn(t)]=n}function On(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var Tn=0;function Nn(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Fn,Pn,zn,Ln,Mn,An=!1,In=[],Dn=null,Rn=null,$n=null,Un=new Map,Vn=new Map,Bn=[],Wn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hn(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vn.delete(t.pointerId)}}function Qn(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=To(t))&&Pn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function qn(e){var t=Oo(e.target);if(null!==t){var n=Yt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Jt(n)))return e.blockedOn=t,void Mn(e.priority,function(){zn(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Zn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=or(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=To(n))&&Pn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Tt=r,n.target.dispatchEvent(r),Tt=null,t.shift()}return!0}function Gn(e,t,n){Zn(e)&&n.delete(t)}function Kn(){An=!1,null!==Dn&&Zn(Dn)&&(Dn=null),null!==Rn&&Zn(Rn)&&(Rn=null),null!==$n&&Zn($n)&&($n=null),Un.forEach(Gn),Vn.forEach(Gn)}function Yn(e,t){e.blockedOn===t&&(e.blockedOn=null,An||(An=!0,pe.unstable_scheduleCallback(pe.unstable_NormalPriority,Kn)))}function Jn(e){function t(t){return Yn(t,e)}if(0<In.length){Yn(In[0],e);for(var n=1;n<In.length;n++){var r=In[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Dn&&Yn(Dn,e),null!==Rn&&Yn(Rn,e),null!==$n&&Yn($n,e),Un.forEach(t),Vn.forEach(t),n=0;n<Bn.length;n++)(r=Bn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Bn.length&&null===(n=Bn[0]).blockedOn;)qn(n),null===n.blockedOn&&Bn.shift()}var Xn=Te.ReactCurrentBatchConfig,er=!0;function tr(e,t,n,r){var a=Tn,o=Xn.transition;Xn.transition=null;try{Tn=1,rr(e,t,n,r)}finally{Tn=a,Xn.transition=o}}function nr(e,t,n,r){var a=Tn,o=Xn.transition;Xn.transition=null;try{Tn=4,rr(e,t,n,r)}finally{Tn=a,Xn.transition=o}}function rr(e,t,n,r){if(er){var a=or(e,t,n,r);if(null===a)Xa(e,t,r,ar,n),Hn(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Dn=Qn(Dn,e,t,n,r,a),!0;case"dragenter":return Rn=Qn(Rn,e,t,n,r,a),!0;case"mouseover":return $n=Qn($n,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Un.set(o,Qn(Un.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Vn.set(o,Qn(Vn.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Hn(e,r),4&t&&-1<Wn.indexOf(e)){for(;null!==a;){var o=To(a);if(null!==o&&Fn(o),null===(o=or(e,t,n,r))&&Xa(e,t,r,ar,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Xa(e,t,r,null,n)}}var ar=null;function or(e,t,n,r){if(ar=null,null!==(e=Oo(e=Nt(r))))if(null===(t=Yt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Jt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ar=e,null}function lr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(sn()){case un:return 1;case cn:return 4;case dn:case fn:return 16;case pn:return 536870912;default:return 16}default:return 16}}var ir=null,sr=null,ur=null;function cr(){if(ur)return ur;var e,t,n=sr,r=n.length,a="value"in ir?ir.value:ir.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===a[o-t];t++);return ur=a.slice(e,1<t?1-t:void 0)}function dr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function fr(){return!0}function pr(){return!1}function hr(e){function t(t,n,r,a,o){for(var l in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(l)&&(t=e[l],this[l]=t?t(a):a[l]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?fr:pr,this.isPropagationStopped=pr,this}return Qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=fr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=fr)},persist:function(){},isPersistent:fr}),t}var mr,gr,vr,yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},br=hr(yr),xr=Qe({},yr,{view:0,detail:0}),wr=hr(xr),kr=Qe({},xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vr&&(vr&&"mousemove"===e.type?(mr=e.screenX-vr.screenX,gr=e.screenY-vr.screenY):gr=mr=0,vr=e),mr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),Sr=hr(kr),Er=hr(Qe({},kr,{dataTransfer:0})),_r=hr(Qe({},xr,{relatedTarget:0})),jr=hr(Qe({},yr,{animationName:0,elapsedTime:0,pseudoElement:0})),Cr=Qe({},yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Or=hr(Cr),Tr=hr(Qe({},yr,{data:0})),Nr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pr[e])&&!!t[e]}function Lr(){return zr}var Mr=Qe({},xr,{key:function(e){if(e.key){var t=Nr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=dr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Fr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lr,charCode:function(e){return"keypress"===e.type?dr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?dr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ar=hr(Mr),Ir=hr(Qe({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dr=hr(Qe({},xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lr})),Rr=hr(Qe({},yr,{propertyName:0,elapsedTime:0,pseudoElement:0})),$r=Qe({},kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ur=hr($r),Vr=[9,13,27,32],Br=be&&"CompositionEvent"in window,Wr=null;be&&"documentMode"in document&&(Wr=document.documentMode);var Hr=be&&"TextEvent"in window&&!Wr,Qr=be&&(!Br||Wr&&8<Wr&&11>=Wr),qr=String.fromCharCode(32),Zr=!1;function Gr(e,t){switch(e){case"keyup":return-1!==Vr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Yr=!1;var Jr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Jr[e.type]:"textarea"===t}function ea(e,t,n,r){Mt(r),0<(t=to(t,"onChange")).length&&(n=new br("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ta=null,na=null;function ra(e){qa(e,0)}function aa(e){if(nt(No(e)))return e}function oa(e,t){if("change"===e)return t}var la=!1;if(be){var ia;if(be){var sa="oninput"in document;if(!sa){var ua=document.createElement("div");ua.setAttribute("oninput","return;"),sa="function"==typeof ua.oninput}ia=sa}else ia=!1;la=ia&&(!document.documentMode||9<document.documentMode)}function ca(){ta&&(ta.detachEvent("onpropertychange",da),na=ta=null)}function da(e){if("value"===e.propertyName&&aa(na)){var t=[];ea(t,na,e,Nt(e)),$t(ra,t)}}function fa(e,t,n){"focusin"===e?(ca(),na=n,(ta=t).attachEvent("onpropertychange",da)):"focusout"===e&&ca()}function pa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return aa(na)}function ha(e,t){if("click"===e)return aa(t)}function ma(e,t){if("input"===e||"change"===e)return aa(t)}var ga="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function va(e,t){if(ga(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!xe.call(t,a)||!ga(e[a],t[a]))return!1}return!0}function ya(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ba(e,t){var n,r=ya(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ya(r)}}function xa(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?xa(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function wa(){for(var e=window,t=rt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=rt((e=t.contentWindow).document)}return t}function ka(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Sa(e){var t=wa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xa(n.ownerDocument.documentElement,n)){if(null!==r&&ka(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ba(n,o);var l=ba(n,r);a&&l&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ea=be&&"documentMode"in document&&11>=document.documentMode,_a=null,ja=null,Ca=null,Oa=!1;function Ta(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Oa||null==_a||_a!==rt(r)||("selectionStart"in(r=_a)&&ka(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Ca&&va(Ca,r)||(Ca=r,0<(r=to(ja,"onSelect")).length&&(t=new br("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_a)))}function Na(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fa={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionend:Na("Transition","TransitionEnd")},Pa={},za={};function La(e){if(Pa[e])return Pa[e];if(!Fa[e])return e;var t,n=Fa[e];for(t in n)if(n.hasOwnProperty(t)&&t in za)return Pa[e]=n[t];return e}be&&(za=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);var Ma=La("animationend"),Aa=La("animationiteration"),Ia=La("animationstart"),Da=La("transitionend"),Ra=new Map,$a="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ua(e,t){Ra.set(e,t),ve(t,[e])}for(var Va=0;Va<$a.length;Va++){var Ba=$a[Va];Ua(Ba.toLowerCase(),"on"+(Ba[0].toUpperCase()+Ba.slice(1)))}Ua(Ma,"onAnimationEnd"),Ua(Aa,"onAnimationIteration"),Ua(Ia,"onAnimationStart"),Ua("dblclick","onDoubleClick"),Ua("focusin","onFocus"),Ua("focusout","onBlur"),Ua(Da,"onTransitionEnd"),ye("onMouseEnter",["mouseout","mouseover"]),ye("onMouseLeave",["mouseout","mouseover"]),ye("onPointerEnter",["pointerout","pointerover"]),ye("onPointerLeave",["pointerout","pointerover"]),ve("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ve("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ve("onBeforeInput",["compositionend","keypress","textInput","paste"]),ve("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ve("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ve("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ha=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wa));function Qa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,l,i,s){if(Kt.apply(this,arguments),Ht){if(!Ht)throw Error(he(198));var u=Qt;Ht=!1,Qt=null,qt||(qt=!0,Zt=u)}}(r,t,void 0,e),e.currentTarget=null}function qa(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],s=i.instance,u=i.currentTarget;if(i=i.listener,s!==o&&a.isPropagationStopped())break e;Qa(a,i,u),o=s}else for(l=0;l<r.length;l++){if(s=(i=r[l]).instance,u=i.currentTarget,i=i.listener,s!==o&&a.isPropagationStopped())break e;Qa(a,i,u),o=s}}}if(qt)throw e=Zt,qt=!1,Zt=null,e}function Za(e,t){var n=t[_o];void 0===n&&(n=t[_o]=new Set);var r=e+"__bubble";n.has(r)||(Ja(t,e,2,!1),n.add(r))}function Ga(e,t,n){var r=0;t&&(r|=4),Ja(n,e,r,t)}var Ka="_reactListening"+Math.random().toString(36).slice(2);function Ya(e){if(!e[Ka]){e[Ka]=!0,me.forEach(function(t){"selectionchange"!==t&&(Ha.has(t)||Ga(t,!1,e),Ga(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ka]||(t[Ka]=!0,Ga("selectionchange",!1,t))}}function Ja(e,t,n,r){switch(lr(t)){case 1:var a=tr;break;case 4:a=nr;break;default:a=rr}n=a.bind(null,t,n,e),a=void 0,!Vt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Xa(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===l)for(l=r.return;null!==l;){var s=l.tag;if((3===s||4===s)&&((s=l.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;l=l.return}for(;null!==i;){if(null===(l=Oo(i)))return;if(5===(s=l.tag)||6===s){r=o=l;continue e}i=i.parentNode}}r=r.return}$t(function(){var r=o,a=Nt(n),l=[];e:{var i=Ra.get(e);if(void 0!==i){var s=br,u=e;switch(e){case"keypress":if(0===dr(n))break e;case"keydown":case"keyup":s=Ar;break;case"focusin":u="focus",s=_r;break;case"focusout":u="blur",s=_r;break;case"beforeblur":case"afterblur":s=_r;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Er;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Dr;break;case Ma:case Aa:case Ia:s=jr;break;case Da:s=Rr;break;case"scroll":s=wr;break;case"wheel":s=Ur;break;case"copy":case"cut":case"paste":s=Or;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ir}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==i?i+"Capture":null:i;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ut(h,f))&&c.push(eo(h,m,p)))),d)break;h=h.return}0<c.length&&(i=new s(i,u,null,n,a),l.push({event:i,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===Tt||!(u=n.relatedTarget||n.fromElement)||!Oo(u)&&!u[Eo])&&(s||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Oo(u):null)&&(u!==(d=Yt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=Sr,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Ir,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?i:No(s),p=null==u?i:No(u),(i=new c(m,h+"leave",s,n,a)).target=d,i.relatedTarget=p,m=null,Oo(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=no(p))h++;for(p=0,m=f;m;m=no(m))p++;for(;0<h-p;)c=no(c),h--;for(;0<p-h;)f=no(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=no(c),f=no(f)}c=null}else c=null;null!==s&&ro(l,i,s,c,!1),null!==u&&null!==d&&ro(l,d,u,c,!0)}if("select"===(s=(i=r?No(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===s&&"file"===i.type)var g=oa;else if(Xr(i))if(la)g=ma;else{g=pa;var v=fa}else(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=ha);switch(g&&(g=g(e,r))?ea(l,g,n,a):(v&&v(e,i,r),"focusout"===e&&(v=i._wrapperState)&&v.controlled&&"number"===i.type&&ut(i,"number",i.value)),v=r?No(r):window,e){case"focusin":(Xr(v)||"true"===v.contentEditable)&&(_a=v,ja=r,Ca=null);break;case"focusout":Ca=ja=_a=null;break;case"mousedown":Oa=!0;break;case"contextmenu":case"mouseup":case"dragend":Oa=!1,Ta(l,n,a);break;case"selectionchange":if(Ea)break;case"keydown":case"keyup":Ta(l,n,a)}var y;if(Br)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Yr?Gr(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Qr&&"ko"!==n.locale&&(Yr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Yr&&(y=cr()):(sr="value"in(ir=a)?ir.value:ir.textContent,Yr=!0)),0<(v=to(r,b)).length&&(b=new Tr(b,e,null,n,a),l.push({event:b,listeners:v}),y?b.data=y:null!==(y=Kr(n))&&(b.data=y))),(y=Hr?function(e,t){switch(e){case"compositionend":return Kr(t);case"keypress":return 32!==t.which?null:(Zr=!0,qr);case"textInput":return(e=t.data)===qr&&Zr?null:e;default:return null}}(e,n):function(e,t){if(Yr)return"compositionend"===e||!Br&&Gr(e,t)?(e=cr(),ur=sr=ir=null,Yr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=to(r,"onBeforeInput")).length&&(a=new Tr("onBeforeInput","beforeinput",null,n,a),l.push({event:a,listeners:r}),a.data=y))}qa(l,t)})}function eo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function to(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Ut(e,n))&&r.unshift(eo(e,o,a)),null!=(o=Ut(e,t))&&r.push(eo(e,o,a))),e=e.return}return r}function no(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ro(e,t,n,r,a){for(var o=t._reactName,l=[];null!==n&&n!==r;){var i=n,s=i.alternate,u=i.stateNode;if(null!==s&&s===r)break;5===i.tag&&null!==u&&(i=u,a?null!=(s=Ut(n,o))&&l.unshift(eo(n,s,i)):a||null!=(s=Ut(n,o))&&l.push(eo(n,s,i))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var ao=/\r\n?/g,oo=/\u0000|\uFFFD/g;function lo(e){return("string"==typeof e?e:""+e).replace(ao,"\n").replace(oo,"")}function io(e,t,n){if(t=lo(t),lo(e)!==t&&n)throw Error(he(425))}function so(){}var uo=null,co=null;function fo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var po="function"==typeof setTimeout?setTimeout:void 0,ho="function"==typeof clearTimeout?clearTimeout:void 0,mo="function"==typeof Promise?Promise:void 0,go="function"==typeof queueMicrotask?queueMicrotask:void 0!==mo?function(e){return mo.resolve(null).then(e).catch(vo)}:po;function vo(e){setTimeout(function(){throw e})}function yo(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Jn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Jn(t)}function bo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function xo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var wo=Math.random().toString(36).slice(2),ko="__reactFiber$"+wo,So="__reactProps$"+wo,Eo="__reactContainer$"+wo,_o="__reactEvents$"+wo,jo="__reactListeners$"+wo,Co="__reactHandles$"+wo;function Oo(e){var t=e[ko];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Eo]||n[ko]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xo(e);null!==e;){if(n=e[ko])return n;e=xo(e)}return t}n=(e=n).parentNode}return null}function To(e){return!(e=e[ko]||e[Eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function No(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(he(33))}function Fo(e){return e[So]||null}var Po=[],zo=-1;function Lo(e){return{current:e}}function Mo(e){0>zo||(e.current=Po[zo],Po[zo]=null,zo--)}function Ao(e,t){zo++,Po[zo]=e.current,e.current=t}var Io={},Do=Lo(Io),Ro=Lo(!1),$o=Io;function Uo(e,t){var n=e.type.contextTypes;if(!n)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Vo(e){return null!=(e=e.childContextTypes)}function Bo(){Mo(Ro),Mo(Do)}function Wo(e,t,n){if(Do.current!==Io)throw Error(he(168));Ao(Do,t),Ao(Ro,n)}function Ho(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(he(108,Je(e)||"Unknown",a));return Qe({},n,r)}function Qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,$o=Do.current,Ao(Do,e),Ao(Ro,Ro.current),!0}function qo(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Ho(e,t,$o),r.__reactInternalMemoizedMergedChildContext=e,Mo(Ro),Mo(Do),Ao(Do,e)):Mo(Ro),Ao(Ro,n)}var Zo=null,Go=!1,Ko=!1;function Yo(e){null===Zo?Zo=[e]:Zo.push(e)}function Jo(){if(!Ko&&null!==Zo){Ko=!0;var e=0,t=Tn;try{var n=Zo;for(Tn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Zo=null,Go=!1}catch(a){throw null!==Zo&&(Zo=Zo.slice(e+1)),nn(un,Jo),a}finally{Tn=t,Ko=!1}}return null}var Xo=[],el=0,tl=null,nl=0,rl=[],al=0,ol=null,ll=1,il="";function sl(e,t){Xo[el++]=nl,Xo[el++]=tl,tl=e,nl=t}function ul(e,t,n){rl[al++]=ll,rl[al++]=il,rl[al++]=ol,ol=e;var r=ll;e=il;var a=32-gn(r)-1;r&=~(1<<a),n+=1;var o=32-gn(t)+a;if(30<o){var l=a-a%5;o=(r&(1<<l)-1).toString(32),r>>=l,a-=l,ll=1<<32-gn(t)+a|n<<a|r,il=o+e}else ll=1<<o|n<<a|r,il=e}function cl(e){null!==e.return&&(sl(e,1),ul(e,1,0))}function dl(e){for(;e===tl;)tl=Xo[--el],Xo[el]=null,nl=Xo[--el],Xo[el]=null;for(;e===ol;)ol=rl[--al],rl[al]=null,il=rl[--al],rl[al]=null,ll=rl[--al],rl[al]=null}var fl=null,pl=null,hl=!1,ml=null;function gl(e,t){var n=$c(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function vl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,fl=e,pl=bo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,fl=e,pl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ol?{id:ll,overflow:il}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=$c(18,null,null,0)).stateNode=t,n.return=e,e.child=n,fl=e,pl=null,!0);default:return!1}}function yl(e){return!(!(1&e.mode)||128&e.flags)}function bl(e){if(hl){var t=pl;if(t){var n=t;if(!vl(e,t)){if(yl(e))throw Error(he(418));t=bo(n.nextSibling);var r=fl;t&&vl(e,t)?gl(r,n):(e.flags=-4097&e.flags|2,hl=!1,fl=e)}}else{if(yl(e))throw Error(he(418));e.flags=-4097&e.flags|2,hl=!1,fl=e}}}function xl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;fl=e}function wl(e){if(e!==fl)return!1;if(!hl)return xl(e),hl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!fo(e.type,e.memoizedProps)),t&&(t=pl)){if(yl(e))throw kl(),Error(he(418));for(;t;)gl(e,t),t=bo(t.nextSibling)}if(xl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(he(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){pl=bo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}pl=null}}else pl=fl?bo(e.stateNode.nextSibling):null;return!0}function kl(){for(var e=pl;e;)e=bo(e.nextSibling)}function Sl(){pl=fl=null,hl=!1}function El(e){null===ml?ml=[e]:ml.push(e)}var _l=Te.ReactCurrentBatchConfig;function jl(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(he(309));var r=n.stateNode}if(!r)throw Error(he(147,e));var a=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=a.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(he(284));if(!n._owner)throw Error(he(290,e))}return e}function Cl(e,t){throw e=Object.prototype.toString.call(t),Error(he(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ol(e){return(0,e._init)(e._payload)}function Tl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Vc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function i(e,t,n,r){return null===t||6!==t.tag?((t=Qc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){var o=n.type;return o===Pe?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===Ue&&Ol(o)===t.type)?((r=a(t,n.props)).ref=jl(e,t,n),r.return=e,r):((r=Bc(n.type,n.key,n.props,null,e.mode,r)).ref=jl(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=Wc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Qc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ne:return(n=Bc(t.type,t.key,t.props,null,e.mode,n)).ref=jl(e,null,t),n.return=e,n;case Fe:return(t=qc(t,e.mode,n)).return=e,t;case Ue:return d(e,(0,t._init)(t._payload),n)}if(ct(t)||We(t))return(t=Wc(t,e.mode,n,null)).return=e,t;Cl(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:i(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ne:return n.key===a?s(e,t,n,r):null;case Fe:return n.key===a?u(e,t,n,r):null;case Ue:return f(e,t,(a=n._init)(n._payload),r)}if(ct(n)||We(n))return null!==a?null:c(e,t,n,r,null);Cl(e,n)}return null}function p(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return i(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ne:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a);case Fe:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case Ue:return p(e,t,n,(0,r._init)(r._payload),a)}if(ct(r)||We(r))return c(t,e=e.get(n)||null,r,a,null);Cl(t,r)}return null}return function i(s,u,c,h){if("object"==typeof c&&null!==c&&c.type===Pe&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case Ne:e:{for(var m=c.key,g=u;null!==g;){if(g.key===m){if((m=c.type)===Pe){if(7===g.tag){n(s,g.sibling),(u=a(g,c.props.children)).return=s,s=u;break e}}else if(g.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Ue&&Ol(m)===g.type){n(s,g.sibling),(u=a(g,c.props)).ref=jl(s,g,c),u.return=s,s=u;break e}n(s,g);break}t(s,g),g=g.sibling}c.type===Pe?((u=Wc(c.props.children,s.mode,h,c.key)).return=s,s=u):((h=Bc(c.type,c.key,c.props,null,s.mode,h)).ref=jl(s,u,c),h.return=s,s=h)}return l(s);case Fe:e:{for(g=c.key;null!==u;){if(u.key===g){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(s,u.sibling),(u=a(u,c.children||[])).return=s,s=u;break e}n(s,u);break}t(s,u),u=u.sibling}(u=qc(c,s.mode,h)).return=s,s=u}return l(s);case Ue:return i(s,u,(g=c._init)(c._payload),h)}if(ct(c))return function(a,l,i,s){for(var u=null,c=null,h=l,m=l=0,g=null;null!==h&&m<i.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=f(a,h,i[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(a,h),l=o(v,l,m),null===c?u=v:c.sibling=v,c=v,h=g}if(m===i.length)return n(a,h),hl&&sl(a,m),u;if(null===h){for(;m<i.length;m++)null!==(h=d(a,i[m],s))&&(l=o(h,l,m),null===c?u=h:c.sibling=h,c=h);return hl&&sl(a,m),u}for(h=r(a,h);m<i.length;m++)null!==(g=p(h,a,m,i[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),l=o(g,l,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach(function(e){return t(a,e)}),hl&&sl(a,m),u}(s,u,c,h);if(We(c))return function(a,l,i,s){var u=We(i);if("function"!=typeof u)throw Error(he(150));if(null==(i=u.call(i)))throw Error(he(151));for(var c=u=null,h=l,m=l=0,g=null,v=i.next();null!==h&&!v.done;m++,v=i.next()){h.index>m?(g=h,h=null):g=h.sibling;var y=f(a,h,v.value,s);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(a,h),l=o(y,l,m),null===c?u=y:c.sibling=y,c=y,h=g}if(v.done)return n(a,h),hl&&sl(a,m),u;if(null===h){for(;!v.done;m++,v=i.next())null!==(v=d(a,v.value,s))&&(l=o(v,l,m),null===c?u=v:c.sibling=v,c=v);return hl&&sl(a,m),u}for(h=r(a,h);!v.done;m++,v=i.next())null!==(v=p(h,a,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),l=o(v,l,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return t(a,e)}),hl&&sl(a,m),u}(s,u,c,h);Cl(s,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(s,u.sibling),(u=a(u,c)).return=s,s=u):(n(s,u),(u=Qc(c,s.mode,h)).return=s,s=u),l(s)):n(s,u)}}var Nl=Tl(!0),Fl=Tl(!1),Pl=Lo(null),zl=null,Ll=null,Ml=null;function Al(){Ml=Ll=zl=null}function Il(e){var t=Pl.current;Mo(Pl),e._currentValue=t}function Dl(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rl(e,t){zl=e,Ml=Ll=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Os=!0),e.firstContext=null)}function $l(e){var t=e._currentValue;if(Ml!==e)if(e={context:e,memoizedValue:t,next:null},null===Ll){if(null===zl)throw Error(he(308));Ll=e,zl.dependencies={lanes:0,firstContext:e}}else Ll=Ll.next=e;return t}var Ul=null;function Vl(e){null===Ul?Ul=[e]:Ul.push(e)}function Bl(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Vl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Wl(e,r)}function Wl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Hl=!1;function Ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ql(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Iu){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Wl(e,n)}return null===(a=r.interleaved)?(t.next=t,Vl(r)):(t.next=a.next,a.next=t),r.interleaved=t,Wl(e,n)}function Kl(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,On(e,n)}}function Yl(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=l:o=o.next=l,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jl(e,t,n,r){var a=e.updateQueue;Hl=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,u=s.next;s.next=null,null===l?o=u:l.next=u,l=s;var c=e.alternate;null!==c&&((i=(c=c.updateQueue).lastBaseUpdate)!==l&&(null===i?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(l=0,c=u=s=null,i=o;;){var f=i.lane,p=i.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Qe({},d,f);break e;case 2:Hl=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[i]:f.push(i))}else p={eventTime:p,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,l|=f;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(f=i).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{l|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Hu|=l,e.lanes=l,e.memoizedState=d}}function Xl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(he(191,a));a.call(r)}}}var ei={},ti=Lo(ei),ni=Lo(ei),ri=Lo(ei);function ai(e){if(e===ei)throw Error(he(174));return e}function oi(e,t){switch(Ao(ri,t),Ao(ni,e),Ao(ti,ei),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vt(null,"");break;default:t=vt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mo(ti),Ao(ti,t)}function li(){Mo(ti),Mo(ni),Mo(ri)}function ii(e){ai(ri.current);var t=ai(ti.current),n=vt(t,e.type);t!==n&&(Ao(ni,e),Ao(ti,n))}function si(e){ni.current===e&&(Mo(ti),Mo(ni))}var ui=Lo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var di=[];function fi(){for(var e=0;e<di.length;e++)di[e]._workInProgressVersionPrimary=null;di.length=0}var pi=Te.ReactCurrentDispatcher,hi=Te.ReactCurrentBatchConfig,mi=0,gi=null,vi=null,yi=null,bi=!1,xi=!1,wi=0,ki=0;function Si(){throw Error(he(321))}function Ei(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ga(e[n],t[n]))return!1;return!0}function _i(e,t,n,r,a,o){if(mi=o,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:us,e=n(r,a),xi){o=0;do{if(xi=!1,wi=0,25<=o)throw Error(he(301));o+=1,yi=vi=null,t.updateQueue=null,pi.current=cs,e=n(r,a)}while(xi)}if(pi.current=is,t=null!==vi&&null!==vi.next,mi=0,yi=vi=gi=null,bi=!1,t)throw Error(he(300));return e}function ji(){var e=0!==wi;return wi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?gi.memoizedState=yi=e:yi=yi.next=e,yi}function Oi(){if(null===vi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===yi?gi.memoizedState:yi.next;if(null!==t)yi=t,vi=e;else{if(null===e)throw Error(he(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===yi?gi.memoizedState=yi=e:yi=yi.next=e}return yi}function Ti(e,t){return"function"==typeof t?t(e):t}function Ni(e){var t=Oi(),n=t.queue;if(null===n)throw Error(he(311));n.lastRenderedReducer=e;var r=vi,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){o=a.next,r=r.baseState;var i=l=null,s=null,u=o;do{var c=u.lane;if((mi&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(i=s=d,l=r):s=s.next=d,gi.lanes|=c,Hu|=c}u=u.next}while(null!==u&&u!==o);null===s?l=r:s.next=i,ga(r,t.memoizedState)||(Os=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{o=a.lane,gi.lanes|=o,Hu|=o,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fi(e){var t=Oi(),n=t.queue;if(null===n)throw Error(he(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);ga(o,t.memoizedState)||(Os=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pi(){}function zi(e,t){var n=gi,r=Oi(),a=t(),o=!ga(r.memoizedState,a);if(o&&(r.memoizedState=a,Os=!0),r=r.queue,Hi(Ai.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==yi&&1&yi.memoizedState.tag){if(n.flags|=2048,$i(9,Mi.bind(null,n,r,a,t),void 0,null),null===Du)throw Error(he(349));30&mi||Li(n,t,a)}return a}function Li(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Mi(e,t,n,r){t.value=n,t.getSnapshot=r,Ii(t)&&Di(e)}function Ai(e,t,n){return n(function(){Ii(t)&&Di(e)})}function Ii(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ga(e,n)}catch(r){return!0}}function Di(e){var t=Wl(e,1);null!==t&&dc(t,e,1,-1)}function Ri(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,gi,e),[t.memoizedState,e]}function $i(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ui(){return Oi().memoizedState}function Vi(e,t,n,r){var a=Ci();gi.flags|=e,a.memoizedState=$i(1|t,n,void 0,void 0===r?null:r)}function Bi(e,t,n,r){var a=Oi();r=void 0===r?null:r;var o=void 0;if(null!==vi){var l=vi.memoizedState;if(o=l.destroy,null!==r&&Ei(r,l.deps))return void(a.memoizedState=$i(t,n,o,r))}gi.flags|=e,a.memoizedState=$i(1|t,n,o,r)}function Wi(e,t){return Vi(8390656,8,e,t)}function Hi(e,t){return Bi(2048,8,e,t)}function Qi(e,t){return Bi(4,2,e,t)}function qi(e,t){return Bi(4,4,e,t)}function Zi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gi(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4,4,Zi.bind(null,t,e),n)}function Ki(){}function Yi(e,t){var n=Oi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ei(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ji(e,t){var n=Oi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ei(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xi(e,t,n){return 21&mi?(ga(n,t)||(n=_n(),gi.lanes|=n,Hu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Os=!0),e.memoizedState=n)}function es(e,t){var n=Tn;Tn=0!==n&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{Tn=n,hi.transition=r}}function ts(){return Oi().memoizedState}function ns(e,t,n){var r=cc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},as(e))os(t,n);else if(null!==(n=Bl(e,t,n,r))){dc(n,e,r,uc()),ls(n,t,r)}}function rs(e,t,n){var r=cc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(as(e))os(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,i=o(l,n);if(a.hasEagerState=!0,a.eagerState=i,ga(i,l)){var s=t.interleaved;return null===s?(a.next=a,Vl(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Bl(e,t,a,r))&&(dc(n,e,r,a=uc()),ls(n,t,r))}}function as(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function os(e,t){xi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ls(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,On(e,n)}}var is={readContext:$l,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},ss={readContext:$l,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:$l,useEffect:Wi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4194308,4,Zi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ns.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Ri,useDebugValue:Ki,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Ri(!1),t=e[0];return e=es.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,a=Ci();if(hl){if(void 0===n)throw Error(he(407));n=n()}else{if(n=t(),null===Du)throw Error(he(349));30&mi||Li(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Wi(Ai.bind(null,r,o,e),[e]),r.flags|=2048,$i(9,Mi.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ci(),t=Du.identifierPrefix;if(hl){var n=il;t=":"+t+"R"+(n=(ll&~(1<<32-gn(ll)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ki++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:$l,useCallback:Yi,useContext:$l,useEffect:Hi,useImperativeHandle:Gi,useInsertionEffect:Qi,useLayoutEffect:qi,useMemo:Ji,useReducer:Ni,useRef:Ui,useState:function(){return Ni(Ti)},useDebugValue:Ki,useDeferredValue:function(e){return Xi(Oi(),vi.memoizedState,e)},useTransition:function(){return[Ni(Ti)[0],Oi().memoizedState]},useMutableSource:Pi,useSyncExternalStore:zi,useId:ts,unstable_isNewReconciler:!1},cs={readContext:$l,useCallback:Yi,useContext:$l,useEffect:Hi,useImperativeHandle:Gi,useInsertionEffect:Qi,useLayoutEffect:qi,useMemo:Ji,useReducer:Fi,useRef:Ui,useState:function(){return Fi(Ti)},useDebugValue:Ki,useDeferredValue:function(e){var t=Oi();return null===vi?t.memoizedState=e:Xi(t,vi.memoizedState,e)},useTransition:function(){return[Fi(Ti)[0],Oi().memoizedState]},useMutableSource:Pi,useSyncExternalStore:zi,useId:ts,unstable_isNewReconciler:!1};function ds(e,t){if(e&&e.defaultProps){for(var n in t=Qe({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function fs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Qe({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ps={isMounted:function(e){return!!(e=e._reactInternals)&&Yt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uc(),a=cc(e),o=Zl(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Gl(e,o,a))&&(dc(t,e,a,r),Kl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uc(),a=cc(e),o=Zl(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Gl(e,o,a))&&(dc(t,e,a,r),Kl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uc(),r=cc(e),a=Zl(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Gl(e,a,r))&&(dc(t,e,r,n),Kl(t,e,r))}};function hs(e,t,n,r,a,o,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,l):!t.prototype||!t.prototype.isPureReactComponent||(!va(n,r)||!va(a,o))}function ms(e,t,n){var r=!1,a=Io,o=t.contextType;return"object"==typeof o&&null!==o?o=$l(o):(a=Vo(t)?$o:Do.current,o=(r=null!=(r=t.contextTypes))?Uo(e,a):Io),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ps,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function gs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function vs(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ql(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=$l(o):(o=Vo(t)?$o:Do.current,a.context=Uo(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fs(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ps.enqueueReplaceState(a,a.state,null),Jl(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function ys(e,t){try{var n="",r=t;do{n+=Ke(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function bs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function xs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ws="function"==typeof WeakMap?WeakMap:Map;function ks(e,t,n){(n=Zl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xu||(Xu=!0,ec=r),xs(0,t)},n}function Ss(e,t,n){(n=Zl(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){xs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){xs(0,t),"function"!=typeof r&&(null===tc?tc=new Set([this]):tc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Es(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ws;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Lc.bind(null,e,t,n),t.then(e,e))}function _s(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function js(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Zl(-1,1)).tag=2,Gl(n,t,1))),n.lanes|=1),e)}var Cs=Te.ReactCurrentOwner,Os=!1;function Ts(e,t,n,r){t.child=null===e?Fl(t,null,n,r):Nl(t,e.child,n,r)}function Ns(e,t,n,r,a){n=n.render;var o=t.ref;return Rl(t,a),r=_i(e,t,n,r,o,a),n=ji(),null===e||Os?(hl&&n&&cl(t),t.flags|=1,Ts(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Xs(e,t,a))}function Fs(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Uc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Bc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ps(e,t,o,r,a))}if(o=e.child,0===(e.lanes&a)){var l=o.memoizedProps;if((n=null!==(n=n.compare)?n:va)(l,r)&&e.ref===t.ref)return Xs(e,t,a)}return t.flags|=1,(e=Vc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ps(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(va(o,r)&&e.ref===t.ref){if(Os=!1,t.pendingProps=r=o,0===(e.lanes&a))return t.lanes=e.lanes,Xs(e,t,a);131072&e.flags&&(Os=!0)}}return Ms(e,t,n,r,a)}function zs(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Vu,Uu),Uu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ao(Vu,Uu),Uu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Vu,Uu),Uu|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ao(Vu,Uu),Uu|=r;return Ts(e,t,a,n),t.child}function Ls(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ms(e,t,n,r,a){var o=Vo(n)?$o:Do.current;return o=Uo(t,o),Rl(t,a),n=_i(e,t,n,r,o,a),r=ji(),null===e||Os?(hl&&r&&cl(t),t.flags|=1,Ts(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Xs(e,t,a))}function As(e,t,n,r,a){if(Vo(n)){var o=!0;Qo(t)}else o=!1;if(Rl(t,a),null===t.stateNode)Js(e,t),ms(t,n,r),vs(t,n,r,a),r=!0;else if(null===e){var l=t.stateNode,i=t.memoizedProps;l.props=i;var s=l.context,u=n.contextType;"object"==typeof u&&null!==u?u=$l(u):u=Uo(t,u=Vo(n)?$o:Do.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;d||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(i!==r||s!==u)&&gs(t,l,r,u),Hl=!1;var f=t.memoizedState;l.state=f,Jl(t,r,l,a),s=t.memoizedState,i!==r||f!==s||Ro.current||Hl?("function"==typeof c&&(fs(t,n,c,r),s=t.memoizedState),(i=Hl||hs(t,n,i,r,f,s,u))?(d||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4194308)):("function"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=i):("function"==typeof l.componentDidMount&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,ql(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:ds(t.type,i),l.props=u,d=t.pendingProps,f=l.context,"object"==typeof(s=n.contextType)&&null!==s?s=$l(s):s=Uo(t,s=Vo(n)?$o:Do.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(i!==d||f!==s)&&gs(t,l,r,s),Hl=!1,f=t.memoizedState,l.state=f,Jl(t,r,l,a);var h=t.memoizedState;i!==d||f!==h||Ro.current||Hl?("function"==typeof p&&(fs(t,n,p,r),h=t.memoizedState),(u=Hl||hs(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,h,s),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=u):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Is(e,t,n,r,o,a)}function Is(e,t,n,r,a,o){Ls(e,t);var l=!!(128&t.flags);if(!r&&!l)return a&&qo(t,n,!1),Xs(e,t,o);r=t.stateNode,Cs.current=t;var i=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Nl(t,e.child,null,o),t.child=Nl(t,null,i,o)):Ts(e,t,i,o),t.memoizedState=r.state,a&&qo(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Wo(0,t.context,!1),oi(e,t.containerInfo)}function Rs(e,t,n,r,a){return Sl(),El(a),t.flags|=256,Ts(e,t,n,r),t.child}var $s,Us,Vs,Bs,Ws={dehydrated:null,treeContext:null,retryLane:0};function Hs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qs(e,t,n){var r,a=t.pendingProps,o=ui.current,l=!1,i=!!(128&t.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ao(ui,1&o),null===e)return bl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=a.children,e=a.fallback,l?(a=t.mode,l=t.child,i={mode:"hidden",children:i},1&a||null===l?l=Hc(i,a,0,null):(l.childLanes=0,l.pendingProps=i),e=Wc(e,a,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Hs(n),t.memoizedState=Ws,e):qs(t,i));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,l){if(n)return 256&t.flags?(t.flags&=-257,Zs(e,t,l,r=bs(Error(he(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=Hc({mode:"visible",children:r.children},a,0,null),(o=Wc(o,a,l,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&Nl(t,e.child,null,l),t.child.memoizedState=Hs(l),t.memoizedState=Ws,o);if(!(1&t.mode))return Zs(e,t,l,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var i=r.dgst;return r=i,Zs(e,t,l,r=bs(o=Error(he(419)),r,void 0))}if(i=0!==(l&e.childLanes),Os||i){if(null!==(r=Du)){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|l))?0:a)&&a!==o.retryLane&&(o.retryLane=a,Wl(e,a),dc(r,e,a,-1))}return Ec(),Zs(e,t,l,r=bs(Error(he(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,pl=bo(a.nextSibling),fl=t,hl=!0,ml=null,null!==e&&(rl[al++]=ll,rl[al++]=il,rl[al++]=ol,ll=e.id,il=e.overflow,ol=t),t=qs(t,r.children),t.flags|=4096,t)}(e,t,i,a,r,o,n);if(l){l=a.fallback,i=t.mode,r=(o=e.child).sibling;var s={mode:"hidden",children:a.children};return 1&i||t.child===o?(a=Vc(o,s)).subtreeFlags=14680064&o.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=s,t.deletions=null),null!==r?l=Vc(r,l):(l=Wc(l,i,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,i=null===(i=e.child.memoizedState)?Hs(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=Ws,a}return e=(l=e.child).sibling,a=Vc(l,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function qs(e,t){return(t=Hc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zs(e,t,n,r){return null!==r&&El(r),Nl(t,e.child,null,n),(e=qs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Dl(e.return,t,n)}function Ks(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Ys(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Ts(e,t,r.children,n),2&(r=ui.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gs(e,n,t);else if(19===e.tag)Gs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ui,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ks(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ci(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ks(t,!0,n,null,o);break;case"together":Ks(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Js(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Hu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(he(153));if(null!==t.child){for(n=Vc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function eu(e,t){if(!hl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nu(e,t,n){var r=t.pendingProps;switch(dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tu(t),null;case 1:case 17:return Vo(t.type)&&Bo(),tu(t),null;case 3:return r=t.stateNode,li(),Mo(Ro),Mo(Do),fi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(wl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ml&&(mc(ml),ml=null))),Us(e,t),tu(t),null;case 5:si(t);var a=ai(ri.current);if(n=t.type,null!==e&&null!=t.stateNode)Vs(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(he(166));return tu(t),null}if(e=ai(ti.current),wl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ko]=t,r[So]=o,e=!!(1&t.mode),n){case"dialog":Za("cancel",r),Za("close",r);break;case"iframe":case"object":case"embed":Za("load",r);break;case"video":case"audio":for(a=0;a<Wa.length;a++)Za(Wa[a],r);break;case"source":Za("error",r);break;case"img":case"image":case"link":Za("error",r),Za("load",r);break;case"details":Za("toggle",r);break;case"input":ot(r,o),Za("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Za("invalid",r);break;case"textarea":pt(r,o),Za("invalid",r)}for(var l in Ct(n,o),a=null,o)if(o.hasOwnProperty(l)){var i=o[l];"children"===l?"string"==typeof i?r.textContent!==i&&(!0!==o.suppressHydrationWarning&&io(r.textContent,i,e),a=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(!0!==o.suppressHydrationWarning&&io(r.textContent,i,e),a=["children",""+i]):ge.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Za("scroll",r)}switch(n){case"input":tt(r),st(r,o,!0);break;case"textarea":tt(r),mt(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=so)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=gt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ko]=t,e[So]=r,$s(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ot(n,r),n){case"dialog":Za("cancel",e),Za("close",e),a=r;break;case"iframe":case"object":case"embed":Za("load",e),a=r;break;case"video":case"audio":for(a=0;a<Wa.length;a++)Za(Wa[a],e);a=r;break;case"source":Za("error",e),a=r;break;case"img":case"image":case"link":Za("error",e),Za("load",e),a=r;break;case"details":Za("toggle",e),a=r;break;case"input":ot(e,r),a=at(e,r),Za("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=Qe({},r,{value:void 0}),Za("invalid",e);break;case"textarea":pt(e,r),a=ft(e,r),Za("invalid",e)}for(o in Ct(n,a),i=a)if(i.hasOwnProperty(o)){var s=i[o];"style"===o?_t(e,s):"dangerouslySetInnerHTML"===o?null!=(s=s?s.__html:void 0)&&xt(e,s):"children"===o?"string"==typeof s?("textarea"!==n||""!==s)&&wt(e,s):"number"==typeof s&&wt(e,""+s):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(ge.hasOwnProperty(o)?null!=s&&"onScroll"===o&&Za("scroll",e):null!=s&&Oe(e,o,s,l))}switch(n){case"input":tt(e),st(e,r,!1);break;case"textarea":tt(e),mt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Xe(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?dt(e,!!r.multiple,o,!1):null!=r.defaultValue&&dt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=so)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return tu(t),null;case 6:if(e&&null!=t.stateNode)Bs(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(he(166));if(n=ai(ri.current),ai(ti.current),wl(t)){if(r=t.stateNode,n=t.memoizedProps,r[ko]=t,(o=r.nodeValue!==n)&&null!==(e=fl))switch(e.tag){case 3:io(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&io(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ko]=t,t.stateNode=r}return tu(t),null;case 13:if(Mo(ui),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(hl&&null!==pl&&1&t.mode&&!(128&t.flags))kl(),Sl(),t.flags|=98560,o=!1;else if(o=wl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(he(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(he(317));o[ko]=t}else Sl(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;tu(t),o=!1}else null!==ml&&(mc(ml),ml=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ui.current?0===Bu&&(Bu=3):Ec())),null!==t.updateQueue&&(t.flags|=4),tu(t),null);case 4:return li(),Us(e,t),null===e&&Ya(t.stateNode.containerInfo),tu(t),null;case 10:return Il(t.type._context),tu(t),null;case 19:if(Mo(ui),null===(o=t.memoizedState))return tu(t),null;if(r=!!(128&t.flags),null===(l=o.rendering))if(r)eu(o,!1);else{if(0!==Bu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,eu(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ui,1&ui.current|2),t.child}e=e.sibling}null!==o.tail&&ln()>Yu&&(t.flags|=128,r=!0,eu(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),eu(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!hl)return tu(t),null}else 2*ln()-o.renderingStartTime>Yu&&1073741824!==n&&(t.flags|=128,r=!0,eu(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ln(),t.sibling=null,n=ui.current,Ao(ui,r?1&n|2:1&n),t):(tu(t),null);case 22:case 23:return xc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Uu)&&(tu(t),6&t.subtreeFlags&&(t.flags|=8192)):tu(t),null;case 24:case 25:return null}throw Error(he(156,t.tag))}function ru(e,t){switch(dl(t),t.tag){case 1:return Vo(t.type)&&Bo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return li(),Mo(Ro),Mo(Do),fi(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Mo(ui),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(he(340));Sl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mo(ui),null;case 4:return li(),null;case 10:return Il(t.type._context),null;case 22:case 23:return xc(),null;default:return null}}$s=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Us=function(){},Vs=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ai(ti.current);var o,l=null;switch(n){case"input":a=at(e,a),r=at(e,r),l=[];break;case"select":a=Qe({},a,{value:void 0}),r=Qe({},r,{value:void 0}),l=[];break;case"textarea":a=ft(e,a),r=ft(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=so)}for(u in Ct(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var i=a[u];for(o in i)i.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ge.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var s=r[u];if(i=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&s!==i&&(null!=s||null!=i))if("style"===u)if(i){for(o in i)!i.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&i[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,i=i?i.__html:void 0,null!=s&&i!==s&&(l=l||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(l=l||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ge.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Za("scroll",e),l||i===s||(l=[])):(l=l||[]).push(u,s))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Bs=function(e,t,n,r){n!==r&&(t.flags|=4)};var au=!1,ou=!1,lu="function"==typeof WeakSet?WeakSet:Set,iu=null;function su(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){zc(e,t,r)}else n.current=null}function uu(e,t,n){try{n()}catch(r){zc(e,t,r)}}var cu=!1;function du(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&uu(t,n,o)}a=a.next}while(a!==r)}}function fu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function hu(e){var t=e.alternate;null!==t&&(e.alternate=null,hu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ko],delete t[So],delete t[_o],delete t[jo],delete t[Co])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mu(e){return 5===e.tag||3===e.tag||4===e.tag}function gu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||mu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function vu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=so));else if(4!==r&&null!==(e=e.child))for(vu(e,t,n),e=e.sibling;null!==e;)vu(e,t,n),e=e.sibling}function yu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yu(e,t,n),e=e.sibling;null!==e;)yu(e,t,n),e=e.sibling}var bu=null,xu=!1;function wu(e,t,n){for(n=n.child;null!==n;)ku(e,t,n),n=n.sibling}function ku(e,t,n){if(mn&&"function"==typeof mn.onCommitFiberUnmount)try{mn.onCommitFiberUnmount(hn,n)}catch(i){}switch(n.tag){case 5:ou||su(n,t);case 6:var r=bu,a=xu;bu=null,wu(e,t,n),xu=a,null!==(bu=r)&&(xu?(e=bu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):bu.removeChild(n.stateNode));break;case 18:null!==bu&&(xu?(e=bu,n=n.stateNode,8===e.nodeType?yo(e.parentNode,n):1===e.nodeType&&yo(e,n),Jn(e)):yo(bu,n.stateNode));break;case 4:r=bu,a=xu,bu=n.stateNode.containerInfo,xu=!0,wu(e,t,n),bu=r,xu=a;break;case 0:case 11:case 14:case 15:if(!ou&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,l=o.destroy;o=o.tag,void 0!==l&&(2&o||4&o)&&uu(n,t,l),a=a.next}while(a!==r)}wu(e,t,n);break;case 1:if(!ou&&(su(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){zc(n,t,i)}wu(e,t,n);break;case 21:wu(e,t,n);break;case 22:1&n.mode?(ou=(r=ou)||null!==n.memoizedState,wu(e,t,n),ou=r):wu(e,t,n);break;default:wu(e,t,n)}}function Su(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new lu),t.forEach(function(t){var r=Ic.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Eu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,l=t,i=l;e:for(;null!==i;){switch(i.tag){case 5:bu=i.stateNode,xu=!1;break e;case 3:case 4:bu=i.stateNode.containerInfo,xu=!0;break e}i=i.return}if(null===bu)throw Error(he(160));ku(o,l,a),bu=null,xu=!1;var s=a.alternate;null!==s&&(s.return=null),a.return=null}catch(u){zc(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_u(t,e),t=t.sibling}function _u(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Eu(t,e),ju(e),4&r){try{du(3,e,e.return),fu(3,e)}catch(m){zc(e,e.return,m)}try{du(5,e,e.return)}catch(m){zc(e,e.return,m)}}break;case 1:Eu(t,e),ju(e),512&r&&null!==n&&su(n,n.return);break;case 5:if(Eu(t,e),ju(e),512&r&&null!==n&&su(n,n.return),32&e.flags){var a=e.stateNode;try{wt(a,"")}catch(m){zc(e,e.return,m)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,l=null!==n?n.memoizedProps:o,i=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===i&&"radio"===o.type&&null!=o.name&<(a,o),Ot(i,l);var u=Ot(i,o);for(l=0;l<s.length;l+=2){var c=s[l],d=s[l+1];"style"===c?_t(a,d):"dangerouslySetInnerHTML"===c?xt(a,d):"children"===c?wt(a,d):Oe(a,c,d,u)}switch(i){case"input":it(a,o);break;case"textarea":ht(a,o);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?dt(a,!!o.multiple,p,!1):f!==!!o.multiple&&(null!=o.defaultValue?dt(a,!!o.multiple,o.defaultValue,!0):dt(a,!!o.multiple,o.multiple?[]:"",!1))}a[So]=o}catch(m){zc(e,e.return,m)}}break;case 6:if(Eu(t,e),ju(e),4&r){if(null===e.stateNode)throw Error(he(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(m){zc(e,e.return,m)}}break;case 3:if(Eu(t,e),ju(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Jn(t.containerInfo)}catch(m){zc(e,e.return,m)}break;case 4:default:Eu(t,e),ju(e);break;case 13:Eu(t,e),ju(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Ku=ln())),4&r&&Su(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(ou=(u=ou)||c,Eu(t,e),ou=u):Eu(t,e),ju(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(iu=e,c=e.child;null!==c;){for(d=iu=c;null!==iu;){switch(p=(f=iu).child,f.tag){case 0:case 11:case 14:case 15:du(4,f,f.return);break;case 1:su(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){zc(r,n,m)}}break;case 5:su(f,f.return);break;case 22:if(null!==f.memoizedState){Nu(d);continue}}null!==p?(p.return=f,iu=p):Nu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{a=d.stateNode,u?"function"==typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(i=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,i.style.display=Et("display",l))}catch(m){zc(e,e.return,m)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){zc(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Eu(t,e),ju(e),4&r&&Su(e);case 21:}}function ju(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(mu(n)){var r=n;break e}n=n.return}throw Error(he(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(wt(a,""),r.flags&=-33),yu(e,gu(e),a);break;case 3:case 4:var o=r.stateNode.containerInfo;vu(e,gu(e),o);break;default:throw Error(he(161))}}catch(l){zc(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Cu(e,t,n){iu=e,Ou(e)}function Ou(e,t,n){for(var r=!!(1&e.mode);null!==iu;){var a=iu,o=a.child;if(22===a.tag&&r){var l=null!==a.memoizedState||au;if(!l){var i=a.alternate,s=null!==i&&null!==i.memoizedState||ou;i=au;var u=ou;if(au=l,(ou=s)&&!u)for(iu=a;null!==iu;)s=(l=iu).child,22===l.tag&&null!==l.memoizedState?Fu(a):null!==s?(s.return=l,iu=s):Fu(a);for(;null!==o;)iu=o,Ou(o),o=o.sibling;iu=a,au=i,ou=u}Tu(e)}else 8772&a.subtreeFlags&&null!==o?(o.return=a,iu=o):Tu(e)}}function Tu(e){for(;null!==iu;){var t=iu;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:ou||fu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ou)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ds(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Xl(t,o,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Xl(t,l,n)}break;case 5:var i=t.stateNode;if(null===n&&4&t.flags){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Jn(d)}}}break;default:throw Error(he(163))}ou||512&t.flags&&pu(t)}catch(f){zc(t,t.return,f)}}if(t===e){iu=null;break}if(null!==(n=t.sibling)){n.return=t.return,iu=n;break}iu=t.return}}function Nu(e){for(;null!==iu;){var t=iu;if(t===e){iu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,iu=n;break}iu=t.return}}function Fu(e){for(;null!==iu;){var t=iu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{fu(4,t)}catch(s){zc(t,n,s)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(s){zc(t,a,s)}}var o=t.return;try{pu(t)}catch(s){zc(t,o,s)}break;case 5:var l=t.return;try{pu(t)}catch(s){zc(t,l,s)}}}catch(s){zc(t,t.return,s)}if(t===e){iu=null;break}var i=t.sibling;if(null!==i){i.return=t.return,iu=i;break}iu=t.return}}var Pu,zu=Math.ceil,Lu=Te.ReactCurrentDispatcher,Mu=Te.ReactCurrentOwner,Au=Te.ReactCurrentBatchConfig,Iu=0,Du=null,Ru=null,$u=0,Uu=0,Vu=Lo(0),Bu=0,Wu=null,Hu=0,Qu=0,qu=0,Zu=null,Gu=null,Ku=0,Yu=1/0,Ju=null,Xu=!1,ec=null,tc=null,nc=!1,rc=null,ac=0,oc=0,lc=null,ic=-1,sc=0;function uc(){return 6&Iu?ln():-1!==ic?ic:ic=ln()}function cc(e){return 1&e.mode?2&Iu&&0!==$u?$u&-$u:null!==_l.transition?(0===sc&&(sc=_n()),sc):0!==(e=Tn)?e:e=void 0===(e=window.event)?16:lr(e.type):1}function dc(e,t,n,r){if(50<oc)throw oc=0,lc=null,Error(he(185));Cn(e,n,r),2&Iu&&e===Du||(e===Du&&(!(2&Iu)&&(Qu|=n),4===Bu&&gc(e,$u)),fc(e,r),1===n&&0===Iu&&!(1&t.mode)&&(Yu=ln()+500,Go&&Jo()))}function fc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-gn(o),i=1<<l,s=a[l];-1===s?0!==(i&n)&&0===(i&r)||(a[l]=Sn(i,t)):s<=t&&(e.expiredLanes|=i),o&=~i}}(e,t);var r=kn(e,e===Du?$u:0);if(0===r)null!==n&&rn(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&rn(n),1===t)0===e.tag?function(e){Go=!0,Yo(e)}(vc.bind(null,e)):Yo(vc.bind(null,e)),go(function(){!(6&Iu)&&Jo()}),n=null;else{switch(Nn(r)){case 1:n=un;break;case 4:n=cn;break;case 16:default:n=dn;break;case 536870912:n=pn}n=Dc(n,pc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pc(e,t){if(ic=-1,sc=0,6&Iu)throw Error(he(327));var n=e.callbackNode;if(Fc()&&e.callbackNode!==n)return null;var r=kn(e,e===Du?$u:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=_c(e,r);else{t=r;var a=Iu;Iu|=2;var o=Sc();for(Du===e&&$u===t||(Ju=null,Yu=ln()+500,wc(e,t));;)try{Cc();break}catch(i){kc(e,i)}Al(),Lu.current=o,Iu=a,null!==Ru?t=0:(Du=null,$u=0,t=Bu)}if(0!==t){if(2===t&&(0!==(a=En(e))&&(r=a,t=hc(e,a))),1===t)throw n=Wu,wc(e,0),gc(e,r),fc(e,ln()),n;if(6===t)gc(e,r);else{if(a=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ga(o(),a))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=_c(e,r),2===t&&(o=En(e),0!==o&&(r=o,t=hc(e,o))),1!==t)))throw n=Wu,wc(e,0),gc(e,r),fc(e,ln()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(he(345));case 2:case 5:Nc(e,Gu,Ju);break;case 3:if(gc(e,r),(130023424&r)===r&&10<(t=Ku+500-ln())){if(0!==kn(e,0))break;if(((a=e.suspendedLanes)&r)!==r){uc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=po(Nc.bind(null,e,Gu,Ju),t);break}Nc(e,Gu,Ju);break;case 4:if(gc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var l=31-gn(r);o=1<<l,(l=t[l])>a&&(a=l),r&=~o}if(r=a,10<(r=(120>(r=ln()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zu(r/1960))-r)){e.timeoutHandle=po(Nc.bind(null,e,Gu,Ju),r);break}Nc(e,Gu,Ju);break;default:throw Error(he(329))}}}return fc(e,ln()),e.callbackNode===n?pc.bind(null,e):null}function hc(e,t){var n=Zu;return e.current.memoizedState.isDehydrated&&(wc(e,t).flags|=256),2!==(e=_c(e,t))&&(t=Gu,Gu=n,null!==t&&mc(t)),e}function mc(e){null===Gu?Gu=e:Gu.push.apply(Gu,e)}function gc(e,t){for(t&=~qu,t&=~Qu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gn(t),r=1<<n;e[n]=-1,t&=~r}}function vc(e){if(6&Iu)throw Error(he(327));Fc();var t=kn(e,0);if(!(1&t))return fc(e,ln()),null;var n=_c(e,t);if(0!==e.tag&&2===n){var r=En(e);0!==r&&(t=r,n=hc(e,r))}if(1===n)throw n=Wu,wc(e,0),gc(e,t),fc(e,ln()),n;if(6===n)throw Error(he(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nc(e,Gu,Ju),fc(e,ln()),null}function yc(e,t){var n=Iu;Iu|=1;try{return e(t)}finally{0===(Iu=n)&&(Yu=ln()+500,Go&&Jo())}}function bc(e){null!==rc&&0===rc.tag&&!(6&Iu)&&Fc();var t=Iu;Iu|=1;var n=Au.transition,r=Tn;try{if(Au.transition=null,Tn=1,e)return e()}finally{Tn=r,Au.transition=n,!(6&(Iu=t))&&Jo()}}function xc(){Uu=Vu.current,Mo(Vu)}function wc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ho(n)),null!==Ru)for(n=Ru.return;null!==n;){var r=n;switch(dl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Bo();break;case 3:li(),Mo(Ro),Mo(Do),fi();break;case 5:si(r);break;case 4:li();break;case 13:case 19:Mo(ui);break;case 10:Il(r.type._context);break;case 22:case 23:xc()}n=n.return}if(Du=e,Ru=e=Vc(e.current,null),$u=Uu=t,Bu=0,Wu=null,qu=Qu=Hu=0,Gu=Zu=null,null!==Ul){for(t=0;t<Ul.length;t++)if(null!==(r=(n=Ul[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var l=o.next;o.next=a,r.next=l}n.pending=r}Ul=null}return e}function kc(e,t){for(;;){var n=Ru;try{if(Al(),pi.current=is,bi){for(var r=gi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bi=!1}if(mi=0,yi=vi=gi=null,xi=!1,wi=0,Mu.current=null,null===n||null===n.return){Bu=1,Wu=t,Ru=null;break}e:{var o=e,l=n.return,i=n,s=t;if(t=$u,i.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=i,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=_s(l);if(null!==p){p.flags&=-257,js(p,l,i,0,t),1&p.mode&&Es(o,u,t),s=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(!(1&t)){Es(o,u,t),Ec();break e}s=Error(he(426))}else if(hl&&1&i.mode){var g=_s(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),js(g,l,i,0,t),El(ys(s,i));break e}}o=s=ys(s,i),4!==Bu&&(Bu=2),null===Zu?Zu=[o]:Zu.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Yl(o,ks(0,s,t));break e;case 1:i=s;var v=o.type,y=o.stateNode;if(!(128&o.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==tc&&tc.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t,Yl(o,Ss(o,i,t));break e}}o=o.return}while(null!==o)}Tc(n)}catch(b){t=b,Ru===n&&null!==n&&(Ru=n=n.return);continue}break}}function Sc(){var e=Lu.current;return Lu.current=is,null===e?is:e}function Ec(){0!==Bu&&3!==Bu&&2!==Bu||(Bu=4),null===Du||!(268435455&Hu)&&!(268435455&Qu)||gc(Du,$u)}function _c(e,t){var n=Iu;Iu|=2;var r=Sc();for(Du===e&&$u===t||(Ju=null,wc(e,t));;)try{jc();break}catch(a){kc(e,a)}if(Al(),Iu=n,Lu.current=r,null!==Ru)throw Error(he(261));return Du=null,$u=0,Bu}function jc(){for(;null!==Ru;)Oc(Ru)}function Cc(){for(;null!==Ru&&!an();)Oc(Ru)}function Oc(e){var t=Pu(e.alternate,e,Uu);e.memoizedProps=e.pendingProps,null===t?Tc(e):Ru=t,Mu.current=null}function Tc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=ru(n,t)))return n.flags&=32767,void(Ru=n);if(null===e)return Bu=6,void(Ru=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=nu(n,t,Uu)))return void(Ru=n);if(null!==(t=t.sibling))return void(Ru=t);Ru=t=e}while(null!==t);0===Bu&&(Bu=5)}function Nc(e,t,n){var r=Tn,a=Au.transition;try{Au.transition=null,Tn=1,function(e,t,n,r){do{Fc()}while(null!==rc);if(6&Iu)throw Error(he(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(he(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-gn(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,o),e===Du&&(Ru=Du=null,$u=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||nc||(nc=!0,Dc(dn,function(){return Fc(),null})),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=Au.transition,Au.transition=null;var l=Tn;Tn=1;var i=Iu;Iu|=4,Mu.current=null,function(e,t){if(uo=er,ka(e=wa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(x){n=null;break e}var l=0,i=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(i=l+a),d!==o||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===a&&(i=l),f===o&&++c===r&&(s=l),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===i||-1===s?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(co={focusedElem:e,selectionRange:n},er=!1,iu=t;null!==iu;)if(e=(t=iu).child,1028&t.subtreeFlags&&null!==e)e.return=t,iu=e;else for(;null!==iu;){t=iu;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ds(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(he(163))}}catch(x){zc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,iu=e;break}iu=t.return}h=cu,cu=!1}(e,n),_u(n,e),Sa(co),er=!!uo,co=uo=null,e.current=n,Cu(n),on(),Iu=i,Tn=l,Au.transition=o}else e.current=n;if(nc&&(nc=!1,rc=e,ac=a),o=e.pendingLanes,0===o&&(tc=null),function(e){if(mn&&"function"==typeof mn.onCommitFiberRoot)try{mn.onCommitFiberRoot(hn,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),fc(e,ln()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Xu)throw Xu=!1,e=ec,ec=null,e;!!(1&ac)&&0!==e.tag&&Fc(),o=e.pendingLanes,1&o?e===lc?oc++:(oc=0,lc=e):oc=0,Jo()}(e,t,n,r)}finally{Au.transition=a,Tn=r}return null}function Fc(){if(null!==rc){var e=Nn(ac),t=Au.transition,n=Tn;try{if(Au.transition=null,Tn=16>e?16:e,null===rc)var r=!1;else{if(e=rc,rc=null,ac=0,6&Iu)throw Error(he(331));var a=Iu;for(Iu|=4,iu=e.current;null!==iu;){var o=iu,l=o.child;if(16&iu.flags){var i=o.deletions;if(null!==i){for(var s=0;s<i.length;s++){var u=i[s];for(iu=u;null!==iu;){var c=iu;switch(c.tag){case 0:case 11:case 15:du(8,c,o)}var d=c.child;if(null!==d)d.return=c,iu=d;else for(;null!==iu;){var f=(c=iu).sibling,p=c.return;if(hu(c),c===u){iu=null;break}if(null!==f){f.return=p,iu=f;break}iu=p}}}var h=o.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}iu=o}}if(2064&o.subtreeFlags&&null!==l)l.return=o,iu=l;else e:for(;null!==iu;){if(2048&(o=iu).flags)switch(o.tag){case 0:case 11:case 15:du(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,iu=v;break e}iu=o.return}}var y=e.current;for(iu=y;null!==iu;){var b=(l=iu).child;if(2064&l.subtreeFlags&&null!==b)b.return=l,iu=b;else e:for(l=y;null!==iu;){if(2048&(i=iu).flags)try{switch(i.tag){case 0:case 11:case 15:fu(9,i)}}catch(w){zc(i,i.return,w)}if(i===l){iu=null;break e}var x=i.sibling;if(null!==x){x.return=i.return,iu=x;break e}iu=i.return}}if(Iu=a,Jo(),mn&&"function"==typeof mn.onPostCommitFiberRoot)try{mn.onPostCommitFiberRoot(hn,e)}catch(w){}r=!0}return r}finally{Tn=n,Au.transition=t}}return!1}function Pc(e,t,n){e=Gl(e,t=ks(0,t=ys(n,t),1),1),t=uc(),null!==e&&(Cn(e,1,t),fc(e,t))}function zc(e,t,n){if(3===e.tag)Pc(e,e,n);else for(;null!==t;){if(3===t.tag){Pc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===tc||!tc.has(r))){t=Gl(t,e=Ss(t,e=ys(n,e),1),1),e=uc(),null!==t&&(Cn(t,1,e),fc(t,e));break}}t=t.return}}function Lc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=uc(),e.pingedLanes|=e.suspendedLanes&n,Du===e&&($u&n)===n&&(4===Bu||3===Bu&&(130023424&$u)===$u&&500>ln()-Ku?wc(e,0):qu|=n),fc(e,t)}function Mc(e,t){0===t&&(1&e.mode?(t=xn,!(130023424&(xn<<=1))&&(xn=4194304)):t=1);var n=uc();null!==(e=Wl(e,t))&&(Cn(e,t,n),fc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Mc(e,n)}function Ic(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}null!==r&&r.delete(t),Mc(e,n)}function Dc(e,t){return nn(e,t)}function Rc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $c(e,t,n,r){return new Rc(e,t,n,r)}function Uc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vc(e,t){var n=e.alternate;return null===n?((n=$c(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bc(e,t,n,r,a,o){var l=2;if(r=e,"function"==typeof e)Uc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Pe:return Wc(n.children,a,o,t);case ze:l=8,a|=8;break;case Le:return(e=$c(12,n,t,2|a)).elementType=Le,e.lanes=o,e;case De:return(e=$c(13,n,t,a)).elementType=De,e.lanes=o,e;case Re:return(e=$c(19,n,t,a)).elementType=Re,e.lanes=o,e;case Ve:return Hc(n,a,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Me:l=10;break e;case Ae:l=9;break e;case Ie:l=11;break e;case $e:l=14;break e;case Ue:l=16,r=null;break e}throw Error(he(130,null==e?e:typeof e,""))}return(t=$c(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Wc(e,t,n,r){return(e=$c(7,e,r,t)).lanes=n,e}function Hc(e,t,n,r){return(e=$c(22,e,r,t)).elementType=Ve,e.lanes=n,e.stateNode={isHidden:!1},e}function Qc(e,t,n){return(e=$c(6,e,null,t)).lanes=n,e}function qc(e,t,n){return(t=$c(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jn(0),this.expirationTimes=jn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jn(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Gc(e,t,n,r,a,o,l,i,s){return e=new Zc(e,t,n,i,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=$c(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ql(o),e}function Kc(e){if(!e)return Io;e:{if(Yt(e=e._reactInternals)!==e||1!==e.tag)throw Error(he(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Vo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(he(171))}if(1===e.tag){var n=e.type;if(Vo(n))return Ho(e,n,t)}return t}function Yc(e,t,n,r,a,o,l,i,s){return(e=Gc(n,r,!0,e,0,o,0,i,s)).context=Kc(null),n=e.current,(o=Zl(r=uc(),a=cc(n))).callback=null!=t?t:null,Gl(n,o,a),e.current.lanes=a,Cn(e,a,r),fc(e,r),e}function Jc(e,t,n,r){var a=t.current,o=uc(),l=cc(a);return n=Kc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Zl(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Gl(a,t,l))&&(dc(e,a,l,o),Kl(e,a,l)),l}function Xc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ed(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function td(e,t){ed(e,t),(e=e.alternate)&&ed(e,t)}Pu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)Os=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return Os=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),Sl();break;case 5:ii(t);break;case 1:Vo(t.type)&&Qo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ao(Pl,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ui,1&ui.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Qs(e,t,n):(Ao(ui,1&ui.current),null!==(e=Xs(e,t,n))?e.sibling:null);Ao(ui,1&ui.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ys(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ao(ui,ui.current),r)break;return null;case 22:case 23:return t.lanes=0,zs(e,t,n)}return Xs(e,t,n)}(e,t,n);Os=!!(131072&e.flags)}else Os=!1,hl&&1048576&t.flags&&ul(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Js(e,t),e=t.pendingProps;var a=Uo(t,Do.current);Rl(t,n),a=_i(null,t,r,e,a,n);var o=ji();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vo(r)?(o=!0,Qo(t)):o=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ql(t),a.updater=ps,t.stateNode=a,a._reactInternals=t,vs(t,r,e,n),t=Is(null,t,r,!0,o,n)):(t.tag=0,hl&&o&&cl(t),Ts(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Js(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return Uc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ie)return 11;if(e===$e)return 14}return 2}(r),e=ds(r,e),a){case 0:t=Ms(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=Ns(null,t,r,e,n);break e;case 14:t=Fs(null,t,r,ds(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ms(e,t,r,a=t.elementType===r?a:ds(r,a),n);case 1:return r=t.type,a=t.pendingProps,As(e,t,r,a=t.elementType===r?a:ds(r,a),n);case 3:e:{if(Ds(t),null===e)throw Error(he(387));r=t.pendingProps,a=(o=t.memoizedState).element,ql(e,t),Jl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Rs(e,t,r,n,a=ys(Error(he(423)),t));break e}if(r!==a){t=Rs(e,t,r,n,a=ys(Error(he(424)),t));break e}for(pl=bo(t.stateNode.containerInfo.firstChild),fl=t,hl=!0,ml=null,n=Fl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Sl(),r===a){t=Xs(e,t,n);break e}Ts(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&bl(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,fo(r,a)?l=null:null!==o&&fo(r,o)&&(t.flags|=32),Ls(e,t),Ts(e,t,l,n),t.child;case 6:return null===e&&bl(t),null;case 13:return Qs(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Nl(t,null,r,n):Ts(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Ns(e,t,r,a=t.elementType===r?a:ds(r,a),n);case 7:return Ts(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ts(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,l=a.value,Ao(Pl,r._currentValue),r._currentValue=l,null!==o)if(ga(o.value,l)){if(o.children===a.children&&!Ro.current){t=Xs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var i=o.dependencies;if(null!==i){l=o.child;for(var s=i.firstContext;null!==s;){if(s.context===r){if(1===o.tag){(s=Zl(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Dl(o.return,n,t),i.lanes|=n;break}s=s.next}}else if(10===o.tag)l=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(l=o.return))throw Error(he(341));l.lanes|=n,null!==(i=l.alternate)&&(i.lanes|=n),Dl(l,n,t),l=o.sibling}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===t){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}Ts(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Rl(t,n),r=r(a=$l(a)),t.flags|=1,Ts(e,t,r,n),t.child;case 14:return a=ds(r=t.type,t.pendingProps),Fs(e,t,r,a=ds(r.type,a),n);case 15:return Ps(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ds(r,a),Js(e,t),t.tag=1,Vo(r)?(e=!0,Qo(t)):e=!1,Rl(t,n),ms(t,r,a),vs(t,r,a,n),Is(null,t,r,!0,e,n);case 19:return Ys(e,t,n);case 22:return zs(e,t,n)}throw Error(he(156,t.tag))};var nd="function"==typeof reportError?reportError:function(e){console.error(e)};function rd(e){this._internalRoot=e}function ad(e){this._internalRoot=e}function od(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ld(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function id(){}function sd(e,t,n,r,a){var o=n._reactRootContainer;if(o){var l=o;if("function"==typeof a){var i=a;a=function(){var e=Xc(l);i.call(e)}}Jc(t,l,e,a)}else l=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=Xc(l);o.call(e)}}var l=Yc(t,r,e,0,null,!1,0,"",id);return e._reactRootContainer=l,e[Eo]=l.current,Ya(8===e.nodeType?e.parentNode:e),bc(),l}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=Xc(s);i.call(e)}}var s=Gc(e,0,!1,null,0,!1,0,"",id);return e._reactRootContainer=s,e[Eo]=s.current,Ya(8===e.nodeType?e.parentNode:e),bc(function(){Jc(t,s,n,r)}),s}(n,t,e,a,r);return Xc(l)}ad.prototype.render=rd.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(he(409));Jc(e,t,null,null)},ad.prototype.unmount=rd.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;bc(function(){Jc(null,e,null,null)}),t[Eo]=null}},ad.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ln();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Bn.length&&0!==t&&t<Bn[n].priority;n++);Bn.splice(n,0,e),0===n&&qn(e)}},Fn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wn(t.pendingLanes);0!==n&&(On(t,1|n),fc(t,ln()),!(6&Iu)&&(Yu=ln()+500,Jo()))}break;case 13:bc(function(){var t=Wl(e,1);if(null!==t){var n=uc();dc(t,e,1,n)}}),td(e,1)}},Pn=function(e){if(13===e.tag){var t=Wl(e,134217728);if(null!==t)dc(t,e,134217728,uc());td(e,134217728)}},zn=function(e){if(13===e.tag){var t=cc(e),n=Wl(e,t);if(null!==n)dc(n,e,t,uc());td(e,t)}},Ln=function(){return Tn},Mn=function(e,t){var n=Tn;try{return Tn=e,t()}finally{Tn=n}},Ft=function(e,t,n){switch(t){case"input":if(it(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Fo(r);if(!a)throw Error(he(90));nt(r),it(r,a)}}}break;case"textarea":ht(e,n);break;case"select":null!=(t=n.value)&&dt(e,!!n.multiple,t,!1)}},It=yc,Dt=bc;var ud={usingClientEntryPoint:!1,Events:[To,No,Fo,Mt,At,yc]},cd={findFiberByHostInstance:Oo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dd={bundleType:cd.bundleType,version:cd.version,rendererPackageName:cd.rendererPackageName,rendererConfig:cd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Te.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=en(e))?null:e.stateNode},findFiberByHostInstance:cd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fd.isDisabled&&fd.supportsFiber)try{hn=fd.inject(dd),mn=fd}catch(bt){}}se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ud,se.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!od(t))throw Error(he(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Fe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},se.createRoot=function(e,t){if(!od(e))throw Error(he(299));var n=!1,r="",a=nd;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Gc(e,1,!1,null,0,n,0,r,a),e[Eo]=t.current,Ya(8===e.nodeType?e.parentNode:e),new rd(t)},se.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(he(188));throw e=Object.keys(e).join(","),Error(he(268,e))}return e=null===(e=en(t))?null:e.stateNode},se.flushSync=function(e){return bc(e)},se.hydrate=function(e,t,n){if(!ld(t))throw Error(he(200));return sd(null,e,t,!0,n)},se.hydrateRoot=function(e,t,n){if(!od(e))throw Error(he(405));var r=null!=n&&n.hydratedSources||null,a=!1,o="",l=nd;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Yc(t,null,e,1,null!=n?n:null,a,0,o,l),e[Eo]=t.current,Ya(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new ad(t)},se.render=function(e,t,n){if(!ld(t))throw Error(he(200));return sd(null,e,t,!1,n)},se.unmountComponentAtNode=function(e){if(!ld(e))throw Error(he(40));return!!e._reactRootContainer&&(bc(function(){sd(null,null,e,!1,function(){e._reactRootContainer=null,e[Eo]=null})}),!0)},se.unstable_batchedUpdates=yc,se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(he(200));if(null==e||void 0===e._reactInternals)throw Error(he(38));return sd(e,t,n,!1,r)},se.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),ie.exports=se;var pd=ie.exports;le.createRoot=pd.createRoot,le.hydrateRoot=pd.hydrateRoot;const hd=({width:e=40,height:t=40})=>oe.jsxs("svg",{width:e,height:t,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[oe.jsx("path",{d:"M11.7607 16.6788L11.7336 10.9913C11.7066 6.84852 13.9213 3.00711 17.517 0.942341L17.8995 0.709761C19.1707 -0.0282536 20.7294 -0.0282536 22.0013 0.709761L32.1592 6.575C30.4638 5.64536 28.3858 5.67244 26.7043 6.64304L18.5834 11.3322L13.6068 14.203L13.1146 14.4904C13.1007 14.4904 13.1007 14.5043 13.0875 14.5043C12.3085 14.9826 11.8163 15.7894 11.7614 16.6781",fill:"#2AAD8E"}),oe.jsx("path",{d:"M37.7736 23.1565V25.0706C37.7736 28.215 36.0921 31.1275 33.3712 32.7132L22.4336 39.0568C26.0292 36.992 28.244 33.1506 28.2169 29.0079L28.1898 23.3204V23.2794C28.2037 23.2385 28.2037 23.1836 28.2037 23.1426V16.8261C28.2037 15.8694 27.6976 14.98 26.8638 14.4746L28.2037 15.2536L35.7234 19.6011C36.9946 20.3391 37.7743 21.693 37.7743 23.1558L37.7736 23.1565Z",fill:"#45C9A9"}),oe.jsx("path",{d:"M28.2166 29.0091C28.2437 33.1518 26.0289 36.9932 22.4333 39.058L22.0507 39.2905C20.7795 40.0286 19.2209 40.0286 17.9489 39.2905L7.79102 33.4253C9.48642 34.355 11.5644 34.3279 13.2459 33.3573L21.3669 28.6682L26.3434 25.7973L26.8357 25.5099C26.8495 25.5099 26.8495 25.496 26.8627 25.496C27.6417 25.0177 28.134 24.2109 28.1888 23.3223L28.2159 29.0097L28.2166 29.0091Z",fill:"#2AAD8E"}),oe.jsx("path",{d:"M21.367 28.6672L13.2461 33.3564C11.5645 34.327 9.48658 34.3547 7.79118 33.4244C7.75022 33.3973 7.70926 33.3834 7.6683 33.3564L2.22656 30.2127L11.7971 24.7168L13.1371 25.4958C13.151 25.4958 13.151 25.5097 13.1642 25.5097L18.633 28.6679C19.4807 29.1602 20.52 29.1602 21.367 28.6679V28.6672Z",fill:"#13947D"}),oe.jsx("path",{d:"M13.1361 25.4962L11.7962 24.7173L4.27649 20.3697C3.00526 19.6317 2.22559 18.2779 2.22559 16.815V14.9009C2.22559 11.7565 3.90712 8.84406 6.62797 7.25834L17.5663 0.914062C13.9706 2.97883 11.7559 6.82026 11.783 10.963L11.81 16.6505V16.6915C11.7962 16.7324 11.7962 16.7873 11.7962 16.8282V23.1447C11.7962 24.1014 12.3023 24.9901 13.1361 25.4962Z",fill:"#45C9A9"}),oe.jsx("path",{d:"M37.7733 9.7586L28.2027 15.2545L26.8628 14.4755C26.8489 14.4755 26.8489 14.4616 26.8357 14.4616L21.3669 11.3034C20.5192 10.8111 19.4799 10.8111 18.6328 11.3034L26.7538 6.61424C28.4353 5.64364 30.5133 5.61656 32.2087 6.5462C32.2497 6.57328 32.2906 6.58716 32.3316 6.61424L37.7733 9.7586Z",fill:"#13947D"})]});var md={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gd=Y.createContext&&Y.createContext(md),vd=["attr","size","title"];function yd(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bd.apply(this,arguments)}function xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(n),!0).forEach(function(t){kd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kd(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e){return e&&e.map((e,t)=>Y.createElement(e.tag,wd({key:t},e.attr),Sd(e.child)))}function Ed(e){return t=>Y.createElement(_d,bd({attr:wd({},e.attr)},t),Sd(e.child))}function _d(e){var t=t=>{var n,{attr:r,size:a,title:o}=e,l=yd(e,vd),i=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),Y.createElement("svg",bd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:n,style:wd(wd({color:e.color||t.color},t.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),o&&Y.createElement("title",null,o),e.children)};return void 0!==gd?Y.createElement(gd.Consumer,null,e=>t(e)):t(md)}function jd(e){return Ed({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"},child:[]}]})(e)}function Cd(e){this._maxSize=e,this.clear()}Cd.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Cd.prototype.get=function(e){return this._values[e]},Cd.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Od=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Td=/^\d+$/,Nd=/^\d/,Fd=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Pd=/^\s*(['"]?)(.*?)(\1)\s*$/,zd=new Cd(512),Ld=new Cd(512),Md=new Cd(512),Ad={Cache:Cd,split:Dd,normalizePath:Id,setter:function(e){var t=Id(e);return Ld.get(e)||Ld.set(e,function(e,n){for(var r=0,a=t.length,o=e;r<a-1;){var l=t[r];if("__proto__"===l||"constructor"===l||"prototype"===l)return e;o=o[t[r++]]}o[t[r]]=n})},getter:function(e,t){var n=Id(e);return Md.get(e)||Md.set(e,function(e){for(var r=0,a=n.length;r<a;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(Rd(t)||Td.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,a,o,l,i=e.length;for(a=0;a<i;a++)(r=e[a])&&($d(r)&&(r='"'+r+'"'),o=!(l=Rd(r))&&/^\d+$/.test(r),t.call(n,r,l,o,a,e))}(Array.isArray(e)?e:Dd(e),t,n)}};function Id(e){return zd.get(e)||zd.set(e,Dd(e).map(function(e){return e.replace(Pd,"$2")}))}function Dd(e){return e.match(Od)||[""]}function Rd(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function $d(e){return!Rd(e)&&(function(e){return e.match(Nd)&&!e.match(Td)}(e)||function(e){return Fd.test(e)}(e))}const Ud=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Vd=e=>e.match(Ud)||[],Bd=(e,t)=>Vd(e).join(t).toLowerCase(),Wd=e=>Vd(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");var Hd=Wd,Qd=e=>Bd(e,"_"),qd={exports:{}};function Zd(e,t){var n=e.length,r=new Array(n),a={},o=n,l=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var a=e[n];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}(t),i=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!i.has(e[0])||!i.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)a[o]||s(e[o],o,new Set);return r;function s(e,t,o){if(o.has(e)){var u;try{u=", node was:"+JSON.stringify(e)}catch(f){u=""}throw new Error("Cyclic dependency"+u)}if(!i.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!a[t]){a[t]=!0;var c=l.get(e)||new Set;if(t=(c=Array.from(c)).length){o.add(e);do{var d=c[--t];s(d,i.get(d),o)}while(t);o.delete(e)}r[--n]=e}}}qd.exports=function(e){return Zd(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var a=e[n];t.add(a[0]),t.add(a[1])}return Array.from(t)}(e),e)},qd.exports.array=Zd;const Gd=d(qd.exports),Kd=Object.prototype.toString,Yd=Error.prototype.toString,Jd=RegExp.prototype.toString,Xd="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",ef=/^Symbol\((.*)\)(.*)$/;function tf(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Xd.call(e).replace(ef,"Symbol($1)");const r=Kd.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Yd.call(e)+"]":"RegExp"===r?Jd.call(e):null}function nf(e,t){let n=tf(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=tf(this[e],t);return null!==r?r:n},2)}function rf(e){return null==e?[]:[].concat(e)}let af,of,lf,sf=/\$\{\s*(\w+)\s*\}/g;af=Symbol.toStringTag;class uf{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[af]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],rf(e).forEach(e=>{if(cf.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}of=Symbol.hasInstance,lf=Symbol.toStringTag;class cf extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(sf,(e,n)=>nf(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,a){const o=new uf(e,t,n,r);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[lf]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,cf)}static[of](e){return uf[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let df={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const a=null!=r&&r!==n?` (cast from the value \`${nf(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${nf(n,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${nf(n,!0)}\``+a}},ff={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},pf={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},hf={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},mf={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},gf={notType:e=>{const{path:t,value:n,spec:r}=e,a=r.types.length;if(Array.isArray(n)){if(n.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${n.length} for value: \`${nf(n,!0)}\``;if(n.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${n.length} for value: \`${nf(n,!0)}\``}return cf.formatError(df.notType,e)}};Object.assign(Object.create(null),{mixed:df,string:ff,number:pf,date:hf,object:mf,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:gf});const vf=e=>e&&e.__isYupSchema__;class yf{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:a}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new yf(e,(e,t)=>{var n;let l=o(...e)?r:a;return null!=(n=null==l?void 0:l(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!vf(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const bf="$",xf=".";class wf{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===bf,this.isValue=this.key[0]===xf,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?bf:this.isValue?xf:"";this.path=this.key.slice(n.length),this.getter=this.path&&Ad.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}wf.prototype.__isYupRef=!0;const kf=e=>null==e;function Sf(e){function t({value:t,path:n="",options:r,originalValue:a,schema:o},l,i){const{name:s,test:u,params:c,message:d,skipAbsent:f}=e;let{parent:p,context:h,abortEarly:m=o.spec.abortEarly,disableStackTrace:g=o.spec.disableStackTrace}=r;const v={value:t,parent:p,context:h};function y(e={}){const r=Ef(Object.assign({value:t,originalValue:a,label:o.spec.label,path:e.path||n,spec:o.spec,disableStackTrace:e.disableStackTrace||g},c,e.params),v),l=new cf(cf.formatError(e.message||d,r),t,r.path,e.type||s,r.disableStackTrace);return l.params=r,l}const b=m?l:i;let x={path:n,parent:p,type:s,from:r.from,createError:y,resolve:e=>_f(e,v),options:r,originalValue:a,schema:o};const w=e=>{cf.isError(e)?b(e):e?i(null):b(y())},k=e=>{cf.isError(e)?b(e):l(e)};if(f&&kf(t))return w(!0);let S;try{var E;if(S=u.call(x,t,x),"function"==typeof(null==(E=S)?void 0:E.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(S).then(w,k)}}catch(_){return void k(_)}w(S)}return t.OPTIONS=e,t}function Ef(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=_f(e[n],t);return e}function _f(e,t){return wf.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function jf(e,t,n,r=n){let a,o,l;return t?(Ad.forEach(t,(i,s,u)=>{let c=s?i.slice(1,i.length-1):i,d="tuple"===(e=e.resolve({context:r,parent:a,value:n})).type,f=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${l}" must contain an index to the tuple element, e.g. "${l}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${i}, in the path: ${t}. because there is no value at that index. `);a=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${l} which is a type: "${e.type}")`);a=n,n=n&&n[c],e=e.fields[c]}o=c,l=s?"["+i+"]":"."+i}),{schema:e,parent:a,parentPath:o}):{parent:a,parentPath:t,schema:e}}class Cf extends Set{describe(){const e=[];for(const t of this.values())e.push(wf.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new Cf(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function Of(e,t=new Map){if(vf(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Of(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,a]of e.entries())n.set(r,Of(a,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Of(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,a]of Object.entries(e))n[r]=Of(a,t)}return n}function Tf(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,a=!1;for(let o=0;o<e.length;o++){const l=e[o];"["!==l||a?"]"!==l||a?'"'!==l?"."!==l||r||a?n+=l:n&&(t.push(n),n=""):a=!a:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function Nf(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:Tf(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>Nf(e,r))}class Ff{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Cf,this._blacklist=new Cf,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(df.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Of(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,a;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(a=e.disableStackTrace)?a:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,a=n._cast(e,t);if(!1!==t.assert&&!n.isType(a)){if(r&&kf(a))return a;let o=nf(e),l=nf(a);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${o} \n`+(l!==o?`result of cast: ${l}`:""))}return a}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:a,originalValue:o=e,strict:l=this.spec.strict}=t,i=e;l||(i=this._cast(i,Object.assign({assert:!1},t)));let s=[];for(let u of Object.values(this.internalTests))u&&s.push(u);this.runTests({path:a,value:i,originalValue:o,options:t,tests:s},n,e=>{if(e.length)return r(e,i);this.runTests({path:a,value:i,originalValue:o,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:a,value:o,originalValue:l,path:i,options:s}=e,u=e=>{r||(r=!0,t(e,o))},c=e=>{r||(r=!0,n(e,o))},d=a.length,f=[];if(!d)return c([]);let p={value:o,originalValue:l,path:i,options:s,schema:this};for(let h=0;h<a.length;h++){(0,a[h])(p,u,function(e){e&&(Array.isArray(e)?f.push(...e):f.push(e)),--d<=0&&c(f)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:a,options:o}){const l=null!=e?e:t;if(null==l)throw TypeError("Must include `key` or `index` for nested validations");const i="number"==typeof l;let s=n[l];const u=Object.assign({},o,{strict:!0,parent:n,value:s,originalValue:a[l],key:void 0,[i?"index":"key"]:l,path:i||l.includes(".")?`${r||""}[${i?l:`"${l}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(u)._validate(s,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),a=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,o)=>r._validate(e,t,(e,t)=>{cf.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new cf(e,t,void 0,void 0,a)):n(t)}))}validateSync(e,t){var n;let r,a=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:a.spec.disableStackTrace;return a._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw cf.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new cf(t,e,void 0,void 0,o);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(cf.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(cf.isError(n))return!1;throw n}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):Of(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=Sf({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=Sf({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=df.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=df.notNull){return this.nullability(!1,e)}required(e=df.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=df.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=Sf(t),a=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(a)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=rf(e).map(e=>new wf(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new yf(r,t):yf.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=Sf({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=df.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=Sf({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=df.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=Sf({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:a,nullable:o}=t.spec;return{meta:r,label:n,optional:a,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?Ef(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",validate(t){return c(this,null,function*(){try{return{value:yield e.validate(t,{abortEarly:!1})}}catch(n){if(n instanceof cf)return{issues:Nf(n)};throw n}})}}}}Ff.prototype.__isYupSchema__=!0;for(const cb of["validate","validateSync"])Ff.prototype[`${cb}At`]=function(e,t,n={}){const{parent:r,parentPath:a,schema:o}=jf(this,e,t,n.context);return o[cb](r&&r[a],Object.assign({},n,{parent:r,path:e}))};for(const cb of["equals","is"])Ff.prototype[cb]=Ff.prototype.oneOf;for(const cb of["not","nope"])Ff.prototype[cb]=Ff.prototype.notOneOf;const Pf=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function zf(e){var t,n;const r=Pf.exec(e);return r?{year:Lf(r[1]),month:Lf(r[2],1)-1,day:Lf(r[3],1),hour:Lf(r[4]),minute:Lf(r[5]),second:Lf(r[6]),millisecond:r[7]?Lf(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Lf(r[10]),minuteOffset:Lf(r[11])}:null}function Lf(e,t=0){return Number(e)||t}let Mf=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Af=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,If=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Df=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Rf=e=>kf(e)||e===e.trim(),$f={}.toString();function Uf(){return new Vf}class Vf extends Ff{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===$f?e:r})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||df.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=ff.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=ff.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=ff.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,a=!1;return t&&("object"==typeof t?({excludeEmptyString:a=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||ff.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&a||-1!==t.search(e)})}email(e=ff.email){return this.matches(Mf,{name:"email",message:e,excludeEmptyString:!0})}url(e=ff.url){return this.matches(Af,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ff.uuid){return this.matches(If,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(Df,{name:"datetime",message:r||ff.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||ff.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=zf(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||ff.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=zf(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=ff.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Rf})}lowercase(e=ff.lowercase){return this.transform(e=>kf(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>kf(e)||e===e.toLowerCase()})}uppercase(e=ff.uppercase){return this.transform(e=>kf(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>kf(e)||e===e.toUpperCase()})}}Uf.prototype=Vf.prototype;function Bf(){return new Wf}class Wf extends Ff{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!(e=>e!=+e)(e))}),this.withMutation(()=>{this.transform((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"==typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)})})}min(e,t=pf.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=pf.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=pf.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=pf.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=pf.positive){return this.moreThan(0,e)}negative(e=pf.negative){return this.lessThan(0,e)}integer(e=pf.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>kf(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>kf(t)?t:Math[e](t))}}Bf.prototype=Wf.prototype;let Hf=new Date("");class Qf extends Ff{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation(()=>{this.transform((e,t,n)=>!n.spec.coerce||n.isType(e)||null===e?e:(e=function(e){const t=zf(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?Qf.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(wf.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=hf.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=hf.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function qf(e,t){let n=1/0;return e.some((e,r)=>{var a;if(null!=(a=t.path)&&a.includes(e))return n=r,!0}),n}function Zf(e){return(t,n)=>qf(e,t)-qf(e,n)}Qf.INVALID_DATE=Hf;const Gf=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(a){}return n.isType(r)?r:e};function Kf(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Kf(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=Kf(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(Kf)}):"optional"in e?e.optional():e}let Yf=e=>"[object Object]"===Object.prototype.toString.call(e);function Jf(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const Xf=Zf([]);function ep(e){return new tp(e)}class tp extends Ff{constructor(e){super({type:"object",check:e=>Yf(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=Xf,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let a=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),i={},s=Object.assign({},t,{parent:i,__validating:t.__validating||!1}),u=!1;for(const c of l){let e=a[c],n=c in r;if(e){let n,a=r[c];s.path=(t.path?`${t.path}.`:"")+c,e=e.resolve({value:a,context:t.context,parent:i});let o=e instanceof Ff?e.spec:void 0,l=null==o?void 0:o.strict;if(null!=o&&o.strip){u=u||c in r;continue}n=t.__validating&&l?r[c]:e.cast(r[c],s),void 0!==n&&(i[c]=n)}else n&&!o&&(i[c]=r[c]);n===c in i&&i[c]===r[c]||(u=!0)}return u?i:r}_validate(e,t={},n,r){let{from:a=[],originalValue:o=e,recursive:l=this.spec.recursive}=t;t.from=[{schema:this,value:o},...a],t.__validating=!0,t.originalValue=o,super._validate(e,t,n,(e,a)=>{if(!l||!Yf(a))return void r(e,a);o=o||a;let i=[];for(let n of this._nodes){let e=this.fields[n];e&&!wf.isRef(e)&&i.push(e.asNestedTest({options:t,key:n,parent:a,parentPath:t.path,originalParent:o}))}this.runTests({tests:i,value:a,originalValue:o,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),a)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,a]of Object.entries(this.fields)){const e=n[r];n[r]=void 0===e?a:e}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const a=this.fields[n];let o=e;null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),t[n]=a&&"getDefault"in a?a.getDefault(o):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,a=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=Ad.split(e)[0];r.add(o),a.has(`${t}-${o}`)||n.push([t,o])}for(const l of Object.keys(e)){let t=e[l];r.add(l),wf.isRef(t)&&t.isSibling?o(t.path,l):vf(t)&&"deps"in t&&t.deps.forEach(e=>o(e,l))}return Gd.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Zf(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return Kf(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=Ad.getter(e,!0);return this.transform(a=>{if(!a)return a;let o=a;return((e,t)=>{const n=[...Ad.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),a=Ad.getter(Ad.join(n),!0)(e);return!(!a||!(r in a))})(a,e)&&(o=Object.assign({},a),n||delete o[e],o[t]=r(a)),o})}json(){return this.transform(Gf)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||mf.exact,test(e){if(null==e)return!0;const t=Jf(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=mf.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Jf(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=mf.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(Hd)}snakeCase(){return this.transformKeys(Qd)}constantCase(){return this.transformKeys(e=>Qd(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[a,o]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[a]})),n.fields[a]=o.describe(t)}return n}}ep.prototype=tp.prototype;const np=e=>{const t={".html":"text/html",".css":"text/css",".js":"application/javascript",".json":"application/json",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".bmp":"image/bmp",".tif":"image/tiff",".tiff":"image/tiff",".ico":"image/vnd.microsoft.icon",".avif":"image/avif",".heif":"image/heif",".heic":"image/heic",".mp4":"video/mp4",".mp3":"audio/mpeg",".wav":"audio/wav",".pdf":"application/pdf",".txt":"text/plain",".xml":"application/xml",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip"},n=function(e){try{const t=new URL(e).pathname,n=t.lastIndexOf(".");return-1===n||n===t.length-1?"":t.slice(n).toLowerCase()}catch(t){return console.error("Invalid URL:",t),""}}(e);return n?{mimetype:t[n]}:{mimetype:""}};const rp=(e,t)=>!e||e.startsWith("http://")||e.startsWith("https://")?e:e.includes("localhost")||e.includes("localagent")?`http://${e}:${(e=>{var t,n;const r="7002";return(null==(t=null==window?void 0:window.location)?void 0:t.host).includes("localhost")?e||r:e||(null==(n=null==window?void 0:window.location)?void 0:n.port)||r})(t)}`:`https://${e}`;function ap(e){return Ed({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function op(e){return Ed({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"},child:[]}]})(e)}const lp=e=>{var t=e,{accept:n,onValueChange:r,value:a}=t,o=u(t,["accept","onValueChange","value"]);const[l,d]=K.useState({url:"",isLoaded:!1,isError:!1}),{attachmentFile:f,fileInputRef:p,isDragging:h,handlers:m,clearAttachment:g}=(({onFileSelect:e,maxSize:t=5242880,acceptedTypes:n=["image/*"]}={})=>{const[r,a]=K.useState(null),[o,l]=K.useState(!1),i=K.useRef(0),s=K.useRef(null),u=r=>!(r.size>t||!n.some(e=>{const[t,n]=e.split("/");return"*"===n?r.type.startsWith(t):r.type===e})||(a(r),null==e||e(r),0));return{attachmentFile:r,fileInputRef:s,isDragging:o,handlers:{handleDragEnter:e=>{e.preventDefault(),e.stopPropagation(),i.current+=1,1===i.current&&l(!0)},handleDragLeave:e=>{e.preventDefault(),e.stopPropagation(),i.current-=1,0===i.current&&l(!1)},handleDragOver:e=>{e.preventDefault(),e.stopPropagation()},handleDrop:e=>{e.preventDefault(),e.stopPropagation(),i.current=0,l(!1);const t=e.dataTransfer.files[0];t&&u(t)},handleFileChange:e=>{var t;const n=null==(t=e.target.files)?void 0:t[0];n&&u(n)},handlePaste:e=>{var t;const n=null==(t=e.clipboardData)?void 0:t.items;if(n)for(const r of n)if(r.type.startsWith("image/")){const t=r.getAsFile();if(t){u(t),e.preventDefault();break}}},handleFileSelect:u},clearAttachment:()=>{a(null),s.current&&(s.current.value="")}}})({onFileSelect:e=>c(this,null,function*(){try{const t=new FileReader,n=new Promise(e=>{t.onloadend=()=>{const n=t.result;r(n),e(!0)}});t.readAsDataURL(e),yield n}catch(t){console.error("Error processing file:",t)}}),acceptedTypes:[n||""]});return K.useEffect(()=>{const e=setTimeout(()=>{const e=/^(https?:\/\/[^\s/$.?#].[^\s]*\.(?:jpg|jpeg|png|gif|bmp|webp|svg|tiff|tif|ico|heic|heif|avif)(?:\?[^\s]*)?|data:image\/[a-zA-Z]+;base64,[^\s]+)$/.test(a);d({url:e?a:"",isLoaded:!1,isError:!1})},500);return()=>{clearTimeout(e)}},[a]),oe.jsxs("div",{className:`rounded-lg p-[9.5px] flex gap-2 transition-all duration-300 text-gray-900 border border-solid border-gray-300 border-b-gray-500 focus-within:border-b-2 focus-within:border-b-blue-500 ${h?"border-2 border-dashed border-[#288a68]":""} ${f?"items-end":"items-center"}`,onDragEnter:m.handleDragEnter,onDragOver:m.handleDragOver,onDragLeave:m.handleDragLeave,onDrop:m.handleDrop,children:[oe.jsxs("div",{className:"flex flex-col items-start gap-4 w-full",children:[f&&oe.jsxs("div",{className:"relative group w-max",children:["image/*"===n?oe.jsx("img",{src:URL.createObjectURL(f),alt:"attachment preview",className:"w-16 h-16 rounded-lg relative group border border-solid border-gray-200 object-cover"}):"audio/*"===n||"video/*"===n?oe.jsx("div",{className:"p-1 rounded-lg relative group border border-solid border-gray-200 flex items-center justify-center",children:oe.jsx("span",{className:"text-gray-500",children:f.name})}):"/*"===n?oe.jsxs("div",{className:"p-2 rounded-lg relative group border border-solid border-gray-200 flex items-center justify-center gap-2 bg-gray-50 hover:bg-gray-100 transition-colors",children:[oe.jsx("i",{className:"fas fa-file text-gray-500","aria-hidden":"true"}),oe.jsx("span",{className:"text-gray-600 font-medium text-sm truncate max-w-[150px]",children:f.name}),oe.jsxs("span",{className:"text-xs text-gray-400 ml-1",children:["(",Math.round(f.size/1024)," KB)"]})]}):null,oe.jsxs("button",{type:"button",onClick:()=>{g(),r("")},className:"shadow-sm opacity-0 group-hover:opacity-100 transition-opacity absolute -right-1 -top-1 border border-solid border-gray-200 rounded-full w-4 h-4 bg-gray-100 flex items-center justify-center group-hover:bg-white",children:[oe.jsx("span",{className:"sr-only",children:"Remove attachment"}),oe.jsx("i",{className:"fas fa-times text-xs"})]})]}),!f&&l.url&&oe.jsx("img",{src:l.url,alt:"attachment preview",onLoad:()=>d(s(i({},l),{isLoaded:!0})),onError:()=>d(s(i({},l),{isError:!0})),className:`w-16 h-16 rounded-lg relative group border border-solid border-gray-200 object-cover ${l.isLoaded?"opacity-100":"opacity-50 animate-pulse bg-gray-200"} ${l.isError?"hidden":""}`}),!f&&oe.jsx("input",{className:"flex-1 outline-none w-full bg-transparent text-gray-900 text-sm font-normal placeholder:text-sm placeholder:font-normal focus:outline-none focus:ring-0",value:a,onChange:e=>{r(e.currentTarget.value)},onPaste:m.handlePaste,name:null==o?void 0:o.name,id:null==o?void 0:o.id,onBlur:null==o?void 0:o.onBlur,onFocus:null==o?void 0:o.onFocus})]}),oe.jsx("input",{type:"file",ref:p,className:"hidden",accept:n,onChange:m.handleFileChange}),(()=>oe.jsx("div",{className:"flex items-center gap-2",children:oe.jsx("button",{type:"button",onClick:()=>{var e;return null==(e=p.current)?void 0:e.click()},className:"text-gray-500 hover:text-gray-700 transition-colors",children:oe.jsx(op,{fontSize:18})})}))()]})};function ip(e,t){const n=t.split(".");let r=e;for(const a of n){if("boolean"==typeof r||"string"==typeof r)return r;if(null==r||"object"!=typeof r)return;r=r[a]}return r}function sp(e,t){let n=function(e){const t=e,{theme:n,clearTheme:r,applyTheme:a}=t;return u(t,["theme","clearTheme","applyTheme"])}(e);return t&&(n=i(i({},t),e)),n}const up={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function cp(e,t){return t}function dp(e,t){return e.filter(e=>void 0!==e)}var fp,pp;function hp(e){return"object"!=typeof e||null===e?0:Array.isArray(e)?2:function(e){if(!vp.includes(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(void 0===t)return!0;const n=t.prototype;if(null===n||"object"!=typeof n||!vp.includes(Object.prototype.toString.call(n)))return!1;if(!n.hasOwnProperty("isPrototypeOf"))return!1;return!0}(e)?1:e instanceof Set?3:e instanceof Map?4:5}function mp(e,t){return"object"==typeof e&&Object.prototype.propertyIsEnumerable.call(e,t)}function gp(e){var t;let n=0,r=null==(t=e[0])?void 0:t[Symbol.iterator]();return{[Symbol.iterator]:()=>({next(){for(var t;;){if(void 0===r)return{done:!0,value:void 0};const a=r.next();if(!0!==a.done)return{done:!1,value:a.value};n+=1,r=null==(t=e[n])?void 0:t[Symbol.iterator]()}}})}}(pp=fp||(fp={}))[pp.NOT=0]="NOT",pp[pp.RECORD=1]="RECORD",pp[pp.ARRAY=2]="ARRAY",pp[pp.SET=3]="SET",pp[pp.MAP=4]="MAP",pp[pp.OTHER=5]="OTHER";const vp=["[object Object]","[object Module]"];const yp={mergeRecords:function(e,t,n){const r={};for(const a of function(e){const t=new Set;for(const n of e)for(const e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}(e)){const o=[];for(const t of e)mp(t,a)&&o.push(t[a]);if(0===o.length)continue;const l=t.metaDataUpdater(n,{key:a,parents:e}),i=xp(o,t,l);i!==up.skip&&("__proto__"===a?Object.defineProperty(r,a,{value:i,configurable:!0,enumerable:!0,writable:!0}):r[a]=i)}return r},mergeArrays:function(e){return e.flat()},mergeSets:function(e){return new Set(gp(e))},mergeMaps:function(e){return new Map(gp(e))},mergeOthers:function(e){return e.at(-1)}};function bp(e,t){const n=function(e,t){var n,r,a;return{defaultMergeFunctions:yp,mergeFunctions:i(i({},yp),Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(yp,e)).map(([e,t])=>!1===t?[e,yp.mergeOthers]:[e,t]))),metaDataUpdater:null!=(n=e.metaDataUpdater)?n:cp,deepmerge:t,useImplicitDefaultMerging:null!=(r=e.enableImplicitDefaultMerging)&&r,filterValues:!1===e.filterValues?void 0:null!=(a=e.filterValues)?a:dp,actions:up}}(e,r);function r(...e){return xp(e,n,t)}return r}function xp(e,t,n){var r,a;const o=null!=(a=null==(r=t.filterValues)?void 0:r.call(t,e,n))?a:e;if(0===o.length)return;if(1===o.length)return wp(o,t,n);const l=hp(o[0]);if(0!==l&&5!==l)for(let i=1;i<o.length;i++)if(hp(o[i])!==l)return wp(o,t,n);switch(l){case 1:return function(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);if(r===up.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords)return t.defaultMergeFunctions.mergeRecords(e,t,n);return r}(o,t,n);case 2:return function(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);if(r===up.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays)return t.defaultMergeFunctions.mergeArrays(e);return r}(o,t,n);case 3:return function(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);if(r===up.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets)return t.defaultMergeFunctions.mergeSets(e);return r}(o,t,n);case 4:return function(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);if(r===up.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps)return t.defaultMergeFunctions.mergeMaps(e);return r}(o,t,n);default:return wp(o,t,n)}}function wp(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===up.defaultMerge||t.useImplicitDefaultMerging&&void 0===r&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}function kp(e){var t,n,r;if(Array.isArray(e)){for(n=Array(t=e.length);t--;)n[t]=(r=e[t])&&"object"==typeof r?kp(r):r;return n}if("[object Object]"===Object.prototype.toString.call(e)){for(t in n={},e)"__proto__"===t?Object.defineProperty(n,t,{value:kp(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&"object"==typeof r?kp(r):r;return n}return e}const Sp=void 0,Ep=void 0,_p=void 0;function jp(){return Ep}function Cp(){return _p}function Op(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e))return e.length===t.length&&e.every((e,n)=>Op(e,t[n]));if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&Op(e[n],t[n]))}return e!=e&&t!=t}const Tp=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],a=t.nextPart.get(r),o=a?Tp(e.slice(1),a):void 0;if(o)return o;if(0===t.validators.length)return;const l=e.join("-");return null==(n=t.validators.find(({validator:e})=>e(l)))?void 0:n.classGroupId},Np=/^\[(.+)\]$/,Fp=e=>{if(Np.test(e)){const t=Np.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Pp=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)zp(n[a],r,a,t);return r},zp=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Lp(t,e)).classGroupId=n)}if("function"==typeof e)return Mp(e)?void zp(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,a])=>{zp(a,Lp(t,e),n,r)})})},Lp=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Mp=e=>e.isThemeGetter,Ap=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(a(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):a(e,t)}}},Ip=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,a=0,o=0;for(let s=0;s<e.length;s++){let l=e[s];if(0===r&&0===a){if(":"===l){t.push(e.slice(o,s)),o=s+1;continue}if("/"===l){n=s;continue}}"["===l?r++:"]"===l?r--:"("===l?a++:")"===l&&a--}const l=0===t.length?e:e.substring(o),i=Dp(l);return{modifiers:t,hasImportantModifier:i!==l,baseClassName:i,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},Dp=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Rp=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},$p=e=>i({cache:Ap(e.cacheSize),parseClassName:Ip(e),sortModifiers:Rp(e)},(e=>{const t=Pp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Tp(n,t)||Fp(e)},getConflictingClassGroupIds:(e,t)=>{const a=n[e]||[];return t&&r[e]?[...a,...r[e]]:a}}})(e)),Up=/\s+/;function Vp(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Bp(e))&&(r&&(r+=" "),r+=t);return r}const Bp=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bp(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wp(e,...t){let n,r,a,o=function(i){const s=t.reduce((e,t)=>t(e),e());return n=$p(s),r=n.cache.get,a=n.cache.set,o=l,l(i)};function l(e){const t=r(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],i=e.trim().split(Up);let s="";for(let u=i.length-1;u>=0;u-=1){const e=i[u],{isExternal:t,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(e);if(t){s=e+(s.length>0?" "+s:s);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){s=e+(s.length>0?" "+s:s);continue}if(m=r(f),!m){s=e+(s.length>0?" "+s:s);continue}h=!1}const g=o(c).join(":"),v=d?g+"!":g,y=v+m;if(l.includes(y))continue;l.push(y);const b=a(m,h);for(let n=0;n<b.length;++n){const e=b[n];l.push(v+e)}s=e+(s.length>0?" "+s:s)}return s})(e,n);return a(e,o),o}return function(){return o(Vp.apply(null,arguments))}}const Hp=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Qp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zp=/^\d+\/\d+$/,Gp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eh=e=>Zp.test(e),th=e=>Boolean(e)&&!Number.isNaN(Number(e)),nh=e=>Boolean(e)&&Number.isInteger(Number(e)),rh=e=>e.endsWith("%")&&th(e.slice(0,-1)),ah=e=>Gp.test(e),oh=()=>!0,lh=e=>Kp.test(e)&&!Yp.test(e),ih=()=>!1,sh=e=>Jp.test(e),uh=e=>Xp.test(e),ch=e=>!fh(e)&&!yh(e),dh=e=>_h(e,Fh,ih),fh=e=>Qp.test(e),ph=e=>_h(e,Ph,lh),hh=e=>_h(e,zh,th),mh=e=>_h(e,Ch,ih),gh=e=>_h(e,Th,uh),vh=e=>_h(e,ih,sh),yh=e=>qp.test(e),bh=e=>jh(e,Ph),xh=e=>jh(e,Lh),wh=e=>jh(e,Ch),kh=e=>jh(e,Fh),Sh=e=>jh(e,Th),Eh=e=>jh(e,Mh,!0),_h=(e,t,n)=>{const r=Qp.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},jh=(e,t,n=!1)=>{const r=qp.exec(e);return!!r&&(r[1]?t(r[1]):n)},Ch=e=>"position"===e,Oh=new Set(["image","url"]),Th=e=>Oh.has(e),Nh=new Set(["length","size","percentage"]),Fh=e=>Nh.has(e),Ph=e=>"length"===e,zh=e=>"number"===e,Lh=e=>"family-name"===e,Mh=e=>"shadow"===e,Ah=()=>{const e=Hp("color"),t=Hp("font"),n=Hp("text"),r=Hp("font-weight"),a=Hp("tracking"),o=Hp("leading"),l=Hp("breakpoint"),i=Hp("container"),s=Hp("spacing"),u=Hp("radius"),c=Hp("shadow"),d=Hp("inset-shadow"),f=Hp("drop-shadow"),p=Hp("blur"),h=Hp("perspective"),m=Hp("aspect"),g=Hp("ease"),v=Hp("animate"),y=()=>[eh,"px","full","auto",yh,fh,s],b=()=>[nh,"none","subgrid",yh,fh],x=()=>["auto",{span:["full",nh,yh,fh]},yh,fh],w=()=>[nh,"auto",yh,fh],k=()=>["auto","min","max","fr",yh,fh],S=()=>[yh,fh,s],E=()=>[yh,fh,s],_=()=>["px",...E()],j=()=>["px","auto",...E()],C=()=>[eh,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",yh,fh,s],O=()=>[e,yh,fh],T=()=>[rh,ph],N=()=>["","none","full",u,yh,fh],F=()=>["",th,bh,ph],P=()=>["","none",p,yh,fh],z=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",yh,fh],L=()=>["none",th,yh,fh],M=()=>["none",th,yh,fh],A=()=>[th,yh,fh],I=()=>[eh,"full","px",yh,fh,s];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ah],breakpoint:[ah],color:[oh],container:[ah],"drop-shadow":[ah],ease:["in","out","in-out"],font:[ch],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ah],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ah],shadow:[ah],spacing:[th],text:[ah],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eh,fh,yh,m]}],container:["container"],columns:[{columns:[th,fh,yh,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fh,yh]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[nh,"auto",yh,fh]}],basis:[{basis:[eh,"full","auto",yh,fh,i,s]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[th,eh,"auto","initial","none",fh]}],grow:[{grow:["",th,yh,fh]}],shrink:[{shrink:["",th,yh,fh]}],order:[{order:[nh,"first","last","none",yh,fh]}],"grid-cols":[{"grid-cols":b()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":b()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","stretch","baseline"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","stretch","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[i,"screen",...C()]}],"min-w":[{"min-w":[i,"screen","none",...C()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...C()]}],h:[{h:["screen",...C()]}],"min-h":[{"min-h":["screen","none",...C()]}],"max-h":[{"max-h":["screen",...C()]}],"font-size":[{text:["base",n,bh,ph]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,yh,hh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rh,fh]}],"font-family":[{font:[xh,fh,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,yh,fh]}],"line-clamp":[{"line-clamp":[th,"none",yh,hh]}],leading:[{leading:[yh,fh,o,s]}],"list-image":[{"list-image":["none",yh,fh]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",yh,fh]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[th,"from-font","auto",yh,ph]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[th,"auto",yh,fh]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...E()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",yh,fh]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",yh,fh]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",wh,mh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",kh,dh]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nh,yh,fh],radial:["",yh,fh],conic:[nh,yh,fh]},Sh,gh]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[th,yh,fh]}],"outline-w":[{outline:["",th,bh,ph]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",c,Eh,vh]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",yh,fh,d]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[th,ph]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":O()}],opacity:[{opacity:[th,yh,fh]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none",yh,fh]}],blur:[{blur:P()}],brightness:[{brightness:[th,yh,fh]}],contrast:[{contrast:[th,yh,fh]}],"drop-shadow":[{"drop-shadow":["","none",f,yh,fh]}],grayscale:[{grayscale:["",th,yh,fh]}],"hue-rotate":[{"hue-rotate":[th,yh,fh]}],invert:[{invert:["",th,yh,fh]}],saturate:[{saturate:[th,yh,fh]}],sepia:[{sepia:["",th,yh,fh]}],"backdrop-filter":[{"backdrop-filter":["","none",yh,fh]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[th,yh,fh]}],"backdrop-contrast":[{"backdrop-contrast":[th,yh,fh]}],"backdrop-grayscale":[{"backdrop-grayscale":["",th,yh,fh]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[th,yh,fh]}],"backdrop-invert":[{"backdrop-invert":["",th,yh,fh]}],"backdrop-opacity":[{"backdrop-opacity":[th,yh,fh]}],"backdrop-saturate":[{"backdrop-saturate":[th,yh,fh]}],"backdrop-sepia":[{"backdrop-sepia":["",th,yh,fh]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",yh,fh]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[th,"initial",yh,fh]}],ease:[{ease:["linear","initial",g,yh,fh]}],delay:[{delay:[th,yh,fh]}],animate:[{animate:["none",v,yh,fh]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,yh,fh]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:A()}],"skew-x":[{"skew-x":A()}],"skew-y":[{"skew-y":A()}],transform:[{transform:[yh,fh,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",yh,fh]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",yh,fh]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[th,bh,ph,hh]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},Ih=(e,t,n)=>{void 0!==n&&(e[t]=n)},Dh=(e,t)=>{if(t)for(const n in t)Ih(e,n,t[n])},Rh=(e,t)=>{if(t)for(const n in t)$h(e,t,n)},$h=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Uh=(e,...t)=>"function"==typeof e?Wp(Ah,e,...t):Wp(()=>((e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:a={},override:o={}})=>(Ih(e,"cacheSize",t),Ih(e,"prefix",n),Ih(e,"experimentalParseClassName",r),Dh(e.theme,o.theme),Dh(e.classGroups,o.classGroups),Dh(e.conflictingClassGroups,o.conflictingClassGroups),Dh(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ih(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Rh(e.theme,a.theme),Rh(e.classGroups,a.classGroups),Rh(e.conflictingClassGroups,a.conflictingClassGroups),Rh(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),$h(e,a,"orderSensitiveModifiers"),e))(Ah(),e),...t),Vh=new Map;function Bh(...e){const t=jp(),n=`${t}.${Cp()}`,r=Vh.get(n);if(r)return r(...e);const a=Uh({extend:{classGroups:{"bg-image":["bg-arrow-down-icon","bg-check-icon","bg-dash-icon","bg-dot-icon"],shadow:["shadow-sm-light"]}},prefix:t});return Vh.set(n,a),a(...e)}function Wh(...e){return function(e,t){const n=K.useRef(),r=K.useRef();n.current&&Op(n.current,t)||(n.current=t,r.current=e());return r.current}(()=>function([e,...t],n,r){const a=Sp,o=jp(),l=Cp(),i=(null==t?void 0:t.length)?null==t?void 0:t.filter(e=>void 0!==e):void 0,s=(null==n?void 0:n.length)?null==n?void 0:n.filter(e=>void 0!==e):void 0,u=(null==r?void 0:r.length)?null==r?void 0:r.filter(e=>void 0!==e):void 0,c=(null==s?void 0:s.length)||!1===a||4===l||o?kp(e):e;if(null==s?void 0:s.length){const e=qh(c,!1);let t=!1;for(const n of s)n&&(t=!0),Hh(e,n);t&&function(e,t){function n(e,t){if(!0===t){if("object"!=typeof e||null===e)return"";for(const r in e)e[r]=n(e[r],t)}if("object"==typeof t&&null!==t)for(const r in t)e[r]=n(e[r],t[r]);return e}n(e,t)}(c,e)}let d=c;(null==i?void 0:i.length)&&(d=(f=Bh,bp({mergeOthers:(e,t)=>{if(e.some(e=>"string"==typeof e)){const t=e.filter(e=>"string"==typeof e),n=new Set,r=[];for(const e of t){const t=[...new Set(e.split(/\s+/))];r.push(t.filter(e=>!n.has(e)).join(" "));for(const e of t)n.add(e)}return f(r)}return t.actions.defaultMerge}}))(c,...i));var f;if((null==u?void 0:u.length)&&(null==i?void 0:i.length)){const e=qh(c,"merge");let n=!1;for(const t of u)"merge"!==t&&(n=!0),Qh(e,t);n&&function(e,t,n){function r(e,t,n){if("replace"===n){if("object"!=typeof e||null===e)return t;for(const a in e)e[a]=r(e[a],t[a],n)}if("object"==typeof n&&null!==n)for(const a in n)e[a]=r(e[a],t[a],n[a]);return e}r(e,t,n)}(d,function(...e){return bp({})(...e)}(c,...t),e)}return d}(...e),e)}function Hh(e,t){!function e(t,n){if("boolean"==typeof n){if("object"!=typeof t||null===t)return n;for(const r in t)t[r]=e(t[r],n)}if("object"==typeof n&&null!==n)for(const r in n)t[r]=e(t[r],n[r]);return t}(e,t)}function Qh(e,t){!function e(t,n){if("string"==typeof n){if("object"!=typeof t||null===t)return n;for(const r in t)t[r]=e(t[r],n)}if("object"==typeof n&&null!==n)for(const r in n)t[r]=e(t[r],n[r]);return t}(e,t)}function qh(e,t){if(null===e||"object"!=typeof e)return t;const n={};for(const r in e)n[r]=qh(e[r],t);return n}const Zh=K.createContext(void 0);function Gh(){var e;return null!=(e=K.useContext(Zh))?e:{}}const Kh={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 placeholder-gray-500 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},Yh=K.forwardRef((e,t)=>{var n,r;const a=Gh(),o=Wh([Kh,null==(n=a.theme)?void 0:n.textInput,e.theme],[ip(a.clearTheme,"textInput"),e.clearTheme],[ip(a.applyTheme,"textInput"),e.applyTheme]),l=sp(e,null==(r=a.props)?void 0:r.textInput),{addon:c,className:d,color:f="gray",icon:p,rightIcon:h,shadow:m,sizing:g="md",type:v="text"}=l,y=u(l,["addon","className","color","icon","rightIcon","shadow","sizing","type"]);return oe.jsxs("div",{className:Bh(o.base,d),children:[c&&oe.jsx("span",{className:o.addon,children:c}),oe.jsxs("div",{className:o.field.base,children:[p&&oe.jsx("div",{className:o.field.icon.base,children:oe.jsx(p,{className:o.field.icon.svg})}),h&&oe.jsx("div",{"data-testid":"right-icon",className:o.field.rightIcon.base,children:oe.jsx(h,{className:o.field.rightIcon.svg})}),oe.jsx("input",s(i({className:Bh(o.field.input.base,o.field.input.colors[f],o.field.input.sizes[g],o.field.input.withIcon[p?"on":"off"],o.field.input.withRightIcon[h?"on":"off"],o.field.input.withAddon[c?"on":"off"],o.field.input.withShadow[m?"on":"off"]),type:v},y),{ref:t}))]})]})});Yh.displayName="TextInput";const Jh={base:"block w-full cursor-pointer rounded-lg border file:-ms-4 file:me-4 file:cursor-pointer file:border-none file:bg-gray-800 file:py-2.5 file:pe-4 file:ps-8 file:text-sm file:font-medium file:leading-[inherit] file:text-white hover:file:bg-gray-700 focus:outline-none focus:ring-1 dark:file:bg-gray-600 dark:hover:file:bg-gray-500",sizes:{sm:"text-xs",md:"text-sm",lg:"text-lg"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-gray-400 dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}},Xh=K.forwardRef((e,t)=>{var n,r;const a=Gh(),o=Wh([Jh,null==(n=a.theme)?void 0:n.fileInput,e.theme],[ip(a.clearTheme,"fileInput"),e.clearTheme],[ip(a.applyTheme,"fileInput"),e.applyTheme]),l=sp(e,null==(r=a.props)?void 0:r.fileInput),{className:s,color:c="gray",sizing:d="md"}=l,f=u(l,["className","color","sizing"]);return oe.jsx("input",i({ref:t,type:"file",className:Bh(o.base,o.colors[c],o.sizes[d],s)},f))});Xh.displayName="FileInput";const em={base:"block w-full rounded-lg border p-2.5 text-sm focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-primary-500 dark:focus:ring-primary-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},tm=K.forwardRef((e,t)=>{var n,r;const a=Gh(),o=Wh([em,null==(n=a.theme)?void 0:n.textarea,e.theme],[ip(a.clearTheme,"textarea"),e.clearTheme],[ip(a.applyTheme,"textarea"),e.applyTheme]),l=sp(e,null==(r=a.props)?void 0:r.textarea),{className:s,color:c="gray",shadow:d}=l,f=u(l,["className","color","shadow"]);return oe.jsx("textarea",i({ref:t,className:Bh(o.base,o.colors[c],o.withShadow[d?"on":"off"],s)},f))});tm.displayName="Textarea";const nm=e=>{var t=e,{input:n,error:r,fileOps:a={inputVersion:"v1"},inputSize:o}=t,l=u(t,["input","error","fileOps","inputSize"]);let s=null;const c=a.onChange,d=(e=>{if(!e||"object"!=typeof e)return{};const t=new Set(["accept","alt","autoComplete","autoFocus","capture","checked","defaultChecked","defaultValue","dir","dirName","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","height","id","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","size","src","step","tabIndex","title","type","value","width","className","style","inputMode","enterKeyHint","spellCheck","autoCapitalize","autoCorrect","lang","rows","cols","wrap","role"]),n={};for(const[r,a]of Object.entries(e))(t.has(r)||r.startsWith("data-")||r.startsWith("aria-")||/^on[A-Z]/.test(r))&&(n[r]=a);return n})(l),f=e=>{switch(e){case"Image":return"image/*";case"Audio":return"audio/*";case"Video":return"video/*";case"Binary":return"/*";default:return}};switch(n.type){case"String":case"Text":const e=l,{type:t,accept:r,alt:o,capture:p,onChange:h}=e,m=u(e,["type","accept","alt","capture","onChange"]),g={value:m.value,disabled:m.disabled,placeholder:m.placeholder,className:"py-[6px] w-full bg-white border text-gray-900 rounded block outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-normal placeholder:text-sm placeholder:font-normal px-3 border-gray-300 focus:border-blue-500 focus:ring-1 focus:ring-blue-500 resize-none",style:m.style,onChange:e=>{h&&"function"==typeof h&&h(e)}};s=oe.jsx("textarea",i({name:n.name,rows:1,ref:e=>{e&&(e.style.height="auto",e.style.height=`${e.scrollHeight+3}px`)},onInput:e=>{const t=e.target;t.style.height="auto",t.style.height=`${t.scrollHeight+3}px`}},g));break;case"Number":s=oe.jsx("input",i({name:n.name,type:"number",className:"h-[35px] w-full bg-white border text-gray-900 rounded block outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-normal placeholder:text-sm placeholder:font-normal px-3 border-gray-300 focus:border-blue-500 focus:ring-1 focus:ring-blue-500"},d));break;case"Binary":case"Image":case"Audio":case"Video":s="v1"===a.inputVersion?oe.jsx(Xh,{accept:f(n.type),onChange:e=>{c&&c(e)}}):oe.jsx(lp,i({accept:f(n.type),onValueChange:e=>{c&&c(e)}},d));break;default:s=oe.jsx("input",i({name:n.name,type:"text",className:"h-[35px] w-full bg-white border text-gray-900 rounded block outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-normal placeholder:text-sm placeholder:font-normal px-3 border-gray-300 focus:border-blue-500 focus:ring-1 focus:ring-blue-500"},d))}return oe.jsxs("div",{children:[s,r&&oe.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]},n.name)},rm=K.createContext(void 0),am=({children:e,mode:t})=>{const n=K.useRef(null),[r,a]=K.useState(!0),[o,l]=K.useState(null),[i,s]=K.useState([]),[u,d]=K.useState("form"),[f,p]=K.useState(null),[h,m]=K.useState(null),[g,v]=K.useState([]),[y,b]=K.useState({isLoading:!1,isSuccess:!1,isError:!1,error:null,data:null}),[x,w]=K.useState({domain:"",endpointId:"",isLoading:!1,isSuccess:!1,isError:!1,isCorError:!1,error:null,data:null}),[k,S]=K.useState([]);K.useEffect(()=>{var e,t;if(null==(e=x.data)?void 0:e.components){const e=(t=x.data.components,Object.values(t).filter(e=>{var t;return e.inputs&&e.inputs.length>0&&(null==(t=e.data)?void 0:t.endpoint)&&e.id===x.endpointId}).map(e=>{var t,n,r;return{skillId:e.id,inputsTypes:e.inputs||[],autoFillDataJson:{},details:{name:e.title||e.name||"Unnamed Skill",description:(null==(t=e.data)?void 0:t.description)||e.description||"",endpoint:(null==(n=e.data)?void 0:n.endpoint)||"",method:(null==(r=e.data)?void 0:r.method)||"POST"}}}));S(e)}else S([])},[x.data]),K.useEffect(()=>{var e,n,r,a,o,l;function i(e){v([...e])}return v([...(null==(r=null==(n=null==(e=t.props.defaultSkill)?void 0:e.details)?void 0:n.skillErrors)?void 0:r.errors)||[]]),null==(l=null==(o=null==(a=t.props.defaultSkill)?void 0:a.details)?void 0:o.skillErrors)||l.on("changed",i),()=>{var e,n,r;null==(r=null==(n=null==(e=t.props.defaultSkill)?void 0:e.details)?void 0:n.skillErrors)||r.off("changed",i)}},[t]);const E=K.useCallback((e,t)=>c(this,null,function*(){w({domain:e,endpointId:t,isLoading:!0,isSuccess:!1,isError:!1,isCorError:!1,error:null,data:null});try{let n,r;if(n=yield fetch(`${rp(e)||""}/form-preview/params`,{method:"GET",headers:{"Content-Type":"application/json"}}),!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const a=yield n.json();if(!a)throw new Error("Failed to fetch agent data");return r=a,w({domain:e,endpointId:t,isLoading:!1,isSuccess:!0,isError:!1,isCorError:!1,error:null,data:r}),r}catch(n){const r=n instanceof Error?n:new Error(String(n)),a=(e=>{const t=e.message.toLowerCase();return t.includes("cors")||t.includes("cross-origin")||t.includes("access-control")||t.includes("origin")||t.includes("preflight")||"TypeError"===e.name&&t.includes("fetch")})(r);throw w({domain:e,endpointId:t,isLoading:!1,isSuccess:!1,isError:!0,isCorError:a,error:r,data:null}),r}}),[w]),_=K.useCallback(e=>c(this,null,function*(){var t,r;b({isLoading:!0,isSuccess:!1,isError:!1,error:null,data:null}),null==(t=n.current)||t.abort(),n.current=new AbortController;try{const t=yield fetch(`${rp(x.domain)||""}/form-preview/call-skill`,{method:"POST",body:JSON.stringify({payload:e,componentId:null==o?void 0:o.skillId,version:"dev"}),signal:null==(r=n.current)?void 0:r.signal,headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const a=yield t.json();return m(a),b({isLoading:!1,isSuccess:!0,isError:!1,error:null,data:a}),a}catch(a){const e=a instanceof Error?a:new Error(String(a));throw"AbortError"!==e.name&&b({isLoading:!1,isSuccess:!1,isError:!0,error:e,data:null}),e}}),[x.domain,null==o?void 0:o.skillId,b,m,n]),j={selectedSkill:o,setSelectedSkill:l,requests:i,setRequests:s,mode:t,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),callSkill:_,callSkillState:y,resetCallSkill:()=>{b({isLoading:!1,isSuccess:!1,isError:!1,error:null,data:null}),m(null)},view:u,setView:d,lastFormValues:f,setLastFormValues:p,abortController:n,lastResponse:h,agentSkillErrors:g,agentData:x,fetchAgentData:E,availableSkills:k,isWidget:r,setIsWidget:a};return oe.jsx(rm.Provider,{value:j,children:e})},om=()=>{const e=K.useContext(rm);if(void 0===e)throw new Error("useEndpointFormPreview must be used within a EndpointFormPreviewProvider");return e};function lm({type:e="button",label:t,handleClick:n,onMouseDown:r,className:a,disabled:o,loading:l,fullWidth:u,children:c,dataAttributes:d,onMouseEnter:f,onMouseLeave:p,btnRef:h}){return oe.jsx("button",s(i({disabled:o,onClick:l?void 0:n,onMouseDown:r,className:`flex items-center justify-center text-sm font-normal border border-solid text-base px-4 py-2 text-center rounded-md transition-all duration-200 outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none ${(()=>{const e=["bg-smythos-blue-500 text-white border-transparent hover:bg-smyth-blue"];return u&&e.push("w-full justify-center"),a&&e.push(a),e.join(" ")})()}`,ref:h,type:e},d),{onMouseEnter:f,onMouseLeave:p,children:oe.jsx(oe.Fragment,{children:oe.jsxs("div",{className:"inline-flex items-center justify-center w-full",children:[l&&oe.jsx("div",{id:"loader",className:"mr-2 circular-loader-blue"}),t||c]})})}))}var im=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===sm}(e)}(e)};var sm="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function um(e,t){return!1!==t.clone&&t.isMergeableObject(e)?dm((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function cm(e,t,n){return e.concat(t).map(function(e){return um(e,n)})}function dm(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||cm,n.isMergeableObject=n.isMergeableObject||im;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=um(e[t],n)}),Object.keys(t).forEach(function(a){n.isMergeableObject(t[a])&&e[a]?r[a]=dm(e[a],t[a],n):r[a]=um(t[a],n)}),r}(e,t,n):um(t,n)}dm.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return dm(e,n,t)},{})};var fm=dm,pm="object"==typeof global&&global&&global.Object===Object&&global,hm="object"==typeof self&&self&&self.Object===Object&&self,mm=pm||hm||Function("return this")(),gm=mm.Symbol,vm=Object.prototype,ym=vm.hasOwnProperty,bm=vm.toString,xm=gm?gm.toStringTag:void 0;var wm=Object.prototype.toString;var km=gm?gm.toStringTag:void 0;function Sm(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":km&&km in Object(e)?function(e){var t=ym.call(e,xm),n=e[xm];try{e[xm]=void 0;var r=!0}catch(o){}var a=bm.call(e);return r&&(t?e[xm]=n:delete e[xm]),a}(e):function(e){return wm.call(e)}(e)}function Em(e,t){return function(n){return e(t(n))}}var _m=Em(Object.getPrototypeOf,Object);function jm(e){return null!=e&&"object"==typeof e}var Cm=Function.prototype,Om=Object.prototype,Tm=Cm.toString,Nm=Om.hasOwnProperty,Fm=Tm.call(Object);function Pm(e){if(!jm(e)||"[object Object]"!=Sm(e))return!1;var t=_m(e);if(null===t)return!0;var n=Nm.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Tm.call(n)==Fm}function zm(e,t){return e===t||e!=e&&t!=t}function Lm(e,t){for(var n=e.length;n--;)if(zm(e[n][0],t))return n;return-1}var Mm=Array.prototype.splice;function Am(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Im(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Am.prototype.clear=function(){this.__data__=[],this.size=0},Am.prototype.delete=function(e){var t=this.__data__,n=Lm(t,e);return!(n<0)&&(n==t.length-1?t.pop():Mm.call(t,n,1),--this.size,!0)},Am.prototype.get=function(e){var t=this.__data__,n=Lm(t,e);return n<0?void 0:t[n][1]},Am.prototype.has=function(e){return Lm(this.__data__,e)>-1},Am.prototype.set=function(e,t){var n=this.__data__,r=Lm(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Dm(e){if(!Im(e))return!1;var t=Sm(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Rm,$m=mm["__core-js_shared__"],Um=(Rm=/[^.]+$/.exec($m&&$m.keys&&$m.keys.IE_PROTO||""))?"Symbol(src)_1."+Rm:"";var Vm=Function.prototype.toString;function Bm(e){if(null!=e){try{return Vm.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Wm=/^\[object .+?Constructor\]$/,Hm=Function.prototype,Qm=Object.prototype,qm=Hm.toString,Zm=Qm.hasOwnProperty,Gm=RegExp("^"+qm.call(Zm).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Km(e){return!(!Im(e)||(t=e,Um&&Um in t))&&(Dm(e)?Gm:Wm).test(Bm(e));var t}function Ym(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Km(n)?n:void 0}var Jm=Ym(mm,"Map"),Xm=Ym(Object,"create");var eg=Object.prototype.hasOwnProperty;var tg=Object.prototype.hasOwnProperty;function ng(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function rg(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function ag(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ng.prototype.clear=function(){this.__data__=Xm?Xm(null):{},this.size=0},ng.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ng.prototype.get=function(e){var t=this.__data__;if(Xm){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eg.call(t,e)?t[e]:void 0},ng.prototype.has=function(e){var t=this.__data__;return Xm?void 0!==t[e]:tg.call(t,e)},ng.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xm&&void 0===t?"__lodash_hash_undefined__":t,this},ag.prototype.clear=function(){this.size=0,this.__data__={hash:new ng,map:new(Jm||Am),string:new ng}},ag.prototype.delete=function(e){var t=rg(this,e).delete(e);return this.size-=t?1:0,t},ag.prototype.get=function(e){return rg(this,e).get(e)},ag.prototype.has=function(e){return rg(this,e).has(e)},ag.prototype.set=function(e,t){var n=rg(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function og(e){var t=this.__data__=new Am(e);this.size=t.size}og.prototype.clear=function(){this.__data__=new Am,this.size=0},og.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},og.prototype.get=function(e){return this.__data__.get(e)},og.prototype.has=function(e){return this.__data__.has(e)},og.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Am){var r=n.__data__;if(!Jm||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ag(r)}return n.set(e,t),this.size=n.size,this};var lg=function(){try{var e=Ym(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();function ig(e,t,n){"__proto__"==t&&lg?lg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var sg=Object.prototype.hasOwnProperty;function ug(e,t,n){var r=e[t];sg.call(e,t)&&zm(r,n)&&(void 0!==n||t in e)||ig(e,t,n)}function cg(e,t,n,r){var a=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var i=t[o],s=void 0;void 0===s&&(s=e[i]),a?ig(n,i,s):ug(n,i,s)}return n}function dg(e){return jm(e)&&"[object Arguments]"==Sm(e)}var fg=Object.prototype,pg=fg.hasOwnProperty,hg=fg.propertyIsEnumerable,mg=dg(function(){return arguments}())?dg:function(e){return jm(e)&&pg.call(e,"callee")&&!hg.call(e,"callee")},gg=Array.isArray;var vg="object"==typeof exports&&exports&&!exports.nodeType&&exports,yg=vg&&"object"==typeof module&&module&&!module.nodeType&&module,bg=yg&&yg.exports===vg?mm.Buffer:void 0,xg=(bg?bg.isBuffer:void 0)||function(){return!1},wg=/^(?:0|[1-9]\d*)$/;function kg(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&wg.test(e))&&e>-1&&e%1==0&&e<t}function Sg(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Eg={};function _g(e){return function(t){return e(t)}}Eg["[object Float32Array]"]=Eg["[object Float64Array]"]=Eg["[object Int8Array]"]=Eg["[object Int16Array]"]=Eg["[object Int32Array]"]=Eg["[object Uint8Array]"]=Eg["[object Uint8ClampedArray]"]=Eg["[object Uint16Array]"]=Eg["[object Uint32Array]"]=!0,Eg["[object Arguments]"]=Eg["[object Array]"]=Eg["[object ArrayBuffer]"]=Eg["[object Boolean]"]=Eg["[object DataView]"]=Eg["[object Date]"]=Eg["[object Error]"]=Eg["[object Function]"]=Eg["[object Map]"]=Eg["[object Number]"]=Eg["[object Object]"]=Eg["[object RegExp]"]=Eg["[object Set]"]=Eg["[object String]"]=Eg["[object WeakMap]"]=!1;var jg="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cg=jg&&"object"==typeof module&&module&&!module.nodeType&&module,Og=Cg&&Cg.exports===jg&&pm.process,Tg=function(){try{var e=Cg&&Cg.require&&Cg.require("util").types;return e||Og&&Og.binding&&Og.binding("util")}catch(t){}}(),Ng=Tg&&Tg.isTypedArray,Fg=Ng?_g(Ng):function(e){return jm(e)&&Sg(e.length)&&!!Eg[Sm(e)]},Pg=Object.prototype.hasOwnProperty;function zg(e,t){var n=gg(e),r=!n&&mg(e),a=!n&&!r&&xg(e),o=!n&&!r&&!a&&Fg(e),l=n||r||a||o,i=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=i.length;for(var u in e)!t&&!Pg.call(e,u)||l&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||kg(u,s))||i.push(u);return i}var Lg=Object.prototype;function Mg(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Lg)}var Ag=Em(Object.keys,Object),Ig=Object.prototype.hasOwnProperty;function Dg(e){return null!=e&&Sg(e.length)&&!Dm(e)}function Rg(e){return Dg(e)?zg(e):function(e){if(!Mg(e))return Ag(e);var t=[];for(var n in Object(e))Ig.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var $g=Object.prototype.hasOwnProperty;function Ug(e){if(!Im(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Mg(e),n=[];for(var r in e)("constructor"!=r||!t&&$g.call(e,r))&&n.push(r);return n}function Vg(e){return Dg(e)?zg(e,!0):Ug(e)}var Bg="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wg=Bg&&"object"==typeof module&&module&&!module.nodeType&&module,Hg=Wg&&Wg.exports===Bg?mm.Buffer:void 0,Qg=Hg?Hg.allocUnsafe:void 0;function qg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Zg(){return[]}var Gg=Object.prototype.propertyIsEnumerable,Kg=Object.getOwnPropertySymbols,Yg=Kg?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[a++]=l)}return o}(Kg(e),function(t){return Gg.call(e,t)}))}:Zg;function Jg(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Xg=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Jg(t,Yg(e)),e=_m(e);return t}:Zg;function ev(e,t,n){var r=t(e);return gg(e)?r:Jg(r,n(e))}function tv(e){return ev(e,Rg,Yg)}function nv(e){return ev(e,Vg,Xg)}var rv=Ym(mm,"DataView"),av=Ym(mm,"Promise"),ov=Ym(mm,"Set"),lv=Ym(mm,"WeakMap"),iv="[object Map]",sv="[object Promise]",uv="[object Set]",cv="[object WeakMap]",dv="[object DataView]",fv=Bm(rv),pv=Bm(Jm),hv=Bm(av),mv=Bm(ov),gv=Bm(lv),vv=Sm;(rv&&vv(new rv(new ArrayBuffer(1)))!=dv||Jm&&vv(new Jm)!=iv||av&&vv(av.resolve())!=sv||ov&&vv(new ov)!=uv||lv&&vv(new lv)!=cv)&&(vv=function(e){var t=Sm(e),n="[object Object]"==t?e.constructor:void 0,r=n?Bm(n):"";if(r)switch(r){case fv:return dv;case pv:return iv;case hv:return sv;case mv:return uv;case gv:return cv}return t});var yv=Object.prototype.hasOwnProperty;var bv=mm.Uint8Array;function xv(e){var t=new e.constructor(e.byteLength);return new bv(t).set(new bv(e)),t}var wv=/\w*$/;var kv=gm?gm.prototype:void 0,Sv=kv?kv.valueOf:void 0;function Ev(e,t,n){var r,a,o,l=e.constructor;switch(t){case"[object ArrayBuffer]":return xv(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return function(e,t){var n=t?xv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?xv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return(o=new(a=e).constructor(a.source,wv.exec(a))).lastIndex=a.lastIndex,o;case"[object Symbol]":return r=e,Sv?Object(Sv.call(r)):{}}}var _v=Object.create,jv=function(){function e(){}return function(t){if(!Im(t))return{};if(_v)return _v(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Cv=Tg&&Tg.isMap,Ov=Cv?_g(Cv):function(e){return jm(e)&&"[object Map]"==vv(e)};var Tv=Tg&&Tg.isSet,Nv=Tv?_g(Tv):function(e){return jm(e)&&"[object Set]"==vv(e)},Fv="[object Arguments]",Pv="[object Function]",zv="[object Object]",Lv={};function Mv(e,t,n,r,a,o){var l,i=1&t,s=2&t,u=4&t;if(void 0!==l)return l;if(!Im(e))return e;var c=gg(e);if(c){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&yv.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!i)return qg(e,l)}else{var d=vv(e),f=d==Pv||"[object GeneratorFunction]"==d;if(xg(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Qg?Qg(n):new e.constructor(n);return e.copy(r),r}(e,i);if(d==zv||d==Fv||f&&!a){if(l=s||f?{}:function(e){return"function"!=typeof e.constructor||Mg(e)?{}:jv(_m(e))}(e),!i)return s?function(e,t){return cg(e,Xg(e),t)}(e,function(e,t){return e&&cg(t,Vg(t),e)}(l,e)):function(e,t){return cg(e,Yg(e),t)}(e,function(e,t){return e&&cg(t,Rg(t),e)}(l,e))}else{if(!Lv[d])return a?e:{};l=Ev(e,d,i)}}o||(o=new og);var p=o.get(e);if(p)return p;o.set(e,l),Nv(e)?e.forEach(function(r){l.add(Mv(r,t,n,r,e,o))}):Ov(e)&&e.forEach(function(r,a){l.set(a,Mv(r,t,n,a,e,o))});var h=c?void 0:(u?s?nv:tv:s?Vg:Rg)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(h||e,function(r,a){h&&(r=e[a=r]),ug(l,a,Mv(r,t,n,a,e,o))}),l}Lv[Fv]=Lv["[object Array]"]=Lv["[object ArrayBuffer]"]=Lv["[object DataView]"]=Lv["[object Boolean]"]=Lv["[object Date]"]=Lv["[object Float32Array]"]=Lv["[object Float64Array]"]=Lv["[object Int8Array]"]=Lv["[object Int16Array]"]=Lv["[object Int32Array]"]=Lv["[object Map]"]=Lv["[object Number]"]=Lv[zv]=Lv["[object RegExp]"]=Lv["[object Set]"]=Lv["[object String]"]=Lv["[object Symbol]"]=Lv["[object Uint8Array]"]=Lv["[object Uint8ClampedArray]"]=Lv["[object Uint16Array]"]=Lv["[object Uint32Array]"]=!0,Lv["[object Error]"]=Lv[Pv]=Lv["[object WeakMap]"]=!1;function Av(e){return Mv(e,5)}var Iv=Array.isArray,Dv=Object.keys,Rv=Object.prototype.hasOwnProperty,$v="undefined"!=typeof Element;function Uv(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,a,o=Iv(e),l=Iv(t);if(o&&l){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!Uv(e[n],t[n]))return!1;return!0}if(o!=l)return!1;var i=e instanceof Date,s=t instanceof Date;if(i!=s)return!1;if(i&&s)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var d=Dv(e);if((r=d.length)!==Dv(t).length)return!1;for(n=r;0!==n--;)if(!Rv.call(t,d[n]))return!1;if($v&&e instanceof Element&&t instanceof Element)return e===t;for(n=r;0!==n--;)if(!("_owner"===(a=d[n])&&e.$$typeof||Uv(e[a],t[a])))return!1;return!0}return e!=e&&t!=t}var Vv=function(e,t){try{return Uv(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const Bv=d(Vv);function Wv(e){return Mv(e,4)}function Hv(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function Qv(e){return"symbol"==typeof e||jm(e)&&"[object Symbol]"==Sm(e)}function qv(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var l=e.apply(this,r);return n.cache=o.set(a,l)||o,l};return n.cache=new(qv.Cache||ag),n}qv.Cache=ag;var Zv,Gv,Kv,Yv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jv=/\\(\\)?/g,Xv=(Zv=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Yv,function(e,n,r,a){t.push(r?a.replace(Jv,"$1"):n||e)}),t},Gv=qv(Zv,function(e){return 500===Kv.size&&Kv.clear(),e}),Kv=Gv.cache,Gv);function ey(e){if("string"==typeof e||Qv(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var ty=gm?gm.prototype:void 0,ny=ty?ty.toString:void 0;function ry(e){if("string"==typeof e)return e;if(gg(e))return Hv(e,ry)+"";if(Qv(e))return ny?ny.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ay(e){return gg(e)?Hv(e,ey):Qv(e)?[e]:qg(Xv(function(e){return null==e?"":ry(e)}(e)))}var oy={exports:{}},ly={},iy="function"==typeof Symbol&&Symbol.for,sy=iy?Symbol.for("react.element"):60103,uy=iy?Symbol.for("react.portal"):60106,cy=iy?Symbol.for("react.fragment"):60107,dy=iy?Symbol.for("react.strict_mode"):60108,fy=iy?Symbol.for("react.profiler"):60114,py=iy?Symbol.for("react.provider"):60109,hy=iy?Symbol.for("react.context"):60110,my=iy?Symbol.for("react.async_mode"):60111,gy=iy?Symbol.for("react.concurrent_mode"):60111,vy=iy?Symbol.for("react.forward_ref"):60112,yy=iy?Symbol.for("react.suspense"):60113,by=iy?Symbol.for("react.suspense_list"):60120,xy=iy?Symbol.for("react.memo"):60115,wy=iy?Symbol.for("react.lazy"):60116,ky=iy?Symbol.for("react.block"):60121,Sy=iy?Symbol.for("react.fundamental"):60117,Ey=iy?Symbol.for("react.responder"):60118,_y=iy?Symbol.for("react.scope"):60119;function jy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case sy:switch(e=e.type){case my:case gy:case cy:case fy:case dy:case yy:return e;default:switch(e=e&&e.$$typeof){case hy:case vy:case wy:case xy:case py:return e;default:return t}}case uy:return t}}}function Cy(e){return jy(e)===gy}ly.AsyncMode=my,ly.ConcurrentMode=gy,ly.ContextConsumer=hy,ly.ContextProvider=py,ly.Element=sy,ly.ForwardRef=vy,ly.Fragment=cy,ly.Lazy=wy,ly.Memo=xy,ly.Portal=uy,ly.Profiler=fy,ly.StrictMode=dy,ly.Suspense=yy,ly.isAsyncMode=function(e){return Cy(e)||jy(e)===my},ly.isConcurrentMode=Cy,ly.isContextConsumer=function(e){return jy(e)===hy},ly.isContextProvider=function(e){return jy(e)===py},ly.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===sy},ly.isForwardRef=function(e){return jy(e)===vy},ly.isFragment=function(e){return jy(e)===cy},ly.isLazy=function(e){return jy(e)===wy},ly.isMemo=function(e){return jy(e)===xy},ly.isPortal=function(e){return jy(e)===uy},ly.isProfiler=function(e){return jy(e)===fy},ly.isStrictMode=function(e){return jy(e)===dy},ly.isSuspense=function(e){return jy(e)===yy},ly.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===cy||e===gy||e===fy||e===dy||e===yy||e===by||"object"==typeof e&&null!==e&&(e.$$typeof===wy||e.$$typeof===xy||e.$$typeof===py||e.$$typeof===hy||e.$$typeof===vy||e.$$typeof===Sy||e.$$typeof===Ey||e.$$typeof===_y||e.$$typeof===ky)},ly.typeOf=jy,oy.exports=ly;var Oy=oy.exports,Ty={};function Ny(){return Ny=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ny.apply(this,arguments)}function Fy(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}Ty[Oy.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ty[Oy.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Py=K.createContext(void 0);Py.displayName="FormikContext";var zy=Py.Provider;Py.Consumer;var Ly=function(e){return"function"==typeof e},My=function(e){return null!==e&&"object"==typeof e},Ay=function(e){return String(Math.floor(Number(e)))===e},Iy=function(e){return"[object String]"===Object.prototype.toString.call(e)},Dy=function(e){return My(e)&&Ly(e.then)};function Ry(e,t,n,r){void 0===r&&(r=0);for(var a=ay(t);e&&r<a.length;)e=e[a[r++]];return r===a.length||e?void 0===e?n:e:n}function $y(e,t,n){for(var r=Wv(e),a=r,o=0,l=ay(t);o<l.length-1;o++){var i=l[o],s=Ry(e,l.slice(0,o+1));if(s&&(My(s)||Array.isArray(s)))a=a[i]=Wv(s);else{var u=l[o+1];a=a[i]=Ay(u)&&Number(u)>=0?[]:{}}}return(0===o?e:a)[l[o]]===n?e:(void 0===n?delete a[l[o]]:a[l[o]]=n,0===o&&void 0===n&&delete r[l[o]],r)}function Uy(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var a=0,o=Object.keys(e);a<o.length;a++){var l=o[a],i=e[l];My(i)?n.get(i)||(n.set(i,!0),r[l]=Array.isArray(i)?[]:{},Uy(i,t,n,r[l])):r[l]=t}return r}var Vy={},By={};function Wy(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,a=void 0===r||r,o=e.validateOnMount,l=void 0!==o&&o,i=e.isInitialValid,s=e.enableReinitialize,u=void 0!==s&&s,c=e.onSubmit,d=Fy(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Ny({validateOnChange:n,validateOnBlur:a,validateOnMount:l,onSubmit:c},d),p=K.useRef(f.initialValues),h=K.useRef(f.initialErrors||Vy),m=K.useRef(f.initialTouched||By),g=K.useRef(f.initialStatus),v=K.useRef(!1),y=K.useRef({});K.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var b=K.useState(0)[1],x=K.useRef({values:Av(f.initialValues),errors:Av(f.initialErrors)||Vy,touched:Av(f.initialTouched)||By,status:Av(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),w=x.current,k=K.useCallback(function(e){var t=x.current;x.current=function(e,t){switch(t.type){case"SET_VALUES":return Ny({},e,{values:t.payload});case"SET_TOUCHED":return Ny({},e,{touched:t.payload});case"SET_ERRORS":return Bv(e.errors,t.payload)?e:Ny({},e,{errors:t.payload});case"SET_STATUS":return Ny({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ny({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ny({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ny({},e,{values:$y(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ny({},e,{touched:$y(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ny({},e,{errors:$y(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ny({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ny({},e,{touched:Uy(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ny({},e,{isSubmitting:!1});default:return e}}(t,e),t!==x.current&&b(function(e){return e+1})},[]),S=K.useCallback(function(e,t){return new Promise(function(n,r){var a=f.validate(e,t);null==a?n(Vy):Dy(a)?a.then(function(e){n(e||Vy)},function(e){r(e)}):n(a)})},[f.validate]),E=K.useCallback(function(e,t){var n=f.validationSchema,r=Ly(n)?n(t):n,a=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=Qy(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){a.then(function(){e(Vy)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return $y(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}var l=o;Ry(t,l.path)||(t=$y(t,l.path,l.message))}}return t}(n)):t(n)})})},[f.validationSchema]),_=K.useCallback(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),j=K.useCallback(function(e){var t=Object.keys(y.current).filter(function(e){return Ly(y.current[e].validate)}),n=t.length>0?t.map(function(t){return _(t,Ry(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=$y(e,t[r],n)),e},{})})},[_]),C=K.useCallback(function(e){return Promise.all([j(e),f.validationSchema?E(e):{},f.validate?S(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return fm.all([t,n,r],{arrayMerge:qy})})},[f.validate,f.validationSchema,j,S,E]),O=Gy(function(e){return void 0===e&&(e=w.values),k({type:"SET_ISVALIDATING",payload:!0}),C(e).then(function(e){return v.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})});K.useEffect(function(){l&&!0===v.current&&Bv(p.current,f.initialValues)&&O(p.current)},[l,O]);var T=K.useCallback(function(e){var t=e&&e.values?e.values:p.current,n=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:f.initialTouched||{},a=e&&e.status?e.status:g.current?g.current:f.initialStatus;p.current=t,h.current=n,m.current=r,g.current=a;var o=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var l=f.onReset(w.values,Z);Dy(l)?l.then(o):o()}else o()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);K.useEffect(function(){!0!==v.current||Bv(p.current,f.initialValues)||u&&(p.current=f.initialValues,T(),l&&O(p.current))},[u,f.initialValues,T,l,O]),K.useEffect(function(){u&&!0===v.current&&!Bv(h.current,f.initialErrors)&&(h.current=f.initialErrors||Vy,k({type:"SET_ERRORS",payload:f.initialErrors||Vy}))},[u,f.initialErrors]),K.useEffect(function(){u&&!0===v.current&&!Bv(m.current,f.initialTouched)&&(m.current=f.initialTouched||By,k({type:"SET_TOUCHED",payload:f.initialTouched||By}))},[u,f.initialTouched]),K.useEffect(function(){u&&!0===v.current&&!Bv(g.current,f.initialStatus)&&(g.current=f.initialStatus,k({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var N=Gy(function(e){if(y.current[e]&&Ly(y.current[e].validate)){var t=Ry(w.values,e),n=y.current[e].validate(t);return Dy(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),E(w.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:Ry(t,e)}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),F=K.useCallback(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),P=K.useCallback(function(e){delete y.current[e]},[]),z=Gy(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?O(w.values):Promise.resolve()}),L=K.useCallback(function(e){k({type:"SET_ERRORS",payload:e})},[]),M=Gy(function(e,t){var r=Ly(e)?e(w.values):e;return k({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?O(r):Promise.resolve()}),A=K.useCallback(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=Gy(function(e,t,r){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?O($y(w.values,e,t)):Promise.resolve()}),D=K.useCallback(function(e,t){var n,r=t,a=e;if(!Iy(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,l=o.type,i=o.name,s=o.id,u=o.value,c=o.checked;o.outerHTML;var d=o.options,f=o.multiple;r=t||(i||s),a=/number|range/.test(l)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(l)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,a=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!a)return r.concat(n);if(!a)return r;return r.slice(0,o).concat(r.slice(o+1))}(Ry(w.values,r),c,u):d&&f?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):u}r&&I(r,a)},[I,w.values]),R=Gy(function(e){if(Iy(e))return function(t){return D(t,e)};D(e)}),$=Gy(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?O(w.values):Promise.resolve()}),U=K.useCallback(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,a=n.id;n.outerHTML,$(t||(r||a),!0)},[$]),V=Gy(function(e){if(Iy(e))return function(t){return U(t,e)};U(e)}),B=K.useCallback(function(e){Ly(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),W=K.useCallback(function(e){k({type:"SET_STATUS",payload:e})},[]),H=K.useCallback(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),Q=Gy(function(){return k({type:"SUBMIT_ATTEMPT"}),O().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=G()))return}catch(r){throw r}return Promise.resolve(n).then(function(e){return v.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(v.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(v.current&&(k({type:"SUBMIT_FAILURE"}),t))throw e})}),q=Gy(function(e){e&&e.preventDefault&&Ly(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Ly(e.stopPropagation)&&e.stopPropagation(),Q().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),Z={resetForm:T,validateForm:O,validateField:N,setErrors:L,setFieldError:A,setFieldTouched:$,setFieldValue:I,setStatus:W,setSubmitting:H,setTouched:z,setValues:M,setFormikState:B,submitForm:Q},G=Gy(function(){return c(w.values,Z)}),Y=Gy(function(e){e&&e.preventDefault&&Ly(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Ly(e.stopPropagation)&&e.stopPropagation(),T()}),J=K.useCallback(function(e){return{value:Ry(w.values,e),error:Ry(w.errors,e),touched:!!Ry(w.touched,e),initialValue:Ry(p.current,e),initialTouched:!!Ry(m.current,e),initialError:Ry(h.current,e)}},[w.errors,w.touched,w.values]),X=K.useCallback(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return $(e,t,n)},setError:function(t){return A(e,t)}}},[I,$,A]),ee=K.useCallback(function(e){var t=My(e),n=t?e.name:e,r=Ry(w.values,n),a={name:n,value:r,onChange:R,onBlur:V};if(t){var o=e.type,l=e.value,i=e.as,s=e.multiple;"checkbox"===o?void 0===l?a.checked=!!r:(a.checked=!(!Array.isArray(r)||!~r.indexOf(l)),a.value=l):"radio"===o?(a.checked=r===l,a.value=l):"select"===i&&s&&(a.value=a.value||[],a.multiple=!0)}return a},[V,R,w.values]),te=K.useMemo(function(){return!Bv(p.current,w.values)},[p.current,w.values]),ne=K.useMemo(function(){return void 0!==i?te?w.errors&&0===Object.keys(w.errors).length:!1!==i&&Ly(i)?i(f):i:w.errors&&0===Object.keys(w.errors).length},[i,te,w.errors,f]);return Ny({},w,{initialValues:p.current,initialErrors:h.current,initialTouched:m.current,initialStatus:g.current,handleBlur:V,handleChange:R,handleReset:Y,handleSubmit:q,resetForm:T,setErrors:L,setFormikState:B,setFieldTouched:$,setFieldValue:I,setFieldError:A,setStatus:W,setSubmitting:H,setTouched:z,setValues:M,submitForm:Q,validateForm:O,validateField:N,isValid:ne,dirty:te,unregisterField:P,registerField:F,getFieldProps:ee,getFieldMeta:J,getFieldHelpers:X,validateOnBlur:a,validateOnChange:n,validateOnMount:l})}function Hy(e){var t=Wy(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return K.useImperativeHandle(o,function(){return t}),K.createElement(zy,{value:t},n?K.createElement(n,t):a?a(t):r?Ly(r)?r(t):function(e){return 0===K.Children.count(e)}(r)?null:K.Children.only(r):null)}function Qy(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||Pm(e)?Qy(e):""!==e?e:void 0}):Pm(e[r])?t[r]=Qy(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function qy(e,t,n){var r=e.slice();return t.forEach(function(t,a){if(void 0===r[a]){var o=!1!==n.clone&&n.isMergeableObject(t);r[a]=o?fm(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[a]=fm(e[a],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var Zy="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?K.useLayoutEffect:K.useEffect;function Gy(e){var t=K.useRef(e);return Zy(function(){t.current=e}),K.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}var Ky=K.forwardRef(function(e,t){var n=e.action,r=Fy(e,["action"]),a=null!=n?n:"#",o=K.useContext(Py),l=o.handleReset,i=o.handleSubmit;return K.createElement("form",Ny({onSubmit:i,ref:t,onReset:l,action:a},r))});Ky.displayName="Form";const Yy=({setIsFormVisible:e})=>{const t=K.useRef(null),{selectedSkill:n,callSkill:r,callSkillState:a,setLastFormValues:o,agentSkillErrors:l,resetCallSkill:u}=om(),d=(f=(null==n?void 0:n.inputsTypes)||[],ep().shape(f.reduce((e,t)=>{let n;switch(t.type){case"String":case"Text":default:n=Uf();break;case"Number":n=Bf();break;case"Binary":n=Uf().matches(/^(https?:\/\/[^\s/$.?#].[^\s]*|ftp:\/\/[^\s/$.?#].[^\s]*|data:[a-zA-Z]+\/[a-zA-Z0-9.-]+;base64,[^\s]+)$/,"Invalid URL");break;case"Image":n=Uf().matches(/^(https?:\/\/[^\s/$.?#].[^\s]*\.(?:jpg|jpeg|png|gif|bmp|webp|svg|tiff|tif|ico|heic|heif|avif)(?:\?[^\s]*)?|data:image\/[a-zA-Z]+;base64,[^\s]+)$/,"Invalid image URL");break;case"Audio":n=Uf().matches(/^(https?:\/\/[^\s/$.?#].[^\s]*\.(?:mp3|wav|flac|aac|ogg|m4a|wma|aiff|alac|opus)(?:\?[^\s"']*)?|data:audio\/[a-zA-Z0-9.-]+;base64,[^\s]+)$/,"Invalid audio URL");break;case"Video":n=Uf().matches(/^(https?:\/\/[^\s/$.?#].[^\s]*\.(?:mp4|mkv|mov|avi|wmv|flv|webm|m4v|3gp|ogg|ts|m3u8)(?:\?[^\s"']*)?|data:video\/[a-zA-Z0-9.-]+;base64,[^\s]+)$/,"Invalid video URL")}return t.optional||(n=n.required(`${t.name} is required`)),s(i({},e),{[t.name]:n})},{})));var f;K.useEffect(()=>{!a.isLoading&&l.length>0&&e(!0)},[a.isLoading,l]),K.useEffect(()=>{t.current&&t.current.focus()},[t]);const p=null==n?void 0:n.inputsTypes.reduce((e,t)=>{var r;return s(i({},e),{[t.name]:(null==(r=null==n?void 0:n.autoFillDataJson)?void 0:r[t.name])||""})},{});return oe.jsxs("div",{className:"pt-6",children:[oe.jsx(Hy,{initialValues:p,validationSchema:d,onSubmit:(t,n)=>c(this,[t,n],function*(t,{}){u(),e(!1);try{yield r(t),o(t)}catch(n){o(t)}}),enableReinitialize:!0,children:({setFieldValue:e,values:r,errors:o,handleChange:s,handleBlur:u,touched:c})=>oe.jsxs(Ky,{className:"flex flex-col gap-6",children:[oe.jsx("div",{className:"grid grid-cols-1 gap-4",children:null==n?void 0:n.inputsTypes.map(t=>oe.jsxs("div",{className:"flex flex-col gap-2.5",children:[oe.jsxs("label",{className:"text-sm font-normal text-gray-700 leading-5",children:[t.name," ",t.optional?"":oe.jsx("span",{className:"text-red-500",children:"*"})]}),oe.jsx("div",{className:"relative",children:oe.jsx(nm,i({placeholder:"value",input:t,error:o[t.name]&&c[t.name]&&"string"==typeof o[t.name]&&o[t.name],value:r[t.name]||"",onChange:s,onBlur:u,onFocus:e=>{var a;r[t.name]===(null==(a=null==n?void 0:n.autoFillDataJson)?void 0:a[t.name])&&e.target.select()},fileOps:{inputVersion:"v2",onChange:n=>{e(t.name,n)}}},t))})]},t.name))}),oe.jsx("div",{className:"flex justify-end pt-2",children:oe.jsx(lm,{type:"submit",className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2.5 rounded-lg font-normal text-base leading-6 h-12",disabled:a.isLoading||l.length>0,btnRef:t,label:"Submit",dataAttributes:{"data-test":"form-preview-run-button"}})})]})}),l.length>0&&oe.jsx("div",{className:"flex flex-col gap-2 mt-6",children:l.map(e=>oe.jsx("div",{className:"text-gray-500 text-sm",children:e.error_message},e.error_slug))})]})};function Jy(e){return Ed({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(e)}function Xy(e){return Ed({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"},child:[]}]})(e)}const eb=({asset:e})=>{var t;const{agentData:n}=om(),[r,a]=K.useState({isContentLoaded:!1,fileType:""}),[o,l]=K.useState(!1),u=()=>{a(s(i({},r),{isContentLoaded:!0}))};let d;switch(K.useEffect(()=>{!function(e){c(this,null,function*(){try{const n=yield np(e.trim());if(!n.mimetype)return void a(e=>s(i({},e),{isContentLoaded:!0}));let r=((t=n.mimetype)?t.startsWith("image/")?"image":t.startsWith("audio/")?"audio":t.startsWith("video/")?"video":t.startsWith("text/")?"text":t.startsWith("application/")?t.split("/")[1]:"other":"unknown")||"";a(e=>s(i({},e),{fileType:r}))}catch(n){console.error(n)}var t})}(e)},[e]),r.fileType){case"image":d=oe.jsx("div",{children:oe.jsx("img",{src:e,className:"max-w-full m-auto rounded-lg",onError:u,onLoad:u})});break;case"audio":d=oe.jsx("audio",{controls:!0,crossOrigin:"anonymous",src:e,className:"max-w-full m-auto",onError:u,onCanPlay:u});break;case"video":d=oe.jsxs("video",{controls:!0,className:"max-w-full m-auto",onError:u,onCanPlay:u,children:[oe.jsx("source",{src:e,type:"video/mp4"}),"Your browser does not support the video tag."]});break;case"pdf":d=oe.jsx("embed",{src:e+"#toolbar=0",type:"application/pdf",className:"w-full h-[80vh]",onError:u,onLoad:u});break;default:d=oe.jsx("div",{className:"text-center",children:oe.jsx("a",{href:e,target:"_blank",download:!0,className:"btn btn-primary fallback-file-download-link font-medium text-blue-600 dark:text-blue-500 hover:underline",children:"Download File"})})}return oe.jsxs("div",{className:"mt-5 relative",children:[!r.isContentLoaded&&oe.jsx("div",{className:"h-1 mt-1",children:oe.jsx("div",{className:"progress line small"})}),oe.jsx("div",{className:`mt-4 transition-opacity duration-300 ${!r.isContentLoaded&&"opacity-0"}`,children:d}),!(null==(t=null==n?void 0:n.data)?void 0:t.outputPreview)&&oe.jsxs("div",{className:"mt-5 relative",children:[oe.jsx(Yh,{color:"white",name:"rawContent",type:"text",defaultValue:e,readOnly:!0,theme:{field:{input:{base:"block w-full border focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 border-gray-200 focus:border-blue-500 focus:ring-blue-500"}}}}),oe.jsx("div",{className:"absolute right-2 flex gap-2 top-1/2 -translate-y-1/2",children:oe.jsx("span",{onClick:()=>{navigator.clipboard.writeText(e),l(!0)},onMouseLeave:()=>{l(!1)},className:"cursor-pointer rounded-lg p-2 h-full flex items-center text-sm border border-solid border-gray-200 bg-gray-50 text-gray-900 group",children:o?oe.jsx(Jy,{}):oe.jsx(Xy,{className:"opacity-50 group-hover:opacity-100 transition-opacity"})})})]})]})},tb=()=>{var e,t,n,r;const{callSkillState:a,lastResponse:o,mode:l,agentSkillErrors:i,isWidget:s,agentData:u}=om(),[c,d]=K.useState(!1),f=K.useRef(null),p=`https://app.smythos.${(null==(e=l.props.domain)?void 0:e.includes("stage"))?"dev":"com"}/dbg`;function h(e){return"string"==typeof e?e:JSON.stringify(e,null,2)}const m=K.useMemo(()=>h(null==o?void 0:o.response)||"",[o]),g=K.useMemo(()=>{var e,t,n,r;if((null==(e=null==o?void 0:o.response)?void 0:e.result)&&"Output"in(null==(t=null==o?void 0:o.response)?void 0:t.result)){const e=null==(r=null==(n=null==o?void 0:o.response)?void 0:n.result)?void 0:r.Output;let t="";return""===e?t="[empty string]":null===e?t="[null]":(t="string"!=typeof e?JSON.stringify(e,null,2):e,t=t.replace(/\\n/g,"\n")),t||""}return h(null==o?void 0:o.response)||""},[o]),v=K.useMemo(()=>(null==o?void 0:o.response)?(e=>{var t,n;const r=(null==(n=null==(t=e.match(/\b(?:https?|ftp):\/\/[^\s/$.?#].[^\s]*(?:\.(?:jpg|jpeg|png|gif|bmp|webp|svg|mp3|wav|flac|aac|mp4|mkv|mov|avi|webm|ogg|m4a|m4v|m3u8|ts|wmv))(?:\?[^\s"']*)?\b|\bsmythfs:\/\/[^\s/$.?#].[^\s"']*\b/g))?void 0:t.map(e=>e.trim()))?void 0:n.map(e=>e.startsWith("smythfs://")?`${p}/file-proxy?url=${e}`:e))||[];return[...new Set(r)]})(m):[],[o]);return K.useEffect(()=>{f.current&&(f.current.style.height="auto",f.current.style.height=Math.min(f.current.scrollHeight,400)+"px")},[f]),oe.jsxs("div",{className:"space-y-6 "+(s?"":"mt-4"),children:[i.length>0&&oe.jsx("div",{className:"bg-white rounded-lg p-6 "+(s?"":"border border-gray-200"),children:oe.jsx("div",{className:"flex flex-col gap-2",children:i.map(e=>oe.jsx("div",{className:"text-gray-500 text-sm",children:e.error_message},e.error_slug))})}),o&&oe.jsx("div",{className:"bg-white rounded-lg p-6 "+(s?"":"border border-gray-200"),children:oe.jsxs("div",{className:"text-sm text-gray-700 leading-6",children:[v.map(e=>oe.jsx(eb,{asset:e},e)),oe.jsxs("div",{className:"mt-2 relative",children:[oe.jsx(tm,{ref:f,color:"light",readOnly:!0,className:"text-gray-800 resize-none border-gray-200 focus:border-blue-500 focus:ring-blue-500",defaultValue:g,rows:30}),!(null==(t=null==u?void 0:u.data)?void 0:t.outputPreview)&&oe.jsxs("div",{className:"flex gap-2 absolute top-2 right-2",children:[oe.jsx("span",{onClick:()=>{const e=new Blob([g],{type:"text/plain"}),t=URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download="output.txt",n.click()},className:"cursor-pointer rounded-lg p-2 h-full flex items-center text-sm border border-solid border-gray-200 bg-gray-50 text-gray-900 group",children:oe.jsx(ap,{className:"opacity-50 group-hover:opacity-100 transition-opacity"})}),oe.jsx("span",{onClick:()=>{navigator.clipboard.writeText(g),d(!0)},onMouseLeave:()=>{d(!1)},className:"cursor-pointer rounded-lg p-2 h-full flex items-center text-sm border border-solid border-gray-200 bg-gray-50 text-gray-900 group",children:c?oe.jsx(Jy,{}):oe.jsx(Xy,{className:"opacity-50 group-hover:opacity-100 transition-opacity"})})]})]})]})}),a.isError&&oe.jsxs("div",{className:"bg-white rounded-lg p-6 "+(s?"":"border border-gray-200"),children:[oe.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Error"}),oe.jsx("div",{className:"text-gray-700",children:"string"==typeof(null==(n=null==a?void 0:a.error)?void 0:n.error)?null==(r=null==a?void 0:a.error)?void 0:r.error:"We encountered an error while processing your request. Please try again later."})]})]})};function nb(e){return Ed({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},child:[]}]})(e)}function rb(e){return oe.jsxs("svg",{className:`mr-4 ${e.className}`,width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[oe.jsx("g",{clipPath:"url(#clip0_15811_12327)",children:oe.jsx("g",{clipPath:"url(#clip1_15811_12327)",children:oe.jsx("path",{d:"M4.948 2.89844L16.0007 10.0037L4.948 17.109V2.89844Z",stroke:"#374151",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),oe.jsxs("defs",{children:[oe.jsx("clipPath",{id:"clip0_15811_12327",children:oe.jsx("rect",{width:"20",height:"20",fill:"#374151"})}),oe.jsxs("clipPath",{id:"clip1_15811_12327",children:[oe.jsx("rect",{width:"20",height:"20",fill:"#374151"}),"s"]})]})]})}const ab=({showBackButton:e=!0,onBackButtonClick:t})=>{const[n,r]=K.useState(!0),[a,o]=K.useState("auto"),l=K.useRef(null),{selectedSkill:i,callSkillState:s,resetCallSkill:u,view:c,setView:d,abortController:f,isWidget:p}=om();return K.useEffect(()=>{o(n?"auto":0)},[n,null==i?void 0:i.inputsTypes]),K.useEffect(()=>{(s.isSuccess||s.isError)&&d("view_response")},[s.isSuccess,s.isError]),oe.jsxs("div",{className:"w-full max-w-[600px] mx-auto",children:[!p&&oe.jsx("div",{className:"flex items-center justify-center mb-8",children:oe.jsx(hd,{width:64,height:64})}),e&&oe.jsxs("button",{onClick:t,className:"mb-8 cursor-pointer flex items-center gap-2 text-blue-600 hover:text-blue-700 transition-colors",children:[oe.jsx(jd,{className:"w-4 h-4"})," Skills List"]}),oe.jsx("div",{className:`${s.isLoading&&"hidden"}`,children:oe.jsxs("div",{className:"bg-white rounded-lg p-6 "+(p?"":"border border-gray-200"),children:[oe.jsxs("button",{onClick:()=>{"view_response"===c&&r(!n)},className:`flex items-center justify-between w-full ${"view_response"!==c&&"cursor-default pointer-events-none"}`,children:[oe.jsx("h3",{className:"text-xl font-semibold text-gray-900 leading-7 tracking-[-0.025em]",children:null==i?void 0:i.details.name}),"view_response"===c&&oe.jsx("svg",{className:"w-6 h-6 transition-transform duration-200 text-gray-600 "+(n?"rotate-180":""),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:oe.jsx("path",{d:"M19 9l-7 7-7-7"})})]}),oe.jsx("div",{ref:l,className:"transition-all duration-200",style:{height:"number"==typeof a?`${a}px`:a,opacity:"auto"===a?1:0},children:(null==i?void 0:i.inputsTypes)&&oe.jsx(Yy,{setIsFormVisible:r})})]})}),i&&s.isLoading&&oe.jsx("div",{className:"mt-6",children:oe.jsx("div",{className:"bg-white rounded-lg p-6 "+(p?"":"border border-gray-200"),children:oe.jsxs("div",{className:"flex items-center justify-between "+(p?"flex-col":"flex-row"),children:[oe.jsxs("div",{className:"flex items-center gap-4",children:[oe.jsx(rb,{className:"w-16 h-16"}),oe.jsxs("div",{className:"flex flex-col",children:[oe.jsx("h4",{className:"font-bold text-gray-900 text-sm",children:null==i?void 0:i.details.name}),oe.jsx("p",{className:"text-gray-500 text-xs",children:null==i?void 0:i.details.description})]})]}),oe.jsxs("div",{className:"flex items-center gap-2 text-gray-500 "+(p?"mt-4":""),children:[oe.jsx("span",{className:"text-sm",children:"Processing..."}),oe.jsx(nb,{className:"animate-spin",size:18})]})]})})}),s.isLoading&&oe.jsx("div",{className:""+(p?"m-4":"my-4"),children:oe.jsx("button",{onClick:()=>{var e;null==(e=f.current)||e.abort(),u(),d("form"),r(!0)},className:"bg-transparent font-bold border border-gray-300 text-gray-500 px-4 py-3 rounded-md w-full hover:bg-gray-50 transition-colors",children:"Stop Testing"})}),p&&"view_response"===c&&!s.isLoading&&oe.jsx("hr",{}),"view_response"===c&&oe.jsx(tb,{})]})},ob=({classes:e,size:t="md"})=>oe.jsxs(oe.Fragment,{children:[oe.jsxs("svg",{"aria-hidden":"true",className:"inline text-gray-200 animate-spin dark:text-gray-600 fill-v2-blue "+(e?" "+e:" "+{sm:"w-4 h-4 mr-2",md:"w-8 h-8 mr-2",lg:"w-12 h-12 mr-2"}[t]),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[oe.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),oe.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),oe.jsx("span",{className:"sr-only",children:"Loading..."})]}),lb=()=>{const e=om(),{availableSkills:t,mode:n,isWidget:r}=e,[a,o]=K.useState(null),[l,i]=K.useState(!1),[s,u]=K.useState(!0),c=K.useCallback(n=>{i(!0);try{const r=t.find(e=>e.skillId===n);if(!r)throw new Error("Skill not found in available skills");e.resetCallSkill(),e.setSelectedSkill({skillId:r.skillId,inputsTypes:r.inputsTypes,formData:{},details:r.details,autoFillDataJson:r.autoFillDataJson}),i(!1)}catch(r){i(!1),console.error("Failed to set selected skill:",r)}},[t,e]),d=K.useCallback(e=>{var r;try{const a=t.find(t=>t.skillId===e)||null;o(a);const l=document.getElementById(e);if(!l)return;null==(r=n.props.workspace)||r.scrollToComponent(l)}catch(a){console.error("Failed to scroll to skill:",a)}},[t,n.props.workspace]),f=K.useCallback(()=>{},[]);return K.useEffect(()=>{o((null==t?void 0:t[0])||null),1===t.length&&!e.selectedSkill&&s&&(c(t[0].skillId),u(!1))},[t,e.selectedSkill,s]),K.useEffect(()=>{var e;return null==(e=n.props.workspace)||e.addEventListener("AgentSaved",f),()=>{var e;null==(e=n.props.workspace)||e.removeEventListener("AgentSaved",f)}},[n]),K.useEffect(()=>{var n,r;if(1===t.length&&!e.selectedSkill){const n=t[0];e.setSelectedSkill({skillId:n.skillId,inputsTypes:n.inputsTypes,formData:{},details:n.details,autoFillDataJson:n.autoFillDataJson})}const a=document.getElementById("embodiment-sidebar-title");a&&e.selectedSkill&&(a.textContent=(null==(r=null==(n=e.selectedSkill)?void 0:n.details)?void 0:r.name)||"Agent Skills")},[t,e.selectedSkill]),oe.jsx("div",{className:"endpoint-form-preview-sidebar "+(r?"":"min-h-screen bg-gray-50"),children:l?oe.jsx("div",{className:"flex justify-center items-center h-full",children:oe.jsx(ob,{})}):e.selectedSkill&&t.length>0?oe.jsx(ab,{showBackButton:t.length>1,onBackButtonClick:()=>e.setSelectedSkill(null)}):0===t.length?oe.jsx("div",{className:"flex justify-center items-center p-6",children:oe.jsx("div",{className:"bg-white rounded-lg border border-gray-200 p-6 text-center max-w-md",children:oe.jsx("div",{className:"text-gray-600 py-4",children:oe.jsxs("p",{children:[oe.jsx("b",{children:"No testable skills available."}),oe.jsx("br",{}),"Please add skills to your agent and configure inputs to test."]})})})}):oe.jsx("div",{className:"flex justify-center items-center p-6",children:oe.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 max-w-md",children:[oe.jsx("p",{className:"pb-4 text-gray-700",children:"Select one of your agent's skills from the list, then click Test."}),oe.jsxs("div",{className:"flex gap-3",children:[oe.jsx("select",{className:"h-9 w-full bg-white border text-gray-900 rounded block outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 focus:ring-shadow-none text-sm font-normal placeholder:text-sm placeholder:font-normal px-[10px] border-gray-300 border-b-gray-500 focus:border-b-2 focus:border-b-blue-500 focus-visible:border-b-2 focus-visible:border-b-blue-500 appearance-none cursor-pointer",value:null==a?void 0:a.skillId,onChange:e=>d(e.target.value),children:t.map(e=>oe.jsx("option",{value:e.skillId,className:"py-2",children:e.details.name},e.skillId))}),oe.jsx(lm,{handleClick:()=>c((null==a?void 0:a.skillId)||""),disabled:!a,className:"bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg",children:"Test"})]})]})})})};function ib(e){var t;const{domain:n,widget:r=!0}=e,a=null!=(t=new URLSearchParams(n.includes("?")?n.split("?")[1]:"").get("endpointId"))?t:"",[o,l]=K.useState(!1),{agentData:i,fetchAgentData:s,availableSkills:u,setIsWidget:c,selectedSkill:d}=om(),f=K.useRef(null);K.useEffect(()=>{if(n&&!i.isLoading&&!i.isSuccess&&!i.isError&&a){const e=n.includes("?")?n.split("?")[0]:n;s(e,a).catch(e=>{console.error("Failed to fetch agent data:",e)})}},[n,s,a]),K.useEffect(()=>{c(r)},[r]),K.useEffect(()=>{o&&d&&f.current&&f.current.scrollTo({top:0,behavior:"smooth"})},[o,d]);const p=()=>n&&a?i.isLoading?oe.jsx("div",{className:"flex items-center justify-center h-full mt-4",children:oe.jsxs("div",{className:"text-center",children:[oe.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-blue-500 mx-auto mb-3"}),oe.jsx("p",{className:"text-gray-600 text-sm",children:"Preparing form preview..."})]})}):i.isError?oe.jsx("div",{className:"flex items-center justify-center h-full mt-4",children:oe.jsxs("div",{className:"text-center",children:[oe.jsx("h1",{className:"text-lg font-bold text-red-600 mb-2",children:i.isCorError?"Authorization Error":"Error"}),(null==i?void 0:i.isCorError)?oe.jsx("p",{className:"text-gray-600 text-sm",children:"This form is not authorized for this domain"}):oe.jsx("p",{className:"text-gray-600 text-sm",children:i.error instanceof Error?i.error.message:"Failed to load agent data"})]})}):i.data?oe.jsx("div",{children:0===u.length?oe.jsxs("div",{className:"text-center py-12",children:[oe.jsx("div",{className:"mb-4 w-12 h-12 text-v2-gray-dark text-center mx-auto",children:oe.jsxs("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[oe.jsx("g",{clipPath:"url(#clip0_15811_12327)",children:oe.jsx("g",{clipPath:"url(#clip1_15811_12327)",children:oe.jsx("path",{d:"M4.948 2.89844L16.0007 10.0037L4.948 17.109V2.89844Z",stroke:"#374151",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),oe.jsxs("defs",{children:[oe.jsx("clipPath",{id:"clip0_15811_12327",children:oe.jsx("rect",{width:"20",height:"20",fill:"#374151"})}),oe.jsxs("clipPath",{id:"clip1_15811_12327",children:[oe.jsx("rect",{width:"20",height:"20",fill:"#374151"}),"s"]})]})]})}),oe.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No Testable Skills"}),oe.jsx("p",{className:"text-gray-600",children:"This agent doesn't have any skills with configured inputs that can be tested."})]}):oe.jsx(lb,{})}):oe.jsx("div",{className:"flex items-center justify-center h-full mt-4",children:oe.jsxs("div",{className:"text-center",children:[oe.jsx("h1",{className:"text-lg font-bold text-red-600 mb-2",children:"Not Found"}),oe.jsx("p",{className:"text-gray-600 text-sm",children:"Agent not found"})]})}):oe.jsx("div",{className:"flex items-center justify-center h-full mt-4",children:oe.jsxs("div",{className:"text-center",children:[oe.jsx("h1",{className:"text-2xl font-bold text-red-600 mb-4",children:"Error"}),oe.jsxs("p",{className:"text-gray-600",children:[n?"Endpoint ID":"Domain"," is required"]})]})});return r?oe.jsxs(oe.Fragment,{children:[oe.jsxs("div",{className:"fixed bottom-6 right-6 z-50 w-[380px] h-[560px] rounded-2xl shadow-xl border bg-white overflow-hidden flex flex-col transform transition-all duration-300 ease-out origin-bottom-right "+(o?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-4 pointer-events-none"),children:[oe.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b",children:[oe.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center text-white font-semibold",children:oe.jsx(hd,{})}),oe.jsx("button",{type:"button",onClick:()=>l(!1),className:"ml-auto p-1 rounded hover:bg-gray-100","aria-label":"Minimize",children:oe.jsx("svg",{className:"w-5 h-5 text-gray-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:oe.jsx("path",{d:"M5 12h14"})})})]}),oe.jsx("div",{className:"flex-1 overflow-auto "+(r?"p-1":"p-4"),ref:f,children:oe.jsx("div",{children:p()})})]}),oe.jsx("button",{type:"button",onClick:()=>l(!0),className:"fixed bottom-6 right-6 z-50 w-14 h-14 rounded-full bg-emerald-100 shadow-xl text-white flex items-center justify-center transform transition-all duration-300 ease-out "+(o?"opacity-0 scale-75 translate-y-4 pointer-events-none":"opacity-100 scale-100 translate-y-0"),"aria-label":"Open widget",children:oe.jsx(hd,{})})]}):oe.jsx("div",{className:"min-h-screen bg-gray-50",children:oe.jsx("div",{className:"container mx-auto px-4 py-8",children:p()})})}function sb(e){const{domain:t}=e,n={name:"embed",props:{agentId:"",domain:t,dbg_url:"",defaultSkill:{skillId:"",inputsTypes:[],autoFillDataJson:{},details:{name:"",description:"",endpoint:"",method:"POST"}},getAvailableSkills:()=>[]}};return oe.jsx(am,{mode:n,children:oe.jsx(ib,i({},e))})}const ub="form-preview-container";window.FormPreview={init:e=>{if(!document.getElementById(ub)){const e=document.createElement("div");e.id=ub,document.body.appendChild(e)}(e=>{const t=document.getElementById(ub);if(!t)throw new Error("Root element not found");le.createRoot(t).render(oe.jsx(sb,i({},e)))})(e)}}});