@gup-fe/js-sdk 2.1.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,370 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(`._Viewport_ai81v_1{position:fixed;width:100%;max-width:300px;margin:0 auto;top:1rem;right:0;left:0;bottom:auto;z-index:999}._Toast_ai81v_14{--gap: .75rem;--peek: .75rem;--scale: max(0, 1 - (var(--toast-index) * .1)) ;--shrink: calc(1 - var(--scale));--height: var(--toast-frontmost-height, var(--toast-height));--offset-y: calc( var(--toast-offset-y) + (var(--toast-index) * var(--gap)) + var(--toast-swipe-movement-y) );position:absolute;box-sizing:border-box;background:var(--color-gray-50);color:var(--color-gray-900);border:1px solid var(--color-gray-200);padding:1rem;width:100%;box-shadow:0 2px 10px #0000001a;background-clip:padding-box;border-radius:.5rem;transform-origin:top center;top:0;left:0;right:0;margin:0 auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s;cursor:default;z-index:calc(1000 - var(--toast-index));height:var(--height);transform:translate(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) + (var(--toast-index) * var(--peek)) + (var(--shrink) * var(--height)))) scale(var(--scale))}._Toast_ai81v_14[data-expanded]{transform:translate(var(--toast-swipe-movement-x)) translateY(var(--offset-y));height:var(--toast-height)}._Toast_ai81v_14[data-starting-style],._Toast_ai81v_14[data-ending-style]{transform:translateY(-150%)}._Toast_ai81v_14[data-limited],._Toast_ai81v_14[data-ending-style]{opacity:0}._Toast_ai81v_14[data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=left]{transform:translate(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=right]{transform:translate(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y))}._Toast_ai81v_14[data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}._Toast_ai81v_14:after{content:"";position:absolute;width:100%;bottom:100%;left:0;height:calc(var(--gap) + 1px)}._Content_ai81v_99{overflow:hidden;transition:opacity .25s}._Content_ai81v_99[data-behind]{opacity:0}._Content_ai81v_99[data-expanded]{opacity:1}._Title_ai81v_112{font-weight:500;font-size:.975rem;line-height:1.25rem;margin:0}._Description_ai81v_119{font-size:.925rem;line-height:1.25rem;margin:0}._Close_ai81v_125{position:absolute;top:.5rem;right:.5rem;padding:0;border:none;background:transparent;width:1.25rem;height:1.25rem;display:flex;align-items:center;justify-content:center;border-radius:.25rem}._Close_ai81v_125:hover{background-color:var(--color-gray-100)}._Icon_ai81v_144{width:1rem;height:1rem}._trigger_ltbvo_1{display:flex;height:100%;width:4rem;align-items:center;justify-content:center;gap:.25rem;border-right-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}._popup_ltbvo_5{width:20rem;overflow-y:auto;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1));--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);max-height:var(--available-height);transform-origin:var(--transform-origin);transition:transform .2s ease,opacity .2s ease}._popup_ltbvo_5[data-starting-style],._popup_ltbvo_5[data-ending-style]{opacity:0;transform:scale(.95)}._popup_ltbvo_5[data-side=none][data-starting-style]{transform:scale(1);opacity:1}._item_ltbvo_24{display:grid;min-width:var(--anchor-width);cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;grid-template-columns:.75rem 1fr;align-items:center;gap:.5rem;border-bottom-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._item_ltbvo_24:last-child{border-bottom-width:0px}._item_ltbvo_24:first-of-type{border-top-left-radius:1rem;border-top-right-radius:1rem}._item_ltbvo_24:last-of-type{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}._item_ltbvo_24[data-highlighted]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(120 155 245 / var(--tw-text-opacity, 1))}._indicator_ltbvo_40{grid-column-start:1}._itemText_ltbvo_44{grid-column-start:2;display:flex;justify-content:space-between}._itemCode_ltbvo_48{font-weight:500}._itemLabel_ltbvo_52{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._uidGet_os9yc_1{width:80vw;max-width:400px;background-size:cover;background-position:center}._mailCodeGet_os9yc_5{width:100%;background-size:cover;background-position:center}.game-5174 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626145347721513.png);aspect-ratio:553 / 428}.game-5174 ._mailCodeGet_os9yc_5{aspect-ratio:680/1096}.game-5174 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626151631191610.png)}@media(min-width:1024px){.game-5174 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5174 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626144535531913.png)}}.game-5273 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250626142807783110.png);aspect-ratio:553 / 428}.game-5273 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1096;background-image:url(https://h5.sdk.mobileztgame.com/dist/role-tip-mobile.png)}@media(min-width:1024px){.game-5273 ._mailCodeGet_os9yc_5{aspect-ratio:1220/654}}@media(min-width:1024px){.game-5273 ._mailCodeGet_os9yc_5{background-image:url(https://h5.sdk.mobileztgame.com/dist/role-tip-pc.png)}}.game-5242 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624152217734019.png);aspect-ratio:596 / 266}.game-5242 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1094;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624132201121910.png)}@media(min-width:1024px){.game-5242 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5242 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250624143628881023.png)}}.game-5234 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811141956691626.png);aspect-ratio:740 / 290}.game-5234 ._mailCodeGet_os9yc_5{aspect-ratio:680 / 1094;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811142113377920.png)}@media(min-width:1024px){.game-5234 ._mailCodeGet_os9yc_5{aspect-ratio:1300/654}}@media(min-width:1024px){.game-5234 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/ipayact/250811142146601319.png)}}.game-5199 ._uidGet_os9yc_1{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319163303381734.png);aspect-ratio:541 / 431;border-radius:10px}.game-5199 ._mailCodeGet_os9yc_5{aspect-ratio:353 / 561;background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319160000001714.png)}@media(min-width:1024px){.game-5199 ._mailCodeGet_os9yc_5{aspect-ratio:677/323}}@media(min-width:1024px){.game-5199 ._mailCodeGet_os9yc_5{background-image:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319153435571035.png)}}.game-5199 input{color:#dfd9c6}.game-5199 input::-moz-placeholder{color:#70625e}.game-5199 input::placeholder{color:#70625e}.game-5199 button{color:#dfd9c6}.game-5199 ._uidGetPopup_os9yc_79{background-color:#5d5655;padding:10px}.game-5199 ._uidGetArrow_os9yc_83{color:#5d5655}.game-5199 ._inputControl_os9yc_86{height:40px}.game-5199 ._form_os9yc_89>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._quickLogin_1ibz1_1{width:100%}._quickAccounts_1ibz1_5{position:relative}._selectedAccount_1ibz1_9{display:flex;align-items:center;justify-content:space-between;border:1px solid #ddd;border-radius:9999px;height:44px;padding:0 20px;background:#fff;cursor:pointer}._accountInfo_1ibz1_21{display:flex;flex-direction:column}._accountName_1ibz1_26{font-size:15px;color:#333}._arrow_1ibz1_31{size:16px;color:#999;transition:transform .2s}._arrowRotate_1ibz1_37{transform:rotate(180deg)}._accountList_1ibz1_41{position:absolute;top:50px;left:0;right:0;z-index:10}._listScroll_1ibz1_49{max-height:200px;border:1px solid #ddd;border-radius:12px;overflow-y:auto;background:#fff;box-shadow:0 4px 12px #0000001a}._accountItem_1ibz1_58{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:44px;gap:12px;border-bottom:1px solid #f5f5f5;cursor:pointer}._accountItem_1ibz1_58:last-child{border-bottom:none}._accountItem_1ibz1_58:hover{background-color:#f9f9f9}._accountItem_1ibz1_58._active_1ibz1_77{background-color:#f0f4ff}._accountItem_1ibz1_58._active_1ibz1_77 ._itemName_1ibz1_81{color:#497efe;font-weight:500}._itemInfo_1ibz1_86{display:flex;flex-direction:column;flex:1}._itemName_1ibz1_81{font-size:14px;color:#333}._deleteBtn_1ibz1_97{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s}._deleteBtn_1ibz1_97:hover{background-color:#fee2e2}.game-5199 ._modal_1pbx2_2{background:url(https://cdn-imgs.sdk.mobileztgame.com/paycenter/260319165656615516.png) no-repeat center center;background-size:100% 100%;padding:60px 35px 30px}.game-5199 ._close_1pbx2_8{top:10px;right:0;background:url(https://ipay.ztgame.com/png/button_close.hzBHa9.png) no-repeat center center;background-size:100% 100%;width:57px;height:60px}.game-5199 ._close_1pbx2_8 svg{opacity:0}.game-5199 ._close_1pbx2_8:hover{background-color:transparent}._autoLoginHint_h58ls_1{position:fixed;top:16px;left:50%;transform:translate(-50%);width:80%;max-width:400px;height:48px;background-color:#000c;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;z-index:9999;font-size:14px;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:24px;box-shadow:0 8px 20px #0000004d}._left_h58ls_22{display:flex;align-items:center;gap:8px}._loading_h58ls_28{width:18px;height:18px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:_spin_h58ls_1 .8s cubic-bezier(.5,.1,.4,.9) infinite}._switchBtn_h58ls_37{color:#a5a7ff;cursor:pointer;padding:6px 12px;background:#787bf426;border:none;font-size:13px;font-weight:600;border-radius:12px;transition:all .2s ease}._switchBtn_h58ls_37:hover{background:#787bf44d;color:#fff}@keyframes _spin_h58ls_1{to{transform:rotate(360deg)}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input::-webkit-input-placeholder{color:#a9a9a9}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:1rem}.z-\\[1\\]{z-index:1}.z-\\[990\\]{z-index:990}.z-\\[991\\]{z-index:991}.z-\\[992\\]{z-index:992}.z-\\[999\\]{z-index:999}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.-mt-1\\.5{margin-top:-.375rem}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.mr-0\\.5{margin-right:.125rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-\\[240\\/85\\]{aspect-ratio:240/85}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-4\\/6{height:66.666667%}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\\[70vh\\]{height:70vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\\[var\\(--available-height\\)\\]{max-height:var(--available-height)}.w-0{width:0px}.w-12{width:3rem}.w-16{width:4rem}.w-32{width:8rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[300px\\]{width:300px}.w-\\[400px\\]{width:400px}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[var\\(--anchor-width\\)\\]{min-width:var(--anchor-width)}.max-w-64{max-width:16rem}.max-w-\\[80vw\\]{max-width:80vw}.max-w-\\[calc\\(100vw-3rem\\)\\]{max-width:calc(100vw - 3rem)}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.origin-\\[var\\(--transform-origin\\)\\]{transform-origin:var(--transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-\\[0\\.75rem_1fr\\]{grid-template-columns:.75rem 1fr}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.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))}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-\\[var\\(--jssdk-input-border-color\\)\\]{border-color:var(--jssdk-input-border-color)}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-\\[canvas\\]{background-color:canvas}.bg-\\[var\\(--jssdk-icon-color\\)\\]{background-color:var(--jssdk-icon-color)}.bg-\\[var\\(--jssdk-input-bg-color\\)\\]{background-color:var(--jssdk-input-bg-color)}.bg-black\\/20{background-color:#0003}.bg-black\\/70{background-color:#000000b3}.bg-black\\/80{background-color:#000c}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-inherit{background-color:inherit}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#497efe\\]{--tw-gradient-from: #497efe var(--tw-gradient-from-position);--tw-gradient-to: rgb(73 126 254 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#947afa\\]{--tw-gradient-to: #947afa var(--tw-gradient-to-position)}.fill-\\[canvas\\]{fill:canvas}.fill-current{fill:currentColor}.fill-gray-200{fill:#e5e7eb}.fill-gray-400{fill:#9ca3af}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-5{padding-bottom:1.25rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-\\[11px\\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.text-\\[\\#f59e9e\\]{--tw-text-opacity: 1;color:rgb(245 158 158 / var(--tw-text-opacity, 1))}.text-\\[var\\(--jssdk-primary-color\\)\\]{color:var(--jssdk-primary-color)}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-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)}.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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\\[transform\\,scale\\,opacity\\]{transition-property:transform,scale,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:left-0:before{content:var(--tw-content);left:0}.before\\:top-\\[-100\\%\\]:before{content:var(--tw-content);top:-100%}.before\\:h-full:before{content:var(--tw-content);height:100%}.before\\:w-full:before{content:var(--tw-content);width:100%}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:border-b-0:last-child{border-bottom-width:0px}.focus-within\\:border-\\[\\#787bf4\\]:focus-within{--tw-border-opacity: 1;border-color:rgb(120 123 244 / var(--tw-border-opacity, 1))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[var\\(--jssdk-primary-color\\)\\]:hover{color:var(--jssdk-primary-color)}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;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))}.active\\:brightness-90:active{--tw-brightness: brightness(.9);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)}.enabled\\:text-\\[var\\(--jssdk-primary-color\\)\\]:enabled{color:var(--jssdk-primary-color)}.enabled\\:hover\\:bg-\\[var\\(--jssdk-primary-color\\)\\]:hover:enabled{background-color:var(--jssdk-primary-color)}.enabled\\:hover\\:text-\\[var\\(--jssdk-primary-foregroud-color\\)\\]:hover:enabled{color:var(--jssdk-primary-foregroud-color)}.enabled\\:hover\\:text-white:hover:enabled{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:grayscale:disabled{--tw-grayscale: grayscale(100%);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)}.data-\\[direction\\=down\\]\\:bottom-0[data-direction=down]{bottom:0}.data-\\[side\\=bottom\\]\\:top-\\[-8px\\][data-side=bottom]{top:-8px}.data-\\[side\\=left\\]\\:right-\\[-13px\\][data-side=left]{right:-13px}.data-\\[side\\=right\\]\\:left-\\[-13px\\][data-side=right]{left:-13px}.data-\\[side\\=top\\]\\:bottom-\\[-8px\\][data-side=top]{bottom:-8px}.data-\\[side\\=left\\]\\:rotate-90[data-side=left]{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:-rotate-90[data-side=right]{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:rotate-180[data-side=top]{--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))}.data-\\[ending-style\\]\\:scale-90[data-ending-style]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:scale-100[data-starting-style][data-side=none]{--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))}.data-\\[starting-style\\]\\:scale-90[data-starting-style]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[checked\\]\\:border-\\[var\\(--jssdk-primary-color\\)\\][data-checked],.data-\\[focused\\]\\:border-\\[var\\(--jssdk-primary-color\\)\\][data-focused]{border-color:var(--jssdk-primary-color)}.data-\\[unchecked\\]\\:border-\\[var\\(--jssdk-input-border-color\\)\\][data-unchecked]{border-color:var(--jssdk-input-border-color)}.data-\\[unchecked\\]\\:border-gray-300[data-unchecked]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.data-\\[highlighted\\]\\:bg-gray-50[data-highlighted]{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.data-\\[highlighted\\]\\:text-\\[\\#789bf5\\][data-highlighted]{--tw-text-opacity: 1;color:rgb(120 155 245 / var(--tw-text-opacity, 1))}.data-\\[ending-style\\]\\:opacity-0[data-ending-style]{opacity:0}.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:opacity-100[data-starting-style][data-side=none]{opacity:1}.data-\\[starting-style\\]\\:opacity-0[data-starting-style]{opacity:0}.data-\\[ending-style\\]\\:transition-none[data-ending-style],.data-\\[side\\=none\\]\\:data-\\[starting-style\\]\\:transition-none[data-starting-style][data-side=none]{transition-property:none}.data-\\[direction\\=down\\]\\:before\\:bottom-\\[-100\\%\\][data-direction=down]:before{content:var(--tw-content);bottom:-100%}.dark\\:fill-gray-300:is(.dark *){fill:#d1d5db}.dark\\:fill-none:is(.dark *){fill:none}.dark\\:opacity-70:is(.dark *){opacity:.7}.dark\\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark\\:-outline-offset-1:is(.dark *){outline-offset:-1px}.dark\\:outline-gray-300:is(.dark *){outline-color:#d1d5db}@media(min-width:768px){.md\\:size-5{width:1.25rem;height:1.25rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:1024px){.lg\\:size-6{width:1.5rem;height:1.5rem}.lg\\:w-4\\/5{width:80%}.lg\\:w-\\[60vw\\]{width:60vw}.lg\\:max-w-5xl{max-width:64rem}.lg\\:text-2xl{font-size:1.5rem;line-height:2rem}}`)),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ (function(Zo,Oy){typeof exports=="object"&&typeof module<"u"?Oy(exports):typeof define=="function"&&define.amd?define(["exports"],Oy):(Zo=typeof globalThis<"u"?globalThis:Zo||self,Oy(Zo.SDK={}))})(this,(function(Zo){"use strict";function Oy(t,a){for(var i=0;i<a.length;i++){const u=a[i];if(typeof u!="string"&&!Array.isArray(u)){for(const f in u)if(f!=="default"&&!(f in t)){const p=Object.getOwnPropertyDescriptor(u,f);p&&Object.defineProperty(t,f,p.get?p:{enumerable:!0,get:()=>u[f]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f1={exports:{}},Cy={};var GC;function qN(){if(GC)return Cy;GC=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(u,f,p){var y=null;if(p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),"key"in f){p={};for(var g in f)g!=="key"&&(p[g]=f[g])}else p=f;return f=p.ref,{$$typeof:t,type:u,key:y,ref:f!==void 0?f:null,props:p}}return Cy.Fragment=a,Cy.jsx=i,Cy.jsxs=i,Cy}var xy={},d1={exports:{}},Ht={};var YC;function $N(){if(YC)return Ht;YC=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),O=Symbol.iterator;function _(j){return j===null||typeof j!="object"?null:(j=O&&j[O]||j["@@iterator"],typeof j=="function"?j:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,N={};function M(j,Q,oe){this.props=j,this.context=Q,this.refs=N,this.updater=oe||A}M.prototype.isReactComponent={},M.prototype.setState=function(j,Q){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Q,"setState")},M.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function q(){}q.prototype=M.prototype;function I(j,Q,oe){this.props=j,this.context=Q,this.refs=N,this.updater=oe||A}var Y=I.prototype=new q;Y.constructor=I,D(Y,M.prototype),Y.isPureReactComponent=!0;var H=Array.isArray;function Z(){}var V={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function le(j,Q,oe){var de=oe.ref;return{$$typeof:t,type:j,key:Q,ref:de!==void 0?de:null,props:oe}}function K(j,Q){return le(j.type,Q,j.props)}function fe(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function ie(j){var Q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(oe){return Q[oe]})}var ee=/\/+/g;function te(j,Q){return typeof j=="object"&&j!==null&&j.key!=null?ie(""+j.key):Q.toString(36)}function J(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(Z,Z):(j.status="pending",j.then(function(Q){j.status==="pending"&&(j.status="fulfilled",j.value=Q)},function(Q){j.status==="pending"&&(j.status="rejected",j.reason=Q)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function L(j,Q,oe,de,ve){var _e=typeof j;(_e==="undefined"||_e==="boolean")&&(j=null);var Te=!1;if(j===null)Te=!0;else switch(_e){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(j.$$typeof){case t:case a:Te=!0;break;case E:return Te=j._init,L(Te(j._payload),Q,oe,de,ve)}}if(Te)return ve=ve(j),Te=de===""?"."+te(j,0):de,H(ve)?(oe="",Te!=null&&(oe=Te.replace(ee,"$&/")+"/"),L(ve,Q,oe,"",function(We){return We})):ve!=null&&(fe(ve)&&(ve=K(ve,oe+(ve.key==null||j&&j.key===ve.key?"":(""+ve.key).replace(ee,"$&/")+"/")+Te)),Q.push(ve)),1;Te=0;var Ue=de===""?".":de+":";if(H(j))for(var Ge=0;Ge<j.length;Ge++)de=j[Ge],_e=Ue+te(de,Ge),Te+=L(de,Q,oe,_e,ve);else if(Ge=_(j),typeof Ge=="function")for(j=Ge.call(j),Ge=0;!(de=j.next()).done;)de=de.value,_e=Ue+te(de,Ge++),Te+=L(de,Q,oe,_e,ve);else if(_e==="object"){if(typeof j.then=="function")return L(J(j),Q,oe,de,ve);throw Q=String(j),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Te}function B(j,Q,oe){if(j==null)return j;var de=[],ve=0;return L(j,de,"","",function(_e){return Q.call(oe,_e,ve++)}),de}function F(j){if(j._status===-1){var Q=j._result;Q=Q(),Q.then(function(oe){(j._status===0||j._status===-1)&&(j._status=1,j._result=oe)},function(oe){(j._status===0||j._status===-1)&&(j._status=2,j._result=oe)}),j._status===-1&&(j._status=0,j._result=Q)}if(j._status===1)return j._result.default;throw j._result}var ne=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},ce={map:B,forEach:function(j,Q,oe){B(j,function(){Q.apply(this,arguments)},oe)},count:function(j){var Q=0;return B(j,function(){Q++}),Q},toArray:function(j){return B(j,function(Q){return Q})||[]},only:function(j){if(!fe(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ht.Activity=T,Ht.Children=ce,Ht.Component=M,Ht.Fragment=i,Ht.Profiler=f,Ht.PureComponent=I,Ht.StrictMode=u,Ht.Suspense=S,Ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ht.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},Ht.cache=function(j){return function(){return j.apply(null,arguments)}},Ht.cacheSignal=function(){return null},Ht.cloneElement=function(j,Q,oe){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var de=D({},j.props),ve=j.key;if(Q!=null)for(_e in Q.key!==void 0&&(ve=""+Q.key),Q)!X.call(Q,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&Q.ref===void 0||(de[_e]=Q[_e]);var _e=arguments.length-2;if(_e===1)de.children=oe;else if(1<_e){for(var Te=Array(_e),Ue=0;Ue<_e;Ue++)Te[Ue]=arguments[Ue+2];de.children=Te}return le(j.type,ve,de)},Ht.createContext=function(j){return j={$$typeof:y,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:p,_context:j},j},Ht.createElement=function(j,Q,oe){var de,ve={},_e=null;if(Q!=null)for(de in Q.key!==void 0&&(_e=""+Q.key),Q)X.call(Q,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(ve[de]=Q[de]);var Te=arguments.length-2;if(Te===1)ve.children=oe;else if(1<Te){for(var Ue=Array(Te),Ge=0;Ge<Te;Ge++)Ue[Ge]=arguments[Ge+2];ve.children=Ue}if(j&&j.defaultProps)for(de in Te=j.defaultProps,Te)ve[de]===void 0&&(ve[de]=Te[de]);return le(j,_e,ve)},Ht.createRef=function(){return{current:null}},Ht.forwardRef=function(j){return{$$typeof:g,render:j}},Ht.isValidElement=fe,Ht.lazy=function(j){return{$$typeof:E,_payload:{_status:-1,_result:j},_init:F}},Ht.memo=function(j,Q){return{$$typeof:b,type:j,compare:Q===void 0?null:Q}},Ht.startTransition=function(j){var Q=V.T,oe={};V.T=oe;try{var de=j(),ve=V.S;ve!==null&&ve(oe,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(Z,ne)}catch(_e){ne(_e)}finally{Q!==null&&oe.types!==null&&(Q.types=oe.types),V.T=Q}},Ht.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ht.use=function(j){return V.H.use(j)},Ht.useActionState=function(j,Q,oe){return V.H.useActionState(j,Q,oe)},Ht.useCallback=function(j,Q){return V.H.useCallback(j,Q)},Ht.useContext=function(j){return V.H.useContext(j)},Ht.useDebugValue=function(){},Ht.useDeferredValue=function(j,Q){return V.H.useDeferredValue(j,Q)},Ht.useEffect=function(j,Q){return V.H.useEffect(j,Q)},Ht.useEffectEvent=function(j){return V.H.useEffectEvent(j)},Ht.useId=function(){return V.H.useId()},Ht.useImperativeHandle=function(j,Q,oe){return V.H.useImperativeHandle(j,Q,oe)},Ht.useInsertionEffect=function(j,Q){return V.H.useInsertionEffect(j,Q)},Ht.useLayoutEffect=function(j,Q){return V.H.useLayoutEffect(j,Q)},Ht.useMemo=function(j,Q){return V.H.useMemo(j,Q)},Ht.useOptimistic=function(j,Q){return V.H.useOptimistic(j,Q)},Ht.useReducer=function(j,Q,oe){return V.H.useReducer(j,Q,oe)},Ht.useRef=function(j){return V.H.useRef(j)},Ht.useState=function(j){return V.H.useState(j)},Ht.useSyncExternalStore=function(j,Q,oe){return V.H.useSyncExternalStore(j,Q,oe)},Ht.useTransition=function(){return V.H.useTransition()},Ht.version="19.2.4",Ht}var _y={exports:{}};_y.exports;var IC;function ZN(){return IC||(IC=1,(function(t,a){process.env.NODE_ENV!=="production"&&(function(){function i(k,W){Object.defineProperty(p.prototype,k,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",W[0],W[1])}})}function u(k){return k===null||typeof k!="object"?null:(k=Ze&&k[Ze]||k["@@iterator"],typeof k=="function"?k:null)}function f(k,W){k=(k=k.constructor)&&(k.displayName||k.name)||"ReactClass";var Se=k+"."+W;lt[Se]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",W,k),lt[Se]=!0)}function p(k,W,Se){this.props=k,this.context=W,this.refs=$e,this.updater=Se||Xe}function y(){}function g(k,W,Se){this.props=k,this.context=W,this.refs=$e,this.updater=Se||Xe}function S(){}function b(k){return""+k}function E(k){try{b(k);var W=!1}catch{W=!0}if(W){W=console;var Se=W.error,De=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return Se.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",De),b(k)}}function T(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===et?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case j:return"Fragment";case oe:return"Profiler";case Q:return"StrictMode";case Te:return"Suspense";case Ue:return"SuspenseList";case Ne:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case ce:return"Portal";case ve:return k.displayName||"Context";case de:return(k._context.displayName||"Context")+".Consumer";case _e:var W=k.render;return k=k.displayName,k||(k=W.displayName||W.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Ge:return W=k.displayName||null,W!==null?W:T(k.type)||"Memo";case We:W=k._payload,k=k._init;try{return T(k(W))}catch{}}return null}function O(k){if(k===j)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===We)return"<...>";try{var W=T(k);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function _(){var k=Ve.A;return k===null?null:k.getOwner()}function A(){return Error("react-stack-top-frame")}function D(k){if(Re.call(k,"key")){var W=Object.getOwnPropertyDescriptor(k,"key").get;if(W&&W.isReactWarning)return!1}return k.key!==void 0}function N(k,W){function Se(){Ce||(Ce=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}Se.isReactWarning=!0,Object.defineProperty(k,"key",{get:Se,configurable:!0})}function M(){var k=T(this.type);return tt[k]||(tt[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function q(k,W,Se,De,Ie,Pe){var Fe=Se.ref;return k={$$typeof:ne,type:k,key:W,props:Se,_owner:De},(Fe!==void 0?Fe:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:M}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function I(k,W){return W=q(k.type,W,k.props,k._owner,k._debugStack,k._debugTask),k._store&&(W._store.validated=k._store.validated),W}function Y(k){H(k)?k._store&&(k._store.validated=1):typeof k=="object"&&k!==null&&k.$$typeof===We&&(k._payload.status==="fulfilled"?H(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function H(k){return typeof k=="object"&&k!==null&&k.$$typeof===ne}function Z(k){var W={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Se){return W[Se]})}function V(k,W){return typeof k=="object"&&k!==null&&k.key!=null?(E(k.key),Z(""+k.key)):W.toString(36)}function X(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(S,S):(k.status="pending",k.then(function(W){k.status==="pending"&&(k.status="fulfilled",k.value=W)},function(W){k.status==="pending"&&(k.status="rejected",k.reason=W)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function le(k,W,Se,De,Ie){var Pe=typeof k;(Pe==="undefined"||Pe==="boolean")&&(k=null);var Fe=!1;if(k===null)Fe=!0;else switch(Pe){case"bigint":case"string":case"number":Fe=!0;break;case"object":switch(k.$$typeof){case ne:case ce:Fe=!0;break;case We:return Fe=k._init,le(Fe(k._payload),W,Se,De,Ie)}}if(Fe){Fe=k,Ie=Ie(Fe);var ut=De===""?"."+V(Fe,0):De;return dt(Ie)?(Se="",ut!=null&&(Se=ut.replace(ln,"$&/")+"/"),le(Ie,W,Se,"",function(tn){return tn})):Ie!=null&&(H(Ie)&&(Ie.key!=null&&(Fe&&Fe.key===Ie.key||E(Ie.key)),Se=I(Ie,Se+(Ie.key==null||Fe&&Fe.key===Ie.key?"":(""+Ie.key).replace(ln,"$&/")+"/")+ut),De!==""&&Fe!=null&&H(Fe)&&Fe.key==null&&Fe._store&&!Fe._store.validated&&(Se._store.validated=2),Ie=Se),W.push(Ie)),1}if(Fe=0,ut=De===""?".":De+":",dt(k))for(var ft=0;ft<k.length;ft++)De=k[ft],Pe=ut+V(De,ft),Fe+=le(De,W,Se,Pe,Ie);else if(ft=u(k),typeof ft=="function")for(ft===k.entries&&(yt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),yt=!0),k=ft.call(k),ft=0;!(De=k.next()).done;)De=De.value,Pe=ut+V(De,ft++),Fe+=le(De,W,Se,Pe,Ie);else if(Pe==="object"){if(typeof k.then=="function")return le(X(k),W,Se,De,Ie);throw W=String(k),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Fe}function K(k,W,Se){if(k==null)return k;var De=[],Ie=0;return le(k,De,"","",function(Pe){return W.call(Se,Pe,Ie++)}),De}function fe(k){if(k._status===-1){var W=k._ioInfo;W!=null&&(W.start=W.end=performance.now()),W=k._result;var Se=W();if(Se.then(function(Ie){if(k._status===0||k._status===-1){k._status=1,k._result=Ie;var Pe=k._ioInfo;Pe!=null&&(Pe.end=performance.now()),Se.status===void 0&&(Se.status="fulfilled",Se.value=Ie)}},function(Ie){if(k._status===0||k._status===-1){k._status=2,k._result=Ie;var Pe=k._ioInfo;Pe!=null&&(Pe.end=performance.now()),Se.status===void 0&&(Se.status="rejected",Se.reason=Ie)}}),W=k._ioInfo,W!=null){W.value=Se;var De=Se.displayName;typeof De=="string"&&(W.name=De)}k._status===-1&&(k._status=0,k._result=Se)}if(k._status===1)return W=k._result,W===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
+
4
+ Your code should look like:
5
+ const MyComponent = lazy(() => import('./MyComponent'))
6
+
7
+ Did you accidentally put curly braces around the import?`,W),"default"in W||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
8
+
9
+ Your code should look like:
10
+ const MyComponent = lazy(() => import('./MyComponent'))`,W),W.default;throw k._result}function ie(){var k=Ve.H;return k===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
11
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
12
+ 2. You might be breaking the Rules of Hooks
13
+ 3. You might have more than one copy of React in the same app
14
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),k}function ee(){Ve.asyncTransitions--}function te(k){if(xt===null)try{var W=("require"+Math.random()).slice(0,7);xt=(t&&t[W]).call(t,"timers").setImmediate}catch{xt=function(De){Qt===!1&&(Qt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ie=new MessageChannel;Ie.port1.onmessage=De,Ie.port2.postMessage(void 0)}}return xt(k)}function J(k){return 1<k.length&&typeof AggregateError=="function"?new AggregateError(k):k[0]}function L(k,W){W!==Nt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Nt=W}function B(k,W,Se){var De=Ve.actQueue;if(De!==null)if(De.length!==0)try{F(De),te(function(){return B(k,W,Se)});return}catch(Ie){Ve.thrownErrors.push(Ie)}else Ve.actQueue=null;0<Ve.thrownErrors.length?(De=J(Ve.thrownErrors),Ve.thrownErrors.length=0,Se(De)):W(k)}function F(k){if(!Wt){Wt=!0;var W=0;try{for(;W<k.length;W++){var Se=k[W];do{Ve.didUsePromise=!1;var De=Se(!1);if(De!==null){if(Ve.didUsePromise){k[W]=Se,k.splice(0,W);return}Se=De}else break}while(!0)}k.length=0}catch(Ie){k.splice(0,W+1),Ve.thrownErrors.push(Ie)}finally{Wt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ne=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),ve=Symbol.for("react.context"),_e=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ge=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Ze=Symbol.iterator,lt={},Xe={isMounted:function(){return!1},enqueueForceUpdate:function(k){f(k,"forceUpdate")},enqueueReplaceState:function(k){f(k,"replaceState")},enqueueSetState:function(k){f(k,"setState")}},ht=Object.assign,$e={};Object.freeze($e),p.prototype.isReactComponent={},p.prototype.setState=function(k,W){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,W,"setState")},p.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};var Qe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(yn in Qe)Qe.hasOwnProperty(yn)&&i(yn,Qe[yn]);y.prototype=p.prototype,Qe=g.prototype=new y,Qe.constructor=g,ht(Qe,p.prototype),Qe.isPureReactComponent=!0;var dt=Array.isArray,et=Symbol.for("react.client.reference"),Ve={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Re=Object.prototype.hasOwnProperty,je=console.createTask?console.createTask:function(){return null};Qe={react_stack_bottom_frame:function(k){return k()}};var Ce,we,tt={},pt=Qe.react_stack_bottom_frame.bind(Qe,A)(),ct=je(O(A)),yt=!1,ln=/\/+/g,Rt=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Qt=!1,xt=null,Nt=0,Ot=!1,Wt=!1,en=typeof queueMicrotask=="function"?function(k){queueMicrotask(function(){return queueMicrotask(k)})}:te;Qe=Object.freeze({__proto__:null,c:function(k){return ie().useMemoCache(k)}});var yn={map:K,forEach:function(k,W,Se){K(k,function(){W.apply(this,arguments)},Se)},count:function(k){var W=0;return K(k,function(){W++}),W},toArray:function(k){return K(k,function(W){return W})||[]},only:function(k){if(!H(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};a.Activity=Ne,a.Children=yn,a.Component=p,a.Fragment=j,a.Profiler=oe,a.PureComponent=g,a.StrictMode=Q,a.Suspense=Te,a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ve,a.__COMPILER_RUNTIME=Qe,a.act=function(k){var W=Ve.actQueue,Se=Nt;Nt++;var De=Ve.actQueue=W!==null?W:[],Ie=!1;try{var Pe=k()}catch(ft){Ve.thrownErrors.push(ft)}if(0<Ve.thrownErrors.length)throw L(W,Se),k=J(Ve.thrownErrors),Ve.thrownErrors.length=0,k;if(Pe!==null&&typeof Pe=="object"&&typeof Pe.then=="function"){var Fe=Pe;return en(function(){Ie||Ot||(Ot=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ft,tn){Ie=!0,Fe.then(function(Tn){if(L(W,Se),Se===0){try{F(De),te(function(){return B(Tn,ft,tn)})}catch(Rn){Ve.thrownErrors.push(Rn)}if(0<Ve.thrownErrors.length){var Zn=J(Ve.thrownErrors);Ve.thrownErrors.length=0,tn(Zn)}}else ft(Tn)},function(Tn){L(W,Se),0<Ve.thrownErrors.length&&(Tn=J(Ve.thrownErrors),Ve.thrownErrors.length=0),tn(Tn)})}}}var ut=Pe;if(L(W,Se),Se===0&&(F(De),De.length!==0&&en(function(){Ie||Ot||(Ot=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ve.actQueue=null),0<Ve.thrownErrors.length)throw k=J(Ve.thrownErrors),Ve.thrownErrors.length=0,k;return{then:function(ft,tn){Ie=!0,Se===0?(Ve.actQueue=De,te(function(){return B(ut,ft,tn)})):ft(ut)}}},a.cache=function(k){return function(){return k.apply(null,arguments)}},a.cacheSignal=function(){return null},a.captureOwnerStack=function(){var k=Ve.getCurrentStack;return k===null?null:k()},a.cloneElement=function(k,W,Se){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var De=ht({},k.props),Ie=k.key,Pe=k._owner;if(W!=null){var Fe;e:{if(Re.call(W,"ref")&&(Fe=Object.getOwnPropertyDescriptor(W,"ref").get)&&Fe.isReactWarning){Fe=!1;break e}Fe=W.ref!==void 0}Fe&&(Pe=_()),D(W)&&(E(W.key),Ie=""+W.key);for(ut in W)!Re.call(W,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&W.ref===void 0||(De[ut]=W[ut])}var ut=arguments.length-2;if(ut===1)De.children=Se;else if(1<ut){Fe=Array(ut);for(var ft=0;ft<ut;ft++)Fe[ft]=arguments[ft+2];De.children=Fe}for(De=q(k.type,Ie,De,Pe,k._debugStack,k._debugTask),Ie=2;Ie<arguments.length;Ie++)Y(arguments[Ie]);return De},a.createContext=function(k){return k={$$typeof:ve,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:de,_context:k},k._currentRenderer=null,k._currentRenderer2=null,k},a.createElement=function(k,W,Se){for(var De=2;De<arguments.length;De++)Y(arguments[De]);De={};var Ie=null;if(W!=null)for(ft in we||!("__self"in W)||"key"in W||(we=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),D(W)&&(E(W.key),Ie=""+W.key),W)Re.call(W,ft)&&ft!=="key"&&ft!=="__self"&&ft!=="__source"&&(De[ft]=W[ft]);var Pe=arguments.length-2;if(Pe===1)De.children=Se;else if(1<Pe){for(var Fe=Array(Pe),ut=0;ut<Pe;ut++)Fe[ut]=arguments[ut+2];Object.freeze&&Object.freeze(Fe),De.children=Fe}if(k&&k.defaultProps)for(ft in Pe=k.defaultProps,Pe)De[ft]===void 0&&(De[ft]=Pe[ft]);Ie&&N(De,typeof k=="function"?k.displayName||k.name||"Unknown":k);var ft=1e4>Ve.recentlyCreatedOwnerStacks++;return q(k,Ie,De,_(),ft?Error("react-stack-top-frame"):pt,ft?je(O(k)):ct)},a.createRef=function(){var k={current:null};return Object.seal(k),k},a.forwardRef=function(k){k!=null&&k.$$typeof===Ge?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof k!="function"?console.error("forwardRef requires a render function but was given %s.",k===null?"null":typeof k):k.length!==0&&k.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",k.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),k!=null&&k.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var W={$$typeof:_e,render:k},Se;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return Se},set:function(De){Se=De,k.name||k.displayName||(Object.defineProperty(k,"name",{value:De}),k.displayName=De)}}),W},a.isValidElement=H,a.lazy=function(k){k={_status:-1,_result:k};var W={$$typeof:We,_payload:k,_init:fe},Se={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return k._ioInfo=Se,W._debugInfo=[{awaited:Se}],W},a.memo=function(k,W){k==null&&console.error("memo: The first argument must be a component. Instead received: %s",k===null?"null":typeof k),W={$$typeof:Ge,type:k,compare:W===void 0?null:W};var Se;return Object.defineProperty(W,"displayName",{enumerable:!1,configurable:!0,get:function(){return Se},set:function(De){Se=De,k.name||k.displayName||(Object.defineProperty(k,"name",{value:De}),k.displayName=De)}}),W},a.startTransition=function(k){var W=Ve.T,Se={};Se._updatedFibers=new Set,Ve.T=Se;try{var De=k(),Ie=Ve.S;Ie!==null&&Ie(Se,De),typeof De=="object"&&De!==null&&typeof De.then=="function"&&(Ve.asyncTransitions++,De.then(ee,ee),De.then(S,Rt))}catch(Pe){Rt(Pe)}finally{W===null&&Se._updatedFibers&&(k=Se._updatedFibers.size,Se._updatedFibers.clear(),10<k&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),W!==null&&Se.types!==null&&(W.types!==null&&W.types!==Se.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=Se.types),Ve.T=W}},a.unstable_useCacheRefresh=function(){return ie().useCacheRefresh()},a.use=function(k){return ie().use(k)},a.useActionState=function(k,W,Se){return ie().useActionState(k,W,Se)},a.useCallback=function(k,W){return ie().useCallback(k,W)},a.useContext=function(k){var W=ie();return k.$$typeof===de&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),W.useContext(k)},a.useDebugValue=function(k,W){return ie().useDebugValue(k,W)},a.useDeferredValue=function(k,W){return ie().useDeferredValue(k,W)},a.useEffect=function(k,W){return k==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ie().useEffect(k,W)},a.useEffectEvent=function(k){return ie().useEffectEvent(k)},a.useId=function(){return ie().useId()},a.useImperativeHandle=function(k,W,Se){return ie().useImperativeHandle(k,W,Se)},a.useInsertionEffect=function(k,W){return k==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ie().useInsertionEffect(k,W)},a.useLayoutEffect=function(k,W){return k==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ie().useLayoutEffect(k,W)},a.useMemo=function(k,W){return ie().useMemo(k,W)},a.useOptimistic=function(k,W){return ie().useOptimistic(k,W)},a.useReducer=function(k,W,Se){return ie().useReducer(k,W,Se)},a.useRef=function(k){return ie().useRef(k)},a.useState=function(k){return ie().useState(k)},a.useSyncExternalStore=function(k,W,Se){return ie().useSyncExternalStore(k,W,Se)},a.useTransition=function(){return ie().useTransition()},a.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(_y,_y.exports)),_y.exports}var qC;function du(){return qC||(qC=1,process.env.NODE_ENV==="production"?d1.exports=$N():d1.exports=ZN()),d1.exports}var $C;function XN(){return $C||($C=1,process.env.NODE_ENV!=="production"&&(function(){function t(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===fe?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case N:return"Fragment";case q:return"Profiler";case M:return"StrictMode";case Z:return"Suspense";case V:return"SuspenseList";case K:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case D:return"Portal";case Y:return j.displayName||"Context";case I:return(j._context.displayName||"Context")+".Consumer";case H:var Q=j.render;return j=j.displayName,j||(j=Q.displayName||Q.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case X:return Q=j.displayName||null,Q!==null?Q:t(j.type)||"Memo";case le:Q=j._payload,j=j._init;try{return t(j(Q))}catch{}}return null}function a(j){return""+j}function i(j){try{a(j);var Q=!1}catch{Q=!0}if(Q){Q=console;var oe=Q.error,de=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return oe.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",de),a(j)}}function u(j){if(j===N)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===le)return"<...>";try{var Q=t(j);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function f(){var j=ie.A;return j===null?null:j.getOwner()}function p(){return Error("react-stack-top-frame")}function y(j){if(ee.call(j,"key")){var Q=Object.getOwnPropertyDescriptor(j,"key").get;if(Q&&Q.isReactWarning)return!1}return j.key!==void 0}function g(j,Q){function oe(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}oe.isReactWarning=!0,Object.defineProperty(j,"key",{get:oe,configurable:!0})}function S(){var j=t(this.type);return B[j]||(B[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function b(j,Q,oe,de,ve,_e){var Te=oe.ref;return j={$$typeof:A,type:j,key:Q,props:oe,_owner:de},(Te!==void 0?Te:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:S}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_e}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function E(j,Q,oe,de,ve,_e){var Te=Q.children;if(Te!==void 0)if(de)if(te(Te)){for(de=0;de<Te.length;de++)T(Te[de]);Object.freeze&&Object.freeze(Te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(Te);if(ee.call(Q,"key")){Te=t(j);var Ue=Object.keys(Q).filter(function(We){return We!=="key"});de=0<Ue.length?"{key: someKey, "+Ue.join(": ..., ")+": ...}":"{key: someKey}",ce[Te+de]||(Ue=0<Ue.length?"{"+Ue.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
15
+ let props = %s;
16
+ <%s {...props} />
17
+ React keys must be passed directly to JSX without using spread:
18
+ let props = %s;
19
+ <%s key={someKey} {...props} />`,de,Te,Ue,Te),ce[Te+de]=!0)}if(Te=null,oe!==void 0&&(i(oe),Te=""+oe),y(Q)&&(i(Q.key),Te=""+Q.key),"key"in Q){oe={};for(var Ge in Q)Ge!=="key"&&(oe[Ge]=Q[Ge])}else oe=Q;return Te&&g(oe,typeof j=="function"?j.displayName||j.name||"Unknown":j),b(j,Te,oe,f(),ve,_e)}function T(j){O(j)?j._store&&(j._store.validated=1):typeof j=="object"&&j!==null&&j.$$typeof===le&&(j._payload.status==="fulfilled"?O(j._payload.value)&&j._payload.value._store&&(j._payload.value._store.validated=1):j._store&&(j._store.validated=1))}function O(j){return typeof j=="object"&&j!==null&&j.$$typeof===A}var _=du(),A=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),ie=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.prototype.hasOwnProperty,te=Array.isArray,J=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(j){return j()}};var L,B={},F=_.react_stack_bottom_frame.bind(_,p)(),ne=J(u(p)),ce={};xy.Fragment=N,xy.jsx=function(j,Q,oe){var de=1e4>ie.recentlyCreatedOwnerStacks++;return E(j,Q,oe,!1,de?Error("react-stack-top-frame"):F,de?J(u(j)):ne)},xy.jsxs=function(j,Q,oe){var de=1e4>ie.recentlyCreatedOwnerStacks++;return E(j,Q,oe,!0,de?Error("react-stack-top-frame"):F,de?J(u(j)):ne)}})()),xy}var ZC;function PN(){return ZC||(ZC=1,process.env.NODE_ENV==="production"?f1.exports=qN():f1.exports=XN()),f1.exports}var P=PN(),h1={exports:{}},Ay={},p1={exports:{}},OT={};var XC;function FN(){return XC||(XC=1,(function(t){function a(L,B){var F=L.length;L.push(B);e:for(;0<F;){var ne=F-1>>>1,ce=L[ne];if(0<f(ce,B))L[ne]=B,L[F]=ce,F=ne;else break e}}function i(L){return L.length===0?null:L[0]}function u(L){if(L.length===0)return null;var B=L[0],F=L.pop();if(F!==B){L[0]=F;e:for(var ne=0,ce=L.length,j=ce>>>1;ne<j;){var Q=2*(ne+1)-1,oe=L[Q],de=Q+1,ve=L[de];if(0>f(oe,F))de<ce&&0>f(ve,oe)?(L[ne]=ve,L[de]=F,ne=de):(L[ne]=oe,L[Q]=F,ne=Q);else if(de<ce&&0>f(ve,F))L[ne]=ve,L[de]=F,ne=de;else break e}}return B}function f(L,B){var F=L.sortIndex-B.sortIndex;return F!==0?F:L.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;t.unstable_now=function(){return p.now()}}else{var y=Date,g=y.now();t.unstable_now=function(){return y.now()-g}}var S=[],b=[],E=1,T=null,O=3,_=!1,A=!1,D=!1,N=!1,M=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Y(L){for(var B=i(b);B!==null;){if(B.callback===null)u(b);else if(B.startTime<=L)u(b),B.sortIndex=B.expirationTime,a(S,B);else break;B=i(b)}}function H(L){if(D=!1,Y(L),!A)if(i(S)!==null)A=!0,Z||(Z=!0,ie());else{var B=i(b);B!==null&&J(H,B.startTime-L)}}var Z=!1,V=-1,X=5,le=-1;function K(){return N?!0:!(t.unstable_now()-le<X)}function fe(){if(N=!1,Z){var L=t.unstable_now();le=L;var B=!0;try{e:{A=!1,D&&(D=!1,q(V),V=-1),_=!0;var F=O;try{t:{for(Y(L),T=i(S);T!==null&&!(T.expirationTime>L&&K());){var ne=T.callback;if(typeof ne=="function"){T.callback=null,O=T.priorityLevel;var ce=ne(T.expirationTime<=L);if(L=t.unstable_now(),typeof ce=="function"){T.callback=ce,Y(L),B=!0;break t}T===i(S)&&u(S),Y(L)}else u(S);T=i(S)}if(T!==null)B=!0;else{var j=i(b);j!==null&&J(H,j.startTime-L),B=!1}}break e}finally{T=null,O=F,_=!1}B=void 0}}finally{B?ie():Z=!1}}}var ie;if(typeof I=="function")ie=function(){I(fe)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=fe,ie=function(){te.postMessage(null)}}else ie=function(){M(fe,0)};function J(L,B){V=M(function(){L(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_next=function(L){switch(O){case 1:case 2:case 3:var B=3;break;default:B=O}var F=O;O=B;try{return L()}finally{O=F}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(L,B){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=O;O=L;try{return B()}finally{O=F}},t.unstable_scheduleCallback=function(L,B,F){var ne=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ne+F:ne):F=ne,L){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=F+ce,L={id:E++,callback:B,priorityLevel:L,startTime:F,expirationTime:ce,sortIndex:-1},F>ne?(L.sortIndex=F,a(b,L),i(S)===null&&L===i(b)&&(D?(q(V),V=-1):D=!0,J(H,F-ne))):(L.sortIndex=ce,a(S,L),A||_||(A=!0,Z||(Z=!0,ie()))),L},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(L){var B=O;return function(){var F=O;O=B;try{return L.apply(this,arguments)}finally{O=F}}}})(OT)),OT}var CT={};var PC;function QN(){return PC||(PC=1,(function(t){process.env.NODE_ENV!=="production"&&(function(){function a(){if(H=!1,le){var L=t.unstable_now();ie=L;var B=!0;try{e:{I=!1,Y&&(Y=!1,V(K),K=-1),q=!0;var F=M;try{t:{for(y(L),N=u(_);N!==null&&!(N.expirationTime>L&&S());){var ne=N.callback;if(typeof ne=="function"){N.callback=null,M=N.priorityLevel;var ce=ne(N.expirationTime<=L);if(L=t.unstable_now(),typeof ce=="function"){N.callback=ce,y(L),B=!0;break t}N===u(_)&&f(_),y(L)}else f(_);N=u(_)}if(N!==null)B=!0;else{var j=u(A);j!==null&&b(g,j.startTime-L),B=!1}}break e}finally{N=null,M=F,q=!1}B=void 0}}finally{B?ee():le=!1}}}function i(L,B){var F=L.length;L.push(B);e:for(;0<F;){var ne=F-1>>>1,ce=L[ne];if(0<p(ce,B))L[ne]=B,L[F]=ce,F=ne;else break e}}function u(L){return L.length===0?null:L[0]}function f(L){if(L.length===0)return null;var B=L[0],F=L.pop();if(F!==B){L[0]=F;e:for(var ne=0,ce=L.length,j=ce>>>1;ne<j;){var Q=2*(ne+1)-1,oe=L[Q],de=Q+1,ve=L[de];if(0>p(oe,F))de<ce&&0>p(ve,oe)?(L[ne]=ve,L[de]=F,ne=de):(L[ne]=oe,L[Q]=F,ne=Q);else if(de<ce&&0>p(ve,F))L[ne]=ve,L[de]=F,ne=de;else break e}}return B}function p(L,B){var F=L.sortIndex-B.sortIndex;return F!==0?F:L.id-B.id}function y(L){for(var B=u(A);B!==null;){if(B.callback===null)f(A);else if(B.startTime<=L)f(A),B.sortIndex=B.expirationTime,i(_,B);else break;B=u(A)}}function g(L){if(Y=!1,y(L),!I)if(u(_)!==null)I=!0,le||(le=!0,ee());else{var B=u(A);B!==null&&b(g,B.startTime-L)}}function S(){return H?!0:!(t.unstable_now()-ie<fe)}function b(L,B){K=Z(function(){L(t.unstable_now())},B)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var E=performance;t.unstable_now=function(){return E.now()}}else{var T=Date,O=T.now();t.unstable_now=function(){return T.now()-O}}var _=[],A=[],D=1,N=null,M=3,q=!1,I=!1,Y=!1,H=!1,Z=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null,le=!1,K=-1,fe=5,ie=-1;if(typeof X=="function")var ee=function(){X(a)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,J=te.port2;te.port1.onmessage=a,ee=function(){J.postMessage(null)}}else ee=function(){Z(a,0)};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_next=function(L){switch(M){case 1:case 2:case 3:var B=3;break;default:B=M}var F=M;M=B;try{return L()}finally{M=F}},t.unstable_requestPaint=function(){H=!0},t.unstable_runWithPriority=function(L,B){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=M;M=L;try{return B()}finally{M=F}},t.unstable_scheduleCallback=function(L,B,F){var ne=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ne+F:ne):F=ne,L){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=F+ce,L={id:D++,callback:B,priorityLevel:L,startTime:F,expirationTime:ce,sortIndex:-1},F>ne?(L.sortIndex=F,i(A,L),u(_)===null&&L===u(A)&&(Y?(V(K),K=-1):Y=!0,b(g,F-ne))):(L.sortIndex=ce,i(_,L),I||q||(I=!0,le||(le=!0,ee()))),L},t.unstable_shouldYield=S,t.unstable_wrapCallback=function(L){var B=M;return function(){var F=M;M=B;try{return L.apply(this,arguments)}finally{M=F}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(CT)),CT}var FC;function QC(){return FC||(FC=1,process.env.NODE_ENV==="production"?p1.exports=FN():p1.exports=QN()),p1.exports}var m1={exports:{}},Xo={};var JC;function JN(){if(JC)return Xo;JC=1;var t=du();function a(S){var b="https://react.dev/errors/"+S;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)b+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+S+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},f=Symbol.for("react.portal");function p(S,b,E){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:T==null?null:""+T,children:S,containerInfo:b,implementation:E}}var y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(S,b){if(S==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return Xo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Xo.createPortal=function(S,b){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(a(299));return p(S,b,null,E)},Xo.flushSync=function(S){var b=y.T,E=u.p;try{if(y.T=null,u.p=2,S)return S()}finally{y.T=b,u.p=E,u.d.f()}},Xo.preconnect=function(S,b){typeof S=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,u.d.C(S,b))},Xo.prefetchDNS=function(S){typeof S=="string"&&u.d.D(S)},Xo.preinit=function(S,b){if(typeof S=="string"&&b&&typeof b.as=="string"){var E=b.as,T=g(E,b.crossOrigin),O=typeof b.integrity=="string"?b.integrity:void 0,_=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;E==="style"?u.d.S(S,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:T,integrity:O,fetchPriority:_}):E==="script"&&u.d.X(S,{crossOrigin:T,integrity:O,fetchPriority:_,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},Xo.preinitModule=function(S,b){if(typeof S=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var E=g(b.as,b.crossOrigin);u.d.M(S,{crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&u.d.M(S)},Xo.preload=function(S,b){if(typeof S=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var E=b.as,T=g(E,b.crossOrigin);u.d.L(S,E,{crossOrigin:T,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},Xo.preloadModule=function(S,b){if(typeof S=="string")if(b){var E=g(b.as,b.crossOrigin);u.d.m(S,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else u.d.m(S)},Xo.requestFormReset=function(S){u.d.r(S)},Xo.unstable_batchedUpdates=function(S,b){return S(b)},Xo.useFormState=function(S,b,E){return y.H.useFormState(S,b,E)},Xo.useFormStatus=function(){return y.H.useHostTransitionStatus()},Xo.version="19.2.4",Xo}var Po={};var KC;function KN(){return KC||(KC=1,process.env.NODE_ENV!=="production"&&(function(){function t(){}function a(T){return""+T}function i(T,O,_){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(A);var D=!1}catch{D=!0}return D&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object"),a(A)),{$$typeof:b,key:A==null?null:""+A,children:T,containerInfo:O,implementation:_}}function u(T,O){if(T==="font")return"";if(typeof O=="string")return O==="use-credentials"?O:""}function f(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function p(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T=="string"?JSON.stringify(T):typeof T=="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function y(){var T=E.H;return T===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
20
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
21
+ 2. You might be breaking the Rules of Hooks
22
+ 3. You might have more than one copy of React in the same app
23
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=du(),S={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},b=Symbol.for("react.portal"),E=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Po.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,Po.createPortal=function(T,O){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!O||O.nodeType!==1&&O.nodeType!==9&&O.nodeType!==11)throw Error("Target container is not a DOM element.");return i(T,O,null,_)},Po.flushSync=function(T){var O=E.T,_=S.p;try{if(E.T=null,S.p=2,T)return T()}finally{E.T=O,S.p=_,S.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Po.preconnect=function(T,O){typeof T=="string"&&T?O!=null&&typeof O!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",p(O)):O!=null&&typeof O.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(O.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(T)),typeof T=="string"&&(O?(O=O.crossOrigin,O=typeof O=="string"?O==="use-credentials"?O:"":void 0):O=null,S.d.C(T,O))},Po.prefetchDNS=function(T){if(typeof T!="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(T));else if(1<arguments.length){var O=arguments[1];typeof O=="object"&&O.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(O)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(O))}typeof T=="string"&&S.d.D(T)},Po.preinit=function(T,O){if(typeof T=="string"&&T?O==null||typeof O!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",p(O)):O.as!=="style"&&O.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',p(O.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(T)),typeof T=="string"&&O&&typeof O.as=="string"){var _=O.as,A=u(_,O.crossOrigin),D=typeof O.integrity=="string"?O.integrity:void 0,N=typeof O.fetchPriority=="string"?O.fetchPriority:void 0;_==="style"?S.d.S(T,typeof O.precedence=="string"?O.precedence:void 0,{crossOrigin:A,integrity:D,fetchPriority:N}):_==="script"&&S.d.X(T,{crossOrigin:A,integrity:D,fetchPriority:N,nonce:typeof O.nonce=="string"?O.nonce:void 0})}},Po.preinitModule=function(T,O){var _="";typeof T=="string"&&T||(_+=" The `href` argument encountered was "+f(T)+"."),O!==void 0&&typeof O!="object"?_+=" The `options` argument encountered was "+f(O)+".":O&&"as"in O&&O.as!=="script"&&(_+=" The `as` option encountered was "+p(O.as)+"."),_?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",_):(_=O&&typeof O.as=="string"?O.as:"script",_)==="script"||(_=p(_),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',_,T)),typeof T=="string"&&(typeof O=="object"&&O!==null?(O.as==null||O.as==="script")&&(_=u(O.as,O.crossOrigin),S.d.M(T,{crossOrigin:_,integrity:typeof O.integrity=="string"?O.integrity:void 0,nonce:typeof O.nonce=="string"?O.nonce:void 0})):O==null&&S.d.M(T))},Po.preload=function(T,O){var _="";if(typeof T=="string"&&T||(_+=" The `href` argument encountered was "+f(T)+"."),O==null||typeof O!="object"?_+=" The `options` argument encountered was "+f(O)+".":typeof O.as=="string"&&O.as||(_+=" The `as` option encountered was "+f(O.as)+"."),_&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',_),typeof T=="string"&&typeof O=="object"&&O!==null&&typeof O.as=="string"){_=O.as;var A=u(_,O.crossOrigin);S.d.L(T,_,{crossOrigin:A,integrity:typeof O.integrity=="string"?O.integrity:void 0,nonce:typeof O.nonce=="string"?O.nonce:void 0,type:typeof O.type=="string"?O.type:void 0,fetchPriority:typeof O.fetchPriority=="string"?O.fetchPriority:void 0,referrerPolicy:typeof O.referrerPolicy=="string"?O.referrerPolicy:void 0,imageSrcSet:typeof O.imageSrcSet=="string"?O.imageSrcSet:void 0,imageSizes:typeof O.imageSizes=="string"?O.imageSizes:void 0,media:typeof O.media=="string"?O.media:void 0})}},Po.preloadModule=function(T,O){var _="";typeof T=="string"&&T||(_+=" The `href` argument encountered was "+f(T)+"."),O!==void 0&&typeof O!="object"?_+=" The `options` argument encountered was "+f(O)+".":O&&"as"in O&&typeof O.as!="string"&&(_+=" The `as` option encountered was "+f(O.as)+"."),_&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',_),typeof T=="string"&&(O?(_=u(O.as,O.crossOrigin),S.d.m(T,{as:typeof O.as=="string"&&O.as!=="script"?O.as:void 0,crossOrigin:_,integrity:typeof O.integrity=="string"?O.integrity:void 0})):S.d.m(T))},Po.requestFormReset=function(T){S.d.r(T)},Po.unstable_batchedUpdates=function(T,O){return T(O)},Po.useFormState=function(T,O,_){return y().useFormState(T,O,_)},Po.useFormStatus=function(){return y().useHostTransitionStatus()},Po.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Po}var WC;function xT(){if(WC)return m1.exports;WC=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return process.env.NODE_ENV==="production"?(t(),m1.exports=JN()):m1.exports=KN(),m1.exports}var ex;function WN(){if(ex)return Ay;ex=1;var t=QC(),a=du(),i=xT();function u(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)l+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function p(o){var l=o,s=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(s=l.return),o=l.return;while(o)}return l.tag===3?s:null}function y(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function g(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function S(o){if(p(o)!==o)throw Error(u(188))}function b(o){var l=o.alternate;if(!l){if(l=p(o),l===null)throw Error(u(188));return l!==o?null:o}for(var s=o,d=l;;){var v=s.return;if(v===null)break;var w=v.alternate;if(w===null){if(d=v.return,d!==null){s=d;continue}break}if(v.child===w.child){for(w=v.child;w;){if(w===s)return S(v),o;if(w===d)return S(v),l;w=w.sibling}throw Error(u(188))}if(s.return!==d.return)s=v,d=w;else{for(var z=!1,$=v.child;$;){if($===s){z=!0,s=v,d=w;break}if($===d){z=!0,d=v,s=w;break}$=$.sibling}if(!z){for($=w.child;$;){if($===s){z=!0,s=w,d=v;break}if($===d){z=!0,d=w,s=v;break}$=$.sibling}if(!z)throw Error(u(189))}}if(s.alternate!==d)throw Error(u(190))}if(s.tag!==3)throw Error(u(188));return s.stateNode.current===s?o:l}function E(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=E(o),l!==null)return l;o=o.sibling}return null}var T=Object.assign,O=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),I=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function ie(o){return o===null||typeof o!="object"?null:(o=fe&&o[fe]||o["@@iterator"],typeof o=="function"?o:null)}var ee=Symbol.for("react.client.reference");function te(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ee?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case D:return"Fragment";case M:return"Profiler";case N:return"StrictMode";case H:return"Suspense";case Z:return"SuspenseList";case le:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case A:return"Portal";case I:return o.displayName||"Context";case q:return(o._context.displayName||"Context")+".Consumer";case Y:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case V:return l=o.displayName||null,l!==null?l:te(o.type)||"Memo";case X:l=o._payload,o=o._init;try{return te(o(l))}catch{}}return null}var J=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ne=[],ce=-1;function j(o){return{current:o}}function Q(o){0>ce||(o.current=ne[ce],ne[ce]=null,ce--)}function oe(o,l){ce++,ne[ce]=o.current,o.current=l}var de=j(null),ve=j(null),_e=j(null),Te=j(null);function Ue(o,l){switch(oe(_e,l),oe(ve,o),oe(de,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?gw(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=gw(l),o=ob(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Q(de),oe(de,o)}function Ge(){Q(de),Q(ve),Q(_e)}function We(o){o.memoizedState!==null&&oe(Te,o);var l=de.current,s=ob(l,o.type);l!==s&&(oe(ve,o),oe(de,s))}function Ne(o){ve.current===o&&(Q(de),Q(ve)),Te.current===o&&(Q(Te),rp._currentValue=F)}var Ze,lt;function Xe(o){if(Ze===void 0)try{throw Error()}catch(s){var l=s.stack.trim().match(/\n( *(at )?)/);Ze=l&&l[1]||"",lt=-1<s.stack.indexOf(`
24
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
25
+ `+Ze+o+lt}var ht=!1;function $e(o,l){if(!o||ht)return"";ht=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(l){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(ze){var Oe=ze}Reflect.construct(o,[],Be)}else{try{Be.call()}catch(ze){Oe=ze}o.call(Be.prototype)}}else{try{throw Error()}catch(ze){Oe=ze}(Be=o())&&typeof Be.catch=="function"&&Be.catch(function(){})}}catch(ze){if(ze&&Oe&&typeof ze.stack=="string")return[ze.stack,Oe.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=d.DetermineComponentFrameRoot(),z=w[0],$=w[1];if(z&&$){var se=z.split(`
26
+ `),Ee=$.split(`
27
+ `);for(v=d=0;d<se.length&&!se[d].includes("DetermineComponentFrameRoot");)d++;for(;v<Ee.length&&!Ee[v].includes("DetermineComponentFrameRoot");)v++;if(d===se.length||v===Ee.length)for(d=se.length-1,v=Ee.length-1;1<=d&&0<=v&&se[d]!==Ee[v];)v--;for(;1<=d&&0<=v;d--,v--)if(se[d]!==Ee[v]){if(d!==1||v!==1)do if(d--,v--,0>v||se[d]!==Ee[v]){var Le=`
28
+ `+se[d].replace(" at new "," at ");return o.displayName&&Le.includes("<anonymous>")&&(Le=Le.replace("<anonymous>",o.displayName)),Le}while(1<=d&&0<=v);break}}}finally{ht=!1,Error.prepareStackTrace=s}return(s=o?o.displayName||o.name:"")?Xe(s):""}function Qe(o,l){switch(o.tag){case 26:case 27:case 5:return Xe(o.type);case 16:return Xe("Lazy");case 13:return o.child!==l&&l!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return $e(o.type,!1);case 11:return $e(o.type.render,!1);case 1:return $e(o.type,!0);case 31:return Xe("Activity");default:return""}}function dt(o){try{var l="",s=null;do l+=Qe(o,s),s=o,o=o.return;while(o);return l}catch(d){return`
29
+ Error generating stack: `+d.message+`
30
+ `+d.stack}}var et=Object.prototype.hasOwnProperty,Ve=t.unstable_scheduleCallback,Re=t.unstable_cancelCallback,je=t.unstable_shouldYield,Ce=t.unstable_requestPaint,we=t.unstable_now,tt=t.unstable_getCurrentPriorityLevel,pt=t.unstable_ImmediatePriority,ct=t.unstable_UserBlockingPriority,yt=t.unstable_NormalPriority,ln=t.unstable_LowPriority,Rt=t.unstable_IdlePriority,Qt=t.log,xt=t.unstable_setDisableYieldValue,Nt=null,Ot=null;function Wt(o){if(typeof Qt=="function"&&xt(o),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Nt,o)}catch{}}var en=Math.clz32?Math.clz32:W,yn=Math.log,k=Math.LN2;function W(o){return o>>>=0,o===0?32:31-(yn(o)/k|0)|0}var Se=256,De=262144,Ie=4194304;function Pe(o){var l=o&42;if(l!==0)return l;switch(o&-o){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Fe(o,l,s){var d=o.pendingLanes;if(d===0)return 0;var v=0,w=o.suspendedLanes,z=o.pingedLanes;o=o.warmLanes;var $=d&134217727;return $!==0?(d=$&~w,d!==0?v=Pe(d):(z&=$,z!==0?v=Pe(z):s||(s=$&~o,s!==0&&(v=Pe(s))))):($=d&~w,$!==0?v=Pe($):z!==0?v=Pe(z):s||(s=d&~o,s!==0&&(v=Pe(s)))),v===0?0:l!==0&&l!==v&&(l&w)===0&&(w=v&-v,s=l&-l,w>=s||w===32&&(s&4194048)!==0)?l:v}function ut(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function ft(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tn(){var o=Ie;return Ie<<=1,(Ie&62914560)===0&&(Ie=4194304),o}function Tn(o){for(var l=[],s=0;31>s;s++)l.push(o);return l}function Zn(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Rn(o,l,s,d,v,w){var z=o.pendingLanes;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=s,o.entangledLanes&=s,o.errorRecoveryDisabledLanes&=s,o.shellSuspendCounter=0;var $=o.entanglements,se=o.expirationTimes,Ee=o.hiddenUpdates;for(s=z&~s;0<s;){var Le=31-en(s),Be=1<<Le;$[Le]=0,se[Le]=-1;var Oe=Ee[Le];if(Oe!==null)for(Ee[Le]=null,Le=0;Le<Oe.length;Le++){var ze=Oe[Le];ze!==null&&(ze.lane&=-536870913)}s&=~Be}d!==0&&Ea(o,d,0),w!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=w&~(z&~l))}function Ea(o,l,s){o.pendingLanes|=l,o.suspendedLanes&=~l;var d=31-en(l);o.entangledLanes|=l,o.entanglements[d]=o.entanglements[d]|1073741824|s&261930}function da(o,l){var s=o.entangledLanes|=l;for(o=o.entanglements;s;){var d=31-en(s),v=1<<d;v&l|o[d]&l&&(o[d]|=l),s&=~v}}function Ua(o,l){var s=l&-l;return s=(s&42)!==0?1:Jt(s),(s&(o.suspendedLanes|l))!==0?0:s}function Jt(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Dn(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function yo(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:lp(o.type))}function Jo(o,l){var s=B.p;try{return B.p=o,l()}finally{B.p=s}}var ra=Math.random().toString(36).slice(2),dn="__reactFiber$"+ra,vo="__reactProps$"+ra,Li="__reactContainer$"+ra,um="__reactEvents$"+ra,gv="__reactListeners$"+ra,oE="__reactHandles$"+ra,yv="__reactResources$"+ra,Bl="__reactMarker$"+ra;function sm(o){delete o[dn],delete o[vo],delete o[um],delete o[gv],delete o[oE]}function Rs(o){var l=o[dn];if(l)return l;for(var s=o.parentNode;s;){if(l=s[Li]||s[dn]){if(s=l.alternate,l.child!==null||s!==null&&s.child!==null)for(o=_l(o);o!==null;){if(s=o[dn])return s;o=_l(o)}return l}o=s,s=o.parentNode}return null}function Os(o){if(o=o[dn]||o[Li]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function Pc(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(u(33))}function Cs(o){var l=o[yv];return l||(l=o[yv]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function On(o){o[Bl]=!0}var xs=new Set,Ru={};function Ou(o,l){Gl(o,l),Gl(o+"Capture",l)}function Gl(o,l){for(Ru[o]=l,o=0;o<l.length;o++)xs.add(l[o])}var cm=RegExp("^[: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]*$"),fm={},Fc={};function Qc(o){return et.call(Fc,o)?!0:et.call(fm,o)?!1:cm.test(o)?Fc[o]=!0:(fm[o]=!0,!1)}function Jc(o,l,s){if(Qc(l))if(s===null)o.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var d=l.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+s)}}function dm(o,l,s){if(s===null)o.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+s)}}function Hi(o,l,s,d){if(d===null)o.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttributeNS(l,s,""+d)}}function dr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function hm(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function vv(o,l,s){var d=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,w=d.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return v.call(this)},set:function(z){s=""+z,w.call(this,z)}}),Object.defineProperty(o,l,{enumerable:d.enumerable}),{getValue:function(){return s},setValue:function(z){s=""+z},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function pm(o){if(!o._valueTracker){var l=hm(o)?"checked":"value";o._valueTracker=vv(o,l,""+o[l])}}function bv(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var s=l.getValue(),d="";return o&&(d=hm(o)?o.checked?"true":"false":o.value),o=d,o!==s?(l.setValue(o),!0):!1}function Pd(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var gO=/[\n"\\]/g;function hr(o){return o.replace(gO,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Fd(o,l,s,d,v,w,z,$){o.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?o.type=z:o.removeAttribute("type"),l!=null?z==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+dr(l)):o.value!==""+dr(l)&&(o.value=""+dr(l)):z!=="submit"&&z!=="reset"||o.removeAttribute("value"),l!=null?_s(o,z,dr(l)):s!=null?_s(o,z,dr(s)):d!=null&&o.removeAttribute("value"),v==null&&w!=null&&(o.defaultChecked=!!w),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?o.name=""+dr($):o.removeAttribute("name")}function Qd(o,l,s,d,v,w,z,$){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(o.type=w),l!=null||s!=null){if(!(w!=="submit"&&w!=="reset"||l!=null)){pm(o);return}s=s!=null?""+dr(s):"",l=l!=null?""+dr(l):s,$||l===o.value||(o.value=l),o.defaultValue=l}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,o.checked=$?o.checked:!!d,o.defaultChecked=!!d,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(o.name=z),pm(o)}function _s(o,l,s){l==="number"&&Pd(o.ownerDocument)===o||o.defaultValue===""+s||(o.defaultValue=""+s)}function Kc(o,l,s,d){if(o=o.options,l){l={};for(var v=0;v<s.length;v++)l["$"+s[v]]=!0;for(s=0;s<o.length;s++)v=l.hasOwnProperty("$"+o[s].value),o[s].selected!==v&&(o[s].selected=v),v&&d&&(o[s].defaultSelected=!0)}else{for(s=""+dr(s),l=null,v=0;v<o.length;v++){if(o[v].value===s){o[v].selected=!0,d&&(o[v].defaultSelected=!0);return}l!==null||o[v].disabled||(l=o[v])}l!==null&&(l.selected=!0)}}function Sv(o,l,s){if(l!=null&&(l=""+dr(l),l!==o.value&&(o.value=l),s==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=s!=null?""+dr(s):""}function Ev(o,l,s,d){if(l==null){if(d!=null){if(s!=null)throw Error(u(92));if(J(d)){if(1<d.length)throw Error(u(93));d=d[0]}s=d}s==null&&(s=""),l=s}s=dr(l),o.defaultValue=s,d=o.textContent,d===s&&d!==""&&d!==null&&(o.value=d),pm(o)}function Yl(o,l){if(l){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=l;return}}o.textContent=l}var rE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function lE(o,l,s){var d=l.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?d?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":d?o.setProperty(l,s):typeof s!="number"||s===0||rE.has(l)?l==="float"?o.cssFloat=s:o[l]=(""+s).trim():o[l]=s+"px"}function iE(o,l,s){if(l!=null&&typeof l!="object")throw Error(u(62));if(o=o.style,s!=null){for(var d in s)!s.hasOwnProperty(d)||l!=null&&l.hasOwnProperty(d)||(d.indexOf("--")===0?o.setProperty(d,""):d==="float"?o.cssFloat="":o[d]="");for(var v in l)d=l[v],l.hasOwnProperty(v)&&s[v]!==d&&lE(o,v,d)}else for(var w in l)l.hasOwnProperty(w)&&lE(o,w,l[w])}function wv(o){if(o.indexOf("-")===-1)return!1;switch(o){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 yO=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function kr(o){return Jd.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function ul(){}var mm=null;function gm(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Il=null,As=null;function Kd(o){var l=Os(o);if(l&&(o=l.stateNode)){var s=o[vo]||null;e:switch(o=l.stateNode,l.type){case"input":if(Fd(o,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),l=s.name,s.type==="radio"&&l!=null){for(s=o;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+hr(""+l)+'"][type="radio"]'),l=0;l<s.length;l++){var d=s[l];if(d!==o&&d.form===o.form){var v=d[vo]||null;if(!v)throw Error(u(90));Fd(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(l=0;l<s.length;l++)d=s[l],d.form===o.form&&bv(d)}break e;case"textarea":Sv(o,s.value,s.defaultValue);break e;case"select":l=s.value,l!=null&&Kc(o,!!s.multiple,l,!1)}}}var Wc=!1;function Tv(o,l,s){if(Wc)return o(l,s);Wc=!0;try{var d=o(l);return d}finally{if(Wc=!1,(Il!==null||As!==null)&&(Lf(),Il&&(l=Il,o=As,As=Il=null,Kd(l),o)))for(l=0;l<o.length;l++)Kd(o[l])}}function qa(o,l){var s=o.stateNode;if(s===null)return null;var d=s[vo]||null;if(d===null)return null;s=d[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(o=o.type,d=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!d;break e;default:o=!1}if(o)return null;if(s&&typeof s!="function")throw Error(u(231,l,typeof s));return s}var ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wd=!1;if(ki)try{var ef={};Object.defineProperty(ef,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",ef,ef),window.removeEventListener("test",ef,ef)}catch{Wd=!1}var Vi=null,Rv=null,ym=null;function Ov(){if(ym)return ym;var o,l=Rv,s=l.length,d,v="value"in Vi?Vi.value:Vi.textContent,w=v.length;for(o=0;o<s&&l[o]===v[o];o++);var z=s-o;for(d=1;d<=z&&l[s-d]===v[w-d];d++);return ym=v.slice(o,1<d?1-d:void 0)}function vm(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function eh(){return!0}function uE(){return!1}function so(o){function l(s,d,v,w,z){this._reactName=s,this._targetInst=v,this.type=d,this.nativeEvent=w,this.target=z,this.currentTarget=null;for(var $ in o)o.hasOwnProperty($)&&(s=o[$],this[$]=s?s(w):w[$]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?eh:uE,this.isPropagationStopped=uE,this}return T(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=eh)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=eh)},persist:function(){},isPersistent:eh}),l}var Cu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},th=so(Cu),tf=T({},Cu,{view:0,detail:0}),vO=so(tf),Cv,xv,nh,bm=T({},tf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vr,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==nh&&(nh&&o.type==="mousemove"?(Cv=o.screenX-nh.screenX,xv=o.screenY-nh.screenY):xv=Cv=0,nh=o),Cv)},movementY:function(o){return"movementY"in o?o.movementY:xv}}),nf=so(bm),sE=T({},bm,{dataTransfer:0}),cE=so(sE),fE=T({},tf,{relatedTarget:0}),Sm=so(fE),_v=T({},Cu,{animationName:0,elapsedTime:0,pseudoElement:0}),dE=so(_v),Ds=T({},Cu,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Ms=so(Ds),sl=T({},Cu,{data:0}),hE=so(sl),Av={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ql={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"},pE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cl(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=pE[o])?!!l[o]:!1}function Vr(){return cl}var Em=T({},tf,{key:function(o){if(o.key){var l=Av[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=vm(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?ql[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vr,charCode:function(o){return o.type==="keypress"?vm(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?vm(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),wm=so(Em),Dv=T({},bm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fl=so(Dv),bO=T({},tf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vr}),mE=so(bO),gE=T({},Cu,{propertyName:0,elapsedTime:0,pseudoElement:0}),SO=so(gE),Mv=T({},bm,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),EO=so(Mv),yE=T({},Cu,{newState:0,oldState:0}),zv=so(yE),Tm=[9,13,27,32],af=ki&&"CompositionEvent"in window,zs=null;ki&&"documentMode"in document&&(zs=document.documentMode);var bo=ki&&"TextEvent"in window&&!zs,Nv=ki&&(!af||zs&&8<zs&&11>=zs),ah=" ",xu=!1;function Rm(o,l){switch(o){case"keyup":return Tm.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uv(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ns=!1;function vE(o,l){switch(o){case"compositionend":return Uv(l);case"keypress":return l.which!==32?null:(xu=!0,ah);case"textInput":return o=l.data,o===ah&&xu?null:o;default:return null}}function wO(o,l){if(Ns)return o==="compositionend"||!af&&Rm(o,l)?(o=Ov(),ym=Rv=Vi=null,Ns=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Nv&&l.locale!=="ko"?null:l.data;default:return null}}var jv={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 $l(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!jv[o.type]:l==="textarea"}function Lv(o,l,s,d){Il?As?As.push(d):As=[d]:Il=d,l=Wh(l,"onChange"),0<l.length&&(s=new th("onChange","change",null,s,d),o.push({event:s,listeners:l}))}var Us=null,_u=null;function js(o){hw(o,0)}function of(o){var l=Pc(o);if(bv(l))return o}function Hv(o,l){if(o==="change")return l}var Om=!1;if(ki){var Do;if(ki){var dl="oninput"in document;if(!dl){var kv=document.createElement("div");kv.setAttribute("oninput","return;"),dl=typeof kv.oninput=="function"}Do=dl}else Do=!1;Om=Do&&(!document.documentMode||9<document.documentMode)}function Cm(){Us&&(Us.detachEvent("onpropertychange",xm),_u=Us=null)}function xm(o){if(o.propertyName==="value"&&of(_u)){var l=[];Lv(l,_u,o,gm(o)),Tv(js,l)}}function bE(o,l,s){o==="focusin"?(Cm(),Us=l,_u=s,Us.attachEvent("onpropertychange",xm)):o==="focusout"&&Cm()}function SE(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return of(_u)}function Au(o,l){if(o==="click")return of(l)}function Ls(o,l){if(o==="input"||o==="change")return of(l)}function EE(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var So=typeof Object.is=="function"?Object.is:EE;function Br(o,l){if(So(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var s=Object.keys(o),d=Object.keys(l);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var v=s[d];if(!et.call(l,v)||!So(o[v],l[v]))return!1}return!0}function Vv(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Bv(o,l){var s=Vv(o);o=0;for(var d;s;){if(s.nodeType===3){if(d=o+s.textContent.length,o<=l&&d>=l)return{node:s,offset:l-o};o=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Vv(s)}}function Hs(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Hs(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Du(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=Pd(o.document);l instanceof o.HTMLIFrameElement;){try{var s=typeof l.contentWindow.location.href=="string"}catch{s=!1}if(s)o=l.contentWindow;else break;l=Pd(o.document)}return l}function oh(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var rh=ki&&"documentMode"in document&&11>=document.documentMode,Mu=null,rf=null,Gr=null,hl=!1;function _m(o,l,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;hl||Mu==null||Mu!==Pd(d)||(d=Mu,"selectionStart"in d&&oh(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Gr&&Br(Gr,d)||(Gr=d,d=Wh(rf,"onSelect"),0<d.length&&(l=new th("onSelect","select",null,l,s),o.push({event:l,listeners:d}),l.target=Mu)))}function Bi(o,l){var s={};return s[o.toLowerCase()]=l.toLowerCase(),s["Webkit"+o]="webkit"+l,s["Moz"+o]="moz"+l,s}var pl={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionrun:Bi("Transition","TransitionRun"),transitionstart:Bi("Transition","TransitionStart"),transitioncancel:Bi("Transition","TransitionCancel"),transitionend:Bi("Transition","TransitionEnd")},lf={},zu={};ki&&(zu=document.createElement("div").style,"AnimationEvent"in window||(delete pl.animationend.animation,delete pl.animationiteration.animation,delete pl.animationstart.animation),"TransitionEvent"in window||delete pl.transitionend.transition);function Sn(o){if(lf[o])return lf[o];if(!pl[o])return o;var l=pl[o],s;for(s in l)if(l.hasOwnProperty(s)&&s in zu)return lf[o]=l[s];return o}var lh=Sn("animationend"),Gv=Sn("animationiteration"),Am=Sn("animationstart"),ks=Sn("transitionrun"),ih=Sn("transitionstart"),Zl=Sn("transitioncancel"),wE=Sn("transitionend"),Xl=new Map,uf="abort auxClick beforeToggle 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(" ");uf.push("scrollEnd");function Mo(o,l){Xl.set(o,l),Ou(l,[o])}var Vs=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Qn=[],$a=0,Yr=0;function pr(){for(var o=$a,l=Yr=$a=0;l<o;){var s=Qn[l];Qn[l++]=null;var d=Qn[l];Qn[l++]=null;var v=Qn[l];Qn[l++]=null;var w=Qn[l];if(Qn[l++]=null,d!==null&&v!==null){var z=d.pending;z===null?v.next=v:(v.next=z.next,z.next=v),d.pending=v}w!==0&&Dm(s,v,w)}}function mr(o,l,s,d){Qn[$a++]=o,Qn[$a++]=l,Qn[$a++]=s,Qn[$a++]=d,Yr|=d,o.lanes|=d,o=o.alternate,o!==null&&(o.lanes|=d)}function Ir(o,l,s,d){return mr(o,l,s,d),uh(o)}function Gi(o,l){return mr(o,null,null,l),uh(o)}function Dm(o,l,s){o.lanes|=s;var d=o.alternate;d!==null&&(d.lanes|=s);for(var v=!1,w=o.return;w!==null;)w.childLanes|=s,d=w.alternate,d!==null&&(d.childLanes|=s),w.tag===22&&(o=w.stateNode,o===null||o._visibility&1||(v=!0)),o=w,w=w.return;return o.tag===3?(w=o.stateNode,v&&l!==null&&(v=31-en(s),o=w.hiddenUpdates,d=o[v],d===null?o[v]=[l]:d.push(l),l.lane=s|536870912),w):null}function uh(o){if(50<jf)throw jf=0,qh=null,Error(u(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var zo={};function TE(o,l,s,d){this.tag=o,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ha(o,l,s,d){return new TE(o,l,s,d)}function Bs(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Yi(o,l){var s=o.alternate;return s===null?(s=ha(o.tag,l,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=l,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&65011712,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,l=o.dependencies,s.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s.refCleanup=o.refCleanup,s}function Yv(o,l){o.flags&=65011714;var s=o.alternate;return s===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,l=s.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Mm(o,l,s,d,v,w){var z=0;if(d=o,typeof o=="function")Bs(o)&&(z=1);else if(typeof o=="string")z=fb(o,s,de.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case le:return o=ha(31,s,l,v),o.elementType=le,o.lanes=w,o;case D:return Ii(s.children,v,w,l);case N:z=8,v|=24;break;case M:return o=ha(12,s,l,v|2),o.elementType=M,o.lanes=w,o;case H:return o=ha(13,s,l,v),o.elementType=H,o.lanes=w,o;case Z:return o=ha(19,s,l,v),o.elementType=Z,o.lanes=w,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case I:z=10;break e;case q:z=9;break e;case Y:z=11;break e;case V:z=14;break e;case X:z=16,d=null;break e}z=29,s=Error(u(130,o===null?"null":typeof o,"")),d=null}return l=ha(z,s,l,v),l.elementType=o,l.type=d,l.lanes=w,l}function Ii(o,l,s,d){return o=ha(7,o,d,l),o.lanes=s,o}function sf(o,l,s){return o=ha(6,o,null,l),o.lanes=s,o}function Iv(o){var l=ha(18,null,null,0);return l.stateNode=o,l}function zm(o,l,s){return l=ha(4,o.children!==null?o.children:[],o.key,l),l.lanes=s,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var qv=new WeakMap;function gr(o,l){if(typeof o=="object"&&o!==null){var s=qv.get(o);return s!==void 0?s:(l={value:o,source:l,stack:dt(l)},qv.set(o,l),l)}return{value:o,source:l,stack:dt(l)}}var yr=[],Gs=0,sh=null,wa=0,Ko=[],No=0,ml=null,Wo=1,gl="";function qr(o,l){yr[Gs++]=wa,yr[Gs++]=sh,sh=o,wa=l}function $v(o,l,s){Ko[No++]=Wo,Ko[No++]=gl,Ko[No++]=ml,ml=o;var d=Wo;o=gl;var v=32-en(d)-1;d&=~(1<<v),s+=1;var w=32-en(l)+v;if(30<w){var z=v-v%5;w=(d&(1<<z)-1).toString(32),d>>=z,v-=z,Wo=1<<32-en(l)+v|s<<v|d,gl=w+o}else Wo=1<<w|s<<v|d,gl=o}function cf(o){o.return!==null&&(qr(o,1),$v(o,1,0))}function Nm(o){for(;o===sh;)sh=yr[--Gs],yr[Gs]=null,wa=yr[--Gs],yr[Gs]=null;for(;o===ml;)ml=Ko[--No],Ko[No]=null,gl=Ko[--No],Ko[No]=null,Wo=Ko[--No],Ko[No]=null}function ch(o,l){Ko[No++]=Wo,Ko[No++]=gl,Ko[No++]=ml,Wo=l.id,gl=l.overflow,ml=o}var Za=null,Bn=null,nn=!1,Pl=null,ja=!1,Fl=Error(u(519));function $r(o){var l=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw df(gr(l,o)),Fl}function fh(o){var l=o.stateNode,s=o.type,d=o.memoizedProps;switch(l[dn]=o,l[vo]=d,s){case"dialog":Kt("cancel",l),Kt("close",l);break;case"iframe":case"object":case"embed":Kt("load",l);break;case"video":case"audio":for(s=0;s<Gf.length;s++)Kt(Gf[s],l);break;case"source":Kt("error",l);break;case"img":case"image":case"link":Kt("error",l),Kt("load",l);break;case"details":Kt("toggle",l);break;case"input":Kt("invalid",l),Qd(l,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Kt("invalid",l);break;case"textarea":Kt("invalid",l),Ev(l,d.value,d.defaultValue,d.children)}s=d.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||l.textContent===""+s||d.suppressHydrationWarning===!0||eb(l.textContent,s)?(d.popover!=null&&(Kt("beforetoggle",l),Kt("toggle",l)),d.onScroll!=null&&Kt("scroll",l),d.onScrollEnd!=null&&Kt("scrollend",l),d.onClick!=null&&(l.onclick=ul),l=!0):l=!1,l||$r(o,!0)}function ff(o){for(Za=o.return;Za;)switch(Za.tag){case 5:case 31:case 13:ja=!1;return;case 27:case 3:ja=!0;return;default:Za=Za.return}}function Ql(o){if(o!==Za)return!1;if(!nn)return ff(o),nn=!0,!1;var l=o.tag,s;if((s=l!==3&&l!==27)&&((s=l===5)&&(s=o.type,s=!(s!=="form"&&s!=="button")||If(o.type,o.memoizedProps)),s=!s),s&&Bn&&$r(o),ff(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));Bn=Lg(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));Bn=Lg(o)}else l===27?(l=Bn,xl(o.type)?(o=np,np=null,Bn=o):Bn=l):Bn=Za?Io(o.stateNode.nextSibling):null;return!0}function Nu(){Bn=Za=null,nn=!1}function Zv(){var o=Pl;return o!==null&&(ua===null?ua=o:ua.push.apply(ua,o),Pl=null),o}function df(o){Pl===null?Pl=[o]:Pl.push(o)}var Um=j(null),qi=null,yl=null;function Uo(o,l,s){oe(Um,l._currentValue),l._currentValue=s}function vl(o){o._currentValue=Um.current,Q(Um)}function jm(o,l,s){for(;o!==null;){var d=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,d!==null&&(d.childLanes|=l)):d!==null&&(d.childLanes&l)!==l&&(d.childLanes|=l),o===s)break;o=o.return}}function Jl(o,l,s,d){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var w=v.dependencies;if(w!==null){var z=v.child;w=w.firstContext;e:for(;w!==null;){var $=w;w=v;for(var se=0;se<l.length;se++)if($.context===l[se]){w.lanes|=s,$=w.alternate,$!==null&&($.lanes|=s),jm(w.return,s,o),d||(z=null);break e}w=$.next}}else if(v.tag===18){if(z=v.return,z===null)throw Error(u(341));z.lanes|=s,w=z.alternate,w!==null&&(w.lanes|=s),jm(z,s,o),z=null}else z=v.child;if(z!==null)z.return=v;else for(z=v;z!==null;){if(z===o){z=null;break}if(v=z.sibling,v!==null){v.return=z.return,z=v;break}z=z.return}v=z}}function Xa(o,l,s,d){o=null;for(var v=l,w=!1;v!==null;){if(!w){if((v.flags&524288)!==0)w=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var z=v.alternate;if(z===null)throw Error(u(387));if(z=z.memoizedProps,z!==null){var $=v.type;So(v.pendingProps.value,z.value)||(o!==null?o.push($):o=[$])}}else if(v===Te.current){if(z=v.alternate,z===null)throw Error(u(387));z.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(rp):o=[rp])}v=v.return}o!==null&&Jl(l,o,s,d),l.flags|=262144}function Ys(o){for(o=o.firstContext;o!==null;){if(!So(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Dt(o){qi=o,yl=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Ye(o){return dh(qi,o)}function $i(o,l){return qi===null&&Dt(o),dh(o,l)}function dh(o,l){var s=l._currentValue;if(l={context:l,memoizedValue:s,next:null},yl===null){if(o===null)throw Error(u(308));yl=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else yl=yl.next=l;return s}var pa=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(s,d){o.push(d)}};this.abort=function(){l.aborted=!0,o.forEach(function(s){return s()})}},Xv=t.unstable_scheduleCallback,Pv=t.unstable_NormalPriority,Ta={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hh(){return{controller:new pa,data:new Map,refCount:0}}function ph(o){o.refCount--,o.refCount===0&&Xv(Pv,function(){o.controller.abort()})}var Is=null,mh=0,Uu=0,_a=null;function Cn(o,l){if(Is===null){var s=Is=[];mh=0,Uu=_g(),_a={status:"pending",value:void 0,then:function(d){s.push(d)}}}return mh++,l.then(gh,gh),l}function gh(){if(--mh===0&&Is!==null){_a!==null&&(_a.status="fulfilled");var o=Is;Is=null,Uu=0,_a=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function yh(o,l){var s=[],d={status:"pending",value:null,reason:null,then:function(v){s.push(v)}};return o.then(function(){d.status="fulfilled",d.value=l;for(var v=0;v<s.length;v++)(0,s[v])(l)},function(v){for(d.status="rejected",d.reason=v,v=0;v<s.length;v++)(0,s[v])(void 0)}),d}var Zi=L.S;L.S=function(o,l){G0=we(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Cn(o,l),Zi!==null&&Zi(o,l)};var vr=j(null);function br(){var o=vr.current;return o!==null?o:Nn.pooledCache}function hf(o,l){l===null?oe(vr,vr.current):oe(vr,l.pool)}function qs(){var o=br();return o===null?null:{parent:Ta._currentValue,pool:o}}var ju=Error(u(460)),$s=Error(u(474)),pf=Error(u(542)),Zs={then:function(){}};function Fv(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Qv(o,l,s){switch(s=o[s],s===void 0?o.push(l):s!==l&&(l.then(ul,ul),l=s),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,Lm(o),o;default:if(typeof l.status=="string")l.then(ul,ul);else{if(o=Nn,o!==null&&100<o.shellSuspendCounter)throw Error(u(482));o=l,o.status="pending",o.then(function(d){if(l.status==="pending"){var v=l;v.status="fulfilled",v.value=d}},function(d){if(l.status==="pending"){var v=l;v.status="rejected",v.reason=d}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,Lm(o),o}throw Hu=l,ju}}function Lu(o){try{var l=o._init;return l(o._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Hu=s,ju):s}}var Hu=null;function Jv(){if(Hu===null)throw Error(u(459));var o=Hu;return Hu=null,o}function Lm(o){if(o===ju||o===pf)throw Error(u(483))}var ku=null,Xs=0;function vh(o){var l=Xs;return Xs+=1,ku===null&&(ku=[]),Qv(ku,o,l)}function mf(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function bh(o,l){throw l.$$typeof===O?Error(u(525)):(o=Object.prototype.toString.call(l),Error(u(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function RE(o){function l(ye,me){if(o){var be=ye.deletions;be===null?(ye.deletions=[me],ye.flags|=16):be.push(me)}}function s(ye,me){if(!o)return null;for(;me!==null;)l(ye,me),me=me.sibling;return null}function d(ye){for(var me=new Map;ye!==null;)ye.key!==null?me.set(ye.key,ye):me.set(ye.index,ye),ye=ye.sibling;return me}function v(ye,me){return ye=Yi(ye,me),ye.index=0,ye.sibling=null,ye}function w(ye,me,be){return ye.index=be,o?(be=ye.alternate,be!==null?(be=be.index,be<me?(ye.flags|=67108866,me):be):(ye.flags|=67108866,me)):(ye.flags|=1048576,me)}function z(ye){return o&&ye.alternate===null&&(ye.flags|=67108866),ye}function $(ye,me,be,ke){return me===null||me.tag!==6?(me=sf(be,ye.mode,ke),me.return=ye,me):(me=v(me,be),me.return=ye,me)}function se(ye,me,be,ke){var vt=be.type;return vt===D?Le(ye,me,be.props.children,ke,be.key):me!==null&&(me.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===X&&Lu(vt)===me.type)?(me=v(me,be.props),mf(me,be),me.return=ye,me):(me=Mm(be.type,be.key,be.props,null,ye.mode,ke),mf(me,be),me.return=ye,me)}function Ee(ye,me,be,ke){return me===null||me.tag!==4||me.stateNode.containerInfo!==be.containerInfo||me.stateNode.implementation!==be.implementation?(me=zm(be,ye.mode,ke),me.return=ye,me):(me=v(me,be.children||[]),me.return=ye,me)}function Le(ye,me,be,ke,vt){return me===null||me.tag!==7?(me=Ii(be,ye.mode,ke,vt),me.return=ye,me):(me=v(me,be),me.return=ye,me)}function Be(ye,me,be){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return me=sf(""+me,ye.mode,be),me.return=ye,me;if(typeof me=="object"&&me!==null){switch(me.$$typeof){case _:return be=Mm(me.type,me.key,me.props,null,ye.mode,be),mf(be,me),be.return=ye,be;case A:return me=zm(me,ye.mode,be),me.return=ye,me;case X:return me=Lu(me),Be(ye,me,be)}if(J(me)||ie(me))return me=Ii(me,ye.mode,be,null),me.return=ye,me;if(typeof me.then=="function")return Be(ye,vh(me),be);if(me.$$typeof===I)return Be(ye,$i(ye,me),be);bh(ye,me)}return null}function Oe(ye,me,be,ke){var vt=me!==null?me.key:null;if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return vt!==null?null:$(ye,me,""+be,ke);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case _:return be.key===vt?se(ye,me,be,ke):null;case A:return be.key===vt?Ee(ye,me,be,ke):null;case X:return be=Lu(be),Oe(ye,me,be,ke)}if(J(be)||ie(be))return vt!==null?null:Le(ye,me,be,ke,null);if(typeof be.then=="function")return Oe(ye,me,vh(be),ke);if(be.$$typeof===I)return Oe(ye,me,$i(ye,be),ke);bh(ye,be)}return null}function ze(ye,me,be,ke,vt){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return ye=ye.get(be)||null,$(me,ye,""+ke,vt);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case _:return ye=ye.get(ke.key===null?be:ke.key)||null,se(me,ye,ke,vt);case A:return ye=ye.get(ke.key===null?be:ke.key)||null,Ee(me,ye,ke,vt);case X:return ke=Lu(ke),ze(ye,me,be,ke,vt)}if(J(ke)||ie(ke))return ye=ye.get(be)||null,Le(me,ye,ke,vt,null);if(typeof ke.then=="function")return ze(ye,me,be,vh(ke),vt);if(ke.$$typeof===I)return ze(ye,me,be,$i(me,ke),vt);bh(me,ke)}return null}function st(ye,me,be,ke){for(var vt=null,mn=null,mt=me,jt=me=0,Vt=null;mt!==null&&jt<be.length;jt++){mt.index>jt?(Vt=mt,mt=null):Vt=mt.sibling;var bn=Oe(ye,mt,be[jt],ke);if(bn===null){mt===null&&(mt=Vt);break}o&&mt&&bn.alternate===null&&l(ye,mt),me=w(bn,me,jt),mn===null?vt=bn:mn.sibling=bn,mn=bn,mt=Vt}if(jt===be.length)return s(ye,mt),nn&&qr(ye,jt),vt;if(mt===null){for(;jt<be.length;jt++)mt=Be(ye,be[jt],ke),mt!==null&&(me=w(mt,me,jt),mn===null?vt=mt:mn.sibling=mt,mn=mt);return nn&&qr(ye,jt),vt}for(mt=d(mt);jt<be.length;jt++)Vt=ze(mt,ye,jt,be[jt],ke),Vt!==null&&(o&&Vt.alternate!==null&&mt.delete(Vt.key===null?jt:Vt.key),me=w(Vt,me,jt),mn===null?vt=Vt:mn.sibling=Vt,mn=Vt);return o&&mt.forEach(function(Dl){return l(ye,Dl)}),nn&&qr(ye,jt),vt}function Et(ye,me,be,ke){if(be==null)throw Error(u(151));for(var vt=null,mn=null,mt=me,jt=me=0,Vt=null,bn=be.next();mt!==null&&!bn.done;jt++,bn=be.next()){mt.index>jt?(Vt=mt,mt=null):Vt=mt.sibling;var Dl=Oe(ye,mt,bn.value,ke);if(Dl===null){mt===null&&(mt=Vt);break}o&&mt&&Dl.alternate===null&&l(ye,mt),me=w(Dl,me,jt),mn===null?vt=Dl:mn.sibling=Dl,mn=Dl,mt=Vt}if(bn.done)return s(ye,mt),nn&&qr(ye,jt),vt;if(mt===null){for(;!bn.done;jt++,bn=be.next())bn=Be(ye,bn.value,ke),bn!==null&&(me=w(bn,me,jt),mn===null?vt=bn:mn.sibling=bn,mn=bn);return nn&&qr(ye,jt),vt}for(mt=d(mt);!bn.done;jt++,bn=be.next())bn=ze(mt,ye,jt,bn.value,ke),bn!==null&&(o&&bn.alternate!==null&&mt.delete(bn.key===null?jt:bn.key),me=w(bn,me,jt),mn===null?vt=bn:mn.sibling=bn,mn=bn);return o&&mt.forEach(function(_w){return l(ye,_w)}),nn&&qr(ye,jt),vt}function jn(ye,me,be,ke){if(typeof be=="object"&&be!==null&&be.type===D&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case _:e:{for(var vt=be.key;me!==null;){if(me.key===vt){if(vt=be.type,vt===D){if(me.tag===7){s(ye,me.sibling),ke=v(me,be.props.children),ke.return=ye,ye=ke;break e}}else if(me.elementType===vt||typeof vt=="object"&&vt!==null&&vt.$$typeof===X&&Lu(vt)===me.type){s(ye,me.sibling),ke=v(me,be.props),mf(ke,be),ke.return=ye,ye=ke;break e}s(ye,me);break}else l(ye,me);me=me.sibling}be.type===D?(ke=Ii(be.props.children,ye.mode,ke,be.key),ke.return=ye,ye=ke):(ke=Mm(be.type,be.key,be.props,null,ye.mode,ke),mf(ke,be),ke.return=ye,ye=ke)}return z(ye);case A:e:{for(vt=be.key;me!==null;){if(me.key===vt)if(me.tag===4&&me.stateNode.containerInfo===be.containerInfo&&me.stateNode.implementation===be.implementation){s(ye,me.sibling),ke=v(me,be.children||[]),ke.return=ye,ye=ke;break e}else{s(ye,me);break}else l(ye,me);me=me.sibling}ke=zm(be,ye.mode,ke),ke.return=ye,ye=ke}return z(ye);case X:return be=Lu(be),jn(ye,me,be,ke)}if(J(be))return st(ye,me,be,ke);if(ie(be)){if(vt=ie(be),typeof vt!="function")throw Error(u(150));return be=vt.call(be),Et(ye,me,be,ke)}if(typeof be.then=="function")return jn(ye,me,vh(be),ke);if(be.$$typeof===I)return jn(ye,me,$i(ye,be),ke);bh(ye,be)}return typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint"?(be=""+be,me!==null&&me.tag===6?(s(ye,me.sibling),ke=v(me,be),ke.return=ye,ye=ke):(s(ye,me),ke=sf(be,ye.mode,ke),ke.return=ye,ye=ke),z(ye)):s(ye,me)}return function(ye,me,be,ke){try{Xs=0;var vt=jn(ye,me,be,ke);return ku=null,vt}catch(mt){if(mt===ju||mt===pf)throw mt;var mn=ha(29,mt,null,ye.mode);return mn.lanes=ke,mn.return=ye,mn}}}var Vu=RE(!0),Kv=RE(!1),Xi=!1;function Sh(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hm(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Pi(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Sr(o,l,s){var d=o.updateQueue;if(d===null)return null;if(d=d.shared,(vn&2)!==0){var v=d.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),d.pending=l,l=uh(o),Dm(o,null,s),l}return mr(o,d,l,s),uh(o)}function Bu(o,l,s){if(l=l.updateQueue,l!==null&&(l=l.shared,(s&4194048)!==0)){var d=l.lanes;d&=o.pendingLanes,s|=d,l.lanes=s,da(o,s)}}function km(o,l){var s=o.updateQueue,d=o.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var v=null,w=null;if(s=s.firstBaseUpdate,s!==null){do{var z={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};w===null?v=w=z:w=w.next=z,s=s.next}while(s!==null);w===null?v=w=l:w=w.next=l}else v=w=l;s={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:w,shared:d.shared,callbacks:d.callbacks},o.updateQueue=s;return}o=s.lastBaseUpdate,o===null?s.firstBaseUpdate=l:o.next=l,s.lastBaseUpdate=l}var Wv=!1;function Gu(){if(Wv){var o=_a;if(o!==null)throw o}}function Kl(o,l,s,d){Wv=!1;var v=o.updateQueue;Xi=!1;var w=v.firstBaseUpdate,z=v.lastBaseUpdate,$=v.shared.pending;if($!==null){v.shared.pending=null;var se=$,Ee=se.next;se.next=null,z===null?w=Ee:z.next=Ee,z=se;var Le=o.alternate;Le!==null&&(Le=Le.updateQueue,$=Le.lastBaseUpdate,$!==z&&($===null?Le.firstBaseUpdate=Ee:$.next=Ee,Le.lastBaseUpdate=se))}if(w!==null){var Be=v.baseState;z=0,Le=Ee=se=null,$=w;do{var Oe=$.lane&-536870913,ze=Oe!==$.lane;if(ze?(Zt&Oe)===Oe:(d&Oe)===Oe){Oe!==0&&Oe===Uu&&(Wv=!0),Le!==null&&(Le=Le.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var st=o,Et=$;Oe=l;var jn=s;switch(Et.tag){case 1:if(st=Et.payload,typeof st=="function"){Be=st.call(jn,Be,Oe);break e}Be=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=Et.payload,Oe=typeof st=="function"?st.call(jn,Be,Oe):st,Oe==null)break e;Be=T({},Be,Oe);break e;case 2:Xi=!0}}Oe=$.callback,Oe!==null&&(o.flags|=64,ze&&(o.flags|=8192),ze=v.callbacks,ze===null?v.callbacks=[Oe]:ze.push(Oe))}else ze={lane:Oe,tag:$.tag,payload:$.payload,callback:$.callback,next:null},Le===null?(Ee=Le=ze,se=Be):Le=Le.next=ze,z|=Oe;if($=$.next,$===null){if($=v.shared.pending,$===null)break;ze=$,$=ze.next,ze.next=null,v.lastBaseUpdate=ze,v.shared.pending=null}}while(!0);Le===null&&(se=Be),v.baseState=se,v.firstBaseUpdate=Ee,v.lastBaseUpdate=Le,w===null&&(v.shared.lanes=0),Ol|=z,o.lanes=z,o.memoizedState=Be}}function Vm(o,l){if(typeof o!="function")throw Error(u(191,o));o.call(l)}function Yu(o,l){var s=o.callbacks;if(s!==null)for(o.callbacks=null,o=0;o<s.length;o++)Vm(s[o],l)}var La=j(null),Ps=j(0);function OE(o,l){o=Rl,oe(Ps,o),oe(La,l),Rl=o|l.baseLanes}function Eh(){oe(Ps,Rl),oe(La,La.current)}function gf(){Rl=Ps.current,Q(La),Q(Ps)}var jo=j(null),Er=null;function Wl(o){var l=o.alternate;oe(Jn,Jn.current&1),oe(jo,o),Er===null&&(l===null||La.current!==null||l.memoizedState!==null)&&(Er=o)}function yf(o){oe(Jn,Jn.current),oe(jo,o),Er===null&&(Er=o)}function Bm(o){o.tag===22?(oe(Jn,Jn.current),oe(jo,o),Er===null&&(Er=o)):bl()}function bl(){oe(Jn,Jn.current),oe(jo,jo.current)}function Lo(o){Q(jo),Er===o&&(Er=null),Q(Jn)}var Jn=j(0);function vf(o){for(var l=o;l!==null;){if(l.tag===13){var s=l.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Fr(s)||es(s)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ei=0,Lt=null,xn=null,Ra=null,Fs=!1,Qs=!1,Fi=!1,wh=0,bf=0,Iu=null,CE=0;function la(){throw Error(u(321))}function Qi(o,l){if(l===null)return!1;for(var s=0;s<l.length&&s<o.length;s++)if(!So(o[s],l[s]))return!1;return!0}function Th(o,l,s,d,v,w){return ei=w,Lt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,L.H=o===null||o.memoizedState===null?UE:ag,Fi=!1,w=s(d,v),Fi=!1,Qs&&(w=xE(l,s,d,v)),Gm(o),w}function Gm(o){L.H=zh;var l=xn!==null&&xn.next!==null;if(ei=0,Ra=xn=Lt=null,Fs=!1,bf=0,Iu=null,l)throw Error(u(300));o===null||Oa||(o=o.dependencies,o!==null&&Ys(o)&&(Oa=!0))}function xE(o,l,s,d){Lt=o;var v=0;do{if(Qs&&(Iu=null),bf=0,Qs=!1,25<=v)throw Error(u(301));if(v+=1,Ra=xn=null,o.updateQueue!=null){var w=o.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}L.H=jE,w=l(s,d)}while(Qs);return w}function TO(){var o=L.H,l=o.useState()[0];return l=typeof l.then=="function"?Ks(l):l,o=o.useState()[0],(xn!==null?xn.memoizedState:null)!==o&&(Lt.flags|=1024),l}function Ym(){var o=wh!==0;return wh=0,o}function Js(o,l,s){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~s}function Rh(o){if(Fs){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Fs=!1}ei=0,Ra=xn=Lt=null,Qs=!1,bf=wh=0,Iu=null}function Pa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ra===null?Lt.memoizedState=Ra=o:Ra=Ra.next=o,Ra}function ma(){if(xn===null){var o=Lt.alternate;o=o!==null?o.memoizedState:null}else o=xn.next;var l=Ra===null?Lt.memoizedState:Ra.next;if(l!==null)Ra=l,xn=o;else{if(o===null)throw Lt.alternate===null?Error(u(467)):Error(u(310));xn=o,o={memoizedState:xn.memoizedState,baseState:xn.baseState,baseQueue:xn.baseQueue,queue:xn.queue,next:null},Ra===null?Lt.memoizedState=Ra=o:Ra=Ra.next=o}return Ra}function Oh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ks(o){var l=bf;return bf+=1,Iu===null&&(Iu=[]),o=Qv(Iu,o,l),l=Lt,(Ra===null?l.memoizedState:Ra.next)===null&&(l=l.alternate,L.H=l===null||l.memoizedState===null?UE:ag),o}function Sf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Ks(o);if(o.$$typeof===I)return Ye(o)}throw Error(u(438,String(o)))}function Im(o){var l=null,s=Lt.updateQueue;if(s!==null&&(l=s.memoCache),l==null){var d=Lt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(l={data:d.data.map(function(v){return v.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),s===null&&(s=Oh(),Lt.updateQueue=s),s.memoCache=l,s=l.data[l.index],s===void 0)for(s=l.data[l.index]=Array(o),d=0;d<o;d++)s[d]=K;return l.index++,s}function ti(o,l){return typeof l=="function"?l(o):l}function ni(o){var l=ma();return qm(l,xn,o)}function qm(o,l,s){var d=o.queue;if(d===null)throw Error(u(311));d.lastRenderedReducer=s;var v=o.baseQueue,w=d.pending;if(w!==null){if(v!==null){var z=v.next;v.next=w.next,w.next=z}l.baseQueue=v=w,d.pending=null}if(w=o.baseState,v===null)o.memoizedState=w;else{l=v.next;var $=z=null,se=null,Ee=l,Le=!1;do{var Be=Ee.lane&-536870913;if(Be!==Ee.lane?(Zt&Be)===Be:(ei&Be)===Be){var Oe=Ee.revertLane;if(Oe===0)se!==null&&(se=se.next={lane:0,revertLane:0,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),Be===Uu&&(Le=!0);else if((ei&Oe)===Oe){Ee=Ee.next,Oe===Uu&&(Le=!0);continue}else Be={lane:0,revertLane:Ee.revertLane,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},se===null?($=se=Be,z=w):se=se.next=Be,Lt.lanes|=Oe,Ol|=Oe;Be=Ee.action,Fi&&s(w,Be),w=Ee.hasEagerState?Ee.eagerState:s(w,Be)}else Oe={lane:Be,revertLane:Ee.revertLane,gesture:Ee.gesture,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},se===null?($=se=Oe,z=w):se=se.next=Oe,Lt.lanes|=Be,Ol|=Be;Ee=Ee.next}while(Ee!==null&&Ee!==l);if(se===null?z=w:se.next=$,!So(w,o.memoizedState)&&(Oa=!0,Le&&(s=_a,s!==null)))throw s;o.memoizedState=w,o.baseState=z,o.baseQueue=se,d.lastRenderedState=w}return v===null&&(d.lanes=0),[o.memoizedState,d.dispatch]}function $m(o){var l=ma(),s=l.queue;if(s===null)throw Error(u(311));s.lastRenderedReducer=o;var d=s.dispatch,v=s.pending,w=l.memoizedState;if(v!==null){s.pending=null;var z=v=v.next;do w=o(w,z.action),z=z.next;while(z!==v);So(w,l.memoizedState)||(Oa=!0),l.memoizedState=w,l.baseQueue===null&&(l.baseState=w),s.lastRenderedState=w}return[w,d]}function e0(o,l,s){var d=Lt,v=ma(),w=nn;if(w){if(s===void 0)throw Error(u(407));s=s()}else s=l();var z=!So((xn||v).memoizedState,s);if(z&&(v.memoizedState=s,Oa=!0),v=v.queue,Qm(Zm.bind(null,d,v,o),[o]),v.getSnapshot!==l||z||Ra!==null&&Ra.memoizedState.tag&1){if(d.flags|=2048,ec(9,{destroy:void 0},t0.bind(null,d,v,s,l),null),Nn===null)throw Error(u(349));w||(ei&127)!==0||Ch(d,l,s)}return s}function Ch(o,l,s){o.flags|=16384,o={getSnapshot:l,value:s},l=Lt.updateQueue,l===null?(l=Oh(),Lt.updateQueue=l,l.stores=[o]):(s=l.stores,s===null?l.stores=[o]:s.push(o))}function t0(o,l,s,d){l.value=s,l.getSnapshot=d,Xm(l)&&Pm(o)}function Zm(o,l,s){return s(function(){Xm(l)&&Pm(o)})}function Xm(o){var l=o.getSnapshot;o=o.value;try{var s=l();return!So(o,s)}catch{return!0}}function Pm(o){var l=Gi(o,2);l!==null&&Yo(l,o,2)}function n0(o){var l=Pa();if(typeof o=="function"){var s=o;if(o=s(),Fi){Wt(!0);try{s()}finally{Wt(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:o},l}function Fa(o,l,s,d){return o.baseState=s,qm(o,xn,typeof d=="function"?d:ti)}function _E(o,l,s,d,v){if(Mh(o))throw Error(u(485));if(o=l.action,o!==null){var w={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){w.listeners.push(z)}};L.T!==null?s(!0):w.isTransition=!1,d(w),s=l.pending,s===null?(w.next=l.pending=w,a0(l,w)):(w.next=s.next,l.pending=s.next=w)}}function a0(o,l){var s=l.action,d=l.payload,v=o.state;if(l.isTransition){var w=L.T,z={};L.T=z;try{var $=s(v,d),se=L.S;se!==null&&se(z,$),o0(o,l,$)}catch(Ee){Ws(o,l,Ee)}finally{w!==null&&z.types!==null&&(w.types=z.types),L.T=w}}else try{w=s(v,d),o0(o,l,w)}catch(Ee){Ws(o,l,Ee)}}function o0(o,l,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(d){r0(o,l,d)},function(d){return Ws(o,l,d)}):r0(o,l,s)}function r0(o,l,s){l.status="fulfilled",l.value=s,l0(l),o.state=s,l=o.pending,l!==null&&(s=l.next,s===l?o.pending=null:(s=s.next,l.next=s,a0(o,s)))}function Ws(o,l,s){var d=o.pending;if(o.pending=null,d!==null){d=d.next;do l.status="rejected",l.reason=s,l0(l),l=l.next;while(l!==d)}o.action=null}function l0(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function xh(o,l){return l}function i0(o,l){if(nn){var s=Nn.formState;if(s!==null){e:{var d=Lt;if(nn){if(Bn){t:{for(var v=Bn,w=ja;v.nodeType!==8;){if(!w){v=null;break t}if(v=Io(v.nextSibling),v===null){v=null;break t}}w=v.data,v=w==="F!"||w==="F"?v:null}if(v){Bn=Io(v.nextSibling),d=v.data==="F!";break e}}$r(d)}d=!1}d&&(l=s[0])}}return s=Pa(),s.memoizedState=s.baseState=l,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xh,lastRenderedState:l},s.queue=d,s=tg.bind(null,Lt,d),d.dispatch=s,d=n0(!1),w=qu.bind(null,Lt,!1,d.queue),d=Pa(),v={state:l,dispatch:null,action:o,pending:null},d.queue=v,s=_E.bind(null,Lt,v,w,s),v.dispatch=s,d.memoizedState=o,[l,s,!1]}function AE(o){var l=ma();return _h(l,xn,o)}function _h(o,l,s){if(l=qm(o,l,xh)[0],o=ni(ti)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var d=Ks(l)}catch(z){throw z===ju?pf:z}else d=l;l=ma();var v=l.queue,w=v.dispatch;return s!==l.memoizedState&&(Lt.flags|=2048,ec(9,{destroy:void 0},u0.bind(null,v,s),null)),[d,w,o]}function u0(o,l){o.action=l}function s0(o){var l=ma(),s=xn;if(s!==null)return _h(l,s,o);ma(),l=l.memoizedState,s=ma();var d=s.queue.dispatch;return s.memoizedState=o,[l,d,!1]}function ec(o,l,s,d){return o={tag:o,create:s,deps:d,inst:l,next:null},l=Lt.updateQueue,l===null&&(l=Oh(),Lt.updateQueue=l),s=l.lastEffect,s===null?l.lastEffect=o.next=o:(d=s.next,s.next=o,o.next=d,l.lastEffect=o),o}function c0(){return ma().memoizedState}function Ef(o,l,s,d){var v=Pa();Lt.flags|=o,v.memoizedState=ec(1|l,{destroy:void 0},s,d===void 0?null:d)}function wf(o,l,s,d){var v=ma();d=d===void 0?null:d;var w=v.memoizedState.inst;xn!==null&&d!==null&&Qi(d,xn.memoizedState.deps)?v.memoizedState=ec(l,w,s,d):(Lt.flags|=o,v.memoizedState=ec(1|l,w,s,d))}function Fm(o,l){Ef(8390656,8,o,l)}function Qm(o,l){wf(2048,8,o,l)}function f0(o){Lt.flags|=4;var l=Lt.updateQueue;if(l===null)l=Oh(),Lt.updateQueue=l,l.events=[o];else{var s=l.events;s===null?l.events=[o]:s.push(o)}}function Ah(o){var l=ma().memoizedState;return f0({ref:l,nextImpl:o}),function(){if((vn&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}function Jm(o,l){return wf(4,2,o,l)}function d0(o,l){return wf(4,4,o,l)}function Km(o,l){if(typeof l=="function"){o=o();var s=l(o);return function(){typeof s=="function"?s():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function h0(o,l,s){s=s!=null?s.concat([o]):null,wf(4,4,Km.bind(null,l,o),s)}function Sl(){}function Wm(o,l){var s=ma();l=l===void 0?null:l;var d=s.memoizedState;return l!==null&&Qi(l,d[1])?d[0]:(s.memoizedState=[o,l],o)}function DE(o,l){var s=ma();l=l===void 0?null:l;var d=s.memoizedState;if(l!==null&&Qi(l,d[1]))return d[0];if(d=o(),Fi){Wt(!0);try{o()}finally{Wt(!1)}}return s.memoizedState=[d,l],d}function Dh(o,l,s){return s===void 0||(ei&1073741824)!==0&&(Zt&261930)===0?o.memoizedState=l:(o.memoizedState=s,o=$E(),Lt.lanes|=o,Ol|=o,s)}function ai(o,l,s,d){return So(s,l)?s:La.current!==null?(o=Dh(o,s,d),So(o,l)||(Oa=!0),o):(ei&42)===0||(ei&1073741824)!==0&&(Zt&261930)===0?(Oa=!0,o.memoizedState=s):(o=$E(),Lt.lanes|=o,Ol|=o,l)}function eg(o,l,s,d,v){var w=B.p;B.p=w!==0&&8>w?w:8;var z=L.T,$={};L.T=$,qu(o,!1,l,s);try{var se=v(),Ee=L.S;if(Ee!==null&&Ee($,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var Le=yh(se,d);Ji(o,l,Le,ar(o))}else Ji(o,l,d,ar(o))}catch(Be){Ji(o,l,{then:function(){},status:"rejected",reason:Be},ar())}finally{B.p=w,z!==null&&$.types!==null&&(z.types=$.types),L.T=z}}function ME(){}function Tf(o,l,s,d){if(o.tag!==5)throw Error(u(476));var v=Rf(o).queue;eg(o,v,l,F,s===null?ME:function(){return zn(o),s(d)})}function Rf(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:F},next:null};var s={};return l.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:s},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function zn(o){var l=Rf(o);l.next===null&&(l=o.alternate.memoizedState),Ji(o,l.next.queue,{},ar())}function p0(){return Ye(rp)}function zE(){return ma().memoizedState}function m0(){return ma().memoizedState}function oi(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var s=ar();o=Pi(s);var d=Sr(l,o,s);d!==null&&(Yo(d,l,s),Bu(d,l,s)),l={cache:hh()},o.payload=l;return}l=l.return}}function NE(o,l,s){var d=ar();s={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Mh(o)?ng(l,s):(s=Ir(o,l,s,d),s!==null&&(Yo(s,o,d),g0(s,l,d)))}function tg(o,l,s){var d=ar();Ji(o,l,s,d)}function Ji(o,l,s,d){var v={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Mh(o))ng(l,v);else{var w=o.alternate;if(o.lanes===0&&(w===null||w.lanes===0)&&(w=l.lastRenderedReducer,w!==null))try{var z=l.lastRenderedState,$=w(z,s);if(v.hasEagerState=!0,v.eagerState=$,So($,z))return mr(o,l,v,0),Nn===null&&pr(),!1}catch{}if(s=Ir(o,l,v,d),s!==null)return Yo(s,o,d),g0(s,l,d),!0}return!1}function qu(o,l,s,d){if(d={lane:2,revertLane:_g(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Mh(o)){if(l)throw Error(u(479))}else l=Ir(o,s,d,2),l!==null&&Yo(l,o,2)}function Mh(o){var l=o.alternate;return o===Lt||l!==null&&l===Lt}function ng(o,l){Qs=Fs=!0;var s=o.pending;s===null?l.next=l:(l.next=s.next,s.next=l),o.pending=l}function g0(o,l,s){if((s&4194048)!==0){var d=l.lanes;d&=o.pendingLanes,s|=d,l.lanes=s,da(o,s)}}var zh={readContext:Ye,use:Sf,useCallback:la,useContext:la,useEffect:la,useImperativeHandle:la,useLayoutEffect:la,useInsertionEffect:la,useMemo:la,useReducer:la,useRef:la,useState:la,useDebugValue:la,useDeferredValue:la,useTransition:la,useSyncExternalStore:la,useId:la,useHostTransitionStatus:la,useFormState:la,useActionState:la,useOptimistic:la,useMemoCache:la,useCacheRefresh:la};zh.useEffectEvent=la;var UE={readContext:Ye,use:Sf,useCallback:function(o,l){return Pa().memoizedState=[o,l===void 0?null:l],o},useContext:Ye,useEffect:Fm,useImperativeHandle:function(o,l,s){s=s!=null?s.concat([o]):null,Ef(4194308,4,Km.bind(null,l,o),s)},useLayoutEffect:function(o,l){return Ef(4194308,4,o,l)},useInsertionEffect:function(o,l){Ef(4,2,o,l)},useMemo:function(o,l){var s=Pa();l=l===void 0?null:l;var d=o();if(Fi){Wt(!0);try{o()}finally{Wt(!1)}}return s.memoizedState=[d,l],d},useReducer:function(o,l,s){var d=Pa();if(s!==void 0){var v=s(l);if(Fi){Wt(!0);try{s(l)}finally{Wt(!1)}}}else v=l;return d.memoizedState=d.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},d.queue=o,o=o.dispatch=NE.bind(null,Lt,o),[d.memoizedState,o]},useRef:function(o){var l=Pa();return o={current:o},l.memoizedState=o},useState:function(o){o=n0(o);var l=o.queue,s=tg.bind(null,Lt,l);return l.dispatch=s,[o.memoizedState,s]},useDebugValue:Sl,useDeferredValue:function(o,l){var s=Pa();return Dh(s,o,l)},useTransition:function(){var o=n0(!1);return o=eg.bind(null,Lt,o.queue,!0,!1),Pa().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,s){var d=Lt,v=Pa();if(nn){if(s===void 0)throw Error(u(407));s=s()}else{if(s=l(),Nn===null)throw Error(u(349));(Zt&127)!==0||Ch(d,l,s)}v.memoizedState=s;var w={value:s,getSnapshot:l};return v.queue=w,Fm(Zm.bind(null,d,w,o),[o]),d.flags|=2048,ec(9,{destroy:void 0},t0.bind(null,d,w,s,l),null),s},useId:function(){var o=Pa(),l=Nn.identifierPrefix;if(nn){var s=gl,d=Wo;s=(d&~(1<<32-en(d)-1)).toString(32)+s,l="_"+l+"R_"+s,s=wh++,0<s&&(l+="H"+s.toString(32)),l+="_"}else s=CE++,l="_"+l+"r_"+s.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:p0,useFormState:i0,useActionState:i0,useOptimistic:function(o){var l=Pa();l.memoizedState=l.baseState=o;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=s,l=qu.bind(null,Lt,!0,s),s.dispatch=l,[o,l]},useMemoCache:Im,useCacheRefresh:function(){return Pa().memoizedState=oi.bind(null,Lt)},useEffectEvent:function(o){var l=Pa(),s={impl:o};return l.memoizedState=s,function(){if((vn&2)!==0)throw Error(u(440));return s.impl.apply(void 0,arguments)}}},ag={readContext:Ye,use:Sf,useCallback:Wm,useContext:Ye,useEffect:Qm,useImperativeHandle:h0,useInsertionEffect:Jm,useLayoutEffect:d0,useMemo:DE,useReducer:ni,useRef:c0,useState:function(){return ni(ti)},useDebugValue:Sl,useDeferredValue:function(o,l){var s=ma();return ai(s,xn.memoizedState,o,l)},useTransition:function(){var o=ni(ti)[0],l=ma().memoizedState;return[typeof o=="boolean"?o:Ks(o),l]},useSyncExternalStore:e0,useId:zE,useHostTransitionStatus:p0,useFormState:AE,useActionState:AE,useOptimistic:function(o,l){var s=ma();return Fa(s,xn,o,l)},useMemoCache:Im,useCacheRefresh:m0};ag.useEffectEvent=Ah;var jE={readContext:Ye,use:Sf,useCallback:Wm,useContext:Ye,useEffect:Qm,useImperativeHandle:h0,useInsertionEffect:Jm,useLayoutEffect:d0,useMemo:DE,useReducer:$m,useRef:c0,useState:function(){return $m(ti)},useDebugValue:Sl,useDeferredValue:function(o,l){var s=ma();return xn===null?Dh(s,o,l):ai(s,xn.memoizedState,o,l)},useTransition:function(){var o=$m(ti)[0],l=ma().memoizedState;return[typeof o=="boolean"?o:Ks(o),l]},useSyncExternalStore:e0,useId:zE,useHostTransitionStatus:p0,useFormState:s0,useActionState:s0,useOptimistic:function(o,l){var s=ma();return xn!==null?Fa(s,xn,o,l):(s.baseState=o,[o,s.queue.dispatch])},useMemoCache:Im,useCacheRefresh:m0};jE.useEffectEvent=Ah;function tc(o,l,s,d){l=o.memoizedState,s=s(d,l),s=s==null?l:T({},l,s),o.memoizedState=s,o.lanes===0&&(o.updateQueue.baseState=s)}var Zr={enqueueSetState:function(o,l,s){o=o._reactInternals;var d=ar(),v=Pi(d);v.payload=l,s!=null&&(v.callback=s),l=Sr(o,v,d),l!==null&&(Yo(l,o,d),Bu(l,o,d))},enqueueReplaceState:function(o,l,s){o=o._reactInternals;var d=ar(),v=Pi(d);v.tag=1,v.payload=l,s!=null&&(v.callback=s),l=Sr(o,v,d),l!==null&&(Yo(l,o,d),Bu(l,o,d))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var s=ar(),d=Pi(s);d.tag=2,l!=null&&(d.callback=l),l=Sr(o,d,s),l!==null&&(Yo(l,o,s),Bu(l,o,s))}};function y0(o,l,s,d,v,w,z){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(d,w,z):l.prototype&&l.prototype.isPureReactComponent?!Br(s,d)||!Br(v,w):!0}function LE(o,l,s,d){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(s,d),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(s,d),l.state!==o&&Zr.enqueueReplaceState(l,l.state,null)}function $u(o,l){var s=l;if("ref"in l){s={};for(var d in l)d!=="ref"&&(s[d]=l[d])}if(o=o.defaultProps){s===l&&(s=T({},s));for(var v in o)s[v]===void 0&&(s[v]=o[v])}return s}function og(o){Vs(o)}function v0(o){console.error(o)}function rg(o){Vs(o)}function Of(o,l){try{var s=o.onUncaughtError;s(l.value,{componentStack:l.stack})}catch(d){setTimeout(function(){throw d})}}function Nh(o,l,s){try{var d=o.onCaughtError;d(s.value,{componentStack:s.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function b0(o,l,s){return s=Pi(s),s.tag=3,s.payload={element:null},s.callback=function(){Of(o,l)},s}function S0(o){return o=Pi(o),o.tag=3,o}function E0(o,l,s,d){var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var w=d.value;o.payload=function(){return v(w)},o.callback=function(){Nh(l,s,d)}}var z=s.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(o.callback=function(){Nh(l,s,d),typeof v!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var $=d.stack;this.componentDidCatch(d.value,{componentStack:$!==null?$:""})})}function RO(o,l,s,d,v){if(s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(l=s.alternate,l!==null&&Xa(l,s,v,!0),s=jo.current,s!==null){switch(s.tag){case 31:case 13:return Er===null?Rg():s.alternate===null&&Yn===0&&(Yn=3),s.flags&=-257,s.flags|=65536,s.lanes=v,d===Zs?s.flags|=16384:(l=s.updateQueue,l===null?s.updateQueue=new Set([d]):l.add(d),Xh(o,d,v)),!1;case 22:return s.flags|=65536,d===Zs?s.flags|=16384:(l=s.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([d])},s.updateQueue=l):(s=l.retryQueue,s===null?l.retryQueue=new Set([d]):s.add(d)),Xh(o,d,v)),!1}throw Error(u(435,s.tag))}return Xh(o,d,v),Rg(),!1}if(nn)return l=jo.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,d!==Fl&&(o=Error(u(422),{cause:d}),df(gr(o,s)))):(d!==Fl&&(l=Error(u(423),{cause:d}),df(gr(l,s))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,d=gr(d,s),v=b0(o.stateNode,d,v),km(o,v),Yn!==4&&(Yn=2)),!1;var w=Error(u(520),{cause:d});if(w=gr(w,s),Ih===null?Ih=[w]:Ih.push(w),Yn!==4&&(Yn=2),l===null)return!0;d=gr(d,s),s=l;do{switch(s.tag){case 3:return s.flags|=65536,o=v&-v,s.lanes|=o,o=b0(s.stateNode,d,o),km(s,o),!1;case 1:if(l=s.type,w=s.stateNode,(s.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Kn===null||!Kn.has(w))))return s.flags|=65536,v&=-v,s.lanes|=v,v=S0(v),E0(v,o,s,d),km(s,v),!1}s=s.return}while(s!==null);return!1}var lg=Error(u(461)),Oa=!1;function Xn(o,l,s,d){l.child=o===null?Kv(l,null,s,d):Vu(l,o.child,s,d)}function w0(o,l,s,d,v){s=s.render;var w=l.ref;if("ref"in d){var z={};for(var $ in d)$!=="ref"&&(z[$]=d[$])}else z=d;return Dt(l),d=Th(o,l,s,z,w,v),$=Ym(),o!==null&&!Oa?(Js(o,l,v),Rr(o,l,v)):(nn&&$&&cf(l),l.flags|=1,Xn(o,l,d,v),l.child)}function T0(o,l,s,d,v){if(o===null){var w=s.type;return typeof w=="function"&&!Bs(w)&&w.defaultProps===void 0&&s.compare===null?(l.tag=15,l.type=w,R0(o,l,w,d,v)):(o=Mm(s.type,null,d,l,l.mode,v),o.ref=l.ref,o.return=l,l.child=o)}if(w=o.child,!sg(o,v)){var z=w.memoizedProps;if(s=s.compare,s=s!==null?s:Br,s(z,d)&&o.ref===l.ref)return Rr(o,l,v)}return l.flags|=1,o=Yi(w,d),o.ref=l.ref,o.return=l,l.child=o}function R0(o,l,s,d,v){if(o!==null){var w=o.memoizedProps;if(Br(w,d)&&o.ref===l.ref)if(Oa=!1,l.pendingProps=d=w,sg(o,v))(o.flags&131072)!==0&&(Oa=!0);else return l.lanes=o.lanes,Rr(o,l,v)}return ig(o,l,s,d,v)}function HE(o,l,s,d){var v=d.children,w=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((l.flags&128)!==0){if(w=w!==null?w.baseLanes|s:s,o!==null){for(d=l.child=o.child,v=0;d!==null;)v=v|d.lanes|d.childLanes,d=d.sibling;d=v&~w}else d=0,l.child=null;return Ho(o,l,w,s,d)}if((s&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&hf(l,w!==null?w.cachePool:null),w!==null?OE(l,w):Eh(),Bm(l);else return d=l.lanes=536870912,Ho(o,l,w!==null?w.baseLanes|s:s,s,d)}else w!==null?(hf(l,w.cachePool),OE(l,w),bl(),l.memoizedState=null):(o!==null&&hf(l,null),Eh(),bl());return Xn(o,l,v,s),l.child}function Zu(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Ho(o,l,s,d,v){var w=br();return w=w===null?null:{parent:Ta._currentValue,pool:w},l.memoizedState={baseLanes:s,cachePool:w},o!==null&&hf(l,null),Eh(),Bm(l),o!==null&&Xa(o,l,d,!0),l.childLanes=v,null}function Uh(o,l){return l=Hh({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function ko(o,l,s){return Vu(l,o.child,null,s),o=Uh(l,l.pendingProps),o.flags|=2,Lo(l),l.memoizedState=null,o}function kE(o,l,s){var d=l.pendingProps,v=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(nn){if(d.mode==="hidden")return o=Uh(l,d),l.lanes=536870912,Zu(null,o);if(yf(l),(o=Bn)?(o=bw(o,ja),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:ml!==null?{id:Wo,overflow:gl}:null,retryLane:536870912,hydrationErrors:null},s=Iv(o),s.return=l,l.child=s,Za=l,Bn=null)):o=null,o===null)throw $r(l);return l.lanes=536870912,null}return Uh(l,d)}var w=o.memoizedState;if(w!==null){var z=w.dehydrated;if(yf(l),v)if(l.flags&256)l.flags&=-257,l=ko(o,l,s);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(u(558));else if(Oa||Xa(o,l,s,!1),v=(s&o.childLanes)!==0,Oa||v){if(d=Nn,d!==null&&(z=Ua(d,s),z!==0&&z!==w.retryLane))throw w.retryLane=z,Gi(o,z),Yo(d,o,z),lg;Rg(),l=ko(o,l,s)}else o=w.treeContext,Bn=Io(z.nextSibling),Za=l,nn=!0,Pl=null,ja=!1,o!==null&&ch(l,o),l=Uh(l,d),l.flags|=4096;return l}return o=Yi(o.child,{mode:d.mode,children:d.children}),o.ref=l.ref,l.child=o,o.return=l,o}function wr(o,l){var s=l.ref;if(s===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(u(284));(o===null||o.ref!==s)&&(l.flags|=4194816)}}function ig(o,l,s,d,v){return Dt(l),s=Th(o,l,s,d,void 0,v),d=Ym(),o!==null&&!Oa?(Js(o,l,v),Rr(o,l,v)):(nn&&d&&cf(l),l.flags|=1,Xn(o,l,s,v),l.child)}function Xu(o,l,s,d,v,w){return Dt(l),l.updateQueue=null,s=xE(l,d,s,v),Gm(o),d=Ym(),o!==null&&!Oa?(Js(o,l,w),Rr(o,l,w)):(nn&&d&&cf(l),l.flags|=1,Xn(o,l,s,w),l.child)}function O0(o,l,s,d,v){if(Dt(l),l.stateNode===null){var w=zo,z=s.contextType;typeof z=="object"&&z!==null&&(w=Ye(z)),w=new s(d,w),l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Zr,l.stateNode=w,w._reactInternals=l,w=l.stateNode,w.props=d,w.state=l.memoizedState,w.refs={},Sh(l),z=s.contextType,w.context=typeof z=="object"&&z!==null?Ye(z):zo,w.state=l.memoizedState,z=s.getDerivedStateFromProps,typeof z=="function"&&(tc(l,s,z,d),w.state=l.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(z=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),z!==w.state&&Zr.enqueueReplaceState(w,w.state,null),Kl(l,d,w,v),Gu(),w.state=l.memoizedState),typeof w.componentDidMount=="function"&&(l.flags|=4194308),d=!0}else if(o===null){w=l.stateNode;var $=l.memoizedProps,se=$u(s,$);w.props=se;var Ee=w.context,Le=s.contextType;z=zo,typeof Le=="object"&&Le!==null&&(z=Ye(Le));var Be=s.getDerivedStateFromProps;Le=typeof Be=="function"||typeof w.getSnapshotBeforeUpdate=="function",$=l.pendingProps!==$,Le||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||($||Ee!==z)&&LE(l,w,d,z),Xi=!1;var Oe=l.memoizedState;w.state=Oe,Kl(l,d,w,v),Gu(),Ee=l.memoizedState,$||Oe!==Ee||Xi?(typeof Be=="function"&&(tc(l,s,Be,d),Ee=l.memoizedState),(se=Xi||y0(l,s,se,d,Oe,Ee,z))?(Le||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(l.flags|=4194308)):(typeof w.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=d,l.memoizedState=Ee),w.props=d,w.state=Ee,w.context=z,d=se):(typeof w.componentDidMount=="function"&&(l.flags|=4194308),d=!1)}else{w=l.stateNode,Hm(o,l),z=l.memoizedProps,Le=$u(s,z),w.props=Le,Be=l.pendingProps,Oe=w.context,Ee=s.contextType,se=zo,typeof Ee=="object"&&Ee!==null&&(se=Ye(Ee)),$=s.getDerivedStateFromProps,(Ee=typeof $=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(z!==Be||Oe!==se)&&LE(l,w,d,se),Xi=!1,Oe=l.memoizedState,w.state=Oe,Kl(l,d,w,v),Gu();var ze=l.memoizedState;z!==Be||Oe!==ze||Xi||o!==null&&o.dependencies!==null&&Ys(o.dependencies)?(typeof $=="function"&&(tc(l,s,$,d),ze=l.memoizedState),(Le=Xi||y0(l,s,Le,d,Oe,ze,se)||o!==null&&o.dependencies!==null&&Ys(o.dependencies))?(Ee||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(d,ze,se),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(d,ze,se)),typeof w.componentDidUpdate=="function"&&(l.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof w.componentDidUpdate!="function"||z===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||z===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=1024),l.memoizedProps=d,l.memoizedState=ze),w.props=d,w.state=ze,w.context=se,d=Le):(typeof w.componentDidUpdate!="function"||z===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||z===o.memoizedProps&&Oe===o.memoizedState||(l.flags|=1024),d=!1)}return w=d,wr(o,l),d=(l.flags&128)!==0,w||d?(w=l.stateNode,s=d&&typeof s.getDerivedStateFromError!="function"?null:w.render(),l.flags|=1,o!==null&&d?(l.child=Vu(l,o.child,null,v),l.child=Vu(l,null,s,v)):Xn(o,l,s,v),l.memoizedState=w.state,o=l.child):o=Rr(o,l,v),o}function El(o,l,s,d){return Nu(),l.flags|=256,Xn(o,l,s,d),l.child}var jh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lh(o){return{baseLanes:o,cachePool:qs()}}function Tr(o,l,s){return o=o!==null?o.childLanes&~s:0,l&&(o|=Go),o}function C0(o,l,s){var d=l.pendingProps,v=!1,w=(l.flags&128)!==0,z;if((z=w)||(z=o!==null&&o.memoizedState===null?!1:(Jn.current&2)!==0),z&&(v=!0,l.flags&=-129),z=(l.flags&32)!==0,l.flags&=-33,o===null){if(nn){if(v?Wl(l):bl(),(o=Bn)?(o=bw(o,ja),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:ml!==null?{id:Wo,overflow:gl}:null,retryLane:536870912,hydrationErrors:null},s=Iv(o),s.return=l,l.child=s,Za=l,Bn=null)):o=null,o===null)throw $r(l);return es(o)?l.lanes=32:l.lanes=536870912,null}var $=d.children;return d=d.fallback,v?(bl(),v=l.mode,$=Hh({mode:"hidden",children:$},v),d=Ii(d,v,s,null),$.return=l,d.return=l,$.sibling=d,l.child=$,d=l.child,d.memoizedState=Lh(s),d.childLanes=Tr(o,z,s),l.memoizedState=jh,Zu(null,d)):(Wl(l),Pu(l,$))}var se=o.memoizedState;if(se!==null&&($=se.dehydrated,$!==null)){if(w)l.flags&256?(Wl(l),l.flags&=-257,l=nc(o,l,s)):l.memoizedState!==null?(bl(),l.child=o.child,l.flags|=128,l=null):(bl(),$=d.fallback,v=l.mode,d=Hh({mode:"visible",children:d.children},v),$=Ii($,v,s,null),$.flags|=2,d.return=l,$.return=l,d.sibling=$,l.child=d,Vu(l,o.child,null,s),d=l.child,d.memoizedState=Lh(s),d.childLanes=Tr(o,z,s),l.memoizedState=jh,l=Zu(null,d));else if(Wl(l),es($)){if(z=$.nextSibling&&$.nextSibling.dataset,z)var Ee=z.dgst;z=Ee,d=Error(u(419)),d.stack="",d.digest=z,df({value:d,source:null,stack:null}),l=nc(o,l,s)}else if(Oa||Xa(o,l,s,!1),z=(s&o.childLanes)!==0,Oa||z){if(z=Nn,z!==null&&(d=Ua(z,s),d!==0&&d!==se.retryLane))throw se.retryLane=d,Gi(o,d),Yo(z,o,d),lg;Fr($)||Rg(),l=nc(o,l,s)}else Fr($)?(l.flags|=192,l.child=o.child,l=null):(o=se.treeContext,Bn=Io($.nextSibling),Za=l,nn=!0,Pl=null,ja=!1,o!==null&&ch(l,o),l=Pu(l,d.children),l.flags|=4096);return l}return v?(bl(),$=d.fallback,v=l.mode,se=o.child,Ee=se.sibling,d=Yi(se,{mode:"hidden",children:d.children}),d.subtreeFlags=se.subtreeFlags&65011712,Ee!==null?$=Yi(Ee,$):($=Ii($,v,s,null),$.flags|=2),$.return=l,d.return=l,d.sibling=$,l.child=d,Zu(null,d),d=l.child,$=o.child.memoizedState,$===null?$=Lh(s):(v=$.cachePool,v!==null?(se=Ta._currentValue,v=v.parent!==se?{parent:se,pool:se}:v):v=qs(),$={baseLanes:$.baseLanes|s,cachePool:v}),d.memoizedState=$,d.childLanes=Tr(o,z,s),l.memoizedState=jh,Zu(o.child,d)):(Wl(l),s=o.child,o=s.sibling,s=Yi(s,{mode:"visible",children:d.children}),s.return=l,s.sibling=null,o!==null&&(z=l.deletions,z===null?(l.deletions=[o],l.flags|=16):z.push(o)),l.child=s,l.memoizedState=null,s)}function Pu(o,l){return l=Hh({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function Hh(o,l){return o=ha(22,o,null,l),o.lanes=0,o}function nc(o,l,s){return Vu(l,o.child,null,s),o=Pu(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function ac(o,l,s){o.lanes|=l;var d=o.alternate;d!==null&&(d.lanes|=l),jm(o.return,l,s)}function ug(o,l,s,d,v,w){var z=o.memoizedState;z===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:v,treeForkCount:w}:(z.isBackwards=l,z.rendering=null,z.renderingStartTime=0,z.last=d,z.tail=s,z.tailMode=v,z.treeForkCount=w)}function x0(o,l,s){var d=l.pendingProps,v=d.revealOrder,w=d.tail;d=d.children;var z=Jn.current,$=(z&2)!==0;if($?(z=z&1|2,l.flags|=128):z&=1,oe(Jn,z),Xn(o,l,d,s),d=nn?wa:0,!$&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&ac(o,s,l);else if(o.tag===19)ac(o,s,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(s=l.child,v=null;s!==null;)o=s.alternate,o!==null&&vf(o)===null&&(v=s),s=s.sibling;s=v,s===null?(v=l.child,l.child=null):(v=s.sibling,s.sibling=null),ug(l,!1,v,s,w,d);break;case"backwards":case"unstable_legacy-backwards":for(s=null,v=l.child,l.child=null;v!==null;){if(o=v.alternate,o!==null&&vf(o)===null){l.child=v;break}o=v.sibling,v.sibling=s,s=v,v=o}ug(l,!0,s,null,w,d);break;case"together":ug(l,!1,null,null,void 0,d);break;default:l.memoizedState=null}return l.child}function Rr(o,l,s){if(o!==null&&(l.dependencies=o.dependencies),Ol|=l.lanes,(s&l.childLanes)===0)if(o!==null){if(Xa(o,l,s,!1),(s&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(u(153));if(l.child!==null){for(o=l.child,s=Yi(o,o.pendingProps),l.child=s,s.return=l;o.sibling!==null;)o=o.sibling,s=s.sibling=Yi(o,o.pendingProps),s.return=l;s.sibling=null}return l.child}function sg(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&Ys(o)))}function cg(o,l,s){switch(l.tag){case 3:Ue(l,l.stateNode.containerInfo),Uo(l,Ta,o.memoizedState.cache),Nu();break;case 27:case 5:We(l);break;case 4:Ue(l,l.stateNode.containerInfo);break;case 10:Uo(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,yf(l),null;break;case 13:var d=l.memoizedState;if(d!==null)return d.dehydrated!==null?(Wl(l),l.flags|=128,null):(s&l.child.childLanes)!==0?C0(o,l,s):(Wl(l),o=Rr(o,l,s),o!==null?o.sibling:null);Wl(l);break;case 19:var v=(o.flags&128)!==0;if(d=(s&l.childLanes)!==0,d||(Xa(o,l,s,!1),d=(s&l.childLanes)!==0),v){if(d)return x0(o,l,s);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),oe(Jn,Jn.current),d)break;return null;case 22:return l.lanes=0,HE(o,l,s,l.pendingProps);case 24:Uo(l,Ta,o.memoizedState.cache)}return Rr(o,l,s)}function _0(o,l,s){if(o!==null)if(o.memoizedProps!==l.pendingProps)Oa=!0;else{if(!sg(o,s)&&(l.flags&128)===0)return Oa=!1,cg(o,l,s);Oa=(o.flags&131072)!==0}else Oa=!1,nn&&(l.flags&1048576)!==0&&$v(l,wa,l.index);switch(l.lanes=0,l.tag){case 16:e:{var d=l.pendingProps;if(o=Lu(l.elementType),l.type=o,typeof o=="function")Bs(o)?(d=$u(o,d),l.tag=1,l=O0(null,l,o,d,s)):(l.tag=0,l=ig(null,l,o,d,s));else{if(o!=null){var v=o.$$typeof;if(v===Y){l.tag=11,l=w0(null,l,o,d,s);break e}else if(v===V){l.tag=14,l=T0(null,l,o,d,s);break e}}throw l=te(o)||o,Error(u(306,l,""))}}return l;case 0:return ig(o,l,l.type,l.pendingProps,s);case 1:return d=l.type,v=$u(d,l.pendingProps),O0(o,l,d,v,s);case 3:e:{if(Ue(l,l.stateNode.containerInfo),o===null)throw Error(u(387));d=l.pendingProps;var w=l.memoizedState;v=w.element,Hm(o,l),Kl(l,d,null,s);var z=l.memoizedState;if(d=z.cache,Uo(l,Ta,d),d!==w.cache&&Jl(l,[Ta],s,!0),Gu(),d=z.element,w.isDehydrated)if(w={element:d,isDehydrated:!1,cache:z.cache},l.updateQueue.baseState=w,l.memoizedState=w,l.flags&256){l=El(o,l,d,s);break e}else if(d!==v){v=gr(Error(u(424)),l),df(v),l=El(o,l,d,s);break e}else for(o=l.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Bn=Io(o.firstChild),Za=l,nn=!0,Pl=null,ja=!0,s=Kv(l,null,d,s),l.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Nu(),d===v){l=Rr(o,l,s);break e}Xn(o,l,d,s)}l=l.child}return l;case 26:return wr(o,l),o===null?(s=Xf(l.type,null,l.pendingProps,null))?l.memoizedState=s:nn||(s=l.type,o=l.pendingProps,d=Wu(_e.current).createElement(s),d[dn]=l,d[vo]=o,co(d,s,o),On(d),l.stateNode=d):l.memoizedState=Xf(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return We(l),o===null&&nn&&(d=l.stateNode=$f(l.type,l.pendingProps,_e.current),Za=l,ja=!0,v=Bn,xl(l.type)?(np=v,Bn=Io(d.firstChild)):Bn=v),Xn(o,l,l.pendingProps.children,s),wr(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&nn&&((v=d=Bn)&&(d=xO(d,l.type,l.pendingProps,ja),d!==null?(l.stateNode=d,Za=l,Bn=Io(d.firstChild),ja=!1,v=!0):v=!1),v||$r(l)),We(l),v=l.type,w=l.pendingProps,z=o!==null?o.memoizedProps:null,d=w.children,If(v,w)?d=null:z!==null&&If(v,z)&&(l.flags|=32),l.memoizedState!==null&&(v=Th(o,l,TO,null,null,s),rp._currentValue=v),wr(o,l),Xn(o,l,d,s),l.child;case 6:return o===null&&nn&&((o=s=Bn)&&(s=Gt(s,l.pendingProps,ja),s!==null?(l.stateNode=s,Za=l,Bn=null,o=!0):o=!1),o||$r(l)),null;case 13:return C0(o,l,s);case 4:return Ue(l,l.stateNode.containerInfo),d=l.pendingProps,o===null?l.child=Vu(l,null,d,s):Xn(o,l,d,s),l.child;case 11:return w0(o,l,l.type,l.pendingProps,s);case 7:return Xn(o,l,l.pendingProps,s),l.child;case 8:return Xn(o,l,l.pendingProps.children,s),l.child;case 12:return Xn(o,l,l.pendingProps.children,s),l.child;case 10:return d=l.pendingProps,Uo(l,l.type,d.value),Xn(o,l,d.children,s),l.child;case 9:return v=l.type._context,d=l.pendingProps.children,Dt(l),v=Ye(v),d=d(v),l.flags|=1,Xn(o,l,d,s),l.child;case 14:return T0(o,l,l.type,l.pendingProps,s);case 15:return R0(o,l,l.type,l.pendingProps,s);case 19:return x0(o,l,s);case 31:return kE(o,l,s);case 22:return HE(o,l,s,l.pendingProps);case 24:return Dt(l),d=Ye(Ta),o===null?(v=br(),v===null&&(v=Nn,w=hh(),v.pooledCache=w,w.refCount++,w!==null&&(v.pooledCacheLanes|=s),v=w),l.memoizedState={parent:d,cache:v},Sh(l),Uo(l,Ta,v)):((o.lanes&s)!==0&&(Hm(o,l),Kl(l,null,null,s),Gu()),v=o.memoizedState,w=l.memoizedState,v.parent!==d?(v={parent:d,cache:d},l.memoizedState=v,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=v),Uo(l,Ta,d)):(d=w.cache,Uo(l,Ta,d),d!==v.cache&&Jl(l,[Ta],s,!0))),Xn(o,l,l.pendingProps.children,s),l.child;case 29:throw l.pendingProps}throw Error(u(156,l.tag))}function ri(o){o.flags|=4}function A0(o,l,s,d,v){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(PE())o.flags|=8192;else throw Hu=Zs,$s}else o.flags&=-16777217}function D0(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!rr(l))if(PE())o.flags|=8192;else throw Hu=Zs,$s}function Eo(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?tn():536870912,o.lanes|=l,ia|=l)}function Cf(o,l){if(!nn)switch(o.tailMode){case"hidden":l=o.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?o.tail=null:s.sibling=null;break;case"collapsed":s=o.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function At(o){var l=o.alternate!==null&&o.alternate.child===o.child,s=0,d=0;if(l)for(var v=o.child;v!==null;)s|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)s|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=d,o.childLanes=s,l}function VE(o,l,s){var d=l.pendingProps;switch(Nm(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(l),null;case 1:return At(l),null;case 3:return s=l.stateNode,d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),vl(Ta),Ge(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(o===null||o.child===null)&&(Ql(l)?ri(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Zv())),At(l),null;case 26:var v=l.type,w=l.memoizedState;return o===null?(ri(l),w!==null?(At(l),D0(l,w)):(At(l),A0(l,v,null,d,s))):w?w!==o.memoizedState?(ri(l),At(l),D0(l,w)):(At(l),l.flags&=-16777217):(o=o.memoizedProps,o!==d&&ri(l),At(l),A0(l,v,o,d,s)),null;case 27:if(Ne(l),s=_e.current,v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==d&&ri(l);else{if(!d){if(l.stateNode===null)throw Error(u(166));return At(l),null}o=de.current,Ql(l)?fh(l):(o=$f(v,d,s),l.stateNode=o,ri(l))}return At(l),null;case 5:if(Ne(l),v=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==d&&ri(l);else{if(!d){if(l.stateNode===null)throw Error(u(166));return At(l),null}if(w=de.current,Ql(l))fh(l);else{var z=Wu(_e.current);switch(w){case 1:w=z.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:w=z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":w=z.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":w=z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":w=z.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof d.is=="string"?z.createElement("select",{is:d.is}):z.createElement("select"),d.multiple?w.multiple=!0:d.size&&(w.size=d.size);break;default:w=typeof d.is=="string"?z.createElement(v,{is:d.is}):z.createElement(v)}}w[dn]=l,w[vo]=d;e:for(z=l.child;z!==null;){if(z.tag===5||z.tag===6)w.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===l)break e;for(;z.sibling===null;){if(z.return===null||z.return===l)break e;z=z.return}z.sibling.return=z.return,z=z.sibling}l.stateNode=w;e:switch(co(w,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&ri(l)}}return At(l),A0(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,s),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==d&&ri(l);else{if(typeof d!="string"&&l.stateNode===null)throw Error(u(166));if(o=_e.current,Ql(l)){if(o=l.stateNode,s=l.memoizedProps,d=null,v=Za,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}o[dn]=l,o=!!(o.nodeValue===s||d!==null&&d.suppressHydrationWarning===!0||eb(o.nodeValue,s)),o||$r(l,!0)}else o=Wu(o).createTextNode(d),o[dn]=l,l.stateNode=o}return At(l),null;case 31:if(s=l.memoizedState,o===null||o.memoizedState!==null){if(d=Ql(l),s!==null){if(o===null){if(!d)throw Error(u(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(557));o[dn]=l}else Nu(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;At(l),o=!1}else s=Zv(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=s),o=!0;if(!o)return l.flags&256?(Lo(l),l):(Lo(l),null);if((l.flags&128)!==0)throw Error(u(558))}return At(l),null;case 13:if(d=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=Ql(l),d!==null&&d.dehydrated!==null){if(o===null){if(!v)throw Error(u(318));if(v=l.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(u(317));v[dn]=l}else Nu(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;At(l),v=!1}else v=Zv(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(Lo(l),l):(Lo(l),null)}return Lo(l),(l.flags&128)!==0?(l.lanes=s,l):(s=d!==null,o=o!==null&&o.memoizedState!==null,s&&(d=l.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),w=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(w=d.memoizedState.cachePool.pool),w!==v&&(d.flags|=2048)),s!==o&&s&&(l.child.flags|=8192),Eo(l,l.updateQueue),At(l),null);case 4:return Ge(),o===null&&Yf(l.stateNode.containerInfo),At(l),null;case 10:return vl(l.type),At(l),null;case 19:if(Q(Jn),d=l.memoizedState,d===null)return At(l),null;if(v=(l.flags&128)!==0,w=d.rendering,w===null)if(v)Cf(d,!1);else{if(Yn!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(w=vf(o),w!==null){for(l.flags|=128,Cf(d,!1),o=w.updateQueue,l.updateQueue=o,Eo(l,o),l.subtreeFlags=0,o=s,s=l.child;s!==null;)Yv(s,o),s=s.sibling;return oe(Jn,Jn.current&1|2),nn&&qr(l,d.treeForkCount),l.child}o=o.sibling}d.tail!==null&&we()>En&&(l.flags|=128,v=!0,Cf(d,!1),l.lanes=4194304)}else{if(!v)if(o=vf(w),o!==null){if(l.flags|=128,v=!0,o=o.updateQueue,l.updateQueue=o,Eo(l,o),Cf(d,!0),d.tail===null&&d.tailMode==="hidden"&&!w.alternate&&!nn)return At(l),null}else 2*we()-d.renderingStartTime>En&&s!==536870912&&(l.flags|=128,v=!0,Cf(d,!1),l.lanes=4194304);d.isBackwards?(w.sibling=l.child,l.child=w):(o=d.last,o!==null?o.sibling=w:l.child=w,d.last=w)}return d.tail!==null?(o=d.tail,d.rendering=o,d.tail=o.sibling,d.renderingStartTime=we(),o.sibling=null,s=Jn.current,oe(Jn,v?s&1|2:s&1),nn&&qr(l,d.treeForkCount),o):(At(l),null);case 22:case 23:return Lo(l),gf(),d=l.memoizedState!==null,o!==null?o.memoizedState!==null!==d&&(l.flags|=8192):d&&(l.flags|=8192),d?(s&536870912)!==0&&(l.flags&128)===0&&(At(l),l.subtreeFlags&6&&(l.flags|=8192)):At(l),s=l.updateQueue,s!==null&&Eo(l,s.retryQueue),s=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==s&&(l.flags|=2048),o!==null&&Q(vr),null;case 24:return s=null,o!==null&&(s=o.memoizedState.cache),l.memoizedState.cache!==s&&(l.flags|=2048),vl(Ta),At(l),null;case 25:return null;case 30:return null}throw Error(u(156,l.tag))}function BE(o,l){switch(Nm(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return vl(Ta),Ge(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Ne(l),null;case 31:if(l.memoizedState!==null){if(Lo(l),l.alternate===null)throw Error(u(340));Nu()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(Lo(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(u(340));Nu()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return Q(Jn),null;case 4:return Ge(),null;case 10:return vl(l.type),null;case 22:case 23:return Lo(l),gf(),o!==null&&Q(vr),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return vl(Ta),null;case 25:return null;default:return null}}function GE(o,l){switch(Nm(l),l.tag){case 3:vl(Ta),Ge();break;case 26:case 27:case 5:Ne(l);break;case 4:Ge();break;case 31:l.memoizedState!==null&&Lo(l);break;case 13:Lo(l);break;case 19:Q(Jn);break;case 10:vl(l.type);break;case 22:case 23:Lo(l),gf(),o!==null&&Q(vr);break;case 24:vl(Ta)}}function Xr(o,l){try{var s=l.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var v=d.next;s=v;do{if((s.tag&o)===o){d=void 0;var w=s.create,z=s.inst;d=w(),z.destroy=d}s=s.next}while(s!==v)}}catch($){An(l,l.return,$)}}function Or(o,l,s){try{var d=l.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var w=v.next;d=w;do{if((d.tag&o)===o){var z=d.inst,$=z.destroy;if($!==void 0){z.destroy=void 0,v=l;var se=s,Ee=$;try{Ee()}catch(Le){An(v,se,Le)}}}d=d.next}while(d!==w)}}catch(Le){An(l,l.return,Le)}}function fg(o){var l=o.updateQueue;if(l!==null){var s=o.stateNode;try{Yu(l,s)}catch(d){An(o,o.return,d)}}}function Fu(o,l,s){s.props=$u(o.type,o.memoizedProps),s.state=o.memoizedState;try{s.componentWillUnmount()}catch(d){An(o,l,d)}}function li(o,l){try{var s=o.ref;if(s!==null){switch(o.tag){case 26:case 27:case 5:var d=o.stateNode;break;case 30:d=o.stateNode;break;default:d=o.stateNode}typeof s=="function"?o.refCleanup=s(d):s.current=d}}catch(v){An(o,l,v)}}function wl(o,l){var s=o.ref,d=o.refCleanup;if(s!==null)if(typeof d=="function")try{d()}catch(v){An(o,l,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(v){An(o,l,v)}else s.current=null}function M0(o){var l=o.type,s=o.memoizedProps,d=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":s.autoFocus&&d.focus();break e;case"img":s.src?d.src=s.src:s.srcSet&&(d.srcset=s.srcSet)}}catch(v){An(o,o.return,v)}}function dg(o,l,s){try{var d=o.stateNode;nb(d,o.type,s,l),d[vo]=l}catch(v){An(o,o.return,v)}}function z0(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&xl(o.type)||o.tag===4}function xf(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||z0(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&xl(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function _f(o,l,s){var d=o.tag;if(d===5||d===6)o=o.stateNode,l?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(o,l):(l=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,l.appendChild(o),s=s._reactRootContainer,s!=null||l.onclick!==null||(l.onclick=ul));else if(d!==4&&(d===27&&xl(o.type)&&(s=o.stateNode,l=null),o=o.child,o!==null))for(_f(o,l,s),o=o.sibling;o!==null;)_f(o,l,s),o=o.sibling}function Af(o,l,s){var d=o.tag;if(d===5||d===6)o=o.stateNode,l?s.insertBefore(o,l):s.appendChild(o);else if(d!==4&&(d===27&&xl(o.type)&&(s=o.stateNode),o=o.child,o!==null))for(Af(o,l,s),o=o.sibling;o!==null;)Af(o,l,s),o=o.sibling}function N0(o){var l=o.stateNode,s=o.memoizedProps;try{for(var d=o.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);co(l,d,s),l[dn]=o,l[vo]=s}catch(w){An(o,o.return,w)}}var Ki=!1,Aa=!1,hg=!1,U0=typeof WeakSet=="function"?WeakSet:Set,Qa=null;function Df(o,l){if(o=o.containerInfo,Ng=ka,o=Du(o),oh(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var v=d.anchorOffset,w=d.focusNode;d=d.focusOffset;try{s.nodeType,w.nodeType}catch{s=null;break e}var z=0,$=-1,se=-1,Ee=0,Le=0,Be=o,Oe=null;t:for(;;){for(var ze;Be!==s||v!==0&&Be.nodeType!==3||($=z+v),Be!==w||d!==0&&Be.nodeType!==3||(se=z+d),Be.nodeType===3&&(z+=Be.nodeValue.length),(ze=Be.firstChild)!==null;)Oe=Be,Be=ze;for(;;){if(Be===o)break t;if(Oe===s&&++Ee===v&&($=z),Oe===w&&++Le===d&&(se=z),(ze=Be.nextSibling)!==null)break;Be=Oe,Oe=Be.parentNode}Be=ze}s=$===-1||se===-1?null:{start:$,end:se}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ug={focusedElem:o,selectionRange:s},ka=!1,Qa=l;Qa!==null;)if(l=Qa,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Qa=o;else for(;Qa!==null;){switch(l=Qa,w=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(s=0;s<o.length;s++)v=o[s],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&w!==null){o=void 0,s=l,v=w.memoizedProps,w=w.memoizedState,d=s.stateNode;try{var st=$u(s.type,v);o=d.getSnapshotBeforeUpdate(st,w),d.__reactInternalSnapshotBeforeUpdate=o}catch(Et){An(s,s.return,Et)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,s=o.nodeType,s===9)tp(o);else if(s===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":tp(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(u(163))}if(o=l.sibling,o!==null){o.return=l.return,Qa=o;break}Qa=l.return}}function kh(o,l,s){var d=s.flags;switch(s.tag){case 0:case 11:case 15:Wi(o,s),d&4&&Xr(5,s);break;case 1:if(Wi(o,s),d&4)if(o=s.stateNode,l===null)try{o.componentDidMount()}catch(z){An(s,s.return,z)}else{var v=$u(s.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(v,l,o.__reactInternalSnapshotBeforeUpdate)}catch(z){An(s,s.return,z)}}d&64&&fg(s),d&512&&li(s,s.return);break;case 3:if(Wi(o,s),d&64&&(o=s.updateQueue,o!==null)){if(l=null,s.child!==null)switch(s.child.tag){case 27:case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}try{Yu(o,l)}catch(z){An(s,s.return,z)}}break;case 27:l===null&&d&4&&N0(s);case 26:case 5:Wi(o,s),l===null&&d&4&&M0(s),d&512&&li(s,s.return);break;case 12:Wi(o,s);break;case 31:Wi(o,s),d&4&&YE(o,s);break;case 13:Wi(o,s),d&4&&H0(o,s),d&64&&(o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(s=Cr.bind(null,s),qf(o,s))));break;case 22:if(d=s.memoizedState!==null||Ki,!d){l=l!==null&&l.memoizedState!==null||Aa,v=Ki;var w=Aa;Ki=d,(Aa=l)&&!w?Tl(o,s,(s.subtreeFlags&8772)!==0):Wi(o,s),Ki=v,Aa=w}break;case 30:break;default:Wi(o,s)}}function j0(o){var l=o.alternate;l!==null&&(o.alternate=null,j0(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&sm(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Gn=null,Vo=!1;function ii(o,l,s){for(s=s.child;s!==null;)L0(o,l,s),s=s.sibling}function L0(o,l,s){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Nt,s)}catch{}switch(s.tag){case 26:Aa||wl(s,l),ii(o,l,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Aa||wl(s,l);var d=Gn,v=Vo;xl(s.type)&&(Gn=s.stateNode,Vo=!1),ii(o,l,s),fc(s.stateNode),Gn=d,Vo=v;break;case 5:Aa||wl(s,l);case 6:if(d=Gn,v=Vo,Gn=null,ii(o,l,s),Gn=d,Vo=v,Gn!==null)if(Vo)try{(Gn.nodeType===9?Gn.body:Gn.nodeName==="HTML"?Gn.ownerDocument.body:Gn).removeChild(s.stateNode)}catch(w){An(s,l,w)}else try{Gn.removeChild(s.stateNode)}catch(w){An(s,l,w)}break;case 18:Gn!==null&&(Vo?(o=Gn,lb(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.stateNode),td(o)):lb(Gn,s.stateNode));break;case 4:d=Gn,v=Vo,Gn=s.stateNode.containerInfo,Vo=!0,ii(o,l,s),Gn=d,Vo=v;break;case 0:case 11:case 14:case 15:Or(2,s,l),Aa||Or(4,s,l),ii(o,l,s);break;case 1:Aa||(wl(s,l),d=s.stateNode,typeof d.componentWillUnmount=="function"&&Fu(s,l,d)),ii(o,l,s);break;case 21:ii(o,l,s);break;case 22:Aa=(d=Aa)||s.memoizedState!==null,ii(o,l,s),Aa=d;break;default:ii(o,l,s)}}function YE(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{td(o)}catch(s){An(l,l.return,s)}}}function H0(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{td(o)}catch(s){An(l,l.return,s)}}function Vh(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new U0),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new U0),l;default:throw Error(u(435,o.tag))}}function Bh(o,l){var s=Vh(o);l.forEach(function(d){if(!s.has(d)){s.add(d);var v=sw.bind(null,o,d);d.then(v,v)}})}function Bo(o,l){var s=l.deletions;if(s!==null)for(var d=0;d<s.length;d++){var v=s[d],w=o,z=l,$=z;e:for(;$!==null;){switch($.tag){case 27:if(xl($.type)){Gn=$.stateNode,Vo=!1;break e}break;case 5:Gn=$.stateNode,Vo=!1;break e;case 3:case 4:Gn=$.stateNode.containerInfo,Vo=!0;break e}$=$.return}if(Gn===null)throw Error(u(160));L0(w,z,v),Gn=null,Vo=!1,w=v.alternate,w!==null&&(w.return=null),v.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)pg(l,o),l=l.sibling}var kt=null;function pg(o,l){var s=o.alternate,d=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Bo(l,o),er(o),d&4&&(Or(3,o,o.return),Xr(3,o),Or(5,o,o.return));break;case 1:Bo(l,o),er(o),d&512&&(Aa||s===null||wl(s,s.return)),d&64&&Ki&&(o=o.updateQueue,o!==null&&(d=o.callbacks,d!==null&&(s=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=s===null?d:s.concat(d))));break;case 26:var v=kt;if(Bo(l,o),er(o),d&512&&(Aa||s===null||wl(s,s.return)),d&4){var w=s!==null?s.memoizedState:null;if(d=o.memoizedState,s===null)if(d===null)if(o.stateNode===null){e:{d=o.type,s=o.memoizedProps,v=v.ownerDocument||v;t:switch(d){case"title":w=v.getElementsByTagName("title")[0],(!w||w[Bl]||w[dn]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=v.createElement(d),v.head.insertBefore(w,v.querySelector("head > title"))),co(w,d,s),w[dn]=o,On(w),d=w;break e;case"link":var z=cb("link","href",v).get(d+(s.href||""));if(z){for(var $=0;$<z.length;$++)if(w=z[$],w.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&w.getAttribute("rel")===(s.rel==null?null:s.rel)&&w.getAttribute("title")===(s.title==null?null:s.title)&&w.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){z.splice($,1);break t}}w=v.createElement(d),co(w,d,s),v.head.appendChild(w);break;case"meta":if(z=cb("meta","content",v).get(d+(s.content||""))){for($=0;$<z.length;$++)if(w=z[$],w.getAttribute("content")===(s.content==null?null:""+s.content)&&w.getAttribute("name")===(s.name==null?null:s.name)&&w.getAttribute("property")===(s.property==null?null:s.property)&&w.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&w.getAttribute("charset")===(s.charSet==null?null:s.charSet)){z.splice($,1);break t}}w=v.createElement(d),co(w,d,s),v.head.appendChild(w);break;default:throw Error(u(468,d))}w[dn]=o,On(w),d=w}o.stateNode=d}else Vg(v,o.type,o.stateNode);else o.stateNode=sb(v,d,o.memoizedProps);else w!==d?(w===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):w.count--,d===null?Vg(v,o.type,o.stateNode):sb(v,d,o.memoizedProps)):d===null&&o.stateNode!==null&&dg(o,o.memoizedProps,s.memoizedProps)}break;case 27:Bo(l,o),er(o),d&512&&(Aa||s===null||wl(s,s.return)),s!==null&&d&4&&dg(o,o.memoizedProps,s.memoizedProps);break;case 5:if(Bo(l,o),er(o),d&512&&(Aa||s===null||wl(s,s.return)),o.flags&32){v=o.stateNode;try{Yl(v,"")}catch(st){An(o,o.return,st)}}d&4&&o.stateNode!=null&&(v=o.memoizedProps,dg(o,v,s!==null?s.memoizedProps:v)),d&1024&&(hg=!0);break;case 6:if(Bo(l,o),er(o),d&4){if(o.stateNode===null)throw Error(u(162));d=o.memoizedProps,s=o.stateNode;try{s.nodeValue=d}catch(st){An(o,o.return,st)}}break;case 3:if(Qf=null,v=kt,kt=wo(l.containerInfo),Bo(l,o),kt=v,er(o),d&4&&s!==null&&s.memoizedState.isDehydrated)try{td(l.containerInfo)}catch(st){An(o,o.return,st)}hg&&(hg=!1,k0(o));break;case 4:d=kt,kt=wo(o.stateNode.containerInfo),Bo(l,o),er(o),kt=d;break;case 12:Bo(l,o),er(o);break;case 31:Bo(l,o),er(o),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Bh(o,d)));break;case 13:Bo(l,o),er(o),o.child.flags&8192&&o.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Cl=we()),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Bh(o,d)));break;case 22:v=o.memoizedState!==null;var se=s!==null&&s.memoizedState!==null,Ee=Ki,Le=Aa;if(Ki=Ee||v,Aa=Le||se,Bo(l,o),Aa=Le,Ki=Ee,er(o),d&8192)e:for(l=o.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(s===null||se||Ki||Aa||oc(o)),s=null,l=o;;){if(l.tag===5||l.tag===26){if(s===null){se=s=l;try{if(w=se.stateNode,v)z=w.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{$=se.stateNode;var Be=se.memoizedProps.style,Oe=Be!=null&&Be.hasOwnProperty("display")?Be.display:null;$.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(st){An(se,se.return,st)}}}else if(l.tag===6){if(s===null){se=l;try{se.stateNode.nodeValue=v?"":se.memoizedProps}catch(st){An(se,se.return,st)}}}else if(l.tag===18){if(s===null){se=l;try{var ze=se.stateNode;v?Ca(ze,!0):Ca(se.stateNode,!1)}catch(st){An(se,se.return,st)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;s===l&&(s=null),l=l.return}s===l&&(s=null),l.sibling.return=l.return,l=l.sibling}d&4&&(d=o.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,Bh(o,s))));break;case 19:Bo(l,o),er(o),d&4&&(d=o.updateQueue,d!==null&&(o.updateQueue=null,Bh(o,d)));break;case 30:break;case 21:break;default:Bo(l,o),er(o)}}function er(o){var l=o.flags;if(l&2){try{for(var s,d=o.return;d!==null;){if(z0(d)){s=d;break}d=d.return}if(s==null)throw Error(u(160));switch(s.tag){case 27:var v=s.stateNode,w=xf(o);Af(o,w,v);break;case 5:var z=s.stateNode;s.flags&32&&(Yl(z,""),s.flags&=-33);var $=xf(o);Af(o,$,z);break;case 3:case 4:var se=s.stateNode.containerInfo,Ee=xf(o);_f(o,Ee,se);break;default:throw Error(u(161))}}catch(Le){An(o,o.return,Le)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function k0(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;k0(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function Wi(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)kh(o,l.alternate,l),l=l.sibling}function oc(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:Or(4,l,l.return),oc(l);break;case 1:wl(l,l.return);var s=l.stateNode;typeof s.componentWillUnmount=="function"&&Fu(l,l.return,s),oc(l);break;case 27:fc(l.stateNode);case 26:case 5:wl(l,l.return),oc(l);break;case 22:l.memoizedState===null&&oc(l);break;case 30:oc(l);break;default:oc(l)}o=o.sibling}}function Tl(o,l,s){for(s=s&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var d=l.alternate,v=o,w=l,z=w.flags;switch(w.tag){case 0:case 11:case 15:Tl(v,w,s),Xr(4,w);break;case 1:if(Tl(v,w,s),d=w,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Ee){An(d,d.return,Ee)}if(d=w,v=d.updateQueue,v!==null){var $=d.stateNode;try{var se=v.shared.hiddenCallbacks;if(se!==null)for(v.shared.hiddenCallbacks=null,v=0;v<se.length;v++)Vm(se[v],$)}catch(Ee){An(d,d.return,Ee)}}s&&z&64&&fg(w),li(w,w.return);break;case 27:N0(w);case 26:case 5:Tl(v,w,s),s&&d===null&&z&4&&M0(w),li(w,w.return);break;case 12:Tl(v,w,s);break;case 31:Tl(v,w,s),s&&z&4&&YE(v,w);break;case 13:Tl(v,w,s),s&&z&4&&H0(v,w);break;case 22:w.memoizedState===null&&Tl(v,w,s),li(w,w.return);break;case 30:break;default:Tl(v,w,s)}l=l.sibling}}function mg(o,l){var s=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==s&&(o!=null&&o.refCount++,s!=null&&ph(s))}function gg(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&ph(o))}function Pr(o,l,s,d){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Mf(o,l,s,d),l=l.sibling}function Mf(o,l,s,d){var v=l.flags;switch(l.tag){case 0:case 11:case 15:Pr(o,l,s,d),v&2048&&Xr(9,l);break;case 1:Pr(o,l,s,d);break;case 3:Pr(o,l,s,d),v&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&ph(o)));break;case 12:if(v&2048){Pr(o,l,s,d),o=l.stateNode;try{var w=l.memoizedProps,z=w.id,$=w.onPostCommit;typeof $=="function"&&$(z,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(se){An(l,l.return,se)}}else Pr(o,l,s,d);break;case 31:Pr(o,l,s,d);break;case 13:Pr(o,l,s,d);break;case 23:break;case 22:w=l.stateNode,z=l.alternate,l.memoizedState!==null?w._visibility&2?Pr(o,l,s,d):Gh(o,l):w._visibility&2?Pr(o,l,s,d):(w._visibility|=2,zf(o,l,s,d,(l.subtreeFlags&10256)!==0||!1)),v&2048&&mg(z,l);break;case 24:Pr(o,l,s,d),v&2048&&gg(l.alternate,l);break;default:Pr(o,l,s,d)}}function zf(o,l,s,d,v){for(v=v&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var w=o,z=l,$=s,se=d,Ee=z.flags;switch(z.tag){case 0:case 11:case 15:zf(w,z,$,se,v),Xr(8,z);break;case 23:break;case 22:var Le=z.stateNode;z.memoizedState!==null?Le._visibility&2?zf(w,z,$,se,v):Gh(w,z):(Le._visibility|=2,zf(w,z,$,se,v)),v&&Ee&2048&&mg(z.alternate,z);break;case 24:zf(w,z,$,se,v),v&&Ee&2048&&gg(z.alternate,z);break;default:zf(w,z,$,se,v)}l=l.sibling}}function Gh(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var s=o,d=l,v=d.flags;switch(d.tag){case 22:Gh(s,d),v&2048&&mg(d.alternate,d);break;case 24:Gh(s,d),v&2048&&gg(d.alternate,d);break;default:Gh(s,d)}l=l.sibling}}var tr=8192;function ui(o,l,s){if(o.subtreeFlags&tr)for(o=o.child;o!==null;)IE(o,l,s),o=o.sibling}function IE(o,l,s){switch(o.tag){case 26:ui(o,l,s),o.flags&tr&&o.memoizedState!==null&&hi(s,kt,o.memoizedState,o.memoizedProps);break;case 5:ui(o,l,s);break;case 3:case 4:var d=kt;kt=wo(o.stateNode.containerInfo),ui(o,l,s),kt=d;break;case 22:o.memoizedState===null&&(d=o.alternate,d!==null&&d.memoizedState!==null?(d=tr,tr=16777216,ui(o,l,s),tr=d):ui(o,l,s));break;default:ui(o,l,s)}}function yg(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function Nf(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var s=0;s<l.length;s++){var d=l[s];Qa=d,vg(d,o)}yg(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)V0(o),o=o.sibling}function V0(o){switch(o.tag){case 0:case 11:case 15:Nf(o),o.flags&2048&&Or(9,o,o.return);break;case 3:Nf(o);break;case 12:Nf(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Yh(o)):Nf(o);break;default:Nf(o)}}function Yh(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var s=0;s<l.length;s++){var d=l[s];Qa=d,vg(d,o)}yg(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:Or(8,l,l.return),Yh(l);break;case 22:s=l.stateNode,s._visibility&2&&(s._visibility&=-3,Yh(l));break;default:Yh(l)}o=o.sibling}}function vg(o,l){for(;Qa!==null;){var s=Qa;switch(s.tag){case 0:case 11:case 15:Or(8,s,l);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var d=s.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:ph(s.memoizedState.cache)}if(d=s.child,d!==null)d.return=s,Qa=d;else e:for(s=o;Qa!==null;){d=Qa;var v=d.sibling,w=d.return;if(j0(d),d===s){Qa=null;break e}if(v!==null){v.return=w,Qa=v;break e}Qa=w}}}var qE={getCacheForType:function(o){var l=Ye(Ta),s=l.data.get(o);return s===void 0&&(s=o(),l.data.set(o,s)),s},cacheSignal:function(){return Ye(Ta).controller.signal}},B0=typeof WeakMap=="function"?WeakMap:Map,vn=0,Nn=null,an=null,Zt=0,_n=0,Ct=null,si=!1,Qu=!1,bg=!1,Rl=0,Yn=0,Ol=0,rc=0,Sg=0,Go=0,ia=0,Ih=null,ua=null,Eg=!1,Cl=0,G0=0,En=1/0,Uf=null,Kn=null,Ha=0,eu=null,Ju=null,ci=0,nr=0,wg=null,Tg=null,jf=0,qh=null;function ar(){return(vn&2)!==0&&Zt!==0?Zt&-Zt:L.T!==null?_g():yo()}function $E(){if(Go===0)if((Zt&536870912)===0||nn){var o=De;De<<=1,(De&3932160)===0&&(De=262144),Go=o}else Go=536870912;return o=jo.current,o!==null&&(o.flags|=32),Go}function Yo(o,l,s){(o===Nn&&(_n===2||_n===9)||o.cancelPendingCommit!==null)&&(fi(o,0),tu(o,Zt,Go,!1)),Zn(o,s),((vn&2)===0||o!==Nn)&&(o===Nn&&((vn&2)===0&&(rc|=s),Yn===4&&tu(o,Zt,Go,!1)),di(o))}function ZE(o,l,s){if((vn&6)!==0)throw Error(u(327));var d=!s&&(l&127)===0&&(l&o.expiredLanes)===0||ut(o,l),v=d?JE(o,l):Og(o,l,!0),w=d;do{if(v===0){Qu&&!d&&tu(o,l,0,!1);break}else{if(s=o.current.alternate,w&&!XE(s)){v=Og(o,l,!1),w=!1;continue}if(v===2){if(w=l,o.errorRecoveryDisabledLanes&w)var z=0;else z=o.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){l=z;e:{var $=o;v=Ih;var se=$.current.memoizedState.isDehydrated;if(se&&(fi($,z).flags|=256),z=Og($,z,!1),z!==2){if(bg&&!se){$.errorRecoveryDisabledLanes|=w,rc|=w,v=4;break e}w=ua,ua=v,w!==null&&(ua===null?ua=w:ua.push.apply(ua,w))}v=z}if(w=!1,v!==2)continue}}if(v===1){fi(o,0),tu(o,l,0,!0);break}e:{switch(d=o,w=v,w){case 0:case 1:throw Error(u(345));case 4:if((l&4194048)!==l)break;case 6:tu(d,l,Go,!si);break e;case 2:ua=null;break;case 3:case 5:break;default:throw Error(u(329))}if((l&62914560)===l&&(v=Cl+300-we(),10<v)){if(tu(d,l,Go,!si),Fe(d,0,!0)!==0)break e;ci=l,d.timeoutHandle=ep($h.bind(null,d,s,ua,Uf,Eg,l,Go,rc,ia,si,w,"Throttled",-0,0),v);break e}$h(d,s,ua,Uf,Eg,l,Go,rc,ia,si,w,null,-0,0)}}break}while(!0);di(o)}function $h(o,l,s,d,v,w,z,$,se,Ee,Le,Be,Oe,ze){if(o.timeoutHandle=-1,Be=l.subtreeFlags,Be&8192||(Be&16785408)===16785408){Be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ul},IE(l,w,Be);var st=(w&62914560)===w?Cl-we():(w&4194048)===w?G0-we():0;if(st=db(Be,st),st!==null){ci=w,o.cancelPendingCommit=st(tw.bind(null,o,l,w,s,d,v,z,$,se,Le,Be,null,Oe,ze)),tu(o,w,z,!Ee);return}}tw(o,l,w,s,d,v,z,$,se)}function XE(o){for(var l=o;;){var s=l.tag;if((s===0||s===11||s===15)&&l.flags&16384&&(s=l.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var d=0;d<s.length;d++){var v=s[d],w=v.getSnapshot;v=v.value;try{if(!So(w(),v))return!1}catch{return!1}}if(s=l.child,l.subtreeFlags&16384&&s!==null)s.return=l,l=s;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function tu(o,l,s,d){l&=~Sg,l&=~rc,o.suspendedLanes|=l,o.pingedLanes&=~l,d&&(o.warmLanes|=l),d=o.expirationTimes;for(var v=l;0<v;){var w=31-en(v),z=1<<w;d[w]=-1,v&=~z}s!==0&&Ea(o,s,l)}function Lf(){return(vn&6)===0?(au(0),!1):!0}function Y0(){if(an!==null){if(_n===0)var o=an.return;else o=an,yl=qi=null,Rh(o),ku=null,Xs=0,o=an;for(;o!==null;)GE(o.alternate,o),o=o.return;an=null}}function fi(o,l){var s=o.timeoutHandle;s!==-1&&(o.timeoutHandle=-1,yw(s)),s=o.cancelPendingCommit,s!==null&&(o.cancelPendingCommit=null,s()),ci=0,Y0(),Nn=o,an=s=Yi(o.current,null),Zt=l,_n=0,Ct=null,si=!1,Qu=ut(o,l),bg=!1,ia=Go=Sg=rc=Ol=Yn=0,ua=Ih=null,Eg=!1,(l&8)!==0&&(l|=l&32);var d=o.entangledLanes;if(d!==0)for(o=o.entanglements,d&=l;0<d;){var v=31-en(d),w=1<<v;l|=o[v],d&=~w}return Rl=l,pr(),s}function Hf(o,l){Lt=null,L.H=zh,l===ju||l===pf?(l=Jv(),_n=3):l===$s?(l=Jv(),_n=4):_n=l===lg?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Ct=l,an===null&&(Yn=1,Of(o,gr(l,o.current)))}function PE(){var o=jo.current;return o===null?!0:(Zt&4194048)===Zt?Er===null:(Zt&62914560)===Zt||(Zt&536870912)!==0?o===Er:!1}function FE(){var o=L.H;return L.H=zh,o===null?zh:o}function QE(){var o=L.A;return L.A=qE,o}function Rg(){Yn=4,si||(Zt&4194048)!==Zt&&jo.current!==null||(Qu=!0),(Ol&134217727)===0&&(rc&134217727)===0||Nn===null||tu(Nn,Zt,Go,!1)}function Og(o,l,s){var d=vn;vn|=2;var v=FE(),w=QE();(Nn!==o||Zt!==l)&&(Uf=null,fi(o,l)),l=!1;var z=Yn;e:do try{if(_n!==0&&an!==null){var $=an,se=Ct;switch(_n){case 8:Y0(),z=6;break e;case 3:case 2:case 9:case 6:jo.current===null&&(l=!0);var Ee=_n;if(_n=0,Ct=null,lc(o,$,se,Ee),s&&Qu){z=0;break e}break;default:Ee=_n,_n=0,Ct=null,lc(o,$,se,Ee)}}OO(),z=Yn;break}catch(Le){Hf(o,Le)}while(!0);return l&&o.shellSuspendCounter++,yl=qi=null,vn=d,L.H=v,L.A=w,an===null&&(Nn=null,Zt=0,pr()),z}function OO(){for(;an!==null;)KE(an)}function JE(o,l){var s=vn;vn|=2;var d=FE(),v=QE();Nn!==o||Zt!==l?(Uf=null,En=we()+500,fi(o,l)):Qu=ut(o,l);e:do try{if(_n!==0&&an!==null){l=an;var w=Ct;t:switch(_n){case 1:_n=0,Ct=null,lc(o,l,w,1);break;case 2:case 9:if(Fv(w)){_n=0,Ct=null,WE(l);break}l=function(){_n!==2&&_n!==9||Nn!==o||(_n=7),di(o)},w.then(l,l);break e;case 3:_n=7;break e;case 4:_n=5;break e;case 7:Fv(w)?(_n=0,Ct=null,WE(l)):(_n=0,Ct=null,lc(o,l,w,7));break;case 5:var z=null;switch(an.tag){case 26:z=an.memoizedState;case 5:case 27:var $=an;if(z?rr(z):$.stateNode.complete){_n=0,Ct=null;var se=$.sibling;if(se!==null)an=se;else{var Ee=$.return;Ee!==null?(an=Ee,Zh(Ee)):an=null}break t}}_n=0,Ct=null,lc(o,l,w,5);break;case 6:_n=0,Ct=null,lc(o,l,w,6);break;case 8:Y0(),Yn=6;break e;default:throw Error(u(462))}}Ku();break}catch(Le){Hf(o,Le)}while(!0);return yl=qi=null,L.H=d,L.A=v,vn=s,an!==null?0:(Nn=null,Zt=0,pr(),Yn)}function Ku(){for(;an!==null&&!je();)KE(an)}function KE(o){var l=_0(o.alternate,o,Rl);o.memoizedProps=o.pendingProps,l===null?Zh(o):an=l}function WE(o){var l=o,s=l.alternate;switch(l.tag){case 15:case 0:l=Xu(s,l,l.pendingProps,l.type,void 0,Zt);break;case 11:l=Xu(s,l,l.pendingProps,l.type.render,l.ref,Zt);break;case 5:Rh(l);default:GE(s,l),l=an=Yv(l,Rl),l=_0(s,l,Rl)}o.memoizedProps=o.pendingProps,l===null?Zh(o):an=l}function lc(o,l,s,d){yl=qi=null,Rh(l),ku=null,Xs=0;var v=l.return;try{if(RO(o,v,l,s,Zt)){Yn=1,Of(o,gr(s,o.current)),an=null;return}}catch(w){if(v!==null)throw an=v,w;Yn=1,Of(o,gr(s,o.current)),an=null;return}l.flags&32768?(nn||d===1?o=!0:Qu||(Zt&536870912)!==0?o=!1:(si=o=!0,(d===2||d===9||d===3||d===6)&&(d=jo.current,d!==null&&d.tag===13&&(d.flags|=16384))),ew(l,o)):Zh(l)}function Zh(o){var l=o;do{if((l.flags&32768)!==0){ew(l,si);return}o=l.return;var s=VE(l.alternate,l,Rl);if(s!==null){an=s;return}if(l=l.sibling,l!==null){an=l;return}an=l=o}while(l!==null);Yn===0&&(Yn=5)}function ew(o,l){do{var s=BE(o.alternate,o);if(s!==null){s.flags&=32767,an=s;return}if(s=o.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!l&&(o=o.sibling,o!==null)){an=o;return}an=o=s}while(o!==null);Yn=6,an=null}function tw(o,l,s,d,v,w,z,$,se){o.cancelPendingCommit=null;do kf();while(Ha!==0);if((vn&6)!==0)throw Error(u(327));if(l!==null){if(l===o.current)throw Error(u(177));if(w=l.lanes|l.childLanes,w|=Yr,Rn(o,s,w,z,$,se),o===Nn&&(an=Nn=null,Zt=0),Ju=l,eu=o,ci=s,nr=w,wg=v,Tg=d,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,cw(yt,function(){return lw(),null})):(o.callbackNode=null,o.callbackPriority=0),d=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||d){d=L.T,L.T=null,v=B.p,B.p=2,z=vn,vn|=4;try{Df(o,l,s)}finally{vn=z,B.p=v,L.T=d}}Ha=1,nw(),aw(),ow()}}function nw(){if(Ha===1){Ha=0;var o=eu,l=Ju,s=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||s){s=L.T,L.T=null;var d=B.p;B.p=2;var v=vn;vn|=4;try{pg(l,o);var w=Ug,z=Du(o.containerInfo),$=w.focusedElem,se=w.selectionRange;if(z!==$&&$&&$.ownerDocument&&Hs($.ownerDocument.documentElement,$)){if(se!==null&&oh($)){var Ee=se.start,Le=se.end;if(Le===void 0&&(Le=Ee),"selectionStart"in $)$.selectionStart=Ee,$.selectionEnd=Math.min(Le,$.value.length);else{var Be=$.ownerDocument||document,Oe=Be&&Be.defaultView||window;if(Oe.getSelection){var ze=Oe.getSelection(),st=$.textContent.length,Et=Math.min(se.start,st),jn=se.end===void 0?Et:Math.min(se.end,st);!ze.extend&&Et>jn&&(z=jn,jn=Et,Et=z);var ye=Bv($,Et),me=Bv($,jn);if(ye&&me&&(ze.rangeCount!==1||ze.anchorNode!==ye.node||ze.anchorOffset!==ye.offset||ze.focusNode!==me.node||ze.focusOffset!==me.offset)){var be=Be.createRange();be.setStart(ye.node,ye.offset),ze.removeAllRanges(),Et>jn?(ze.addRange(be),ze.extend(me.node,me.offset)):(be.setEnd(me.node,me.offset),ze.addRange(be))}}}}for(Be=[],ze=$;ze=ze.parentNode;)ze.nodeType===1&&Be.push({element:ze,left:ze.scrollLeft,top:ze.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<Be.length;$++){var ke=Be[$];ke.element.scrollLeft=ke.left,ke.element.scrollTop=ke.top}}ka=!!Ng,Ug=Ng=null}finally{vn=v,B.p=d,L.T=s}}o.current=l,Ha=2}}function aw(){if(Ha===2){Ha=0;var o=eu,l=Ju,s=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||s){s=L.T,L.T=null;var d=B.p;B.p=2;var v=vn;vn|=4;try{kh(o,l.alternate,l)}finally{vn=v,B.p=d,L.T=s}}Ha=3}}function ow(){if(Ha===4||Ha===3){Ha=0,Ce();var o=eu,l=Ju,s=ci,d=Tg;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ha=5:(Ha=0,Ju=eu=null,rw(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(Kn=null),Dn(s),l=l.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Nt,l,void 0,(l.current.flags&128)===128)}catch{}if(d!==null){l=L.T,v=B.p,B.p=2,L.T=null;try{for(var w=o.onRecoverableError,z=0;z<d.length;z++){var $=d[z];w($.value,{componentStack:$.stack})}}finally{L.T=l,B.p=v}}(ci&3)!==0&&kf(),di(o),v=o.pendingLanes,(s&261930)!==0&&(v&42)!==0?o===qh?jf++:(jf=0,qh=o):jf=0,au(0)}}function rw(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,ph(l)))}function kf(){return nw(),aw(),ow(),lw()}function lw(){if(Ha!==5)return!1;var o=eu,l=nr;nr=0;var s=Dn(ci),d=L.T,v=B.p;try{B.p=32>s?32:s,L.T=null,s=wg,wg=null;var w=eu,z=ci;if(Ha=0,Ju=eu=null,ci=0,(vn&6)!==0)throw Error(u(331));var $=vn;if(vn|=4,V0(w.current),Mf(w,w.current,z,s),vn=$,au(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Nt,w)}catch{}return!0}finally{B.p=v,L.T=d,rw(o,l)}}function iw(o,l,s){l=gr(s,l),l=b0(o.stateNode,l,2),o=Sr(o,l,2),o!==null&&(Zn(o,2),di(o))}function An(o,l,s){if(o.tag===3)iw(o,o,s);else for(;l!==null;){if(l.tag===3){iw(l,o,s);break}else if(l.tag===1){var d=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Kn===null||!Kn.has(d))){o=gr(s,o),s=S0(2),d=Sr(l,s,2),d!==null&&(E0(s,d,l,o),Zn(d,2),di(d));break}}l=l.return}}function Xh(o,l,s){var d=o.pingCache;if(d===null){d=o.pingCache=new B0;var v=new Set;d.set(l,v)}else v=d.get(l),v===void 0&&(v=new Set,d.set(l,v));v.has(s)||(bg=!0,v.add(s),o=I0.bind(null,o,l,s),l.then(o,o))}function I0(o,l,s){var d=o.pingCache;d!==null&&d.delete(l),o.pingedLanes|=o.suspendedLanes&s,o.warmLanes&=~s,Nn===o&&(Zt&s)===s&&(Yn===4||Yn===3&&(Zt&62914560)===Zt&&300>we()-Cl?(vn&2)===0&&fi(o,0):Sg|=s,ia===Zt&&(ia=0)),di(o)}function uw(o,l){l===0&&(l=tn()),o=Gi(o,l),o!==null&&(Zn(o,l),di(o))}function Cr(o){var l=o.memoizedState,s=0;l!==null&&(s=l.retryLane),uw(o,s)}function sw(o,l){var s=0;switch(o.tag){case 31:case 13:var d=o.stateNode,v=o.memoizedState;v!==null&&(s=v.retryLane);break;case 19:d=o.stateNode;break;case 22:d=o.stateNode._retryCache;break;default:throw Error(u(314))}d!==null&&d.delete(l),uw(o,s)}function cw(o,l){return Ve(o,l)}var Vf=null,ic=null,q0=!1,Cg=!1,$0=!1,nu=0;function di(o){o!==ic&&o.next===null&&(ic===null?Vf=ic=o:ic=ic.next=o),Cg=!0,q0||(q0=!0,Fh())}function au(o,l){if(!$0&&Cg){$0=!0;do for(var s=!1,d=Vf;d!==null;){if(o!==0){var v=d.pendingLanes;if(v===0)var w=0;else{var z=d.suspendedLanes,$=d.pingedLanes;w=(1<<31-en(42|o)+1)-1,w&=v&~(z&~$),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(s=!0,uc(d,w))}else w=Zt,w=Fe(d,d===Nn?w:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(w&3)===0||ut(d,w)||(s=!0,uc(d,w));d=d.next}while(s);$0=!1}}function xg(){Z0()}function Z0(){Cg=q0=!1;var o=0;nu!==0&&CO()&&(o=nu);for(var l=we(),s=null,d=Vf;d!==null;){var v=d.next,w=X0(d,l);w===0?(d.next=null,s===null?Vf=v:s.next=v,v===null&&(ic=s)):(s=d,(o!==0||(w&3)!==0)&&(Cg=!0)),d=v}Ha!==0&&Ha!==5||au(o),nu!==0&&(nu=0)}function X0(o,l){for(var s=o.suspendedLanes,d=o.pingedLanes,v=o.expirationTimes,w=o.pendingLanes&-62914561;0<w;){var z=31-en(w),$=1<<z,se=v[z];se===-1?(($&s)===0||($&d)!==0)&&(v[z]=ft($,l)):se<=l&&(o.expiredLanes|=$),w&=~$}if(l=Nn,s=Zt,s=Fe(o,o===l?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d=o.callbackNode,s===0||o===l&&(_n===2||_n===9)||o.cancelPendingCommit!==null)return d!==null&&d!==null&&Re(d),o.callbackNode=null,o.callbackPriority=0;if((s&3)===0||ut(o,s)){if(l=s&-s,l===o.callbackPriority)return l;switch(d!==null&&Re(d),Dn(s)){case 2:case 8:s=ct;break;case 32:s=yt;break;case 268435456:s=Rt;break;default:s=yt}return d=Ph.bind(null,o),s=Ve(s,d),o.callbackPriority=l,o.callbackNode=s,l}return d!==null&&d!==null&&Re(d),o.callbackPriority=2,o.callbackNode=null,2}function Ph(o,l){if(Ha!==0&&Ha!==5)return o.callbackNode=null,o.callbackPriority=0,null;var s=o.callbackNode;if(kf()&&o.callbackNode!==s)return null;var d=Zt;return d=Fe(o,o===Nn?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),d===0?null:(ZE(o,d,l),X0(o,we()),o.callbackNode!=null&&o.callbackNode===s?Ph.bind(null,o):null)}function uc(o,l){if(kf())return null;ZE(o,l,!0)}function Fh(){vw(function(){(vn&6)!==0?Ve(pt,xg):Z0()})}function _g(){if(nu===0){var o=Uu;o===0&&(o=Se,Se<<=1,(Se&261888)===0&&(Se=256)),nu=o}return nu}function fw(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:kr(""+o)}function sc(o,l){var s=l.ownerDocument.createElement("input");return s.name=l.name,s.value=l.value,o.id&&s.setAttribute("form",o.id),l.parentNode.insertBefore(s,l),o=new FormData(o),s.parentNode.removeChild(s),o}function Qh(o,l,s,d,v){if(l==="submit"&&s&&s.stateNode===v){var w=fw((v[vo]||null).action),z=d.submitter;z&&(l=(l=z[vo]||null)?fw(l.formAction):z.getAttribute("formAction"),l!==null&&(w=l,z=null));var $=new th("action","action",null,d,v);o.push({event:$,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(nu!==0){var se=z?sc(v,z):new FormData(v);Tf(s,{pending:!0,data:se,method:v.method,action:w},null,se)}}else typeof w=="function"&&($.preventDefault(),se=z?sc(v,z):new FormData(v),Tf(s,{pending:!0,data:se,method:v.method,action:w},w,se))},currentTarget:v}]})}}for(var Ag=0;Ag<uf.length;Ag++){var Bf=uf[Ag],P0=Bf.toLowerCase(),F0=Bf[0].toUpperCase()+Bf.slice(1);Mo(P0,"on"+F0)}Mo(lh,"onAnimationEnd"),Mo(Gv,"onAnimationIteration"),Mo(Am,"onAnimationStart"),Mo("dblclick","onDoubleClick"),Mo("focusin","onFocus"),Mo("focusout","onBlur"),Mo(ks,"onTransitionRun"),Mo(ih,"onTransitionStart"),Mo(Zl,"onTransitionCancel"),Mo(wE,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),Ou("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ou("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ou("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ou("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ou("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ou("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gf="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(" "),dw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gf));function hw(o,l){l=(l&4)!==0;for(var s=0;s<o.length;s++){var d=o[s],v=d.event;d=d.listeners;e:{var w=void 0;if(l)for(var z=d.length-1;0<=z;z--){var $=d[z],se=$.instance,Ee=$.currentTarget;if($=$.listener,se!==w&&v.isPropagationStopped())break e;w=$,v.currentTarget=Ee;try{w(v)}catch(Le){Vs(Le)}v.currentTarget=null,w=se}else for(z=0;z<d.length;z++){if($=d[z],se=$.instance,Ee=$.currentTarget,$=$.listener,se!==w&&v.isPropagationStopped())break e;w=$,v.currentTarget=Ee;try{w(v)}catch(Le){Vs(Le)}v.currentTarget=null,w=se}}}}function Kt(o,l){var s=l[um];s===void 0&&(s=l[um]=new Set);var d=o+"__bubble";s.has(d)||(Jh(l,o,2,!1),s.add(d))}function Q0(o,l,s){var d=0;l&&(d|=4),Jh(s,o,d,l)}var Dg="_reactListening"+Math.random().toString(36).slice(2);function Yf(o){if(!o[Dg]){o[Dg]=!0,xs.forEach(function(s){s!=="selectionchange"&&(dw.has(s)||Q0(s,!1,o),Q0(s,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Dg]||(l[Dg]=!0,Q0("selectionchange",!1,l))}}function Jh(o,l,s,d){switch(lp(l)){case 2:var v=pi;break;case 8:v=mi;break;default:v=fo}s=v.bind(null,l,s,o),v=void 0,!Wd||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),d?v!==void 0?o.addEventListener(l,s,{capture:!0,passive:v}):o.addEventListener(l,s,!0):v!==void 0?o.addEventListener(l,s,{passive:v}):o.addEventListener(l,s,!1)}function J0(o,l,s,d,v){var w=d;if((l&1)===0&&(l&2)===0&&d!==null)e:for(;;){if(d===null)return;var z=d.tag;if(z===3||z===4){var $=d.stateNode.containerInfo;if($===v)break;if(z===4)for(z=d.return;z!==null;){var se=z.tag;if((se===3||se===4)&&z.stateNode.containerInfo===v)return;z=z.return}for(;$!==null;){if(z=Rs($),z===null)return;if(se=z.tag,se===5||se===6||se===26||se===27){d=w=z;continue e}$=$.parentNode}}d=d.return}Tv(function(){var Ee=w,Le=gm(s),Be=[];e:{var Oe=Xl.get(o);if(Oe!==void 0){var ze=th,st=o;switch(o){case"keypress":if(vm(s)===0)break e;case"keydown":case"keyup":ze=wm;break;case"focusin":st="focus",ze=Sm;break;case"focusout":st="blur",ze=Sm;break;case"beforeblur":case"afterblur":ze=Sm;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ze=nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ze=cE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ze=mE;break;case lh:case Gv:case Am:ze=dE;break;case wE:ze=SO;break;case"scroll":case"scrollend":ze=vO;break;case"wheel":ze=EO;break;case"copy":case"cut":case"paste":ze=Ms;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ze=fl;break;case"toggle":case"beforetoggle":ze=zv}var Et=(l&4)!==0,jn=!Et&&(o==="scroll"||o==="scrollend"),ye=Et?Oe!==null?Oe+"Capture":null:Oe;Et=[];for(var me=Ee,be;me!==null;){var ke=me;if(be=ke.stateNode,ke=ke.tag,ke!==5&&ke!==26&&ke!==27||be===null||ye===null||(ke=qa(me,ye),ke!=null&&Et.push(Kh(me,ke,be))),jn)break;me=me.return}0<Et.length&&(Oe=new ze(Oe,st,null,s,Le),Be.push({event:Oe,listeners:Et}))}}if((l&7)===0){e:{if(Oe=o==="mouseover"||o==="pointerover",ze=o==="mouseout"||o==="pointerout",Oe&&s!==mm&&(st=s.relatedTarget||s.fromElement)&&(Rs(st)||st[Li]))break e;if((ze||Oe)&&(Oe=Le.window===Le?Le:(Oe=Le.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,ze?(st=s.relatedTarget||s.toElement,ze=Ee,st=st?Rs(st):null,st!==null&&(jn=p(st),Et=st.tag,st!==jn||Et!==5&&Et!==27&&Et!==6)&&(st=null)):(ze=null,st=Ee),ze!==st)){if(Et=nf,ke="onMouseLeave",ye="onMouseEnter",me="mouse",(o==="pointerout"||o==="pointerover")&&(Et=fl,ke="onPointerLeave",ye="onPointerEnter",me="pointer"),jn=ze==null?Oe:Pc(ze),be=st==null?Oe:Pc(st),Oe=new Et(ke,me+"leave",ze,s,Le),Oe.target=jn,Oe.relatedTarget=be,ke=null,Rs(Le)===Ee&&(Et=new Et(ye,me+"enter",st,s,Le),Et.target=be,Et.relatedTarget=jn,ke=Et),jn=ke,ze&&st)t:{for(Et=pw,ye=ze,me=st,be=0,ke=ye;ke;ke=Et(ke))be++;ke=0;for(var vt=me;vt;vt=Et(vt))ke++;for(;0<be-ke;)ye=Et(ye),be--;for(;0<ke-be;)me=Et(me),ke--;for(;be--;){if(ye===me||me!==null&&ye===me.alternate){Et=ye;break t}ye=Et(ye),me=Et(me)}Et=null}else Et=null;ze!==null&&Mg(Be,Oe,ze,Et,!1),st!==null&&jn!==null&&Mg(Be,jn,st,Et,!0)}}e:{if(Oe=Ee?Pc(Ee):window,ze=Oe.nodeName&&Oe.nodeName.toLowerCase(),ze==="select"||ze==="input"&&Oe.type==="file")var mn=Hv;else if($l(Oe))if(Om)mn=Ls;else{mn=SE;var mt=bE}else ze=Oe.nodeName,!ze||ze.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Ee&&wv(Ee.elementType)&&(mn=Hv):mn=Au;if(mn&&(mn=mn(o,Ee))){Lv(Be,mn,s,Le);break e}mt&&mt(o,Oe,Ee),o==="focusout"&&Ee&&Oe.type==="number"&&Ee.memoizedProps.value!=null&&_s(Oe,"number",Oe.value)}switch(mt=Ee?Pc(Ee):window,o){case"focusin":($l(mt)||mt.contentEditable==="true")&&(Mu=mt,rf=Ee,Gr=null);break;case"focusout":Gr=rf=Mu=null;break;case"mousedown":hl=!0;break;case"contextmenu":case"mouseup":case"dragend":hl=!1,_m(Be,s,Le);break;case"selectionchange":if(rh)break;case"keydown":case"keyup":_m(Be,s,Le)}var jt;if(af)e:{switch(o){case"compositionstart":var Vt="onCompositionStart";break e;case"compositionend":Vt="onCompositionEnd";break e;case"compositionupdate":Vt="onCompositionUpdate";break e}Vt=void 0}else Ns?Rm(o,s)&&(Vt="onCompositionEnd"):o==="keydown"&&s.keyCode===229&&(Vt="onCompositionStart");Vt&&(Nv&&s.locale!=="ko"&&(Ns||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Ns&&(jt=Ov()):(Vi=Le,Rv="value"in Vi?Vi.value:Vi.textContent,Ns=!0)),mt=Wh(Ee,Vt),0<mt.length&&(Vt=new hE(Vt,o,null,s,Le),Be.push({event:Vt,listeners:mt}),jt?Vt.data=jt:(jt=Uv(s),jt!==null&&(Vt.data=jt)))),(jt=bo?vE(o,s):wO(o,s))&&(Vt=Wh(Ee,"onBeforeInput"),0<Vt.length&&(mt=new hE("onBeforeInput","beforeinput",null,s,Le),Be.push({event:mt,listeners:Vt}),mt.data=jt)),Qh(Be,o,Ee,s,Le)}hw(Be,l)})}function Kh(o,l,s){return{instance:o,listener:l,currentTarget:s}}function Wh(o,l){for(var s=l+"Capture",d=[];o!==null;){var v=o,w=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||w===null||(v=qa(o,s),v!=null&&d.unshift(Kh(o,v,w)),v=qa(o,l),v!=null&&d.push(Kh(o,v,w))),o.tag===3)return d;o=o.return}return[]}function pw(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Mg(o,l,s,d,v){for(var w=l._reactName,z=[];s!==null&&s!==d;){var $=s,se=$.alternate,Ee=$.stateNode;if($=$.tag,se!==null&&se===d)break;$!==5&&$!==26&&$!==27||Ee===null||(se=Ee,v?(Ee=qa(s,w),Ee!=null&&z.unshift(Kh(s,Ee,se))):v||(Ee=qa(s,w),Ee!=null&&z.push(Kh(s,Ee,se)))),s=s.return}z.length!==0&&o.push({event:l,listeners:z})}var mw=/\r\n?/g,K0=/\u0000|\uFFFD/g;function W0(o){return(typeof o=="string"?o:""+o).replace(mw,`
31
+ `).replace(K0,"")}function eb(o,l){return l=W0(l),W0(o)===l}function Un(o,l,s,d,v,w){switch(s){case"children":typeof d=="string"?l==="body"||l==="textarea"&&d===""||Yl(o,d):(typeof d=="number"||typeof d=="bigint")&&l!=="body"&&Yl(o,""+d);break;case"className":dm(o,"class",d);break;case"tabIndex":dm(o,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":dm(o,s,d);break;case"style":iE(o,d,w);break;case"data":if(l!=="object"){dm(o,"data",d);break}case"src":case"href":if(d===""&&(l!=="a"||s!=="href")){o.removeAttribute(s);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(s);break}d=kr(""+d),o.setAttribute(s,d);break;case"action":case"formAction":if(typeof d=="function"){o.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(s==="formAction"?(l!=="input"&&Un(o,l,"name",v.name,v,null),Un(o,l,"formEncType",v.formEncType,v,null),Un(o,l,"formMethod",v.formMethod,v,null),Un(o,l,"formTarget",v.formTarget,v,null)):(Un(o,l,"encType",v.encType,v,null),Un(o,l,"method",v.method,v,null),Un(o,l,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){o.removeAttribute(s);break}d=kr(""+d),o.setAttribute(s,d);break;case"onClick":d!=null&&(o.onclick=ul);break;case"onScroll":d!=null&&Kt("scroll",o);break;case"onScrollEnd":d!=null&&Kt("scrollend",o);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(u(61));if(s=d.__html,s!=null){if(v.children!=null)throw Error(u(60));o.innerHTML=s}}break;case"multiple":o.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":o.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){o.removeAttribute("xlink:href");break}s=kr(""+d),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(s,""+d):o.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(s,""):o.removeAttribute(s);break;case"capture":case"download":d===!0?o.setAttribute(s,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?o.setAttribute(s,d):o.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?o.setAttribute(s,d):o.removeAttribute(s);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?o.removeAttribute(s):o.setAttribute(s,d);break;case"popover":Kt("beforetoggle",o),Kt("toggle",o),Jc(o,"popover",d);break;case"xlinkActuate":Hi(o,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Hi(o,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Hi(o,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Hi(o,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Hi(o,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Hi(o,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Hi(o,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Hi(o,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Hi(o,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Jc(o,"is",d);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=yO.get(s)||s,Jc(o,s,d))}}function tb(o,l,s,d,v,w){switch(s){case"style":iE(o,d,w);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(u(61));if(s=d.__html,s!=null){if(v.children!=null)throw Error(u(60));o.innerHTML=s}}break;case"children":typeof d=="string"?Yl(o,d):(typeof d=="number"||typeof d=="bigint")&&Yl(o,""+d);break;case"onScroll":d!=null&&Kt("scroll",o);break;case"onScrollEnd":d!=null&&Kt("scrollend",o);break;case"onClick":d!=null&&(o.onclick=ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ru.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(v=s.endsWith("Capture"),l=s.slice(2,v?s.length-7:void 0),w=o[vo]||null,w=w!=null?w[s]:null,typeof w=="function"&&o.removeEventListener(l,w,v),typeof d=="function")){typeof w!="function"&&w!==null&&(s in o?o[s]=null:o.hasAttribute(s)&&o.removeAttribute(s)),o.addEventListener(l,d,v);break e}s in o?o[s]=d:d===!0?o.setAttribute(s,""):Jc(o,s,d)}}}function co(o,l,s){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Kt("error",o),Kt("load",o);var d=!1,v=!1,w;for(w in s)if(s.hasOwnProperty(w)){var z=s[w];if(z!=null)switch(w){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,l));default:Un(o,l,w,z,s,null)}}v&&Un(o,l,"srcSet",s.srcSet,s,null),d&&Un(o,l,"src",s.src,s,null);return;case"input":Kt("invalid",o);var $=w=z=v=null,se=null,Ee=null;for(d in s)if(s.hasOwnProperty(d)){var Le=s[d];if(Le!=null)switch(d){case"name":v=Le;break;case"type":z=Le;break;case"checked":se=Le;break;case"defaultChecked":Ee=Le;break;case"value":w=Le;break;case"defaultValue":$=Le;break;case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(u(137,l));break;default:Un(o,l,d,Le,s,null)}}Qd(o,w,$,se,Ee,z,v,!1);return;case"select":Kt("invalid",o),d=z=w=null;for(v in s)if(s.hasOwnProperty(v)&&($=s[v],$!=null))switch(v){case"value":w=$;break;case"defaultValue":z=$;break;case"multiple":d=$;default:Un(o,l,v,$,s,null)}l=w,s=z,o.multiple=!!d,l!=null?Kc(o,!!d,l,!1):s!=null&&Kc(o,!!d,s,!0);return;case"textarea":Kt("invalid",o),w=v=d=null;for(z in s)if(s.hasOwnProperty(z)&&($=s[z],$!=null))switch(z){case"value":d=$;break;case"defaultValue":v=$;break;case"children":w=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(u(91));break;default:Un(o,l,z,$,s,null)}Ev(o,d,v,w);return;case"option":for(se in s)s.hasOwnProperty(se)&&(d=s[se],d!=null)&&(se==="selected"?o.selected=d&&typeof d!="function"&&typeof d!="symbol":Un(o,l,se,d,s,null));return;case"dialog":Kt("beforetoggle",o),Kt("toggle",o),Kt("cancel",o),Kt("close",o);break;case"iframe":case"object":Kt("load",o);break;case"video":case"audio":for(d=0;d<Gf.length;d++)Kt(Gf[d],o);break;case"image":Kt("error",o),Kt("load",o);break;case"details":Kt("toggle",o);break;case"embed":case"source":case"link":Kt("error",o),Kt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ee in s)if(s.hasOwnProperty(Ee)&&(d=s[Ee],d!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,l));default:Un(o,l,Ee,d,s,null)}return;default:if(wv(l)){for(Le in s)s.hasOwnProperty(Le)&&(d=s[Le],d!==void 0&&tb(o,l,Le,d,s,void 0));return}}for($ in s)s.hasOwnProperty($)&&(d=s[$],d!=null&&Un(o,l,$,d,s,null))}function nb(o,l,s,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,w=null,z=null,$=null,se=null,Ee=null,Le=null;for(ze in s){var Be=s[ze];if(s.hasOwnProperty(ze)&&Be!=null)switch(ze){case"checked":break;case"value":break;case"defaultValue":se=Be;default:d.hasOwnProperty(ze)||Un(o,l,ze,null,d,Be)}}for(var Oe in d){var ze=d[Oe];if(Be=s[Oe],d.hasOwnProperty(Oe)&&(ze!=null||Be!=null))switch(Oe){case"type":w=ze;break;case"name":v=ze;break;case"checked":Ee=ze;break;case"defaultChecked":Le=ze;break;case"value":z=ze;break;case"defaultValue":$=ze;break;case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(u(137,l));break;default:ze!==Be&&Un(o,l,Oe,ze,d,Be)}}Fd(o,z,$,se,Ee,Le,w,v);return;case"select":ze=z=$=Oe=null;for(w in s)if(se=s[w],s.hasOwnProperty(w)&&se!=null)switch(w){case"value":break;case"multiple":ze=se;default:d.hasOwnProperty(w)||Un(o,l,w,null,d,se)}for(v in d)if(w=d[v],se=s[v],d.hasOwnProperty(v)&&(w!=null||se!=null))switch(v){case"value":Oe=w;break;case"defaultValue":$=w;break;case"multiple":z=w;default:w!==se&&Un(o,l,v,w,d,se)}l=$,s=z,d=ze,Oe!=null?Kc(o,!!s,Oe,!1):!!d!=!!s&&(l!=null?Kc(o,!!s,l,!0):Kc(o,!!s,s?[]:"",!1));return;case"textarea":ze=Oe=null;for($ in s)if(v=s[$],s.hasOwnProperty($)&&v!=null&&!d.hasOwnProperty($))switch($){case"value":break;case"children":break;default:Un(o,l,$,null,d,v)}for(z in d)if(v=d[z],w=s[z],d.hasOwnProperty(z)&&(v!=null||w!=null))switch(z){case"value":Oe=v;break;case"defaultValue":ze=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:v!==w&&Un(o,l,z,v,d,w)}Sv(o,Oe,ze);return;case"option":for(var st in s)Oe=s[st],s.hasOwnProperty(st)&&Oe!=null&&!d.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:Un(o,l,st,null,d,Oe));for(se in d)Oe=d[se],ze=s[se],d.hasOwnProperty(se)&&Oe!==ze&&(Oe!=null||ze!=null)&&(se==="selected"?o.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol":Un(o,l,se,Oe,d,ze));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Et in s)Oe=s[Et],s.hasOwnProperty(Et)&&Oe!=null&&!d.hasOwnProperty(Et)&&Un(o,l,Et,null,d,Oe);for(Ee in d)if(Oe=d[Ee],ze=s[Ee],d.hasOwnProperty(Ee)&&Oe!==ze&&(Oe!=null||ze!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(u(137,l));break;default:Un(o,l,Ee,Oe,d,ze)}return;default:if(wv(l)){for(var jn in s)Oe=s[jn],s.hasOwnProperty(jn)&&Oe!==void 0&&!d.hasOwnProperty(jn)&&tb(o,l,jn,void 0,d,Oe);for(Le in d)Oe=d[Le],ze=s[Le],!d.hasOwnProperty(Le)||Oe===ze||Oe===void 0&&ze===void 0||tb(o,l,Le,Oe,d,ze);return}}for(var ye in s)Oe=s[ye],s.hasOwnProperty(ye)&&Oe!=null&&!d.hasOwnProperty(ye)&&Un(o,l,ye,null,d,Oe);for(Be in d)Oe=d[Be],ze=s[Be],!d.hasOwnProperty(Be)||Oe===ze||Oe==null&&ze==null||Un(o,l,Be,Oe,d,ze)}function zg(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ab(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,s=performance.getEntriesByType("resource"),d=0;d<s.length;d++){var v=s[d],w=v.transferSize,z=v.initiatorType,$=v.duration;if(w&&$&&zg(z)){for(z=0,$=v.responseEnd,d+=1;d<s.length;d++){var se=s[d],Ee=se.startTime;if(Ee>$)break;var Le=se.transferSize,Be=se.initiatorType;Le&&zg(Be)&&(se=se.responseEnd,z+=Le*(se<$?1:($-Ee)/(se-Ee)))}if(--d,l+=8*(w+z)/(v.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Ng=null,Ug=null;function Wu(o){return o.nodeType===9?o:o.ownerDocument}function gw(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ob(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function If(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var jg=null;function CO(){var o=window.event;return o&&o.type==="popstate"?o===jg?!1:(jg=o,!0):(jg=null,!1)}var ep=typeof setTimeout=="function"?setTimeout:void 0,yw=typeof clearTimeout=="function"?clearTimeout:void 0,cc=typeof Promise=="function"?Promise:void 0,vw=typeof queueMicrotask=="function"?queueMicrotask:typeof cc<"u"?function(o){return cc.resolve(null).then(o).catch(rb)}:ep;function rb(o){setTimeout(function(){throw o})}function xl(o){return o==="head"}function lb(o,l){var s=l,d=0;do{var v=s.nextSibling;if(o.removeChild(s),v&&v.nodeType===8)if(s=v.data,s==="/$"||s==="/&"){if(d===0){o.removeChild(v),td(l);return}d--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")d++;else if(s==="html")fc(o.ownerDocument.documentElement);else if(s==="head"){s=o.ownerDocument.head,fc(s);for(var w=s.firstChild;w;){var z=w.nextSibling,$=w.nodeName;w[Bl]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&w.rel.toLowerCase()==="stylesheet"||s.removeChild(w),w=z}}else s==="body"&&fc(o.ownerDocument.body);s=v}while(s);td(l)}function Ca(o,l){var s=o;o=0;do{var d=s.nextSibling;if(s.nodeType===1?l?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(l?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(o===0)break;o--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||o++;s=d}while(s)}function tp(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var s=l;switch(l=l.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":tp(s),sm(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}o.removeChild(s)}}function xO(o,l,s,d){for(;o.nodeType===1;){var v=s;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!d&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(d){if(!o[Bl])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(w=o.getAttribute("rel"),w==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(w!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(w=o.getAttribute("src"),(w!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&w&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var w=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===w)return o}else return o;if(o=Io(o.nextSibling),o===null)break}return null}function Gt(o,l,s){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Io(o.nextSibling),o===null))return null;return o}function bw(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=Io(o.nextSibling),o===null))return null;return o}function Fr(o){return o.data==="$?"||o.data==="$~"}function es(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function qf(o,l){var s=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||s.readyState!=="loading")l();else{var d=function(){l(),s.removeEventListener("DOMContentLoaded",d)};s.addEventListener("DOMContentLoaded",d),o._reactRetry=d}}function Io(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var np=null;function Lg(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var s=o.data;if(s==="/$"||s==="/&"){if(l===0)return Io(o.nextSibling);l--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||l++}o=o.nextSibling}return null}function _l(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var s=o.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(l===0)return o;l--}else s!=="/$"&&s!=="/&"||l++}o=o.previousSibling}return null}function $f(o,l,s){switch(l=Wu(s),o){case"html":if(o=l.documentElement,!o)throw Error(u(452));return o;case"head":if(o=l.head,!o)throw Error(u(453));return o;case"body":if(o=l.body,!o)throw Error(u(454));return o;default:throw Error(u(451))}}function fc(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);sm(o)}var or=new Map,ap=new Set;function wo(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Al=B.d;B.d={f:_O,r:Sw,D:Me,C:wn,L:AO,m:ib,X:ou,S:ub,M:ts};function _O(){var o=Al.f(),l=Lf();return o||l}function Sw(o){var l=Os(o);l!==null&&l.tag===5&&l.type==="form"?zn(l):Al.r(o)}var Zf=typeof document>"u"?null:document;function Da(o,l,s){var d=Zf;if(d&&typeof l=="string"&&l){var v=hr(l);v='link[rel="'+o+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),ap.has(v)||(ap.add(v),o={rel:o,crossOrigin:s,href:l},d.querySelector(v)===null&&(l=d.createElement("link"),co(l,"link",o),On(l),d.head.appendChild(l)))}}function Me(o){Al.D(o),Da("dns-prefetch",o,null)}function wn(o,l){Al.C(o,l),Da("preconnect",o,l)}function AO(o,l,s){Al.L(o,l,s);var d=Zf;if(d&&o&&l){var v='link[rel="preload"][as="'+hr(l)+'"]';l==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+hr(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+hr(s.imageSizes)+'"]')):v+='[href="'+hr(o)+'"]';var w=v;switch(l){case"style":w=xr(o);break;case"script":w=dc(o)}or.has(w)||(o=T({rel:"preload",href:l==="image"&&s&&s.imageSrcSet?void 0:o,as:l},s),or.set(w,o),d.querySelector(v)!==null||l==="style"&&d.querySelector(ns(w))||l==="script"&&d.querySelector(Ff(w))||(l=d.createElement("link"),co(l,"link",o),On(l),d.head.appendChild(l)))}}function ib(o,l){Al.m(o,l);var s=Zf;if(s&&o){var d=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+hr(d)+'"][href="'+hr(o)+'"]',w=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=dc(o)}if(!or.has(w)&&(o=T({rel:"modulepreload",href:o},l),or.set(w,o),s.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ff(w)))return}d=s.createElement("link"),co(d,"link",o),On(d),s.head.appendChild(d)}}}function ub(o,l,s){Al.S(o,l,s);var d=Zf;if(d&&o){var v=Cs(d).hoistableStyles,w=xr(o);l=l||"default";var z=v.get(w);if(!z){var $={loading:0,preload:null};if(z=d.querySelector(ns(w)))$.loading=5;else{o=T({rel:"stylesheet",href:o,"data-precedence":l},s),(s=or.get(w))&&Hg(o,s);var se=z=d.createElement("link");On(se),co(se,"link",o),se._p=new Promise(function(Ee,Le){se.onload=Ee,se.onerror=Le}),se.addEventListener("load",function(){$.loading|=1}),se.addEventListener("error",function(){$.loading|=2}),$.loading|=4,op(z,l,d)}z={type:"stylesheet",instance:z,count:1,state:$},v.set(w,z)}}}function ou(o,l){Al.X(o,l);var s=Zf;if(s&&o){var d=Cs(s).hoistableScripts,v=dc(o),w=d.get(v);w||(w=s.querySelector(Ff(v)),w||(o=T({src:o,async:!0},l),(l=or.get(v))&&kg(o,l),w=s.createElement("script"),On(w),co(w,"link",o),s.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},d.set(v,w))}}function ts(o,l){Al.M(o,l);var s=Zf;if(s&&o){var d=Cs(s).hoistableScripts,v=dc(o),w=d.get(v);w||(w=s.querySelector(Ff(v)),w||(o=T({src:o,async:!0,type:"module"},l),(l=or.get(v))&&kg(o,l),w=s.createElement("script"),On(w),co(w,"link",o),s.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},d.set(v,w))}}function Xf(o,l,s,d){var v=(v=_e.current)?wo(v):null;if(!v)throw Error(u(446));switch(o){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(l=xr(s.href),s=Cs(v).hoistableStyles,d=s.get(l),d||(d={type:"style",instance:null,count:0,state:null},s.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){o=xr(s.href);var w=Cs(v).hoistableStyles,z=w.get(o);if(z||(v=v.ownerDocument||v,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(o,z),(w=v.querySelector(ns(o)))&&!w._p&&(z.instance=w,z.state.loading=5),or.has(o)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},or.set(o,s),w||Ew(v,o,s,z.state))),l&&d===null)throw Error(u(528,""));return z}if(l&&d!==null)throw Error(u(529,""));return null;case"script":return l=s.async,s=s.src,typeof s=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=dc(s),s=Cs(v).hoistableScripts,d=s.get(l),d||(d={type:"script",instance:null,count:0,state:null},s.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,o))}}function xr(o){return'href="'+hr(o)+'"'}function ns(o){return'link[rel="stylesheet"]['+o+"]"}function Pf(o){return T({},o,{"data-precedence":o.precedence,precedence:null})}function Ew(o,l,s,d){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?d.loading=1:(l=o.createElement("link"),d.preload=l,l.addEventListener("load",function(){return d.loading|=1}),l.addEventListener("error",function(){return d.loading|=2}),co(l,"link",s),On(l),o.head.appendChild(l))}function dc(o){return'[src="'+hr(o)+'"]'}function Ff(o){return"script[async]"+o}function sb(o,l,s){if(l.count++,l.instance===null)switch(l.type){case"style":var d=o.querySelector('style[data-href~="'+hr(s.href)+'"]');if(d)return l.instance=d,On(d),d;var v=T({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return d=(o.ownerDocument||o).createElement("style"),On(d),co(d,"style",v),op(d,s.precedence,o),l.instance=d;case"stylesheet":v=xr(s.href);var w=o.querySelector(ns(v));if(w)return l.state.loading|=4,l.instance=w,On(w),w;d=Pf(s),(v=or.get(v))&&Hg(d,v),w=(o.ownerDocument||o).createElement("link"),On(w);var z=w;return z._p=new Promise(function($,se){z.onload=$,z.onerror=se}),co(w,"link",d),l.state.loading|=4,op(w,s.precedence,o),l.instance=w;case"script":return w=dc(s.src),(v=o.querySelector(Ff(w)))?(l.instance=v,On(v),v):(d=s,(v=or.get(w))&&(d=T({},s),kg(d,v)),o=o.ownerDocument||o,v=o.createElement("script"),On(v),co(v,"link",d),o.head.appendChild(v),l.instance=v);case"void":return null;default:throw Error(u(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(d=l.instance,l.state.loading|=4,op(d,s.precedence,o));return l.instance}function op(o,l,s){for(var d=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,w=v,z=0;z<d.length;z++){var $=d[z];if($.dataset.precedence===l)w=$;else if(w!==v)break}w?w.parentNode.insertBefore(o,w.nextSibling):(l=s.nodeType===9?s.head:s,l.insertBefore(o,l.firstChild))}function Hg(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function kg(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Qf=null;function cb(o,l,s){if(Qf===null){var d=new Map,v=Qf=new Map;v.set(s,d)}else v=Qf,d=v.get(s),d||(d=new Map,v.set(s,d));if(d.has(o))return d;for(d.set(o,null),s=s.getElementsByTagName(o),v=0;v<s.length;v++){var w=s[v];if(!(w[Bl]||w[dn]||o==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var z=w.getAttribute(l)||"";z=o+z;var $=d.get(z);$?$.push(w):d.set(z,[w])}}return d}function Vg(o,l,s){o=o.ownerDocument||o,o.head.insertBefore(s,l==="title"?o.querySelector("head > title"):null)}function fb(o,l,s){if(s===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(o=l.disabled,typeof l.precedence=="string"&&o==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function rr(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function hi(o,l,s,d){if(s.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var v=xr(d.href),w=l.querySelector(ns(v));if(w){l=w._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=Bg.bind(o),l.then(o,o)),s.state.loading|=4,s.instance=w,On(w);return}w=l.ownerDocument||l,d=Pf(d),(v=or.get(v))&&Hg(d,v),w=w.createElement("link"),On(w);var z=w;z._p=new Promise(function($,se){z.onload=$,z.onerror=se}),co(w,"link",d),s.instance=w}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(s,l),(l=s.state.preload)&&(s.state.loading&3)===0&&(o.count++,s=Bg.bind(o),l.addEventListener("load",s),l.addEventListener("error",s))}}var _r=0;function db(o,l){return o.stylesheets&&o.count===0&&Yg(o,o.stylesheets),0<o.count||0<o.imgCount?function(s){var d=setTimeout(function(){if(o.stylesheets&&Yg(o,o.stylesheets),o.unsuspend){var w=o.unsuspend;o.unsuspend=null,w()}},6e4+l);0<o.imgBytes&&_r===0&&(_r=62500*ab());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Yg(o,o.stylesheets),o.unsuspend)){var w=o.unsuspend;o.unsuspend=null,w()}},(o.imgBytes>_r?50:800)+l);return o.unsuspend=s,function(){o.unsuspend=null,clearTimeout(d),clearTimeout(v)}}:null}function Bg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yg(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Gg=null;function Yg(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Gg=new Map,l.forEach(Ja,o),Gg=null,Bg.call(o))}function Ja(o,l){if(!(l.state.loading&4)){var s=Gg.get(o);if(s)var d=s.get(null);else{s=new Map,Gg.set(o,s);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<v.length;w++){var z=v[w];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(s.set(z.dataset.precedence,z),d=z)}d&&s.set(null,d)}v=l.instance,z=v.getAttribute("data-precedence"),w=s.get(z)||d,w===d&&s.set(null,v),s.set(z,v),this.count++,d=Bg.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),w?w.parentNode.insertBefore(v,w.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),l.state.loading|=4}}var rp={$$typeof:I,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function hb(o,l,s,d,v,w,z,$,se){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tn(0),this.hiddenUpdates=Tn(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=w,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=se,this.incompleteTransitions=new Map}function Ig(o,l,s,d,v,w,z,$,se,Ee,Le,Be){return o=new hb(o,l,s,z,se,Ee,Le,Be,$),l=1,w===!0&&(l|=24),w=ha(3,null,null,l),o.current=w,w.stateNode=o,l=hh(),l.refCount++,o.pooledCache=l,l.refCount++,w.memoizedState={element:d,isDehydrated:s,cache:l},Sh(w),o}function hc(o){return o?(o=zo,o):zo}function ww(o,l,s,d,v,w){v=hc(v),d.context===null?d.context=v:d.pendingContext=v,d=Pi(l),d.payload={element:s},w=w===void 0?null:w,w!==null&&(d.callback=w),s=Sr(o,d,l),s!==null&&(Yo(s,o,l),Bu(s,o,l))}function qg(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var s=o.retryLane;o.retryLane=s!==0&&s<l?s:l}}function pb(o,l){qg(o,l),(o=o.alternate)&&qg(o,l)}function Tw(o){if(o.tag===13||o.tag===31){var l=Gi(o,67108864);l!==null&&Yo(l,o,67108864),pb(o,67108864)}}function pc(o){if(o.tag===13||o.tag===31){var l=ar();l=Jt(l);var s=Gi(o,l);s!==null&&Yo(s,o,l),pb(o,l)}}var ka=!0;function pi(o,l,s,d){var v=L.T;L.T=null;var w=B.p;try{B.p=2,fo(o,l,s,d)}finally{B.p=w,L.T=v}}function mi(o,l,s,d){var v=L.T;L.T=null;var w=B.p;try{B.p=8,fo(o,l,s,d)}finally{B.p=w,L.T=v}}function fo(o,l,s,d){if(ka){var v=mb(d);if(v===null)J0(o,l,d,$g,s),ru(o,d);else if(DO(v,o,l,s,d))d.stopPropagation();else if(ru(o,d),l&4&&-1<qo.indexOf(o)){for(;v!==null;){var w=Os(v);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var z=Pe(w.pendingLanes);if(z!==0){var $=w;for($.pendingLanes|=2,$.entangledLanes|=2;z;){var se=1<<31-en(z);$.entanglements[1]|=se,z&=~se}di(w),(vn&6)===0&&(En=we()+500,au(0))}}break;case 31:case 13:$=Gi(w,2),$!==null&&Yo($,w,2),Lf(),pb(w,2)}if(w=mb(d),w===null&&J0(o,l,d,$g,s),w===v)break;v=w}v!==null&&d.stopPropagation()}else J0(o,l,d,null,s)}}function mb(o){return o=gm(o),Jf(o)}var $g=null;function Jf(o){if($g=null,o=Rs(o),o!==null){var l=p(o);if(l===null)o=null;else{var s=l.tag;if(s===13){if(o=y(l),o!==null)return o;o=null}else if(s===31){if(o=g(l),o!==null)return o;o=null}else if(s===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return $g=o,null}function lp(o){switch(o){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tt()){case pt:return 2;case ct:return 8;case yt:case ln:return 32;case Rt:return 268435456;default:return 32}default:return 32}}var Kf=!1,Va=null,ho=null,To=null,as=new Map,Qr=new Map,Wn=[],qo="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".split(" ");function ru(o,l){switch(o){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":ho=null;break;case"mouseover":case"mouseout":To=null;break;case"pointerover":case"pointerout":as.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qr.delete(l.pointerId)}}function mc(o,l,s,d,v,w){return o===null||o.nativeEvent!==w?(o={blockedOn:l,domEventName:s,eventSystemFlags:d,nativeEvent:w,targetContainers:[v]},l!==null&&(l=Os(l),l!==null&&Tw(l)),o):(o.eventSystemFlags|=d,l=o.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),o)}function DO(o,l,s,d,v){switch(l){case"focusin":return Va=mc(Va,o,l,s,d,v),!0;case"dragenter":return ho=mc(ho,o,l,s,d,v),!0;case"mouseover":return To=mc(To,o,l,s,d,v),!0;case"pointerover":var w=v.pointerId;return as.set(w,mc(as.get(w)||null,o,l,s,d,v)),!0;case"gotpointercapture":return w=v.pointerId,Qr.set(w,mc(Qr.get(w)||null,o,l,s,d,v)),!0}return!1}function Rw(o){var l=Rs(o.target);if(l!==null){var s=p(l);if(s!==null){if(l=s.tag,l===13){if(l=y(s),l!==null){o.blockedOn=l,Jo(o.priority,function(){pc(s)});return}}else if(l===31){if(l=g(s),l!==null){o.blockedOn=l,Jo(o.priority,function(){pc(s)});return}}else if(l===3&&s.stateNode.current.memoizedState.isDehydrated){o.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}o.blockedOn=null}function ip(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var s=mb(o.nativeEvent);if(s===null){s=o.nativeEvent;var d=new s.constructor(s.type,s);mm=d,s.target.dispatchEvent(d),mm=null}else return l=Os(s),l!==null&&Tw(l),o.blockedOn=s,!1;l.shift()}return!0}function Wf(o,l,s){ip(o)&&s.delete(l)}function Ow(){Kf=!1,Va!==null&&ip(Va)&&(Va=null),ho!==null&&ip(ho)&&(ho=null),To!==null&&ip(To)&&(To=null),as.forEach(Wf),Qr.forEach(Wf)}function gi(o,l){o.blockedOn===l&&(o.blockedOn=null,Kf||(Kf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ow)))}var ed=null;function Cw(o){ed!==o&&(ed=o,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ed===o&&(ed=null);for(var l=0;l<o.length;l+=3){var s=o[l],d=o[l+1],v=o[l+2];if(typeof d!="function"){if(Jf(d||s)===null)continue;break}var w=Os(s);w!==null&&(o.splice(l,3),l-=3,Tf(w,{pending:!0,data:v,method:s.method,action:d},d,v))}}))}function td(o){function l(se){return gi(se,o)}Va!==null&&gi(Va,o),ho!==null&&gi(ho,o),To!==null&&gi(To,o),as.forEach(l),Qr.forEach(l);for(var s=0;s<Wn.length;s++){var d=Wn[s];d.blockedOn===o&&(d.blockedOn=null)}for(;0<Wn.length&&(s=Wn[0],s.blockedOn===null);)Rw(s),s.blockedOn===null&&Wn.shift();if(s=(o.ownerDocument||o).$$reactFormReplay,s!=null)for(d=0;d<s.length;d+=3){var v=s[d],w=s[d+1],z=v[vo]||null;if(typeof w=="function")z||Cw(s);else if(z){var $=null;if(w&&w.hasAttribute("formAction")){if(v=w,z=w[vo]||null)$=z.formAction;else if(Jf(v)!==null)continue}else $=z.action;typeof $=="function"?s[d+1]=$:(s.splice(d,3),d-=3),Cw(s)}}}function gb(){function o(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(z){return v=z})},focusReset:"manual",scroll:"manual"})}function l(){v!==null&&(v(),v=null),d||setTimeout(s,20)}function s(){if(!d&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(s,100),function(){d=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),v!==null&&(v(),v=null)}}}function Zg(o){this._internalRoot=o}Xg.prototype.render=Zg.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(u(409));var s=l.current,d=ar();ww(s,d,o,l,null,null)},Xg.prototype.unmount=Zg.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;ww(o.current,2,null,o,null,null),Lf(),l[Li]=null}};function Xg(o){this._internalRoot=o}Xg.prototype.unstable_scheduleHydration=function(o){if(o){var l=yo();o={blockedOn:null,target:o,priority:l};for(var s=0;s<Wn.length&&l!==0&&l<Wn[s].priority;s++);Wn.splice(s,0,o),s===0&&Rw(o)}};var yb=a.version;if(yb!=="19.2.4")throw Error(u(527,yb,"19.2.4"));B.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(u(188)):(o=Object.keys(o).join(","),Error(u(268,o)));return o=b(l),o=o!==null?E(o):null,o=o===null?null:o.stateNode,o};var xw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!up.isDisabled&&up.supportsFiber)try{Nt=up.inject(xw),Ot=up}catch{}}return Ay.createRoot=function(o,l){if(!f(o))throw Error(u(299));var s=!1,d="",v=og,w=v0,z=rg;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError)),l=Ig(o,1,!1,null,null,s,d,null,v,w,z,gb),o[Li]=l.current,Yf(o),new Zg(l)},Ay.hydrateRoot=function(o,l,s){if(!f(o))throw Error(u(299));var d=!1,v="",w=og,z=v0,$=rg,se=null;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onUncaughtError!==void 0&&(w=s.onUncaughtError),s.onCaughtError!==void 0&&(z=s.onCaughtError),s.onRecoverableError!==void 0&&($=s.onRecoverableError),s.formState!==void 0&&(se=s.formState)),l=Ig(o,1,!0,l,s??null,d,v,se,w,z,$,gb),l.context=hc(null),s=l.current,d=ar(),d=Jt(d),v=Pi(d),v.callback=null,Sr(s,v,d),s=d,l.current.lanes=s,Zn(l,s),di(l),o[Li]=l.current,Yf(o),new Xg(l)},Ay.version="19.2.4",Ay}var Dy={};var tx;function e6(){return tx||(tx=1,process.env.NODE_ENV!=="production"&&(function(){function t(e,n){for(e=e.memoizedState;e!==null&&0<n;)e=e.next,n--;return e}function a(e,n,r,c){if(r>=n.length)return c;var h=n[r],m=Da(e)?e.slice():Gt({},e);return m[h]=a(e[h],n,r+1,c),m}function i(e,n,r){if(n.length!==r.length)console.warn("copyWithRename() expects paths of the same length");else{for(var c=0;c<r.length-1;c++)if(n[c]!==r[c]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return u(e,n,r,0)}}function u(e,n,r,c){var h=n[c],m=Da(e)?e.slice():Gt({},e);return c+1===n.length?(m[r[c]]=m[h],Da(m)?m.splice(h,1):delete m[h]):m[h]=u(e[h],n,r,c+1),m}function f(e,n,r){var c=n[r],h=Da(e)?e.slice():Gt({},e);return r+1===n.length?(Da(h)?h.splice(c,1):delete h[c],h):(h[c]=f(e[c],n,r+1),h)}function p(){return!1}function y(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function b(){}function E(){}function T(e){var n=[];return e.forEach(function(r){n.push(r)}),n.sort().join(", ")}function O(e,n,r,c){return new wO(e,n,r,c)}function _(e,n){e.context===rd&&(Mg(e.current,2,n,e,null,null),Or())}function A(e,n){if(bi!==null){var r=n.staleFamilies;n=n.updatedFamilies,Vh(),vE(e.current,n,r),Or()}}function D(e){bi=e}function N(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function M(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function q(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function I(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Y(e){if(M(e)!==e)throw Error("Unable to find node on an unmounted component.")}function H(e){var n=e.alternate;if(!n){if(n=M(e),n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,c=n;;){var h=r.return;if(h===null)break;var m=h.alternate;if(m===null){if(c=h.return,c!==null){r=c;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===r)return Y(h),e;if(m===c)return Y(h),n;m=m.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==c.return)r=h,c=m;else{for(var R=!1,C=h.child;C;){if(C===r){R=!0,r=h,c=m;break}if(C===c){R=!0,c=h,r=m;break}C=C.sibling}if(!R){for(C=m.child;C;){if(C===r){R=!0,r=m,c=h;break}if(C===c){R=!0,c=m,r=h;break}C=C.sibling}if(!R)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==c)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:n}function Z(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=Z(e),n!==null)return n;e=e.sibling}return null}function V(e){return e===null||typeof e!="object"?null:(e=Sw&&e[Sw]||e["@@iterator"],typeof e=="function"?e:null)}function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Zf?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qf:return"Fragment";case np:return"Profiler";case Io:return"StrictMode";case fc:return"Suspense";case or:return"SuspenseList";case Al:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case es:return"Portal";case _l:return e.displayName||"Context";case Lg:return(e._context.displayName||"Context")+".Consumer";case $f:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ap:return n=e.displayName||null,n!==null?n:X(e.type)||"Memo";case wo:n=e._payload,e=e._init;try{return X(e(n))}catch{}}return null}function le(e){return typeof e.tag=="number"?K(e):typeof e.name=="string"?e.name:null}function K(e){var n=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return X(n);case 8:return n===Io?"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 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=e._debugInfo,n!=null){for(var r=n.length-1;0<=r;r--)if(typeof n[r].name=="string")return n[r].name}if(e.return!==null)return K(e.return)}return null}function fe(e){return{current:e}}function ie(e,n){0>ou?console.error("Unexpected pop."):(n!==ub[ou]&&console.error("Unexpected Fiber popped."),e.current=ib[ou],ib[ou]=null,ub[ou]=null,ou--)}function ee(e,n,r){ou++,ib[ou]=e.current,ub[ou]=r,e.current=n}function te(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function J(e,n){ee(xr,n,e),ee(Xf,e,e),ee(ts,null,e);var r=n.nodeType;switch(r){case 9:case 11:r=r===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?XE(n):Ac;break;default:if(r=n.tagName,n=n.namespaceURI)n=XE(n),n=tu(n,r);else switch(r){case"svg":n=Ty;break;case"math":n=vT;break;default:n=Ac}}r=r.toLowerCase(),r=bv(null,r),r={context:n,ancestorInfo:r},ie(ts,e),ee(ts,r,e)}function L(e){ie(ts,e),ie(Xf,e),ie(xr,e)}function B(){return te(ts.current)}function F(e){e.memoizedState!==null&&ee(ns,e,e);var n=te(ts.current),r=e.type,c=tu(n.context,r);r=bv(n.ancestorInfo,r),c={context:c,ancestorInfo:r},n!==c&&(ee(Xf,e,e),ee(ts,c,e))}function ne(e){Xf.current===e&&(ie(ts,e),ie(Xf,e)),ns.current===e&&(ie(ns,e),l1._currentValue=Mp)}function ce(){}function j(){if(Pf===0){Ew=console.log,dc=console.info,Ff=console.warn,sb=console.error,op=console.group,Hg=console.groupCollapsed,kg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Pf++}function Q(){if(Pf--,Pf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Gt({},e,{value:Ew}),info:Gt({},e,{value:dc}),warn:Gt({},e,{value:Ff}),error:Gt({},e,{value:sb}),group:Gt({},e,{value:op}),groupCollapsed:Gt({},e,{value:Hg}),groupEnd:Gt({},e,{value:kg})})}0>Pf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function oe(e){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith(`Error: react-stack-top-frame
32
+ `)&&(e=e.slice(29)),n=e.indexOf(`
33
+ `),n!==-1&&(e=e.slice(n+1)),n=e.indexOf("react_stack_bottom_frame"),n!==-1&&(n=e.lastIndexOf(`
34
+ `,n)),n!==-1)e=e.slice(0,n);else return"";return e}function de(e){if(Qf===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);Qf=n&&n[1]||"",cb=-1<r.stack.indexOf(`
35
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
36
+ `+Qf+e+cb}function ve(e,n){if(!e||Vg)return"";var r=fb.get(e);if(r!==void 0)return r;Vg=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var c=null;c=Me.H,Me.H=null,j();try{var h={DetermineComponentFrameRoot:function(){try{if(n){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Je){var xe=Je}Reflect.construct(e,[],re)}else{try{re.call()}catch(Je){xe=Je}e.call(re.prototype)}}else{try{throw Error()}catch(Je){xe=Je}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Je){if(Je&&xe&&typeof Je.stack=="string")return[Je.stack,xe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=h.DetermineComponentFrameRoot(),C=R[0],U=R[1];if(C&&U){var G=C.split(`
37
+ `),pe=U.split(`
38
+ `);for(R=m=0;m<G.length&&!G[m].includes("DetermineComponentFrameRoot");)m++;for(;R<pe.length&&!pe[R].includes("DetermineComponentFrameRoot");)R++;if(m===G.length||R===pe.length)for(m=G.length-1,R=pe.length-1;1<=m&&0<=R&&G[m]!==pe[R];)R--;for(;1<=m&&0<=R;m--,R--)if(G[m]!==pe[R]){if(m!==1||R!==1)do if(m--,R--,0>R||G[m]!==pe[R]){var ge=`
39
+ `+G[m].replace(" at new "," at ");return e.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",e.displayName)),typeof e=="function"&&fb.set(e,ge),ge}while(1<=m&&0<=R);break}}}finally{Vg=!1,Me.H=c,Q(),Error.prepareStackTrace=r}return G=(G=e?e.displayName||e.name:"")?de(G):"",typeof e=="function"&&fb.set(e,G),G}function _e(e,n){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de("Lazy");case 13:return e.child!==n&&n!==null?de("Suspense Fallback"):de("Suspense");case 19:return de("SuspenseList");case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return de("Activity");default:return""}}function Te(e){try{var n="",r=null;do{n+=_e(e,r);var c=e._debugInfo;if(c)for(var h=c.length-1;0<=h;h--){var m=c[h];if(typeof m.name=="string"){var R=n;e:{var C=m.name,U=m.env,G=m.debugLocation;if(G!=null){var pe=oe(G),ge=pe.lastIndexOf(`
40
+ `),re=ge===-1?pe:pe.slice(ge+1);if(re.indexOf(C)!==-1){var xe=`
41
+ `+re;break e}}xe=de(C+(U?" ["+U+"]":""))}n=R+xe}}r=e,e=e.return}while(e);return n}catch(Je){return`
42
+ Error generating stack: `+Je.message+`
43
+ `+Je.stack}}function Ue(e){return(e=e?e.displayName||e.name:"")?de(e):""}function Ge(){if(rr===null)return null;var e=rr._debugOwner;return e!=null?le(e):null}function We(){if(rr===null)return"";var e=rr;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=de(e.type);break;case 13:n+=de("Suspense");break;case 19:n+=de("SuspenseList");break;case 31:n+=de("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=Ue(e.type));break;case 11:e._debugOwner||n!==""||(n+=Ue(e.type.render))}for(;e;)if(typeof e.tag=="number"){var r=e;e=r._debugOwner;var c=r._debugStack;if(e&&c){var h=oe(c);h!==""&&(n+=`
44
+ `+h)}}else if(e.debugStack!=null){var m=e.debugStack;(e=e.owner)&&m&&(n+=`
45
+ `+oe(m))}else break;var R=n}catch(C){R=`
46
+ Error generating stack: `+C.message+`
47
+ `+C.stack}return R}function Ne(e,n,r,c,h,m,R){var C=rr;Ze(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,r,c,h,m,R)):n(r,c,h,m,R)}finally{Ze(C)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ze(e){Me.getCurrentStack=e===null?null:We,hi=!1,rr=e}function lt(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Xe(e){try{return ht(e),!1}catch{return!0}}function ht(e){return""+e}function $e(e,n){if(Xe(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,lt(e)),ht(e)}function Qe(e,n){if(Xe(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,lt(e)),ht(e)}function dt(e){if(Xe(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",lt(e)),ht(e)}function et(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{pc=n.inject(e),ka=n}catch(r){console.error("React instrumentation encountered an error: %o.",r)}return!!n.checkDCE}function Ve(e){if(typeof pb=="function"&&Tw(e),ka&&typeof ka.setStrictMode=="function")try{ka.setStrictMode(pc,e)}catch(n){pi||(pi=!0,console.error("React instrumentation encountered an error: %o",n))}}function Re(e){return e>>>=0,e===0?32:31-(mb(e)/$g|0)|0}function je(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Ce(e,n,r){var c=e.pendingLanes;if(c===0)return 0;var h=0,m=e.suspendedLanes,R=e.pingedLanes;e=e.warmLanes;var C=c&134217727;return C!==0?(c=C&~m,c!==0?h=je(c):(R&=C,R!==0?h=je(R):r||(r=C&~e,r!==0&&(h=je(r))))):(C=c&~m,C!==0?h=je(C):R!==0?h=je(R):r||(r=c&~e,r!==0&&(h=je(r)))),h===0?0:n!==0&&n!==h&&(n&m)===0&&(m=h&-h,r=n&-n,m>=r||m===32&&(r&4194048)!==0)?n:h}function we(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function tt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function pt(){var e=Kf;return Kf<<=1,(Kf&62914560)===0&&(Kf=4194304),e}function ct(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function yt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ln(e,n,r,c,h,m){var R=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var C=e.entanglements,U=e.expirationTimes,G=e.hiddenUpdates;for(r=R&~r;0<r;){var pe=31-fo(r),ge=1<<pe;C[pe]=0,U[pe]=-1;var re=G[pe];if(re!==null)for(G[pe]=null,pe=0;pe<re.length;pe++){var xe=re[pe];xe!==null&&(xe.lane&=-536870913)}r&=~ge}c!==0&&Rt(e,c,0),m!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=m&~(R&~n))}function Rt(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var c=31-fo(n);e.entangledLanes|=n,e.entanglements[c]=e.entanglements[c]|1073741824|r&261930}function Qt(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var c=31-fo(r),h=1<<c;h&n|e[c]&n&&(e[c]|=n),r&=~h}}function xt(e,n){var r=n&-n;return r=(r&42)!==0?1:Nt(r),(r&(e.suspendedLanes|n))!==0?0:r}function Nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ot(e,n,r){if(mi)for(e=e.pendingUpdatersLaneMap;0<r;){var c=31-fo(r),h=1<<c;e[c].add(n),r&=~h}}function Wt(e,n){if(mi)for(var r=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;0<n;){var h=31-fo(n);e=1<<h,h=r[h],0<h.size&&(h.forEach(function(m){var R=m.alternate;R!==null&&c.has(R)||c.add(m)}),h.clear()),n&=~e}}function en(e){return e&=-e,Va<e?ho<e?(e&134217727)!==0?To:as:ho:Va}function yn(){var e=wn.p;return e!==0?e:(e=window.event,e===void 0?To:Ng(e.type))}function k(e,n){var r=wn.p;try{return wn.p=e,n()}finally{wn.p=r}}function W(e){delete e[Wn],delete e[qo],delete e[mc],delete e[DO],delete e[Rw]}function Se(e){var n=e[Wn];if(n)return n;for(var r=e.parentNode;r;){if(n=r[ru]||r[Wn]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=ic(e);e!==null;){if(r=e[Wn])return r;e=ic(e)}return n}e=r,r=e.parentNode}return null}function De(e){if(e=e[Wn]||e[ru]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ie(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Pe(e){var n=e[ip];return n||(n=e[ip]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Fe(e){e[Wf]=!0}function ut(e,n){ft(e,n),ft(e+"Capture",n)}function ft(e,n){gi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),gi[e]=n;var r=e.toLowerCase();for(ed[r]=e,e==="onDoubleClick"&&(ed.ondblclick=e),e=0;e<n.length;e++)Ow.add(n[e])}function tn(e,n){Cw[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Tn(e){return _r.call(Zg,e)?!0:_r.call(gb,e)?!1:td.test(e)?Zg[e]=!0:(gb[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Zn(e,n,r){if(Tn(n)){if(!e.hasAttribute(n)){switch(typeof r){case"symbol":case"object":return r;case"function":return r;case"boolean":if(r===!1)return r}return r===void 0?void 0:null}return e=e.getAttribute(n),e===""&&r===!0?!0:($e(r,n),e===""+r?r:e)}}function Rn(e,n,r){if(Tn(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var c=n.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(n);return}}$e(r,n),e.setAttribute(n,""+r)}}function Ea(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}$e(r,n),e.setAttribute(n,""+r)}}function da(e,n,r,c){if(c===null)e.removeAttribute(r);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}$e(c,r),e.setAttributeNS(n,r,""+c)}}function Ua(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return dt(e),e;default:return""}}function Jt(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Dn(e,n,r){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,m=c.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return h.call(this)},set:function(R){dt(R),r=""+R,m.call(this,R)}}),Object.defineProperty(e,n,{enumerable:c.enumerable}),{getValue:function(){return r},setValue:function(R){dt(R),r=""+R},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function yo(e){if(!e._valueTracker){var n=Jt(e)?"checked":"value";e._valueTracker=Dn(e,n,""+e[n])}}function Jo(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),c="";return e&&(c=Jt(e)?e.checked?"true":"false":e.value),e=c,e!==r?(n.setValue(e),!0):!1}function ra(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dn(e){return e.replace(Xg,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function vo(e,n){n.checked===void 0||n.defaultChecked===void 0||xw||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ge()||"A component",n.type),xw=!0),n.value===void 0||n.defaultValue===void 0||yb||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Ge()||"A component",n.type),yb=!0)}function Li(e,n,r,c,h,m,R,C){e.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?($e(R,"type"),e.type=R):e.removeAttribute("type"),n!=null?R==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Ua(n)):e.value!==""+Ua(n)&&(e.value=""+Ua(n)):R!=="submit"&&R!=="reset"||e.removeAttribute("value"),n!=null?gv(e,R,Ua(n)):r!=null?gv(e,R,Ua(r)):c!=null&&e.removeAttribute("value"),h==null&&m!=null&&(e.defaultChecked=!!m),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?($e(C,"name"),e.name=""+Ua(C)):e.removeAttribute("name")}function um(e,n,r,c,h,m,R,C){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&($e(m,"type"),e.type=m),n!=null||r!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){yo(e);return}r=r!=null?""+Ua(r):"",n=n!=null?""+Ua(n):r,C||n===e.value||(e.value=n),e.defaultValue=n}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=C?e.checked:!!c,e.defaultChecked=!!c,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&($e(R,"name"),e.name=R),yo(e)}function gv(e,n,r){n==="number"&&ra(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function oE(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?tp.Children.forEach(n.children,function(r){r==null||typeof r=="string"||typeof r=="number"||typeof r=="bigint"||o||(o=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||l||(l=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||up||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),up=!0)}function yv(){var e=Ge();return e?`
48
+
49
+ Check the render method of \``+e+"`.":""}function Bl(e,n,r,c){if(e=e.options,n){n={};for(var h=0;h<r.length;h++)n["$"+r[h]]=!0;for(r=0;r<e.length;r++)h=n.hasOwnProperty("$"+e[r].value),e[r].selected!==h&&(e[r].selected=h),h&&c&&(e[r].defaultSelected=!0)}else{for(r=""+Ua(r),n=null,h=0;h<e.length;h++){if(e[h].value===r){e[h].selected=!0,c&&(e[h].defaultSelected=!0);return}n!==null||e[h].disabled||(n=e[h])}n!==null&&(n.selected=!0)}}function sm(e,n){for(e=0;e<d.length;e++){var r=d[e];if(n[r]!=null){var c=Da(n[r]);n.multiple&&!c?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",r,yv()):!n.multiple&&c&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",r,yv())}}n.value===void 0||n.defaultValue===void 0||s||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),s=!0)}function Rs(e,n){n.value===void 0||n.defaultValue===void 0||v||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Ge()||"A component"),v=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Os(e,n,r){if(n!=null&&(n=""+Ua(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+Ua(r):""}function Pc(e,n,r,c){if(n==null){if(c!=null){if(r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Da(c)){if(1<c.length)throw Error("<textarea> can only have at most one child.");c=c[0]}r=c}r==null&&(r=""),n=r}r=Ua(n),e.defaultValue=r,c=e.textContent,c===r&&c!==""&&c!==null&&(e.value=c),yo(e)}function Cs(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?Cs(e.children[0],n):e}function On(e){return" "+" ".repeat(e)}function xs(e){return"+ "+" ".repeat(e)}function Ru(e){return"- "+" ".repeat(e)}function Ou(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Gl(e,n){return w.test(e)?(e=JSON.stringify(e),e.length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}"):e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function cm(e,n,r){var c=120-2*r;if(n===null)return xs(r)+Gl(e,c)+`
50
+ `;if(typeof n=="string"){for(var h=0;h<n.length&&h<e.length&&n.charCodeAt(h)===e.charCodeAt(h);h++);return h>c-8&&10<h&&(e="..."+e.slice(h-8),n="..."+n.slice(h-8)),xs(r)+Gl(e,c)+`
51
+ `+Ru(r)+Gl(n,c)+`
52
+ `}return On(r)+Gl(e,c)+`
53
+ `}function fm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,r){return r})}function Fc(e,n){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case"object":if(e===null)return"null";if(Da(e))return"[...]";if(e.$$typeof===Fr)return(n=X(e.type))?"<"+n+">":"<...>";var r=fm(e);if(r==="Object"){r="",n-=2;for(var c in e)if(e.hasOwnProperty(c)){var h=JSON.stringify(c);if(h!=='"'+c+'"'&&(c=h),n-=c.length-2,h=Fc(e[c],15>n?n:15),n-=h.length,0>n){r+=r===""?"...":", ...";break}r+=(r===""?"":",")+c+":"+h}return"{"+r+"}"}return r;case"function":return(n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Qc(e,n){return typeof e!="string"||w.test(e)?"{"+Fc(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function Jc(e,n,r){var c=120-r.length-e.length,h=[],m;for(m in n)if(n.hasOwnProperty(m)&&m!=="children"){var R=Qc(n[m],120-r.length-m.length-1);c-=m.length+R.length+2,h.push(m+"="+R)}return h.length===0?r+"<"+e+`>
54
+ `:0<c?r+"<"+e+" "+h.join(" ")+`>
55
+ `:r+"<"+e+`
56
+ `+r+" "+h.join(`
57
+ `+r+" ")+`
58
+ `+r+`>
59
+ `}function dm(e,n,r){var c="",h=Gt({},n),m;for(m in e)if(e.hasOwnProperty(m)){delete h[m];var R=120-2*r-m.length-2,C=Fc(e[m],R);n.hasOwnProperty(m)?(R=Fc(n[m],R),c+=xs(r)+m+": "+C+`
60
+ `,c+=Ru(r)+m+": "+R+`
61
+ `):c+=xs(r)+m+": "+C+`
62
+ `}for(var U in h)h.hasOwnProperty(U)&&(e=Fc(h[U],120-2*r-U.length-2),c+=Ru(r)+U+": "+e+`
63
+ `);return c}function Hi(e,n,r,c){var h="",m=new Map;for(G in r)r.hasOwnProperty(G)&&m.set(G.toLowerCase(),G);if(m.size===1&&m.has("children"))h+=Jc(e,n,On(c));else{for(var R in n)if(n.hasOwnProperty(R)&&R!=="children"){var C=120-2*(c+1)-R.length-1,U=m.get(R.toLowerCase());if(U!==void 0){m.delete(R.toLowerCase());var G=n[R];U=r[U];var pe=Qc(G,C);C=Qc(U,C),typeof G=="object"&&G!==null&&typeof U=="object"&&U!==null&&fm(G)==="Object"&&fm(U)==="Object"&&(2<Object.keys(G).length||2<Object.keys(U).length||-1<pe.indexOf("...")||-1<C.indexOf("..."))?h+=On(c+1)+R+`={{
64
+ `+dm(G,U,c+2)+On(c+1)+`}}
65
+ `:(h+=xs(c+1)+R+"="+pe+`
66
+ `,h+=Ru(c+1)+R+"="+C+`
67
+ `)}else h+=On(c+1)+R+"="+Qc(n[R],C)+`
68
+ `}m.forEach(function(ge){if(ge!=="children"){var re=120-2*(c+1)-ge.length-1;h+=Ru(c+1)+ge+"="+Qc(r[ge],re)+`
69
+ `}}),h=h===""?On(c)+"<"+e+`>
70
+ `:On(c)+"<"+e+`
71
+ `+h+On(c)+`>
72
+ `}return e=r.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(m="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(m=""+n),h+=cm(m,""+e,c+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(h=e==null?h+cm(""+n,null,c+1):h+cm(""+n,void 0,c+1)),h}function dr(e,n){var r=Ou(e);if(r===null){for(r="",e=e.child;e;)r+=dr(e,n),e=e.sibling;return r}return On(n)+"<"+r+`>
73
+ `}function hm(e,n){var r=Cs(e,n);if(r!==e&&(e.children.length!==1||e.children[0]!==r))return On(n)+`...
74
+ `+hm(r,n+1);r="";var c=e.fiber._debugInfo;if(c)for(var h=0;h<c.length;h++){var m=c[h].name;typeof m=="string"&&(r+=On(n)+"<"+m+`>
75
+ `,n++)}if(c="",h=e.fiber.pendingProps,e.fiber.tag===6)c=cm(h,e.serverProps,n),n++;else if(m=Ou(e.fiber),m!==null)if(e.serverProps===void 0){c=n;var R=120-2*c-m.length-2,C="";for(G in h)if(h.hasOwnProperty(G)&&G!=="children"){var U=Qc(h[G],15);if(R-=G.length+U.length+2,0>R){C+=" ...";break}C+=" "+G+"="+U}c=On(c)+"<"+m+C+`>
76
+ `,n++}else e.serverProps===null?(c=Jc(m,h,xs(n)),n++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(c=Hi(m,h,e.serverProps,n),n++);var G="";for(h=e.fiber.child,m=0;h&&m<e.children.length;)R=e.children[m],R.fiber===h?(G+=hm(R,n),m++):G+=dr(h,n),h=h.sibling;for(h&&0<e.children.length&&(G+=On(n)+`...
77
+ `),h=e.serverTail,e.serverProps===null&&n--,e=0;e<h.length;e++)m=h[e],G=typeof m=="string"?G+(Ru(n)+Gl(m,120-2*n)+`
78
+ `):G+Jc(m.type,m.props,Ru(n));return r+c+G}function vv(e){try{return`
79
+
80
+ `+hm(e,0)}catch{return""}}function pm(e,n,r){for(var c=n,h=null,m=0;c;)c===e&&(m=0),h={fiber:c,children:h!==null?[h]:[],serverProps:c===n?r:c===e?null:void 0,serverTail:[],distanceFromLeaf:m},m++,c=c.return;return h!==null?vv(h).replaceAll(/^[+-]/gm,">"):""}function bv(e,n){var r=Gt({},e||Le),c={tag:n};return $.indexOf(n)!==-1&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),se.indexOf(n)!==-1&&(r.pTagInButtonScope=null),z.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=c,n==="form"&&(r.formTag=c),n==="a"&&(r.aTagInScope=c),n==="button"&&(r.buttonTagInScope=c),n==="nobr"&&(r.nobrTagInScope=c),n==="p"&&(r.pTagInButtonScope=c),n==="li"&&(r.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(r.dlItemTagAutoclosing=c),n==="#document"||n==="html"?r.containerTagInScope=null:r.containerTagInScope||(r.containerTagInScope=c),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?r.implicitRootScope===!0&&(r.implicitRootScope=!1):r.implicitRootScope=!0,r}function Pd(e,n,r){switch(n){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(r)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!r)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return Ee.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return r||n===null;case"html":return r&&n==="#document"||n===null;case"body":return r&&(n==="#document"||n==="html")||n===null}return!0}function gO(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function hr(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return}return null}function Fd(e,n){n=n||Le;var r=n.current;if(n=(r=Pd(e,r&&r.tag,n.implicitRootScope)?null:r)?null:gO(e,n),n=r||n,!n)return!0;var c=n.tag;if(n=String(!!r)+"|"+e+"|"+c,Be[n])return!1;Be[n]=!0;var h=(n=rr)?hr(n.return,c):null,m=n!==null&&h!==null?pm(h,n,null):"",R="<"+e+">";return r?(r="",c==="table"&&e==="tr"&&(r+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
81
+ This will cause a hydration error.%s`,R,c,r,m)):console.error(`In HTML, %s cannot be a descendant of <%s>.
82
+ This will cause a hydration error.%s`,R,c,m),n&&(e=n.return,h===null||e===null||h===e&&e._debugOwner===n._debugOwner||Ne(h,function(){console.error(`<%s> cannot contain a nested %s.
83
+ See this log for the ancestor stack trace.`,c,R)})),!1}function Qd(e,n,r){if(r||Pd("#text",n,!1))return!0;if(r="#text|"+n,Be[r])return!1;Be[r]=!0;var c=(r=rr)?hr(r,n):null;return r=r!==null&&c!==null?pm(c,r,r.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
84
+ This will cause a hydration error.%s`,n,r):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
85
+ This will cause a hydration error.%s`,n,r),!1}function _s(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}function Kc(e){return e.replace(ye,function(n,r){return r.toUpperCase()})}function Sv(e,n,r){var c=n.indexOf("--")===0;c||(-1<n.indexOf("-")?be.hasOwnProperty(n)&&be[n]||(be[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,Kc(n.replace(jn,"ms-")))):Et.test(n)?be.hasOwnProperty(n)&&be[n]||(be[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!me.test(r)||ke.hasOwnProperty(r)&&ke[r]||(ke[r]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,r.replace(me,""))),typeof r=="number"&&(isNaN(r)?vt||(vt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(r)||mn||(mn=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),r==null||typeof r=="boolean"||r===""?c?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":c?e.setProperty(n,r):typeof r!="number"||r===0||mt.has(n)?n==="float"?e.cssFloat=r:(Qe(r,n),e[n]=(""+r).trim()):e[n]=r+"px"}function Ev(e,n,r){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,r!=null){if(n){var c={};if(r){for(var h in r)if(r.hasOwnProperty(h)&&!n.hasOwnProperty(h))for(var m=Oe[h]||[h],R=0;R<m.length;R++)c[m[R]]=h}for(var C in n)if(n.hasOwnProperty(C)&&(!r||r[C]!==n[C]))for(h=Oe[C]||[C],m=0;m<h.length;m++)c[h[m]]=C;C={};for(var U in n)for(h=Oe[U]||[U],m=0;m<h.length;m++)C[h[m]]=U;U={};for(var G in c)if(h=c[G],(m=C[G])&&h!==m&&(R=h+","+m,!U[R])){U[R]=!0,R=console;var pe=n[h];R.error.call(R,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",pe==null||typeof pe=="boolean"||pe===""?"Removing":"Updating",h,m)}}for(var ge in r)!r.hasOwnProperty(ge)||n!=null&&n.hasOwnProperty(ge)||(ge.indexOf("--")===0?e.setProperty(ge,""):ge==="float"?e.cssFloat="":e[ge]="");for(var re in n)G=n[re],n.hasOwnProperty(re)&&r[re]!==G&&Sv(e,re,G)}else for(c in n)n.hasOwnProperty(c)&&Sv(e,c,n[c])}function Yl(e){if(e.indexOf("-")===-1)return!1;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}}function rE(e){return bn.get(e)||e}function lE(e,n){if(_r.call(Pg,n)&&Pg[n])return!0;if(o$.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=_w.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Pg[n]=!0;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),Pg[n]=!0}if(a$.test(n)){if(e=n.toLowerCase(),e=_w.hasOwnProperty(e)?e:null,e==null)return Pg[n]=!0,!1;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),Pg[n]=!0)}return!0}function iE(e,n){var r=[],c;for(c in n)lE(e,c)||r.push(c);n=r.map(function(h){return"`"+h+"`"}).join(", "),r.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e)}function wv(e,n,r,c){if(_r.call(Ar,n)&&Ar[n])return!0;var h=n.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ar[n]=!0;if(typeof r=="function"&&(e==="form"&&n==="action"||e==="input"&&n==="formAction"||e==="button"&&n==="formAction"))return!0;if(c!=null){if(e=c.possibleRegistrationNames,c.registrationNameDependencies.hasOwnProperty(n))return!0;if(c=e.hasOwnProperty(h)?e[h]:null,c!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,c),Ar[n]=!0;if(jz.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),Ar[n]=!0}else if(jz.test(n))return r$.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),Ar[n]=!0;if(l$.test(n)||i$.test(n))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ar[n]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ar[n]=!0;if(h==="is"&&r!==null&&r!==void 0&&typeof r!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),Ar[n]=!0;if(typeof r=="number"&&isNaN(r))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),Ar[n]=!0;if(Dl.hasOwnProperty(h)){if(h=Dl[h],h!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,h),Ar[n]=!0}else if(n!==h)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,h),Ar[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof r){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return h=n.toLowerCase().slice(0,5),h==="data-"||h==="aria-"?!0:(r?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,n,n,r,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,n,n,r,n,n,n),Ar[n]=!0)}case"function":case"symbol":return Ar[n]=!0,!1;case"string":if(r==="false"||r==="true"){switch(n){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,n,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,r),Ar[n]=!0}}return!0}function yO(e,n,r){var c=[],h;for(h in n)wv(e,h,n[h],r)||c.push(h);n=c.map(function(m){return"`"+m+"`"}).join(", "),c.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e):1<c.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e)}function Jd(e){return u$.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kr(){}function ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function mm(e){var n=De(e);if(n&&(e=n.stateNode)){var r=e[qo]||null;e:switch(e=n.stateNode,n.type){case"input":if(Li(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for($e(n,"name"),r=r.querySelectorAll('input[name="'+dn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var c=r[n];if(c!==e&&c.form===e.form){var h=c[qo]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Li(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(n=0;n<r.length;n++)c=r[n],c.form===e.form&&Jo(c)}break e;case"textarea":Os(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&Bl(e,!!r.multiple,n,!1)}}}function gm(e,n,r){if(MO)return e(n,r);MO=!0;try{var c=e(n);return c}finally{if(MO=!1,(Fg!==null||Qg!==null)&&(Or(),Fg&&(n=Fg,e=Qg,Qg=Fg=null,mm(n),e)))for(n=0;n<e.length;n++)mm(e[n])}}function Il(e,n){var r=e.stateNode;if(r===null)return null;var c=r[qo]||null;if(c===null)return null;r=c[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function As(){if(Aw)return Aw;var e,n=NO,r=n.length,c,h="value"in nd?nd.value:nd.textContent,m=h.length;for(e=0;e<r&&n[e]===h[e];e++);var R=r-e;for(c=1;c<=R&&n[r-c]===h[m-c];c++);return Aw=h.slice(e,1<c?1-c:void 0)}function Kd(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Wc(){return!0}function Tv(){return!1}function qa(e){function n(r,c,h,m,R){this._reactName=r,this._targetInst=h,this.type=c,this.nativeEvent=m,this.target=R,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(r=e[C],this[C]=r?r(m):m[C]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Wc:Tv,this.isPropagationStopped=Tv,this}return Gt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Wc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Wc)},persist:function(){},isPersistent:Wc}),n}function ki(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=E$[e])?!!n[e]:!1}function Wd(){return ki}function ef(e,n){switch(e){case"keyup":return N$.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==Vz;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Rv(e,n){switch(e){case"compositionend":return Vi(n);case"keypress":return n.which!==Gz?null:(Iz=!0,Yz);case"textInput":return e=n.data,e===Yz&&Iz?null:e;default:return null}}function ym(e,n){if(Jg)return e==="compositionend"||!HO&&ef(e,n)?(e=As(),Aw=NO=nd=null,Jg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Bz&&n.locale!=="ko"?null:n.data;default:return null}}function Ov(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!j$[e.type]:n==="textarea"}function vm(e){if(!os)return!1;e="on"+e;var n=e in document;return n||(n=document.createElement("div"),n.setAttribute(e,"return;"),n=typeof n[e]=="function"),n}function eh(e,n,r,c){Fg?Qg?Qg.push(c):Qg=[c]:Fg=c,n=Ol(n,"onChange"),0<n.length&&(r=new Dw("onChange","change",null,r,c),e.push({event:r,listeners:n}))}function uE(e){_n(e,0)}function so(e){var n=Ie(e);if(Jo(n))return e}function Cu(e,n){if(e==="change")return n}function th(){Tb&&(Tb.detachEvent("onpropertychange",tf),Rb=Tb=null)}function tf(e){if(e.propertyName==="value"&&so(Rb)){var n=[];eh(n,Rb,e,ul(e)),gm(uE,n)}}function vO(e,n,r){e==="focusin"?(th(),Tb=n,Rb=r,Tb.attachEvent("onpropertychange",tf)):e==="focusout"&&th()}function Cv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return so(Rb)}function xv(e,n){if(e==="click")return so(n)}function nh(e,n){if(e==="input"||e==="change")return so(n)}function bm(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function nf(e,n){if(Dr(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),c=Object.keys(n);if(r.length!==c.length)return!1;for(c=0;c<r.length;c++){var h=r[c];if(!_r.call(n,h)||!Dr(e[h],n[h]))return!1}return!0}function sE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cE(e,n){var r=sE(e);e=0;for(var c;r;){if(r.nodeType===3){if(c=e+r.textContent.length,e<=n&&c>=n)return{node:r,offset:n-e};e=c}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sE(r)}}function fE(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?fE(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Sm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ra(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=ra(e.document)}return n}function _v(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function dE(e,n,r){var c=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;VO||Kg==null||Kg!==ra(c)||(c=Kg,"selectionStart"in c&&_v(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ob&&nf(Ob,c)||(Ob=c,c=Ol(kO,"onSelect"),0<c.length&&(n=new Dw("onSelect","select",null,n,r),e.push({event:n,listeners:c}),n.target=Kg)))}function Ds(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}function Ms(e){if(BO[e])return BO[e];if(!Wg[e])return e;var n=Wg[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in $z)return BO[e]=n[r];return e}function sl(e,n){Qz.set(e,n),ut(n,[e])}function hE(e){for(var n=zw,r=0;r<e.length;r++){var c=e[r];if(typeof c=="object"&&c!==null)if(Da(c)&&c.length===2&&typeof c[0]=="string"){if(n!==zw&&n!==$O)return IO;n=$O}else return IO;else{if(typeof c=="function"||typeof c=="string"&&50<c.length||n!==zw&&n!==qO)return IO;n=qO}}return n}function Av(e,n,r,c){for(var h in e)_r.call(e,h)&&h[0]!=="_"&&ql(h,e[h],n,r,c)}function ql(e,n,r,c,h){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===Fr){var m=X(n.type)||"…",R=n.key;n=n.props;var C=Object.keys(n),U=C.length;if(R==null&&U===0){n="<"+m+" />";break}if(3>c||U===1&&C[0]==="children"&&R==null){n="<"+m+" … />";break}r.push([h+"  ".repeat(c)+e,"<"+m]),R!==null&&ql("key",R,r,c+1,h),e=!1;for(var G in n)G==="children"?n.children!=null&&(!Da(n.children)||0<n.children.length)&&(e=!0):_r.call(n,G)&&G[0]!=="_"&&ql(G,n[G],r,c+1,h);r.push(["",e?">…</"+m+">":"/>"]);return}if(m=Object.prototype.toString.call(n),m=m.slice(8,m.length-1),m==="Array"){if(G=hE(n),G===qO||G===zw){n=JSON.stringify(n);break}else if(G===$O){for(r.push([h+"  ".repeat(c)+e,""]),e=0;e<n.length;e++)m=n[e],ql(m[0],m[1],r,c+1,h);return}}if(m==="Promise"){if(n.status==="fulfilled"){if(m=r.length,ql(e,n.value,r,c,h),r.length>m){r=r[m],r[1]="Promise<"+(r[1]||"Object")+">";return}}else if(n.status==="rejected"&&(m=r.length,ql(e,n.reason,r,c,h),r.length>m)){r=r[m],r[1]="Rejected Promise<"+r[1]+">";return}r.push(["  ".repeat(c)+e,"Promise"]);return}m==="Object"&&(G=Object.getPrototypeOf(n))&&typeof G.constructor=="function"&&(m=G.constructor.name),r.push([h+"  ".repeat(c)+e,m==="Object"?3>c?"":"…":m]),3>c&&Av(n,r,c+1,h);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n===Y$?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}r.push([h+"  ".repeat(c)+e,n])}function pE(e,n,r,c){var h=!0;for(R in e)R in n||(r.push([Nw+"  ".repeat(c)+R,"…"]),h=!1);for(var m in n)if(m in e){var R=e[m],C=n[m];if(R!==C){if(c===0&&m==="children")h="  ".repeat(c)+m,r.push([Nw+h,"…"],[Uw+h,"…"]);else{if(!(3<=c)){if(typeof R=="object"&&typeof C=="object"&&R!==null&&C!==null&&R.$$typeof===C.$$typeof)if(C.$$typeof===Fr){if(R.type===C.type&&R.key===C.key){R=X(C.type)||"…",h="  ".repeat(c)+m,R="<"+R+" … />",r.push([Nw+h,R],[Uw+h,R]),h=!1;continue}}else{var U=Object.prototype.toString.call(R),G=Object.prototype.toString.call(C);if(U===G&&(G==="[object Object]"||G==="[object Array]")){U=[Wz+"  ".repeat(c)+m,G==="[object Array]"?"Array":""],r.push(U),G=r.length,pE(R,C,r,c+1)?G===r.length&&(U[1]="Referentially unequal but deeply equal objects. Consider memoization."):h=!1;continue}}else if(typeof R=="function"&&typeof C=="function"&&R.name===C.name&&R.length===C.length&&(U=Function.prototype.toString.call(R),G=Function.prototype.toString.call(C),U===G)){R=C.name===""?"() => {}":C.name+"() {}",r.push([Wz+"  ".repeat(c)+m,R+" Referentially unequal function closure. Consider memoization."]);continue}}ql(m,R,r,c,Nw),ql(m,C,r,c,Uw)}h=!1}}else r.push([Uw+"  ".repeat(c)+m,"…"]),h=!1;return h}function cl(e){hn=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Vr(e,n,r,c){ea&&(od.start=n,od.end=r,gc.color="warning",gc.tooltipText=c,gc.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,c,od)):performance.measure(c,od))}function Em(e,n,r){Vr(e,n,r,"Reconnect")}function wm(e,n,r,c,h){var m=K(e);if(m!==null&&ea){var R=e.alternate,C=e.actualDuration;if(R===null||R.child!==e.child)for(var U=e.child;U!==null;U=U.sibling)C-=U.actualDuration;c=.5>C?c?"tertiary-light":"primary-light":10>C?c?"tertiary":"primary":100>C?c?"tertiary-dark":"primary-dark":"error";var G=e.memoizedProps;C=e._debugTask,G!==null&&R!==null&&R.memoizedProps!==G?(U=[I$],G=pE(R.memoizedProps,G,U,0),1<U.length&&(G&&!ad&&(R.lanes&h)===0&&100<e.actualDuration?(ad=!0,U[0]=q$,gc.color="warning",gc.tooltipText=e4):(gc.color=c,gc.tooltipText=m),gc.properties=U,od.start=n,od.end=r,C!=null?C.run(performance.measure.bind(performance,"​"+m,od)):performance.measure("​"+m,od))):C!=null?C.run(console.timeStamp.bind(console,m,n,r,yi,void 0,c)):console.timeStamp(m,n,r,yi,void 0,c)}}function Dv(e,n,r,c){if(ea){var h=K(e);if(h!==null){for(var m=null,R=[],C=0;C<c.length;C++){var U=c[C];m==null&&U.source!==null&&(m=U.source._debugTask),U=U.value,R.push(["Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}e.key!==null&&ql("key",e.key,R,0,""),e.memoizedProps!==null&&Av(e.memoizedProps,R,0,""),m==null&&(m=e._debugTask),e={start:n,end:r,detail:{devtools:{color:"error",track:yi,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:R}}},m?m.run(performance.measure.bind(performance,"​"+h,e)):performance.measure("​"+h,e)}}}function fl(e,n,r,c,h){if(h!==null){if(ea){var m=K(e);if(m!==null){c=[];for(var R=0;R<h.length;R++){var C=h[R].value;c.push(["Error",typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C)])}e.key!==null&&ql("key",e.key,c,0,""),e.memoizedProps!==null&&Av(e.memoizedProps,c,0,""),n={start:n,end:r,detail:{devtools:{color:"error",track:yi,tooltipText:"A lifecycle or effect errored",properties:c}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+m,n)):performance.measure("​"+m,n)}}}else m=K(e),m!==null&&ea&&(h=1>c?"secondary-light":100>c?"secondary":500>c?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,m,n,r,yi,void 0,h)):console.timeStamp(m,n,r,yi,void 0,h))}function bO(e,n,r,c){if(ea&&!(n<=e)){var h=(r&738197653)===r?"tertiary-dark":"primary-dark";r=(r&536870912)===r?"Prepared":(r&201326741)===r?"Hydrated":"Render",c?c.run(console.timeStamp.bind(console,r,e,n,hn,cn,h)):console.timeStamp(r,e,n,hn,cn,h)}}function mE(e,n,r,c){!ea||n<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",c?c.run(console.timeStamp.bind(console,"Prewarm",e,n,hn,cn,r)):console.timeStamp("Prewarm",e,n,hn,cn,r))}function gE(e,n,r,c){!ea||n<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",c?c.run(console.timeStamp.bind(console,"Suspended",e,n,hn,cn,r)):console.timeStamp("Suspended",e,n,hn,cn,r))}function SO(e,n,r,c,h,m){if(ea&&!(n<=e)){r=[];for(var R=0;R<c.length;R++){var C=c[R].value;r.push(["Recoverable Error",typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C)])}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:hn,trackGroup:cn,tooltipText:h?"Hydration Failed":"Recovered after Error",properties:r}}},m?m.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Mv(e,n,r,c){!ea||n<=e||(c?c.run(console.timeStamp.bind(console,"Errored",e,n,hn,cn,"error")):console.timeStamp("Errored",e,n,hn,cn,"error"))}function EO(e,n,r,c){!ea||n<=e||(c?c.run(console.timeStamp.bind(console,r,e,n,hn,cn,"secondary-light")):console.timeStamp(r,e,n,hn,cn,"secondary-light"))}function yE(e,n,r,c,h){if(ea&&!(n<=e)){for(var m=[],R=0;R<r.length;R++){var C=r[R].value;m.push(["Error",typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C)])}e={start:e,end:n,detail:{devtools:{color:"error",track:hn,trackGroup:cn,tooltipText:c?"Remaining Effects Errored":"Commit Errored",properties:m}}},h?h.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function zv(e,n,r){!ea||n<=e||console.timeStamp("Animating",e,n,hn,cn,"secondary-dark")}function Tm(){for(var e=ey,n=ZO=ey=0;n<e;){var r=vi[n];vi[n++]=null;var c=vi[n];vi[n++]=null;var h=vi[n];vi[n++]=null;var m=vi[n];if(vi[n++]=null,c!==null&&h!==null){var R=c.pending;R===null?h.next=h:(h.next=R.next,R.next=h),c.pending=h}m!==0&&Nv(r,h,m)}}function af(e,n,r,c){vi[ey++]=e,vi[ey++]=n,vi[ey++]=r,vi[ey++]=c,ZO|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function zs(e,n,r,c){return af(e,n,r,c),ah(e)}function bo(e,n){return af(e,null,null,n),ah(e)}function Nv(e,n,r){e.lanes|=r;var c=e.alternate;c!==null&&(c.lanes|=r);for(var h=!1,m=e.return;m!==null;)m.childLanes|=r,c=m.alternate,c!==null&&(c.childLanes|=r),m.tag===22&&(e=m.stateNode,e===null||e._visibility&Cb||(h=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,h&&n!==null&&(h=31-fo(r),e=m.hiddenUpdates,c=e[h],c===null?e[h]=[n]:c.push(n),n.lane=r|536870912),m):null}function ah(e){if(Wb>lZ)throw Op=Wb=0,e1=OC=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Op>iZ&&(Op=0,e1=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Pr(e);for(var n=e,r=n.return;r!==null;)n.alternate===null&&(n.flags&4098)!==0&&Pr(e),n=r,r=n.return;return n.tag===3?n.stateNode:null}function xu(e){if(bi===null)return e;var n=bi(e);return n===void 0?e:n.current}function Rm(e){if(bi===null)return e;var n=bi(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=xu(e.render),e.render!==n)?(n={$$typeof:$f,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function Uv(e,n){if(bi===null)return!1;var r=e.elementType;n=n.type;var c=!1,h=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(c=!0);break;case 0:(typeof n=="function"||h===wo)&&(c=!0);break;case 11:(h===$f||h===wo)&&(c=!0);break;case 14:case 15:(h===ap||h===wo)&&(c=!0);break;default:return!1}return!!(c&&(e=bi(r),e!==void 0&&e===bi(n)))}function Ns(e){bi!==null&&typeof WeakSet=="function"&&(ty===null&&(ty=new WeakSet),ty.add(e))}function vE(e,n,r){do{var c=e,h=c.alternate,m=c.child,R=c.sibling,C=c.tag;c=c.type;var U=null;switch(C){case 0:case 15:case 1:U=c;break;case 11:U=c.render}if(bi===null)throw Error("Expected resolveFamily to be set during hot reload.");var G=!1;if(c=!1,U!==null&&(U=bi(U),U!==void 0&&(r.has(U)?c=!0:n.has(U)&&(C===1?c=!0:G=!0))),ty!==null&&(ty.has(e)||h!==null&&ty.has(h))&&(c=!0),c&&(e._debugNeedsRemount=!0),(c||G)&&(h=bo(e,2),h!==null&&At(h,e,2)),m===null||c||vE(m,n,r),R===null)break;e=R}while(!0)}function wO(e,n,r,c){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,t4||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function jv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $l(e,n){var r=e.alternate;switch(r===null?(r=O(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r._debugOwner=e._debugOwner,r._debugStack=e._debugStack,r._debugTask=e._debugTask,r._debugHookTypes=e._debugHookTypes,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null,r.actualDuration=-0,r.actualStartTime=-1.1),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r.selfBaseDuration=e.selfBaseDuration,r.treeBaseDuration=e.treeBaseDuration,r._debugInfo=e._debugInfo,r._debugNeedsRemount=e._debugNeedsRemount,r.tag){case 0:case 15:r.type=xu(e.type);break;case 1:r.type=xu(e.type);break;case 11:r.type=Rm(e.type)}return r}function Lv(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=r.selfBaseDuration,e.treeBaseDuration=r.treeBaseDuration),e}function Us(e,n,r,c,h,m){var R=0,C=e;if(typeof e=="function")jv(e)&&(R=1),C=xu(C);else if(typeof e=="string")R=B(),R=hw(e,r,R)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Al:return n=O(31,r,n,h),n.elementType=Al,n.lanes=m,n;case qf:return js(r.children,h,m,n);case Io:R=8,h|=lr,h|=lu;break;case np:return e=r,c=h,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),n=O(12,e,n,c|Yt),n.elementType=np,n.lanes=m,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case fc:return n=O(13,r,n,h),n.elementType=fc,n.lanes=m,n;case or:return n=O(19,r,n,h),n.elementType=or,n.lanes=m,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _l:R=10;break e;case Lg:R=9;break e;case $f:R=11,C=Rm(C);break e;case ap:R=14;break e;case wo:R=16,C=null;break e}C="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?r="null":Da(e)?r="array":e!==void 0&&e.$$typeof===Fr?(r="<"+(X(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(R=c?le(c):null)&&(C+=`
86
+
87
+ Check the render method of \``+R+"`."),R=29,r=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(r+"."+C)),C=null}return n=O(R,r,n,h),n.elementType=e,n.type=C,n.lanes=m,n._debugOwner=c,n}function _u(e,n,r){return n=Us(e.type,e.key,e.props,e._owner,n,r),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function js(e,n,r,c){return e=O(7,e,c,n),e.lanes=r,e}function of(e,n,r){return e=O(6,e,null,n),e.lanes=r,e}function Hv(e){var n=O(18,null,null,_t);return n.stateNode=e,n}function Om(e,n,r){return n=O(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Do(e,n){if(typeof e=="object"&&e!==null){var r=XO.get(e);return r!==void 0?r:(n={value:e,source:n,stack:Te(n)},XO.set(e,n),n)}return{value:e,source:n,stack:Te(n)}}function dl(e,n){Au(),ny[ay++]=xb,ny[ay++]=jw,jw=e,xb=n}function kv(e,n,r){Au(),Si[Ei++]=vc,Si[Ei++]=bc,Si[Ei++]=cp,cp=e;var c=vc;e=bc;var h=32-fo(c)-1;c&=~(1<<h),r+=1;var m=32-fo(n)+h;if(30<m){var R=h-h%5;m=(c&(1<<R)-1).toString(32),c>>=R,h-=R,vc=1<<32-fo(n)+h|r<<h|c,bc=m+e}else vc=1<<m|r<<h|c,bc=e}function Cm(e){Au(),e.return!==null&&(dl(e,1),kv(e,1,0))}function xm(e){for(;e===jw;)jw=ny[--ay],ny[ay]=null,xb=ny[--ay],ny[ay]=null;for(;e===cp;)cp=Si[--Ei],Si[Ei]=null,bc=Si[--Ei],Si[Ei]=null,vc=Si[--Ei],Si[Ei]=null}function bE(){return Au(),cp!==null?{id:vc,overflow:bc}:null}function SE(e,n){Au(),Si[Ei++]=vc,Si[Ei++]=bc,Si[Ei++]=cp,vc=n.id,bc=n.overflow,cp=e}function Au(){un||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ls(e,n){if(e.return===null){if(Ml===null)Ml={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Ml.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Ml.distanceFromLeaf>n&&(Ml.distanceFromLeaf=n)}return Ml}var r=Ls(e.return,n+1).children;return 0<r.length&&r[r.length-1].fiber===e?(r=r[r.length-1],r.distanceFromLeaf>n&&(r.distanceFromLeaf=n),r):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},r.push(n),n)}function EE(){un&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function So(e,n){rs||(e=Ls(e,0),e.serverProps=null,n!==null&&(n=sw(n),e.serverTail.push(n)))}function Br(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,r="",c=Ml;throw c!==null&&(Ml=null,r=vv(c)),rh(Do(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
88
+
89
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
90
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
91
+ - Date formatting in a user's locale which doesn't match the server.
92
+ - External changing data without sending a snapshot of it along with the HTML.
93
+ - Invalid HTML tag nesting.
94
+
95
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
96
+
97
+ https://react.dev/link/hydration-mismatch`+r),e)),PO}function Vv(e){var n=e.stateNode,r=e.type,c=e.memoizedProps;switch(n[Wn]=e,n[qo]=c,Go(r,c),r){case"dialog":Ct("cancel",n),Ct("close",n);break;case"iframe":case"object":case"embed":Ct("load",n);break;case"video":case"audio":for(r=0;r<t1.length;r++)Ct(t1[r],n);break;case"source":Ct("error",n);break;case"img":case"image":case"link":Ct("error",n),Ct("load",n);break;case"details":Ct("toggle",n);break;case"input":tn("input",c),Ct("invalid",n),vo(n,c),um(n,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"option":oE(n,c);break;case"select":tn("select",c),Ct("invalid",n),sm(n,c);break;case"textarea":tn("textarea",c),Ct("invalid",n),Rs(n,c),Pc(n,c.value,c.defaultValue,c.children)}r=c.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||c.suppressHydrationWarning===!0||G0(n.textContent,r)?(c.popover!=null&&(Ct("beforetoggle",n),Ct("toggle",n)),c.onScroll!=null&&Ct("scroll",n),c.onScrollEnd!=null&&Ct("scrollend",n),c.onClick!=null&&(n.onclick=kr),n=!0):n=!1,n||Br(e,!0)}function Bv(e){for($o=e.return;$o;)switch($o.tag){case 5:case 31:case 13:wi=!1;return;case 27:case 3:wi=!0;return;default:$o=$o.return}}function Hs(e){if(e!==$o)return!1;if(!un)return Bv(e),un=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Lf(e.type,e.memoizedProps)),r=!r),r&&ta){for(r=ta;r;){var c=Ls(e,0),h=sw(r);c.serverTail.push(h),r=h.type==="Suspense"?Vf(r):Cr(r.nextSibling)}Br(e)}if(Bv(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ta=Vf(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ta=Vf(e)}else n===27?(n=ta,Ku(e.type)?(e=HC,HC=null,ta=e):ta=n):ta=$o?Cr(e.stateNode.nextSibling):null;return!0}function Du(){ta=$o=null,rs=un=!1}function oh(){var e=ld;return e!==null&&(Ur===null?Ur=e:Ur.push.apply(Ur,e),ld=null),e}function rh(e){ld===null?ld=[e]:ld.push(e)}function Mu(){var e=Ml;if(e!==null){Ml=null;for(var n=vv(e);0<e.children.length;)e=e.children[0];Ne(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
98
+
99
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
100
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
101
+ - Date formatting in a user's locale which doesn't match the server.
102
+ - External changing data without sending a snapshot of it along with the HTML.
103
+ - Invalid HTML tag nesting.
104
+
105
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
106
+
107
+ %s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function rf(){oy=Lw=null,ry=!1}function Gr(e,n,r){ee(FO,n._currentValue,e),n._currentValue=r,ee(QO,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==a4&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=a4}function hl(e,n){e._currentValue=FO.current;var r=QO.current;ie(QO,n),e._currentRenderer=r,ie(FO,n)}function _m(e,n,r){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===r)break;e=e.return}e!==r&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Bi(e,n,r,c){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var m=h.dependencies;if(m!==null){var R=h.child;m=m.firstContext;e:for(;m!==null;){var C=m;m=h;for(var U=0;U<n.length;U++)if(C.context===n[U]){m.lanes|=r,C=m.alternate,C!==null&&(C.lanes|=r),_m(m.return,r,e),c||(R=null);break e}m=C.next}}else if(h.tag===18){if(R=h.return,R===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");R.lanes|=r,m=R.alternate,m!==null&&(m.lanes|=r),_m(R,r,e),R=null}else R=h.child;if(R!==null)R.return=h;else for(R=h;R!==null;){if(R===e){R=null;break}if(h=R.sibling,h!==null){h.return=R.return,R=h;break}R=R.return}h=R}}function pl(e,n,r,c){e=null;for(var h=n,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var R=h.alternate;if(R===null)throw Error("Should have a current fiber. This is a bug in React.");if(R=R.memoizedProps,R!==null){var C=h.type;Dr(h.pendingProps.value,R.value)||(e!==null?e.push(C):e=[C])}}else if(h===ns.current){if(R=h.alternate,R===null)throw Error("Should have a current fiber. This is a bug in React.");R.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(l1):e=[l1])}h=h.return}e!==null&&Bi(n,e,r,c),n.flags|=262144}function lf(e){for(e=e.firstContext;e!==null;){if(!Dr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zu(e){Lw=e,oy=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Sn(e){return ry&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Gv(Lw,e)}function lh(e,n){return Lw===null&&zu(e),Gv(e,n)}function Gv(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},oy===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");oy=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288}else oy=oy.next=n;return r}function Am(){return{controller:new X$,data:new Map,refCount:0}}function ks(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function ih(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&P$(F$,function(){e.controller.abort()})}function Zl(e,n,r){(e&127)!==0?0>ls&&(ls=Wa(),Ab=Hw(n),JO=n,r!=null&&(KO=K(r)),(gn&(mo|Ul))!==Co&&(xa=!0,ud=_b),e=Hf(),n=fi(),e!==ly||n!==Db?ly=-1.1:n!==null&&(ud=_b),hp=e,Db=n):(e&4194048)!==0&&0>Ti&&(Ti=Wa(),Mb=Hw(n),o4=n,r!=null&&(r4=K(r)),0>Tc)&&(e=Hf(),n=fi(),(e!==cd||n!==pp)&&(cd=-1.1),sd=e,pp=n)}function wE(e){if(0>ls){ls=Wa(),Ab=e._debugTask!=null?e._debugTask:null,(gn&(mo|Ul))!==Co&&(ud=_b);var n=Hf(),r=fi();n!==ly||r!==Db?ly=-1.1:r!==null&&(ud=_b),hp=n,Db=r}0>Ti&&(Ti=Wa(),Mb=e._debugTask!=null?e._debugTask:null,0>Tc)&&(e=Hf(),n=fi(),(e!==cd||n!==pp)&&(cd=-1.1),sd=e,pp=n)}function Xl(){var e=fp;return fp=0,e}function uf(e){var n=fp;return fp=e,n}function Mo(e){var n=fp;return fp+=e,n}function Vs(){Tt=St=-1.1}function Qn(){var e=St;return St=-1.1,e}function $a(e){0<=e&&(St=e)}function Yr(){var e=ga;return ga=-0,e}function pr(e){0<=e&&(ga=e)}function mr(){var e=sa;return sa=null,e}function Ir(){var e=xa;return xa=!1,e}function Gi(e){Mr=Wa(),0>e.actualStartTime&&(e.actualStartTime=Mr)}function Dm(e){if(0<=Mr){var n=Wa()-Mr;e.actualDuration+=n,e.selfBaseDuration=n,Mr=-1}}function uh(e){if(0<=Mr){var n=Wa()-Mr;e.actualDuration+=n,Mr=-1}}function zo(){if(0<=Mr){var e=Wa(),n=e-Mr;Mr=-1,fp+=n,ga+=n,Tt=e}}function TE(e){sa===null&&(sa=[]),sa.push(e),Ec===null&&(Ec=[]),Ec.push(e)}function ha(){Mr=Wa(),0>St&&(St=Mr)}function Bs(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function Yi(e,n){if(Nb===null){var r=Nb=[];eC=0,mp=B0(),iy={status:"pending",value:void 0,then:function(c){r.push(c)}}}return eC++,n.then(Yv,Yv),n}function Yv(){if(--eC===0&&(-1<Ti||(Tc=-1.1),Nb!==null)){iy!==null&&(iy.status="fulfilled");var e=Nb;Nb=null,mp=0,iy=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Mm(e,n){var r=[],c={status:"pending",value:null,reason:null,then:function(h){r.push(h)}};return e.then(function(){c.status="fulfilled",c.value=n;for(var h=0;h<r.length;h++)(0,r[h])(n)},function(h){for(c.status="rejected",c.reason=h,h=0;h<r.length;h++)(0,r[h])(void 0)}),c}function Ii(){var e=gp.current;return e!==null?e:qn.pooledCache}function sf(e,n){n===null?ee(gp,gp.current,e):ee(gp,n.pool,e)}function Iv(){var e=Ii();return e===null?null:{parent:Ka._currentValue,pool:e}}function zm(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function qv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gr(e,n,r){Me.actQueue!==null&&(Me.didUsePromise=!0);var c=e.thenables;if(r=c[r],r===void 0?c.push(n):r!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(kr,kr),n=r),n._debugInfo===void 0){e=performance.now(),c=n.displayName;var h={name:typeof c=="string"?c:"Promise",start:e,end:e,value:n};n._debugInfo=[{awaited:h}],n.status!=="fulfilled"&&n.status!=="rejected"&&(e=function(){h.end=performance.now()},n.then(e,e))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,sh(e),e;default:if(typeof n.status=="string")n.then(kr,kr);else{if(e=qn,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=n,e.status="pending",e.then(function(m){if(n.status==="pending"){var R=n;R.status="fulfilled",R.value=m}},function(m){if(n.status==="pending"){var R=n;R.status="rejected",R.reason=m}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,sh(e),e}throw vp=n,Bb=!0,uy}}function yr(e){try{return eZ(e)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vp=n,Bb=!0,uy):n}}function Gs(){if(vp===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=vp;return vp=null,Bb=!1,e}function sh(e){if(e===uy||e===$w)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function wa(e){var n=It;return e!=null&&(It=n===null?e:n.concat(e)),n}function Ko(){var e=It;if(e!=null){for(var n=e.length-1;0<=n;n--)if(e[n].name!=null){var r=e[n].debugTask;if(r!=null)return r}}return null}function No(e,n,r){for(var c=Object.keys(e.props),h=0;h<c.length;h++){var m=c[h];if(m!=="children"&&m!=="key"){n===null&&(n=_u(e,r.mode,0),n._debugInfo=It,n.return=r),Ne(n,function(R){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R)},m);break}}}function ml(e){var n=Gb;return Gb+=1,sy===null&&(sy=zm()),gr(sy,e,n)}function Wo(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function gl(e,n){throw n.$$typeof===bw?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
108
+ - Multiple copies of the "react" package is used.
109
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
110
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function qr(e,n){var r=Ko();r!==null?r.run(gl.bind(null,e,n)):gl(e,n)}function $v(e,n){var r=K(e)||"Component";O4[r]||(O4[r]=!0,n=n.displayName||n.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
111
+ root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
112
+ <%s>{%s}</%s>`,n,n,r,n,r))}function cf(e,n){var r=Ko();r!==null?r.run($v.bind(null,e,n)):$v(e,n)}function Nm(e,n){var r=K(e)||"Component";C4[r]||(C4[r]=!0,n=String(n),e.tag===3?console.error(`Symbols are not valid as a React child.
113
+ root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
114
+ <%s>%s</%s>`,r,n,r))}function ch(e,n){var r=Ko();r!==null?r.run(Nm.bind(null,e,n)):Nm(e,n)}function Za(e){function n(ae,ue){if(e){var he=ae.deletions;he===null?(ae.deletions=[ue],ae.flags|=16):he.push(ue)}}function r(ae,ue){if(!e)return null;for(;ue!==null;)n(ae,ue),ue=ue.sibling;return null}function c(ae){for(var ue=new Map;ae!==null;)ae.key!==null?ue.set(ae.key,ae):ue.set(ae.index,ae),ae=ae.sibling;return ue}function h(ae,ue){return ae=$l(ae,ue),ae.index=0,ae.sibling=null,ae}function m(ae,ue,he){return ae.index=he,e?(he=ae.alternate,he!==null?(he=he.index,he<ue?(ae.flags|=67108866,ue):he):(ae.flags|=67108866,ue)):(ae.flags|=1048576,ue)}function R(ae){return e&&ae.alternate===null&&(ae.flags|=67108866),ae}function C(ae,ue,he,He){return ue===null||ue.tag!==6?(ue=of(he,ae.mode,He),ue.return=ae,ue._debugOwner=ae,ue._debugTask=ae._debugTask,ue._debugInfo=It,ue):(ue=h(ue,he),ue.return=ae,ue._debugInfo=It,ue)}function U(ae,ue,he,He){var nt=he.type;return nt===qf?(ue=pe(ae,ue,he.props.children,He,he.key),No(he,ue,ae),ue):ue!==null&&(ue.elementType===nt||Uv(ue,he)||typeof nt=="object"&&nt!==null&&nt.$$typeof===wo&&yr(nt)===ue.type)?(ue=h(ue,he.props),Wo(ue,he),ue.return=ae,ue._debugOwner=he._owner,ue._debugInfo=It,ue):(ue=_u(he,ae.mode,He),Wo(ue,he),ue.return=ae,ue._debugInfo=It,ue)}function G(ae,ue,he,He){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==he.containerInfo||ue.stateNode.implementation!==he.implementation?(ue=Om(he,ae.mode,He),ue.return=ae,ue._debugInfo=It,ue):(ue=h(ue,he.children||[]),ue.return=ae,ue._debugInfo=It,ue)}function pe(ae,ue,he,He,nt){return ue===null||ue.tag!==7?(ue=js(he,ae.mode,He,nt),ue.return=ae,ue._debugOwner=ae,ue._debugTask=ae._debugTask,ue._debugInfo=It,ue):(ue=h(ue,he),ue.return=ae,ue._debugInfo=It,ue)}function ge(ae,ue,he){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=of(""+ue,ae.mode,he),ue.return=ae,ue._debugOwner=ae,ue._debugTask=ae._debugTask,ue._debugInfo=It,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case Fr:return he=_u(ue,ae.mode,he),Wo(he,ue),he.return=ae,ae=wa(ue._debugInfo),he._debugInfo=It,It=ae,he;case es:return ue=Om(ue,ae.mode,he),ue.return=ae,ue._debugInfo=It,ue;case wo:var He=wa(ue._debugInfo);return ue=yr(ue),ae=ge(ae,ue,he),It=He,ae}if(Da(ue)||V(ue))return he=js(ue,ae.mode,he,null),he.return=ae,he._debugOwner=ae,he._debugTask=ae._debugTask,ae=wa(ue._debugInfo),he._debugInfo=It,It=ae,he;if(typeof ue.then=="function")return He=wa(ue._debugInfo),ae=ge(ae,ml(ue),he),It=He,ae;if(ue.$$typeof===_l)return ge(ae,lh(ae,ue),he);qr(ae,ue)}return typeof ue=="function"&&cf(ae,ue),typeof ue=="symbol"&&ch(ae,ue),null}function re(ae,ue,he,He){var nt=ue!==null?ue.key:null;if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return nt!==null?null:C(ae,ue,""+he,He);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case Fr:return he.key===nt?(nt=wa(he._debugInfo),ae=U(ae,ue,he,He),It=nt,ae):null;case es:return he.key===nt?G(ae,ue,he,He):null;case wo:return nt=wa(he._debugInfo),he=yr(he),ae=re(ae,ue,he,He),It=nt,ae}if(Da(he)||V(he))return nt!==null?null:(nt=wa(he._debugInfo),ae=pe(ae,ue,he,He,null),It=nt,ae);if(typeof he.then=="function")return nt=wa(he._debugInfo),ae=re(ae,ue,ml(he),He),It=nt,ae;if(he.$$typeof===_l)return re(ae,ue,lh(ae,he),He);qr(ae,he)}return typeof he=="function"&&cf(ae,he),typeof he=="symbol"&&ch(ae,he),null}function xe(ae,ue,he,He,nt){if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return ae=ae.get(he)||null,C(ue,ae,""+He,nt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case Fr:return he=ae.get(He.key===null?he:He.key)||null,ae=wa(He._debugInfo),ue=U(ue,he,He,nt),It=ae,ue;case es:return ae=ae.get(He.key===null?he:He.key)||null,G(ue,ae,He,nt);case wo:var zt=wa(He._debugInfo);return He=yr(He),ue=xe(ae,ue,he,He,nt),It=zt,ue}if(Da(He)||V(He))return he=ae.get(he)||null,ae=wa(He._debugInfo),ue=pe(ue,he,He,nt,null),It=ae,ue;if(typeof He.then=="function")return zt=wa(He._debugInfo),ue=xe(ae,ue,he,ml(He),nt),It=zt,ue;if(He.$$typeof===_l)return xe(ae,ue,he,lh(ue,He),nt);qr(ue,He)}return typeof He=="function"&&cf(ue,He),typeof He=="symbol"&&ch(ue,He),null}function Je(ae,ue,he,He){if(typeof he!="object"||he===null)return He;switch(he.$$typeof){case Fr:case es:E(ae,ue,he);var nt=he.key;if(typeof nt!="string")break;if(He===null){He=new Set,He.add(nt);break}if(!He.has(nt)){He.add(nt);break}Ne(ue,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",nt)});break;case wo:he=yr(he),Je(ae,ue,he,He)}return He}function at(ae,ue,he,He){for(var nt=null,zt=null,bt=null,gt=ue,Bt=ue=0,na=null;gt!==null&&Bt<he.length;Bt++){gt.index>Bt?(na=gt,gt=null):na=gt.sibling;var Ga=re(ae,gt,he[Bt],He);if(Ga===null){gt===null&&(gt=na);break}nt=Je(ae,Ga,he[Bt],nt),e&&gt&&Ga.alternate===null&&n(ae,gt),ue=m(Ga,ue,Bt),bt===null?zt=Ga:bt.sibling=Ga,bt=Ga,gt=na}if(Bt===he.length)return r(ae,gt),un&&dl(ae,Bt),zt;if(gt===null){for(;Bt<he.length;Bt++)gt=ge(ae,he[Bt],He),gt!==null&&(nt=Je(ae,gt,he[Bt],nt),ue=m(gt,ue,Bt),bt===null?zt=gt:bt.sibling=gt,bt=gt);return un&&dl(ae,Bt),zt}for(gt=c(gt);Bt<he.length;Bt++)na=xe(gt,ae,Bt,he[Bt],He),na!==null&&(nt=Je(ae,na,he[Bt],nt),e&&na.alternate!==null&&gt.delete(na.key===null?Bt:na.key),ue=m(na,ue,Bt),bt===null?zt=na:bt.sibling=na,bt=na);return e&&gt.forEach(function(Mc){return n(ae,Mc)}),un&&dl(ae,Bt),zt}function Pn(ae,ue,he,He){if(he==null)throw Error("An iterable object provided no iterator.");for(var nt=null,zt=null,bt=ue,gt=ue=0,Bt=null,na=null,Ga=he.next();bt!==null&&!Ga.done;gt++,Ga=he.next()){bt.index>gt?(Bt=bt,bt=null):Bt=bt.sibling;var Mc=re(ae,bt,Ga.value,He);if(Mc===null){bt===null&&(bt=Bt);break}na=Je(ae,Mc,Ga.value,na),e&&bt&&Mc.alternate===null&&n(ae,bt),ue=m(Mc,ue,gt),zt===null?nt=Mc:zt.sibling=Mc,zt=Mc,bt=Bt}if(Ga.done)return r(ae,bt),un&&dl(ae,gt),nt;if(bt===null){for(;!Ga.done;gt++,Ga=he.next())bt=ge(ae,Ga.value,He),bt!==null&&(na=Je(ae,bt,Ga.value,na),ue=m(bt,ue,gt),zt===null?nt=bt:zt.sibling=bt,zt=bt);return un&&dl(ae,gt),nt}for(bt=c(bt);!Ga.done;gt++,Ga=he.next())Bt=xe(bt,ae,gt,Ga.value,He),Bt!==null&&(na=Je(ae,Bt,Ga.value,na),e&&Bt.alternate!==null&&bt.delete(Bt.key===null?gt:Bt.key),ue=m(Bt,ue,gt),zt===null?nt=Bt:zt.sibling=Bt,zt=Bt);return e&&bt.forEach(function(RZ){return n(ae,RZ)}),un&&dl(ae,gt),nt}function fn(ae,ue,he,He){if(typeof he=="object"&&he!==null&&he.type===qf&&he.key===null&&(No(he,null,ae),he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case Fr:var nt=wa(he._debugInfo);e:{for(var zt=he.key;ue!==null;){if(ue.key===zt){if(zt=he.type,zt===qf){if(ue.tag===7){r(ae,ue.sibling),He=h(ue,he.props.children),He.return=ae,He._debugOwner=he._owner,He._debugInfo=It,No(he,He,ae),ae=He;break e}}else if(ue.elementType===zt||Uv(ue,he)||typeof zt=="object"&&zt!==null&&zt.$$typeof===wo&&yr(zt)===ue.type){r(ae,ue.sibling),He=h(ue,he.props),Wo(He,he),He.return=ae,He._debugOwner=he._owner,He._debugInfo=It,ae=He;break e}r(ae,ue);break}else n(ae,ue);ue=ue.sibling}he.type===qf?(He=js(he.props.children,ae.mode,He,he.key),He.return=ae,He._debugOwner=ae,He._debugTask=ae._debugTask,He._debugInfo=It,No(he,He,ae),ae=He):(He=_u(he,ae.mode,He),Wo(He,he),He.return=ae,He._debugInfo=It,ae=He)}return ae=R(ae),It=nt,ae;case es:e:{for(nt=he,he=nt.key;ue!==null;){if(ue.key===he)if(ue.tag===4&&ue.stateNode.containerInfo===nt.containerInfo&&ue.stateNode.implementation===nt.implementation){r(ae,ue.sibling),He=h(ue,nt.children||[]),He.return=ae,ae=He;break e}else{r(ae,ue);break}else n(ae,ue);ue=ue.sibling}He=Om(nt,ae.mode,He),He.return=ae,ae=He}return R(ae);case wo:return nt=wa(he._debugInfo),he=yr(he),ae=fn(ae,ue,he,He),It=nt,ae}if(Da(he))return nt=wa(he._debugInfo),ae=at(ae,ue,he,He),It=nt,ae;if(V(he)){if(nt=wa(he._debugInfo),zt=V(he),typeof zt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var bt=zt.call(he);return bt===he?(ae.tag!==0||Object.prototype.toString.call(ae.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(bt)!=="[object Generator]")&&(T4||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),T4=!0):he.entries!==zt||oC||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oC=!0),ae=Pn(ae,ue,bt,He),It=nt,ae}if(typeof he.then=="function")return nt=wa(he._debugInfo),ae=fn(ae,ue,ml(he),He),It=nt,ae;if(he.$$typeof===_l)return fn(ae,ue,lh(ae,he),He);qr(ae,he)}return typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint"?(nt=""+he,ue!==null&&ue.tag===6?(r(ae,ue.sibling),He=h(ue,nt),He.return=ae,ae=He):(r(ae,ue),He=of(nt,ae.mode,He),He.return=ae,He._debugOwner=ae,He._debugTask=ae._debugTask,He._debugInfo=It,ae=He),R(ae)):(typeof he=="function"&&cf(ae,he),typeof he=="symbol"&&ch(ae,he),r(ae,ue))}return function(ae,ue,he,He){var nt=It;It=null;try{Gb=0;var zt=fn(ae,ue,he,He);return sy=null,zt}catch(na){if(na===uy||na===$w)throw na;var bt=O(29,na,null,ae.mode);bt.lanes=He,bt.return=ae;var gt=bt._debugInfo=It;if(bt._debugOwner=ae._debugOwner,bt._debugTask=ae._debugTask,gt!=null){for(var Bt=gt.length-1;0<=Bt;Bt--)if(typeof gt[Bt].stack=="string"){bt._debugOwner=gt[Bt],bt._debugTask=gt[Bt].debugTask;break}}return bt}finally{It=nt}}}function Bn(e,n){var r=Da(e);return e=!r&&typeof V(e)=="function",r||e?(r=r?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,n,r),!1):!0}function nn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pl(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:_4,payload:null,callback:null,next:null}}function Fl(e,n,r){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,lC===c&&!M4){var h=K(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
115
+
116
+ Please update the following component: %s`,h),M4=!0}return(gn&mo)!==Co?(h=c.pending,h===null?n.next=n:(n.next=h.next,h.next=n),c.pending=n,n=ah(e),Nv(e,null,r),n):(af(e,c,n,r),ah(e))}function $r(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var c=n.lanes;c&=e.pendingLanes,r|=c,n.lanes=r,Qt(e,r)}}function fh(e,n){var r=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,r===c)){var h=null,m=null;if(r=r.firstBaseUpdate,r!==null){do{var R={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};m===null?h=m=R:m=m.next=R,r=r.next}while(r!==null);m===null?h=m=n:m=m.next=n}else h=m=n;r={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}function ff(){if(iC){var e=iy;if(e!==null)throw e}}function Ql(e,n,r,c){iC=!1;var h=e.updateQueue;fd=!1,lC=h.shared;var m=h.firstBaseUpdate,R=h.lastBaseUpdate,C=h.shared.pending;if(C!==null){h.shared.pending=null;var U=C,G=U.next;U.next=null,R===null?m=G:R.next=G,R=U;var pe=e.alternate;pe!==null&&(pe=pe.updateQueue,C=pe.lastBaseUpdate,C!==R&&(C===null?pe.firstBaseUpdate=G:C.next=G,pe.lastBaseUpdate=U))}if(m!==null){var ge=h.baseState;R=0,pe=G=U=null,C=m;do{var re=C.lane&-536870913,xe=re!==C.lane;if(xe?(qt&re)===re:(c&re)===re){re!==0&&re===mp&&(iC=!0),pe!==null&&(pe=pe.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{re=e;var Je=C,at=n,Pn=r;switch(Je.tag){case A4:if(Je=Je.payload,typeof Je=="function"){ry=!0;var fn=Je.call(Pn,ge,at);if(re.mode&lr){Ve(!0);try{Je.call(Pn,ge,at)}finally{Ve(!1)}}ry=!1,ge=fn;break e}ge=Je;break e;case rC:re.flags=re.flags&-65537|128;case _4:if(fn=Je.payload,typeof fn=="function"){if(ry=!0,Je=fn.call(Pn,ge,at),re.mode&lr){Ve(!0);try{fn.call(Pn,ge,at)}finally{Ve(!1)}}ry=!1}else Je=fn;if(Je==null)break e;ge=Gt({},ge,Je);break e;case D4:fd=!0}}re=C.callback,re!==null&&(e.flags|=64,xe&&(e.flags|=8192),xe=h.callbacks,xe===null?h.callbacks=[re]:xe.push(re))}else xe={lane:re,tag:C.tag,payload:C.payload,callback:C.callback,next:null},pe===null?(G=pe=xe,U=ge):pe=pe.next=xe,R|=re;if(C=C.next,C===null){if(C=h.shared.pending,C===null)break;xe=C,C=xe.next,xe.next=null,h.lastBaseUpdate=xe,h.shared.pending=null}}while(!0);pe===null&&(U=ge),h.baseState=U,h.firstBaseUpdate=G,h.lastBaseUpdate=pe,m===null&&(h.shared.lanes=0),pd|=R,e.lanes=R,e.memoizedState=ge}lC=null}function Nu(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function Zv(e,n){var r=e.shared.hiddenCallbacks;if(r!==null)for(e.shared.hiddenCallbacks=null,e=0;e<r.length;e++)Nu(r[e],n)}function df(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Nu(r[e],n)}function Um(e,n){var r=us;ee(Xw,r,e),ee(cy,n,e),us=r|n.baseLanes}function qi(e){ee(Xw,us,e),ee(cy,cy.current,e)}function yl(e){us=Xw.current,ie(cy,e),ie(Xw,e)}function Uo(e){var n=e.alternate;ee(Ba,Ba.current&fy,e),ee(zl,e,e),Ri===null&&(n===null||cy.current!==null||n.memoizedState!==null)&&(Ri=e)}function vl(e){ee(Ba,Ba.current,e),ee(zl,e,e),Ri===null&&(Ri=e)}function jm(e){e.tag===22?(ee(Ba,Ba.current,e),ee(zl,e,e),Ri===null&&(Ri=e)):Jl(e)}function Jl(e){ee(Ba,Ba.current,e),ee(zl,zl.current,e)}function Xa(e){ie(zl,e),Ri===e&&(Ri=null),ie(Ba,e)}function Ys(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Xh(r)||I0(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Dt(){var e=Ae;Ci===null?Ci=[e]:Ci.push(e)}function Ye(){var e=Ae;if(Ci!==null&&(Cc++,Ci[Cc]!==e)){var n=K(Mt);if(!z4.has(n)&&(z4.add(n),Ci!==null)){for(var r="",c=0;c<=Cc;c++){var h=Ci[c],m=c===Cc?e:h;for(h=c+1+". "+h;30>h.length;)h+=" ";h+=m+`
117
+ `,r+=h}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
118
+
119
+ Previous render Next render
120
+ ------------------------------------------------------
121
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122
+ `,n,r)}}}function $i(e){e==null||Da(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ae,typeof e)}function dh(){var e=K(Mt);U4.has(e)||(U4.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function pa(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
123
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
124
+ 2. You might be breaking the Rules of Hooks
125
+ 3. You might have more than one copy of React in the same app
126
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Xv(e,n){if(qb)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ae),!1;e.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
127
+
128
+ Previous: %s
129
+ Incoming: %s`,Ae,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<n.length&&r<e.length;r++)if(!Dr(e[r],n[r]))return!1;return!0}function Pv(e,n,r,c,h,m){Rc=m,Mt=n,Ci=e!==null?e._debugHookTypes:null,Cc=-1,qb=e!==null&&e.type!==n.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(m=K(Mt),uC.has(m)||(uC.add(m),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",m===null?"An unknown Component":"<"+m+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Me.H=e!==null&&e.memoizedState!==null?cC:Ci!==null?j4:sC,Sp=m=(n.mode&lr)!==_t;var R=tC(r,c,h);if(Sp=!1,hy&&(R=hh(n,r,c,h)),m){Ve(!0);try{R=hh(n,r,c,h)}finally{Ve(!1)}}return Ta(e,n),R}function Ta(e,n){n._debugHookTypes=Ci,n.dependencies===null?Oc!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Oc}):n.dependencies._debugThenableState=Oc,Me.H=$b;var r=In!==null&&In.next!==null;if(Rc=0,Ci=Ae=eo=In=Mt=null,Cc=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Fw=!1,Ib=0,Oc=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||to||(e=e.dependencies,e!==null&&lf(e)&&(to=!0)),Bb?(Bb=!1,e=!0):e=!1,e&&(n=K(n)||"Unknown",N4.has(n)||uC.has(n)||(N4.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function hh(e,n,r,c){Mt=e;var h=0;do{if(hy&&(Oc=null),Ib=0,hy=!1,h>=nZ)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,qb=!1,eo=In=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}Cc=-1,Me.H=L4,m=tC(n,r,c)}while(hy);return m}function ph(){var e=Me.H,n=e.useState()[0];return n=typeof n.then=="function"?yh(n):n,e=e.useState()[0],(In!==null?In.memoizedState:null)!==e&&(Mt.flags|=1024),n}function Is(){var e=Qw!==0;return Qw=0,e}function mh(e,n,r){n.updateQueue=e.updateQueue,n.flags=(n.mode&lu)!==_t?n.flags&-402655237:n.flags&-2053,e.lanes&=~r}function Uu(e){if(Fw){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Fw=!1}Rc=0,Ci=eo=In=Mt=null,Cc=-1,Ae=null,hy=!1,Ib=Qw=0,Oc=null}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return eo===null?Mt.memoizedState=eo=e:eo=eo.next=e,eo}function Cn(){if(In===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=In.next;var n=eo===null?Mt.memoizedState:eo.next;if(n!==null)eo=n,In=e;else{if(e===null)throw Mt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");In=e,e={memoizedState:In.memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},eo===null?Mt.memoizedState=eo=e:eo=eo.next=e}return eo}function gh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yh(e){var n=Ib;return Ib+=1,Oc===null&&(Oc=zm()),e=gr(Oc,e,n),n=Mt,(eo===null?n.memoizedState:eo.next)===null&&(n=n.alternate,Me.H=n!==null&&n.memoizedState!==null?cC:sC),e}function Zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yh(e);if(e.$$typeof===_l)return Sn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function vr(e){var n=null,r=Mt.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var c=Mt.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(n={data:c.data.map(function(h){return h.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=gh(),Mt.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0||qb)for(r=n.data[n.index]=Array(e),c=0;c<e;c++)r[c]=_O;else r.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",r.length,e);return n.index++,r}function br(e,n){return typeof n=="function"?n(e):n}function hf(e,n,r){var c=_a();if(r!==void 0){var h=r(n);if(Sp){Ve(!0);try{r(n)}finally{Ve(!1)}}}else h=n;return c.memoizedState=c.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},c.queue=e,e=e.dispatch=TO.bind(null,Mt,e),[c.memoizedState,e]}function qs(e){var n=Cn();return ju(n,In,e)}function ju(e,n,r){var c=e.queue;if(c===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");c.lastRenderedReducer=r;var h=e.baseQueue,m=c.pending;if(m!==null){if(h!==null){var R=h.next;h.next=m.next,m.next=R}n.baseQueue!==h&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=h=m,c.pending=null}if(m=e.baseState,h===null)e.memoizedState=m;else{n=h.next;var C=R=null,U=null,G=n,pe=!1;do{var ge=G.lane&-536870913;if(ge!==G.lane?(qt&ge)===ge:(Rc&ge)===ge){var re=G.revertLane;if(re===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ge===mp&&(pe=!0);else if((Rc&re)===re){G=G.next,re===mp&&(pe=!0);continue}else ge={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},U===null?(C=U=ge,R=m):U=U.next=ge,Mt.lanes|=re,pd|=re;ge=G.action,Sp&&r(m,ge),m=G.hasEagerState?G.eagerState:r(m,ge)}else re={lane:ge,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},U===null?(C=U=re,R=m):U=U.next=re,Mt.lanes|=ge,pd|=ge;G=G.next}while(G!==null&&G!==n);if(U===null?R=m:U.next=C,!Dr(m,e.memoizedState)&&(to=!0,pe&&(r=iy,r!==null)))throw r;e.memoizedState=m,e.baseState=R,e.baseQueue=U,c.lastRenderedState=m}return h===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function $s(e){var n=Cn(),r=n.queue;if(r===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=e;var c=r.dispatch,h=r.pending,m=n.memoizedState;if(h!==null){r.pending=null;var R=h=h.next;do m=e(m,R.action),R=R.next;while(R!==h);Dr(m,n.memoizedState)||(to=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),r.lastRenderedState=m}return[m,c]}function pf(e,n,r){var c=Mt,h=_a();if(un){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var m=r();dy||m===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),dy=!0)}else{if(m=n(),dy||(r=n(),Dr(m,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),dy=!0)),qn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(qt&127)!==0||Fv(c,n,m)}return h.memoizedState=m,r={value:m,getSnapshot:n},h.queue=r,Ps(Lu.bind(null,c,r,e),[e]),c.flags|=2048,Kl(Oi|Nr,{destroy:void 0},Qv.bind(null,c,r,m,n),null),m}function Zs(e,n,r){var c=Mt,h=Cn(),m=un;if(m){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=r()}else if(r=n(),!dy){var R=n();Dr(r,R)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),dy=!0)}(R=!Dr((In||h).memoizedState,r))&&(h.memoizedState=r,to=!0),h=h.queue;var C=Lu.bind(null,c,h,e);if(La(2048,Nr,C,[e]),h.getSnapshot!==n||R||eo!==null&&eo.memoizedState.tag&Oi){if(c.flags|=2048,Kl(Oi|Nr,{destroy:void 0},Qv.bind(null,c,h,r,n),null),qn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m||(Rc&127)!==0||Fv(c,n,r)}return r}function Fv(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=Mt.updateQueue,n===null?(n=gh(),Mt.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function Qv(e,n,r,c){n.value=r,n.getSnapshot=c,Hu(n)&&Jv(e)}function Lu(e,n,r){return r(function(){Hu(n)&&(Zl(2,"updateSyncExternalStore()",e),Jv(e))})}function Hu(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Dr(e,r)}catch{return!0}}function Jv(e){var n=bo(e,2);n!==null&&At(n,e,2)}function Lm(e){var n=_a();if(typeof e=="function"){var r=e;if(e=r(),Sp){Ve(!0);try{r()}finally{Ve(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:e},n}function ku(e){e=Lm(e);var n=e.queue,r=Ym.bind(null,Mt,n);return n.dispatch=r,[e.memoizedState,r]}function Xs(e){var n=_a();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Rh.bind(null,Mt,!0,r),r.dispatch=n,[e,n]}function vh(e,n){var r=Cn();return mf(r,In,e,n)}function mf(e,n,r,c){return e.baseState=r,ju(e,In,typeof c=="function"?c:br)}function bh(e,n){var r=Cn();return In!==null?mf(r,In,e,n):(r.baseState=e,[e,r.queue.dispatch])}function RE(e,n,r,c,h){if(Pa(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var m={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){m.listeners.push(R)}};Me.T!==null?r(!0):m.isTransition=!1,c(m),r=n.pending,r===null?(m.next=n.pending=m,Vu(n,m)):(m.next=r.next,n.pending=r.next=m)}}function Vu(e,n){var r=n.action,c=n.payload,h=e.state;if(n.isTransition){var m=Me.T,R={};R._updatedFibers=new Set,Me.T=R;try{var C=r(h,c),U=Me.S;U!==null&&U(R,C),Kv(e,n,C)}catch(G){Sh(e,n,G)}finally{m!==null&&R.types!==null&&(m.types!==null&&m.types!==R.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),m.types=R.types),Me.T=m,m===null&&R._updatedFibers&&(e=R._updatedFibers.size,R._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{R=r(h,c),Kv(e,n,R)}catch(G){Sh(e,n,G)}}function Kv(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?(Me.asyncTransitions++,r.then(Fs,Fs),r.then(function(c){Xi(e,n,c)},function(c){return Sh(e,n,c)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Xi(e,n,r)}function Xi(e,n,r){n.status="fulfilled",n.value=r,Hm(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,Vu(e,r)))}function Sh(e,n,r){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do n.status="rejected",n.reason=r,Hm(n),n=n.next;while(n!==c)}e.action=null}function Hm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Pi(e,n){return n}function Sr(e,n){if(un){var r=qn.formState;if(r!==null){e:{var c=Mt;if(un){if(ta){t:{for(var h=ta,m=wi;h.nodeType!==8;){if(!m){h=null;break t}if(h=Cr(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m===NC||m===EN?h:null}if(h){ta=Cr(h.nextSibling),c=h.data===NC;break e}}Br(c)}c=!1}c&&(n=r[0])}}return r=_a(),r.memoizedState=r.baseState=n,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:n},r.queue=c,r=Ym.bind(null,Mt,c),c.dispatch=r,c=Lm(!1),m=Rh.bind(null,Mt,!1,c.queue),c=_a(),h={state:n,dispatch:null,action:e,pending:null},c.queue=h,r=RE.bind(null,Mt,h,m,r),h.dispatch=r,c.memoizedState=e,[n,r,!1]}function Bu(e){var n=Cn();return km(n,In,e)}function km(e,n,r){if(n=ju(e,n,Pi)[0],e=qs(br)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var c=yh(n)}catch(R){throw R===uy?$w:R}else c=n;n=Cn();var h=n.queue,m=h.dispatch;return r!==n.memoizedState&&(Mt.flags|=2048,Kl(Oi|Nr,{destroy:void 0},Wv.bind(null,h,r),null)),[c,m,e]}function Wv(e,n){e.action=n}function Gu(e){var n=Cn(),r=In;if(r!==null)return km(n,r,e);Cn(),n=n.memoizedState,r=Cn();var c=r.queue.dispatch;return r.memoizedState=e,[n,c,!1]}function Kl(e,n,r,c){return e={tag:e,create:r,deps:c,inst:n,next:null},n=Mt.updateQueue,n===null&&(n=gh(),Mt.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(c=r.next,r.next=e,e.next=c,n.lastEffect=e),e}function Vm(e){var n=_a();return e={current:e},n.memoizedState=e}function Yu(e,n,r,c){var h=_a();Mt.flags|=e,h.memoizedState=Kl(Oi|n,{destroy:void 0},r,c===void 0?null:c)}function La(e,n,r,c){var h=Cn();c=c===void 0?null:c;var m=h.memoizedState.inst;In!==null&&c!==null&&Xv(c,In.memoizedState.deps)?h.memoizedState=Kl(n,m,r,c):(Mt.flags|=e,h.memoizedState=Kl(Oi|n,m,r,c))}function Ps(e,n){(Mt.mode&lu)!==_t?Yu(276826112,Nr,e,n):Yu(8390656,Nr,e,n)}function OE(e){Mt.flags|=4;var n=Mt.updateQueue;if(n===null)n=gh(),Mt.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function Eh(e){var n=_a(),r={impl:e};return n.memoizedState=r,function(){if((gn&mo)!==Co)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return r.impl.apply(void 0,arguments)}}function gf(e){var n=Cn().memoizedState;return OE({ref:n,nextImpl:e}),function(){if((gn&mo)!==Co)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function jo(e,n){var r=4194308;return(Mt.mode&lu)!==_t&&(r|=134217728),Yu(r,Nl,e,n)}function Er(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),e=e(),n.current=e,function(){n.current=null}}function Wl(e,n,r){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),r=r!=null?r.concat([e]):null;var c=4194308;(Mt.mode&lu)!==_t&&(c|=134217728),Yu(c,Nl,Er.bind(null,n,e),r)}function yf(e,n,r){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),r=r!=null?r.concat([e]):null,La(4,Nl,Er.bind(null,n,e),r)}function Bm(e,n){return _a().memoizedState=[e,n===void 0?null:n],e}function bl(e,n){var r=Cn();n=n===void 0?null:n;var c=r.memoizedState;return n!==null&&Xv(n,c[1])?c[0]:(r.memoizedState=[e,n],e)}function Lo(e,n){var r=_a();n=n===void 0?null:n;var c=e();if(Sp){Ve(!0);try{e()}finally{Ve(!1)}}return r.memoizedState=[c,n],c}function Jn(e,n){var r=Cn();n=n===void 0?null:n;var c=r.memoizedState;if(n!==null&&Xv(n,c[1]))return c[0];if(c=e(),Sp){Ve(!0);try{e()}finally{Ve(!1)}}return r.memoizedState=[c,n],c}function vf(e,n){var r=_a();return xn(r,e,n)}function ei(e,n){var r=Cn();return Ra(r,In.memoizedState,e,n)}function Lt(e,n){var r=Cn();return In===null?xn(r,e,n):Ra(r,In.memoizedState,e,n)}function xn(e,n,r){return r===void 0||(Rc&1073741824)!==0&&(qt&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=Cf(),Mt.lanes|=e,pd|=e,r)}function Ra(e,n,r,c){return Dr(r,n)?r:cy.current!==null?(e=xn(e,r,c),Dr(e,n)||(to=!0),e):(Rc&42)===0||(Rc&1073741824)!==0&&(qt&261930)===0?(to=!0,e.memoizedState=r):(e=Cf(),Mt.lanes|=e,pd|=e,n)}function Fs(){Me.asyncTransitions--}function Qs(e,n,r,c,h){var m=wn.p;wn.p=m!==0&&m<ho?m:ho;var R=Me.T,C={};C._updatedFibers=new Set,Me.T=C,Rh(e,!1,n,r);try{var U=h(),G=Me.S;if(G!==null&&G(C,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){Me.asyncTransitions++,U.then(Fs,Fs);var pe=Mm(U,c);Js(e,n,pe,Eo(e))}else Js(e,n,c,Eo(e))}catch(ge){Js(e,n,{then:function(){},status:"rejected",reason:ge},Eo(e))}finally{wn.p=m,R!==null&&C.types!==null&&(R.types!==null&&R.types!==C.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),R.types=C.types),Me.T=R,R===null&&C._updatedFibers&&(e=C._updatedFibers.size,C._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Fi(e,n,r,c){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var h=wh(e).queue;wE(e),Qs(e,h,n,Mp,r===null?b:function(){return bf(e),r(c)})}function wh(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:Mp,baseState:Mp,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:Mp},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function bf(e){Me.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=wh(e);n.next===null&&(n=e.alternate.memoizedState),Js(e,n.next.queue,{},Eo(e))}function Iu(){var e=Lm(!1);return e=Qs.bind(null,Mt,e.queue,!0,!1),_a().memoizedState=e,[!1,e]}function CE(){var e=qs(br)[0],n=Cn().memoizedState;return[typeof e=="boolean"?e:yh(e),n]}function la(){var e=$s(br)[0],n=Cn().memoizedState;return[typeof e=="boolean"?e:yh(e),n]}function Qi(){return Sn(l1)}function Th(){var e=_a(),n=qn.identifierPrefix;if(un){var r=bc,c=vc;r=(c&~(1<<32-fo(c)-1)).toString(32)+r,n="_"+n+"R_"+r,r=Qw++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=tZ++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n}function Gm(){return _a().memoizedState=xE.bind(null,Mt)}function xE(e,n){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var c=Eo(r),h=ja(c),m=Fl(r,h,c);m!==null&&(Zl(c,"refresh()",e),At(m,r,c),$r(m,r,c)),e=Am(),n!=null&&m!==null&&console.error("The seed argument is not enabled outside experimental channels."),h.payload={cache:e};return}r=r.return}}function TO(e,n,r){var c=arguments;typeof c[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),c=Eo(e);var h={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};Pa(e)?ma(n,h):(h=zs(e,n,h,c),h!==null&&(Zl(c,"dispatch()",e),At(h,e,c),Oh(h,n,c)))}function Ym(e,n,r){var c=arguments;typeof c[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),c=Eo(e),Js(e,n,r,c)&&Zl(c,"setState()",e)}function Js(e,n,r,c){var h={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))ma(n,h);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null)){var R=Me.H;Me.H=uu;try{var C=n.lastRenderedState,U=m(C,r);if(h.hasEagerState=!0,h.eagerState=U,Dr(U,C))return af(e,n,h,0),qn===null&&Tm(),!1}catch{}finally{Me.H=R}}if(r=zs(e,n,h,c),r!==null)return At(r,e,c),Oh(r,n,c),!0}return!1}function Rh(e,n,r,c){if(Me.T===null&&mp===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),c={lane:2,revertLane:B0(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Pa(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=zs(e,r,c,2),n!==null&&(Zl(2,"setOptimistic()",e),At(n,e,2))}function Pa(e){var n=e.alternate;return e===Mt||n!==null&&n===Mt}function ma(e,n){hy=Fw=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function Oh(e,n,r){if((r&4194048)!==0){var c=n.lanes;c&=e.pendingLanes,r|=c,n.lanes=r,Qt(e,r)}}function Ks(e){if(e!==null&&typeof e!="function"){var n=String(e);X4.has(n)||(X4.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Sf(e,n,r,c){var h=e.memoizedState,m=r(c,h);if(e.mode&lr){Ve(!0);try{m=r(c,h)}finally{Ve(!1)}}m===void 0&&(n=X(n)||"Component",I4.has(n)||(I4.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),h=m==null?h:Gt({},h,m),e.memoizedState=h,e.lanes===0&&(e.updateQueue.baseState=h)}function Im(e,n,r,c,h,m,R){var C=e.stateNode;if(typeof C.shouldComponentUpdate=="function"){if(r=C.shouldComponentUpdate(c,m,R),e.mode&lr){Ve(!0);try{r=C.shouldComponentUpdate(c,m,R)}finally{Ve(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",X(n)||"Component"),r}return n.prototype&&n.prototype.isPureReactComponent?!nf(r,c)||!nf(h,m):!0}function ti(e,n,r,c){var h=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,c),n.state!==h&&(e=K(e)||"Component",k4.has(e)||(k4.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),fC.enqueueReplaceState(n,n.state,null))}function ni(e,n){var r=n;if("ref"in n){r={};for(var c in n)c!=="ref"&&(r[c]=n[c])}if(e=e.defaultProps){r===n&&(r=Gt({},r));for(var h in e)r[h]===void 0&&(r[h]=e[h])}return r}function qm(e){YO(e),console.warn(`%s
130
+
131
+ %s
132
+ `,py?"An error occurred in the <"+py+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
133
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function $m(e){var n=py?"The above error occurred in the <"+py+"> component.":"The above error occurred in one of your React components.",r="React will try to recreate this component tree from scratch using the error boundary you provided, "+((dC||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var c=e.environmentName;e=[`%o
134
+
135
+ %s
136
+
137
+ %s
138
+ `,e,n,r].slice(0),typeof e[0]=="string"?e.splice(0,1,AN+" "+e[0],DN,ET+c+ET,MN):e.splice(0,0,AN,DN,ET+c+ET,MN),e.unshift(console),c=wZ.apply(console.error,e),c()}else console.error(`%o
139
+
140
+ %s
141
+
142
+ %s
143
+ `,e,n,r)}function e0(e){YO(e)}function Ch(e,n){try{py=n.source?K(n.source):null,dC=null;var r=n.value;if(Me.actQueue!==null)Me.thrownErrors.push(r);else{var c=e.onUncaughtError;c(r,{componentStack:n.stack})}}catch(h){setTimeout(function(){throw h})}}function t0(e,n,r){try{py=r.source?K(r.source):null,dC=K(n);var c=e.onCaughtError;c(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Zm(e,n,r){return r=ja(r),r.tag=rC,r.payload={element:null},r.callback=function(){Ne(n.source,Ch,e,n)},r}function Xm(e){return e=ja(e),e.tag=rC,e}function Pm(e,n,r,c){var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var m=c.value;e.payload=function(){return h(m)},e.callback=function(){Ns(r),Ne(c.source,t0,n,r,c)}}var R=r.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(e.callback=function(){Ns(r),Ne(c.source,t0,n,r,c),typeof h!="function"&&(gd===null?gd=new Set([this]):gd.add(this)),J$(this,c),typeof h=="function"||(r.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",K(r)||"Unknown")})}function n0(e,n,r,c,h){if(r.flags|=32768,mi&&Mf(e,h),c!==null&&typeof c=="object"&&typeof c.then=="function"){if(n=r.alternate,n!==null&&pl(n,r,h,!0),un&&(rs=!0),r=zl.current,r!==null){switch(r.tag){case 31:case 13:return Ri===null?_f():r.alternate===null&&ya===_c&&(ya=Ww),r.flags&=-257,r.flags|=65536,r.lanes=h,c===Zw?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([c]):n.add(c),pg(e,c,h)),!1;case 22:return r.flags|=65536,c===Zw?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([c])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([c]):r.add(c)),pg(e,c,h)),!1}throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}return pg(e,c,h),_f(),!1}if(un)return rs=!0,n=zl.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,c!==PO&&rh(Do(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:c}),r))):(c!==PO&&rh(Do(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:c}),r)),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,c=Do(c,r),h=Zm(e.stateNode,c,h),fh(e,h),ya!==dd&&(ya=Ep)),!1;var m=Do(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:c}),r);if(Jb===null?Jb=[m]:Jb.push(m),ya!==dd&&(ya=Ep),n===null)return!0;c=Do(c,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=h&-h,r.lanes|=e,e=Zm(r.stateNode,c,e),fh(r,e),!1;case 1:if(n=r.type,m=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(gd===null||!gd.has(m))))return r.flags|=65536,h&=-h,r.lanes|=h,h=Xm(h),Pm(h,e,r,c),fh(r,h),!1}r=r.return}while(r!==null);return!1}function Fa(e,n,r,c){n.child=e===null?x4(n,null,r,c):bp(n,e.child,r,c)}function _E(e,n,r,c,h){r=r.render;var m=n.ref;if("ref"in c){var R={};for(var C in c)C!=="ref"&&(R[C]=c[C])}else R=c;return zu(n),c=Pv(e,n,r,R,m,h),C=Is(),e!==null&&!to?(mh(e,n,h),Sl(e,n,h)):(un&&C&&Cm(n),n.flags|=1,Fa(e,n,c,h),n.child)}function a0(e,n,r,c,h){if(e===null){var m=r.type;return typeof m=="function"&&!jv(m)&&m.defaultProps===void 0&&r.compare===null?(r=xu(m),n.tag=15,n.type=r,Ef(n,m),o0(e,n,r,c,h)):(e=Us(r.type,null,c,n,n.mode,h),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Wm(e,h)){var R=m.memoizedProps;if(r=r.compare,r=r!==null?r:nf,r(R,c)&&e.ref===n.ref)return Sl(e,n,h)}return n.flags|=1,e=$l(m,c),e.ref=n.ref,e.return=n,n.child=e}function o0(e,n,r,c,h){if(e!==null){var m=e.memoizedProps;if(nf(m,c)&&e.ref===n.ref&&n.type===e.type)if(to=!1,n.pendingProps=c=m,Wm(e,h))(e.flags&131072)!==0&&(to=!0);else return n.lanes=e.lanes,Sl(e,n,h)}return u0(e,n,r,c,h)}function r0(e,n,r,c){var h=c.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:Cb,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|r:r,e!==null){for(c=n.child=e.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~m}else c=0,n.child=null;return l0(e,n,m,r,c)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&sf(n,m!==null?m.cachePool:null),m!==null?Um(n,m):qi(n),jm(n);else return c=n.lanes=536870912,l0(e,n,m!==null?m.baseLanes|r:r,r,c)}else m!==null?(sf(n,m.cachePool),Um(n,m),Jl(n),n.memoizedState=null):(e!==null&&sf(n,null),qi(n),Jl(n));return Fa(e,n,h,r),n.child}function Ws(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:Cb,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function l0(e,n,r,c,h){var m=Ii();return m=m===null?null:{parent:Ka._currentValue,pool:m},n.memoizedState={baseLanes:r,cachePool:m},e!==null&&sf(n,null),qi(n),jm(n),e!==null&&pl(e,n,c,!0),n.childLanes=h,null}function xh(e,n){var r=n.hidden;return r!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
144
+ - <Activity %s>
145
+ + <Activity %s>`,r===!0?"hidden":r===!1?"hidden={false}":"hidden={...}",r?'mode="hidden"':'mode="visible"'),n=Ah({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function i0(e,n,r){return bp(n,e.child,null,r),e=xh(n,n.pendingProps),e.flags|=2,Xa(n),n.memoizedState=null,e}function AE(e,n,r){var c=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(un){if(c.mode==="hidden")return e=xh(n,c),n.lanes=536870912,Ws(null,e);if(vl(n),(e=ta)?(r=An(e,wi),r=r!==null&&r.data===xp?r:null,r!==null&&(c={dehydrated:r,treeContext:bE(),retryLane:536870912,hydrationErrors:null},n.memoizedState=c,c=Hv(r),c.return=n,n.child=c,$o=n,ta=null)):r=null,r===null)throw So(n,e),Br(n);return n.lanes=536870912,null}return xh(n,c)}var m=e.memoizedState;if(m!==null){var R=m.dehydrated;if(vl(n),h)if(n.flags&256)n.flags&=-257,n=i0(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(EE(),(r&536870912)!==0&&xf(n),to||pl(e,n,r,!1),h=(r&e.childLanes)!==0,to||h){if(c=qn,c!==null&&(R=xt(c,r),R!==0&&R!==m.retryLane))throw m.retryLane=R,bo(e,R),At(c,e,R),hC;_f(),n=i0(e,n,r)}else e=m.treeContext,ta=Cr(R.nextSibling),$o=n,un=!0,ld=null,rs=!1,Ml=null,wi=!1,e!==null&&SE(n,e),n=xh(n,c),n.flags|=4096;return n}return m=e.child,c={mode:c.mode,children:c.children},(r&536870912)!==0&&(r&e.lanes)!==0&&xf(n),e=$l(m,c),e.ref=n.ref,n.child=e,e.return=n,e}function _h(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==r)&&(n.flags|=4194816)}}function u0(e,n,r,c,h){if(r.prototype&&typeof r.prototype.render=="function"){var m=X(r)||"Unknown";P4[m]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",m,m),P4[m]=!0)}return n.mode&lr&&iu.recordLegacyContextWarning(n,null),e===null&&(Ef(n,n.type),r.contextTypes&&(m=X(r)||"Unknown",Q4[m]||(Q4[m]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",m)))),zu(n),r=Pv(e,n,r,c,void 0,h),c=Is(),e!==null&&!to?(mh(e,n,h),Sl(e,n,h)):(un&&c&&Cm(n),n.flags|=1,Fa(e,n,r,h),n.child)}function s0(e,n,r,c,h,m){return zu(n),Cc=-1,qb=e!==null&&e.type!==n.type,n.updateQueue=null,r=hh(n,c,r,h),Ta(e,n),c=Is(),e!==null&&!to?(mh(e,n,m),Sl(e,n,m)):(un&&c&&Cm(n),n.flags|=1,Fa(e,n,r,m),n.child)}function ec(e,n,r,c,h){switch(y(n)){case!1:var m=n.stateNode,R=new n.type(n.memoizedProps,m.context).state;m.updater.enqueueSetState(m,R,null);break;case!0:n.flags|=128,n.flags|=65536,m=Error("Simulated error coming from DevTools");var C=h&-h;if(n.lanes|=C,R=qn,R===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");C=Xm(C),Pm(C,R,n,Do(m,n)),fh(n,C)}if(zu(n),n.stateNode===null){if(R=rd,m=r.contextType,"contextType"in r&&m!==null&&(m===void 0||m.$$typeof!==_l)&&!Z4.has(r)&&(Z4.add(r),C=m===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof m!="object"?" However, it is set to a "+typeof m+".":m.$$typeof===Lg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(m).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",X(r)||"Component",C)),typeof m=="object"&&m!==null&&(R=Sn(m)),m=new r(c,R),n.mode&lr){Ve(!0);try{m=new r(c,R)}finally{Ve(!1)}}if(R=n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=fC,n.stateNode=m,m._reactInternals=n,m._reactInternalInstance=H4,typeof r.getDerivedStateFromProps=="function"&&R===null&&(R=X(r)||"Component",V4.has(R)||(V4.add(R),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",R,m.state===null?"null":"undefined",R))),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"){var U=C=R=null;if(typeof m.componentWillMount=="function"&&m.componentWillMount.__suppressDeprecationWarning!==!0?R="componentWillMount":typeof m.UNSAFE_componentWillMount=="function"&&(R="UNSAFE_componentWillMount"),typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps.__suppressDeprecationWarning!==!0?C="componentWillReceiveProps":typeof m.UNSAFE_componentWillReceiveProps=="function"&&(C="UNSAFE_componentWillReceiveProps"),typeof m.componentWillUpdate=="function"&&m.componentWillUpdate.__suppressDeprecationWarning!==!0?U="componentWillUpdate":typeof m.UNSAFE_componentWillUpdate=="function"&&(U="UNSAFE_componentWillUpdate"),R!==null||C!==null||U!==null){m=X(r)||"Component";var G=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";G4.has(m)||(G4.add(m),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
146
+
147
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
148
+
149
+ The above lifecycles should be removed. Learn more about this warning here:
150
+ https://react.dev/link/unsafe-component-lifecycles`,m,G,R!==null?`
151
+ `+R:"",C!==null?`
152
+ `+C:"",U!==null?`
153
+ `+U:""))}}m=n.stateNode,R=X(r)||"Component",m.render||(r.prototype&&typeof r.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",R):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",R)),!m.getInitialState||m.getInitialState.isReactClassApproved||m.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",R),m.getDefaultProps&&!m.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",R),m.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",R),r.childContextTypes&&!$4.has(r)&&($4.add(r),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",R)),r.contextTypes&&!q4.has(r)&&(q4.add(r),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",R)),typeof m.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",R),r.prototype&&r.prototype.isPureReactComponent&&typeof m.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",X(r)||"A pure component"),typeof m.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",R),typeof m.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",R),typeof m.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",R),typeof m.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",R),C=m.props!==c,m.props!==void 0&&C&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",R),m.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",R,R),typeof m.getSnapshotBeforeUpdate!="function"||typeof m.componentDidUpdate=="function"||B4.has(r)||(B4.add(r),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",X(r))),typeof m.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof m.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof r.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",R),(C=m.state)&&(typeof C!="object"||Da(C))&&console.error("%s.state: must be set to an object or null",R),typeof m.getChildContext=="function"&&typeof r.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",R),m=n.stateNode,m.props=c,m.state=n.memoizedState,m.refs={},nn(n),R=r.contextType,m.context=typeof R=="object"&&R!==null?Sn(R):rd,m.state===c&&(R=X(r)||"Component",Y4.has(R)||(Y4.add(R),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",R))),n.mode&lr&&iu.recordLegacyContextWarning(n,m),iu.recordUnsafeLifecycleWarnings(n,m),m.state=n.memoizedState,R=r.getDerivedStateFromProps,typeof R=="function"&&(Sf(n,r,R,c),m.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(R=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),R!==m.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",K(n)||"Component"),fC.enqueueReplaceState(m,m.state,null)),Ql(n,c,m,h),ff(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lu)!==_t&&(n.flags|=134217728),m=!0}else if(e===null){m=n.stateNode;var pe=n.memoizedProps;C=ni(r,pe),m.props=C;var ge=m.context;U=r.contextType,R=rd,typeof U=="object"&&U!==null&&(R=Sn(U)),G=r.getDerivedStateFromProps,U=typeof G=="function"||typeof m.getSnapshotBeforeUpdate=="function",pe=n.pendingProps!==pe,U||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(pe||ge!==R)&&ti(n,m,c,R),fd=!1;var re=n.memoizedState;m.state=re,Ql(n,c,m,h),ff(),ge=n.memoizedState,pe||re!==ge||fd?(typeof G=="function"&&(Sf(n,r,G,c),ge=n.memoizedState),(C=fd||Im(n,r,C,c,re,ge,R))?(U||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lu)!==_t&&(n.flags|=134217728)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lu)!==_t&&(n.flags|=134217728),n.memoizedProps=c,n.memoizedState=ge),m.props=c,m.state=ge,m.context=R,m=C):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lu)!==_t&&(n.flags|=134217728),m=!1)}else{m=n.stateNode,Pl(e,n),R=n.memoizedProps,U=ni(r,R),m.props=U,G=n.pendingProps,re=m.context,ge=r.contextType,C=rd,typeof ge=="object"&&ge!==null&&(C=Sn(ge)),pe=r.getDerivedStateFromProps,(ge=typeof pe=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R!==G||re!==C)&&ti(n,m,c,C),fd=!1,re=n.memoizedState,m.state=re,Ql(n,c,m,h),ff();var xe=n.memoizedState;R!==G||re!==xe||fd||e!==null&&e.dependencies!==null&&lf(e.dependencies)?(typeof pe=="function"&&(Sf(n,r,pe,c),xe=n.memoizedState),(U=fd||Im(n,r,U,c,re,xe,C)||e!==null&&e.dependencies!==null&&lf(e.dependencies))?(ge||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,xe,C),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,xe,C)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||R===e.memoizedProps&&re===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&re===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=xe),m.props=c,m.state=xe,m.context=C,m=U):(typeof m.componentDidUpdate!="function"||R===e.memoizedProps&&re===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&re===e.memoizedState||(n.flags|=1024),m=!1)}if(C=m,_h(e,n),R=(n.flags&128)!==0,C||R){if(C=n.stateNode,Ze(n),R&&typeof r.getDerivedStateFromError!="function")r=null,Mr=-1;else if(r=h4(C),n.mode&lr){Ve(!0);try{h4(C)}finally{Ve(!1)}}n.flags|=1,e!==null&&R?(n.child=bp(n,e.child,null,h),n.child=bp(n,null,r,h)):Fa(e,n,r,h),n.memoizedState=C.state,e=n.child}else e=Sl(e,n,h);return h=n.stateNode,m&&h.props!==c&&(my||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",K(n)||"a component"),my=!0),e}function c0(e,n,r,c){return Du(),n.flags|=256,Fa(e,n,r,c),n.child}function Ef(e,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
154
+ %s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(e=X(n)||"Unknown",J4[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),J4[e]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=X(n)||"Unknown",F4[n]||(console.error("%s: Function components do not support contextType.",n),F4[n]=!0))}function wf(e){return{baseLanes:e,cachePool:Iv()}}function Fm(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=Wr),e}function Qm(e,n,r){var c,h=n.pendingProps;p(n)&&(n.flags|=128);var m=!1,R=(n.flags&128)!==0;if((c=R)||(c=e!==null&&e.memoizedState===null?!1:(Ba.current&Yb)!==0),c&&(m=!0,n.flags&=-129),c=(n.flags&32)!==0,n.flags&=-33,e===null){if(un){if(m?Uo(n):Jl(n),(e=ta)?(r=An(e,wi),r=r!==null&&r.data!==xp?r:null,r!==null&&(c={dehydrated:r,treeContext:bE(),retryLane:536870912,hydrationErrors:null},n.memoizedState=c,c=Hv(r),c.return=n,n.child=c,$o=n,ta=null)):r=null,r===null)throw So(n,e),Br(n);return I0(r)?n.lanes=32:n.lanes=536870912,null}var C=h.children;if(h=h.fallback,m){Jl(n);var U=n.mode;return C=Ah({mode:"hidden",children:C},U),h=js(h,U,r,null),C.return=n,h.return=n,C.sibling=h,n.child=C,h=n.child,h.memoizedState=wf(r),h.childLanes=Fm(e,c,r),n.memoizedState=pC,Ws(null,h)}return Uo(n),f0(n,C)}var G=e.memoizedState;if(G!==null){var pe=G.dehydrated;if(pe!==null){if(R)n.flags&256?(Uo(n),n.flags&=-257,n=Jm(e,n,r)):n.memoizedState!==null?(Jl(n),n.child=e.child,n.flags|=128,n=null):(Jl(n),C=h.fallback,U=n.mode,h=Ah({mode:"visible",children:h.children},U),C=js(C,U,r,null),C.flags|=2,h.return=n,C.return=n,h.sibling=C,n.child=h,bp(n,e.child,null,r),h=n.child,h.memoizedState=wf(r),h.childLanes=Fm(e,c,r),n.memoizedState=pC,n=Ws(null,h));else if(Uo(n),EE(),(r&536870912)!==0&&xf(n),I0(pe)){if(c=pe.nextSibling&&pe.nextSibling.dataset,c){C=c.dgst;var ge=c.msg;U=c.stck;var re=c.cstck}m=ge,c=C,h=U,pe=re,C=m,U=pe,C=Error(C||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),C.stack=h||"",C.digest=c,c=U===void 0?null:U,h={value:C,source:null,stack:c},typeof c=="string"&&XO.set(C,h),rh(h),n=Jm(e,n,r)}else if(to||pl(e,n,r,!1),c=(r&e.childLanes)!==0,to||c){if(c=qn,c!==null&&(h=xt(c,r),h!==0&&h!==G.retryLane))throw G.retryLane=h,bo(e,h),At(c,e,h),hC;Xh(pe)||_f(),n=Jm(e,n,r)}else Xh(pe)?(n.flags|=192,n.child=e.child,n=null):(e=G.treeContext,ta=Cr(pe.nextSibling),$o=n,un=!0,ld=null,rs=!1,Ml=null,wi=!1,e!==null&&SE(n,e),n=f0(n,h.children),n.flags|=4096);return n}}return m?(Jl(n),C=h.fallback,U=n.mode,re=e.child,pe=re.sibling,h=$l(re,{mode:"hidden",children:h.children}),h.subtreeFlags=re.subtreeFlags&65011712,pe!==null?C=$l(pe,C):(C=js(C,U,r,null),C.flags|=2),C.return=n,h.return=n,h.sibling=C,n.child=h,Ws(null,h),h=n.child,C=e.child.memoizedState,C===null?C=wf(r):(U=C.cachePool,U!==null?(re=Ka._currentValue,U=U.parent!==re?{parent:re,pool:re}:U):U=Iv(),C={baseLanes:C.baseLanes|r,cachePool:U}),h.memoizedState=C,h.childLanes=Fm(e,c,r),n.memoizedState=pC,Ws(e.child,h)):(G!==null&&(r&62914560)===r&&(r&e.lanes)!==0&&xf(n),Uo(n),r=e.child,e=r.sibling,r=$l(r,{mode:"visible",children:h.children}),r.return=n,r.sibling=null,e!==null&&(c=n.deletions,c===null?(n.deletions=[e],n.flags|=16):c.push(e)),n.child=r,n.memoizedState=null,r)}function f0(e,n){return n=Ah({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Ah(e,n){return e=O(22,e,null,n),e.lanes=0,e}function Jm(e,n,r){return bp(n,e.child,null,r),e=f0(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function d0(e,n,r){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),_m(e.return,n,r)}function Km(e,n,r,c,h,m){var R=e.memoizedState;R===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:r,tailMode:h,treeForkCount:m}:(R.isBackwards=n,R.rendering=null,R.renderingStartTime=0,R.last=c,R.tail=r,R.tailMode=h,R.treeForkCount=m)}function h0(e,n,r){var c=n.pendingProps,h=c.revealOrder,m=c.tail,R=c.children,C=Ba.current;if((c=(C&Yb)!==0)?(C=C&fy|Yb,n.flags|=128):C&=fy,ee(Ba,C,n),C=h??"null",h!=="forwards"&&h!=="unstable_legacy-backwards"&&h!=="together"&&h!=="independent"&&!K4[C])if(K4[C]=!0,h==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(h==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof h=="string")switch(h.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',h,h.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',h,h.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h);C=m??"null",Kw[C]||(m==null?(h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&(Kw[C]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):m!=="visible"&&m!=="collapsed"&&m!=="hidden"?(Kw[C]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',m)):h!=="forwards"&&h!=="backwards"&&h!=="unstable_legacy-backwards"&&(Kw[C]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',m)));e:if((h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&R!==void 0&&R!==null&&R!==!1)if(Da(R)){for(C=0;C<R.length;C++)if(!Bn(R[C],C))break e}else if(C=V(R),typeof C=="function"){if(C=C.call(R))for(var U=C.next(),G=0;!U.done;U=C.next()){if(!Bn(U.value,G))break e;G++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',h);if(Fa(e,n,R,r),un?(Au(),R=xb):R=0,!c&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&d0(e,r,n);else if(e.tag===19)d0(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(h){case"forwards":for(r=n.child,h=null;r!==null;)e=r.alternate,e!==null&&Ys(e)===null&&(h=r),r=r.sibling;r=h,r===null?(h=n.child,n.child=null):(h=r.sibling,r.sibling=null),Km(n,!1,h,r,m,R);break;case"backwards":case"unstable_legacy-backwards":for(r=null,h=n.child,n.child=null;h!==null;){if(e=h.alternate,e!==null&&Ys(e)===null){n.child=h;break}e=h.sibling,h.sibling=r,r=h,h=e}Km(n,!0,r,null,m,R);break;case"together":Km(n,!1,null,null,void 0,R);break;default:n.memoizedState=null}return n.child}function Sl(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),Mr=-1,pd|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(pl(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(e=n.child,r=$l(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=$l(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function Wm(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&lf(e)))}function DE(e,n,r){switch(n.tag){case 3:J(n,n.stateNode.containerInfo),Gr(n,Ka,e.memoizedState.cache),Du();break;case 27:case 5:F(n);break;case 4:J(n,n.stateNode.containerInfo);break;case 10:Gr(n,n.type,n.memoizedProps.value);break;case 12:(r&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var c=n.stateNode;c.effectDuration=-0,c.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,vl(n),null;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(Uo(n),n.flags|=128,null):(r&n.child.childLanes)!==0?Qm(e,n,r):(Uo(n),e=Sl(e,n,r),e!==null?e.sibling:null);Uo(n);break;case 19:var h=(e.flags&128)!==0;if(c=(r&n.childLanes)!==0,c||(pl(e,n,r,!1),c=(r&n.childLanes)!==0),h){if(c)return h0(e,n,r);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ee(Ba,Ba.current,n),c)break;return null;case 22:return n.lanes=0,r0(e,n,r,n.pendingProps);case 24:Gr(n,Ka,e.memoizedState.cache)}return Sl(e,n,r)}function Dh(e,n,r){if(n._debugNeedsRemount&&e!==null){r=Us(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),r._debugStack=n._debugStack,r._debugTask=n._debugTask;var c=n.return;if(c===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,r.index=n.index,r.sibling=n.sibling,r.return=n.return,r.ref=n.ref,r._debugInfo=n._debugInfo,n===c.child)c.child=r;else{var h=c.child;if(h===null)throw Error("Expected parent to have a child.");for(;h.sibling!==n;)if(h=h.sibling,h===null)throw Error("Expected to find the previous sibling.");h.sibling=r}return n=c.deletions,n===null?(c.deletions=[e],c.flags|=16):n.push(e),r.flags|=2,r}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)to=!0;else{if(!Wm(e,r)&&(n.flags&128)===0)return to=!1,DE(e,n,r);to=(e.flags&131072)!==0}else to=!1,(c=un)&&(Au(),c=(n.flags&1048576)!==0),c&&(c=n.index,Au(),kv(n,xb,c));switch(n.lanes=0,n.tag){case 16:e:if(c=n.pendingProps,e=yr(n.elementType),n.type=e,typeof e=="function")jv(e)?(c=ni(e,c),n.tag=1,n.type=e=xu(e),n=ec(null,n,e,c,r)):(n.tag=0,Ef(n,e),n.type=e=xu(e),n=u0(null,n,e,c,r));else{if(e!=null){if(h=e.$$typeof,h===$f){n.tag=11,n.type=e=Rm(e),n=_E(null,n,e,c,r);break e}else if(h===ap){n.tag=14,n=a0(null,n,e,c,r);break e}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===wo&&(n=" Did you wrap a component in React.lazy() more than once?"),r=X(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return u0(e,n,n.type,n.pendingProps,r);case 1:return c=n.type,h=ni(c,n.pendingProps),ec(e,n,c,h,r);case 3:e:{if(J(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");c=n.pendingProps;var m=n.memoizedState;h=m.element,Pl(e,n),Ql(n,c,null,r);var R=n.memoizedState;if(c=R.cache,Gr(n,Ka,c),c!==m.cache&&Bi(n,[Ka],r,!0),ff(),c=R.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:R.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=c0(e,n,c,r);break e}else if(c!==h){h=Do(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),rh(h),n=c0(e,n,c,r);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ta=Cr(e.firstChild),$o=n,un=!0,ld=null,rs=!1,Ml=null,wi=!0,r=x4(n,null,c,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Du(),c===h){n=Sl(e,n,r);break e}Fa(e,n,c,r)}n=n.child}return n;case 26:return _h(e,n),e===null?(r=X0(n.type,null,n.pendingProps,null))?n.memoizedState=r:un||(r=n.type,e=n.pendingProps,c=te(xr.current),c=$h(c).createElement(r),c[Wn]=n,c[qo]=e,Kn(c,r,e),Fe(c),n.stateNode=c):n.memoizedState=X0(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return F(n),e===null&&un&&(c=te(xr.current),h=B(),c=n.stateNode=nu(n.type,n.pendingProps,c,h,!1),rs||(h=ar(c,n.type,n.pendingProps,h),h!==null&&(Ls(n,0).serverProps=h)),$o=n,wi=!0,h=ta,Ku(n.type)?(HC=h,ta=Cr(c.firstChild)):ta=h),Fa(e,n,n.pendingProps.children,r),_h(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&un&&(m=B(),c=Fd(n.type,m.ancestorInfo),h=ta,(R=!h)||(R=lw(h,n.type,n.pendingProps,wi),R!==null?(n.stateNode=R,rs||(m=ar(R,n.type,n.pendingProps,m),m!==null&&(Ls(n,0).serverProps=m)),$o=n,ta=Cr(R.firstChild),wi=!1,m=!0):m=!1,R=!m),R&&(c&&So(n,h),Br(n))),F(n),h=n.type,m=n.pendingProps,R=e!==null?e.memoizedProps:null,c=m.children,Lf(h,m)?c=null:R!==null&&Lf(h,R)&&(n.flags|=32),n.memoizedState!==null&&(h=Pv(e,n,ph,null,null,r),l1._currentValue=h),_h(e,n),Fa(e,n,c,r),n.child;case 6:return e===null&&un&&(r=n.pendingProps,e=B(),c=e.ancestorInfo.current,r=c!=null?Qd(r,c.tag,e.ancestorInfo.implicitRootScope):!0,e=ta,(c=!e)||(c=iw(e,n.pendingProps,wi),c!==null?(n.stateNode=c,$o=n,ta=null,c=!0):c=!1,c=!c),c&&(r&&So(n,e),Br(n))),null;case 13:return Qm(e,n,r);case 4:return J(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=bp(n,null,c,r):Fa(e,n,c,r),n.child;case 11:return _E(e,n,n.type,n.pendingProps,r);case 7:return Fa(e,n,n.pendingProps,r),n.child;case 8:return Fa(e,n,n.pendingProps.children,r),n.child;case 12:return n.flags|=4,n.flags|=2048,c=n.stateNode,c.effectDuration=-0,c.passiveEffectDuration=-0,Fa(e,n,n.pendingProps.children,r),n.child;case 10:return c=n.type,h=n.pendingProps,m=h.value,"value"in h||W4||(W4=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Gr(n,c,m),Fa(e,n,h.children,r),n.child;case 9:return h=n.type._context,c=n.pendingProps.children,typeof c!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),zu(n),h=Sn(h),c=tC(c,h,void 0),n.flags|=1,Fa(e,n,c,r),n.child;case 14:return a0(e,n,n.type,n.pendingProps,r);case 15:return o0(e,n,n.type,n.pendingProps,r);case 19:return h0(e,n,r);case 31:return AE(e,n,r);case 22:return r0(e,n,r,n.pendingProps);case 24:return zu(n),c=Sn(Ka),e===null?(h=Ii(),h===null&&(h=qn,m=Am(),h.pooledCache=m,ks(m),m!==null&&(h.pooledCacheLanes|=r),h=m),n.memoizedState={parent:c,cache:h},nn(n),Gr(n,Ka,h)):((e.lanes&r)!==0&&(Pl(e,n),Ql(n,null,null,r),ff()),h=e.memoizedState,m=n.memoizedState,h.parent!==c?(h={parent:c,cache:c},n.memoizedState=h,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=h),Gr(n,Ka,c)):(c=m.cache,Gr(n,Ka,c),c!==h.cache&&Bi(n,[Ka],r,!0))),Fa(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ai(e){e.flags|=4}function eg(e,n,r,c,h){if((n=(e.mode&Z$)!==_t)&&(n=!1),n){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(M0())e.flags|=8192;else throw vp=Zw,aC}else e.flags&=-16777217}function ME(e,n){if(n.type!=="stylesheet"||(n.state.loading&xi)!==Dp)e.flags&=-16777217;else if(e.flags|=16777216,!Kt(n))if(M0())e.flags|=8192;else throw vp=Zw,aC}function Tf(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?pt():536870912,e.lanes|=n,Rp|=n)}function Rf(e,n){if(!un)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var c=null;r!==null;)r.alternate!==null&&(c=r),r=r.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function zn(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,c=0;if(n)if((e.mode&Yt)!==_t){for(var h=e.selfBaseDuration,m=e.child;m!==null;)r|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,h+=m.treeBaseDuration,m=m.sibling;e.treeBaseDuration=h}else for(h=e.child;h!==null;)r|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=e,h=h.sibling;else if((e.mode&Yt)!==_t){h=e.actualDuration,m=e.selfBaseDuration;for(var R=e.child;R!==null;)r|=R.lanes|R.childLanes,c|=R.subtreeFlags,c|=R.flags,h+=R.actualDuration,m+=R.treeBaseDuration,R=R.sibling;e.actualDuration=h,e.treeBaseDuration=m}else for(h=e.child;h!==null;)r|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=c,e.childLanes=r,n}function p0(e,n,r){var c=n.pendingProps;switch(xm(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zn(n),null;case 1:return zn(n),null;case 3:return r=n.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),hl(Ka,n),L(n),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hs(n)?(Mu(),ai(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,oh())),zn(n),null;case 26:var h=n.type,m=n.memoizedState;return e===null?(ai(n),m!==null?(zn(n),ME(n,m)):(zn(n),eg(n,h,null,c,r))):m?m!==e.memoizedState?(ai(n),zn(n),ME(n,m)):(zn(n),n.flags&=-16777217):(e=e.memoizedProps,e!==c&&ai(n),zn(n),eg(n,h,e,c,r)),null;case 27:if(ne(n),r=te(xr.current),h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&ai(n);else{if(!c){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return zn(n),null}e=B(),Hs(n)?Vv(n):(e=nu(h,c,r,e,!0),n.stateNode=e,ai(n))}return zn(n),null;case 5:if(ne(n),h=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&ai(n);else{if(!c){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return zn(n),null}var R=B();if(Hs(n))Vv(n);else{switch(m=te(xr.current),Fd(h,R.ancestorInfo),R=R.context,m=$h(m),R){case Ty:m=m.createElementNS(Vt,h);break;case vT:m=m.createElementNS(jt,h);break;default:switch(h){case"svg":m=m.createElementNS(Vt,h);break;case"math":m=m.createElementNS(jt,h);break;case"script":m=m.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof c.is=="string"?m.createElement("select",{is:c.is}):m.createElement("select"),c.multiple?m.multiple=!0:c.size&&(m.size=c.size);break;default:m=typeof c.is=="string"?m.createElement(h,{is:c.is}):m.createElement(h),h.indexOf("-")===-1&&(h!==h.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",h),Object.prototype.toString.call(m)!=="[object HTMLUnknownElement]"||_r.call(TN,h)||(TN[h]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",h)))}}m[Wn]=n,m[qo]=c;e:for(R=n.child;R!==null;){if(R.tag===5||R.tag===6)m.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===n)break e;for(;R.sibling===null;){if(R.return===null||R.return===n)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}n.stateNode=m;e:switch(Kn(m,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ai(n)}}return zn(n),eg(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==c&&ai(n);else{if(typeof c!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=te(xr.current),r=B(),Hs(n)){if(e=n.stateNode,r=n.memoizedProps,h=!rs,c=null,m=$o,m!==null)switch(m.tag){case 3:h&&(h=cw(e,r,c),h!==null&&(Ls(n,0).serverProps=h));break;case 27:case 5:c=m.memoizedProps,h&&(h=cw(e,r,c),h!==null&&(Ls(n,0).serverProps=h))}e[Wn]=n,e=!!(e.nodeValue===r||c!==null&&c.suppressHydrationWarning===!0||G0(e.nodeValue,r)),e||Br(n,!0)}else h=r.ancestorInfo.current,h!=null&&Qd(c,h.tag,r.ancestorInfo.implicitRootScope),e=$h(e).createTextNode(c),e[Wn]=n,n.stateNode=e}return zn(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(c=Hs(n),r!==null){if(e===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Wn]=n,zn(n),(n.mode&Yt)!==_t&&r!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration))}else Mu(),Du(),(n.flags&128)===0&&(r=n.memoizedState=null),n.flags|=4,zn(n),(n.mode&Yt)!==_t&&r!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));e=!1}else r=oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(Xa(n),n):(Xa(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return zn(n),null;case 13:if(c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=c,m=Hs(n),h!==null&&h.dehydrated!==null){if(e===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(m=n.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");m[Wn]=n,zn(n),(n.mode&Yt)!==_t&&h!==null&&(h=n.child,h!==null&&(n.treeBaseDuration-=h.treeBaseDuration))}else Mu(),Du(),(n.flags&128)===0&&(h=n.memoizedState=null),n.flags|=4,zn(n),(n.mode&Yt)!==_t&&h!==null&&(h=n.child,h!==null&&(n.treeBaseDuration-=h.treeBaseDuration));h=!1}else h=oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(Xa(n),n):(Xa(n),null)}return Xa(n),(n.flags&128)!==0?(n.lanes=r,(n.mode&Yt)!==_t&&Bs(n),n):(r=c!==null,e=e!==null&&e.memoizedState!==null,r&&(c=n.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==h&&(c.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),Tf(n,n.updateQueue),zn(n),(n.mode&Yt)!==_t&&r&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return L(n),e===null&&Qu(n.stateNode.containerInfo),zn(n),null;case 10:return hl(n.type,n),zn(n),null;case 19:if(ie(Ba,n),c=n.memoizedState,c===null)return zn(n),null;if(h=(n.flags&128)!==0,m=c.rendering,m===null)if(h)Rf(c,!1);else{if(ya!==_c||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=Ys(e),m!==null){for(n.flags|=128,Rf(c,!1),e=m.updateQueue,n.updateQueue=e,Tf(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)Lv(r,e),r=r.sibling;return ee(Ba,Ba.current&fy|Yb,n),un&&dl(n,c.treeForkCount),n.child}e=e.sibling}c.tail!==null&&Ja()>rT&&(n.flags|=128,h=!0,Rf(c,!1),n.lanes=4194304)}else{if(!h)if(e=Ys(m),e!==null){if(n.flags|=128,h=!0,e=e.updateQueue,n.updateQueue=e,Tf(n,e),Rf(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!un)return zn(n),null}else 2*Ja()-c.renderingStartTime>rT&&r!==536870912&&(n.flags|=128,h=!0,Rf(c,!1),n.lanes=4194304);c.isBackwards?(m.sibling=n.child,n.child=m):(e=c.last,e!==null?e.sibling=m:n.child=m,c.last=m)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Ja(),e.sibling=null,r=Ba.current,r=h?r&fy|Yb:r&fy,ee(Ba,r,n),un&&dl(n,c.treeForkCount),e):(zn(n),null);case 22:case 23:return Xa(n),yl(n),c=n.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(n.flags|=8192):c&&(n.flags|=8192),c?(r&536870912)!==0&&(n.flags&128)===0&&(zn(n),n.subtreeFlags&6&&(n.flags|=8192)):zn(n),r=n.updateQueue,r!==null&&Tf(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==r&&(n.flags|=2048),e!==null&&ie(gp,n),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),hl(Ka,n),zn(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function zE(e,n){switch(xm(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Yt)!==_t&&Bs(n),n):null;case 3:return hl(Ka,n),L(n),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ne(n),null;case 31:if(n.memoizedState!==null){if(Xa(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Du()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Yt)!==_t&&Bs(n),n):null;case 13:if(Xa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Du()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Yt)!==_t&&Bs(n),n):null;case 19:return ie(Ba,n),null;case 4:return L(n),null;case 10:return hl(n.type,n),null;case 22:case 23:return Xa(n),yl(n),e!==null&&ie(gp,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Yt)!==_t&&Bs(n),n):null;case 24:return hl(Ka,n),null;case 25:return null;default:return null}}function m0(e,n){switch(xm(n),n.tag){case 3:hl(Ka,n),L(n);break;case 26:case 27:case 5:ne(n);break;case 4:L(n);break;case 31:n.memoizedState!==null&&Xa(n);break;case 13:Xa(n);break;case 19:ie(Ba,n);break;case 10:hl(n.type,n);break;case 22:case 23:Xa(n),yl(n),e!==null&&ie(gp,n);break;case 24:hl(Ka,n)}}function oi(e){return(e.mode&Yt)!==_t}function NE(e,n){oi(e)?(ha(),Ji(n,e),zo()):Ji(n,e)}function tg(e,n,r){oi(e)?(ha(),qu(r,e,n),zo()):qu(r,e,n)}function Ji(e,n){try{var r=n.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var h=c.next;r=h;do{if((r.tag&e)===e&&(c=void 0,(e&zr)!==Pw&&(Sy=!0),c=Ne(n,K$,r),(e&zr)!==Pw&&(Sy=!1),c!==void 0&&typeof c!="function")){var m=void 0;m=(r.tag&Nl)!==0?"useLayoutEffect":(r.tag&zr)!==0?"useInsertionEffect":"useEffect";var R=void 0;R=c===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof c.then=="function"?`
155
+
156
+ It looks like you wrote `+m+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
157
+
158
+ `+m+`(() => {
159
+ async function fetchData() {
160
+ // You can await here
161
+ const response = await MyAPI.getData(someId);
162
+ // ...
163
+ }
164
+ fetchData();
165
+ }, [someId]); // Or [] if effect doesn't need props or state
166
+
167
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+c,Ne(n,function(C,U){console.error("%s must not return anything besides a function, which is used for clean-up.%s",C,U)},m,R)}r=r.next}while(r!==h)}}catch(C){kt(n,n.return,C)}}function qu(e,n,r){try{var c=n.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var m=h.next;c=m;do{if((c.tag&e)===e){var R=c.inst,C=R.destroy;C!==void 0&&(R.destroy=void 0,(e&zr)!==Pw&&(Sy=!0),h=n,Ne(h,W$,h,r,C),(e&zr)!==Pw&&(Sy=!1))}c=c.next}while(c!==m)}}catch(U){kt(n,n.return,U)}}function Mh(e,n){oi(e)?(ha(),Ji(n,e),zo()):Ji(n,e)}function ng(e,n,r){oi(e)?(ha(),qu(r,e,n),zo()):qu(r,e,n)}function g0(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||my||(r.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",K(e)||"instance"),r.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",K(e)||"instance"));try{Ne(e,df,n,r)}catch(c){kt(e,e.return,c)}}}function zh(e,n,r){return e.getSnapshotBeforeUpdate(n,r)}function UE(e,n){var r=n.memoizedProps,c=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||my||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",K(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",K(e)||"instance"));try{var h=ni(e.type,r),m=Ne(e,zh,n,h,c);r=eN,m!==void 0||r.has(e.type)||(r.add(e.type),Ne(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",K(e))})),n.__reactInternalSnapshotBeforeUpdate=m}catch(R){kt(e,e.return,R)}}function ag(e,n,r){r.props=ni(e.type,e.memoizedProps),r.state=e.memoizedState,oi(e)?(ha(),Ne(e,b4,e,n,r),zo()):Ne(e,b4,e,n,r)}function jE(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}if(typeof n=="function")if(oi(e))try{ha(),e.refCleanup=n(r)}finally{zo()}else e.refCleanup=n(r);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",K(e)),n.current=r}}function tc(e,n){try{Ne(e,jE,e)}catch(r){kt(e,n,r)}}function Zr(e,n){var r=e.ref,c=e.refCleanup;if(r!==null)if(typeof c=="function")try{if(oi(e))try{ha(),Ne(e,c)}finally{zo(e)}else Ne(e,c)}catch(h){kt(e,n,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(oi(e))try{ha(),Ne(e,r,null)}finally{zo(e)}else Ne(e,r,null)}catch(h){kt(e,n,h)}else r.current=null}function y0(e,n,r,c){var h=e.memoizedProps,m=h.id,R=h.onCommit;h=h.onRender,n=n===null?"mount":"update",Yw&&(n="nested-update"),typeof h=="function"&&h(m,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof R=="function"&&R(m,n,c,r)}function LE(e,n,r,c){var h=e.memoizedProps;e=h.id,h=h.onPostCommit,n=n===null?"mount":"update",Yw&&(n="nested-update"),typeof h=="function"&&h(e,n,c,r)}function $u(e){var n=e.type,r=e.memoizedProps,c=e.stateNode;try{Ne(e,FE,c,n,r,e)}catch(h){kt(e,e.return,h)}}function og(e,n,r){try{Ne(e,Rg,e.stateNode,e.type,r,n,e)}catch(c){kt(e,e.return,c)}}function v0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ku(e.type)||e.tag===4}function rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||v0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ku(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Of(e,n,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?(JE(r),(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n)):(JE(r),n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=kr));else if(c!==4&&(c===27&&Ku(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(Of(e,n,r),e=e.sibling;e!==null;)Of(e,n,r),e=e.sibling}function Nh(e,n,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(c!==4&&(c===27&&Ku(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Nh(e,n,r),e=e.sibling;e!==null;)Nh(e,n,r),e=e.sibling}function b0(e){for(var n,r=e.return;r!==null;){if(v0(r)){n=r;break}r=r.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,r=rg(e),Nh(e,r,n);break;case 5:r=n.stateNode,n.flags&32&&(Og(r),n.flags&=-33),n=rg(e),Nh(e,n,r);break;case 3:case 4:n=n.stateNode.containerInfo,r=rg(e),Of(e,r,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function S0(e){var n=e.stateNode,r=e.memoizedProps;try{Ne(e,di,e.type,r,n,e)}catch(c){kt(e,e.return,c)}}function E0(e,n){return n.tag===31?(n=n.memoizedState,e.memoizedState!==null&&n===null):n.tag===13?(e=e.memoizedState,n=n.memoizedState,e!==null&&e.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?e.memoizedState.isDehydrated&&(n.flags&256)===0:!1}function RO(e,n){if(e=e.containerInfo,UC=wT,e=Sm(e),_v(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var c=r.getSelection&&r.getSelection();if(c&&c.rangeCount!==0){r=c.anchorNode;var h=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{r.nodeType,m.nodeType}catch{r=null;break e}var R=0,C=-1,U=-1,G=0,pe=0,ge=e,re=null;t:for(;;){for(var xe;ge!==r||h!==0&&ge.nodeType!==3||(C=R+h),ge!==m||c!==0&&ge.nodeType!==3||(U=R+c),ge.nodeType===3&&(R+=ge.nodeValue.length),(xe=ge.firstChild)!==null;)re=ge,ge=xe;for(;;){if(ge===e)break t;if(re===r&&++G===h&&(C=R),re===m&&++pe===c&&(U=R),(xe=ge.nextSibling)!==null)break;ge=re,re=ge.parentNode}ge=xe}r=C===-1||U===-1?null:{start:C,end:U}}else r=null}r=r||{start:0,end:0}}else r=null;for(jC={focusedElem:e,selectionRange:r},wT=!1,Oo=n;Oo!==null;)if(n=Oo,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Oo=e;else for(;Oo!==null;){switch(e=n=Oo,r=e.alternate,h=e.flags,e.tag){case 0:if((h&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)h=e[r],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:(h&1024)!==0&&r!==null&&UE(e,r);break;case 3:if((h&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)kf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":kf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=n.sibling,e!==null){e.return=n.return,Oo=e;break}Oo=n.return}}function lg(e,n,r){var c=Qn(),h=Yr(),m=mr(),R=Ir(),C=r.flags;switch(r.tag){case 0:case 11:case 15:wr(e,r),C&4&&NE(r,Nl|Oi);break;case 1:if(wr(e,r),C&4)if(e=r.stateNode,n===null)r.type.defaultProps||"ref"in r.memoizedProps||my||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",K(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",K(r)||"instance")),oi(r)?(ha(),Ne(r,nC,r,e),zo()):Ne(r,nC,r,e);else{var U=ni(r.type,n.memoizedProps);n=n.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||my||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",K(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",K(r)||"instance")),oi(r)?(ha(),Ne(r,g4,r,e,U,n,e.__reactInternalSnapshotBeforeUpdate),zo()):Ne(r,g4,r,e,U,n,e.__reactInternalSnapshotBeforeUpdate)}C&64&&g0(r),C&512&&tc(r,r.return);break;case 3:if(n=Xl(),wr(e,r),C&64&&(C=r.updateQueue,C!==null)){if(U=null,r.child!==null)switch(r.child.tag){case 27:case 5:U=r.child.stateNode;break;case 1:U=r.child.stateNode}try{Ne(r,df,C,U)}catch(pe){kt(r,r.return,pe)}}e.effectDuration+=uf(n);break;case 27:n===null&&C&4&&S0(r);case 26:case 5:if(wr(e,r),n===null){if(C&4)$u(r);else if(C&64){e=r.type,n=r.memoizedProps,U=r.stateNode;try{Ne(r,QE,U,e,n,r)}catch(pe){kt(r,r.return,pe)}}}C&512&&tc(r,r.return);break;case 12:if(C&4){C=Xl(),wr(e,r),e=r.stateNode,e.effectDuration+=Mo(C);try{Ne(r,y0,r,n,id,e.effectDuration)}catch(pe){kt(r,r.return,pe)}}else wr(e,r);break;case 31:wr(e,r),C&4&&T0(e,r);break;case 13:wr(e,r),C&4&&R0(e,r),C&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(C=Wi.bind(null,r),uw(e,C))));break;case 22:if(C=r.memoizedState!==null||xc,!C){n=n!==null&&n.memoizedState!==null||no,U=xc;var G=no;xc=C,(no=n)&&!G?(El(e,r,(r.subtreeFlags&8772)!==0),(r.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Em(r,St,Tt)):wr(e,r),xc=U,no=G}break;case 30:break;default:wr(e,r)}(r.mode&Yt)!==_t&&0<=St&&0<=Tt&&((xa||.05<ga)&&fl(r,St,Tt,ga,sa),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Tt-St&&(E0(r.return.alternate,r.return)||Vr(r,St,Tt,"Mount"))),$a(c),pr(h),sa=m,xa=R}function Oa(e){var n=e.alternate;n!==null&&(e.alternate=null,Oa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&W(n)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xn(e,n,r){for(r=r.child;r!==null;)w0(e,n,r),r=r.sibling}function w0(e,n,r){if(ka&&typeof ka.onCommitFiberUnmount=="function")try{ka.onCommitFiberUnmount(pc,r)}catch(G){pi||(pi=!0,console.error("React instrumentation encountered an error: %o",G))}var c=Qn(),h=Yr(),m=mr(),R=Ir();switch(r.tag){case 26:no||Zr(r,n),Xn(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(e=r.stateNode,e.parentNode.removeChild(e));break;case 27:no||Zr(r,n);var C=ao,U=Jr;Ku(r.type)&&(ao=r.stateNode,Jr=!1),Xn(e,n,r),Ne(r,au,r.stateNode),ao=C,Jr=U;break;case 5:no||Zr(r,n);case 6:if(C=ao,U=Jr,ao=null,Xn(e,n,r),ao=C,Jr=U,ao!==null)if(Jr)try{Ne(r,WE,ao,r.stateNode)}catch(G){kt(r,n,G)}else try{Ne(r,KE,ao,r.stateNode)}catch(G){kt(r,n,G)}break;case 18:ao!==null&&(Jr?(e=ao,lc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),cc(e)):lc(ao,r.stateNode));break;case 4:C=ao,U=Jr,ao=r.stateNode.containerInfo,Jr=!0,Xn(e,n,r),ao=C,Jr=U;break;case 0:case 11:case 14:case 15:qu(zr,r,n),no||tg(r,n,Nl),Xn(e,n,r);break;case 1:no||(Zr(r,n),C=r.stateNode,typeof C.componentWillUnmount=="function"&&ag(r,n,C)),Xn(e,n,r);break;case 21:Xn(e,n,r);break;case 22:no=(C=no)||r.memoizedState!==null,Xn(e,n,r),no=C;break;default:Xn(e,n,r)}(r.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(r,St,Tt,ga,sa),$a(c),pr(h),sa=m,xa=R}function T0(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ne(n,Cg,e)}catch(r){kt(n,n.return,r)}}}function R0(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ne(n,$0,e)}catch(r){kt(n,n.return,r)}}function HE(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new tN),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new tN),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Zu(e,n){var r=HE(e);n.forEach(function(c){if(!r.has(c)){if(r.add(c),mi)if(gy!==null&&yy!==null)Mf(yy,gy);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var h=oc.bind(null,e,c);c.then(h,h)}})}function Ho(e,n){var r=n.deletions;if(r!==null)for(var c=0;c<r.length;c++){var h=e,m=n,R=r[c],C=Qn(),U=m;e:for(;U!==null;){switch(U.tag){case 27:if(Ku(U.type)){ao=U.stateNode,Jr=!1;break e}break;case 5:ao=U.stateNode,Jr=!1;break e;case 3:case 4:ao=U.stateNode.containerInfo,Jr=!0;break e}U=U.return}if(ao===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");w0(h,m,R),ao=null,Jr=!1,(R.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Vr(R,St,Tt,"Unmount"),$a(C),h=R,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Uh(n,e),n=n.sibling}function Uh(e,n){var r=Qn(),c=Yr(),h=mr(),m=Ir(),R=e.alternate,C=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ho(n,e),ko(e),C&4&&(qu(zr|Oi,e,e.return),Ji(zr|Oi,e),tg(e,e.return,Nl|Oi));break;case 1:if(Ho(n,e),ko(e),C&512&&(no||R===null||Zr(R,R.return)),C&64&&xc&&(C=e.updateQueue,C!==null&&(R=C.callbacks,R!==null))){var U=C.shared.hiddenCallbacks;C.shared.hiddenCallbacks=U===null?R:U.concat(R)}break;case 26:if(U=su,Ho(n,e),ko(e),C&512&&(no||R===null||Zr(R,R.return)),C&4){var G=R!==null?R.memoizedState:null;if(C=e.memoizedState,R===null)if(C===null)if(e.stateNode===null){e:{C=e.type,R=e.memoizedProps,U=U.ownerDocument||U;t:switch(C){case"title":G=U.getElementsByTagName("title")[0],(!G||G[Wf]||G[Wn]||G.namespaceURI===Vt||G.hasAttribute("itemprop"))&&(G=U.createElement(C),U.head.insertBefore(G,U.querySelector("head > title"))),Kn(G,C,R),G[Wn]=e,Fe(G),C=G;break e;case"link":var pe=Gf("link","href",U).get(C+(R.href||""));if(pe){for(var ge=0;ge<pe.length;ge++)if(G=pe[ge],G.getAttribute("href")===(R.href==null||R.href===""?null:R.href)&&G.getAttribute("rel")===(R.rel==null?null:R.rel)&&G.getAttribute("title")===(R.title==null?null:R.title)&&G.getAttribute("crossorigin")===(R.crossOrigin==null?null:R.crossOrigin)){pe.splice(ge,1);break t}}G=U.createElement(C),Kn(G,C,R),U.head.appendChild(G);break;case"meta":if(pe=Gf("meta","content",U).get(C+(R.content||""))){for(ge=0;ge<pe.length;ge++)if(G=pe[ge],$e(R.content,"content"),G.getAttribute("content")===(R.content==null?null:""+R.content)&&G.getAttribute("name")===(R.name==null?null:R.name)&&G.getAttribute("property")===(R.property==null?null:R.property)&&G.getAttribute("http-equiv")===(R.httpEquiv==null?null:R.httpEquiv)&&G.getAttribute("charset")===(R.charSet==null?null:R.charSet)){pe.splice(ge,1);break t}}G=U.createElement(C),Kn(G,C,R),U.head.appendChild(G);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+C+'". This is a bug in React.')}G[Wn]=e,Fe(G),C=G}e.stateNode=C}else dw(U,e.type,e.stateNode);else e.stateNode=Ag(U,C,e.memoizedProps);else G!==C?(G===null?R.stateNode!==null&&(R=R.stateNode,R.parentNode.removeChild(R)):G.count--,C===null?dw(U,e.type,e.stateNode):Ag(U,C,e.memoizedProps)):C===null&&e.stateNode!==null&&og(e,e.memoizedProps,R.memoizedProps)}break;case 27:Ho(n,e),ko(e),C&512&&(no||R===null||Zr(R,R.return)),R!==null&&C&4&&og(e,e.memoizedProps,R.memoizedProps);break;case 5:if(Ho(n,e),ko(e),C&512&&(no||R===null||Zr(R,R.return)),e.flags&32){U=e.stateNode;try{Ne(e,Og,U)}catch(at){kt(e,e.return,at)}}C&4&&e.stateNode!=null&&(U=e.memoizedProps,og(e,U,R!==null?R.memoizedProps:U)),C&1024&&(mC=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ho(n,e),ko(e),C&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");C=e.memoizedProps,R=R!==null?R.memoizedProps:C,U=e.stateNode;try{Ne(e,OO,U,R,C)}catch(at){kt(e,e.return,at)}}break;case 3:if(U=Xl(),bT=null,G=su,su=xg(n.containerInfo),Ho(n,e),su=G,ko(e),C&4&&R!==null&&R.memoizedState.isDehydrated)try{Ne(e,q0,n.containerInfo)}catch(at){kt(e,e.return,at)}mC&&(mC=!1,kE(e)),n.effectDuration+=uf(U);break;case 4:C=su,su=xg(e.stateNode.containerInfo),Ho(n,e),ko(e),su=C;break;case 12:C=Xl(),Ho(n,e),ko(e),e.stateNode.effectDuration+=Mo(C);break;case 31:Ho(n,e),ko(e),C&4&&(C=e.updateQueue,C!==null&&(e.updateQueue=null,Zu(e,C)));break;case 13:Ho(n,e),ko(e),e.child.flags&8192&&e.memoizedState!==null!=(R!==null&&R.memoizedState!==null)&&(oT=Ja()),C&4&&(C=e.updateQueue,C!==null&&(e.updateQueue=null,Zu(e,C)));break;case 22:U=e.memoizedState!==null;var re=R!==null&&R.memoizedState!==null,xe=xc,Je=no;if(xc=xe||U,no=Je||re,Ho(n,e),no=Je,xc=xe,re&&!U&&!xe&&!Je&&(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Em(e,St,Tt),ko(e),C&8192)e:for(n=e.stateNode,n._visibility=U?n._visibility&~Cb:n._visibility|Cb,!U||R===null||re||xc||no||(Xu(e),(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Vr(e,St,Tt,"Disconnect")),R=null,n=e;;){if(n.tag===5||n.tag===26){if(R===null){re=R=n;try{G=re.stateNode,U?Ne(re,tw,G):Ne(re,ow,re.stateNode,re.memoizedProps)}catch(at){kt(re,re.return,at)}}}else if(n.tag===6){if(R===null){re=n;try{pe=re.stateNode,U?Ne(re,nw,pe):Ne(re,rw,pe,re.memoizedProps)}catch(at){kt(re,re.return,at)}}}else if(n.tag===18){if(R===null){re=n;try{ge=re.stateNode,U?Ne(re,ew,ge):Ne(re,aw,re.stateNode)}catch(at){kt(re,re.return,at)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;R===n&&(R=null),n=n.return}R===n&&(R=null),n.sibling.return=n.return,n=n.sibling}C&4&&(C=e.updateQueue,C!==null&&(R=C.retryQueue,R!==null&&(C.retryQueue=null,Zu(e,R))));break;case 19:Ho(n,e),ko(e),C&4&&(C=e.updateQueue,C!==null&&(e.updateQueue=null,Zu(e,C)));break;case 30:break;case 21:break;default:Ho(n,e),ko(e)}(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&((xa||.05<ga)&&fl(e,St,Tt,ga,sa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Tt-St&&(E0(e.return.alternate,e.return)||Vr(e,St,Tt,"Mount"))),$a(r),pr(c),sa=h,xa=m}function ko(e){var n=e.flags;if(n&2){try{Ne(e,b0,e)}catch(r){kt(e,e.return,r)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function kE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;kE(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function wr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)lg(e,n.alternate,n),n=n.sibling}function ig(e){var n=Qn(),r=Yr(),c=mr(),h=Ir();switch(e.tag){case 0:case 11:case 14:case 15:tg(e,e.return,Nl),Xu(e);break;case 1:Zr(e,e.return);var m=e.stateNode;typeof m.componentWillUnmount=="function"&&ag(e,e.return,m),Xu(e);break;case 27:Ne(e,au,e.stateNode);case 26:case 5:Zr(e,e.return),Xu(e);break;case 22:e.memoizedState===null&&Xu(e);break;case 30:Xu(e);break;default:Xu(e)}(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(e,St,Tt,ga,sa),$a(n),pr(r),sa=c,xa=h}function Xu(e){for(e=e.child;e!==null;)ig(e),e=e.sibling}function O0(e,n,r,c){var h=Qn(),m=Yr(),R=mr(),C=Ir(),U=r.flags;switch(r.tag){case 0:case 11:case 15:El(e,r,c),NE(r,Nl);break;case 1:if(El(e,r,c),n=r.stateNode,typeof n.componentDidMount=="function"&&Ne(r,nC,r,n),n=r.updateQueue,n!==null){e=r.stateNode;try{Ne(r,Zv,n,e)}catch(G){kt(r,r.return,G)}}c&&U&64&&g0(r),tc(r,r.return);break;case 27:S0(r);case 26:case 5:El(e,r,c),c&&n===null&&U&4&&$u(r),tc(r,r.return);break;case 12:if(c&&U&4){U=Xl(),El(e,r,c),c=r.stateNode,c.effectDuration+=Mo(U);try{Ne(r,y0,r,n,id,c.effectDuration)}catch(G){kt(r,r.return,G)}}else El(e,r,c);break;case 31:El(e,r,c),c&&U&4&&T0(e,r);break;case 13:El(e,r,c),c&&U&4&&R0(e,r);break;case 22:r.memoizedState===null&&El(e,r,c),tc(r,r.return);break;case 30:break;default:El(e,r,c)}(r.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(r,St,Tt,ga,sa),$a(h),pr(m),sa=R,xa=C}function El(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)O0(e,n.alternate,n,r),n=n.sibling}function jh(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&ks(e),r!=null&&ih(r))}function Lh(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(ks(n),e!=null&&ih(e))}function Tr(e,n,r,c,h){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var m=n.sibling;C0(e,n,r,c,m!==null?m.actualStartTime:h),n=m}}function C0(e,n,r,c,h){var m=Qn(),R=Yr(),C=mr(),U=Ir(),G=ad,pe=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&Yt)!==_t&&0<n.actualStartTime&&(n.flags&1)!==0&&wm(n,n.actualStartTime,h,po,r),Tr(e,n,r,c,h),pe&2048&&Mh(n,Nr|Oi);break;case 1:(n.mode&Yt)!==_t&&0<n.actualStartTime&&((n.flags&128)!==0?Dv(n,n.actualStartTime,h,[]):(n.flags&1)!==0&&wm(n,n.actualStartTime,h,po,r)),Tr(e,n,r,c,h);break;case 3:var ge=Xl(),re=po;po=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,Tr(e,n,r,c,h),po=re,pe&2048&&(r=null,n.alternate!==null&&(r=n.alternate.memoizedState.cache),c=n.memoizedState.cache,c!==r&&(ks(c),r!=null&&ih(r))),e.passiveEffectDuration+=uf(ge);break;case 12:if(pe&2048){pe=Xl(),Tr(e,n,r,c,h),e=n.stateNode,e.passiveEffectDuration+=Mo(pe);try{Ne(n,LE,n,n.alternate,id,e.passiveEffectDuration)}catch(xe){kt(n,n.return,xe)}}else Tr(e,n,r,c,h);break;case 31:pe=po,ge=n.alternate!==null?n.alternate.memoizedState:null,re=n.memoizedState,ge!==null&&re===null?(re=n.deletions,re!==null&&0<re.length&&re[0].tag===18?(po=!1,ge=ge.hydrationErrors,ge!==null&&Dv(n,n.actualStartTime,h,ge)):po=!0):po=!1,Tr(e,n,r,c,h),po=pe;break;case 13:pe=po,ge=n.alternate!==null?n.alternate.memoizedState:null,re=n.memoizedState,ge===null||ge.dehydrated===null||re!==null&&re.dehydrated!==null?po=!1:(re=n.deletions,re!==null&&0<re.length&&re[0].tag===18?(po=!1,ge=ge.hydrationErrors,ge!==null&&Dv(n,n.actualStartTime,h,ge)):po=!0),Tr(e,n,r,c,h),po=pe;break;case 23:break;case 22:re=n.stateNode,ge=n.alternate,n.memoizedState!==null?re._visibility&yc?Tr(e,n,r,c,h):nc(e,n,r,c,h):re._visibility&yc?Tr(e,n,r,c,h):(re._visibility|=yc,Pu(e,n,r,c,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),h),(n.mode&Yt)===_t||po||(e=n.actualStartTime,0<=e&&.05<h-e&&Em(n,e,h),0<=St&&0<=Tt&&.05<Tt-St&&Em(n,St,Tt))),pe&2048&&jh(ge,n);break;case 24:Tr(e,n,r,c,h),pe&2048&&Lh(n.alternate,n);break;default:Tr(e,n,r,c,h)}(n.mode&Yt)!==_t&&((e=!po&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(r=n.actualStartTime,0<=r&&.05<h-r&&Vr(n,r,h,"Mount")),0<=St&&0<=Tt&&((xa||.05<ga)&&fl(n,St,Tt,ga,sa),e&&.05<Tt-St&&Vr(n,St,Tt,"Mount"))),$a(m),pr(R),sa=C,xa=U,ad=G}function Pu(e,n,r,c,h,m){for(h=h&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var R=n.sibling;Hh(e,n,r,c,h,R!==null?R.actualStartTime:m),n=R}}function Hh(e,n,r,c,h,m){var R=Qn(),C=Yr(),U=mr(),G=Ir(),pe=ad;h&&(n.mode&Yt)!==_t&&0<n.actualStartTime&&(n.flags&1)!==0&&wm(n,n.actualStartTime,m,po,r);var ge=n.flags;switch(n.tag){case 0:case 11:case 15:Pu(e,n,r,c,h,m),Mh(n,Nr);break;case 23:break;case 22:var re=n.stateNode;n.memoizedState!==null?re._visibility&yc?Pu(e,n,r,c,h,m):nc(e,n,r,c,m):(re._visibility|=yc,Pu(e,n,r,c,h,m)),h&&ge&2048&&jh(n.alternate,n);break;case 24:Pu(e,n,r,c,h,m),h&&ge&2048&&Lh(n.alternate,n);break;default:Pu(e,n,r,c,h,m)}(n.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(n,St,Tt,ga,sa),$a(R),pr(C),sa=U,xa=G,ad=pe}function nc(e,n,r,c,h){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var m=n.child;m!==null;){n=m.sibling;var R=e,C=r,U=c,G=n!==null?n.actualStartTime:h,pe=ad;(m.mode&Yt)!==_t&&0<m.actualStartTime&&(m.flags&1)!==0&&wm(m,m.actualStartTime,G,po,C);var ge=m.flags;switch(m.tag){case 22:nc(R,m,C,U,G),ge&2048&&jh(m.alternate,m);break;case 24:nc(R,m,C,U,G),ge&2048&&Lh(m.alternate,m);break;default:nc(R,m,C,U,G)}ad=pe,m=n}}function ac(e,n,r){if(e.subtreeFlags&Zb)for(e=e.child;e!==null;)ug(e,n,r),e=e.sibling}function ug(e,n,r){switch(e.tag){case 26:ac(e,n,r),e.flags&Zb&&e.memoizedState!==null&&Q0(r,su,e.memoizedState,e.memoizedProps);break;case 5:ac(e,n,r);break;case 3:case 4:var c=su;su=xg(e.stateNode.containerInfo),ac(e,n,r),su=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=Zb,Zb=16777216,ac(e,n,r),Zb=c):ac(e,n,r));break;default:ac(e,n,r)}}function x0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Rr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var c=n[r],h=Qn();Oo=c,ri(c,e),(c.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Vr(c,St,Tt,"Unmount"),$a(h)}x0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sg(e),e=e.sibling}function sg(e){var n=Qn(),r=Yr(),c=mr(),h=Ir();switch(e.tag){case 0:case 11:case 15:Rr(e),e.flags&2048&&ng(e,e.return,Nr|Oi);break;case 3:var m=Xl();Rr(e),e.stateNode.passiveEffectDuration+=uf(m);break;case 12:m=Xl(),Rr(e),e.stateNode.passiveEffectDuration+=Mo(m);break;case 22:m=e.stateNode,e.memoizedState!==null&&m._visibility&yc&&(e.return===null||e.return.tag!==13)?(m._visibility&=~yc,cg(e),(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Vr(e,St,Tt,"Disconnect")):Rr(e);break;default:Rr(e)}(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(e,St,Tt,ga,sa),$a(n),pr(r),xa=h,sa=c}function cg(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var c=n[r],h=Qn();Oo=c,ri(c,e),(c.mode&Yt)!==_t&&0<=St&&0<=Tt&&.05<Tt-St&&Vr(c,St,Tt,"Unmount"),$a(h)}x0(e)}for(e=e.child;e!==null;)_0(e),e=e.sibling}function _0(e){var n=Qn(),r=Yr(),c=mr(),h=Ir();switch(e.tag){case 0:case 11:case 15:ng(e,e.return,Nr),cg(e);break;case 22:var m=e.stateNode;m._visibility&yc&&(m._visibility&=~yc,cg(e));break;default:cg(e)}(e.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(e,St,Tt,ga,sa),$a(n),pr(r),xa=h,sa=c}function ri(e,n){for(;Oo!==null;){var r=Oo,c=r,h=n,m=Qn(),R=Yr(),C=mr(),U=Ir();switch(c.tag){case 0:case 11:case 15:ng(c,h,Nr);break;case 23:case 22:c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool,h!=null&&ks(h));break;case 24:ih(c.memoizedState.cache)}if((c.mode&Yt)!==_t&&0<=St&&0<=Tt&&(xa||.05<ga)&&fl(c,St,Tt,ga,sa),$a(m),pr(R),xa=U,sa=C,c=r.child,c!==null)c.return=r,Oo=c;else e:for(r=e;Oo!==null;){if(c=Oo,m=c.sibling,R=c.return,Oa(c),c===r){Oo=null;break e}if(m!==null){m.return=R,Oo=m;break e}Oo=R}}}function A0(){oZ.forEach(function(e){return e()})}function D0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Me.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Eo(e){if((gn&mo)!==Co&&qt!==0)return qt&-qt;var n=Me.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),B0()):yn()}function Cf(){if(Wr===0)if((qt&536870912)===0||un){var e=lp;lp<<=1,(lp&3932160)===0&&(lp=262144),Wr=e}else Wr=536870912;return e=zl.current,e!==null&&(e.flags|=32),Wr}function At(e,n,r){if(Sy&&console.error("useInsertionEffect must not schedule updates."),CC&&(uT=!0),(e===qn&&(Ln===wp||Ln===Tp)||e.cancelPendingCommit!==null)&&(li(e,0),Xr(e,qt,Wr,!1)),yt(e,r),(gn&mo)!==Co&&e===qn){if(hi)switch(n.tag){case 0:case 11:case 15:e=Xt&&K(Xt)||"Unknown",gN.has(e)||(gN.add(e),n=K(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,e,e));break;case 1:mN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),mN=!0)}}else mi&&Ot(e,n,r),Gh(n),e===qn&&((gn&mo)===Co&&(md|=r),ya===dd&&Xr(e,qt,Wr,!1)),tr(e)}function VE(e,n,r){if((gn&(mo|Ul))!==Co)throw Error("Should not already be working.");if(qt!==0&&Xt!==null){var c=Xt,h=Ja();switch(u4){case Fb:case wp:var m=zb;ea&&((c=c._debugTask)?c.run(console.timeStamp.bind(console,"Suspended",m,h,yi,void 0,"primary-light")):console.timeStamp("Suspended",m,h,yi,void 0,"primary-light"));break;case Tp:m=zb,ea&&((c=c._debugTask)?c.run(console.timeStamp.bind(console,"Action",m,h,yi,void 0,"primary-light")):console.timeStamp("Action",m,h,yi,void 0,"primary-light"));break;default:ea&&(c=h-zb,3>c||console.timeStamp("Blocked",zb,h,yi,void 0,5>c?"primary-light":10>c?"primary":100>c?"primary-dark":"error"))}}m=(r=!r&&(n&127)===0&&(n&e.expiredLanes)===0||we(e,n))?Ki(e,n):Af(e,n,!0);var R=r;do{if(m===_c){vy&&!r&&Xr(e,n,0,!1),n=Ln,zb=Wa(),u4=n;break}else{if(c=Ja(),h=e.current.alternate,R&&!GE(h)){cl(n),h=Ro,m=c,!ea||m<=h||(Ma?Ma.run(console.timeStamp.bind(console,"Teared Render",h,m,hn,cn,"error")):console.timeStamp("Teared Render",h,m,hn,cn,"error")),Fu(n,c),m=Af(e,n,!1),R=!1;continue}if(m===Ep){if(R=n,e.errorRecoveryDisabledLanes&R)var C=0;else C=e.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){cl(n),Mv(Ro,c,n,Ma),Fu(n,c),n=C;e:{c=e,m=R,R=Jb;var U=c.current.memoizedState.isDehydrated;if(U&&(li(c,C).flags|=256),C=Af(c,C,!1),C!==Ep){if(vC&&!U){c.errorRecoveryDisabledLanes|=m,md|=m,m=dd;break e}c=Ur,Ur=R,c!==null&&(Ur===null?Ur=c:Ur.push.apply(Ur,c))}m=C}if(R=!1,m!==Ep)continue;c=Ja()}}if(m===Pb){cl(n),Mv(Ro,c,n,Ma),Fu(n,c),li(e,0),Xr(e,n,0,!0);break}e:{switch(r=e,m){case _c:case Pb:throw Error("Root did not complete. This is a bug in React.");case dd:if((n&4194048)!==n)break;case eT:cl(n),mE(Ro,c,n,Ma),Fu(n,c),h=n,(h&127)!==0?Vw=c:(h&4194048)!==0&&(Bw=c),Xr(r,n,Wr,!hd);break e;case Ep:Ur=null;break;case Ww:case nN:break;default:throw Error("Unknown root exit status.")}if(Me.actQueue!==null)Gn(r,h,n,Ur,Kb,aT,Wr,md,Rp,m,null,null,Ro,c);else{if((n&62914560)===n&&(R=oT+rN-Ja(),10<R)){if(Xr(r,n,Wr,!hd),Ce(r,0,!0)!==0)break e;cu=n,r.timeoutHandle=RN(BE.bind(null,r,h,Ur,Kb,aT,n,Wr,md,Rp,hd,m,"Throttled",Ro,c),R);break e}BE(r,h,Ur,Kb,aT,n,Wr,md,Rp,hd,m,null,Ro,c)}}}break}while(!0);tr(e)}function BE(e,n,r,c,h,m,R,C,U,G,pe,ge,re,xe){e.timeoutHandle=Ap;var Je=n.subtreeFlags,at=null;if((Je&8192||(Je&16785408)===16785408)&&(at={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kr},ug(n,m,at),Je=(m&62914560)===m?oT-Ja():(m&4194048)===m?oN-Ja():0,Je=Dg(at,Je),Je!==null)){cu=m,e.cancelPendingCommit=Je(Gn.bind(null,e,n,m,r,c,h,R,C,U,pe,at,at.waitingForViewTransition?"Waiting for the previous Animation":0<at.count?0<at.imgCount?"Suspended on CSS and Images":"Suspended on CSS":at.imgCount===1?"Suspended on an Image":0<at.imgCount?"Suspended on Images":null,re,xe)),Xr(e,m,R,!G);return}Gn(e,n,m,r,c,h,R,C,U,pe,at,ge,re,xe)}function GE(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var c=0;c<r.length;c++){var h=r[c],m=h.getSnapshot;h=h.value;try{if(!Dr(m(),h))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Xr(e,n,r,c){n&=~bC,n&=~md,e.suspendedLanes|=n,e.pingedLanes&=~n,c&&(e.warmLanes|=n),c=e.expirationTimes;for(var h=n;0<h;){var m=31-fo(h),R=1<<m;c[m]=-1,h&=~R}r!==0&&Rt(e,r,n)}function Or(){return(gn&(mo|Ul))===Co?(ui(0),!1):!0}function fg(){if(Xt!==null){if(Ln===Kr)var e=Xt.return;else e=Xt,rf(),Uu(e),sy=null,Gb=0,e=Xt;for(;e!==null;)m0(e.alternate,e),e=e.return;Xt=null}}function Fu(e,n){(e&127)!==0&&(dp=n),(e&4194048)!==0&&(wc=n),(e&62914560)!==0&&(l4=n),(e&2080374784)!==0&&(i4=n)}function li(e,n){ea&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",cn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",cn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",cn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",cn,"primary-light"));var r=Ro;if(Ro=Wa(),qt!==0&&0<r){if(cl(qt),ya===Ww||ya===dd)mE(r,Ro,n,Ma);else{var c=Ro,h=Ma;if(ea&&!(c<=r)){var m=(n&738197653)===n?"tertiary-dark":"primary-dark",R=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";h?h.run(console.timeStamp.bind(console,R,r,c,hn,cn,m)):console.timeStamp(R,r,c,hn,cn,m)}}Fu(qt,Ro)}if(r=Ma,Ma=null,(n&127)!==0){Ma=Ab,h=0<=ls&&ls<dp?dp:ls,c=0<=hp&&hp<dp?dp:hp,m=0<=c?c:0<=h?h:Ro,0<=Vw?(cl(2),gE(Vw,m,n,r)):Gw&127,r=h;var C=c,U=Db,G=0<ly,pe=ud===_b,ge=ud===kw;if(h=Ro,c=Ab,m=JO,R=KO,ea){if(hn="Blocking",0<r?r>h&&(r=h):r=h,0<C?C>r&&(C=r):C=r,U!==null&&r>C){var re=G?"secondary-light":"warning";c?c.run(console.timeStamp.bind(console,G?"Consecutive":"Event: "+U,C,r,hn,cn,re)):console.timeStamp(G?"Consecutive":"Event: "+U,C,r,hn,cn,re)}h>r&&(C=pe?"error":(n&738197653)===n?"tertiary-light":"primary-light",pe=ge?"Promise Resolved":pe?"Cascading Update":5<h-r?"Update Blocked":"Update",ge=[],R!=null&&ge.push(["Component name",R]),m!=null&&ge.push(["Method name",m]),r={start:r,end:h,detail:{devtools:{properties:ge,track:hn,trackGroup:cn,color:C}}},c?c.run(performance.measure.bind(performance,pe,r)):performance.measure(pe,r))}ls=-1.1,ud=0,KO=JO=null,Vw=-1.1,ly=hp,hp=-1.1,dp=Wa()}if((n&4194048)!==0&&(Ma=Mb,h=0<=Tc&&Tc<wc?wc:Tc,r=0<=Ti&&Ti<wc?wc:Ti,c=0<=sd&&sd<wc?wc:sd,m=0<=c?c:0<=r?r:Ro,0<=Bw?(cl(256),gE(Bw,m,n,Ma)):Gw&4194048,ge=c,C=pp,U=0<cd,G=WO===kw,m=Ro,c=Mb,R=o4,pe=r4,ea&&(hn="Transition",0<r?r>m&&(r=m):r=m,0<h?h>r&&(h=r):h=r,0<ge?ge>h&&(ge=h):ge=h,h>ge&&C!==null&&(re=U?"secondary-light":"warning",c?c.run(console.timeStamp.bind(console,U?"Consecutive":"Event: "+C,ge,h,hn,cn,re)):console.timeStamp(U?"Consecutive":"Event: "+C,ge,h,hn,cn,re)),r>h&&(c?c.run(console.timeStamp.bind(console,"Action",h,r,hn,cn,"primary-dark")):console.timeStamp("Action",h,r,hn,cn,"primary-dark")),m>r&&(h=G?"Promise Resolved":5<m-r?"Update Blocked":"Update",ge=[],pe!=null&&ge.push(["Component name",pe]),R!=null&&ge.push(["Method name",R]),r={start:r,end:m,detail:{devtools:{properties:ge,track:hn,trackGroup:cn,color:"primary-light"}}},c?c.run(performance.measure.bind(performance,h,r)):performance.measure(h,r))),Ti=Tc=-1.1,WO=0,Bw=-1.1,cd=sd,sd=-1.1,wc=Wa()),(n&62914560)!==0&&(Gw&62914560)!==0&&(cl(4194304),zv(l4,Ro)),(n&2080374784)!==0&&(Gw&2080374784)!==0&&(cl(268435456),zv(i4,Ro)),r=e.timeoutHandle,r!==Ap&&(e.timeoutHandle=Ap,yZ(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),cu=0,fg(),qn=e,Xt=r=$l(e.current,null),qt=n,Ln=Kr,jl=null,hd=!1,vy=we(e,n),vC=!1,ya=_c,Rp=Wr=bC=md=pd=0,Ur=Jb=null,aT=!1,(n&8)!==0&&(n|=n&32),c=e.entangledLanes,c!==0)for(e=e.entanglements,c&=n;0<c;)h=31-fo(c),m=1<<h,n|=e[h],c&=~m;return us=n,Tm(),e=Kz(),1e3<e-Jz&&(Me.recentlyCreatedOwnerStacks=0,Jz=e),iu.discardPendingWarnings(),r}function wl(e,n){Mt=null,Me.H=$b,Me.getCurrentStack=null,hi=!1,rr=null,n===uy||n===$w?(n=Gs(),Ln=Fb):n===aC?(n=Gs(),Ln=aN):Ln=n===hC?yC:n!==null&&typeof n=="object"&&typeof n.then=="function"?Qb:tT,jl=n;var r=Xt;r===null?(ya=Pb,Ch(e,Do(n,e.current))):r.mode&Yt&&Dm(r)}function M0(){var e=zl.current;return e===null?!0:(qt&4194048)===qt?Ri===null:(qt&62914560)===qt||(qt&536870912)!==0?e===Ri:!1}function dg(){var e=Me.H;return Me.H=$b,e===null?$b:e}function z0(){var e=Me.A;return Me.A=aZ,e}function xf(e){Ma===null&&(Ma=e._debugTask==null?null:e._debugTask)}function _f(){ya=dd,hd||(qt&4194048)!==qt&&zl.current!==null||(vy=!0),(pd&134217727)===0&&(md&134217727)===0||qn===null||Xr(qn,qt,Wr,!1)}function Af(e,n,r){var c=gn;gn|=mo;var h=dg(),m=z0();if(qn!==e||qt!==n){if(mi){var R=e.memoizedUpdaters;0<R.size&&(Mf(e,qt),R.clear()),Wt(e,n)}Kb=null,li(e,n)}n=!1,R=ya;e:do try{if(Ln!==Kr&&Xt!==null){var C=Xt,U=jl;switch(Ln){case yC:fg(),R=eT;break e;case Fb:case wp:case Tp:case Qb:zl.current===null&&(n=!0);var G=Ln;if(Ln=Kr,jl=null,Df(e,C,U,G),r&&vy){R=_c;break e}break;default:G=Ln,Ln=Kr,jl=null,Df(e,C,U,G)}}N0(),R=ya;break}catch(pe){wl(e,pe)}while(!0);return n&&e.shellSuspendCounter++,rf(),gn=c,Me.H=h,Me.A=m,Xt===null&&(qn=null,qt=0,Tm()),R}function N0(){for(;Xt!==null;)hg(Xt)}function Ki(e,n){var r=gn;gn|=mo;var c=dg(),h=z0();if(qn!==e||qt!==n){if(mi){var m=e.memoizedUpdaters;0<m.size&&(Mf(e,qt),m.clear()),Wt(e,n)}Kb=null,rT=Ja()+lN,li(e,n)}else vy=we(e,n);e:do try{if(Ln!==Kr&&Xt!==null)t:switch(n=Xt,m=jl,Ln){case tT:Ln=Kr,jl=null,Df(e,n,m,tT);break;case wp:case Tp:if(qv(m)){Ln=Kr,jl=null,U0(n);break}n=function(){Ln!==wp&&Ln!==Tp||qn!==e||(Ln=nT),tr(e)},m.then(n,n);break e;case Fb:Ln=nT;break e;case aN:Ln=gC;break e;case nT:qv(m)?(Ln=Kr,jl=null,U0(n)):(Ln=Kr,jl=null,Df(e,n,m,nT));break;case gC:var R=null;switch(Xt.tag){case 26:R=Xt.memoizedState;case 5:case 27:var C=Xt;if(R?Kt(R):C.stateNode.complete){Ln=Kr,jl=null;var U=C.sibling;if(U!==null)Xt=U;else{var G=C.return;G!==null?(Xt=G,kh(G)):Xt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Ln=Kr,jl=null,Df(e,n,m,gC);break;case Qb:Ln=Kr,jl=null,Df(e,n,m,Qb);break;case yC:fg(),ya=eT;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Me.actQueue!==null?N0():Aa();break}catch(pe){wl(e,pe)}while(!0);return rf(),Me.H=c,Me.A=h,gn=r,Xt!==null?_c:(qn=null,qt=0,Tm(),ya)}function Aa(){for(;Xt!==null&&!Gg();)hg(Xt)}function hg(e){var n=e.alternate;(e.mode&Yt)!==_t?(Gi(e),n=Ne(e,Dh,n,e,us),Dm(e)):n=Ne(e,Dh,n,e,us),e.memoizedProps=e.pendingProps,n===null?kh(e):Xt=n}function U0(e){var n=Ne(e,Qa,e);e.memoizedProps=e.pendingProps,n===null?kh(e):Xt=n}function Qa(e){var n=e.alternate,r=(e.mode&Yt)!==_t;switch(r&&Gi(e),e.tag){case 15:case 0:n=s0(n,e,e.pendingProps,e.type,void 0,qt);break;case 11:n=s0(n,e,e.pendingProps,e.type.render,e.ref,qt);break;case 5:Uu(e);default:m0(n,e),e=Xt=Lv(e,us),n=Dh(n,e,us)}return r&&Dm(e),n}function Df(e,n,r,c){rf(),Uu(n),sy=null,Gb=0;var h=n.return;try{if(n0(e,h,n,r,qt)){ya=Pb,Ch(e,Do(r,e.current)),Xt=null;return}}catch(m){if(h!==null)throw Xt=h,m;ya=Pb,Ch(e,Do(r,e.current)),Xt=null;return}n.flags&32768?(un||c===tT?e=!0:vy||(qt&536870912)!==0?e=!1:(hd=e=!0,(c===wp||c===Tp||c===Fb||c===Qb)&&(c=zl.current,c!==null&&c.tag===13&&(c.flags|=16384))),j0(n,e)):kh(n)}function kh(e){var n=e;do{if((n.flags&32768)!==0){j0(n,hd);return}var r=n.alternate;if(e=n.return,Gi(n),r=Ne(n,p0,r,n,us),(n.mode&Yt)!==_t&&uh(n),r!==null){Xt=r;return}if(n=n.sibling,n!==null){Xt=n;return}Xt=n=e}while(n!==null);ya===_c&&(ya=nN)}function j0(e,n){do{var r=zE(e.alternate,e);if(r!==null){r.flags&=32767,Xt=r;return}if((e.mode&Yt)!==_t){uh(e),r=e.actualDuration;for(var c=e.child;c!==null;)r+=c.actualDuration,c=c.sibling;e.actualDuration=r}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){Xt=e;return}Xt=e=r}while(e!==null);ya=eT,Xt=null}function Gn(e,n,r,c,h,m,R,C,U,G,pe,ge,re,xe){e.cancelPendingCommit=null;do Vh();while(oo!==yd);if(iu.flushLegacyContextWarning(),iu.flushPendingUnsafeLifecycleWarnings(),(gn&(mo|Ul))!==Co)throw Error("Should not already be working.");if(cl(r),G===Ep?Mv(re,xe,r,Ma):c!==null?SO(re,xe,r,c,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,Ma):bO(re,xe,r,Ma),n!==null){if(r===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(m=n.lanes|n.childLanes,m|=ZO,ln(e,r,m,R,C,U),e===qn&&(Xt=qn=null,qt=0),by=n,vd=e,cu=r,wC=m,RC=h,dN=c,TC=xe,hN=ge,fu=lT,pN=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zf(hc,function(){return o1=window.event,fu===lT&&(fu=EC),Bh(),null})):(e.callbackNode=null,e.callbackPriority=0),Ec=null,id=Wa(),ge!==null&&EO(xe,id,ge,Ma),c=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||c){c=Me.T,Me.T=null,h=wn.p,wn.p=Va,R=gn,gn|=Ul;try{RO(e,n,r)}finally{gn=R,wn.p=h,Me.T=c}}oo=uN,Vo(),ii(),L0()}}function Vo(){if(oo===uN){oo=yd;var e=vd,n=by,r=cu,c=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||c){c=Me.T,Me.T=null;var h=wn.p;wn.p=Va;var m=gn;gn|=Ul;try{gy=r,yy=e,Vs(),Uh(n,e),yy=gy=null,r=jC;var R=Sm(e.containerInfo),C=r.focusedElem,U=r.selectionRange;if(R!==C&&C&&C.ownerDocument&&fE(C.ownerDocument.documentElement,C)){if(U!==null&&_v(C)){var G=U.start,pe=U.end;if(pe===void 0&&(pe=G),"selectionStart"in C)C.selectionStart=G,C.selectionEnd=Math.min(pe,C.value.length);else{var ge=C.ownerDocument||document,re=ge&&ge.defaultView||window;if(re.getSelection){var xe=re.getSelection(),Je=C.textContent.length,at=Math.min(U.start,Je),Pn=U.end===void 0?at:Math.min(U.end,Je);!xe.extend&&at>Pn&&(R=Pn,Pn=at,at=R);var fn=cE(C,at),ae=cE(C,Pn);if(fn&&ae&&(xe.rangeCount!==1||xe.anchorNode!==fn.node||xe.anchorOffset!==fn.offset||xe.focusNode!==ae.node||xe.focusOffset!==ae.offset)){var ue=ge.createRange();ue.setStart(fn.node,fn.offset),xe.removeAllRanges(),at>Pn?(xe.addRange(ue),xe.extend(ae.node,ae.offset)):(ue.setEnd(ae.node,ae.offset),xe.addRange(ue))}}}}for(ge=[],xe=C;xe=xe.parentNode;)xe.nodeType===1&&ge.push({element:xe,left:xe.scrollLeft,top:xe.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<ge.length;C++){var he=ge[C];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}wT=!!UC,jC=UC=null}finally{gn=m,wn.p=h,Me.T=c}}e.current=n,oo=sN}}function ii(){if(oo===sN){oo=yd;var e=pN;if(e!==null){id=Wa();var n=Sc,r=id;!ea||r<=n||console.timeStamp(e,n,r,hn,cn,"secondary-light")}e=vd,n=by,r=cu;var c=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||c){c=Me.T,Me.T=null;var h=wn.p;wn.p=Va;var m=gn;gn|=Ul;try{gy=r,yy=e,Vs(),lg(e,n.alternate,n),yy=gy=null}finally{gn=m,wn.p=h,Me.T=c}}e=TC,n=hN,Sc=Wa(),e=n===null?e:id,n=Sc,r=fu===SC,c=Ma,Ec!==null?yE(e,n,Ec,!1,c):!ea||n<=e||(c?c.run(console.timeStamp.bind(console,r?"Commit Interrupted View Transition":"Commit",e,n,hn,cn,r?"error":"secondary-dark")):console.timeStamp(r?"Commit Interrupted View Transition":"Commit",e,n,hn,cn,r?"error":"secondary-dark")),oo=cN}}function L0(){if(oo===fN||oo===cN){if(oo===fN){var e=Sc;Sc=Wa();var n=Sc,r=fu===SC;!ea||n<=e||console.timeStamp(r?"Interrupted View Transition":"Starting Animation",e,n,hn,cn,r?" error":"secondary-light"),fu!==SC&&(fu=iN)}oo=yd,Yg(),e=vd;var c=by;n=cu,r=dN;var h=c.actualDuration!==0||(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;h?oo=iT:(oo=yd,by=vd=null,H0(e,e.pendingLanes),Op=0,e1=null);var m=e.pendingLanes;if(m===0&&(gd=null),h||gg(e),m=en(n),c=c.stateNode,ka&&typeof ka.onCommitFiberRoot=="function")try{var R=(c.current.flags&128)===128;switch(m){case Va:var C=hb;break;case ho:C=Ig;break;case To:C=hc;break;case as:C=qg;break;default:C=hc}ka.onCommitFiberRoot(pc,c,C,R)}catch(ge){pi||(pi=!0,console.error("React instrumentation encountered an error: %o",ge))}if(mi&&e.memoizedUpdaters.clear(),A0(),r!==null){R=Me.T,C=wn.p,wn.p=Va,Me.T=null;try{var U=e.onRecoverableError;for(c=0;c<r.length;c++){var G=r[c],pe=YE(G.stack);Ne(G.source,U,G.value,pe)}}finally{Me.T=R,wn.p=C}}(cu&3)!==0&&Vh(),tr(e),m=e.pendingLanes,(n&261930)!==0&&(m&42)!==0?(Iw=!0,e===OC?Wb++:(Wb=0,OC=e)):Wb=0,h||Fu(n,Sc),ui(0)}}function YE(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function H0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ih(n)))}function Vh(){return Vo(),ii(),L0(),Bh()}function Bh(){if(oo!==iT)return!1;var e=vd,n=wC;wC=0;var r=en(cu),c=To>r?To:r;r=Me.T;var h=wn.p;try{wn.p=c,Me.T=null;var m=RC;RC=null,c=vd;var R=cu;if(oo=yd,by=vd=null,cu=0,(gn&(mo|Ul))!==Co)throw Error("Cannot flush passive effects while already rendering.");cl(R),CC=!0,uT=!1;var C=0;if(Ec=null,C=Ja(),fu===iN)zv(Sc,C,Q$);else{var U=Sc,G=C,pe=fu===EC;!ea||G<=U||(Ma?Ma.run(console.timeStamp.bind(console,pe?"Waiting for Paint":"Waiting",U,G,hn,cn,"secondary-light")):console.timeStamp(pe?"Waiting for Paint":"Waiting",U,G,hn,cn,"secondary-light"))}U=gn,gn|=Ul;var ge=c.current;Vs(),sg(ge);var re=c.current;ge=TC,Vs(),C0(c,re,R,m,ge),gg(c),gn=U;var xe=Ja();if(re=C,ge=Ma,Ec!==null?yE(re,xe,Ec,!0,ge):!ea||xe<=re||(ge?ge.run(console.timeStamp.bind(console,"Remaining Effects",re,xe,hn,cn,"secondary-dark")):console.timeStamp("Remaining Effects",re,xe,hn,cn,"secondary-dark")),Fu(R,xe),ui(0,!1),uT?c===e1?Op++:(Op=0,e1=c):Op=0,uT=CC=!1,ka&&typeof ka.onPostCommitFiberRoot=="function")try{ka.onPostCommitFiberRoot(pc,c)}catch(at){pi||(pi=!0,console.error("React instrumentation encountered an error: %o",at))}var Je=c.current.stateNode;return Je.effectDuration=0,Je.passiveEffectDuration=0,!0}finally{wn.p=h,Me.T=r,H0(e,n)}}function Bo(e,n,r){n=Do(r,n),TE(n),n=Zm(e.stateNode,n,2),e=Fl(e,n,2),e!==null&&(yt(e,2),tr(e))}function kt(e,n,r){if(Sy=!1,e.tag===3)Bo(e,e,r);else{for(;n!==null;){if(n.tag===3){Bo(n,e,r);return}if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(gd===null||!gd.has(c))){e=Do(r,e),TE(e),r=Xm(2),c=Fl(n,r,2),c!==null&&(Pm(r,c,n,e),yt(c,2),tr(c));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
168
+
169
+ Error message:
170
+
171
+ %s`,r)}}function pg(e,n,r){var c=e.pingCache;if(c===null){c=e.pingCache=new rZ;var h=new Set;c.set(n,h)}else h=c.get(n),h===void 0&&(h=new Set,c.set(n,h));h.has(r)||(vC=!0,h.add(r),c=er.bind(null,e,n,r),mi&&Mf(e,r),n.then(c,c))}function er(e,n,r){var c=e.pingCache;c!==null&&c.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,(r&127)!==0?0>ls&&(dp=ls=Wa(),Ab=Hw("Promise Resolved"),ud=kw):(r&4194048)!==0&&0>Ti&&(wc=Ti=Wa(),Mb=Hw("Promise Resolved"),WO=kw),D0()&&Me.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
172
+
173
+ When testing, code that resolves suspended data should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* finish loading suspended data */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),qn===e&&(qt&r)===r&&(ya===dd||ya===Ww&&(qt&62914560)===qt&&Ja()-oT<rN?(gn&mo)===Co&&li(e,0):bC|=r,Rp===qt&&(Rp=0)),tr(e)}function k0(e,n){n===0&&(n=pt()),e=bo(e,n),e!==null&&(yt(e,n),tr(e))}function Wi(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),k0(e,r)}function oc(e,n){var r=0;switch(e.tag){case 31:case 13:var c=e.stateNode,h=e.memoizedState;h!==null&&(r=h.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(n),k0(e,r)}function Tl(e,n,r){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var c=e,h=n,m=h.type===Io;m=r||m,h.tag!==22?h.flags&67108864?m&&Ne(h,mg,c,h):Tl(c,h,m):h.memoizedState===null&&(m&&h.flags&8192?Ne(h,mg,c,h):h.subtreeFlags&67108864&&Ne(h,Tl,c,h,m)),n=n.sibling}}function mg(e,n){Ve(!0);try{ig(n),_0(n),O0(e,n.alternate,n,!1),Hh(e,n,0,null,!1,0)}finally{Ve(!1)}}function gg(e){var n=!0;e.current.mode&(lr|lu)||(n=!1),Tl(e,e.current,n)}function Pr(e){if((gn&mo)===Co){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=K(e)||"ReactComponent",sT!==null){if(sT.has(n))return;sT.add(n)}else sT=new Set([n]);Ne(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Mf(e,n){mi&&e.memoizedUpdaters.forEach(function(r){Ot(e,r,n)})}function zf(e,n){var r=Me.actQueue;return r!==null?(r.push(n),uZ):db(e,n)}function Gh(e){D0()&&Me.actQueue===null&&Ne(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
181
+
182
+ When testing, code that causes React state updates should be wrapped into act(...):
183
+
184
+ act(() => {
185
+ /* fire events that update state */
186
+ });
187
+ /* assert on the output */
188
+
189
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,K(e))})}function tr(e){e!==Ey&&e.next===null&&(Ey===null?cT=Ey=e:Ey=Ey.next=e),fT=!0,Me.actQueue!==null?_C||(_C=!0,qE()):xC||(xC=!0,qE())}function ui(e,n){if(!AC&&fT){AC=!0;do for(var r=!1,c=cT;c!==null;){if(e!==0){var h=c.pendingLanes;if(h===0)var m=0;else{var R=c.suspendedLanes,C=c.pingedLanes;m=(1<<31-fo(42|e)+1)-1,m&=h&~(R&~C),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(r=!0,Yh(c,m))}else m=qt,m=Ce(c,c===qn?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==Ap),(m&3)===0||we(c,m)||(r=!0,Yh(c,m));c=c.next}while(r);AC=!1}}function IE(){o1=window.event,yg()}function yg(){fT=_C=xC=!1;var e=0;bd!==0&&Y0()&&(e=bd);for(var n=Ja(),r=null,c=cT;c!==null;){var h=c.next,m=Nf(c,n);m===0?(c.next=null,r===null?cT=h:r.next=h,h===null&&(Ey=r)):(r=c,(e!==0||(m&3)!==0)&&(fT=!0)),c=h}oo!==yd&&oo!==iT||ui(e),bd!==0&&(bd=0)}function Nf(e,n){for(var r=e.suspendedLanes,c=e.pingedLanes,h=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var R=31-fo(m),C=1<<R,U=h[R];U===-1?((C&r)===0||(C&c)!==0)&&(h[R]=tt(C,n)):U<=n&&(e.expiredLanes|=C),m&=~C}if(n=qn,r=qt,r=Ce(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ap),c=e.callbackNode,r===0||e===n&&(Ln===wp||Ln===Tp)||e.cancelPendingCommit!==null)return c!==null&&vg(c),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||we(e,r)){if(n=r&-r,n!==e.callbackPriority||Me.actQueue!==null&&c!==DC)vg(c);else return n;switch(en(r)){case Va:case ho:r=Ig;break;case To:r=hc;break;case as:r=qg;break;default:r=hc}return c=V0.bind(null,e),Me.actQueue!==null?(Me.actQueue.push(c),r=DC):r=db(r,c),e.callbackPriority=n,e.callbackNode=r,n}return c!==null&&vg(c),e.callbackPriority=2,e.callbackNode=null,2}function V0(e,n){if(Iw=Yw=!1,o1=window.event,oo!==yd&&oo!==iT)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(fu===lT&&(fu=EC),Vh()&&e.callbackNode!==r)return null;var c=qt;return c=Ce(e,e===qn?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ap),c===0?null:(VE(e,c,n),Nf(e,Ja()),e.callbackNode!=null&&e.callbackNode===r?V0.bind(null,e):null)}function Yh(e,n){if(Vh())return null;Yw=Iw,Iw=!1,VE(e,n,!0)}function vg(e){e!==DC&&e!==null&&Bg(e)}function qE(){Me.actQueue!==null&&Me.actQueue.push(function(){return yg(),null}),vZ(function(){(gn&(mo|Ul))!==Co?db(hb,IE):yg()})}function B0(){if(bd===0){var e=mp;e===0&&(e=Jf,Jf<<=1,(Jf&261888)===0&&(Jf=256)),bd=e}return bd}function vn(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:($e(e,"action"),Jd(""+e))}function Nn(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function an(e,n,r,c,h){if(n==="submit"&&r&&r.stateNode===h){var m=vn((h[qo]||null).action),R=c.submitter;R&&(n=(n=R[qo]||null)?vn(n.formAction):R.getAttribute("formAction"),n!==null&&(m=n,R=null));var C=new Dw("action","action",null,c,h);e.push({event:C,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(bd!==0){var U=R?Nn(h,R):new FormData(h),G={pending:!0,data:U,method:h.method,action:m};Object.freeze(G),Fi(r,G,null,U)}}else typeof m=="function"&&(C.preventDefault(),U=R?Nn(h,R):new FormData(h),G={pending:!0,data:U,method:h.method,action:m},Object.freeze(G),Fi(r,G,m,U))},currentTarget:h}]})}}function Zt(e,n,r){e.currentTarget=r;try{n(e)}catch(c){YO(c)}e.currentTarget=null}function _n(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var c=e[r];e:{var h=void 0,m=c.event;if(c=c.listeners,n)for(var R=c.length-1;0<=R;R--){var C=c[R],U=C.instance,G=C.currentTarget;if(C=C.listener,U!==h&&m.isPropagationStopped())break e;U!==null?Ne(U,Zt,m,C,G):Zt(m,C,G),h=U}else for(R=0;R<c.length;R++){if(C=c[R],U=C.instance,G=C.currentTarget,C=C.listener,U!==h&&m.isPropagationStopped())break e;U!==null?Ne(U,Zt,m,C,G):Zt(m,C,G),h=U}}}}function Ct(e,n){MC.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var r=n[mc];r===void 0&&(r=n[mc]=new Set);var c=e+"__bubble";r.has(c)||(bg(n,e,2,!1),r.add(c))}function si(e,n,r){MC.has(e)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;n&&(c|=4),bg(r,e,c,n)}function Qu(e){if(!e[dT]){e[dT]=!0,Ow.forEach(function(r){r!=="selectionchange"&&(MC.has(r)||si(r,!1,e),si(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[dT]||(n[dT]=!0,si("selectionchange",!1,n))}}function bg(e,n,r,c){switch(Ng(n)){case Va:var h=tb;break;case ho:h=co;break;default:h=nb}r=h.bind(null,n,r,e),h=void 0,!zO||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),c?h!==void 0?e.addEventListener(n,r,{capture:!0,passive:h}):e.addEventListener(n,r,!0):h!==void 0?e.addEventListener(n,r,{passive:h}):e.addEventListener(n,r,!1)}function Rl(e,n,r,c,h){var m=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var R=c.tag;if(R===3||R===4){var C=c.stateNode.containerInfo;if(C===h)break;if(R===4)for(R=c.return;R!==null;){var U=R.tag;if((U===3||U===4)&&R.stateNode.containerInfo===h)return;R=R.return}for(;C!==null;){if(R=Se(C),R===null)return;if(U=R.tag,U===5||U===6||U===26||U===27){c=m=R;continue e}C=C.parentNode}}c=c.return}gm(function(){var G=m,pe=ul(r),ge=[];e:{var re=Qz.get(e);if(re!==void 0){var xe=Dw,Je=e;switch(e){case"keypress":if(Kd(r)===0)break e;case"keydown":case"keyup":xe=T$;break;case"focusin":Je="focus",xe=LO;break;case"focusout":Je="blur",xe=LO;break;case"beforeblur":case"afterblur":xe=LO;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=Lz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=f$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=C$;break;case Zz:case Xz:case Pz:xe=p$;break;case Fz:xe=_$;break;case"scroll":case"scrollend":xe=s$;break;case"wheel":xe=D$;break;case"copy":case"cut":case"paste":xe=g$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=kz;break;case"toggle":case"beforetoggle":xe=z$}var at=(n&4)!==0,Pn=!at&&(e==="scroll"||e==="scrollend"),fn=at?re!==null?re+"Capture":null:re;at=[];for(var ae=G,ue;ae!==null;){var he=ae;if(ue=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||ue===null||fn===null||(he=Il(ae,fn),he!=null&&at.push(Yn(ae,he,ue))),Pn)break;ae=ae.return}0<at.length&&(re=new xe(re,Je,null,r,pe),ge.push({event:re,listeners:at}))}}if((n&7)===0){e:{if(re=e==="mouseover"||e==="pointerover",xe=e==="mouseout"||e==="pointerout",re&&r!==vb&&(Je=r.relatedTarget||r.fromElement)&&(Se(Je)||Je[ru]))break e;if((xe||re)&&(re=pe.window===pe?pe:(re=pe.ownerDocument)?re.defaultView||re.parentWindow:window,xe?(Je=r.relatedTarget||r.toElement,xe=G,Je=Je?Se(Je):null,Je!==null&&(Pn=M(Je),at=Je.tag,Je!==Pn||at!==5&&at!==27&&at!==6)&&(Je=null)):(xe=null,Je=G),xe!==Je)){if(at=Lz,he="onMouseLeave",fn="onMouseEnter",ae="mouse",(e==="pointerout"||e==="pointerover")&&(at=kz,he="onPointerLeave",fn="onPointerEnter",ae="pointer"),Pn=xe==null?re:Ie(xe),ue=Je==null?re:Ie(Je),re=new at(he,ae+"leave",xe,r,pe),re.target=Pn,re.relatedTarget=ue,he=null,Se(pe)===G&&(at=new at(fn,ae+"enter",Je,r,pe),at.target=ue,at.relatedTarget=Pn,he=at),Pn=he,xe&&Je)t:{for(at=rc,fn=xe,ae=Je,ue=0,he=fn;he;he=at(he))ue++;he=0;for(var He=ae;He;He=at(He))he++;for(;0<ue-he;)fn=at(fn),ue--;for(;0<he-ue;)ae=at(ae),he--;for(;ue--;){if(fn===ae||ae!==null&&fn===ae.alternate){at=fn;break t}fn=at(fn),ae=at(ae)}at=null}else at=null;xe!==null&&Sg(ge,re,xe,at,!1),Je!==null&&Pn!==null&&Sg(ge,Pn,Je,at,!0)}}e:{if(re=G?Ie(G):window,xe=re.nodeName&&re.nodeName.toLowerCase(),xe==="select"||xe==="input"&&re.type==="file")var nt=Cu;else if(Ov(re))if(qz)nt=nh;else{nt=Cv;var zt=vO}else xe=re.nodeName,!xe||xe.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?G&&Yl(G.elementType)&&(nt=Cu):nt=xv;if(nt&&(nt=nt(e,G))){eh(ge,nt,r,pe);break e}zt&&zt(e,re,G),e==="focusout"&&G&&re.type==="number"&&G.memoizedProps.value!=null&&gv(re,"number",re.value)}switch(zt=G?Ie(G):window,e){case"focusin":(Ov(zt)||zt.contentEditable==="true")&&(Kg=zt,kO=G,Ob=null);break;case"focusout":Ob=kO=Kg=null;break;case"mousedown":VO=!0;break;case"contextmenu":case"mouseup":case"dragend":VO=!1,dE(ge,r,pe);break;case"selectionchange":if(L$)break;case"keydown":case"keyup":dE(ge,r,pe)}var bt;if(HO)e:{switch(e){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Jg?ef(e,r)&&(gt="onCompositionEnd"):e==="keydown"&&r.keyCode===Vz&&(gt="onCompositionStart");gt&&(Bz&&r.locale!=="ko"&&(Jg||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Jg&&(bt=As()):(nd=pe,NO="value"in nd?nd.value:nd.textContent,Jg=!0)),zt=Ol(G,gt),0<zt.length&&(gt=new Hz(gt,e,null,r,pe),ge.push({event:gt,listeners:zt}),bt?gt.data=bt:(bt=Vi(r),bt!==null&&(gt.data=bt)))),(bt=U$?Rv(e,r):ym(e,r))&&(gt=Ol(G,"onBeforeInput"),0<gt.length&&(zt=new v$("onBeforeInput","beforeinput",null,r,pe),ge.push({event:zt,listeners:gt}),zt.data=bt)),an(ge,e,G,r,pe)}_n(ge,n)})}function Yn(e,n,r){return{instance:e,listener:n,currentTarget:r}}function Ol(e,n){for(var r=n+"Capture",c=[];e!==null;){var h=e,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=Il(e,r),h!=null&&c.unshift(Yn(e,h,m)),h=Il(e,n),h!=null&&c.push(Yn(e,h,m))),e.tag===3)return c;e=e.return}return[]}function rc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sg(e,n,r,c,h){for(var m=n._reactName,R=[];r!==null&&r!==c;){var C=r,U=C.alternate,G=C.stateNode;if(C=C.tag,U!==null&&U===c)break;C!==5&&C!==26&&C!==27||G===null||(U=G,h?(G=Il(r,m),G!=null&&R.unshift(Yn(r,G,U))):h||(G=Il(r,m),G!=null&&R.push(Yn(r,G,U)))),r=r.return}R.length!==0&&e.push({event:n,listeners:R})}function Go(e,n){iE(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||Uz||(Uz=!0,e==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var r={registrationNameDependencies:gi,possibleRegistrationNames:ed};Yl(e)||typeof n.is=="string"||yO(e,n,r),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function ia(e,n,r,c){n!==r&&(r=Cl(r),Cl(n)!==r&&(c[e]=n))}function Ih(e,n,r){n.forEach(function(c){r[eu(c)]=c==="style"?Ju(e):e.getAttribute(c)})}function ua(e,n){n===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)}function Eg(e,n){return e=e.namespaceURI===jt||e.namespaceURI===Vt?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function Cl(e){return Xe(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",lt(e)),ht(e)),(typeof e=="string"?e:""+e).replace(sZ,`
190
+ `).replace(cZ,"")}function G0(e,n){return n=Cl(n),Cl(e)===n}function En(e,n,r,c,h,m){switch(r){case"children":typeof c=="string"?(Qd(c,n,!1),n==="body"||n==="textarea"&&c===""||_s(e,c)):(typeof c=="number"||typeof c=="bigint")&&(Qd(""+c,n,!1),n!=="body"&&_s(e,""+c));break;case"className":Ea(e,"class",c);break;case"tabIndex":Ea(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ea(e,r,c);break;case"style":Ev(e,c,m);break;case"data":if(n!=="object"){Ea(e,"data",c);break}case"src":case"href":if(c===""&&(n!=="a"||r!=="href")){console.error(r==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',r,r),e.removeAttribute(r);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}$e(c,r),c=Jd(""+c),e.setAttribute(r,c);break;case"action":case"formAction":if(c!=null&&(n==="form"?r==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof c=="function"&&(h.encType==null&&h.method==null||mT||(mT=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),h.target==null||pT||(pT=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?r==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||h.type==="submit"||h.type==="image"||hT?n!=="button"||h.type==null||h.type==="submit"||hT?typeof c=="function"&&(h.name==null||bN||(bN=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),h.formEncType==null&&h.formMethod==null||mT||(mT=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),h.formTarget==null||pT||(pT=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(hT=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(hT=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(r==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof c=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(r==="formAction"?(n!=="input"&&En(e,n,"name",h.name,h,null),En(e,n,"formEncType",h.formEncType,h,null),En(e,n,"formMethod",h.formMethod,h,null),En(e,n,"formTarget",h.formTarget,h,null)):(En(e,n,"encType",h.encType,h,null),En(e,n,"method",h.method,h,null),En(e,n,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}$e(c,r),c=Jd(""+c),e.setAttribute(r,c);break;case"onClick":c!=null&&(typeof c!="function"&&ua(r,c),e.onclick=kr);break;case"onScroll":c!=null&&(typeof c!="function"&&ua(r,c),Ct("scroll",e));break;case"onScrollEnd":c!=null&&(typeof c!="function"&&ua(r,c),Ct("scrollend",e));break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=c.__html,r!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}$e(c,r),r=Jd(""+c),e.setAttributeNS(Cp,"xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?($e(c,r),e.setAttribute(r,""+c)):e.removeAttribute(r);break;case"inert":c!==""||gT[r]||(gT[r]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",r));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":c===!0?e.setAttribute(r,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?($e(c,r),e.setAttribute(r,c)):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?($e(c,r),e.setAttribute(r,c)):e.removeAttribute(r);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(r):($e(c,r),e.setAttribute(r,c));break;case"popover":Ct("beforetoggle",e),Ct("toggle",e),Rn(e,"popover",c);break;case"xlinkActuate":da(e,Cp,"xlink:actuate",c);break;case"xlinkArcrole":da(e,Cp,"xlink:arcrole",c);break;case"xlinkRole":da(e,Cp,"xlink:role",c);break;case"xlinkShow":da(e,Cp,"xlink:show",c);break;case"xlinkTitle":da(e,Cp,"xlink:title",c);break;case"xlinkType":da(e,Cp,"xlink:type",c);break;case"xmlBase":da(e,zC,"xml:base",c);break;case"xmlLang":da(e,zC,"xml:lang",c);break;case"xmlSpace":da(e,zC,"xml:space",c);break;case"is":m!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Rn(e,"is",c);break;case"innerText":case"textContent":break;case"popoverTarget":SN||c==null||typeof c!="object"||(SN=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",c));default:!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"?(r=rE(r),Rn(e,r,c)):gi.hasOwnProperty(r)&&c!=null&&typeof c!="function"&&ua(r,c)}}function Uf(e,n,r,c,h,m){switch(r){case"style":Ev(e,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=c.__html,r!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"children":typeof c=="string"?_s(e,c):(typeof c=="number"||typeof c=="bigint")&&_s(e,""+c);break;case"onScroll":c!=null&&(typeof c!="function"&&ua(r,c),Ct("scroll",e));break;case"onScrollEnd":c!=null&&(typeof c!="function"&&ua(r,c),Ct("scrollend",e));break;case"onClick":c!=null&&(typeof c!="function"&&ua(r,c),e.onclick=kr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(gi.hasOwnProperty(r))c!=null&&typeof c!="function"&&ua(r,c);else e:{if(r[0]==="o"&&r[1]==="n"&&(h=r.endsWith("Capture"),n=r.slice(2,h?r.length-7:void 0),m=e[qo]||null,m=m!=null?m[r]:null,typeof m=="function"&&e.removeEventListener(n,m,h),typeof c=="function")){typeof m!="function"&&m!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,c,h);break e}r in e?e[r]=c:c===!0?e.setAttribute(r,""):Rn(e,r,c)}}}function Kn(e,n,r){switch(Go(n,r),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",e),Ct("load",e);var c=!1,h=!1,m;for(m in r)if(r.hasOwnProperty(m)){var R=r[m];if(R!=null)switch(m){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:En(e,n,m,R,r,null)}}h&&En(e,n,"srcSet",r.srcSet,r,null),c&&En(e,n,"src",r.src,r,null);return;case"input":tn("input",r),Ct("invalid",e);var C=m=R=h=null,U=null,G=null;for(c in r)if(r.hasOwnProperty(c)){var pe=r[c];if(pe!=null)switch(c){case"name":h=pe;break;case"type":R=pe;break;case"checked":U=pe;break;case"defaultChecked":G=pe;break;case"value":m=pe;break;case"defaultValue":C=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:En(e,n,c,pe,r,null)}}vo(e,r),um(e,m,C,U,G,R,h,!1);return;case"select":tn("select",r),Ct("invalid",e),c=R=m=null;for(h in r)if(r.hasOwnProperty(h)&&(C=r[h],C!=null))switch(h){case"value":m=C;break;case"defaultValue":R=C;break;case"multiple":c=C;default:En(e,n,h,C,r,null)}sm(e,r),n=m,r=R,e.multiple=!!c,n!=null?Bl(e,!!c,n,!1):r!=null&&Bl(e,!!c,r,!0);return;case"textarea":tn("textarea",r),Ct("invalid",e),m=h=c=null;for(R in r)if(r.hasOwnProperty(R)&&(C=r[R],C!=null))switch(R){case"value":c=C;break;case"defaultValue":h=C;break;case"children":m=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:En(e,n,R,C,r,null)}Rs(e,r),Pc(e,c,h,m);return;case"option":oE(e,r);for(U in r)r.hasOwnProperty(U)&&(c=r[U],c!=null)&&(U==="selected"?e.selected=c&&typeof c!="function"&&typeof c!="symbol":En(e,n,U,c,r,null));return;case"dialog":Ct("beforetoggle",e),Ct("toggle",e),Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":Ct("load",e);break;case"video":case"audio":for(c=0;c<t1.length;c++)Ct(t1[c],e);break;case"image":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"embed":case"source":case"link":Ct("error",e),Ct("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in r)if(r.hasOwnProperty(G)&&(c=r[G],c!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:En(e,n,G,c,r,null)}return;default:if(Yl(n)){for(pe in r)r.hasOwnProperty(pe)&&(c=r[pe],c!==void 0&&Uf(e,n,pe,c,r,void 0));return}}for(C in r)r.hasOwnProperty(C)&&(c=r[C],c!=null&&En(e,n,C,c,r,null))}function Ha(e,n,r,c){switch(Go(n,c),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,R=null,C=null,U=null,G=null,pe=null;for(xe in r){var ge=r[xe];if(r.hasOwnProperty(xe)&&ge!=null)switch(xe){case"checked":break;case"value":break;case"defaultValue":U=ge;default:c.hasOwnProperty(xe)||En(e,n,xe,null,c,ge)}}for(var re in c){var xe=c[re];if(ge=r[re],c.hasOwnProperty(re)&&(xe!=null||ge!=null))switch(re){case"type":m=xe;break;case"name":h=xe;break;case"checked":G=xe;break;case"defaultChecked":pe=xe;break;case"value":R=xe;break;case"defaultValue":C=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xe!==ge&&En(e,n,re,xe,c,ge)}}n=r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null,c=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,n||!c||vN||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),vN=!0),!n||c||yN||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),yN=!0),Li(e,R,C,U,G,pe,m,h);return;case"select":xe=R=C=re=null;for(m in r)if(U=r[m],r.hasOwnProperty(m)&&U!=null)switch(m){case"value":break;case"multiple":xe=U;default:c.hasOwnProperty(m)||En(e,n,m,null,c,U)}for(h in c)if(m=c[h],U=r[h],c.hasOwnProperty(h)&&(m!=null||U!=null))switch(h){case"value":re=m;break;case"defaultValue":C=m;break;case"multiple":R=m;default:m!==U&&En(e,n,h,m,c,U)}c=C,n=R,r=xe,re!=null?Bl(e,!!n,re,!1):!!r!=!!n&&(c!=null?Bl(e,!!n,c,!0):Bl(e,!!n,n?[]:"",!1));return;case"textarea":xe=re=null;for(C in r)if(h=r[C],r.hasOwnProperty(C)&&h!=null&&!c.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:En(e,n,C,null,c,h)}for(R in c)if(h=c[R],m=r[R],c.hasOwnProperty(R)&&(h!=null||m!=null))switch(R){case"value":re=h;break;case"defaultValue":xe=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:h!==m&&En(e,n,R,h,c,m)}Os(e,re,xe);return;case"option":for(var Je in r)re=r[Je],r.hasOwnProperty(Je)&&re!=null&&!c.hasOwnProperty(Je)&&(Je==="selected"?e.selected=!1:En(e,n,Je,null,c,re));for(U in c)re=c[U],xe=r[U],c.hasOwnProperty(U)&&re!==xe&&(re!=null||xe!=null)&&(U==="selected"?e.selected=re&&typeof re!="function"&&typeof re!="symbol":En(e,n,U,re,c,xe));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var at in r)re=r[at],r.hasOwnProperty(at)&&re!=null&&!c.hasOwnProperty(at)&&En(e,n,at,null,c,re);for(G in c)if(re=c[G],xe=r[G],c.hasOwnProperty(G)&&re!==xe&&(re!=null||xe!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:En(e,n,G,re,c,xe)}return;default:if(Yl(n)){for(var Pn in r)re=r[Pn],r.hasOwnProperty(Pn)&&re!==void 0&&!c.hasOwnProperty(Pn)&&Uf(e,n,Pn,void 0,c,re);for(pe in c)re=c[pe],xe=r[pe],!c.hasOwnProperty(pe)||re===xe||re===void 0&&xe===void 0||Uf(e,n,pe,re,c,xe);return}}for(var fn in r)re=r[fn],r.hasOwnProperty(fn)&&re!=null&&!c.hasOwnProperty(fn)&&En(e,n,fn,null,c,re);for(ge in c)re=c[ge],xe=r[ge],!c.hasOwnProperty(ge)||re===xe||re==null&&xe==null||En(e,n,ge,re,c,xe)}function eu(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Ju(e){var n={};e=e.style;for(var r=0;r<e.length;r++){var c=e[r];n[c]=e.getPropertyValue(c)}return n}function ci(e,n,r){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var c,h=c="",m;for(m in n)if(n.hasOwnProperty(m)){var R=n[m];R!=null&&typeof R!="boolean"&&R!==""&&(m.indexOf("--")===0?(Qe(R,m),c+=h+m+":"+(""+R).trim()):typeof R!="number"||R===0||mt.has(m)?(Qe(R,m),c+=h+m.replace(ze,"-$1").toLowerCase().replace(st,"-ms-")+":"+(""+R).trim()):c+=h+m.replace(ze,"-$1").toLowerCase().replace(st,"-ms-")+":"+R+"px",h=";")}c=c||null,n=e.getAttribute("style"),n!==c&&(c=Cl(c),Cl(n)!==c&&(r.style=Ju(e)))}}function nr(e,n,r,c,h,m){if(h.delete(r),e=e.getAttribute(r),e===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if($e(c,n),e===""+c)return}ia(n,e,c,m)}function wg(e,n,r,c,h,m){if(h.delete(r),e=e.getAttribute(r),e===null){switch(typeof c){case"function":case"symbol":return}if(!c)return}else switch(typeof c){case"function":case"symbol":break;default:if(c)return}ia(n,e,c,m)}function Tg(e,n,r,c,h,m){if(h.delete(r),e=e.getAttribute(r),e===null)switch(typeof c){case"undefined":case"function":case"symbol":return}else if(c!=null)switch(typeof c){case"function":case"symbol":break;default:if($e(c,r),e===""+c)return}ia(n,e,c,m)}function jf(e,n,r,c,h,m){if(h.delete(r),e=e.getAttribute(r),e===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(c))return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(!isNaN(c)&&($e(c,n),e===""+c))return}ia(n,e,c,m)}function qh(e,n,r,c,h,m){if(h.delete(r),e=e.getAttribute(r),e===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if($e(c,n),r=Jd(""+c),e===r)return}ia(n,e,c,m)}function ar(e,n,r,c){for(var h={},m=new Set,R=e.attributes,C=0;C<R.length;C++)switch(R[C].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:m.add(R[C].name)}if(Yl(n)){for(var U in r)if(r.hasOwnProperty(U)){var G=r[U];if(G!=null){if(gi.hasOwnProperty(U))typeof G!="function"&&ua(U,G);else if(r.suppressHydrationWarning!==!0)switch(U){case"children":typeof G!="string"&&typeof G!="number"||ia("children",e.textContent,G,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":R=e.innerHTML,G=G?G.__html:void 0,G!=null&&(G=Eg(e,G),ia(U,R,G,h));continue;case"style":m.delete(U),ci(e,G,h);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":m.delete(U.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",U);continue;case"className":m.delete("class"),R=Zn(e,"class",G),ia("className",R,G,h);continue;default:c.context===Ac&&n!=="svg"&&n!=="math"?m.delete(U.toLowerCase()):m.delete(U),R=Zn(e,U,G),ia(U,R,G,h)}}}}else for(G in r)if(r.hasOwnProperty(G)&&(U=r[G],U!=null)){if(gi.hasOwnProperty(G))typeof U!="function"&&ua(G,U);else if(r.suppressHydrationWarning!==!0)switch(G){case"children":typeof U!="string"&&typeof U!="number"||ia("children",e.textContent,U,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":R=e.innerHTML,U=U?U.__html:void 0,U!=null&&(U=Eg(e,U),R!==U&&(h[G]={__html:R}));continue;case"className":nr(e,G,"class",U,m,h);continue;case"tabIndex":nr(e,G,"tabindex",U,m,h);continue;case"style":m.delete(G),ci(e,U,h);continue;case"multiple":m.delete(G),ia(G,e.multiple,U,h);continue;case"muted":m.delete(G),ia(G,e.muted,U,h);continue;case"autoFocus":m.delete("autofocus"),ia(G,e.autofocus,U,h);continue;case"data":if(n!=="object"){m.delete(G),R=e.getAttribute("data"),ia(G,R,U,h);continue}case"src":case"href":if(!(U!==""||n==="a"&&G==="href"||n==="object"&&G==="data")){console.error(G==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G);continue}qh(e,G,G,U,m,h);continue;case"action":case"formAction":if(R=e.getAttribute(G),typeof U=="function"){m.delete(G.toLowerCase()),G==="formAction"?(m.delete("name"),m.delete("formenctype"),m.delete("formmethod"),m.delete("formtarget")):(m.delete("enctype"),m.delete("method"),m.delete("target"));continue}else if(R===fZ){m.delete(G.toLowerCase()),ia(G,"function",U,h);continue}qh(e,G,G.toLowerCase(),U,m,h);continue;case"xlinkHref":qh(e,G,"xlink:href",U,m,h);continue;case"contentEditable":Tg(e,G,"contenteditable",U,m,h);continue;case"spellCheck":Tg(e,G,"spellcheck",U,m,h);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Tg(e,G,G,U,m,h);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":wg(e,G,G.toLowerCase(),U,m,h);continue;case"capture":case"download":e:{C=e;var pe=R=G,ge=h;if(m.delete(pe),C=C.getAttribute(pe),C===null)switch(typeof U){case"undefined":case"function":case"symbol":break e;default:if(U===!1)break e}else if(U!=null)switch(typeof U){case"function":case"symbol":break;case"boolean":if(U===!0&&C==="")break e;break;default:if($e(U,R),C===""+U)break e}ia(R,C,U,ge)}continue;case"cols":case"rows":case"size":case"span":e:{if(C=e,pe=R=G,ge=h,m.delete(pe),C=C.getAttribute(pe),C===null)switch(typeof U){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(U)||1>U)break e}else if(U!=null)switch(typeof U){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(U)||1>U)&&($e(U,R),C===""+U))break e}ia(R,C,U,ge)}continue;case"rowSpan":jf(e,G,"rowspan",U,m,h);continue;case"start":jf(e,G,G,U,m,h);continue;case"xHeight":nr(e,G,"x-height",U,m,h);continue;case"xlinkActuate":nr(e,G,"xlink:actuate",U,m,h);continue;case"xlinkArcrole":nr(e,G,"xlink:arcrole",U,m,h);continue;case"xlinkRole":nr(e,G,"xlink:role",U,m,h);continue;case"xlinkShow":nr(e,G,"xlink:show",U,m,h);continue;case"xlinkTitle":nr(e,G,"xlink:title",U,m,h);continue;case"xlinkType":nr(e,G,"xlink:type",U,m,h);continue;case"xmlBase":nr(e,G,"xml:base",U,m,h);continue;case"xmlLang":nr(e,G,"xml:lang",U,m,h);continue;case"xmlSpace":nr(e,G,"xml:space",U,m,h);continue;case"inert":U!==""||gT[G]||(gT[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G)),wg(e,G,G,U,m,h);continue;default:if(!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"){C=rE(G),R=!1,c.context===Ac&&n!=="svg"&&n!=="math"?m.delete(C.toLowerCase()):(pe=G.toLowerCase(),pe=Dl.hasOwnProperty(pe)&&Dl[pe]||null,pe!==null&&pe!==G&&(R=!0,m.delete(pe)),m.delete(C));e:if(pe=e,ge=C,C=U,Tn(ge))if(pe.hasAttribute(ge))pe=pe.getAttribute(ge),$e(C,ge),C=pe===""+C?C:pe;else{switch(typeof C){case"function":case"symbol":break e;case"boolean":if(pe=ge.toLowerCase().slice(0,5),pe!=="data-"&&pe!=="aria-")break e}C=C===void 0?void 0:null}else C=void 0;R||ia(G,C,U,h)}}}return 0<m.size&&r.suppressHydrationWarning!==!0&&Ih(e,m,h),Object.keys(h).length===0?null:h}function $E(e,n){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+n+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+n+" "+e[e.length-1]}}function Yo(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ZE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),c=0;c<r.length;c++){var h=r[c],m=h.transferSize,R=h.initiatorType,C=h.duration;if(m&&C&&Yo(R)){for(R=0,C=h.responseEnd,c+=1;c<r.length;c++){var U=r[c],G=U.startTime;if(G>C)break;var pe=U.transferSize,ge=U.initiatorType;pe&&Yo(ge)&&(U=U.responseEnd,R+=pe*(U<C?1:(C-G)/(U-G)))}if(--c,n+=8*(m+R)/(h.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function $h(e){return e.nodeType===9?e:e.ownerDocument}function XE(e){switch(e){case Vt:return Ty;case jt:return vT;default:return Ac}}function tu(e,n){if(e===Ac)switch(n){case"svg":return Ty;case"math":return vT;default:return Ac}return e===Ty&&n==="foreignObject"?Ac:e}function Lf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function Y0(){var e=window.event;return e&&e.type==="popstate"?e===LC?!1:(LC=e,!0):(LC=null,!1)}function fi(){var e=window.event;return e&&e!==o1?e.type:null}function Hf(){var e=window.event;return e&&e!==o1?e.timeStamp:-1.1}function PE(e){setTimeout(function(){throw e})}function FE(e,n,r){switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&e.focus();break;case"img":r.src?e.src=r.src:r.srcSet&&(e.srcset=r.srcSet)}}function QE(){}function Rg(e,n,r,c){Ha(e,n,r,c),e[qo]=c}function Og(e){_s(e,"")}function OO(e,n,r){e.nodeValue=r}function JE(e){if(!e.__reactWarnedAboutChildrenConflict){var n=e[qo]||null;if(n!==null){var r=De(e);r!==null&&(typeof n.children=="string"||typeof n.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,Ne(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):n.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,Ne(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ku(e){return e==="head"}function KE(e,n){e.removeChild(n)}function WE(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n)}function lc(e,n){var r=n,c=0;do{var h=r.nextSibling;if(e.removeChild(r),h&&h.nodeType===8)if(r=h.data,r===a1||r===yT){if(c===0){e.removeChild(h),cc(n);return}c--}else if(r===n1||r===Sd||r===_p||r===wy||r===xp)c++;else if(r===hZ)au(e.ownerDocument.documentElement);else if(r===mZ){r=e.ownerDocument.head,au(r);for(var m=r.firstChild;m;){var R=m.nextSibling,C=m.nodeName;m[Wf]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&m.rel.toLowerCase()==="stylesheet"||r.removeChild(m),m=R}}else r===pZ&&au(e.ownerDocument.body);r=h}while(r);cc(n)}function Zh(e,n){var r=e;e=0;do{var c=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),c&&c.nodeType===8)if(r=c.data,r===a1){if(e===0)break;e--}else r!==n1&&r!==Sd&&r!==_p&&r!==wy||e++;r=c}while(r)}function ew(e){Zh(e,!0)}function tw(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function nw(e){e.nodeValue=""}function aw(e){Zh(e,!1)}function ow(e,n){n=n[gZ],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function rw(e,n){e.nodeValue=n}function kf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":kf(r),W(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function lw(e,n,r,c){for(;e.nodeType===1;){var h=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[Wf])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){$e(h.name,"name");var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Cr(e.nextSibling),e===null)break}return null}function iw(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Cr(e.nextSibling),e===null))return null;return e}function An(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Cr(e.nextSibling),e===null))return null;return e}function Xh(e){return e.data===Sd||e.data===_p}function I0(e){return e.data===wy||e.data===Sd&&e.ownerDocument.readyState!==wN}function uw(e,n){var r=e.ownerDocument;if(e.data===_p)e._reactRetry=n;else if(e.data!==Sd||r.readyState!==wN)n();else{var c=function(){n(),r.removeEventListener("DOMContentLoaded",c)};r.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function Cr(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n===n1||n===wy||n===Sd||n===_p||n===xp||n===NC||n===EN)break;if(n===a1||n===yT)return null}}return e}function sw(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),r={},c=e.attributes,h=0;h<c.length;h++){var m=c[h];r[eu(m.name)]=m.name.toLowerCase()==="style"?Ju(e):m.value}return{type:n,props:r}}return e.nodeType===8?e.data===xp?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function cw(e,n,r){return r===null||r[dZ]!==!0?(e.nodeValue===n?e=null:(n=Cl(n),e=Cl(e.nodeValue)===n?null:e.nodeValue),e):null}function Vf(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r===a1||r===yT){if(n===0)return Cr(e.nextSibling);n--}else r!==n1&&r!==wy&&r!==Sd&&r!==_p&&r!==xp||n++}e=e.nextSibling}return null}function ic(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r===n1||r===wy||r===Sd||r===_p||r===xp){if(n===0)return e;n--}else r!==a1&&r!==yT||n++}e=e.previousSibling}return null}function q0(e){cc(e)}function Cg(e){cc(e)}function $0(e){cc(e)}function nu(e,n,r,c,h){switch(h&&Fd(e,c.ancestorInfo),n=$h(r),e){case"html":if(e=n.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=n.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=n.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function di(e,n,r,c){if(!r[ru]&&De(r)){var h=r.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",h,h,h)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Kn(r,e,n),r[Wn]=c,r[qo]=n}function au(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);W(e)}function xg(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Z0(e,n,r){var c=Ry;if(c&&typeof n=="string"&&n){var h=dn(n);h='link[rel="'+e+'"][href="'+h+'"]',typeof r=="string"&&(h+='[crossorigin="'+r+'"]'),_N.has(h)||(_N.add(h),e={rel:e,crossOrigin:r,href:n},c.querySelector(h)===null&&(n=c.createElement("link"),Kn(n,"link",e),Fe(n),c.head.appendChild(n)))}}function X0(e,n,r,c){var h=(h=xr.current)?xg(h):null;if(!h)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=uc(r.href),n=Pe(h).hoistableStyles,c=n.get(r),c||(c={type:"style",instance:null,count:0,state:null},n.set(r,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=uc(r.href);var m=Pe(h).hoistableStyles,R=m.get(e);if(!R&&(h=h.ownerDocument||h,R={type:"stylesheet",instance:null,count:0,state:{loading:Dp,preload:null}},m.set(e,R),(m=h.querySelector(Fh(e)))&&!m._p&&(R.instance=m,R.state.loading=r1|xi),!_i.has(e))){var C={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy};_i.set(e,C),m||fw(h,e,C,R.state)}if(n&&c===null)throw r=`
191
+
192
+ - `+Ph(n)+`
193
+ + `+Ph(r),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return R}if(n&&c!==null)throw r=`
194
+
195
+ - `+Ph(n)+`
196
+ + `+Ph(r),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(r=sc(r),n=Pe(h).hoistableScripts,c=n.get(r),c||(c={type:"script",instance:null,count:0,state:null},n.set(r,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Ph(e){var n=0,r="<link";return typeof e.rel=="string"?(n++,r+=' rel="'+e.rel+'"'):_r.call(e,"rel")&&(n++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,r+=' href="'+e.href+'"'):_r.call(e,"href")&&(n++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,r+=' precedence="'+e.precedence+'"'):_r.call(e,"precedence")&&(n++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(r+=" ..."),r+" />"}function uc(e){return'href="'+dn(e)+'"'}function Fh(e){return'link[rel="stylesheet"]['+e+"]"}function _g(e){return Gt({},e,{"data-precedence":e.precedence,precedence:null})}function fw(e,n,r,c){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?c.loading=r1:(n=e.createElement("link"),c.preload=n,n.addEventListener("load",function(){return c.loading|=r1}),n.addEventListener("error",function(){return c.loading|=CN}),Kn(n,"link",r),Fe(n),e.head.appendChild(n))}function sc(e){return'[src="'+dn(e)+'"]'}function Qh(e){return"script[async]"+e}function Ag(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var c=e.querySelector('style[data-href~="'+dn(r.href)+'"]');if(c)return n.instance=c,Fe(c),c;var h=Gt({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),Fe(c),Kn(c,"style",h),Bf(c,r.precedence,e),n.instance=c;case"stylesheet":h=uc(r.href);var m=e.querySelector(Fh(h));if(m)return n.state.loading|=xi,n.instance=m,Fe(m),m;c=_g(r),(h=_i.get(h))&&P0(c,h),m=(e.ownerDocument||e).createElement("link"),Fe(m);var R=m;return R._p=new Promise(function(C,U){R.onload=C,R.onerror=U}),Kn(m,"link",c),n.state.loading|=xi,Bf(m,r.precedence,e),n.instance=m;case"script":return m=sc(r.src),(h=e.querySelector(Qh(m)))?(n.instance=h,Fe(h),h):(c=r,(h=_i.get(m))&&(c=Gt({},r),F0(c,h)),e=e.ownerDocument||e,h=e.createElement("script"),Fe(h),Kn(h,"link",c),e.head.appendChild(h),n.instance=h);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&xi)===Dp&&(c=n.instance,n.state.loading|=xi,Bf(c,r.precedence,e));return n.instance}function Bf(e,n,r){for(var c=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,m=h,R=0;R<c.length;R++){var C=c[R];if(C.dataset.precedence===n)m=C;else if(m!==h)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function P0(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function F0(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}function Gf(e,n,r){if(bT===null){var c=new Map,h=bT=new Map;h.set(r,c)}else h=bT,c=h.get(r),c||(c=new Map,h.set(r,c));if(c.has(e))return c;for(c.set(e,null),r=r.getElementsByTagName(e),h=0;h<r.length;h++){var m=r[h];if(!(m[Wf]||m[Wn]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!==Vt){var R=m.getAttribute(n)||"";R=e+R;var C=c.get(R);C?C.push(m):c.set(R,[m])}}return c}function dw(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function hw(e,n,r){var c=!r.ancestorInfo.containerTagInScope;if(r.context===Ty||n.itemProp!=null)return!c||n.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){c&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){e=n.href;var h=n.onError,m=n.disabled;r=[],n.onLoad&&r.push("`onLoad`"),h&&r.push("`onError`"),m!=null&&r.push("`disabled`"),h=$E(r,"and"),h+=r.length===1?" prop":" props",m=r.length===1?"an "+h:"the "+h,r.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,m,h)}c&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return n.rel==="stylesheet"?(e=n.precedence,n=n.disabled,typeof e!="string"&&c&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&n==null):!0;case"script":if(e=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!e||n.onLoad||n.onError||!n.src||typeof n.src!="string"){c&&(e?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":c&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Kt(e){return!(e.type==="stylesheet"&&(e.state.loading&xN)===Dp)}function Q0(e,n,r,c){if(r.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(r.state.loading&xi)===Dp){if(r.instance===null){var h=uc(c.href),m=n.querySelector(Fh(h));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Yf.bind(e),n.then(e,e)),r.state.loading|=xi,r.instance=m,Fe(m);return}m=n.ownerDocument||n,c=_g(c),(h=_i.get(h))&&P0(c,h),m=m.createElement("link"),Fe(m);var R=m;R._p=new Promise(function(C,U){R.onload=C,R.onerror=U}),Kn(m,"link",c),r.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&xN)===Dp&&(e.count++,r=Yf.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}function Dg(e,n){return e.stylesheets&&e.count===0&&Jh(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var c=setTimeout(function(){if(e.stylesheets&&Jh(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},bZ+n);0<e.imgBytes&&kC===0&&(kC=125*ZE()*EZ);var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Jh(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>kC?50:SZ)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Jh(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ST=new Map,n.forEach(J0,e),ST=null,Yf.call(e))}function J0(e,n){if(!(n.state.loading&xi)){var r=ST.get(e);if(r)var c=r.get(VC);else{r=new Map,ST.set(e,r);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var R=h[m];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(r.set(R.dataset.precedence,R),c=R)}c&&r.set(VC,c)}h=n.instance,R=h.getAttribute("data-precedence"),m=r.get(R)||c,m===c&&r.set(VC,h),r.set(R,h),this.count++,c=Yf.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),m?m.parentNode.insertBefore(h,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),n.state.loading|=xi}}function Kh(e,n,r,c,h,m,R,C,U){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ap,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(new Set);this._debugRootType=r?"hydrateRoot()":"createRoot()"}function Wh(e,n,r,c,h,m,R,C,U,G,pe,ge){return e=new Kh(e,n,r,R,U,G,pe,ge,C),n=$$,m===!0&&(n|=lr|lu),n|=Yt,m=O(3,null,null,n),e.current=m,m.stateNode=e,n=Am(),ks(n),e.pooledCache=n,ks(n),m.memoizedState={element:c,isDehydrated:r,cache:n},nn(m),e}function pw(e){return e?(e=rd,e):rd}function Mg(e,n,r,c,h,m){if(ka&&typeof ka.onScheduleFiberRoot=="function")try{ka.onScheduleFiberRoot(pc,c,r)}catch(R){pi||(pi=!0,console.error("React instrumentation encountered an error: %o",R))}h=pw(h),c.context===null?c.context=h:c.pendingContext=h,hi&&rr!==null&&!zN&&(zN=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
197
+
198
+ Check the render method of %s.`,K(rr)||"Unknown")),c=ja(n),c.payload={element:r},m=m===void 0?null:m,m!==null&&(typeof m!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",m),c.callback=m),r=Fl(e,c,n),r!==null&&(Zl(n,"root.render()",null),At(r,e,n),$r(r,e,n))}function mw(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function K0(e,n){mw(e,n),(e=e.alternate)&&mw(e,n)}function W0(e){if(e.tag===13||e.tag===31){var n=bo(e,67108864);n!==null&&At(n,e,67108864),K0(e,67108864)}}function eb(e){if(e.tag===13||e.tag===31){var n=Eo(e);n=Nt(n);var r=bo(e,n);r!==null&&At(r,e,n),K0(e,n)}}function Un(){return rr}function tb(e,n,r,c){var h=Me.T;Me.T=null;var m=wn.p;try{wn.p=Va,nb(e,n,r,c)}finally{wn.p=m,Me.T=h}}function co(e,n,r,c){var h=Me.T;Me.T=null;var m=wn.p;try{wn.p=ho,nb(e,n,r,c)}finally{wn.p=m,Me.T=h}}function nb(e,n,r,c){if(wT){var h=zg(c);if(h===null)Rl(e,n,c,TT,r),Ug(e,c);else if(gw(h,e,n,r,c))c.stopPropagation();else if(Ug(e,c),n&4&&-1<TZ.indexOf(e)){for(;h!==null;){var m=De(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var R=je(m.pendingLanes);if(R!==0){var C=m;for(C.pendingLanes|=2,C.entangledLanes|=2;R;){var U=1<<31-fo(R);C.entanglements[1]|=U,R&=~U}tr(m),(gn&(mo|Ul))===Co&&(rT=Ja()+lN,ui(0))}}break;case 31:case 13:C=bo(m,2),C!==null&&At(C,m,2),Or(),K0(m,2)}if(m=zg(c),m===null&&Rl(e,n,c,TT,r),m===h)break;h=m}h!==null&&c.stopPropagation()}else Rl(e,n,c,null,r)}}function zg(e){return e=ul(e),ab(e)}function ab(e){if(TT=null,e=Se(e),e!==null){var n=M(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=q(n),e!==null)return e;e=null}else if(r===31){if(e=I(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return TT=e,null}function Ng(e){switch(e){case"beforetoggle":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"toggle":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 Va;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ho;case"message":switch(rp()){case hb:return Va;case Ig:return ho;case hc:case ww:return To;case qg:return as;default:return To}default:return To}}function Ug(e,n){switch(e){case"focusin":case"focusout":Ed=null;break;case"dragenter":case"dragleave":wd=null;break;case"mouseover":case"mouseout":Td=null;break;case"pointerover":case"pointerout":i1.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":u1.delete(n.pointerId)}}function Wu(e,n,r,c,h,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:r,eventSystemFlags:c,nativeEvent:m,targetContainers:[h]},n!==null&&(n=De(n),n!==null&&W0(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),e)}function gw(e,n,r,c,h){switch(n){case"focusin":return Ed=Wu(Ed,e,n,r,c,h),!0;case"dragenter":return wd=Wu(wd,e,n,r,c,h),!0;case"mouseover":return Td=Wu(Td,e,n,r,c,h),!0;case"pointerover":var m=h.pointerId;return i1.set(m,Wu(i1.get(m)||null,e,n,r,c,h)),!0;case"gotpointercapture":return m=h.pointerId,u1.set(m,Wu(u1.get(m)||null,e,n,r,c,h)),!0}return!1}function ob(e){var n=Se(e.target);if(n!==null){var r=M(n);if(r!==null){if(n=r.tag,n===13){if(n=q(r),n!==null){e.blockedOn=n,k(e.priority,function(){eb(r)});return}}else if(n===31){if(n=I(r),n!==null){e.blockedOn=n,k(e.priority,function(){eb(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function If(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=zg(e.nativeEvent);if(r===null){r=e.nativeEvent;var c=new r.constructor(r.type,r),h=c;vb!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),vb=h,r.target.dispatchEvent(c),vb===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),vb=null}else return n=De(r),n!==null&&W0(n),e.blockedOn=r,!1;n.shift()}return!0}function jg(e,n,r){If(e)&&r.delete(n)}function CO(){BC=!1,Ed!==null&&If(Ed)&&(Ed=null),wd!==null&&If(wd)&&(wd=null),Td!==null&&If(Td)&&(Td=null),i1.forEach(jg),u1.forEach(jg)}function ep(e,n){e.blockedOn===n&&(e.blockedOn=null,BC||(BC=!0,Ca.unstable_scheduleCallback(Ca.unstable_NormalPriority,CO)))}function yw(e){RT!==e&&(RT=e,Ca.unstable_scheduleCallback(Ca.unstable_NormalPriority,function(){RT===e&&(RT=null);for(var n=0;n<e.length;n+=3){var r=e[n],c=e[n+1],h=e[n+2];if(typeof c!="function"){if(ab(c||r)===null)continue;break}var m=De(r);m!==null&&(e.splice(n,3),n-=3,r={pending:!0,data:h,method:r.method,action:c},Object.freeze(r),Fi(m,r,c,h))}}))}function cc(e){function n(U){return ep(U,e)}Ed!==null&&ep(Ed,e),wd!==null&&ep(wd,e),Td!==null&&ep(Td,e),i1.forEach(n),u1.forEach(n);for(var r=0;r<Rd.length;r++){var c=Rd[r];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Rd.length&&(r=Rd[0],r.blockedOn===null);)ob(r),r.blockedOn===null&&Rd.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(c=0;c<r.length;c+=3){var h=r[c],m=r[c+1],R=h[qo]||null;if(typeof m=="function")R||yw(r);else if(R){var C=null;if(m&&m.hasAttribute("formAction")){if(h=m,R=m[qo]||null)C=R.formAction;else if(ab(h)!==null)continue}else C=R.action;typeof C=="function"?r[c+1]=C:(r.splice(c,3),c-=3),yw(r)}}}function vw(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(R){return h=R})},focusReset:"manual",scroll:"manual"})}function n(){h!==null&&(h(),h=null),c||setTimeout(r,20)}function r(){if(!c&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),h!==null&&(h(),h=null)}}}function rb(e){this._internalRoot=e}function xl(e){this._internalRoot=e}function lb(e){e[ru]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ca=QC(),tp=du(),xO=xT(),Gt=Object.assign,bw=Symbol.for("react.element"),Fr=Symbol.for("react.transitional.element"),es=Symbol.for("react.portal"),qf=Symbol.for("react.fragment"),Io=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),Lg=Symbol.for("react.consumer"),_l=Symbol.for("react.context"),$f=Symbol.for("react.forward_ref"),fc=Symbol.for("react.suspense"),or=Symbol.for("react.suspense_list"),ap=Symbol.for("react.memo"),wo=Symbol.for("react.lazy"),Al=Symbol.for("react.activity"),_O=Symbol.for("react.memo_cache_sentinel"),Sw=Symbol.iterator,Zf=Symbol.for("react.client.reference"),Da=Array.isArray,Me=tp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,wn=xO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,AO=Object.freeze({pending:!1,data:null,method:null,action:null}),ib=[],ub=[],ou=-1,ts=fe(null),Xf=fe(null),xr=fe(null),ns=fe(null),Pf=0,Ew,dc,Ff,sb,op,Hg,kg;ce.__reactDisabledLog=!0;var Qf,cb,Vg=!1,fb=new(typeof WeakMap=="function"?WeakMap:Map),rr=null,hi=!1,_r=Object.prototype.hasOwnProperty,db=Ca.unstable_scheduleCallback,Bg=Ca.unstable_cancelCallback,Gg=Ca.unstable_shouldYield,Yg=Ca.unstable_requestPaint,Ja=Ca.unstable_now,rp=Ca.unstable_getCurrentPriorityLevel,hb=Ca.unstable_ImmediatePriority,Ig=Ca.unstable_UserBlockingPriority,hc=Ca.unstable_NormalPriority,ww=Ca.unstable_LowPriority,qg=Ca.unstable_IdlePriority,pb=Ca.log,Tw=Ca.unstable_setDisableYieldValue,pc=null,ka=null,pi=!1,mi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",fo=Math.clz32?Math.clz32:Re,mb=Math.log,$g=Math.LN2,Jf=256,lp=262144,Kf=4194304,Va=2,ho=8,To=32,as=268435456,Qr=Math.random().toString(36).slice(2),Wn="__reactFiber$"+Qr,qo="__reactProps$"+Qr,ru="__reactContainer$"+Qr,mc="__reactEvents$"+Qr,DO="__reactListeners$"+Qr,Rw="__reactHandles$"+Qr,ip="__reactResources$"+Qr,Wf="__reactMarker$"+Qr,Ow=new Set,gi={},ed={},Cw={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},td=RegExp("^[: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]*$"),gb={},Zg={},Xg=/[\n"\\]/g,yb=!1,xw=!1,up=!1,o=!1,l=!1,s=!1,d=["value","defaultValue"],v=!1,w=/["'&<>\n\t]|^\s|\s$/,z="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),$="applet caption html table td th marquee object template foreignObject desc title".split(" "),se=$.concat(["button"]),Ee="dd dt li option optgroup p rp rt".split(" "),Le={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Be={},Oe={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},ze=/([A-Z])/g,st=/^ms-/,Et=/^(?:webkit|moz|o)[A-Z]/,jn=/^-ms-/,ye=/-(.)/g,me=/;\s*$/,be={},ke={},vt=!1,mn=!1,mt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),jt="http://www.w3.org/1998/Math/MathML",Vt="http://www.w3.org/2000/svg",bn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dl={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},_w={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Pg={},a$=RegExp("^(aria)-[: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]*$"),o$=RegExp("^(aria)[A-Z][: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]*$"),Uz=!1,Ar={},jz=/^on./,r$=/^on[^A-Z]/,l$=RegExp("^(aria)-[: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]*$"),i$=RegExp("^(aria)[A-Z][: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]*$"),u$=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,vb=null,Fg=null,Qg=null,MO=!1,os=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zO=!1;if(os)try{var bb={};Object.defineProperty(bb,"passive",{get:function(){zO=!0}}),window.addEventListener("test",bb,bb),window.removeEventListener("test",bb,bb)}catch{zO=!1}var nd=null,NO=null,Aw=null,sp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dw=qa(sp),Sb=Gt({},sp,{view:0,detail:0}),s$=qa(Sb),UO,jO,Eb,Mw=Gt({},Sb,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Eb&&(Eb&&e.type==="mousemove"?(UO=e.screenX-Eb.screenX,jO=e.screenY-Eb.screenY):jO=UO=0,Eb=e),UO)},movementY:function(e){return"movementY"in e?e.movementY:jO}}),Lz=qa(Mw),c$=Gt({},Mw,{dataTransfer:0}),f$=qa(c$),d$=Gt({},Sb,{relatedTarget:0}),LO=qa(d$),h$=Gt({},sp,{animationName:0,elapsedTime:0,pseudoElement:0}),p$=qa(h$),m$=Gt({},sp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g$=qa(m$),y$=Gt({},sp,{data:0}),Hz=qa(y$),v$=Hz,b$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S$={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"},E$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},w$=Gt({},Sb,{key:function(e){if(e.key){var n=b$[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Kd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wd,charCode:function(e){return e.type==="keypress"?Kd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T$=qa(w$),R$=Gt({},Mw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kz=qa(R$),O$=Gt({},Sb,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wd}),C$=qa(O$),x$=Gt({},sp,{propertyName:0,elapsedTime:0,pseudoElement:0}),_$=qa(x$),A$=Gt({},Mw,{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}),D$=qa(A$),M$=Gt({},sp,{newState:0,oldState:0}),z$=qa(M$),N$=[9,13,27,32],Vz=229,HO=os&&"CompositionEvent"in window,wb=null;os&&"documentMode"in document&&(wb=document.documentMode);var U$=os&&"TextEvent"in window&&!wb,Bz=os&&(!HO||wb&&8<wb&&11>=wb),Gz=32,Yz=String.fromCharCode(Gz),Iz=!1,Jg=!1,j$={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},Tb=null,Rb=null,qz=!1;os&&(qz=vm("input")&&(!document.documentMode||9<document.documentMode));var Dr=typeof Object.is=="function"?Object.is:bm,L$=os&&"documentMode"in document&&11>=document.documentMode,Kg=null,kO=null,Ob=null,VO=!1,Wg={animationend:Ds("Animation","AnimationEnd"),animationiteration:Ds("Animation","AnimationIteration"),animationstart:Ds("Animation","AnimationStart"),transitionrun:Ds("Transition","TransitionRun"),transitionstart:Ds("Transition","TransitionStart"),transitioncancel:Ds("Transition","TransitionCancel"),transitionend:Ds("Transition","TransitionEnd")},BO={},$z={};os&&($z=document.createElement("div").style,"AnimationEvent"in window||(delete Wg.animationend.animation,delete Wg.animationiteration.animation,delete Wg.animationstart.animation),"TransitionEvent"in window||delete Wg.transitionend.transition);var Zz=Ms("animationend"),Xz=Ms("animationiteration"),Pz=Ms("animationstart"),H$=Ms("transitionrun"),k$=Ms("transitionstart"),V$=Ms("transitioncancel"),Fz=Ms("transitionend"),Qz=new Map,GO="abort auxClick beforeToggle 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(" ");GO.push("scrollEnd");var Jz=0;if(typeof performance=="object"&&typeof performance.now=="function")var B$=performance,Kz=function(){return B$.now()};else{var G$=Date;Kz=function(){return G$.now()}}var YO=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Y$="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",zw=0,IO=1,qO=2,$O=3,Nw="– ",Uw="+ ",Wz="  ",ea=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",yi="Components ⚛",cn="Scheduler ⚛",hn="Blocking",ad=!1,gc={color:"primary",properties:null,tooltipText:"",track:yi},od={start:-0,end:-0,detail:{devtools:gc}},I$=["Changed Props",""],e4="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",q$=["Changed Props",e4],Cb=1,yc=2,vi=[],ey=0,ZO=0,rd={};Object.freeze(rd);var bi=null,ty=null,_t=0,$$=1,Yt=2,lr=8,lu=16,Z$=32,t4=!1;try{var n4=Object.preventExtensions({})}catch{t4=!0}var XO=new WeakMap,ny=[],ay=0,jw=null,xb=0,Si=[],Ei=0,cp=null,vc=1,bc="",$o=null,ta=null,un=!1,rs=!1,Ml=null,ld=null,wi=!1,PO=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),FO=fe(null),QO=fe(null),a4={},Lw=null,oy=null,ry=!1,X$=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,c){e.push(c)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},P$=Ca.unstable_scheduleCallback,F$=Ca.unstable_NormalPriority,Ka={$$typeof:_l,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Wa=Ca.unstable_now,Hw=console.createTask?console.createTask:function(){return null},_b=1,kw=2,Ro=-0,id=-0,Sc=-0,Ec=null,Mr=-1.1,fp=-0,ga=-0,St=-1.1,Tt=-1.1,sa=null,xa=!1,dp=-0,ls=-1.1,Ab=null,ud=0,JO=null,KO=null,hp=-1.1,Db=null,ly=-1.1,Vw=-1.1,wc=-0,Tc=-1.1,Ti=-1.1,WO=0,Mb=null,o4=null,r4=null,sd=-1.1,pp=null,cd=-1.1,Bw=-1.1,l4=-0,i4=-0,Gw=0,Q$=null,u4=0,zb=-1.1,Yw=!1,Iw=!1,Nb=null,eC=0,mp=0,iy=null,s4=Me.S;Me.S=function(e,n){if(oN=Ja(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>Tc&&0>Ti){Tc=Wa();var r=Hf(),c=fi();(r!==cd||c!==pp)&&(cd=-1.1),sd=r,pp=c}Yi(e,n)}s4!==null&&s4(e,n)};var gp=fe(null),iu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ub=[],jb=[],Lb=[],Hb=[],kb=[],Vb=[],yp=new Set;iu.recordUnsafeLifecycleWarnings=function(e,n){yp.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Ub.push(e),e.mode&lr&&typeof n.UNSAFE_componentWillMount=="function"&&jb.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Lb.push(e),e.mode&lr&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Hb.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&kb.push(e),e.mode&lr&&typeof n.UNSAFE_componentWillUpdate=="function"&&Vb.push(e))},iu.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ub.length&&(Ub.forEach(function(C){e.add(K(C)||"Component"),yp.add(C.type)}),Ub=[]);var n=new Set;0<jb.length&&(jb.forEach(function(C){n.add(K(C)||"Component"),yp.add(C.type)}),jb=[]);var r=new Set;0<Lb.length&&(Lb.forEach(function(C){r.add(K(C)||"Component"),yp.add(C.type)}),Lb=[]);var c=new Set;0<Hb.length&&(Hb.forEach(function(C){c.add(K(C)||"Component"),yp.add(C.type)}),Hb=[]);var h=new Set;0<kb.length&&(kb.forEach(function(C){h.add(K(C)||"Component"),yp.add(C.type)}),kb=[]);var m=new Set;if(0<Vb.length&&(Vb.forEach(function(C){m.add(K(C)||"Component"),yp.add(C.type)}),Vb=[]),0<n.size){var R=T(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
201
+
202
+ Please update the following components: %s`,R)}0<c.size&&(R=T(c),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move data fetching code or side effects to componentDidUpdate.
205
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
+
207
+ Please update the following components: %s`,R)),0<m.size&&(R=T(m),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+
211
+ Please update the following components: %s`,R)),0<e.size&&(R=T(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
212
+
213
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
214
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
215
+
216
+ Please update the following components: %s`,R)),0<r.size&&(R=T(r),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
217
+
218
+ * Move data fetching code or side effects to componentDidUpdate.
219
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
220
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
221
+
222
+ Please update the following components: %s`,R)),0<h.size&&(R=T(h),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
223
+
224
+ * Move data fetching code or side effects to componentDidUpdate.
225
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
226
+
227
+ Please update the following components: %s`,R))};var qw=new Map,c4=new Set;iu.recordLegacyContextWarning=function(e,n){for(var r=null,c=e;c!==null;)c.mode&lr&&(r=c),c=c.return;r===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!c4.has(e.type)&&(c=qw.get(r),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(c===void 0&&(c=[],qw.set(r,c)),c.push(e))},iu.flushLegacyContextWarning=function(){qw.forEach(function(e){if(e.length!==0){var n=e[0],r=new Set;e.forEach(function(h){r.add(K(h)||"Component"),c4.add(h.type)});var c=T(r);Ne(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
228
+
229
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
230
+
231
+ Please update the following components: %s
232
+
233
+ Learn more about this warning here: https://react.dev/link/legacy-context`,c)})}})},iu.discardPendingWarnings=function(){Ub=[],jb=[],Lb=[],Hb=[],kb=[],Vb=[],qw=new Map};var f4={react_stack_bottom_frame:function(e,n,r){var c=hi;hi=!0;try{return e(n,r)}finally{hi=c}}},tC=f4.react_stack_bottom_frame.bind(f4),d4={react_stack_bottom_frame:function(e){var n=hi;hi=!0;try{return e.render()}finally{hi=n}}},h4=d4.react_stack_bottom_frame.bind(d4),p4={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(r){kt(e,e.return,r)}}},nC=p4.react_stack_bottom_frame.bind(p4),m4={react_stack_bottom_frame:function(e,n,r,c,h){try{n.componentDidUpdate(r,c,h)}catch(m){kt(e,e.return,m)}}},g4=m4.react_stack_bottom_frame.bind(m4),y4={react_stack_bottom_frame:function(e,n){var r=n.stack;e.componentDidCatch(n.value,{componentStack:r!==null?r:""})}},J$=y4.react_stack_bottom_frame.bind(y4),v4={react_stack_bottom_frame:function(e,n,r){try{r.componentWillUnmount()}catch(c){kt(e,n,c)}}},b4=v4.react_stack_bottom_frame.bind(v4),S4={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},K$=S4.react_stack_bottom_frame.bind(S4),E4={react_stack_bottom_frame:function(e,n,r){try{r()}catch(c){kt(e,n,c)}}},W$=E4.react_stack_bottom_frame.bind(E4),w4={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},eZ=w4.react_stack_bottom_frame.bind(w4),uy=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),aC=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),$w=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Zw={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},vp=null,Bb=!1,sy=null,Gb=0,It=null,oC,T4=oC=!1,R4={},O4={},C4={};E=function(e,n,r){if(r!==null&&typeof r=="object"&&r._store&&(!r._store.validated&&r.key==null||r._store.validated===2)){if(typeof r._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=1;var c=K(e),h=c||"null";if(!R4[h]){R4[h]=!0,r=r._owner,e=e._debugOwner;var m="";e&&typeof e.tag=="number"&&(h=K(e))&&(m=`
234
+
235
+ Check the render method of \``+h+"`."),m||c&&(m=`
236
+
237
+ Check the top-level render call using <`+c+">.");var R="";r!=null&&e!==r&&(c=null,typeof r.tag=="number"?c=K(r):typeof r.name=="string"&&(c=r.name),c&&(R=" It was passed a child from "+c+".")),Ne(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',m,R)})}}};var bp=Za(!0),x4=Za(!1),_4=0,A4=1,D4=2,rC=3,fd=!1,M4=!1,lC=null,iC=!1,cy=fe(null),Xw=fe(0),zl=fe(null),Ri=null,fy=1,Yb=2,Ba=fe(0),Pw=0,Oi=1,zr=2,Nl=4,Nr=8,dy,z4=new Set,N4=new Set,uC=new Set,U4=new Set,Rc=0,Mt=null,In=null,eo=null,Fw=!1,hy=!1,Sp=!1,Qw=0,Ib=0,Oc=null,tZ=0,nZ=25,Ae=null,Ci=null,Cc=-1,qb=!1,$b={readContext:Sn,use:Zi,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useLayoutEffect:pa,useInsertionEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useSyncExternalStore:pa,useId:pa,useHostTransitionStatus:pa,useFormState:pa,useActionState:pa,useOptimistic:pa,useMemoCache:pa,useCacheRefresh:pa};$b.useEffectEvent=pa;var sC=null,j4=null,cC=null,L4=null,is=null,uu=null,Jw=null;sC={readContext:function(e){return Sn(e)},use:Zi,useCallback:function(e,n){return Ae="useCallback",Dt(),$i(n),Bm(e,n)},useContext:function(e){return Ae="useContext",Dt(),Sn(e)},useEffect:function(e,n){return Ae="useEffect",Dt(),$i(n),Ps(e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",Dt(),$i(r),Wl(e,n,r)},useInsertionEffect:function(e,n){Ae="useInsertionEffect",Dt(),$i(n),Yu(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",Dt(),$i(n),jo(e,n)},useMemo:function(e,n){Ae="useMemo",Dt(),$i(n);var r=Me.H;Me.H=is;try{return Lo(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",Dt();var c=Me.H;Me.H=is;try{return hf(e,n,r)}finally{Me.H=c}},useRef:function(e){return Ae="useRef",Dt(),Vm(e)},useState:function(e){Ae="useState",Dt();var n=Me.H;Me.H=is;try{return ku(e)}finally{Me.H=n}},useDebugValue:function(){Ae="useDebugValue",Dt()},useDeferredValue:function(e,n){return Ae="useDeferredValue",Dt(),vf(e,n)},useTransition:function(){return Ae="useTransition",Dt(),Iu()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",Dt(),pf(e,n,r)},useId:function(){return Ae="useId",Dt(),Th()},useFormState:function(e,n){return Ae="useFormState",Dt(),dh(),Sr(e,n)},useActionState:function(e,n){return Ae="useActionState",Dt(),Sr(e,n)},useOptimistic:function(e){return Ae="useOptimistic",Dt(),Xs(e)},useHostTransitionStatus:Qi,useMemoCache:vr,useCacheRefresh:function(){return Ae="useCacheRefresh",Dt(),Gm()},useEffectEvent:function(e){return Ae="useEffectEvent",Dt(),Eh(e)}},j4={readContext:function(e){return Sn(e)},use:Zi,useCallback:function(e,n){return Ae="useCallback",Ye(),Bm(e,n)},useContext:function(e){return Ae="useContext",Ye(),Sn(e)},useEffect:function(e,n){return Ae="useEffect",Ye(),Ps(e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",Ye(),Wl(e,n,r)},useInsertionEffect:function(e,n){Ae="useInsertionEffect",Ye(),Yu(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",Ye(),jo(e,n)},useMemo:function(e,n){Ae="useMemo",Ye();var r=Me.H;Me.H=is;try{return Lo(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",Ye();var c=Me.H;Me.H=is;try{return hf(e,n,r)}finally{Me.H=c}},useRef:function(e){return Ae="useRef",Ye(),Vm(e)},useState:function(e){Ae="useState",Ye();var n=Me.H;Me.H=is;try{return ku(e)}finally{Me.H=n}},useDebugValue:function(){Ae="useDebugValue",Ye()},useDeferredValue:function(e,n){return Ae="useDeferredValue",Ye(),vf(e,n)},useTransition:function(){return Ae="useTransition",Ye(),Iu()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",Ye(),pf(e,n,r)},useId:function(){return Ae="useId",Ye(),Th()},useActionState:function(e,n){return Ae="useActionState",Ye(),Sr(e,n)},useFormState:function(e,n){return Ae="useFormState",Ye(),dh(),Sr(e,n)},useOptimistic:function(e){return Ae="useOptimistic",Ye(),Xs(e)},useHostTransitionStatus:Qi,useMemoCache:vr,useCacheRefresh:function(){return Ae="useCacheRefresh",Ye(),Gm()},useEffectEvent:function(e){return Ae="useEffectEvent",Ye(),Eh(e)}},cC={readContext:function(e){return Sn(e)},use:Zi,useCallback:function(e,n){return Ae="useCallback",Ye(),bl(e,n)},useContext:function(e){return Ae="useContext",Ye(),Sn(e)},useEffect:function(e,n){Ae="useEffect",Ye(),La(2048,Nr,e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",Ye(),yf(e,n,r)},useInsertionEffect:function(e,n){return Ae="useInsertionEffect",Ye(),La(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",Ye(),La(4,Nl,e,n)},useMemo:function(e,n){Ae="useMemo",Ye();var r=Me.H;Me.H=uu;try{return Jn(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",Ye();var c=Me.H;Me.H=uu;try{return qs(e,n,r)}finally{Me.H=c}},useRef:function(){return Ae="useRef",Ye(),Cn().memoizedState},useState:function(){Ae="useState",Ye();var e=Me.H;Me.H=uu;try{return qs(br)}finally{Me.H=e}},useDebugValue:function(){Ae="useDebugValue",Ye()},useDeferredValue:function(e,n){return Ae="useDeferredValue",Ye(),ei(e,n)},useTransition:function(){return Ae="useTransition",Ye(),CE()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",Ye(),Zs(e,n,r)},useId:function(){return Ae="useId",Ye(),Cn().memoizedState},useFormState:function(e){return Ae="useFormState",Ye(),dh(),Bu(e)},useActionState:function(e){return Ae="useActionState",Ye(),Bu(e)},useOptimistic:function(e,n){return Ae="useOptimistic",Ye(),vh(e,n)},useHostTransitionStatus:Qi,useMemoCache:vr,useCacheRefresh:function(){return Ae="useCacheRefresh",Ye(),Cn().memoizedState},useEffectEvent:function(e){return Ae="useEffectEvent",Ye(),gf(e)}},L4={readContext:function(e){return Sn(e)},use:Zi,useCallback:function(e,n){return Ae="useCallback",Ye(),bl(e,n)},useContext:function(e){return Ae="useContext",Ye(),Sn(e)},useEffect:function(e,n){Ae="useEffect",Ye(),La(2048,Nr,e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",Ye(),yf(e,n,r)},useInsertionEffect:function(e,n){return Ae="useInsertionEffect",Ye(),La(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",Ye(),La(4,Nl,e,n)},useMemo:function(e,n){Ae="useMemo",Ye();var r=Me.H;Me.H=Jw;try{return Jn(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",Ye();var c=Me.H;Me.H=Jw;try{return $s(e,n,r)}finally{Me.H=c}},useRef:function(){return Ae="useRef",Ye(),Cn().memoizedState},useState:function(){Ae="useState",Ye();var e=Me.H;Me.H=Jw;try{return $s(br)}finally{Me.H=e}},useDebugValue:function(){Ae="useDebugValue",Ye()},useDeferredValue:function(e,n){return Ae="useDeferredValue",Ye(),Lt(e,n)},useTransition:function(){return Ae="useTransition",Ye(),la()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",Ye(),Zs(e,n,r)},useId:function(){return Ae="useId",Ye(),Cn().memoizedState},useFormState:function(e){return Ae="useFormState",Ye(),dh(),Gu(e)},useActionState:function(e){return Ae="useActionState",Ye(),Gu(e)},useOptimistic:function(e,n){return Ae="useOptimistic",Ye(),bh(e,n)},useHostTransitionStatus:Qi,useMemoCache:vr,useCacheRefresh:function(){return Ae="useCacheRefresh",Ye(),Cn().memoizedState},useEffectEvent:function(e){return Ae="useEffectEvent",Ye(),gf(e)}},is={readContext:function(e){return S(),Sn(e)},use:function(e){return g(),Zi(e)},useCallback:function(e,n){return Ae="useCallback",g(),Dt(),Bm(e,n)},useContext:function(e){return Ae="useContext",g(),Dt(),Sn(e)},useEffect:function(e,n){return Ae="useEffect",g(),Dt(),Ps(e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",g(),Dt(),Wl(e,n,r)},useInsertionEffect:function(e,n){Ae="useInsertionEffect",g(),Dt(),Yu(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",g(),Dt(),jo(e,n)},useMemo:function(e,n){Ae="useMemo",g(),Dt();var r=Me.H;Me.H=is;try{return Lo(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",g(),Dt();var c=Me.H;Me.H=is;try{return hf(e,n,r)}finally{Me.H=c}},useRef:function(e){return Ae="useRef",g(),Dt(),Vm(e)},useState:function(e){Ae="useState",g(),Dt();var n=Me.H;Me.H=is;try{return ku(e)}finally{Me.H=n}},useDebugValue:function(){Ae="useDebugValue",g(),Dt()},useDeferredValue:function(e,n){return Ae="useDeferredValue",g(),Dt(),vf(e,n)},useTransition:function(){return Ae="useTransition",g(),Dt(),Iu()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",g(),Dt(),pf(e,n,r)},useId:function(){return Ae="useId",g(),Dt(),Th()},useFormState:function(e,n){return Ae="useFormState",g(),Dt(),Sr(e,n)},useActionState:function(e,n){return Ae="useActionState",g(),Dt(),Sr(e,n)},useOptimistic:function(e){return Ae="useOptimistic",g(),Dt(),Xs(e)},useMemoCache:function(e){return g(),vr(e)},useHostTransitionStatus:Qi,useCacheRefresh:function(){return Ae="useCacheRefresh",Dt(),Gm()},useEffectEvent:function(e){return Ae="useEffectEvent",g(),Dt(),Eh(e)}},uu={readContext:function(e){return S(),Sn(e)},use:function(e){return g(),Zi(e)},useCallback:function(e,n){return Ae="useCallback",g(),Ye(),bl(e,n)},useContext:function(e){return Ae="useContext",g(),Ye(),Sn(e)},useEffect:function(e,n){Ae="useEffect",g(),Ye(),La(2048,Nr,e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",g(),Ye(),yf(e,n,r)},useInsertionEffect:function(e,n){return Ae="useInsertionEffect",g(),Ye(),La(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",g(),Ye(),La(4,Nl,e,n)},useMemo:function(e,n){Ae="useMemo",g(),Ye();var r=Me.H;Me.H=uu;try{return Jn(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",g(),Ye();var c=Me.H;Me.H=uu;try{return qs(e,n,r)}finally{Me.H=c}},useRef:function(){return Ae="useRef",g(),Ye(),Cn().memoizedState},useState:function(){Ae="useState",g(),Ye();var e=Me.H;Me.H=uu;try{return qs(br)}finally{Me.H=e}},useDebugValue:function(){Ae="useDebugValue",g(),Ye()},useDeferredValue:function(e,n){return Ae="useDeferredValue",g(),Ye(),ei(e,n)},useTransition:function(){return Ae="useTransition",g(),Ye(),CE()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",g(),Ye(),Zs(e,n,r)},useId:function(){return Ae="useId",g(),Ye(),Cn().memoizedState},useFormState:function(e){return Ae="useFormState",g(),Ye(),Bu(e)},useActionState:function(e){return Ae="useActionState",g(),Ye(),Bu(e)},useOptimistic:function(e,n){return Ae="useOptimistic",g(),Ye(),vh(e,n)},useMemoCache:function(e){return g(),vr(e)},useHostTransitionStatus:Qi,useCacheRefresh:function(){return Ae="useCacheRefresh",Ye(),Cn().memoizedState},useEffectEvent:function(e){return Ae="useEffectEvent",g(),Ye(),gf(e)}},Jw={readContext:function(e){return S(),Sn(e)},use:function(e){return g(),Zi(e)},useCallback:function(e,n){return Ae="useCallback",g(),Ye(),bl(e,n)},useContext:function(e){return Ae="useContext",g(),Ye(),Sn(e)},useEffect:function(e,n){Ae="useEffect",g(),Ye(),La(2048,Nr,e,n)},useImperativeHandle:function(e,n,r){return Ae="useImperativeHandle",g(),Ye(),yf(e,n,r)},useInsertionEffect:function(e,n){return Ae="useInsertionEffect",g(),Ye(),La(4,zr,e,n)},useLayoutEffect:function(e,n){return Ae="useLayoutEffect",g(),Ye(),La(4,Nl,e,n)},useMemo:function(e,n){Ae="useMemo",g(),Ye();var r=Me.H;Me.H=uu;try{return Jn(e,n)}finally{Me.H=r}},useReducer:function(e,n,r){Ae="useReducer",g(),Ye();var c=Me.H;Me.H=uu;try{return $s(e,n,r)}finally{Me.H=c}},useRef:function(){return Ae="useRef",g(),Ye(),Cn().memoizedState},useState:function(){Ae="useState",g(),Ye();var e=Me.H;Me.H=uu;try{return $s(br)}finally{Me.H=e}},useDebugValue:function(){Ae="useDebugValue",g(),Ye()},useDeferredValue:function(e,n){return Ae="useDeferredValue",g(),Ye(),Lt(e,n)},useTransition:function(){return Ae="useTransition",g(),Ye(),la()},useSyncExternalStore:function(e,n,r){return Ae="useSyncExternalStore",g(),Ye(),Zs(e,n,r)},useId:function(){return Ae="useId",g(),Ye(),Cn().memoizedState},useFormState:function(e){return Ae="useFormState",g(),Ye(),Gu(e)},useActionState:function(e){return Ae="useActionState",g(),Ye(),Gu(e)},useOptimistic:function(e,n){return Ae="useOptimistic",g(),Ye(),bh(e,n)},useMemoCache:function(e){return g(),vr(e)},useHostTransitionStatus:Qi,useCacheRefresh:function(){return Ae="useCacheRefresh",Ye(),Cn().memoizedState},useEffectEvent:function(e){return Ae="useEffectEvent",g(),Ye(),gf(e)}};var H4={},k4=new Set,V4=new Set,B4=new Set,G4=new Set,Y4=new Set,I4=new Set,q4=new Set,$4=new Set,Z4=new Set,X4=new Set;Object.freeze(H4);var fC={enqueueSetState:function(e,n,r){e=e._reactInternals;var c=Eo(e),h=ja(c);h.payload=n,r!=null&&(Ks(r),h.callback=r),n=Fl(e,h,c),n!==null&&(Zl(c,"this.setState()",e),At(n,e,c),$r(n,e,c))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var c=Eo(e),h=ja(c);h.tag=A4,h.payload=n,r!=null&&(Ks(r),h.callback=r),n=Fl(e,h,c),n!==null&&(Zl(c,"this.replaceState()",e),At(n,e,c),$r(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=Eo(e),c=ja(r);c.tag=D4,n!=null&&(Ks(n),c.callback=n),n=Fl(e,c,r),n!==null&&(Zl(r,"this.forceUpdate()",e),At(n,e,r),$r(n,e,r))}},py=null,dC=null,hC=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),to=!1,P4={},F4={},Q4={},J4={},my=!1,K4={},Kw={},pC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},W4=!1,eN=null;eN=new Set;var xc=!1,no=!1,mC=!1,tN=typeof WeakSet=="function"?WeakSet:Set,Oo=null,gy=null,yy=null,ao=null,Jr=!1,su=null,po=!1,Zb=8192,aZ={getCacheForType:function(e){var n=Sn(Ka),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return Sn(Ka).controller.signal},getOwner:function(){return rr}};if(typeof Symbol=="function"&&Symbol.for){var Xb=Symbol.for;Xb("selector.component"),Xb("selector.has_pseudo_class"),Xb("selector.role"),Xb("selector.test_id"),Xb("selector.text")}var oZ=[],rZ=typeof WeakMap=="function"?WeakMap:Map,Co=0,mo=2,Ul=4,_c=0,Pb=1,Ep=2,Ww=3,dd=4,eT=6,nN=5,gn=Co,qn=null,Xt=null,qt=0,Kr=0,tT=1,wp=2,Fb=3,aN=4,gC=5,Qb=6,nT=7,yC=8,Tp=9,Ln=Kr,jl=null,hd=!1,vy=!1,vC=!1,us=0,ya=_c,pd=0,md=0,bC=0,Wr=0,Rp=0,Jb=null,Ur=null,aT=!1,oT=0,oN=0,rN=300,rT=1/0,lN=500,Kb=null,Ma=null,gd=null,lT=0,SC=1,EC=2,iN=3,yd=0,uN=1,sN=2,cN=3,fN=4,iT=5,oo=0,vd=null,by=null,cu=0,wC=0,TC=-0,RC=null,dN=null,hN=null,fu=lT,pN=null,lZ=50,Wb=0,OC=null,CC=!1,uT=!1,iZ=50,Op=0,e1=null,Sy=!1,sT=null,mN=!1,gN=new Set,uZ={},cT=null,Ey=null,xC=!1,_C=!1,fT=!1,AC=!1,bd=0,DC={};(function(){for(var e=0;e<GO.length;e++){var n=GO[e],r=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),sl(r,"on"+n)}sl(Zz,"onAnimationEnd"),sl(Xz,"onAnimationIteration"),sl(Pz,"onAnimationStart"),sl("dblclick","onDoubleClick"),sl("focusin","onFocus"),sl("focusout","onBlur"),sl(H$,"onTransitionRun"),sl(k$,"onTransitionStart"),sl(V$,"onTransitionCancel"),sl(Fz,"onTransitionEnd")})(),ft("onMouseEnter",["mouseout","mouseover"]),ft("onMouseLeave",["mouseout","mouseover"]),ft("onPointerEnter",["pointerout","pointerover"]),ft("onPointerLeave",["pointerout","pointerover"]),ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ut("onBeforeInput",["compositionend","keypress","textInput","paste"]),ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var t1="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(" "),MC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(t1)),dT="_reactListening"+Math.random().toString(36).slice(2),yN=!1,vN=!1,hT=!1,bN=!1,pT=!1,mT=!1,SN=!1,gT={},sZ=/\r\n?/g,cZ=/\u0000|\uFFFD/g,Cp="http://www.w3.org/1999/xlink",zC="http://www.w3.org/XML/1998/namespace",fZ="javascript:throw new Error('React form unexpectedly submitted.')",dZ="suppressHydrationWarning",xp="&",yT="/&",n1="$",a1="/$",Sd="$?",_p="$~",wy="$!",hZ="html",pZ="body",mZ="head",NC="F!",EN="F",wN="loading",gZ="style",Ac=0,Ty=1,vT=2,UC=null,jC=null,TN={dialog:!0,webview:!0},LC=null,o1=void 0,RN=typeof setTimeout=="function"?setTimeout:void 0,yZ=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=-1,ON=typeof Promise=="function"?Promise:void 0,vZ=typeof queueMicrotask=="function"?queueMicrotask:typeof ON<"u"?function(e){return ON.resolve(null).then(e).catch(PE)}:RN,HC=null,Dp=0,r1=1,CN=2,xN=3,xi=4,_i=new Map,_N=new Set,Dc=wn.d;wn.d={f:function(){var e=Dc.f(),n=Or();return e||n},r:function(e){var n=De(e);n!==null&&n.tag===5&&n.type==="form"?bf(n):Dc.r(e)},D:function(e){Dc.D(e),Z0("dns-prefetch",e,null)},C:function(e,n){Dc.C(e,n),Z0("preconnect",e,n)},L:function(e,n,r){Dc.L(e,n,r);var c=Ry;if(c&&e&&n){var h='link[rel="preload"][as="'+dn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(h+='[imagesrcset="'+dn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(h+='[imagesizes="'+dn(r.imageSizes)+'"]')):h+='[href="'+dn(e)+'"]';var m=h;switch(n){case"style":m=uc(e);break;case"script":m=sc(e)}_i.has(m)||(e=Gt({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),_i.set(m,e),c.querySelector(h)!==null||n==="style"&&c.querySelector(Fh(m))||n==="script"&&c.querySelector(Qh(m))||(n=c.createElement("link"),Kn(n,"link",e),Fe(n),c.head.appendChild(n)))}},m:function(e,n){Dc.m(e,n);var r=Ry;if(r&&e){var c=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+dn(c)+'"][href="'+dn(e)+'"]',m=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=sc(e)}if(!_i.has(m)&&(e=Gt({rel:"modulepreload",href:e},n),_i.set(m,e),r.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Qh(m)))return}c=r.createElement("link"),Kn(c,"link",e),Fe(c),r.head.appendChild(c)}}},X:function(e,n){Dc.X(e,n);var r=Ry;if(r&&e){var c=Pe(r).hoistableScripts,h=sc(e),m=c.get(h);m||(m=r.querySelector(Qh(h)),m||(e=Gt({src:e,async:!0},n),(n=_i.get(h))&&F0(e,n),m=r.createElement("script"),Fe(m),Kn(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(h,m))}},S:function(e,n,r){Dc.S(e,n,r);var c=Ry;if(c&&e){var h=Pe(c).hoistableStyles,m=uc(e);n=n||"default";var R=h.get(m);if(!R){var C={loading:Dp,preload:null};if(R=c.querySelector(Fh(m)))C.loading=r1|xi;else{e=Gt({rel:"stylesheet",href:e,"data-precedence":n},r),(r=_i.get(m))&&P0(e,r);var U=R=c.createElement("link");Fe(U),Kn(U,"link",e),U._p=new Promise(function(G,pe){U.onload=G,U.onerror=pe}),U.addEventListener("load",function(){C.loading|=r1}),U.addEventListener("error",function(){C.loading|=CN}),C.loading|=xi,Bf(R,n,c)}R={type:"stylesheet",instance:R,count:1,state:C},h.set(m,R)}}},M:function(e,n){Dc.M(e,n);var r=Ry;if(r&&e){var c=Pe(r).hoistableScripts,h=sc(e),m=c.get(h);m||(m=r.querySelector(Qh(h)),m||(e=Gt({src:e,async:!0,type:"module"},n),(n=_i.get(h))&&F0(e,n),m=r.createElement("script"),Fe(m),Kn(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(h,m))}}};var Ry=typeof document>"u"?null:document,bT=null,bZ=6e4,SZ=800,EZ=500,kC=0,VC=null,ST=null,Mp=AO,l1={$$typeof:_l,Provider:null,Consumer:null,_currentValue:Mp,_currentValue2:Mp,_threadCount:0},AN="%c%s%c",DN="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",MN="",ET=" ",wZ=Function.prototype.bind,zN=!1,NN=null,UN=null,jN=null,LN=null,HN=null,kN=null,VN=null,BN=null,GN=null,YN=null;NN=function(e,n,r,c){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0,c),n.memoizedState=r,n.baseState=r,e.memoizedProps=Gt({},e.memoizedProps),r=bo(e,2),r!==null&&At(r,e,2))},UN=function(e,n,r){n=t(e,n),n!==null&&(r=f(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=Gt({},e.memoizedProps),r=bo(e,2),r!==null&&At(r,e,2))},jN=function(e,n,r,c){n=t(e,n),n!==null&&(r=i(n.memoizedState,r,c),n.memoizedState=r,n.baseState=r,e.memoizedProps=Gt({},e.memoizedProps),r=bo(e,2),r!==null&&At(r,e,2))},LN=function(e,n,r){e.pendingProps=a(e.memoizedProps,n,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=bo(e,2),n!==null&&At(n,e,2)},HN=function(e,n){e.pendingProps=f(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=bo(e,2),n!==null&&At(n,e,2)},kN=function(e,n,r){e.pendingProps=i(e.memoizedProps,n,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=bo(e,2),n!==null&&At(n,e,2)},VN=function(e){var n=bo(e,2);n!==null&&At(n,e,2)},BN=function(e){var n=pt(),r=bo(e,n);r!==null&&At(r,e,n)},GN=function(e){y=e},YN=function(e){p=e};var wT=!0,TT=null,BC=!1,Ed=null,wd=null,Td=null,i1=new Map,u1=new Map,Rd=[],TZ="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".split(" "),RT=null;if(xl.prototype.render=rb.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var r=arguments;typeof r[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(r[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof r[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),r=e;var c=n.current,h=Eo(c);Mg(c,h,r,n,null,null)},xl.prototype.unmount=rb.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var n=e.containerInfo;(gn&(mo|Ul))!==Co&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Mg(e.current,2,null,e,null,null),Or(),n[ru]=null}},xl.prototype.unstable_scheduleHydration=function(e){if(e){var n=yn();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Rd.length&&n!==0&&n<Rd[r].priority;r++);Rd.splice(r,0,e),r===0&&ob(e)}},(function(){var e=tp.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
238
+ - react: `+(e+`
239
+ - react-dom: 19.2.4
240
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),wn.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=H(n),e=e!==null?Z(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Me,reconcilerVersion:"19.2.4"};return e.overrideHookState=NN,e.overrideHookStateDeletePath=UN,e.overrideHookStateRenamePath=jN,e.overrideProps=LN,e.overridePropsDeletePath=HN,e.overridePropsRenamePath=kN,e.scheduleUpdate=VN,e.scheduleRetry=BN,e.setErrorHandler=GN,e.setSuspenseHandler=YN,e.scheduleRefresh=A,e.scheduleRoot=_,e.setRefreshHandler=D,e.getCurrentFiber=Un,et(e)})()&&os&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var IN=window.location.protocol;/^(https?|file):$/.test(IN)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(IN==="file:"?`
241
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Dy.createRoot=function(e,n){if(!N(e))throw Error("Target container is not a DOM element.");lb(e);var r=!1,c="",h=qm,m=$m,R=e0;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===Fr&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
242
+
243
+ let root = createRoot(domContainer);
244
+ root.render(<App />);`),n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(R=n.onRecoverableError)),n=Wh(e,1,!1,null,null,r,c,null,h,m,R,vw),e[ru]=n.current,Qu(e),new rb(n)},Dy.hydrateRoot=function(e,n,r){if(!N(e))throw Error("Target container is not a DOM element.");lb(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=!1,h="",m=qm,R=$m,C=e0,U=null;return r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(h=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(R=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError),r.formState!==void 0&&(U=r.formState)),n=Wh(e,1,!0,n,r??null,c,h,U,m,R,C,vw),n.context=pw(null),r=n.current,c=Eo(r),c=Nt(c),h=ja(c),h.callback=null,Fl(r,h,c),Zl(c,"hydrateRoot()",null),r=c,n.current.lanes=r,yt(n,r),tr(n),e[ru]=n.current,Qu(e),new xl(n)},Dy.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Dy}var nx;function t6(){if(nx)return h1.exports;nx=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return process.env.NODE_ENV==="production"?(t(),h1.exports=WN()):h1.exports=e6(),h1.exports}var n6=t6();const a6=c1(n6);var My=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},g1=typeof window>"u"||"Deno"in globalThis;function Ll(){}function o6(t,a){return typeof t=="function"?t(a):t}function r6(t){return typeof t=="number"&&t>=0&&t!==1/0}function l6(t,a){return Math.max(t+(a||0)-Date.now(),0)}function _T(t,a){return typeof t=="function"?t(a):t}function i6(t,a){return typeof t=="function"?t(a):t}function ax(t,a){const{type:i="all",exact:u,fetchStatus:f,predicate:p,queryKey:y,stale:g}=t;if(y){if(u){if(a.queryHash!==AT(y,a.options))return!1}else if(!zy(a.queryKey,y))return!1}if(i!=="all"){const S=a.isActive();if(i==="active"&&!S||i==="inactive"&&S)return!1}return!(typeof g=="boolean"&&a.isStale()!==g||f&&f!==a.state.fetchStatus||p&&!p(a))}function ox(t,a){const{exact:i,status:u,predicate:f,mutationKey:p}=t;if(p){if(!a.options.mutationKey)return!1;if(i){if(Od(a.options.mutationKey)!==Od(p))return!1}else if(!zy(a.options.mutationKey,p))return!1}return!(u&&a.state.status!==u||f&&!f(a))}function AT(t,a){return(a?.queryKeyHashFn||Od)(t)}function Od(t){return JSON.stringify(t,(a,i)=>MT(i)?Object.keys(i).sort().reduce((u,f)=>(u[f]=i[f],u),{}):i)}function zy(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(i=>zy(t[i],a[i])):!1}function DT(t,a){if(t===a)return t;const i=rx(t)&&rx(a);if(i||MT(t)&&MT(a)){const u=i?t:Object.keys(t),f=u.length,p=i?a:Object.keys(a),y=p.length,g=i?[]:{},S=new Set(u);let b=0;for(let E=0;E<y;E++){const T=i?E:p[E];(!i&&S.has(T)||i)&&t[T]===void 0&&a[T]===void 0?(g[T]=void 0,b++):(g[T]=DT(t[T],a[T]),g[T]===t[T]&&t[T]!==void 0&&b++)}return f===y&&b===f?t:g}return a}function u6(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const i in t)if(t[i]!==a[i])return!1;return!0}function rx(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function MT(t){if(!lx(t))return!1;const a=t.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!lx(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function lx(t){return Object.prototype.toString.call(t)==="[object Object]"}function s6(t){return new Promise(a=>{setTimeout(a,t)})}function c6(t,a,i){if(typeof i.structuralSharing=="function")return i.structuralSharing(t,a);if(i.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return DT(t,a)}catch(u){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${i.queryHash}]: ${u}`),u}return DT(t,a)}return a}function f6(t,a,i=0){const u=[...t,a];return i&&u.length>i?u.slice(1):u}function d6(t,a,i=0){const u=[a,...t];return i&&u.length>i?u.slice(0,-1):u}var y1=Symbol();function ix(t,a){return process.env.NODE_ENV!=="production"&&t.queryFn===y1&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`),!t.queryFn&&a?.initialPromise?()=>a.initialPromise:!t.queryFn||t.queryFn===y1?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function h6(t,a){return typeof t=="function"?t(...a):!!t}var p6=class extends My{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!g1&&window.addEventListener){const a=()=>t();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},ux=new p6,m6=class extends My{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!g1&&window.addEventListener){const a=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(i=>{i(t)}))}isOnline(){return this.#e}},v1=new m6;function g6(){let t,a;const i=new Promise((f,p)=>{t=f,a=p});i.status="pending",i.catch(()=>{});function u(f){Object.assign(i,f),delete i.resolve,delete i.reject}return i.resolve=f=>{u({status:"fulfilled",value:f}),t(f)},i.reject=f=>{u({status:"rejected",reason:f}),a(f)},i}function y6(t){return Math.min(1e3*2**t,3e4)}function sx(t){return(t??"online")==="online"?v1.isOnline():!0}var cx=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function zT(t){return t instanceof cx}function fx(t){let a=!1,i=0,u=!1,f;const p=g6(),y=D=>{u||(O(new cx(D)),t.abort?.())},g=()=>{a=!0},S=()=>{a=!1},b=()=>ux.isFocused()&&(t.networkMode==="always"||v1.isOnline())&&t.canRun(),E=()=>sx(t.networkMode)&&t.canRun(),T=D=>{u||(u=!0,t.onSuccess?.(D),f?.(),p.resolve(D))},O=D=>{u||(u=!0,t.onError?.(D),f?.(),p.reject(D))},_=()=>new Promise(D=>{f=N=>{(u||b())&&D(N)},t.onPause?.()}).then(()=>{f=void 0,u||t.onContinue?.()}),A=()=>{if(u)return;let D;const N=i===0?t.initialPromise:void 0;try{D=N??t.fn()}catch(M){D=Promise.reject(M)}Promise.resolve(D).then(T).catch(M=>{if(u)return;const q=t.retry??(g1?0:3),I=t.retryDelay??y6,Y=typeof I=="function"?I(i,M):I,H=q===!0||typeof q=="number"&&i<q||typeof q=="function"&&q(i,M);if(a||!H){O(M);return}i++,t.onFail?.(i,M),s6(Y).then(()=>b()?void 0:_()).then(()=>{a?O(M):A()})})};return{promise:p,cancel:y,continue:()=>(f?.(),p),cancelRetry:g,continueRetry:S,canStart:E,start:()=>(E()?A():_().then(A),p)}}var v6=t=>setTimeout(t,0);function b6(){let t=[],a=0,i=g=>{g()},u=g=>{g()},f=v6;const p=g=>{a?t.push(g):f(()=>{i(g)})},y=()=>{const g=t;t=[],g.length&&f(()=>{u(()=>{g.forEach(S=>{i(S)})})})};return{batch:g=>{let S;a++;try{S=g()}finally{a--,a||y()}return S},batchCalls:g=>(...S)=>{p(()=>{g(...S)})},schedule:p,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{u=g},setScheduler:g=>{f=g}}}var xo=b6(),dx=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),r6(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(g1?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},S6=class extends dx{#e;#t;#n;#a;#o;#l;#i;constructor(t){super(),this.#i=!1,this.#l=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#a=t.client,this.#n=this.#a.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=w6(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(t){this.options={...this.#l,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,a){const i=c6(this.state.data,t,this.options);return this.#r({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(t,a){this.#r({type:"setState",state:t,setStateOptions:a})}cancel(t){const a=this.#o?.promise;return this.#o?.cancel(t),a?a.then(Ll).catch(Ll):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>i6(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===y1||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_T(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!l6(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(this.#o&&(this.#i?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}fetch(t,a){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(b=>b.options.queryFn);S&&this.setOptions(S.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=new AbortController,u=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(this.#i=!0,i.signal)})},f=()=>{const S=ix(this.options,a),E=(()=>{const T={client:this.#a,queryKey:this.queryKey,meta:this.meta};return u(T),T})();return this.#i=!1,this.options.persister?this.options.persister(S,E,this):S(E)},y=(()=>{const S={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:f};return u(S),S})();this.options.behavior?.onFetch(y,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==y.fetchOptions?.meta)&&this.#r({type:"fetch",meta:y.fetchOptions?.meta});const g=S=>{zT(S)&&S.silent||this.#r({type:"error",error:S}),zT(S)||(this.#n.config.onError?.(S,this),this.#n.config.onSettled?.(this.state.data,S,this)),this.scheduleGc()};return this.#o=fx({initialPromise:a?.initialPromise,fn:y.fetchFn,abort:i.abort.bind(i),onSuccess:S=>{if(S===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),g(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(S)}catch(b){g(b);return}this.#n.config.onSuccess?.(S,this),this.#n.config.onSettled?.(S,this.state.error,this),this.scheduleGc()},onError:g,onFail:(S,b)=>{this.#r({type:"failed",failureCount:S,error:b})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0}),this.#o.start()}#r(t){const a=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...E6(i.data,this.options),fetchMeta:t.meta??null};case"success":return this.#t=void 0,{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const u=t.error;return zT(u)&&u.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...i,error:u,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=a(this.state),xo.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function E6(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sx(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function w6(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,i=a!==void 0,u=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var T6=class extends My{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,a,i){const u=a.queryKey,f=a.queryHash??AT(u,a);let p=this.get(f);return p||(p=new S6({client:t,queryKey:u,queryHash:f,options:t.defaultQueryOptions(a),state:i,defaultOptions:t.getQueryDefaults(u)}),this.add(p)),p}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=this.#e.get(t.queryHash);a&&(t.destroy(),a===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xo.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const a={exact:!0,...t};return this.getAll().find(i=>ax(a,i))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(i=>ax(t,i)):a}notify(t){xo.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){xo.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xo.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},R6=class extends dx{#e;#t;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#e=[],this.state=t.state||hx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(a=>a!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const a=()=>{this.#a({type:"continue"})};this.#n=fx({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(f,p)=>{this.#a({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const i=this.state.status==="pending",u=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:t,isPaused:u}),await this.#t.config.onMutate?.(t,this);const p=await this.options.onMutate?.(t);p!==this.state.context&&this.#a({type:"pending",context:p,variables:t,isPaused:u})}const f=await this.#n.start();return await this.#t.config.onSuccess?.(f,t,this.state.context,this),await this.options.onSuccess?.(f,t,this.state.context),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,t,this.state.context),this.#a({type:"success",data:f}),f}catch(f){try{throw await this.#t.config.onError?.(f,t,this.state.context,this),await this.options.onError?.(f,t,this.state.context),await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,t,this.state.context),f}finally{this.#a({type:"error",error:f})}}finally{this.#t.runNext(this)}}#a(t){const a=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),xo.batch(()=>{this.#e.forEach(i=>{i.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function hx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var O6=class extends My{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,a,i){const u=new R6({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(a),state:i});return this.add(u),u}add(t){this.#e.add(t);const a=b1(t);if(typeof a=="string"){const i=this.#t.get(a);i?i.push(t):this.#t.set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const a=b1(t);if(typeof a=="string"){const i=this.#t.get(a);if(i)if(i.length>1){const u=i.indexOf(t);u!==-1&&i.splice(u,1)}else i[0]===t&&this.#t.delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=b1(t);if(typeof a=="string"){const u=this.#t.get(a)?.find(f=>f.state.status==="pending");return!u||u===t}else return!0}runNext(t){const a=b1(t);return typeof a=="string"?this.#t.get(a)?.find(u=>u!==t&&u.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){xo.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const a={exact:!0,...t};return this.getAll().find(i=>ox(a,i))}findAll(t={}){return this.getAll().filter(a=>ox(t,a))}notify(t){xo.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return xo.batch(()=>Promise.all(t.map(a=>a.continue().catch(Ll))))}};function b1(t){return t.options.scope?.id}function px(t){return{onFetch:(a,i)=>{const u=a.options,f=a.fetchOptions?.meta?.fetchMore?.direction,p=a.state.data?.pages||[],y=a.state.data?.pageParams||[];let g={pages:[],pageParams:[]},S=0;const b=async()=>{let E=!1;const T=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(a.signal.aborted?E=!0:a.signal.addEventListener("abort",()=>{E=!0}),a.signal)})},O=ix(a.options,a.fetchOptions),_=async(A,D,N)=>{if(E)return Promise.reject();if(D==null&&A.pages.length)return Promise.resolve(A);const q=(()=>{const Z={client:a.client,queryKey:a.queryKey,pageParam:D,direction:N?"backward":"forward",meta:a.options.meta};return T(Z),Z})(),I=await O(q),{maxPages:Y}=a.options,H=N?d6:f6;return{pages:H(A.pages,I,Y),pageParams:H(A.pageParams,D,Y)}};if(f&&p.length){const A=f==="backward",D=A?C6:mx,N={pages:p,pageParams:y},M=D(u,N);g=await _(N,M,A)}else{const A=t??p.length;do{const D=S===0?y[0]??u.initialPageParam:mx(u,g);if(S>0&&D==null)break;g=await _(g,D),S++}while(S<A)}return g};a.options.persister?a.fetchFn=()=>a.options.persister?.(b,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=b}}}function mx(t,{pages:a,pageParams:i}){const u=a.length-1;return a.length>0?t.getNextPageParam(a[u],a,i[u],i):void 0}function C6(t,{pages:a,pageParams:i}){return a.length>0?t.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var x6=class{#e;#t;#n;#a;#o;#l;#i;#r;constructor(t={}){this.#e=t.queryCache||new T6,this.#t=t.mutationCache||new O6,this.#n=t.defaultOptions||{},this.#a=new Map,this.#o=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#i=ux.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=v1.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#i?.(),this.#i=void 0,this.#r?.(),this.#r=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const a=this.defaultQueryOptions({queryKey:t});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),i=this.#e.build(this,a),u=i.state.data;return u===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(_T(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(u))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:a,state:i})=>{const u=i.data;return[a,u]})}setQueryData(t,a,i){const u=this.defaultQueryOptions({queryKey:t}),p=this.#e.get(u.queryHash)?.state.data,y=o6(a,p);if(y!==void 0)return this.#e.build(this,u).setData(y,{...i,manual:!0})}setQueriesData(t,a,i){return xo.batch(()=>this.#e.findAll(t).map(({queryKey:u})=>[u,this.setQueryData(u,a,i)]))}getQueryState(t){const a=this.defaultQueryOptions({queryKey:t});return this.#e.get(a.queryHash)?.state}removeQueries(t){const a=this.#e;xo.batch(()=>{a.findAll(t).forEach(i=>{a.remove(i)})})}resetQueries(t,a){const i=this.#e;return xo.batch(()=>(i.findAll(t).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const i={revert:!0,...a},u=xo.batch(()=>this.#e.findAll(t).map(f=>f.cancel(i)));return Promise.all(u).then(Ll).catch(Ll)}invalidateQueries(t,a={}){return xo.batch(()=>(this.#e.findAll(t).forEach(i=>{i.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},a)))}refetchQueries(t,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},u=xo.batch(()=>this.#e.findAll(t).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let p=f.fetch(void 0,i);return i.throwOnError||(p=p.catch(Ll)),f.state.fetchStatus==="paused"?Promise.resolve():p}));return Promise.all(u).then(Ll)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const i=this.#e.build(this,a);return i.isStaleByTime(_T(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ll).catch(Ll)}fetchInfiniteQuery(t){return t.behavior=px(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ll).catch(Ll)}ensureInfiniteQueryData(t){return t.behavior=px(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return v1.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,a){this.#a.set(Od(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...this.#a.values()],i={};return a.forEach(u=>{zy(t,u.queryKey)&&Object.assign(i,u.defaultOptions)}),i}setMutationDefaults(t,a){this.#o.set(Od(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...this.#o.values()],i={};return a.forEach(u=>{zy(t,u.mutationKey)&&Object.assign(i,u.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const a={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=AT(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===y1&&(a.enabled=!1),a}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},_6=class extends My{#e;#t=void 0;#n;#a;constructor(a,i){super(),this.#e=a,this.setOptions(i),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const i=this.options;this.options=this.#e.defaultMutationOptions(a),u6(this.options,i)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Od(i.mutationKey)!==Od(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#o(),this.#l(a)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#l()}mutate(a,i){return this.#a=i,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(a)}#o(){const a=this.#n?.state??hx();this.#t={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#l(a){xo.batch(()=>{if(this.#a&&this.hasListeners()){const i=this.#t.variables,u=this.#t.context;a?.type==="success"?(this.#a.onSuccess?.(a.data,i,u),this.#a.onSettled?.(a.data,null,i,u)):a?.type==="error"&&(this.#a.onError?.(a.error,i,u),this.#a.onSettled?.(void 0,a.error,i,u))}this.listeners.forEach(i=>{i(this.#t)})})}},x=du();const ot=c1(x),S1=Oy({__proto__:null,default:ot},[x]);var gx=x.createContext(void 0),A6=t=>{const a=x.useContext(gx);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},D6=({client:t,children:a})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),P.jsx(gx.Provider,{value:t,children:a}));function zp(t,a){const i=A6(),[u]=x.useState(()=>new _6(i,t));x.useEffect(()=>{u.setOptions(t)},[u,t]);const f=x.useSyncExternalStore(x.useCallback(y=>u.subscribe(xo.batchCalls(y)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p=x.useCallback((y,g)=>{u.mutate(y,g).catch(Ll)},[u]);if(f.error&&h6(u.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:p,mutateAsync:f.mutate}}var Ai=function(){return Ai=Object.assign||function(a){for(var i,u=1,f=arguments.length;u<f;u++){i=arguments[u];for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&(a[p]=i[p])}return a},Ai.apply(this,arguments)};function yx(t,a){var i={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&a.indexOf(u)<0&&(i[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,u=Object.getOwnPropertySymbols(t);f<u.length;f++)a.indexOf(u[f])<0&&Object.prototype.propertyIsEnumerable.call(t,u[f])&&(i[u[f]]=t[u[f]]);return i}function hu(t,a,i,u){function f(p){return p instanceof i?p:new i(function(y){y(p)})}return new(i||(i=Promise))(function(p,y){function g(E){try{b(u.next(E))}catch(T){y(T)}}function S(E){try{b(u.throw(E))}catch(T){y(T)}}function b(E){E.done?p(E.value):f(E.value).then(g,S)}b((u=u.apply(t,a||[])).next())})}function pu(t,a){var i={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},u,f,p,y=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return y.next=g(0),y.throw=g(1),y.return=g(2),typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function g(b){return function(E){return S([b,E])}}function S(b){if(u)throw new TypeError("Generator is already executing.");for(;y&&(y=0,b[0]&&(i=0)),i;)try{if(u=1,f&&(p=b[0]&2?f.return:b[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,b[1])).done)return p;switch(f=0,p&&(b=[b[0]&2,p.value]),b[0]){case 0:case 1:p=b;break;case 4:return i.label++,{value:b[1],done:!1};case 5:i.label++,f=b[1],b=[0];continue;case 7:b=i.ops.pop(),i.trys.pop();continue;default:if(p=i.trys,!(p=p.length>0&&p[p.length-1])&&(b[0]===6||b[0]===2)){i=0;continue}if(b[0]===3&&(!p||b[1]>p[0]&&b[1]<p[3])){i.label=b[1];break}if(b[0]===6&&i.label<p[1]){i.label=p[1],p=b;break}if(p&&i.label<p[2]){i.label=p[2],i.ops.push(b);break}p[2]&&i.ops.pop(),i.trys.pop();continue}b=a.call(t,i)}catch(E){b=[6,E],f=0}finally{u=p=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}function M6(t,a){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var u=i.call(t),f,p=[],y;try{for(;(a===void 0||a-- >0)&&!(f=u.next()).done;)p.push(f.value)}catch(g){y={error:g}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(y)throw y.error}}return p}function NT(t,a,i){if(i||arguments.length===2)for(var u=0,f=a.length,p;u<f;u++)(p||!(u in a))&&(p||(p=Array.prototype.slice.call(a,0,u)),p[u]=a[u]);return t.concat(p||Array.prototype.slice.call(a))}typeof SuppressedError=="function"&&SuppressedError;var vx="4.6.2";function E1(t,a){return new Promise(function(i){return setTimeout(i,t,a)})}function z6(){return new Promise(function(t){var a=new MessageChannel;a.port1.onmessage=function(){return t()},a.port2.postMessage(null)})}function N6(t,a){a===void 0&&(a=1/0);var i=window.requestIdleCallback;return i?new Promise(function(u){return i.call(window,function(){return u()},{timeout:a})}):E1(Math.min(t,a))}function bx(t){return!!t&&typeof t.then=="function"}function Sx(t,a){try{var i=t();bx(i)?i.then(function(u){return a(!0,u)},function(u){return a(!1,u)}):a(!0,i)}catch(u){a(!1,u)}}function Ex(t,a,i){return i===void 0&&(i=16),hu(this,void 0,void 0,function(){var u,f,p,y;return pu(this,function(g){switch(g.label){case 0:u=Array(t.length),f=Date.now(),p=0,g.label=1;case 1:return p<t.length?(u[p]=a(t[p],p),y=Date.now(),y>=f+i?(f=y,[4,z6()]):[3,3]):[3,4];case 2:g.sent(),g.label=3;case 3:return++p,[3,1];case 4:return[2,u]}})})}function Ny(t){return t.then(void 0,function(){}),t}function U6(t,a){for(var i=0,u=t.length;i<u;++i)if(t[i]===a)return!0;return!1}function j6(t,a){return!U6(t,a)}function UT(t){return parseInt(t)}function Di(t){return parseFloat(t)}function ss(t,a){return typeof t=="number"&&isNaN(t)?a:t}function ir(t){return t.reduce(function(a,i){return a+(i?1:0)},0)}function wx(t,a){if(a===void 0&&(a=1),Math.abs(a)>=1)return Math.round(t/a)*a;var i=1/a;return Math.round(t*i)/i}function L6(t){for(var a,i,u="Unexpected syntax '".concat(t,"'"),f=/^\s*([a-z-]*)(.*)$/i.exec(t),p=f[1]||void 0,y={},g=/([.:#][\w-]+|\[.+?\])/gi,S=function(O,_){y[O]=y[O]||[],y[O].push(_)};;){var b=g.exec(f[2]);if(!b)break;var E=b[0];switch(E[0]){case".":S("class",E.slice(1));break;case"#":S("id",E.slice(1));break;case"[":{var T=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(E);if(T)S(T[1],(i=(a=T[4])!==null&&a!==void 0?a:T[5])!==null&&i!==void 0?i:"");else throw new Error(u);break}default:throw new Error(u)}}return[p,y]}function H6(t){for(var a=new Uint8Array(t.length),i=0;i<t.length;i++){var u=t.charCodeAt(i);if(u>127)return new TextEncoder().encode(t);a[i]=u}return a}function zc(t,a){var i=t[0]>>>16,u=t[0]&65535,f=t[1]>>>16,p=t[1]&65535,y=a[0]>>>16,g=a[0]&65535,S=a[1]>>>16,b=a[1]&65535,E=0,T=0,O=0,_=0;_+=p+b,O+=_>>>16,_&=65535,O+=f+S,T+=O>>>16,O&=65535,T+=u+g,E+=T>>>16,T&=65535,E+=i+y,E&=65535,t[0]=E<<16|T,t[1]=O<<16|_}function Hl(t,a){var i=t[0]>>>16,u=t[0]&65535,f=t[1]>>>16,p=t[1]&65535,y=a[0]>>>16,g=a[0]&65535,S=a[1]>>>16,b=a[1]&65535,E=0,T=0,O=0,_=0;_+=p*b,O+=_>>>16,_&=65535,O+=f*b,T+=O>>>16,O&=65535,O+=p*S,T+=O>>>16,O&=65535,T+=u*b,E+=T>>>16,T&=65535,T+=f*S,E+=T>>>16,T&=65535,T+=p*g,E+=T>>>16,T&=65535,E+=i*b+u*S+f*g+p*y,E&=65535,t[0]=E<<16|T,t[1]=O<<16|_}function Np(t,a){var i=t[0];a%=64,a===32?(t[0]=t[1],t[1]=i):a<32?(t[0]=i<<a|t[1]>>>32-a,t[1]=t[1]<<a|i>>>32-a):(a-=32,t[0]=t[1]<<a|i>>>32-a,t[1]=i<<a|t[1]>>>32-a)}function el(t,a){a%=64,a!==0&&(a<32?(t[0]=t[1]>>>32-a,t[1]=t[1]<<a):(t[0]=t[1]<<a-32,t[1]=0))}function ca(t,a){t[0]^=a[0],t[1]^=a[1]}var k6=[4283543511,3981806797],V6=[3301882366,444984403];function Tx(t){var a=[0,t[0]>>>1];ca(t,a),Hl(t,k6),a[1]=t[0]>>>1,ca(t,a),Hl(t,V6),a[1]=t[0]>>>1,ca(t,a)}var w1=[2277735313,289559509],T1=[1291169091,658871167],Rx=[0,5],B6=[0,1390208809],G6=[0,944331445];function Y6(t,a){var i=H6(t);a=a||0;var u=[0,i.length],f=u[1]%16,p=u[1]-f,y=[0,a],g=[0,a],S=[0,0],b=[0,0],E;for(E=0;E<p;E=E+16)S[0]=i[E+4]|i[E+5]<<8|i[E+6]<<16|i[E+7]<<24,S[1]=i[E]|i[E+1]<<8|i[E+2]<<16|i[E+3]<<24,b[0]=i[E+12]|i[E+13]<<8|i[E+14]<<16|i[E+15]<<24,b[1]=i[E+8]|i[E+9]<<8|i[E+10]<<16|i[E+11]<<24,Hl(S,w1),Np(S,31),Hl(S,T1),ca(y,S),Np(y,27),zc(y,g),Hl(y,Rx),zc(y,B6),Hl(b,T1),Np(b,33),Hl(b,w1),ca(g,b),Np(g,31),zc(g,y),Hl(g,Rx),zc(g,G6);S[0]=0,S[1]=0,b[0]=0,b[1]=0;var T=[0,0];switch(f){case 15:T[1]=i[E+14],el(T,48),ca(b,T);case 14:T[1]=i[E+13],el(T,40),ca(b,T);case 13:T[1]=i[E+12],el(T,32),ca(b,T);case 12:T[1]=i[E+11],el(T,24),ca(b,T);case 11:T[1]=i[E+10],el(T,16),ca(b,T);case 10:T[1]=i[E+9],el(T,8),ca(b,T);case 9:T[1]=i[E+8],ca(b,T),Hl(b,T1),Np(b,33),Hl(b,w1),ca(g,b);case 8:T[1]=i[E+7],el(T,56),ca(S,T);case 7:T[1]=i[E+6],el(T,48),ca(S,T);case 6:T[1]=i[E+5],el(T,40),ca(S,T);case 5:T[1]=i[E+4],el(T,32),ca(S,T);case 4:T[1]=i[E+3],el(T,24),ca(S,T);case 3:T[1]=i[E+2],el(T,16),ca(S,T);case 2:T[1]=i[E+1],el(T,8),ca(S,T);case 1:T[1]=i[E],ca(S,T),Hl(S,w1),Np(S,31),Hl(S,T1),ca(y,S)}return ca(y,u),ca(g,u),zc(y,g),zc(g,y),Tx(y),Tx(g),zc(y,g),zc(g,y),("00000000"+(y[0]>>>0).toString(16)).slice(-8)+("00000000"+(y[1]>>>0).toString(16)).slice(-8)+("00000000"+(g[0]>>>0).toString(16)).slice(-8)+("00000000"+(g[1]>>>0).toString(16)).slice(-8)}function I6(t){var a;return Ai({name:t.name,message:t.message,stack:(a=t.stack)===null||a===void 0?void 0:a.split(`
245
+ `)},t)}function q6(t){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))}function $6(t){return typeof t!="function"}function Z6(t,a){var i=Ny(new Promise(function(u){var f=Date.now();Sx(t.bind(null,a),function(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];var g=Date.now()-f;if(!p[0])return u(function(){return{error:p[1],duration:g}});var S=p[1];if($6(S))return u(function(){return{value:S,duration:g}});u(function(){return new Promise(function(b){var E=Date.now();Sx(S,function(){for(var T=[],O=0;O<arguments.length;O++)T[O]=arguments[O];var _=g+Date.now()-E;if(!T[0])return b({error:T[1],duration:_});b({value:T[1],duration:_})})})})})}));return function(){return i.then(function(f){return f()})}}function X6(t,a,i,u){var f=Object.keys(t).filter(function(y){return j6(i,y)}),p=Ny(Ex(f,function(y){return Z6(t[y],a)},u));return function(){return hu(this,void 0,void 0,function(){var g,S,b,E,T;return pu(this,function(O){switch(O.label){case 0:return[4,p];case 1:return g=O.sent(),[4,Ex(g,function(_){return Ny(_())},u)];case 2:return S=O.sent(),[4,Promise.all(S)];case 3:for(b=O.sent(),E={},T=0;T<f.length;++T)E[f[T]]=b[T];return[2,E]}})})}}function Ox(){var t=window,a=navigator;return ir(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in a,"msPointerEnabled"in a])>=4}function P6(){var t=window,a=navigator;return ir(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in a,"msSaveBlob"in a])>=3&&!Ox()}function Uy(){var t=window,a=navigator;return ir(["webkitPersistentStorage"in a,"webkitTemporaryStorage"in a,(a.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function Mi(){var t=window,a=navigator;return ir(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,a.vendor.indexOf("Apple")===0,"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function jT(){var t=window,a=t.HTMLElement,i=t.Document;return ir(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),a&&!("autocapitalize"in a.prototype),i&&"pointerLockElement"in i.prototype])>=4}function jy(){var t=window;return q6(t.print)&&String(t.browser)==="[object WebPageNamespace]"}function Cx(){var t,a,i=window;return ir(["buildID"in navigator,"MozAppearance"in((a=(t=document.documentElement)===null||t===void 0?void 0:t.style)!==null&&a!==void 0?a:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function F6(){var t=window;return ir([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}function Q6(){var t=window,a=t.URLPattern;return ir(["union"in Set.prototype,"Iterator"in t,a&&"hasRegExpGroups"in a.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function J6(){var t=window;return ir(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}function Ly(){var t=window,a=navigator,i=t.CSS,u=t.HTMLButtonElement;return ir([!("getStorageUpdates"in a),u&&"popover"in u.prototype,"CSSCounterStyleRule"in t,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function K6(){if(navigator.platform==="iPad")return!0;var t=screen,a=t.width/t.height;return ir(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,a>.65&&a<1.53])>=2}function W6(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function e5(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function LT(){var t=Uy(),a=Cx(),i=window,u=navigator,f="connection";return t?ir([!("SharedWorker"in i),u[f]&&"ontypechange"in u[f],!("sinkId"in new Audio)])>=2:a?ir(["onorientationchange"in i,"orientation"in i,/android/i.test(u.appVersion)])>=2:!1}function t5(){var t=navigator,a=window,i=Audio.prototype,u=a.visualViewport;return ir(["srLatency"in i,"srChannelCount"in i,"devicePosture"in t,u&&"segments"in u,"getTextInformation"in Image.prototype])>=3}function n5(){return r5()?-4:a5()}function a5(){var t=window,a=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!a)return-2;if(o5())return-1;var i=4500,u=5e3,f=new a(1,u,44100),p=f.createOscillator();p.type="triangle",p.frequency.value=1e4;var y=f.createDynamicsCompressor();y.threshold.value=-50,y.knee.value=40,y.ratio.value=12,y.attack.value=0,y.release.value=.25,p.connect(y),y.connect(f.destination),p.start(0);var g=l5(f),S=g[0],b=g[1],E=Ny(S.then(function(T){return i5(T.getChannelData(0).subarray(i))},function(T){if(T.name==="timeout"||T.name==="suspended")return-3;throw T}));return function(){return b(),E}}function o5(){return Mi()&&!jT()&&!J6()}function r5(){return Mi()&&Ly()&&jy()||Uy()&&t5()&&Q6()}function l5(t){var a=3,i=500,u=500,f=5e3,p=function(){},y=new Promise(function(g,S){var b=!1,E=0,T=0;t.oncomplete=function(A){return g(A.renderedBuffer)};var O=function(){setTimeout(function(){return S(xx("timeout"))},Math.min(u,T+f-Date.now()))},_=function(){try{var A=t.startRendering();switch(bx(A)&&Ny(A),t.state){case"running":T=Date.now(),b&&O();break;case"suspended":document.hidden||E++,b&&E>=a?S(xx("suspended")):setTimeout(_,i);break}}catch(D){S(D)}};_(),p=function(){b||(b=!0,T>0&&O())}});return[y,p]}function i5(t){for(var a=0,i=0;i<t.length;++i)a+=Math.abs(t[i]);return a}function xx(t){var a=new Error(t);return a.name=t,a}function _x(t,a,i){var u,f,p;return i===void 0&&(i=50),hu(this,void 0,void 0,function(){var y,g;return pu(this,function(S){switch(S.label){case 0:y=document,S.label=1;case 1:return y.body?[3,3]:[4,E1(i)];case 2:return S.sent(),[3,1];case 3:g=y.createElement("iframe"),S.label=4;case 4:return S.trys.push([4,,10,11]),[4,new Promise(function(b,E){var T=!1,O=function(){T=!0,b()},_=function(N){T=!0,E(N)};g.onload=O,g.onerror=_;var A=g.style;A.setProperty("display","block","important"),A.position="absolute",A.top="0",A.left="0",A.visibility="hidden",a&&"srcdoc"in g?g.srcdoc=a:g.src="about:blank",y.body.appendChild(g);var D=function(){var N,M;T||(((M=(N=g.contentWindow)===null||N===void 0?void 0:N.document)===null||M===void 0?void 0:M.readyState)==="complete"?O():setTimeout(D,10))};D()})];case 5:S.sent(),S.label=6;case 6:return!((f=(u=g.contentWindow)===null||u===void 0?void 0:u.document)===null||f===void 0)&&f.body?[3,8]:[4,E1(i)];case 7:return S.sent(),[3,6];case 8:return[4,t(g,g.contentWindow)];case 9:return[2,S.sent()];case 10:return(p=g.parentNode)===null||p===void 0||p.removeChild(g),[7];case 11:return[2]}})})}function u5(t){for(var a=L6(t),i=a[0],u=a[1],f=document.createElement(i??"div"),p=0,y=Object.keys(u);p<y.length;p++){var g=y[p],S=u[g].join(" ");g==="style"?s5(f.style,S):f.setAttribute(g,S)}return f}function s5(t,a){for(var i=0,u=a.split(";");i<u.length;i++){var f=u[i],p=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(f);if(p){var y=p[1],g=p[2],S=p[4];t.setProperty(y,g,S||"")}}}function c5(){for(var t=window;;){var a=t.parent;if(!a||a===t)return!1;try{if(a.location.origin!==t.location.origin)return!0}catch(i){if(i instanceof Error&&i.name==="SecurityError")return!0;throw i}t=a}}var f5="mmMwWLliI0O&1",d5="48px",Up=["monospace","sans-serif","serif"],Ax=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function h5(){var t=this;return _x(function(a,i){var u=i.document;return hu(t,void 0,void 0,function(){var f,p,y,g,S,b,E,T,O,_,A,D;return pu(this,function(N){for(f=u.body,f.style.fontSize=d5,p=u.createElement("div"),p.style.setProperty("visibility","hidden","important"),y={},g={},S=function(M){var q=u.createElement("span"),I=q.style;return I.position="absolute",I.top="0",I.left="0",I.fontFamily=M,q.textContent=f5,p.appendChild(q),q},b=function(M,q){return S("'".concat(M,"',").concat(q))},E=function(){return Up.map(S)},T=function(){for(var M={},q=function(Z){M[Z]=Up.map(function(V){return b(Z,V)})},I=0,Y=Ax;I<Y.length;I++){var H=Y[I];q(H)}return M},O=function(M){return Up.some(function(q,I){return M[I].offsetWidth!==y[q]||M[I].offsetHeight!==g[q]})},_=E(),A=T(),f.appendChild(p),D=0;D<Up.length;D++)y[Up[D]]=_[D].offsetWidth,g[Up[D]]=_[D].offsetHeight;return[2,Ax.filter(function(M){return O(A[M])})]})})})}function p5(){var t=navigator.plugins;if(t){for(var a=[],i=0;i<t.length;++i){var u=t[i];if(u){for(var f=[],p=0;p<u.length;++p){var y=u[p];f.push({type:y.type,suffixes:y.suffixes})}a.push({name:u.name,description:u.description,mimeTypes:f})}}return a}}function m5(){return g5(T5())}function g5(t){var a,i=!1,u,f,p=y5(),y=p[0],g=p[1];return v5(y,g)?(i=b5(g),t?u=f="skipped":(a=S5(y,g),u=a[0],f=a[1])):u=f="unsupported",{winding:i,geometry:u,text:f}}function y5(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}function v5(t,a){return!!(a&&t.toDataURL)}function b5(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}function S5(t,a){E5(t,a);var i=HT(t),u=HT(t);if(i!==u)return["unstable","unstable"];w5(t,a);var f=HT(t);return[f,i]}function E5(t,a){t.width=240,t.height=60,a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(100,1,62,20),a.fillStyle="#069",a.font='11pt "Times New Roman"';var i="Cwm fjordbank gly ".concat("😃");a.fillText(i,2,15),a.fillStyle="rgba(102, 204, 0, 0.2)",a.font="18pt Arial",a.fillText(i,4,45)}function w5(t,a){t.width=122,t.height=110,a.globalCompositeOperation="multiply";for(var i=0,u=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];i<u.length;i++){var f=u[i],p=f[0],y=f[1],g=f[2];a.fillStyle=p,a.beginPath(),a.arc(y,g,40,0,Math.PI*2,!0),a.closePath(),a.fill()}a.fillStyle="#f9c",a.arc(60,60,60,0,Math.PI*2,!0),a.arc(60,60,20,0,Math.PI*2,!0),a.fill("evenodd")}function HT(t){return t.toDataURL()}function T5(){return Mi()&&Ly()&&jy()}function R5(){var t=navigator,a=0,i;t.maxTouchPoints!==void 0?a=UT(t.maxTouchPoints):t.msMaxTouchPoints!==void 0&&(a=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),i=!0}catch{i=!1}var u="ontouchstart"in window;return{maxTouchPoints:a,touchEvent:i,touchStart:u}}function O5(){return navigator.oscpu}function C5(){var t=navigator,a=[],i=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(i!==void 0&&a.push([i]),Array.isArray(t.languages))Uy()&&F6()||a.push(t.languages);else if(typeof t.languages=="string"){var u=t.languages;u&&a.push(u.split(","))}return a}function x5(){return window.screen.colorDepth}function _5(){return ss(Di(navigator.deviceMemory),void 0)}function A5(){if(!(Mi()&&Ly()&&jy()))return D5()}function D5(){var t=screen,a=function(u){return ss(UT(u),null)},i=[a(t.width),a(t.height)];return i.sort().reverse(),i}var M5=2500,z5=10,R1,kT;function N5(){if(kT===void 0){var t=function(){var a=VT();BT(a)?kT=setTimeout(t,M5):(R1=a,kT=void 0)};t()}}function U5(){var t=this;return N5(),function(){return hu(t,void 0,void 0,function(){var a;return pu(this,function(i){switch(i.label){case 0:return a=VT(),BT(a)?R1?[2,NT([],R1,!0)]:W6()?[4,e5()]:[3,2]:[3,2];case 1:i.sent(),a=VT(),i.label=2;case 2:return BT(a)||(R1=a),[2,a]}})})}}function j5(){var t=this;if(Mi()&&Ly()&&jy())return function(){return Promise.resolve(void 0)};var a=U5();return function(){return hu(t,void 0,void 0,function(){var i,u;return pu(this,function(f){switch(f.label){case 0:return[4,a()];case 1:return i=f.sent(),u=function(p){return p===null?null:wx(p,z5)},[2,[u(i[0]),u(i[1]),u(i[2]),u(i[3])]]}})})}}function VT(){var t=screen;return[ss(Di(t.availTop),null),ss(Di(t.width)-Di(t.availWidth)-ss(Di(t.availLeft),0),null),ss(Di(t.height)-Di(t.availHeight)-ss(Di(t.availTop),0),null),ss(Di(t.availLeft),null)]}function BT(t){for(var a=0;a<4;++a)if(t[a])return!1;return!0}function L5(){return ss(UT(navigator.hardwareConcurrency),void 0)}function H5(){var t,a=(t=window.Intl)===null||t===void 0?void 0:t.DateTimeFormat;if(a){var i=new a().resolvedOptions().timeZone;if(i)return i}var u=-k5();return"UTC".concat(u>=0?"+":"").concat(u)}function k5(){var t=new Date().getFullYear();return Math.max(Di(new Date(t,0,1).getTimezoneOffset()),Di(new Date(t,6,1).getTimezoneOffset()))}function V5(){try{return!!window.sessionStorage}catch{return!0}}function B5(){try{return!!window.localStorage}catch{return!0}}function G5(){if(!(Ox()||P6()))try{return!!window.indexedDB}catch{return!0}}function Y5(){return!!window.openDatabase}function I5(){return navigator.cpuClass}function q5(){var t=navigator.platform;return t==="MacIntel"&&Mi()&&!jT()?K6()?"iPad":"iPhone":t}function $5(){return navigator.vendor||""}function Z5(){for(var t=[],a=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];a<i.length;a++){var u=i[a],f=window[u];f&&typeof f=="object"&&t.push(u)}return t.sort()}function X5(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var a=t.cookie.indexOf("cookietest=")!==-1;return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",a}catch{return!1}}function P5(){var t=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',t("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",t("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",t("LnNwb25zb3JpdA=="),".ylamainos",t("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",t("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",t("LmhlYWRlci1ibG9ja2VkLWFk"),t("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",t("I2FkXzMwMFgyNTA="),t("I2Jhbm5lcmZsb2F0MjI="),t("I2NhbXBhaWduLWJhbm5lcg=="),t("I0FkLUNvbnRlbnQ=")],adGuardChinese:[t("LlppX2FkX2FfSA=="),t("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",t("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),t("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",t("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",t("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",t("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),t("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),t("LmFkZ29vZ2xl"),t("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[t("YW1wLWF1dG8tYWRz"),t("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",t("I2FkX2ludmlld19hcmVh")],adGuardRussian:[t("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),t("LnJlY2xhbWE="),'div[id^="smi2adblock"]',t("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[t("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),t("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",t("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),t("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),t("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",t("I3Jla2xhbWk="),t("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),t("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),t("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[t("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",t("LndpZGdldF9wb19hZHNfd2lkZ2V0"),t("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",t("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[t("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),t("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",t("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",t("I3Jla2xhbW5pLWJveA=="),t("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",t("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[t("I2FkdmVydGVudGll"),t("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",t("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",t("LnNwb25zb3JsaW5rZ3J1ZW4="),t("I3dlcmJ1bmdza3k="),t("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),t("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[t("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",t("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[t("LnJla2xhbW9zX3RhcnBhcw=="),t("LnJla2xhbW9zX251b3JvZG9z"),t("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),t("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),t("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[t("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[t("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),t("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",t("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[t("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),t("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),t("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",t("LmFkX19tYWlu"),t("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[t("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[t("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),t("I2xpdmVyZUFkV3JhcHBlcg=="),t("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),t("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[t("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",t("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),t("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),t("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[t("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),t("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),t("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",t("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),t("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),t("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),t("ZGl2I3NrYXBpZWNfYWQ=")],ro:[t("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),t("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[t("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),t("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),t("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",t("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),t("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",t("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function F5(t){var a=t===void 0?{}:t,i=a.debug;return hu(this,void 0,void 0,function(){var u,f,p,y,g,S;return pu(this,function(b){switch(b.label){case 0:return Q5()?(u=P5(),f=Object.keys(u),p=(S=[]).concat.apply(S,f.map(function(E){return u[E]})),[4,J5(p)]):[2,void 0];case 1:return y=b.sent(),i&&K5(u,y),g=f.filter(function(E){var T=u[E],O=ir(T.map(function(_){return y[_]}));return O>T.length*.6}),g.sort(),[2,g]}})})}function Q5(){return Mi()||LT()}function J5(t){var a;return hu(this,void 0,void 0,function(){var i,u,f,p,S,y,g,S;return pu(this,function(b){switch(b.label){case 0:for(i=document,u=i.createElement("div"),f=new Array(t.length),p={},Dx(u),S=0;S<t.length;++S)y=u5(t[S]),y.tagName==="DIALOG"&&y.show(),g=i.createElement("div"),Dx(g),g.appendChild(y),u.appendChild(g),f[S]=y;b.label=1;case 1:return i.body?[3,3]:[4,E1(50)];case 2:return b.sent(),[3,1];case 3:i.body.appendChild(u);try{for(S=0;S<t.length;++S)f[S].offsetParent||(p[t[S]]=!0)}finally{(a=u.parentNode)===null||a===void 0||a.removeChild(u)}return[2,p]}})})}function Dx(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function K5(t,a){for(var i="DOM blockers debug:\n```",u=0,f=Object.keys(t);u<f.length;u++){var p=f[u];i+=`
246
+ `.concat(p,":");for(var y=0,g=t[p];y<g.length;y++){var S=g[y];i+=`
247
+ `.concat(a[S]?"🚫":"➡️"," ").concat(S)}}console.log("".concat(i,"\n```"))}function W5(){for(var t=0,a=["rec2020","p3","srgb"];t<a.length;t++){var i=a[t];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}}function e8(){if(Mx("inverted"))return!0;if(Mx("none"))return!1}function Mx(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function t8(){if(zx("active"))return!0;if(zx("none"))return!1}function zx(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}var n8=100;function a8(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=n8;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}}function o8(){if(jp("no-preference"))return 0;if(jp("high")||jp("more"))return 1;if(jp("low")||jp("less"))return-1;if(jp("forced"))return 10}function jp(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function r8(){if(Nx("reduce"))return!0;if(Nx("no-preference"))return!1}function Nx(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function l8(){if(Ux("reduce"))return!0;if(Ux("no-preference"))return!1}function Ux(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function i8(){if(jx("high"))return!0;if(jx("standard"))return!1}function jx(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var Mn=Math,ur=function(){return 0};function u8(){var t=Mn.acos||ur,a=Mn.acosh||ur,i=Mn.asin||ur,u=Mn.asinh||ur,f=Mn.atanh||ur,p=Mn.atan||ur,y=Mn.sin||ur,g=Mn.sinh||ur,S=Mn.cos||ur,b=Mn.cosh||ur,E=Mn.tan||ur,T=Mn.tanh||ur,O=Mn.exp||ur,_=Mn.expm1||ur,A=Mn.log1p||ur,D=function(X){return Mn.pow(Mn.PI,X)},N=function(X){return Mn.log(X+Mn.sqrt(X*X-1))},M=function(X){return Mn.log(X+Mn.sqrt(X*X+1))},q=function(X){return Mn.log((1+X)/(1-X))/2},I=function(X){return Mn.exp(X)-1/Mn.exp(X)/2},Y=function(X){return(Mn.exp(X)+1/Mn.exp(X))/2},H=function(X){return Mn.exp(X)-1},Z=function(X){return(Mn.exp(2*X)-1)/(Mn.exp(2*X)+1)},V=function(X){return Mn.log(1+X)};return{acos:t(.12312423423423424),acosh:a(1e308),acoshPf:N(1e154),asin:i(.12312423423423424),asinh:u(1),asinhPf:M(1),atanh:f(.5),atanhPf:q(.5),atan:p(.5),sin:y(-1e300),sinh:g(1),sinhPf:I(1),cos:S(10.000000000123),cosh:b(1),coshPf:Y(1),tan:E(-1e300),tanh:T(1),tanhPf:Z(1),exp:O(1),expm1:_(1),expm1Pf:H(1),log1p:A(10),log1pPf:V(10),powPI:D(-100)}}var s8="mmMwWLliI0fiflO&1",GT={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function c8(){return f8(function(t,a){for(var i={},u={},f=0,p=Object.keys(GT);f<p.length;f++){var y=p[f],g=GT[y],S=g[0],b=S===void 0?{}:S,E=g[1],T=E===void 0?s8:E,O=t.createElement("span");O.textContent=T,O.style.whiteSpace="nowrap";for(var _=0,A=Object.keys(b);_<A.length;_++){var D=A[_],N=b[D];N!==void 0&&(O.style[D]=N)}i[y]=O,a.append(t.createElement("br"),O)}for(var M=0,q=Object.keys(GT);M<q.length;M++){var y=q[M];u[y]=i[y].getBoundingClientRect().width}return u})}function f8(t,a){return a===void 0&&(a=4e3),_x(function(i,u){var f=u.document,p=f.body,y=p.style;y.width="".concat(a,"px"),y.webkitTextSizeAdjust=y.textSizeAdjust="none",Uy()?p.style.zoom="".concat(1/u.devicePixelRatio):Mi()&&(p.style.zoom="reset");var g=f.createElement("div");return g.textContent=NT([],Array(a/20<<0),!0).map(function(){return"word"}).join(" "),p.appendChild(g),t(f,p)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function d8(){return navigator.pdfViewerEnabled}function h8(){var t=new Float32Array(1),a=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],a[3]}function p8(){var t=window.ApplePaySession;if(typeof t?.canMakePayments!="function")return-1;if(m8())return-3;try{return t.canMakePayments()?1:0}catch(a){return g8(a)}}var m8=c5;function g8(t){if(t instanceof Error&&t.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}function y8(){var t,a=document.createElement("a"),i=(t=a.attributionSourceId)!==null&&t!==void 0?t:a.attributionsourceid;return i===void 0?void 0:String(i)}var Lx=-1,Hx=-2,v8=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),b8=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),S8=["FRAGMENT_SHADER","VERTEX_SHADER"],E8=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],kx="WEBGL_debug_renderer_info",w8="WEBGL_polygon_mode";function T8(t){var a,i,u,f,p,y,g=t.cache,S=Vx(g);if(!S)return Lx;if(!Yx(S))return Hx;var b=Gx()?null:S.getExtension(kx);return{version:((a=S.getParameter(S.VERSION))===null||a===void 0?void 0:a.toString())||"",vendor:((i=S.getParameter(S.VENDOR))===null||i===void 0?void 0:i.toString())||"",vendorUnmasked:b?(u=S.getParameter(b.UNMASKED_VENDOR_WEBGL))===null||u===void 0?void 0:u.toString():"",renderer:((f=S.getParameter(S.RENDERER))===null||f===void 0?void 0:f.toString())||"",rendererUnmasked:b?(p=S.getParameter(b.UNMASKED_RENDERER_WEBGL))===null||p===void 0?void 0:p.toString():"",shadingLanguageVersion:((y=S.getParameter(S.SHADING_LANGUAGE_VERSION))===null||y===void 0?void 0:y.toString())||""}}function R8(t){var a=t.cache,i=Vx(a);if(!i)return Lx;if(!Yx(i))return Hx;var u=i.getSupportedExtensions(),f=i.getContextAttributes(),p=[],y=[],g=[],S=[],b=[];if(f)for(var E=0,T=Object.keys(f);E<T.length;E++){var O=T[E];y.push("".concat(O,"=").concat(f[O]))}for(var _=Bx(i),A=0,D=_;A<D.length;A++){var N=D[A],M=i[N];g.push("".concat(N,"=").concat(M).concat(v8.has(M)?"=".concat(i.getParameter(M)):""))}if(u)for(var q=0,I=u;q<I.length;q++){var Y=I[q];if(!(Y===kx&&Gx()||Y===w8&&x8())){var H=i.getExtension(Y);if(!H){p.push(Y);continue}for(var Z=0,V=Bx(H);Z<V.length;Z++){var N=V[Z],M=H[N];S.push("".concat(N,"=").concat(M).concat(b8.has(M)?"=".concat(i.getParameter(M)):""))}}}for(var X=0,le=S8;X<le.length;X++)for(var K=le[X],fe=0,ie=E8;fe<ie.length;fe++){var ee=ie[fe],te=O8(i,K,ee);b.push("".concat(K,".").concat(ee,"=").concat(te.join(",")))}return S.sort(),g.sort(),{contextAttributes:y,parameters:g,shaderPrecisions:b,extensions:u,extensionParameters:S,unsupportedExtensions:p}}function Vx(t){if(t.webgl)return t.webgl.context;var a=document.createElement("canvas"),i;a.addEventListener("webglCreateContextError",function(){return i=void 0});for(var u=0,f=["webgl","experimental-webgl"];u<f.length;u++){var p=f[u];try{i=a.getContext(p)}catch{}if(i)break}return t.webgl={context:i},i}function O8(t,a,i){var u=t.getShaderPrecisionFormat(t[a],t[i]);return u?[u.rangeMin,u.rangeMax,u.precision]:[]}function Bx(t){var a=Object.keys(t.__proto__);return a.filter(C8)}function C8(t){return typeof t=="string"&&!t.match(/[^A-Z0-9_x]/)}function Gx(){return Cx()}function x8(){return Uy()||Mi()}function Yx(t){return typeof t.getParameter=="function"}function _8(){var t=LT()||Mi();if(!t)return-2;if(!window.AudioContext)return-1;var a=new AudioContext().baseLatency;return a==null?-1:isFinite(a)?a:-3}function A8(){if(!window.Intl)return-1;var t=window.Intl.DateTimeFormat;if(!t)return-2;var a=t().resolvedOptions().locale;return!a&&a!==""?-3:a}var D8={fonts:h5,domBlockers:F5,fontPreferences:c8,audio:n5,screenFrame:j5,canvas:m5,osCpu:O5,languages:C5,colorDepth:x5,deviceMemory:_5,screenResolution:A5,hardwareConcurrency:L5,timezone:H5,sessionStorage:V5,localStorage:B5,indexedDB:G5,openDatabase:Y5,cpuClass:I5,platform:q5,plugins:p5,touchSupport:R5,vendor:$5,vendorFlavors:Z5,cookiesEnabled:X5,colorGamut:W5,invertedColors:e8,forcedColors:t8,monochrome:a8,contrast:o8,reducedMotion:r8,reducedTransparency:l8,hdr:i8,math:u8,pdfViewerEnabled:d8,architecture:h8,applePay:p8,privateClickMeasurement:y8,audioBaseLatency:_8,dateTimeLocale:A8,webGlBasics:T8,webGlExtensions:R8};function M8(t){return X6(D8,t,[])}var z8="$ if upgrade to Pro: https://fpjs.dev/pro";function N8(t){var a=U8(t),i=j8(a);return{score:a,comment:z8.replace(/\$/g,"".concat(i))}}function U8(t){if(LT())return .4;if(Mi())return jT()&&!(Ly()&&jy())?.5:.3;var a="value"in t.platform?t.platform.value:"";return/^Win/.test(a)?.6:/^Mac/.test(a)?.5:.7}function j8(t){return wx(.99+.01*t,1e-4)}function L8(t){for(var a="",i=0,u=Object.keys(t).sort();i<u.length;i++){var f=u[i],p=t[f],y="error"in p?"error":JSON.stringify(p.value);a+="".concat(a?"|":"").concat(f.replace(/([:|\\])/g,"\\$1"),":").concat(y)}return a}function Ix(t){return JSON.stringify(t,function(a,i){return i instanceof Error?I6(i):i},2)}function qx(t){return Y6(L8(t))}function H8(t){var a,i=N8(t);return{get visitorId(){return a===void 0&&(a=qx(this.components)),a},set visitorId(u){a=u},confidence:i,components:t,version:vx}}function k8(t){return t===void 0&&(t=50),N6(t,t*2)}function V8(t,a){var i=Date.now();return{get:function(u){return hu(this,void 0,void 0,function(){var f,p,y;return pu(this,function(g){switch(g.label){case 0:return f=Date.now(),[4,t()];case 1:return p=g.sent(),y=H8(p),(a||u?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(y.version,`
248
+ userAgent: `).concat(navigator.userAgent,`
249
+ timeBetweenLoadAndGet: `).concat(f-i,`
250
+ visitorId: `).concat(y.visitorId,`
251
+ components: `).concat(Ix(p),"\n```")),[2,y]}})})}}}function B8(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(vx,"/npm-monitoring"),!0),t.send()}catch(a){console.error(a)}}function G8(t){var a;return t===void 0&&(t={}),hu(this,void 0,void 0,function(){var i,u,f;return pu(this,function(p){switch(p.label){case 0:return(!((a=t.monitoring)!==null&&a!==void 0)||a)&&B8(),i=t.delayFallback,u=t.debug,[4,k8(i)];case 1:return p.sent(),f=M8({cache:{},debug:u}),[2,V8(f,u)]}})})}var Y8={load:G8,hashComponents:qx,componentsToDebugString:Ix};function $x(t){var a,i,u="";if(typeof t=="string"||typeof t=="number")u+=t;else if(typeof t=="object")if(Array.isArray(t)){var f=t.length;for(a=0;a<f;a++)t[a]&&(i=$x(t[a]))&&(u&&(u+=" "),u+=i)}else for(i in t)t[i]&&(u&&(u+=" "),u+=i);return u}function Zx(){for(var t,a,i=0,u="",f=arguments.length;i<f;i++)(t=arguments[i])&&(a=$x(t))&&(u&&(u+=" "),u+=a);return u}const YT="-",I8=t=>{const a=$8(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:u}=t;return{getClassGroupId:y=>{const g=y.split(YT);return g[0]===""&&g.length!==1&&g.shift(),Xx(g,a)||q8(y)},getConflictingClassGroupIds:(y,g)=>{const S=i[y]||[];return g&&u[y]?[...S,...u[y]]:S}}},Xx=(t,a)=>{if(t.length===0)return a.classGroupId;const i=t[0],u=a.nextPart.get(i),f=u?Xx(t.slice(1),u):void 0;if(f)return f;if(a.validators.length===0)return;const p=t.join(YT);return a.validators.find(({validator:y})=>y(p))?.classGroupId},Px=/^\[(.+)\]$/,q8=t=>{if(Px.test(t)){const a=Px.exec(t)[1],i=a?.substring(0,a.indexOf(":"));if(i)return"arbitrary.."+i}},$8=t=>{const{theme:a,prefix:i}=t,u={nextPart:new Map,validators:[]};return X8(Object.entries(t.classGroups),i).forEach(([p,y])=>{IT(y,u,p,a)}),u},IT=(t,a,i,u)=>{t.forEach(f=>{if(typeof f=="string"){const p=f===""?a:Fx(a,f);p.classGroupId=i;return}if(typeof f=="function"){if(Z8(f)){IT(f(u),a,i,u);return}a.validators.push({validator:f,classGroupId:i});return}Object.entries(f).forEach(([p,y])=>{IT(y,Fx(a,p),i,u)})})},Fx=(t,a)=>{let i=t;return a.split(YT).forEach(u=>{i.nextPart.has(u)||i.nextPart.set(u,{nextPart:new Map,validators:[]}),i=i.nextPart.get(u)}),i},Z8=t=>t.isThemeGetter,X8=(t,a)=>a?t.map(([i,u])=>{const f=u.map(p=>typeof p=="string"?a+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([y,g])=>[a+y,g])):p);return[i,f]}):t,P8=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,i=new Map,u=new Map;const f=(p,y)=>{i.set(p,y),a++,a>t&&(a=0,u=i,i=new Map)};return{get(p){let y=i.get(p);if(y!==void 0)return y;if((y=u.get(p))!==void 0)return f(p,y),y},set(p,y){i.has(p)?i.set(p,y):f(p,y)}}},Qx="!",F8=t=>{const{separator:a,experimentalParseClassName:i}=t,u=a.length===1,f=a[0],p=a.length,y=g=>{const S=[];let b=0,E=0,T;for(let N=0;N<g.length;N++){let M=g[N];if(b===0){if(M===f&&(u||g.slice(N,N+p)===a)){S.push(g.slice(E,N)),E=N+p;continue}if(M==="/"){T=N;continue}}M==="["?b++:M==="]"&&b--}const O=S.length===0?g:g.substring(E),_=O.startsWith(Qx),A=_?O.substring(1):O,D=T&&T>E?T-E:void 0;return{modifiers:S,hasImportantModifier:_,baseClassName:A,maybePostfixModifierPosition:D}};return i?g=>i({className:g,parseClassName:y}):y},Q8=t=>{if(t.length<=1)return t;const a=[];let i=[];return t.forEach(u=>{u[0]==="["?(a.push(...i.sort(),u),i=[]):i.push(u)}),a.push(...i.sort()),a},J8=t=>({cache:P8(t.cacheSize),parseClassName:F8(t),...I8(t)}),K8=/\s+/,W8=(t,a)=>{const{parseClassName:i,getClassGroupId:u,getConflictingClassGroupIds:f}=a,p=[],y=t.trim().split(K8);let g="";for(let S=y.length-1;S>=0;S-=1){const b=y[S],{modifiers:E,hasImportantModifier:T,baseClassName:O,maybePostfixModifierPosition:_}=i(b);let A=!!_,D=u(A?O.substring(0,_):O);if(!D){if(!A){g=b+(g.length>0?" "+g:g);continue}if(D=u(O),!D){g=b+(g.length>0?" "+g:g);continue}A=!1}const N=Q8(E).join(":"),M=T?N+Qx:N,q=M+D;if(p.includes(q))continue;p.push(q);const I=f(D,A);for(let Y=0;Y<I.length;++Y){const H=I[Y];p.push(M+H)}g=b+(g.length>0?" "+g:g)}return g};function eU(){let t=0,a,i,u="";for(;t<arguments.length;)(a=arguments[t++])&&(i=Jx(a))&&(u&&(u+=" "),u+=i);return u}const Jx=t=>{if(typeof t=="string")return t;let a,i="";for(let u=0;u<t.length;u++)t[u]&&(a=Jx(t[u]))&&(i&&(i+=" "),i+=a);return i};function tU(t,...a){let i,u,f,p=y;function y(S){const b=a.reduce((E,T)=>T(E),t());return i=J8(b),u=i.cache.get,f=i.cache.set,p=g,g(S)}function g(S){const b=u(S);if(b)return b;const E=W8(S,i);return f(S,E),E}return function(){return p(eU.apply(null,arguments))}}const aa=t=>{const a=i=>i[t]||[];return a.isThemeGetter=!0,a},Kx=/^\[(?:([a-z-]+):)?(.+)\]$/i,nU=/^\d+\/\d+$/,aU=new Set(["px","full","screen"]),oU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rU=/\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$/,lU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,iU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cs=t=>Lp(t)||aU.has(t)||nU.test(t),Nc=t=>Hp(t,"length",gU),Lp=t=>!!t&&!Number.isNaN(Number(t)),qT=t=>Hp(t,"number",Lp),Hy=t=>!!t&&Number.isInteger(Number(t)),sU=t=>t.endsWith("%")&&Lp(t.slice(0,-1)),$t=t=>Kx.test(t),Uc=t=>oU.test(t),cU=new Set(["length","size","percentage"]),fU=t=>Hp(t,cU,Wx),dU=t=>Hp(t,"position",Wx),hU=new Set(["image","url"]),pU=t=>Hp(t,hU,vU),mU=t=>Hp(t,"",yU),ky=()=>!0,Hp=(t,a,i)=>{const u=Kx.exec(t);return u?u[1]?typeof a=="string"?u[1]===a:a.has(u[1]):i(u[2]):!1},gU=t=>rU.test(t)&&!lU.test(t),Wx=()=>!1,yU=t=>iU.test(t),vU=t=>uU.test(t),$T=tU(()=>{const t=aa("colors"),a=aa("spacing"),i=aa("blur"),u=aa("brightness"),f=aa("borderColor"),p=aa("borderRadius"),y=aa("borderSpacing"),g=aa("borderWidth"),S=aa("contrast"),b=aa("grayscale"),E=aa("hueRotate"),T=aa("invert"),O=aa("gap"),_=aa("gradientColorStops"),A=aa("gradientColorStopPositions"),D=aa("inset"),N=aa("margin"),M=aa("opacity"),q=aa("padding"),I=aa("saturate"),Y=aa("scale"),H=aa("sepia"),Z=aa("skew"),V=aa("space"),X=aa("translate"),le=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",$t,a],ie=()=>[$t,a],ee=()=>["",cs,Nc],te=()=>["auto",Lp,$t],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],ne=()=>["","0",$t],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[Lp,$t];return{cacheSize:500,separator:":",theme:{colors:[ky],spacing:[cs,Nc],blur:["none","",Uc,$t],brightness:j(),borderColor:[t],borderRadius:["none","","full",Uc,$t],borderSpacing:ie(),borderWidth:ee(),contrast:j(),grayscale:ne(),hueRotate:j(),invert:ne(),gap:ie(),gradientColorStops:[t],gradientColorStopPositions:[sU,Nc],inset:fe(),margin:fe(),opacity:j(),padding:ie(),saturate:j(),scale:j(),sepia:ne(),skew:j(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",$t]}],container:["container"],columns:[{columns:[Uc]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),$t]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hy,$t]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$t]}],grow:[{grow:ne()}],shrink:[{shrink:ne()}],order:[{order:["first","last","none",Hy,$t]}],"grid-cols":[{"grid-cols":[ky]}],"col-start-end":[{col:["auto",{span:["full",Hy,$t]},$t]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[ky]}],"row-start-end":[{row:["auto",{span:[Hy,$t]},$t]}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$t]}],gap:[{gap:[O]}],"gap-x":[{"gap-x":[O]}],"gap-y":[{"gap-y":[O]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[q]}],px:[{px:[q]}],py:[{py:[q]}],ps:[{ps:[q]}],pe:[{pe:[q]}],pt:[{pt:[q]}],pr:[{pr:[q]}],pb:[{pb:[q]}],pl:[{pl:[q]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$t,a]}],"min-w":[{"min-w":[$t,a,"min","max","fit"]}],"max-w":[{"max-w":[$t,a,"none","full","min","max","fit","prose",{screen:[Uc]},Uc]}],h:[{h:[$t,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$t,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$t,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$t,a,"auto","min","max","fit"]}],"font-size":[{text:["base",Uc,Nc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qT]}],"font-family":[{font:[ky]}],"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:["tighter","tight","normal","wide","wider","widest",$t]}],"line-clamp":[{"line-clamp":["none",Lp,qT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cs,$t]}],"list-image":[{"list-image":["none",$t]}],"list-style-type":[{list:["none","disc","decimal",$t]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cs,Nc]}],"underline-offset":[{"underline-offset":["auto",cs,$t]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$t]}],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",$t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),dU]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fU]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pU]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:L()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[cs,$t]}],"outline-w":[{outline:[cs,Nc]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[cs,Nc]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Uc,mU]}],"shadow-color":[{shadow:[ky]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[u]}],contrast:[{contrast:[S]}],"drop-shadow":[{"drop-shadow":["","none",Uc,$t]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[E]}],invert:[{invert:[T]}],saturate:[{saturate:[I]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[S]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[y]}],"border-spacing-x":[{"border-spacing-x":[y]}],"border-spacing-y":[{"border-spacing-y":[y]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$t]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",$t]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",$t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Y]}],"scale-x":[{"scale-x":[Y]}],"scale-y":[{"scale-y":[Y]}],rotate:[{rotate:[Hy,$t]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$t]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$t]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"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",$t]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[cs,Nc,qT]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-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"],"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"]}}}),bU=[];function Vy(t){x.useEffect(t,bU)}const e_={};function ro(t,a){const i=x.useRef(e_);return i.current===e_&&(i.current=t(a)),i}function SU(t,a){return function(u,...f){const p=new URL(t);return p.searchParams.set("code",u.toString()),f.forEach(y=>p.searchParams.append("args[]",y)),`${a} error #${u}; visit ${p} for the full message.`}}const va=SU("https://base-ui.com/production-error","Base UI"),O1=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(O1.displayName="ToastContext");function t_(){const t=x.useContext(O1);if(!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: useToastManager must be used within <Toast.Provider>.":va(73));return t}const Ke=(t,a,i,u,f,p,...y)=>{if(y.length>0)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of selectors":va(1));let g;if(t&&a&&i&&u&&f&&p)g=(S,b,E,T)=>{const O=t(S,b,E,T),_=a(S,b,E,T),A=i(S,b,E,T),D=u(S,b,E,T),N=f(S,b,E,T);return p(O,_,A,D,N,b,E,T)};else if(t&&a&&i&&u&&f)g=(S,b,E,T)=>{const O=t(S,b,E,T),_=a(S,b,E,T),A=i(S,b,E,T),D=u(S,b,E,T);return f(O,_,A,D,b,E,T)};else if(t&&a&&i&&u)g=(S,b,E,T)=>{const O=t(S,b,E,T),_=a(S,b,E,T),A=i(S,b,E,T);return u(O,_,A,b,E,T)};else if(t&&a&&i)g=(S,b,E,T)=>{const O=t(S,b,E,T),_=a(S,b,E,T);return i(O,_,b,E,T)};else if(t&&a)g=(S,b,E,T)=>{const O=t(S,b,E,T);return a(O,b,E,T)};else if(t)g=t;else throw new Error("Missing arguments");return g};var EU=(t,a,i)=>{if(a.length===1&&a[0]===i){let u=!1;try{const f={};t(f)===f&&(u=!0)}catch{}if(u){let f;try{throw new Error}catch(p){({stack:f}=p)}console.warn(`The result function returned its own inputs without modification. e.g
252
+ \`createSelector([state => state.todos], todos => todos)\`
253
+ This could lead to inefficient memoization and unnecessary re-renders.
254
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:f})}}},wU=(t,a,i)=>{const{memoize:u,memoizeOptions:f}=a,{inputSelectorResults:p,inputSelectorResultsCopy:y}=t,g=u(()=>({}),...f);if(!(g.apply(null,p)===g.apply(null,y))){let b;try{throw new Error}catch(E){({stack:b}=E)}console.warn(`An input selector returned a different result when passed same arguments.
255
+ This means your output selector will likely run more frequently than intended.
256
+ Avoid returning a new reference inside your input selector, e.g.
257
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:i,firstInputs:p,secondInputs:y,stack:b})}},TU={inputStabilityCheck:"once",identityFunctionCheck:"once"},C1=Symbol("NOT_FOUND");function RU(t,a=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(a)}function OU(t,a=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(a)}function CU(t,a="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(u=>typeof u=="function"?`function ${u.name||"unnamed"}()`:typeof u).join(", ");throw new TypeError(`${a}[${i}]`)}}var n_=t=>Array.isArray(t)?t:[t];function xU(t){const a=Array.isArray(t[0])?t[0]:t;return CU(a,"createSelector expects all input-selectors to be functions, but received the following types: "),a}function a_(t,a){const i=[],{length:u}=t;for(let f=0;f<u;f++)i.push(t[f].apply(null,a));return i}var _U=(t,a)=>{const{identityFunctionCheck:i,inputStabilityCheck:u}={...TU,...a};return{identityFunctionCheck:{shouldRun:i==="always"||i==="once"&&t,run:EU},inputStabilityCheck:{shouldRun:u==="always"||u==="once"&&t,run:wU}}};function AU(t){let a;return{get(i){return a&&t(a.key,i)?a.value:C1},put(i,u){a={key:i,value:u}},getEntries(){return a?[a]:[]},clear(){a=void 0}}}function DU(t,a){let i=[];function u(g){const S=i.findIndex(b=>a(g,b.key));if(S>-1){const b=i[S];return S>0&&(i.splice(S,1),i.unshift(b)),b.value}return C1}function f(g,S){u(g)===C1&&(i.unshift({key:g,value:S}),i.length>t&&i.pop())}function p(){return i}function y(){i=[]}return{get:u,put:f,getEntries:p,clear:y}}var MU=(t,a)=>t===a;function zU(t){return function(i,u){if(i===null||u===null||i.length!==u.length)return!1;const{length:f}=i;for(let p=0;p<f;p++)if(!t(i[p],u[p]))return!1;return!0}}function NU(t,a){const i=typeof a=="object"?a:{equalityCheck:a},{equalityCheck:u=MU,maxSize:f=1,resultEqualityCheck:p}=i,y=zU(u);let g=0;const S=f<=1?AU(y):DU(f,y);function b(){let E=S.get(arguments);if(E===C1){if(E=t.apply(null,arguments),g++,p){const O=S.getEntries().find(_=>p(_.value,E));O&&(E=O.value,g!==0&&g--)}S.put(arguments,E)}return E}return b.clearCache=()=>{S.clear(),b.resetResultsCount()},b.resultsCount=()=>g,b.resetResultsCount=()=>{g=0},b}var UU=class{constructor(t){this.value=t}deref(){return this.value}},jU=typeof WeakRef<"u"?WeakRef:UU,LU=0,o_=1;function x1(){return{s:LU,v:void 0,o:null,p:null}}function r_(t,a={}){let i=x1();const{resultEqualityCheck:u}=a;let f,p=0;function y(){let g=i;const{length:S}=arguments;for(let T=0,O=S;T<O;T++){const _=arguments[T];if(typeof _=="function"||typeof _=="object"&&_!==null){let A=g.o;A===null&&(g.o=A=new WeakMap);const D=A.get(_);D===void 0?(g=x1(),A.set(_,g)):g=D}else{let A=g.p;A===null&&(g.p=A=new Map);const D=A.get(_);D===void 0?(g=x1(),A.set(_,g)):g=D}}const b=g;let E;if(g.s===o_)E=g.v;else if(E=t.apply(null,arguments),p++,u){const T=f?.deref?.()??f;T!=null&&u(T,E)&&(E=T,p!==0&&p--),f=typeof E=="object"&&E!==null||typeof E=="function"?new jU(E):E}return b.s=o_,b.v=E,E}return y.clearCache=()=>{i=x1(),y.resetResultsCount()},y.resultsCount=()=>p,y.resetResultsCount=()=>{p=0},y}function l_(t,...a){const i=typeof t=="function"?{memoize:t,memoizeOptions:a}:t,u=(...f)=>{let p=0,y=0,g,S={},b=f.pop();typeof b=="object"&&(S=b,b=f.pop()),RU(b,`createSelector expects an output function after the inputs, but received: [${typeof b}]`);const E={...i,...S},{memoize:T,memoizeOptions:O=[],argsMemoize:_=r_,argsMemoizeOptions:A=[],devModeChecks:D={}}=E,N=n_(O),M=n_(A),q=xU(f),I=T(function(){return p++,b.apply(null,arguments)},...N);let Y=!0;const H=_(function(){y++;const V=a_(q,arguments);if(g=I.apply(null,V),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:X,inputStabilityCheck:le}=_U(Y,D);if(X.shouldRun&&X.run(b,V,g),le.shouldRun){const K=a_(q,arguments);le.run({inputSelectorResults:V,inputSelectorResultsCopy:K},{memoize:T,memoizeOptions:N},arguments)}Y&&(Y=!1)}return g},...M);return Object.assign(H,{resultFunc:b,memoizedResultFunc:I,dependencies:q,dependencyRecomputations:()=>y,resetDependencyRecomputations:()=>{y=0},lastResult:()=>g,recomputations:()=>p,resetRecomputations:()=>{p=0},memoize:T,argsMemoize:_})};return Object.assign(u,{withTypes:()=>u}),u}var HU=l_(r_),kU=Object.assign((t,a=HU)=>{OU(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const i=Object.keys(t),u=i.map(p=>t[p]);return a(u,(...p)=>p.reduce((y,g,S)=>(y[i[S]]=g,y),{}))},{withTypes:()=>kU});const VU=l_({memoize:NU,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),BU=(...t)=>{const a=new WeakMap;let i=1;const u=t[t.length-1],f=t.length-1||1,p=u.length-f;if(p>3)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of arguments":va(2));return(g,S,b,E)=>{let T=g.__cacheKey__;T||(T={id:i},g.__cacheKey__=T,i+=1);let O=a.get(T);if(!O){let _=t;const A=[void 0,void 0,void 0];switch(p){case 0:break;case 1:{_=[...t.slice(0,-1),()=>A[0],u];break}case 2:{_=[...t.slice(0,-1),()=>A[0],()=>A[1],u];break}case 3:{_=[...t.slice(0,-1),()=>A[0],()=>A[1],()=>A[2],u];break}default:throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of arguments":va(2))}O=VU(..._),O.selectorArgs=A,a.set(T,O)}switch(O.selectorArgs[0]=S,O.selectorArgs[1]=b,O.selectorArgs[2]=E,p){case 0:return O(g);case 1:return O(g,S);case 2:return O(g,S,b);case 3:return O(g,S,b,E);default:throw new Error("unreachable")}}};var _1={exports:{}},ZT={};var i_;function GU(){if(i_)return ZT;i_=1;var t=du();function a(T,O){return T===O&&(T!==0||1/T===1/O)||T!==T&&O!==O}var i=typeof Object.is=="function"?Object.is:a,u=t.useState,f=t.useEffect,p=t.useLayoutEffect,y=t.useDebugValue;function g(T,O){var _=O(),A=u({inst:{value:_,getSnapshot:O}}),D=A[0].inst,N=A[1];return p(function(){D.value=_,D.getSnapshot=O,S(D)&&N({inst:D})},[T,_,O]),f(function(){return S(D)&&N({inst:D}),T(function(){S(D)&&N({inst:D})})},[T]),y(_),_}function S(T){var O=T.getSnapshot;T=T.value;try{var _=O();return!i(T,_)}catch{return!0}}function b(T,O){return O()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?b:g;return ZT.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:E,ZT}var XT={};var u_;function YU(){return u_||(u_=1,process.env.NODE_ENV!=="production"&&(function(){function t(_,A){return _===A&&(_!==0||1/_===1/A)||_!==_&&A!==A}function a(_,A){E||f.startTransition===void 0||(E=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var D=A();if(!T){var N=A();p(D,N)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),T=!0)}N=y({inst:{value:D,getSnapshot:A}});var M=N[0].inst,q=N[1];return S(function(){M.value=D,M.getSnapshot=A,i(M)&&q({inst:M})},[_,D,A]),g(function(){return i(M)&&q({inst:M}),_(function(){i(M)&&q({inst:M})})},[_]),b(D),D}function i(_){var A=_.getSnapshot;_=_.value;try{var D=A();return!p(_,D)}catch{return!0}}function u(_,A){return A()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=du(),p=typeof Object.is=="function"?Object.is:t,y=f.useState,g=f.useEffect,S=f.useLayoutEffect,b=f.useDebugValue,E=!1,T=!1,O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;XT.useSyncExternalStore=f.useSyncExternalStore!==void 0?f.useSyncExternalStore:O,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),XT}var s_;function PT(){return s_||(s_=1,process.env.NODE_ENV==="production"?_1.exports=GU():_1.exports=YU()),_1.exports}var IU=PT(),A1={exports:{}},FT={};var c_;function qU(){if(c_)return FT;c_=1;var t=du(),a=PT();function i(b,E){return b===E&&(b!==0||1/b===1/E)||b!==b&&E!==E}var u=typeof Object.is=="function"?Object.is:i,f=a.useSyncExternalStore,p=t.useRef,y=t.useEffect,g=t.useMemo,S=t.useDebugValue;return FT.useSyncExternalStoreWithSelector=function(b,E,T,O,_){var A=p(null);if(A.current===null){var D={hasValue:!1,value:null};A.current=D}else D=A.current;A=g(function(){function M(Z){if(!q){if(q=!0,I=Z,Z=O(Z),_!==void 0&&D.hasValue){var V=D.value;if(_(V,Z))return Y=V}return Y=Z}if(V=Y,u(I,Z))return V;var X=O(Z);return _!==void 0&&_(V,X)?(I=Z,V):(I=Z,Y=X)}var q=!1,I,Y,H=T===void 0?null:T;return[function(){return M(E())},H===null?void 0:function(){return M(H())}]},[E,T,O,_]);var N=f(b,A[0],A[1]);return y(function(){D.hasValue=!0,D.value=N},[N]),S(N),N},FT}var QT={};var f_;function $U(){return f_||(f_=1,process.env.NODE_ENV!=="production"&&(function(){function t(b,E){return b===E&&(b!==0||1/b===1/E)||b!==b&&E!==E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=du(),i=PT(),u=typeof Object.is=="function"?Object.is:t,f=i.useSyncExternalStore,p=a.useRef,y=a.useEffect,g=a.useMemo,S=a.useDebugValue;QT.useSyncExternalStoreWithSelector=function(b,E,T,O,_){var A=p(null);if(A.current===null){var D={hasValue:!1,value:null};A.current=D}else D=A.current;A=g(function(){function M(Z){if(!q){if(q=!0,I=Z,Z=O(Z),_!==void 0&&D.hasValue){var V=D.value;if(_(V,Z))return Y=V}return Y=Z}if(V=Y,u(I,Z))return V;var X=O(Z);return _!==void 0&&_(V,X)?(I=Z,V):(I=Z,Y=X)}var q=!1,I,Y,H=T===void 0?null:T;return[function(){return M(E())},H===null?void 0:function(){return M(H())}]},[E,T,O,_]);var N=f(b,A[0],A[1]);return y(function(){D.hasValue=!0,D.value=N},[N]),S(N),N},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),QT}var d_;function ZU(){return d_||(d_=1,process.env.NODE_ENV==="production"?A1.exports=qU():A1.exports=$U()),A1.exports}var XU=ZU();const PU=parseInt(x.version,10);function JT(t){return PU>=t}const FU=JT(19)?JU:KU;function on(t,a,i,u,f){return FU(t,a,i,u,f)}function QU(t,a,i,u,f){const p=x.useCallback(()=>a(t.getSnapshot(),i,u,f),[t,a,i,u,f]);return IU.useSyncExternalStore(t.subscribe,p,p)}function JU(t,a,i,u,f){return QU(t,a,i,u,f)}function KU(t,a,i,u,f){return XU.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,p=>a(p,i,u,f))}class h_{constructor(a){this.state=a,this.listeners=new Set,this.updateTick=0}subscribe=a=>(this.listeners.add(a),()=>{this.listeners.delete(a)});getSnapshot=()=>this.state;setState(a){if(this.state===a)return;this.state=a,this.updateTick+=1;const i=this.updateTick;for(const u of this.listeners){if(i!==this.updateTick)return;u(a)}}update(a){for(const i in a)if(!Object.is(this.state[i],a[i])){this.setState({...this.state,...a});return}}set(a,i){Object.is(this.state[a],i)||this.setState({...this.state,[a]:i})}notifyAll(){const a={...this.state};this.setState(a)}use(a,i,u,f){return on(this,a,i,u,f)}}const KT=S1[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],WU=KT&&KT!==x.useLayoutEffect?KT:t=>t();function it(t){const a=ro(ej).current;return a.next=t,WU(a.effect),a.trampoline}function ej(){const t={next:void 0,callback:tj,trampoline:(...a)=>t.callback?.(...a),effect:()=>{t.callback=t.next}};return t}function tj(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const rt=typeof document<"u"?x.useLayoutEffect:()=>{};function go(){}const p_=Object.freeze([]),za=Object.freeze({});class D1 extends h_{constructor(a,i={},u){super(a),this.context=i,this.selectors=u}useSyncedValue(a,i){x.useDebugValue(a),rt(()=>{this.state[a]!==i&&this.set(a,i)},[a,i])}useSyncedValueWithCleanup(a,i){const u=this;rt(()=>(u.state[a]!==i&&u.set(a,i),()=>{u.set(a,void 0)}),[u,a,i])}useSyncedValues(a){const i=this;if(process.env.NODE_ENV!=="production"){x.useDebugValue(a,y=>Object.keys(y));const f=x.useRef(Object.keys(a)).current,p=Object.keys(a);(f.length!==p.length||f.some((y,g)=>y!==p[g]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const u=Object.values(a);rt(()=>{i.update(a)},[i,...u])}useControlledProp(a,i){x.useDebugValue(a);const u=i!==void 0;if(rt(()=>{u&&!Object.is(this.state[a],i)&&super.setState({...this.state,[a]:i})},[a,i,u]),process.env.NODE_ENV!=="production"){const f=this.controlledValues??=new Map;f.has(a)||f.set(a,u);const p=f.get(a);p!==void 0&&p!==u&&console.error(`A component is changing the ${u?"":"un"}controlled state of ${a.toString()} to be ${u?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(a,i,u,f){const p=this.selectors[a];return p(this.state,i,u,f)}useState(a,i,u,f){return x.useDebugValue(a),on(this,this.selectors[a],i,u,f)}useContextCallback(a,i){x.useDebugValue(a);const u=it(i??go);this.context[a]=u}useStateSetter(a){const i=x.useRef(void 0);return i.current===void 0&&(i.current=u=>{this.set(a,u)}),i.current}observe(a,i){let u;typeof a=="function"?u=a:u=this.selectors[a];let f=u(this.state);return i(f,f,this),this.subscribe(p=>{const y=u(p);if(!Object.is(f,y)){const g=f;f=y,i(y,g,this)}})}}var tl=xT();const nj=c1(tl);function M1(){return typeof window<"u"}function Fo(t){return WT(t)?(t.nodeName||"").toLowerCase():"#document"}function oa(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function mu(t){var a;return(a=(WT(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function WT(t){return M1()?t instanceof Node||t instanceof oa(t).Node:!1}function pn(t){return M1()?t instanceof Element||t instanceof oa(t).Element:!1}function Fn(t){return M1()?t instanceof HTMLElement||t instanceof oa(t).HTMLElement:!1}function kp(t){return!M1()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof oa(t).ShadowRoot}function jc(t){const{overflow:a,overflowX:i,overflowY:u,display:f}=jr(t);return/auto|scroll|overlay|hidden|clip/.test(a+u+i)&&f!=="inline"&&f!=="contents"}function aj(t){return/^(table|td|th)$/.test(Fo(t))}function z1(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const oj=/transform|translate|scale|rotate|perspective|filter/,rj=/paint|layout|strict|content/,Cd=t=>!!t&&t!=="none";let e2;function t2(t){const a=pn(t)?jr(t):t;return Cd(a.transform)||Cd(a.translate)||Cd(a.scale)||Cd(a.rotate)||Cd(a.perspective)||!N1()&&(Cd(a.backdropFilter)||Cd(a.filter))||oj.test(a.willChange||"")||rj.test(a.contain||"")}function lj(t){let a=ds(t);for(;Fn(a)&&!fs(a);){if(t2(a))return a;if(z1(a))return null;a=ds(a)}return null}function N1(){return e2==null&&(e2=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),e2}function fs(t){return/^(html|body|#document)$/.test(Fo(t))}function jr(t){return oa(t).getComputedStyle(t)}function U1(t){return pn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ds(t){if(Fo(t)==="html")return t;const a=t.assignedSlot||t.parentNode||kp(t)&&t.host||mu(t);return kp(a)?a.host:a}function m_(t){const a=ds(t);return fs(a)?t.ownerDocument?t.ownerDocument.body:t.body:Fn(a)&&jc(a)?a:m_(a)}function By(t,a,i){var u;a===void 0&&(a=[]),i===void 0&&(i=!0);const f=m_(t),p=f===((u=t.ownerDocument)==null?void 0:u.body),y=oa(f);if(p){const g=n2(y);return a.concat(y,y.visualViewport||[],jc(f)?f:[],g&&i?By(g):[])}else return a.concat(f,By(f,[],i))}function n2(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function gu(...t){return()=>{for(let a=0;a<t.length;a+=1){const i=t[a];i&&i()}}}function Pt(t){return t?.ownerDocument||document}function Ft(t,a,i,u){return t.addEventListener(a,i,u),()=>{t.removeEventListener(a,i,u)}}const j1=null;let g_=globalThis.requestAnimationFrame;class ij{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=a=>{this.isScheduled=!1;const i=this.callbacks,u=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,u>0)for(let f=0;f<i.length;f+=1)i[f]?.(a)};request(a){const i=this.nextId;this.nextId+=1,this.callbacks.push(a),this.callbacksCount+=1;const u=process.env.NODE_ENV!=="production"&&g_!==requestAnimationFrame&&(g_=requestAnimationFrame,!0);return(!this.isScheduled||u)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),i}cancel(a){const i=a-this.startId;i<0||i>=this.callbacks.length||(this.callbacks[i]=null,this.callbacksCount-=1)}}const L1=new ij;class yu{static create(){return new yu}static request(a){return L1.request(a)}static cancel(a){return L1.cancel(a)}currentId=j1;request(a){this.cancel(),this.currentId=L1.request(()=>{this.currentId=j1,a()})}cancel=()=>{this.currentId!==j1&&(L1.cancel(this.currentId),this.currentId=j1)};disposeEffect=()=>this.cancel}function H1(){const t=ro(yu.create).current;return Vy(t.disposeEffect),t}const Gy=0;class nl{static create(){return new nl}currentId=Gy;start(a,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Gy,i()},a)}isStarted(){return this.currentId!==Gy}clear=()=>{this.currentId!==Gy&&(clearTimeout(this.currentId),this.currentId=Gy)};disposeEffect=()=>this.clear}function al(){const t=ro(nl.create).current;return Vy(t.disposeEffect),t}let y_=0;function uj(t){return y_+=1,`${t}-${Math.random().toString(36).slice(2,6)}-${y_}`}function a2(t,a){if(typeof t=="string")return{description:t};if(typeof t=="function"){const i=t(a);return typeof i=="string"?{description:i}:i}return t}const Vp=typeof navigator<"u",o2=cj(),v_=dj(),b_=fj(),r2=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),S_=o2.platform==="MacIntel"&&o2.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(o2.platform),sj=Vp&&/apple/i.test(navigator.vendor),l2=Vp&&/android/i.test(v_)||/android/i.test(b_);Vp&&v_.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const E_=b_.includes("jsdom/");function cj(){if(!Vp)return{platform:"",maxTouchPoints:-1};const t=navigator.userAgentData;return t?.platform?{platform:t.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function fj(){if(!Vp)return"";const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(({brand:a,version:i})=>`${a}/${i}`).join(" "):navigator.userAgent}function dj(){if(!Vp)return"";const t=navigator.userAgentData;return t?.platform?t.platform:navigator.platform??""}const i2="data-base-ui-focusable",w_="active",T_="selected",R_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Lc="ArrowLeft",Hc="ArrowRight",u2="ArrowUp",Yy="ArrowDown";function Qo(t){let a=t.activeElement;for(;a?.shadowRoot?.activeElement!=null;)a=a.shadowRoot.activeElement;return a}function wt(t,a){if(!t||!a)return!1;const i=a.getRootNode?.();if(t.contains(a))return!0;if(i&&kp(i)){let u=a;for(;u;){if(t===u)return!0;u=u.parentNode||u.host}}return!1}function Na(t){return"composedPath"in t?t.composedPath()[0]:t.target}function O_(t,a){if(!pn(t))return!1;const i=t;if(a.hasElement(i))return!i.hasAttribute("data-trigger-disabled");for(const[,u]of a.entries())if(wt(u,i))return!u.hasAttribute("data-trigger-disabled");return!1}function zi(t,a){if(a==null)return!1;if("composedPath"in t)return t.composedPath().includes(a);const i=t;return i.target!=null&&a.contains(i.target)}function hj(t){return t.matches("html,body")}function s2(t){return Fn(t)&&t.matches(R_)}function pj(t){return t?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${R_}`)!=null}function c2(t){return t?t.getAttribute("role")==="combobox"&&s2(t):!1}function f2(t){if(!t||E_)return!0;try{return t.matches(":focus-visible")}catch{return!0}}function Iy(t){return t?t.hasAttribute(i2)?t:t.querySelector(`[${i2}]`)||t:null}function vu(t,a,i=!0){return t.filter(f=>f.parentId===a).flatMap(f=>[...!i||f.context?.open?[f]:[],...vu(t,f.id,i)])}function C_(t,a){let i=[],u=t.find(f=>f.id===a)?.parentId;for(;u;){const f=t.find(p=>p.id===u);u=f?.parentId,f&&(i=i.concat(f))}return i}function ol(t){t.preventDefault(),t.stopPropagation()}function mj(t){return"nativeEvent"in t}function x_(t){return t.pointerType===""&&t.isTrusted?!0:l2&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function __(t){return E_?!1:!l2&&t.width===0&&t.height===0||l2&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function qy(t,a){const i=["mouse","pen"];return a||i.push("",void 0),i.includes(t)}function A_(t){const a=t.type;return a==="click"||a==="mousedown"||a==="keydown"||a==="keyup"}const gj=["top","right","bottom","left"],Bp=Math.min,rl=Math.max,k1=Math.round,xd=Math.floor,bu=t=>({x:t,y:t}),yj={left:"right",right:"left",bottom:"top",top:"bottom"};function d2(t,a,i){return rl(t,Bp(a,i))}function hs(t,a){return typeof t=="function"?t(a):t}function Lr(t){return t.split("-")[0]}function kc(t){return t.split("-")[1]}function h2(t){return t==="x"?"y":"x"}function p2(t){return t==="y"?"height":"width"}function kl(t){const a=t[0];return a==="t"||a==="b"?"y":"x"}function m2(t){return h2(kl(t))}function vj(t,a,i){i===void 0&&(i=!1);const u=kc(t),f=m2(t),p=p2(f);let y=f==="x"?u===(i?"end":"start")?"right":"left":u==="start"?"bottom":"top";return a.reference[p]>a.floating[p]&&(y=V1(y)),[y,V1(y)]}function bj(t){const a=V1(t);return[g2(t),a,g2(a)]}function g2(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const D_=["left","right"],M_=["right","left"],Sj=["top","bottom"],Ej=["bottom","top"];function wj(t,a,i){switch(t){case"top":case"bottom":return i?a?M_:D_:a?D_:M_;case"left":case"right":return a?Sj:Ej;default:return[]}}function Tj(t,a,i,u){const f=kc(t);let p=wj(Lr(t),i==="start",u);return f&&(p=p.map(y=>y+"-"+f),a&&(p=p.concat(p.map(g2)))),p}function V1(t){const a=Lr(t);return yj[a]+t.slice(a.length)}function Rj(t){return{top:0,right:0,bottom:0,left:0,...t}}function z_(t){return typeof t!="number"?Rj(t):{top:t,right:t,bottom:t,left:t}}function $y(t){const{x:a,y:i,width:u,height:f}=t;return{width:u,height:f,top:i,left:a,right:a+u,bottom:i+f,x:a,y:i}}function B1(t,a,i){return Math.floor(t/a)!==i}function G1(t,a){return a<0||a>=t.length}function y2(t,a){return sr(t.current,{disabledIndices:a})}function N_(t,a){return sr(t.current,{decrement:!0,startingIndex:t.current.length,disabledIndices:a})}function sr(t,{startingIndex:a=-1,decrement:i=!1,disabledIndices:u,amount:f=1}={}){let p=a;do p+=i?-f:f;while(p>=0&&p<=t.length-1&&Gp(t,p,u));return p}function Oj(t,{event:a,orientation:i,loopFocus:u,onLoop:f,rtl:p,cols:y,disabledIndices:g,minIndex:S,maxIndex:b,prevIndex:E,stopEvent:T=!1}){let O=E,_;if(a.key===u2?_="up":a.key===Yy&&(_="down"),_){const A=[],D=[];let N=!1,M=0;{let le=null,K=-1;t.forEach((fe,ie)=>{if(fe==null)return;M+=1;const ee=fe.closest('[role="row"]');ee&&(N=!0),(ee!==le||K===-1)&&(le=ee,K+=1,A[K]=[]),A[K].push(ie),D[ie]=K})}let q=!1,I=0;if(N)for(const le of A){const K=le.length;K>I&&(I=K),K!==y&&(q=!0)}const Y=q&&M<t.length,H=I||y,Z=le=>{if(!q||E===-1)return;const K=D[E];if(K==null)return;const fe=A[K].indexOf(E),ie=le==="up"?-1:1;for(let ee=K+ie,te=0;te<A.length;te+=1,ee+=ie){if(ee<0||ee>=A.length){if(!u||Y)return;if(ee=ee<0?A.length-1:0,f){const L=Math.min(fe,A[ee].length-1),B=A[ee][L]??A[ee][0],F=f(a,E,B);ee=D[F]??ee}}const J=A[ee];for(let L=Math.min(fe,J.length-1);L>=0;L-=1){const B=J[L];if(!Gp(t,B,g))return B}}},V=le=>{if(!Y||E===-1)return;const K=E%H,fe=le==="up"?-H:H,ie=b-b%H,ee=xd(b/H)+1;for(let te=E-K+fe,J=0;J<ee;J+=1,te+=fe){if(te<0||te>b){if(!u)return;te=te<0?ie:0}const L=Math.min(te+H-1,b);for(let B=Math.min(te+K,L);B>=te;B-=1)if(!Gp(t,B,g))return B}};T&&ol(a);const X=Z(_)??V(_);if(X!==void 0)O=X;else if(E===-1)O=_==="up"?b:S;else if(O=sr(t,{startingIndex:E,amount:H,decrement:_==="up",disabledIndices:g}),u){if(_==="up"&&(E-H<S||O<0)){const le=E%H,K=b%H,fe=b-(K-le);K===le?O=b:O=K>le?fe:fe-H,f&&(O=f(a,E,O))}_==="down"&&E+H>b&&(O=sr(t,{startingIndex:E%H-H,amount:H,disabledIndices:g}),f&&(O=f(a,E,O)))}G1(t,O)&&(O=E)}if(i==="both"){const A=xd(E/y);a.key===(p?Lc:Hc)&&(T&&ol(a),E%y!==y-1?(O=sr(t,{startingIndex:E,disabledIndices:g}),u&&B1(O,y,A)&&(O=sr(t,{startingIndex:E-E%y-1,disabledIndices:g}),f&&(O=f(a,E,O)))):u&&(O=sr(t,{startingIndex:E-E%y-1,disabledIndices:g}),f&&(O=f(a,E,O))),B1(O,y,A)&&(O=E)),a.key===(p?Hc:Lc)&&(T&&ol(a),E%y!==0?(O=sr(t,{startingIndex:E,decrement:!0,disabledIndices:g}),u&&B1(O,y,A)&&(O=sr(t,{startingIndex:E+(y-E%y),decrement:!0,disabledIndices:g}),f&&(O=f(a,E,O)))):u&&(O=sr(t,{startingIndex:E+(y-E%y),decrement:!0,disabledIndices:g}),f&&(O=f(a,E,O))),B1(O,y,A)&&(O=E));const D=xd(b/y)===A;G1(t,O)&&(u&&D?(O=a.key===(p?Hc:Lc)?b:sr(t,{startingIndex:E-E%y-1,disabledIndices:g}),f&&(O=f(a,E,O))):O=E)}return O}function Cj(t,a,i){const u=[];let f=0;return t.forEach(({width:p,height:y},g)=>{if(p>a&&process.env.NODE_ENV!=="production")throw new Error(`[Floating UI]: Invalid grid - item width at index ${g} is greater than grid columns`);let S=!1;for(;!S;){const b=[];for(let E=0;E<p;E+=1)for(let T=0;T<y;T+=1)b.push(f+E+T*a);f%a+p<=a&&b.every(E=>u[E]==null)?(b.forEach(E=>{u[E]=g}),S=!0):f+=1}}),[...u]}function xj(t,a,i,u,f){if(t===-1)return-1;const p=i.indexOf(t),y=a[t];switch(f){case"tl":return p;case"tr":return y?p+y.width-1:p;case"bl":return y?p+(y.height-1)*u:p;case"br":return i.lastIndexOf(t);default:return-1}}function _j(t,a){return a.flatMap((i,u)=>t.includes(i)?[u]:[])}function Gp(t,a,i){if(typeof i=="function"?i(a):i?.includes(a)??!1)return!0;const f=t[a];return f?Y1(f)?!i&&(f.hasAttribute("disabled")||f.getAttribute("aria-disabled")==="true"):!0:!1}function Aj(t){return t.visibility==="hidden"||t.visibility==="collapse"}function Y1(t,a=t?jr(t):null){return!t||!t.isConnected||!a||Aj(a)?!1:typeof t.checkVisibility=="function"?t.checkVisibility():a.display!=="none"&&a.display!=="contents"}const Dj='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Mj(t){const a=t.assignedSlot;if(a)return a;if(t.parentElement)return t.parentElement;const i=t.getRootNode();return kp(i)?i.host:null}function v2(t){for(const a of Array.from(t.children))if(Fo(a)==="summary")return a;return null}function zj(t,a){const i=v2(a);return!!i&&(t===i||wt(i,t))}function U_(t){const a=t?Fo(t):"";return t!=null&&t.matches(Dj)&&(a!=="summary"||t.parentElement!=null&&Fo(t.parentElement)==="details"&&v2(t.parentElement)===t)&&(a!=="details"||v2(t)==null)&&(a!=="input"||t.type!=="hidden")}function j_(t){if(!U_(t)||!t.isConnected||t.matches(":disabled"))return!1;for(let a=t;a;a=Mj(a)){const i=a!==t,u=Fo(a)==="slot";if(a.hasAttribute("inert")||i&&Fo(a)==="details"&&!a.open&&!zj(t,a)||a.hasAttribute("hidden")||!u&&!Nj(a,i))return!1}return!0}function Nj(t,a){const i=jr(t);return a?i.display!=="none":Y1(t,i)}function L_(t){const a=t.tabIndex;if(a<0){const i=Fo(t);if(i==="details"||i==="audio"||i==="video"||Fn(t)&&t.isContentEditable)return 0}return a}function b2(t){if(Fo(t)!=="input")return null;const a=t;return a.type==="radio"&&a.name!==""?a:null}function Uj(t,a){const i=b2(t);if(!i)return!0;const u=a.find(f=>{const p=b2(f);return p?.name===i.name&&p.form===i.form&&p.checked});return u?u===i:a.find(f=>{const p=b2(f);return p?.name===i.name&&p.form===i.form})===i}function H_(t){if(Fn(t)&&Fo(t)==="slot"){const a=t.assignedElements({flatten:!0});if(a.length>0)return a}return Fn(t)&&t.shadowRoot?Array.from(t.shadowRoot.children):Array.from(t.children)}function k_(t,a){H_(t).forEach(i=>{U_(i)&&a.push(i),k_(i,a)})}function V_(t,a,i){H_(t).forEach(u=>{Fn(u)&&u.matches(a)&&i.push(u),V_(u,a,i)})}function S2(t){return j_(t)&&L_(t)>=0}function B_(t){const a=[];return k_(t,a),a.filter(j_)}function Zy(t){const a=B_(t);return a.filter(i=>L_(i)>=0&&Uj(i,a))}function G_(t,a){const i=Zy(t),u=i.length;if(u===0)return;const f=Qo(Pt(t)),p=i.indexOf(f),y=p===-1?a===1?0:u-1:p+a;return i[y]}function E2(t){return G_(Pt(t).body,1)||t}function Y_(t){return G_(Pt(t).body,-1)||t}function I_(t,a){if(!t)return null;const i=Zy(Pt(t).body),u=i.length;if(u===0)return null;const f=i.indexOf(t);if(f===-1)return null;const p=(f+a+u)%u;return i[p]}function jj(t){return I_(t,1)}function Lj(t){return I_(t,-1)}function Yp(t,a){const i=a||t.currentTarget,u=t.relatedTarget;return!u||!wt(i,u)}function Hj(t){Zy(t).forEach(i=>{i.dataset.tabindex=i.getAttribute("tabindex")||"",i.setAttribute("tabindex","-1")})}function q_(t){const a=[];V_(t,"[data-tabindex]",a),a.forEach(i=>{const u=i.dataset.tabindex;delete i.dataset.tabindex,u?i.setAttribute("tabindex",u):i.removeAttribute("tabindex")})}const I1=BU(t=>t.toasts,t=>{const a=new Map;let i=0,u=0;return t.forEach((f,p)=>{const y=f.transitionStatus==="ending";a.set(f.id,{value:f,domIndex:p,visibleIndex:y?-1:i,offsetY:u}),u+=f.height||0,y||(i+=1)}),a}),Su={toasts:Ke(t=>t.toasts),isEmpty:Ke(t=>t.toasts.length===0),toast:Ke(I1,(t,a)=>t.get(a)?.value),toastIndex:Ke(I1,(t,a)=>t.get(a)?.domIndex??-1),toastOffsetY:Ke(I1,(t,a)=>t.get(a)?.offsetY??0),toastVisibleIndex:Ke(I1,(t,a)=>t.get(a)?.visibleIndex??-1),hovering:Ke(t=>t.hovering),focused:Ke(t=>t.focused),expanded:Ke(t=>t.hovering||t.focused),expandedOrOutOfFocus:Ke(t=>t.hovering||t.focused||!t.isWindowFocused),prevFocusElement:Ke(t=>t.prevFocusElement)};class kj extends D1{timers=new Map;areTimersPaused=!1;constructor(a){super(a,{},Su)}setFocused(a){this.set("focused",a)}setHovering(a){this.set("hovering",a)}setIsWindowFocused(a){this.set("isWindowFocused",a)}setPrevFocusElement(a){this.set("prevFocusElement",a)}setViewport=a=>{this.set("viewport",a)};disposeEffect=()=>()=>{this.timers.forEach(a=>{a.timeout?.clear()}),this.timers.clear()};removeToast(a,i={}){const u=Su.toastIndex(this.state,a);if(u===-1)return;const f=this.state.toasts[u];i.skipOnRemove||f?.onRemove?.();const p=[...this.state.toasts];p.splice(u,1),this.setToasts(p)}addToast=a=>{const{timeout:i,limit:u}=this.state,f=a.id||uj("toast");if(a.id){const b=Su.toast(this.state,a.id);if(b)if(b.transitionStatus==="ending")this.removeToast(a.id,{skipOnRemove:!0});else{const{id:E,transitionStatus:T,...O}=a;return this.updateToastInternal(a.id,O,{resetTimer:!0,markUpdated:!0}),a.id}}const p={...a,id:f,updateKey:0,transitionStatus:"starting"},y=[p,...this.state.toasts],g=y.filter(b=>b.transitionStatus!=="ending");if(g.length>u){const b=g.length-u,E=g.slice(-b),T=new Set(E.map(O=>O.id));this.setToasts(y.map(O=>{const _=T.has(O.id);return O.limited!==_?{...O,limited:_}:O}))}else this.setToasts(y.map(b=>b.limited?{...b,limited:!1}:b));const S=p.timeout??i;return p.type!=="loading"&&S>0&&this.scheduleTimer(f,S,()=>this.closeToast(f)),Su.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),f};updateToast=(a,i)=>{this.updateToastInternal(a,i,{markUpdated:!0})};updateToastInternal=(a,i,u={})=>{const{timeout:f,toasts:p}=this.state,y=Su.toast(this.state,a)??null;if(!y||y.transitionStatus==="ending")return;const g={...y,...i,...u.markUpdated&&{updateKey:(y.updateKey??0)+1}};this.setToasts(p.map(D=>D.id===a?g:D));const S=g.timeout??f,b=y?.timeout??f,E=Object.hasOwn(i,"timeout"),T=g.transitionStatus!=="ending"&&g.type!=="loading"&&S>0,O=this.timers.has(a),_=b!==S,A=y?.type==="loading";if(!T&&O){this.timers.get(a)?.timeout?.clear(),this.timers.delete(a);return}if(T&&(!O||_||E||A||u.resetTimer)){const D=this.timers.get(a);D&&(D.timeout?.clear(),this.timers.delete(a)),this.scheduleTimer(a,S,()=>this.closeToast(a)),Su.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=a=>{const i=a===void 0,{limit:u,toasts:f}=this.state;let p;if(i)p=f,this.timers.forEach(b=>{b.timeout?.clear()}),this.timers.clear();else{const b=Su.toast(this.state,a);if(!b)return;p=[b];const E=this.timers.get(a);E?.timeout&&(E.timeout.clear(),this.timers.delete(a))}let y=0;const S={toasts:f.map(b=>{if(i||b.id===a)return{...b,transitionStatus:"ending",height:0};if(b.transitionStatus==="ending")return b;const E=y>=u;return y+=1,b.limited!==E?{...b,limited:E}:b})};(i||f.length===1)&&(S.hovering=!1,S.focused=!1),this.update(S),p.forEach(b=>{b.transitionStatus!=="ending"&&b.onClose?.()}),this.handleFocusManagement(a)};promiseToast=(a,i)=>{const u=a2(i.loading),f=this.addToast({...u,type:"loading"}),p=a.then(y=>{const g=a2(i.success,y);return this.updateToast(f,{...g,type:"success",timeout:g.timeout}),y}).catch(y=>{const g=a2(i.error,y);return this.updateToast(f,{...g,type:"error",timeout:g.timeout}),Promise.reject(y)});return{}.hasOwnProperty.call(i,"setPromise")&&i.setPromise(p),p};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(a=>{if(a.timeout){a.timeout.clear();const i=Date.now()-a.start,u=a.delay-i;a.remaining=u>0?u:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((a,i)=>{a.remaining=a.remaining>0?a.remaining:a.delay,a.timeout??=nl.create(),a.timeout.start(a.remaining,()=>{this.timers.delete(i),a.callback()}),a.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=a=>{if(a.pointerType!=="touch")return;const i=Na(a);wt(this.state.viewport,i)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(a,i,u){const f=Date.now(),p=!Su.expandedOrOutOfFocus(this.state),y=p?nl.create():void 0;y?.start(i,()=>{this.timers.delete(a),u()}),this.timers.set(a,{timeout:y,start:p?f:0,delay:i,remaining:i,callback:u})}setToasts(a){const i={toasts:a};a.length===0&&(i.hovering=!1,i.focused=!1),this.update(i)}handleFocusManagement(a){const i=Qo(Pt(this.state.viewport));if(!this.state.viewport||!wt(this.state.viewport,i)||!f2(i))return;if(a===void 0){this.restoreFocusToPrevElement();return}const u=Su.toasts(this.state),f=Su.toastIndex(this.state,a);let p=null,y=f+1;for(;y<u.length;){if(u[y].transitionStatus!=="ending"){p=u[y];break}y+=1}if(!p)for(y=f-1;y>=0;){if(u[y].transitionStatus!=="ending"){p=u[y];break}y-=1}p?p.ref?.current?.focus():this.restoreFocusToPrevElement()}}const $_=function(a){const{children:i,timeout:u=5e3,limit:f=3,toastManager:p}=a,y=ro(()=>new kj({timeout:u,limit:f,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return Vy(y.disposeEffect),x.useEffect(function(){return p?p[" subscribe"](({action:b,options:E})=>{const T=E.id;b==="promise"&&E.promise?y.promiseToast(E.promise,E):b==="update"&&T?y.updateToast(T,E):b==="close"?y.closeToast(T):y.addToast(E)}):void 0},[y,u,p]),y.useSyncedValues({timeout:u,limit:f}),P.jsx(O1.Provider,{value:y,children:i})};process.env.NODE_ENV!=="production"&&($_.displayName="ToastProvider");const Z_={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},q1={...Z_,position:"fixed",top:0,left:0},X_={...Z_,position:"absolute"},Eu=x.forwardRef(function(a,i){const[u,f]=x.useState();rt(()=>{sj&&f("button")},[]);const p={tabIndex:0,role:u};return P.jsx("span",{...a,ref:i,style:q1,"aria-hidden":u?void 0:!0,...p,"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(Eu.displayName="FocusGuard");function _d(t,a,i,u){const f=ro(P_).current;return Bj(f,t,a,i,u)&&F_(f,[t,a,i,u]),f.callback}function Vj(t){const a=ro(P_).current;return Gj(a,t)&&F_(a,t),a.callback}function P_(){return{callback:null,cleanup:null,refs:[]}}function Bj(t,a,i,u,f){return t.refs[0]!==a||t.refs[1]!==i||t.refs[2]!==u||t.refs[3]!==f}function Gj(t,a){return t.refs.length!==a.length||t.refs.some((i,u)=>i!==a[u])}function F_(t,a){if(t.refs=a,a.every(i=>i==null)){t.callback=null;return}t.callback=i=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),i!=null){const u=Array(a.length).fill(null);for(let f=0;f<a.length;f+=1){const p=a[f];if(p!=null)switch(typeof p){case"function":{const y=p(i);typeof y=="function"&&(u[f]=y);break}case"object":{p.current=i;break}}}t.cleanup=()=>{for(let f=0;f<a.length;f+=1){const p=a[f];if(p!=null)switch(typeof p){case"function":{const y=u[f];typeof y=="function"?y():p(null);break}case"object":{p.current=null;break}}}}}}}function Q_(t){if(!x.isValidElement(t))return null;const a=t,i=a.props;return(JT(19)?i?.ref:a.ref)??null}function w2(t,a){if(t&&!a)return t;if(!t&&a)return a;if(t||a)return{...t,...a}}let T2;process.env.NODE_ENV!=="production"&&(T2=new Set);function Yj(...t){if(process.env.NODE_ENV!=="production"){const a=t.join(" ");T2.has(a)||(T2.add(a),console.warn(`Base UI: ${a}`))}}function Ij(t,a){const i={};for(const u in t){const f=t[u];if(a?.hasOwnProperty(u)){const p=a[u](f);p!=null&&Object.assign(i,p);continue}f===!0?i[`data-${u.toLowerCase()}`]="":f&&(i[`data-${u.toLowerCase()}`]=f.toString())}return i}function qj(t,a){return typeof t=="function"?t(a):t}function $j(t,a){return typeof t=="function"?t(a):t}const R2={};function ps(t,a,i,u,f){if(!i&&!u&&!f&&!t)return $1(a);let p=$1(t);return a&&(p=Xy(p,a)),i&&(p=Xy(p,i)),u&&(p=Xy(p,u)),f&&(p=Xy(p,f)),p}function Zj(t){if(t.length===0)return R2;if(t.length===1)return $1(t[0]);let a=$1(t[0]);for(let i=1;i<t.length;i+=1)a=Xy(a,t[i]);return a}function $1(t){return O2(t)?{...K_(t,R2)}:Xj(t)}function Xy(t,a){return O2(a)?K_(a,t):Pj(t,a)}function Xj(t){const a={...t};for(const i in a){const u=a[i];J_(i,u)&&(a[i]=W_(u))}return a}function Pj(t,a){if(!a)return t;for(const i in a){const u=a[i];switch(i){case"style":{t[i]=w2(t.style,u);break}case"className":{t[i]=eA(t.className,u);break}default:J_(i,u)?t[i]=Fj(t[i],u):t[i]=u}}return t}function J_(t,a){const i=t.charCodeAt(0),u=t.charCodeAt(1),f=t.charCodeAt(2);return i===111&&u===110&&f>=65&&f<=90&&(typeof a=="function"||typeof a>"u")}function O2(t){return typeof t=="function"}function K_(t,a){return O2(t)?t(a):t??R2}function Fj(t,a){return a?t?(...i)=>{const u=i[0];if(tA(u)){const p=u;Z1(p);const y=a(...i);return p.baseUIHandlerPrevented||t?.(...i),y}const f=a(...i);return t?.(...i),f}:W_(a):t}function W_(t){return t&&((...a)=>{const i=a[0];return tA(i)&&Z1(i),t(...a)})}function Z1(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function eA(t,a){return a?t?a+" "+t:a:t}function tA(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}function Hn(t,a,i={}){const u=a.render,f=Qj(a,i);if(i.enabled===!1)return null;const p=i.state??za;return t9(t,u,f,p)}function Qj(t,a={}){const{className:i,style:u,render:f}=t,{state:p=za,ref:y,props:g,stateAttributesMapping:S,enabled:b=!0}=a,E=b?qj(i,p):void 0,T=b?$j(u,p):void 0,O=b?Ij(p,S):za,_=b&&g?Jj(g):void 0,A=b?w2(O,_)??{}:za;return typeof document<"u"&&(b?Array.isArray(y)?A.ref=Vj([A.ref,Q_(f),...y]):A.ref=_d(A.ref,Q_(f),y):_d(null,null)),b?(E!==void 0&&(A.className=eA(A.className,E)),T!==void 0&&(A.style=w2(A.style,T)),A):za}function Jj(t){return Array.isArray(t)?Zj(t):ps(void 0,t)}const Kj=Symbol.for("react.lazy"),Wj=/^[A-Z][A-Za-z0-9$]*$/,e9=/[a-z]/;function t9(t,a,i,u){if(a){if(typeof a=="function")return process.env.NODE_ENV!=="production"&&n9(a),a(i,u);const f=ps(i,a.props);f.ref=i.ref;let p=a;if(p?.$$typeof===Kj&&(p=x.Children.toArray(a)[0]),process.env.NODE_ENV!=="production"&&!x.isValidElement(p))throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.","https://base-ui.com/r/invalid-render-prop"].join(`
258
+ `));return x.cloneElement(p,f)}if(t&&typeof t=="string")return a9(t,i);throw new Error(process.env.NODE_ENV!=="production"?"Base UI: Render element or function are not defined.":va(8))}function n9(t){const a=t.name;a.length!==0&&Wj.test(a)&&e9.test(a)&&Yj(`The \`render\` prop received a function named \`${a}\` that starts with an uppercase letter.`,"This usually means a React component was passed directly as `render={Component}`.","Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.","If this is an intentional render callback, rename it to start with a lowercase letter.","Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.","https://base-ui.com/r/invalid-render-prop")}function a9(t,a){return t==="button"?x.createElement("button",{type:"button",...a,key:a.key}):t==="img"?x.createElement("img",{alt:"",...a,key:a.key}):x.createElement(t,a)}let o9=(function(t){return t.frontmostHeight="--toast-frontmost-height",t})({});const nA=x.forwardRef(function(a,i){const{render:u,className:f,style:p,children:y,...g}=a,S=t_(),b=al(),E=x.useRef(!1),T=x.useRef(!1),O=x.useRef(!1),_=S.useState("isEmpty"),A=S.useState("toasts"),D=S.useState("focused"),N=S.useState("expanded"),M=S.useState("prevFocusElement"),q=A[0]?.height??0,I=x.useMemo(()=>A.some(B=>B.transitionStatus==="ending"),[A]);x.useEffect(()=>{const B=S.state.viewport;if(!B)return;function F(ce){_||ce.key==="F6"&&Na(ce)!==B&&(ce.preventDefault(),S.setPrevFocusElement(Qo(Pt(B))),B?.focus({preventScroll:!0}),S.pauseTimers(),S.setFocused(!0))}const ne=oa(B);return Ft(ne,"keydown",F)},[S,_]),x.useEffect(()=>{const B=S.state.viewport;if(!B||_)return;const F=oa(B);function ne(j){Na(j)===F&&(S.setIsWindowFocused(!1),S.pauseTimers())}function ce(j){if(j.relatedTarget)return;const Q=Na(j),oe=Qo(Pt(B));(Q===F||!wt(B,Q)||!f2(oe))&&S.resumeTimers(),b.start(0,()=>S.setIsWindowFocused(!0))}return gu(Ft(F,"blur",ne,!0),Ft(F,"focus",ce,!0))},[S,b,_]),x.useEffect(()=>{const B=S.state.viewport;if(!B||_)return;const F=Pt(B);return Ft(F,"pointerdown",S.handleDocumentPointerDown,!0)},[_,S]);function Y(B){const F=S.state.viewport;F&&(E.current=!0,B.relatedTarget===F?A[0]?.ref?.current?.focus():S.restoreFocusToPrevElement())}function H(B){B.key==="Tab"&&B.shiftKey&&Na(B.nativeEvent)===S.state.viewport&&(B.preventDefault(),S.restoreFocusToPrevElement(),S.resumeTimers())}function Z(){const B=S.state.toasts.some(F=>F.transitionStatus==="ending");!S.state.isWindowFocused||B||O.current||!T.current||(S.resumeTimers(),S.setHovering(!1),T.current=!1)}x.useEffect(Z,[I,S]);function V(){S.pauseTimers(),S.setHovering(!0),T.current=!1}function X(){I||O.current?T.current=!0:(S.resumeTimers(),S.setHovering(!1))}function le(B){B.pointerType==="touch"&&(O.current=!0)}function K(B){B.pointerType==="touch"&&(O.current=!1,Z())}function fe(){if(E.current){E.current=!1;return}D||f2(Qo(Pt(S.state.viewport)))&&(S.setFocused(!0),S.pauseTimers())}function ie(B){!D||wt(S.state.viewport,B.relatedTarget)||(S.setFocused(!1),S.resumeTimers())}const ee={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:V,onMouseMove:V,onMouseLeave:X,onFocus:fe,onBlur:ie,onKeyDown:H,onClick:fe,onPointerDown:le,onPointerUp:K,onPointerCancel:K},te={expanded:N},J=Hn("div",a,{ref:[i,S.setViewport],state:te,props:[ee,{style:{[o9.frontmostHeight]:q?`${q}px`:void 0}},g,{children:P.jsxs(x.Fragment,{children:[!_&&M&&P.jsx(Eu,{onFocus:Y}),y,!_&&M&&P.jsx(Eu,{onFocus:Y})]})}]}),L=x.useMemo(()=>A.filter(B=>B.priority==="high"),[A]);return P.jsxs(x.Fragment,{children:[!_&&M&&P.jsx(Eu,{onFocus:Y}),J,!D&&L.length>0&&P.jsx("div",{style:q1,children:L.map(B=>P.jsxs("div",{role:"alert","aria-atomic":!0,children:[P.jsx("div",{children:B.title}),P.jsx("div",{children:B.description})]},B.id))})]})});process.env.NODE_ENV!=="production"&&(nA.displayName="ToastViewport");function X1(t){return JT(19)?t:t?"true":void 0}const C2=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(C2.displayName="ToastRootContext");function r9(){const t=x.useContext(C2);if(!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.":va(66));return t}let Py=(function(t){return t.startingStyle="data-starting-style",t.endingStyle="data-ending-style",t})({});const l9={[Py.startingStyle]:""},i9={[Py.endingStyle]:""},ms={transitionStatus(t){return t==="starting"?l9:t==="ending"?i9:null}};function gs(t){return t==null?t:"current"in t?t.current:t}function aA(t,a=!1,i=!0){const u=H1();return it((f,p=null)=>{u.cancel();const y=gs(t);if(y==null)return;const g=y,S=()=>{tl.flushSync(f)};if(typeof g.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){f();return}function b(){Promise.all(g.getAnimations().map(E=>E.finished)).then(()=>{p?.aborted||S()}).catch(()=>{if(i){p?.aborted||S();return}const E=g.getAnimations();!p?.aborted&&E.length>0&&E.some(T=>T.pending||T.playState!=="finished")&&b()})}if(a){const E=Py.startingStyle;if(!g.hasAttribute(E)){u.request(b);return}const T=new MutationObserver(()=>{g.hasAttribute(E)||(T.disconnect(),b())});T.observe(g,{attributes:!0,attributeFilter:[E]}),p?.addEventListener("abort",()=>T.disconnect(),{once:!0});return}u.request(b)})}function ys(t){const{enabled:a=!0,open:i,ref:u,onComplete:f}=t,p=it(f),y=aA(u,i,!1);x.useEffect(()=>{if(!a)return;const g=new AbortController;return y(p,g.signal),()=>{g.abort()}},[a,i,p,y])}let Ad=(function(t){return t.index="--toast-index",t.offsetY="--toast-offset-y",t.height="--toast-height",t.swipeMovementX="--toast-swipe-movement-x",t.swipeMovementY="--toast-swipe-movement-y",t})({});const u9=500,s9={style:{transition:"none"}},x2="data-base-ui-click-trigger",c9="data-base-ui-swipe-ignore",f9="data-swipe-ignore",d9=`[${c9}]`,h9=`[${f9}]`,p9={fallbackAxisSide:"none"},m9={fallbackAxisSide:"end"},g9={clipPath:"inset(50%)",position:"fixed",top:0,left:0},y9={...ms,swipeDirection(t){return t?{"data-swipe-direction":t}:null}},Fy=40,v9=10,Vc=.5,b9=1,S9=`${d9},${h9}`;function oA(t,a,i){switch(t){case"up":return-i;case"down":return i;case"left":return-a;case"right":return a;default:return 0}}function E9(t){const i=oa(t).getComputedStyle(t).transform;let u=0,f=0,p=1;if(i&&i!=="none"){const y=i.match(/matrix(?:3d)?\(([^)]+)\)/);if(y){const g=y[1].split(", ").map(parseFloat);g.length===6?(u=g[4],f=g[5],p=Math.sqrt(g[0]*g[0]+g[1]*g[1])):g.length===16&&(u=g[12],f=g[13],p=g[0])}}return{x:u,y:f,scale:p}}const rA=x.forwardRef(function(a,i){const{toast:u,render:f,className:p,swipeDirection:y=["down","right"],style:g,...S}=a,b=u.positionerProps?.anchor!==void 0;let E=[];b||(E=Array.isArray(y)?y:[y]);const T=E.length>0,O=t_(),[_,A]=x.useState(void 0),[D,N]=x.useState(!1),[M,q]=x.useState(!1),[I,Y]=x.useState(!1),[H,Z]=x.useState({x:0,y:0}),[V,X]=x.useState({x:0,y:0,scale:1}),[le,K]=x.useState(),[fe,ie]=x.useState(),[ee,te]=x.useState(null),J=x.useRef(null),L=x.useRef({x:0,y:0}),B=x.useRef({x:0,y:0,scale:1}),F=x.useRef(void 0),ne=x.useRef(0),ce=x.useRef(!1),j=x.useRef({x:0,y:0}),Q=x.useRef(!1),oe=O.useState("toastIndex",u.id),de=O.useState("toastVisibleIndex",u.id),ve=O.useState("toastOffsetY",u.id),_e=O.useState("focused"),Te=O.useState("expanded");ys({open:u.transitionStatus!=="ending",ref:J,onComplete(){u.transitionStatus==="ending"&&O.removeToast(u.id)}});const Ue=it((Re=!1)=>{const je=J.current;if(!je)return;const Ce=je.style.height;je.style.height="auto";const we=je.offsetHeight;je.style.height=Ce;function tt(){O.updateToastInternal(u.id,{ref:J,height:we,...u.transitionStatus==="starting"?{transitionStatus:void 0}:{}})}Re?tl.flushSync(tt):tt()});rt(Ue,[Ue]);function Ge(Re,je){let Ce=Re,we=je;return!E.includes("left")&&!E.includes("right")?Ce=Re>0?Re**Vc:-(Math.abs(Re)**Vc):(!E.includes("right")&&Re>0&&(Ce=Re**Vc),!E.includes("left")&&Re<0&&(Ce=-(Math.abs(Re)**Vc))),!E.includes("up")&&!E.includes("down")?we=je>0?je**Vc:-(Math.abs(je)**Vc):(!E.includes("down")&&je>0&&(we=je**Vc),!E.includes("up")&&je<0&&(we=-(Math.abs(je)**Vc))),{x:Ce,y:we}}function We(Re){if(Re.button!==0)return;Re.pointerType==="touch"&&O.pauseTimers();const je=Na(Re.nativeEvent);if(!(je&&je.closest(`button,a,input,textarea,[role="button"],${S9}`))){if(ce.current=!1,F.current=void 0,ne.current=0,L.current={x:Re.clientX,y:Re.clientY},j.current=L.current,J.current){const we=E9(J.current);B.current=we,X(we),Z({x:we.x,y:we.y})}O.setHovering(!0),N(!0),q(!1),te(null),Q.current=!0,J.current?.setPointerCapture(Re.pointerId)}}function Ne(Re){if(!D)return;Re.preventDefault(),Q.current&&(L.current={x:Re.clientX,y:Re.clientY},Q.current=!1);const{clientY:je,clientX:Ce,movementX:we,movementY:tt}=Re;(tt<0&&je>j.current.y||tt>0&&je<j.current.y)&&(j.current={x:j.current.x,y:je}),(we<0&&Ce>j.current.x||we>0&&Ce<j.current.x)&&(j.current={x:Ce,y:j.current.y});const pt=Ce-L.current.x,ct=je-L.current.y,yt=je-j.current.y,ln=Ce-j.current.x;if(!M&&Math.sqrt(pt*pt+ct*ct)>=b9&&(q(!0),ee===null)){const Wt=E.includes("left")||E.includes("right"),en=E.includes("up")||E.includes("down");if(Wt&&en){const yn=Math.abs(pt),k=Math.abs(ct);te(yn>k?"horizontal":"vertical")}}let Rt;if(!F.current)ee==="vertical"?ct>0?Rt="down":ct<0&&(Rt="up"):ee==="horizontal"?pt>0?Rt="right":pt<0&&(Rt="left"):Math.abs(pt)>=Math.abs(ct)?Rt=pt>0?"right":"left":Rt=ct>0?"down":"up",Rt&&E.includes(Rt)&&(F.current=Rt,ne.current=oA(Rt,pt,ct),A(Rt));else{const Ot=F.current,Wt=oA(Ot,ln,yt);Wt>Fy?(ce.current=!1,A(Ot)):!(E.includes("left")&&E.includes("right"))&&!(E.includes("up")&&E.includes("down"))&&ne.current-Wt>=v9&&(ce.current=!0)}const Qt=Ge(pt,ct);let xt=B.current.x,Nt=B.current.y;ee==="horizontal"?(E.includes("left")||E.includes("right"))&&(xt+=Qt.x):(ee==="vertical"||(E.includes("left")||E.includes("right"))&&(xt+=Qt.x),(E.includes("up")||E.includes("down"))&&(Nt+=Qt.y)),Z({x:xt,y:Nt})}function Ze(Re){if(!D)return;if(N(!1),q(!1),te(null),J.current?.releasePointerCapture(Re.pointerId),ce.current){Z({x:V.x,y:V.y}),A(void 0);return}let je=!1;const Ce=H.x-V.x,we=H.y-V.y;let tt;for(const pt of E){switch(pt){case"right":Ce>Fy&&(je=!0,tt="right");break;case"left":Ce<-Fy&&(je=!0,tt="left");break;case"down":we>Fy&&(je=!0,tt="down");break;case"up":we<-Fy&&(je=!0,tt="up");break}if(je)break}je?(A(tt),Y(!0),O.closeToast(u.id)):(Z({x:V.x,y:V.y}),A(void 0))}function lt(){D&&(N(!1),q(!1),te(null),Z({x:V.x,y:V.y}),A(void 0))}function Xe(Re){if(Re.key==="Escape"){if(!J.current||!wt(J.current,Qo(Pt(J.current))))return;O.closeToast(u.id)}}x.useEffect(()=>{if(!T)return;const Re=J.current;if(!Re)return;function je(Ce){wt(Re,Na(Ce))&&Ce.preventDefault()}return Ft(Re,"touchmove",je,{passive:!1})},[T]);function ht(){if(!D&&H.x===V.x&&H.y===V.y&&!I)return{[Ad.swipeMovementX]:"0px",[Ad.swipeMovementY]:"0px"};const Re=H.x-V.x,je=H.y-V.y;return{transition:D?"none":void 0,transform:D?`translateX(${H.x}px) translateY(${H.y}px) scale(${V.scale})`:void 0,[Ad.swipeMovementX]:`${Re}px`,[Ad.swipeMovementY]:`${je}px`}}const $e=u.priority==="high",Qe={role:$e?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":le,"aria-describedby":fe,"aria-hidden":$e&&!_e?!0:void 0,onPointerDown:T?We:void 0,onPointerMove:T?Ne:void 0,onPointerUp:T?Ze:void 0,onPointerCancel:T?lt:void 0,onKeyDown:Xe,inert:X1(u.limited),style:{...ht(),[Ad.index]:u.transitionStatus==="ending"?oe:de,[Ad.offsetY]:`${ve}px`,[Ad.height]:u.height?`${u.height}px`:void 0}},dt=x.useMemo(()=>({rootRef:J,toast:u,titleId:le,setTitleId:K,descriptionId:fe,setDescriptionId:ie,swiping:D,swipeDirection:_,recalculateHeight:Ue,index:oe,visibleIndex:de,expanded:Te}),[u,le,fe,D,_,Ue,oe,de,Te]),et={transitionStatus:u.transitionStatus,expanded:Te,limited:u.limited||!1,type:u.type,swiping:dt.swiping,swipeDirection:dt.swipeDirection},Ve=Hn("div",a,{ref:[i,dt.rootRef],state:et,stateAttributesMapping:y9,props:[Qe,S]});return P.jsx(C2.Provider,{value:dt,children:Ve})});process.env.NODE_ENV!=="production"&&(rA.displayName="ToastRoot");const Qy={...S1};let lA=0;function w9(t,a="mui"){const[i,u]=x.useState(t),f=t||i;return x.useEffect(()=>{i==null&&(lA+=1,u(`${a}-${lA}`))},[i,a]),f}const iA=Qy.useId;function Dd(t,a){if(iA!==void 0){const i=iA();return t??(a?`${a}-${i}`:i)}return w9(t,a)}const uA=x.forwardRef(function(a,i){const{render:u,className:f,style:p,id:y,children:g,...S}=a,{toast:b,setDescriptionId:E}=r9(),T=g??b.description,O=!!T,_=Dd(y);rt(()=>{if(O)return E(_),()=>{E(void 0)}},[O,_,E]);const A={type:b.type},D=Hn("p",a,{ref:i,state:A,props:{...S,id:_,children:T}});return O?D:null});process.env.NODE_ENV!=="production"&&(uA.displayName="ToastDescription");let _2;process.env.NODE_ENV!=="production"&&(_2=new Set);function Ip(...t){if(process.env.NODE_ENV!=="production"){const a=t.join(" ");_2.has(a)||(_2.add(a),console.error(`Base UI: ${a}`))}}const sA=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(sA.displayName="CompositeRootContext");function T9(t=!1){const a=x.useContext(sA);if(a===void 0&&!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.":va(16));return a}function R9(t){const{focusableWhenDisabled:a,disabled:i,composite:u=!1,tabIndex:f=0,isNativeButton:p}=t,y=u&&a!==!1,g=u&&a===!1;return{props:x.useMemo(()=>{const b={onKeyDown(E){i&&a&&E.key!=="Tab"&&E.preventDefault()}};return u||(b.tabIndex=f,!p&&i&&(b.tabIndex=a?f:-1)),(p&&(a||y)||!p&&i)&&(b["aria-disabled"]=i),p&&(!a||g)&&(b.disabled=i),b},[u,i,a,y,g,p,f])}}function qp(t={}){const{disabled:a=!1,focusableWhenDisabled:i,tabIndex:u=0,native:f=!0,composite:p}=t,y=x.useRef(null),g=T9(!0),S=p??g!==void 0,{props:b}=R9({focusableWhenDisabled:i,disabled:a,composite:S,tabIndex:u,isNativeButton:f});process.env.NODE_ENV!=="production"&&x.useEffect(()=>{if(!y.current)return;const _=P1(y.current);if(f){if(!_){const A=Qy.captureOwnerStack?.()||"";Ip(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${A}`)}}else if(_){const A=Qy.captureOwnerStack?.()||"";Ip(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${A}`)}},[f]);const E=x.useCallback(()=>{const _=y.current;P1(_)&&S&&a&&b.disabled===void 0&&_.disabled&&(_.disabled=!1)},[a,b.disabled,S]);rt(E,[E]);const T=x.useCallback((_={})=>{const{onClick:A,onMouseDown:D,onKeyUp:N,onKeyDown:M,onPointerDown:q,...I}=_;return ps({type:f?"button":void 0,onClick(H){if(a){H.preventDefault();return}A?.(H)},onMouseDown(H){a||D?.(H)},onKeyDown(H){if(a||(Z1(H),M?.(H),H.baseUIHandlerPrevented))return;const Z=H.target===H.currentTarget,V=H.currentTarget,X=P1(V),le=!f&&O9(V),K=Z&&(f?X:!le),fe=H.key==="Enter",ie=H.key===" ",ee=V.getAttribute("role"),te=ee?.startsWith("menuitem")||ee==="option"||ee==="gridcell";if(Z&&S&&ie){if(H.defaultPrevented&&te)return;H.preventDefault(),le||f&&X?(V.click(),H.preventBaseUIHandler()):K&&(A?.(H),H.preventBaseUIHandler());return}K&&(!f&&(ie||fe)&&H.preventDefault(),!f&&fe&&A?.(H))},onKeyUp(H){if(!a){if(Z1(H),N?.(H),H.target===H.currentTarget&&f&&S&&P1(H.currentTarget)&&H.key===" "){H.preventDefault();return}H.baseUIHandlerPrevented||H.target===H.currentTarget&&!f&&!S&&H.key===" "&&A?.(H)}},onPointerDown(H){if(a){H.preventDefault();return}q?.(H)}},f?void 0:{role:"button"},b,I)},[a,b,S,f]),O=it(_=>{y.current=_,E()});return{getButtonProps:T,buttonRef:O}}function P1(t){return Fn(t)&&t.tagName==="BUTTON"}function O9(t){return!!(t?.tagName==="A"&&t?.href)}function C9(t,a){return a!=null&&!qy(a)?0:typeof t=="function"?t():t}function A2(t,a,i){const u=C9(t,i);return typeof u=="number"?u:u?.[a]}function cA(t){return typeof t=="function"?t():t}function fA(t,a){return a||t==="click"||t==="mousedown"}const $p="none",Zp="trigger-press",cr="trigger-hover",D2="outside-press",M2="item-press",x9="close-press",Md="focus-out",dA="escape-key",z2="list-navigation",_9="cancel-open",hA="imperative-action",A9="window-resize";function sn(t,a,i,u){let f=!1,p=!1;const y=za;return{reason:t,event:a??new Event("base-ui"),cancel(){f=!0},allowPropagation(){p=!0},get isCanceled(){return f},get isPropagationAllowed(){return p},trigger:i,...y}}function D9(t,a,i){const u=za;return{reason:t,event:a??new Event("base-ui"),...u}}function Ya(t){const a=ro(M9,t).current;return a.next=t,rt(a.effect),a}function M9(t){const a={current:t,next:t,effect:()=>{a.current=a.next}};return a}function F1(t){return`data-base-ui-${t}`}let Q1=0;function J1(t,a={}){const{preventScroll:i=!1,cancelPrevious:u=!0,sync:f=!1}=a;u&&cancelAnimationFrame(Q1);const p=()=>t?.focus({preventScroll:i});if(f)return p(),go;const y=requestAnimationFrame(p);return Q1=y,()=>{Q1===y&&(cancelAnimationFrame(y),Q1=0)}}const N2={inert:new WeakMap,"aria-hidden":new WeakMap},pA="data-base-ui-inert",U2={inert:new WeakSet,"aria-hidden":new WeakSet};let Jy=new WeakMap,j2=0;function z9(t){return U2[t]}function mA(t){return t?kp(t)?t.host:mA(t.parentNode):null}const L2=(t,a)=>a.map(i=>{if(t.contains(i))return i;const u=mA(i);return t.contains(u)?u:null}).filter(i=>i!=null),gA=t=>{const a=new Set;return t.forEach(i=>{let u=i;for(;u&&!a.has(u);)a.add(u),u=u.parentNode}),a},yA=(t,a,i)=>{const u=[],f=p=>{!p||i.has(p)||Array.from(p.children).forEach(y=>{Fo(y)!=="script"&&(a.has(y)?f(y):u.push(y))})};return f(t),u};function N9(t,a,i,u,{mark:f=!0,markerIgnoreElements:p=[]}){const y=u?"inert":i?"aria-hidden":null;let g=null,S=null;const b=L2(a,t),E=f?L2(a,p):[],T=new Set(E),O=f?yA(a,gA(b),new Set(b)).filter(D=>!T.has(D)):[],_=[],A=[];if(y){const D=N2[y],N=z9(y);S=N,g=D;const M=L2(a,Array.from(a.querySelectorAll("[aria-live]"))),q=b.concat(M);yA(a,gA(q),new Set(q)).forEach(Y=>{const H=Y.getAttribute(y),Z=H!==null&&H!=="false",V=(D.get(Y)||0)+1;D.set(Y,V),_.push(Y),V===1&&Z&&N.add(Y),Z||Y.setAttribute(y,y==="inert"?"":"true")})}return f&&O.forEach(D=>{const N=(Jy.get(D)||0)+1;Jy.set(D,N),A.push(D),N===1&&D.setAttribute(pA,"")}),j2+=1,()=>{g&&_.forEach(D=>{const M=(g.get(D)||0)-1;g.set(D,M),M||(!S?.has(D)&&y&&D.removeAttribute(y),S?.delete(D))}),f&&A.forEach(D=>{const N=(Jy.get(D)||0)-1;Jy.set(D,N),N||D.removeAttribute(pA)}),j2-=1,j2||(N2.inert=new WeakMap,N2["aria-hidden"]=new WeakMap,U2.inert=new WeakSet,U2["aria-hidden"]=new WeakSet,Jy=new WeakMap)}}function vA(t,a={}){const{ariaHidden:i=!1,inert:u=!1,mark:f=!0,markerIgnoreElements:p=[]}=a,y=Pt(t[0]).body;return N9(t,y,i,u,{mark:f,markerIgnoreElements:p})}const H2=x.createContext(null);process.env.NODE_ENV!=="production"&&(H2.displayName="PortalContext");const bA=()=>x.useContext(H2),U9=F1("portal");function SA(t={}){const{ref:a,container:i,componentProps:u=za,elementProps:f}=t,p=Dd(),g=bA()?.portalNode,[S,b]=x.useState(null),[E,T]=x.useState(null),O=it(N=>{N!==null&&T(N)}),_=x.useRef(null);rt(()=>{if(i===null){_.current&&(_.current=null,T(null),b(null));return}if(p==null)return;const N=(i&&(WT(i)?i:i.current))??g??document.body;if(N==null){_.current&&(_.current=null,T(null),b(null));return}_.current!==N&&(_.current=N,T(null),b(N))},[i,g,p]);const A=Hn("div",u,{ref:[a,O],props:[{id:p,[U9]:""},f]});return{portalNode:E,portalSubtree:S&&A?tl.createPortal(A,S):null}}const K1=x.forwardRef(function(a,i){const{children:u,container:f,className:p,render:y,renderGuards:g,style:S,...b}=a,{portalNode:E,portalSubtree:T}=SA({container:f,ref:i,componentProps:a,elementProps:b}),O=x.useRef(null),_=x.useRef(null),A=x.useRef(null),D=x.useRef(null),[N,M]=x.useState(null),q=x.useRef(!1),I=N?.modal,Y=N?.open,H=typeof g=="boolean"?g:!!N&&!N.modal&&N.open&&!!E;x.useEffect(()=>{if(!E||I)return;function V(X){E&&X.relatedTarget&&Yp(X)&&(X.type==="focusin"?q.current&&(q_(E),q.current=!1):(Hj(E),q.current=!0))}return gu(Ft(E,"focusin",V,!0),Ft(E,"focusout",V,!0))},[E,I]),x.useEffect(()=>{!E||Y!==!1||(q_(E),q.current=!1)},[Y,E]);const Z=x.useMemo(()=>({beforeOutsideRef:O,afterOutsideRef:_,beforeInsideRef:A,afterInsideRef:D,portalNode:E,setFocusManagerState:M}),[E]);return P.jsxs(x.Fragment,{children:[T,P.jsxs(H2.Provider,{value:Z,children:[H&&E&&P.jsx(Eu,{"data-type":"outside",ref:O,onFocus:V=>{if(Yp(V,E))A.current?.focus();else{const X=N?N.domReference:null;Y_(X)?.focus()}}}),H&&E&&P.jsx("span",{"aria-owns":E.id,style:g9}),E&&tl.createPortal(u,E),H&&E&&P.jsx(Eu,{"data-type":"outside",ref:_,onFocus:V=>{if(Yp(V,E))D.current?.focus();else{const X=N?N.domReference:null;E2(X)?.focus(),N?.closeOnFocusOut&&N?.onOpenChange(!1,sn(Md,V.nativeEvent))}}})]})]})});process.env.NODE_ENV!=="production"&&(K1.displayName="FloatingPortal");function EA(){const t=new Map;return{emit(a,i){t.get(a)?.forEach(u=>u(i))},on(a,i){t.has(a)||t.set(a,new Set),t.get(a).add(i)},off(a,i){t.get(a)?.delete(i)}}}class j9{nodesRef={current:[]};events=EA();addNode(a){this.nodesRef.current.push(a)}removeNode(a){const i=this.nodesRef.current.findIndex(u=>u===a);i!==-1&&this.nodesRef.current.splice(i,1)}}const k2=x.createContext(null);process.env.NODE_ENV!=="production"&&(k2.displayName="FloatingNodeContext");const V2=x.createContext(null);process.env.NODE_ENV!=="production"&&(V2.displayName="FloatingTreeContext");const Bc=()=>x.useContext(k2)?.id||null,zd=t=>{const a=x.useContext(V2);return t??a};function L9(t){const a=Dd(),i=zd(t),u=Bc();return rt(()=>{if(!a)return;const f={id:a,parentId:u};return i?.addNode(f),()=>{i?.removeNode(f)}},[i,a,u]),a}function H9(t){const{children:a,id:i}=t,u=Bc();return P.jsx(k2.Provider,{value:x.useMemo(()=>({id:i,parentId:u}),[i,u]),children:a})}function k9(t){const{children:a,externalTree:i}=t,u=ro(()=>i??new j9).current;return P.jsx(V2.Provider,{value:u,children:a})}function V9(t,a){const i=oa(Na(t));return t instanceof i.KeyboardEvent?"keyboard":t instanceof i.FocusEvent?a||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof i.MouseEvent?a||(t.detail===0?"keyboard":"mouse"):""}const wA=20;let Gc=[];function B2(){Gc=Gc.filter(t=>t.deref()?.isConnected)}function B9(t){B2(),t&&Fo(t)!=="body"&&(Gc.push(new WeakRef(t)),Gc.length>wA&&(Gc=Gc.slice(-wA)))}function G2(){return B2(),Gc[Gc.length-1]?.deref()}function G9(t){return t?S2(t)?t:Zy(t)[0]||t:null}function TA(t,a){if(t.hasAttribute("tabindex")&&!t.hasAttribute("data-tabindex")||!a.current.includes("floating")&&!t.getAttribute("role")?.includes("dialog"))return;const u=B_(t).filter(p=>{const y=p.getAttribute("data-tabindex")||"";return S2(p)||p.hasAttribute("data-tabindex")&&!y.startsWith("-")}),f=t.getAttribute("tabindex");a.current.includes("floating")||u.length===0?f!=="0"&&t.setAttribute("tabindex","0"):(f!=="-1"||t.hasAttribute("data-tabindex")&&t.getAttribute("data-tabindex")!=="-1")&&(t.setAttribute("tabindex","-1"),t.setAttribute("data-tabindex","-1"))}function Y2(t){const{context:a,children:i,disabled:u=!1,initialFocus:f=!0,returnFocus:p=!0,restoreFocus:y=!1,modal:g=!0,closeOnFocusOut:S=!0,openInteractionType:b="",nextFocusableElement:E,previousFocusableElement:T,beforeContentFocusGuardRef:O,externalTree:_,getInsideElements:A}=t,D="rootStore"in a?a.rootStore:a,N=D.useState("open"),M=D.useState("domReferenceElement"),q=D.useState("floatingElement"),{events:I,dataRef:Y}=D.context,H=it(()=>Y.current.floatingContext?.nodeId),Z=f===!1,V=c2(M)&&Z,X=x.useRef(["content"]),le=Ya(f),K=Ya(p),fe=Ya(b),ie=zd(_),ee=bA(),te=x.useRef(!1),J=x.useRef(!1),L=x.useRef(!1),B=x.useRef(null),F=x.useRef(""),ne=x.useRef(""),ce=x.useRef(null),j=x.useRef(null),Q=_d(ce,O,ee?.beforeInsideRef),oe=_d(j,ee?.afterInsideRef),de=al(),ve=al(),_e=H1(),Te=ee!=null,Ue=Iy(q),Ge=it((Ze=Ue)=>Ze?Zy(Ze):[]),We=it(()=>A?.().filter(Ze=>Ze!=null)??[]);x.useEffect(()=>{if(u||!g)return;function Ze(Xe){Xe.key==="Tab"&&wt(Ue,Qo(Pt(Ue)))&&Ge().length===0&&!V&&ol(Xe)}const lt=Pt(Ue);return Ft(lt,"keydown",Ze)},[u,M,Ue,g,X,V,Ge]),x.useEffect(()=>{if(u||!N)return;const Ze=Pt(Ue);function lt(){L.current=!1}function Xe($e){const Qe=Na($e),dt=We(),et=wt(q,Qe)||wt(M,Qe)||wt(ee?.portalNode,Qe)||dt.some(Ve=>Ve===Qe||wt(Ve,Qe));L.current=!et,ne.current=$e.pointerType||"keyboard",Qe?.closest(`[${x2}]`)&&(J.current=!0)}function ht(){ne.current="keyboard"}return gu(Ft(Ze,"pointerdown",Xe,!0),Ft(Ze,"pointerup",lt,!0),Ft(Ze,"pointercancel",lt,!0),Ft(Ze,"keydown",ht,!0))},[u,q,M,Ue,N,ee,We]),x.useEffect(()=>{if(u||!S)return;const Ze=Pt(Ue);function lt(){J.current=!0,ve.start(0,()=>{J.current=!1})}function Xe(dt){const et=Na(dt);S2(et)&&(B.current=et)}function ht(dt){const et=dt.relatedTarget,Ve=dt.currentTarget,Re=Na(dt);queueMicrotask(()=>{const je=H(),Ce=D.context.triggerElements,we=We(),tt=et?.hasAttribute(F1("focus-guard"))&&[ce.current,j.current,ee?.beforeInsideRef.current,ee?.afterInsideRef.current,ee?.beforeOutsideRef.current,ee?.afterOutsideRef.current,gs(T),gs(E)].includes(et),pt=!(wt(M,et)||wt(q,et)||wt(et,q)||wt(ee?.portalNode,et)||we.some(ct=>ct===et||wt(ct,et))||et!=null&&Ce.hasElement(et)||Ce.hasMatchingElement(ct=>wt(ct,et))||tt||ie&&(vu(ie.nodesRef.current,je).find(ct=>wt(ct.context?.elements.floating,et)||wt(ct.context?.elements.domReference,et))||C_(ie.nodesRef.current,je).find(ct=>[ct.context?.elements.floating,Iy(ct.context?.elements.floating)].includes(et)||ct.context?.elements.domReference===et)));if(Ve===M&&Ue&&TA(Ue,X),y&&Ve!==M&&!Y1(Re)&&Qo(Ze)===Ze.body){if(Fn(Ue)&&(Ue.focus(),y==="popup")){_e.request(()=>{Ue.focus()});return}const ct=Ge(),yt=B.current,ln=(yt&&ct.includes(yt)?yt:null)||ct[ct.length-1]||Ue;Fn(ln)&&ln.focus()}if(Y.current.insideReactTree){Y.current.insideReactTree=!1;return}(V||!g)&&et&&pt&&!J.current&&(V||et!==G2())&&(te.current=!0,D.setOpen(!1,sn(Md,dt)))})}function $e(){L.current||(Y.current.insideReactTree=!0,de.start(0,()=>{Y.current.insideReactTree=!1}))}const Qe=Fn(M)?M:null;if(!(!q&&!Qe))return gu(Qe&&Ft(Qe,"focusout",ht),Qe&&Ft(Qe,"pointerdown",lt),q&&Ft(q,"focusin",Xe),q&&Ft(q,"focusout",ht),q&&ee&&Ft(q,"focusout",$e,!0))},[u,M,q,Ue,g,ie,ee,D,S,y,Ge,V,H,X,Y,de,ve,_e,E,T,We]),x.useEffect(()=>{if(u||!q||!N)return;const Ze=Array.from(ee?.portalNode?.querySelectorAll(`[${F1("portal")}]`)||[]),Xe=(ie?C_(ie.nodesRef.current,H()):[]).find(Ve=>c2(Ve.context?.elements.domReference||null))?.context?.elements.domReference,$e=[...[q,...Ze,ce.current,j.current,ee?.beforeOutsideRef.current,ee?.afterOutsideRef.current,...We()],Xe,gs(T),gs(E),V?M:null].filter(Ve=>Ve!=null),Qe=vA($e,{ariaHidden:g||V,mark:!1}),dt=[q,...Ze].filter(Ve=>Ve!=null),et=vA(dt);return()=>{et(),Qe()}},[N,u,M,q,g,X,ee,V,ie,H,E,T,We]),rt(()=>{if(!N||u||!Fn(Ue))return;const Ze=Pt(Ue),lt=Qo(Ze);queueMicrotask(()=>{const Xe=le.current,ht=typeof Xe=="function"?Xe(fe.current||""):Xe;if(ht===void 0||ht===!1||wt(Ue,lt))return;let Qe=null;const dt=()=>(Qe==null&&(Qe=Ge(Ue)),Qe[0]||Ue);let et;ht===!0||ht===null?et=dt():et=gs(ht),et=et||dt(),J1(et,{preventScroll:et===Ue})})},[u,N,Ue,Z,Ge,le,fe]),rt(()=>{if(u||!Ue)return;const Ze=Pt(Ue),lt=Qo(Ze);B9(lt);function Xe($e){if($e.open||(F.current=V9($e.nativeEvent,ne.current)),$e.reason===cr&&$e.nativeEvent.type==="mouseleave"&&(te.current=!0),$e.reason===D2)if($e.nested)te.current=!1;else if(x_($e.nativeEvent)||__($e.nativeEvent))te.current=!1;else{let Qe=!1;Pt(Ue).createElement("div").focus({get preventScroll(){return Qe=!0,!1}}),Qe?te.current=!1:te.current=!0}}I.on("openchange",Xe);function ht(){const $e=K.current;let Qe=typeof $e=="function"?$e(F.current):$e;if(Qe===void 0||Qe===!1)return null;if(Qe===null&&(Qe=!0),typeof Qe=="boolean"){const et=M||G2();return et&&et.isConnected?et:null}const dt=M||G2();return gs(Qe)||dt||null}return()=>{I.off("openchange",Xe);const $e=Qo(Ze),Qe=We(),dt=wt(q,$e)||Qe.some(Re=>Re===$e||wt(Re,$e))||ie&&vu(ie.nodesRef.current,H(),!1).some(Re=>wt(Re.context?.elements.floating,$e)),et=K.current,Ve=ht();queueMicrotask(()=>{const Re=G9(Ve),je=typeof et!="boolean";et&&!te.current&&Fn(Re)&&(!(!je&&Re!==$e&&$e!==Ze.body)||dt)&&Re.focus({preventScroll:!0}),te.current=!1})}},[u,q,Ue,K,Y,I,ie,M,H,We]),rt(()=>{if(!r2||N||!q)return;const Ze=Qo(Pt(q));!Fn(Ze)||!s2(Ze)||wt(q,Ze)&&Ze.blur()},[N,q]),rt(()=>{if(!(u||!ee))return ee.setFocusManagerState({modal:g,closeOnFocusOut:S,open:N,onOpenChange:D.setOpen,domReference:M}),()=>{ee.setFocusManagerState(null)}},[u,ee,g,N,D,S,M]),rt(()=>{if(!(u||!Ue))return TA(Ue,X),()=>{queueMicrotask(B2)}},[u,Ue,X]);const Ne=!u&&(g?!V:!0)&&(Te||g);return P.jsxs(x.Fragment,{children:[Ne&&P.jsx(Eu,{"data-type":"inside",ref:Q,onFocus:Ze=>{if(g){const lt=Ge();J1(lt[lt.length-1])}else ee?.portalNode&&(te.current=!1,Yp(Ze,ee.portalNode)?E2(M)?.focus():gs(T??ee.beforeOutsideRef)?.focus())}}),i,Ne&&P.jsx(Eu,{"data-type":"inside",ref:oe,onFocus:Ze=>{g?J1(Ge()[0]):ee?.portalNode&&(S&&(te.current=!0),Yp(Ze,ee.portalNode)?Y_(M)?.focus():gs(E??ee.afterOutsideRef)?.focus())}})]})}function I2(t,a={}){const i="rootStore"in t?t.rootStore:t,u=i.context.dataRef,{enabled:f=!0,event:p="click",toggle:y=!0,ignoreMouse:g=!1,stickIfOpen:S=!0,touchOpenDelay:b=0,reason:E=Zp}=a,T=x.useRef(void 0),O=H1(),_=al(),A=x.useMemo(()=>({onPointerDown(D){T.current=D.pointerType},onMouseDown(D){const N=T.current,M=D.nativeEvent,q=i.select("open");if(D.button!==0||p==="click"||qy(N,!0)&&g)return;const I=u.current.openEvent,Y=I?.type,H=i.select("domReferenceElement")!==D.currentTarget,Z=q&&H||!(q&&y&&(!(I&&S)||Y==="click"||Y==="mousedown")),V=Na(M);if(s2(V)){const le=sn(E,M,V);Z&&N==="touch"&&b>0?_.start(b,()=>{i.setOpen(!0,le)}):i.setOpen(Z,le);return}const X=D.currentTarget;O.request(()=>{const le=sn(E,M,X);Z&&N==="touch"&&b>0?_.start(b,()=>{i.setOpen(!0,le)}):i.setOpen(Z,le)})},onClick(D){if(p==="mousedown-only")return;const N=T.current;if(p==="mousedown"&&N){T.current=void 0;return}if(qy(N,!0)&&g)return;const M=i.select("open"),q=u.current.openEvent,I=i.select("domReferenceElement")!==D.currentTarget,Y=M&&I||!(M&&y&&(!(q&&S)||A_(q))),H=sn(E,D.nativeEvent,D.currentTarget);Y&&N==="touch"&&b>0?_.start(b,()=>{i.setOpen(!0,H)}):i.setOpen(Y,H)},onKeyDown(){T.current=void 0}}),[u,p,g,i,S,y,O,_,b,E]);return x.useMemo(()=>f?{reference:A}:za,[f,A])}const Y9={intentional:"onClick",sloppy:"onPointerDown"};function I9(){return!1}function q9(t){return{escapeKey:typeof t=="boolean"?t:t?.escapeKey??!1,outsidePress:typeof t=="boolean"?t:t?.outsidePress??!0}}function q2(t,a={}){const i="rootStore"in t?t.rootStore:t,u=i.useState("open"),f=i.useState("floatingElement"),{dataRef:p}=i.context,{enabled:y=!0,escapeKey:g=!0,outsidePress:S=!0,outsidePressEvent:b="sloppy",referencePress:E=I9,referencePressEvent:T="sloppy",bubbles:O,externalTree:_}=a,A=zd(_),D=it(typeof S=="function"?S:()=>!1),N=typeof S=="function"?D:S,M=N!==!1,q=it(()=>b),I=x.useRef(!1),Y=x.useRef(!1),H=x.useRef(!1),{escapeKey:Z,outsidePress:V}=q9(O),X=x.useRef(null),le=al(),K=al(),fe=it(()=>{K.clear(),p.current.insideReactTree=!1}),ie=x.useRef(!1),ee=x.useRef(""),te=it(E),J=it(j=>{if(!u||!y||!g||j.key!=="Escape"||ie.current)return;const Q=p.current.floatingContext?.nodeId,oe=A?vu(A.nodesRef.current,Q):[];if(!Z&&oe.length>0){let _e=!0;if(oe.forEach(Te=>{Te.context?.open&&!Te.context.dataRef.current.__escapeKeyBubbles&&(_e=!1)}),!_e)return}const de=mj(j)?j.nativeEvent:j,ve=sn(dA,de);i.setOpen(!1,ve),!Z&&!ve.isPropagationAllowed&&j.stopPropagation()}),L=it(()=>{p.current.insideReactTree=!0,K.start(0,fe)});x.useEffect(()=>{if(!u||!y)return;p.current.__escapeKeyBubbles=Z,p.current.__outsidePressBubbles=V;const j=new nl,Q=new nl;function oe(){j.clear(),ie.current=!0}function de(){j.start(N1()?5:0,()=>{ie.current=!1})}function ve(){H.current=!0,Q.start(0,()=>{H.current=!1})}function _e(){I.current=!1,Y.current=!1}function Te(){const Ce=ee.current,we=Ce==="pen"||!Ce?"mouse":Ce,tt=q(),pt=typeof tt=="function"?tt():tt;return typeof pt=="string"?pt:pt[we]}function Ue(Ce){const we=Te();return we==="intentional"&&Ce.type!=="click"||we==="sloppy"&&Ce.type==="click"}function Ge(Ce){const we=p.current.floatingContext?.nodeId,tt=A&&vu(A.nodesRef.current,we).some(pt=>zi(Ce,pt.context?.elements.floating));return zi(Ce,i.select("floatingElement"))||zi(Ce,i.select("domReferenceElement"))||tt}function We(Ce){if(Ue(Ce)){fe();return}if(p.current.insideReactTree){fe();return}const we=Na(Ce),tt=`[${F1("inert")}]`,pt=pn(we)?we.getRootNode():null,ct=Array.from((kp(pt)?pt:Pt(i.select("floatingElement"))).querySelectorAll(tt)),yt=i.context.triggerElements;if(we&&(yt.hasElement(we)||yt.hasMatchingElement(xt=>wt(xt,we))))return;let ln=pn(we)?we:null;for(;ln&&!fs(ln);){const xt=ds(ln);if(fs(xt)||!pn(xt))break;ln=xt}if(ct.length&&pn(we)&&!hj(we)&&!wt(we,i.select("floatingElement"))&&ct.every(xt=>!wt(ln,xt)))return;if(Fn(we)&&!("touches"in Ce)){const xt=fs(we),Nt=jr(we),Ot=/auto|scroll/,Wt=xt||Ot.test(Nt.overflowX),en=xt||Ot.test(Nt.overflowY),yn=Wt&&we.clientWidth>0&&we.scrollWidth>we.clientWidth,k=en&&we.clientHeight>0&&we.scrollHeight>we.clientHeight,W=Nt.direction==="rtl",Se=k&&(W?Ce.offsetX<=we.offsetWidth-we.clientWidth:Ce.offsetX>we.clientWidth),De=yn&&Ce.offsetY>we.clientHeight;if(Se||De)return}if(Ge(Ce))return;if(Te()==="intentional"&&H.current){Q.clear(),H.current=!1;return}if(typeof N=="function"&&!N(Ce))return;const Rt=p.current.floatingContext?.nodeId,Qt=A?vu(A.nodesRef.current,Rt):[];if(Qt.length>0){let xt=!0;if(Qt.forEach(Nt=>{Nt.context?.open&&!Nt.context.dataRef.current.__outsidePressBubbles&&(xt=!1)}),!xt)return}i.setOpen(!1,sn(D2,Ce)),fe()}function Ne(Ce){Te()!=="sloppy"||Ce.pointerType==="touch"||!i.select("open")||!y||zi(Ce,i.select("floatingElement"))||zi(Ce,i.select("domReferenceElement"))||We(Ce)}function Ze(Ce){if(Te()!=="sloppy"||!i.select("open")||!y||zi(Ce,i.select("floatingElement"))||zi(Ce,i.select("domReferenceElement")))return;const we=Ce.touches[0];we&&(X.current={startTime:Date.now(),startX:we.clientX,startY:we.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},le.start(1e3,()=>{X.current&&(X.current.dismissOnTouchEnd=!1,X.current.dismissOnMouseDown=!1)}))}function lt(Ce,we){const tt=Na(Ce);if(!tt)return;const pt=Ft(tt,Ce.type,()=>{we(Ce),pt()})}function Xe(Ce){ee.current="touch",lt(Ce,Ze)}function ht(Ce){le.clear(),Ce.type==="pointerdown"&&(ee.current=Ce.pointerType),!(Ce.type==="mousedown"&&X.current&&!X.current.dismissOnMouseDown)&&lt(Ce,we=>{we.type==="pointerdown"?Ne(we):We(we)})}function $e(Ce){if(!I.current)return;const we=Y.current;if(_e(),Te()==="intentional"){if(Ce.type==="pointercancel"){we&&ve();return}if(!Ge(Ce)){if(we){ve();return}typeof N=="function"&&!N(Ce)||(Q.clear(),H.current=!0,fe())}}}function Qe(Ce){if(Te()!=="sloppy"||!X.current||zi(Ce,i.select("floatingElement"))||zi(Ce,i.select("domReferenceElement")))return;const we=Ce.touches[0];if(!we)return;const tt=Math.abs(we.clientX-X.current.startX),pt=Math.abs(we.clientY-X.current.startY),ct=Math.sqrt(tt*tt+pt*pt);ct>5&&(X.current.dismissOnTouchEnd=!0),ct>10&&(We(Ce),le.clear(),X.current=null)}function dt(Ce){lt(Ce,Qe)}function et(Ce){Te()!=="sloppy"||!X.current||zi(Ce,i.select("floatingElement"))||zi(Ce,i.select("domReferenceElement"))||(X.current.dismissOnTouchEnd&&We(Ce),le.clear(),X.current=null)}function Ve(Ce){lt(Ce,et)}const Re=Pt(f),je=gu(g&&gu(Ft(Re,"keydown",J),Ft(Re,"compositionstart",oe),Ft(Re,"compositionend",de)),M&&gu(Ft(Re,"click",ht,!0),Ft(Re,"pointerdown",ht,!0),Ft(Re,"pointerup",$e,!0),Ft(Re,"pointercancel",$e,!0),Ft(Re,"mousedown",ht,!0),Ft(Re,"mouseup",$e,!0),Ft(Re,"touchstart",Xe,!0),Ft(Re,"touchmove",dt,!0),Ft(Re,"touchend",Ve,!0)));return()=>{je(),j.clear(),Q.clear(),_e(),H.current=!1}},[p,f,g,M,N,u,y,Z,V,J,fe,q,A,i,le]),x.useEffect(fe,[N,fe]);const B=x.useMemo(()=>({onKeyDown:J,[Y9[T]]:j=>{te()&&i.setOpen(!1,sn(Zp,j.nativeEvent))},...T!=="intentional"&&{onClick(j){te()&&i.setOpen(!1,sn(Zp,j.nativeEvent))}}}),[J,i,T,te]),F=it(j=>{if(!u||!y||j.button!==0)return;const Q=Na(j.nativeEvent);wt(i.select("floatingElement"),Q)&&(I.current||(I.current=!0,Y.current=!1))}),ne=it(j=>{!u||!y||(j.defaultPrevented||j.nativeEvent.defaultPrevented)&&I.current&&(Y.current=!0)}),ce=x.useMemo(()=>({onKeyDown:J,onPointerDown:ne,onMouseDown:ne,onClickCapture:L,onMouseDownCapture(j){L(),F(j)},onPointerDownCapture(j){L(),F(j)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[J,L,F,ne]);return x.useMemo(()=>y?{reference:B,floating:ce,trigger:B}:{},[y,B,ce])}function RA(t,a,i){let{reference:u,floating:f}=t;const p=kl(a),y=m2(a),g=p2(y),S=Lr(a),b=p==="y",E=u.x+u.width/2-f.width/2,T=u.y+u.height/2-f.height/2,O=u[g]/2-f[g]/2;let _;switch(S){case"top":_={x:E,y:u.y-f.height};break;case"bottom":_={x:E,y:u.y+u.height};break;case"right":_={x:u.x+u.width,y:T};break;case"left":_={x:u.x-f.width,y:T};break;default:_={x:u.x,y:u.y}}switch(kc(a)){case"start":_[y]-=O*(i&&b?-1:1);break;case"end":_[y]+=O*(i&&b?-1:1);break}return _}async function $9(t,a){var i;a===void 0&&(a={});const{x:u,y:f,platform:p,rects:y,elements:g,strategy:S}=t,{boundary:b="clippingAncestors",rootBoundary:E="viewport",elementContext:T="floating",altBoundary:O=!1,padding:_=0}=hs(a,t),A=z_(_),N=g[O?T==="floating"?"reference":"floating":T],M=$y(await p.getClippingRect({element:(i=await(p.isElement==null?void 0:p.isElement(N)))==null||i?N:N.contextElement||await(p.getDocumentElement==null?void 0:p.getDocumentElement(g.floating)),boundary:b,rootBoundary:E,strategy:S})),q=T==="floating"?{x:u,y:f,width:y.floating.width,height:y.floating.height}:y.reference,I=await(p.getOffsetParent==null?void 0:p.getOffsetParent(g.floating)),Y=await(p.isElement==null?void 0:p.isElement(I))?await(p.getScale==null?void 0:p.getScale(I))||{x:1,y:1}:{x:1,y:1},H=$y(p.convertOffsetParentRelativeRectToViewportRelativeRect?await p.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:q,offsetParent:I,strategy:S}):q);return{top:(M.top-H.top+A.top)/Y.y,bottom:(H.bottom-M.bottom+A.bottom)/Y.y,left:(M.left-H.left+A.left)/Y.x,right:(H.right-M.right+A.right)/Y.x}}const Z9=50,X9=async(t,a,i)=>{const{placement:u="bottom",strategy:f="absolute",middleware:p=[],platform:y}=i,g=y.detectOverflow?y:{...y,detectOverflow:$9},S=await(y.isRTL==null?void 0:y.isRTL(a));let b=await y.getElementRects({reference:t,floating:a,strategy:f}),{x:E,y:T}=RA(b,u,S),O=u,_=0;const A={};for(let D=0;D<p.length;D++){const N=p[D];if(!N)continue;const{name:M,fn:q}=N,{x:I,y:Y,data:H,reset:Z}=await q({x:E,y:T,initialPlacement:u,placement:O,strategy:f,middlewareData:A,rects:b,platform:g,elements:{reference:t,floating:a}});E=I??E,T=Y??T,A[M]={...A[M],...H},Z&&_<Z9&&(_++,typeof Z=="object"&&(Z.placement&&(O=Z.placement),Z.rects&&(b=Z.rects===!0?await y.getElementRects({reference:t,floating:a,strategy:f}):Z.rects),{x:E,y:T}=RA(b,O,S)),D=-1)}return{x:E,y:T,placement:O,strategy:f,middlewareData:A}},P9=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var i,u;const{placement:f,middlewareData:p,rects:y,initialPlacement:g,platform:S,elements:b}=a,{mainAxis:E=!0,crossAxis:T=!0,fallbackPlacements:O,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:D=!0,...N}=hs(t,a);if((i=p.arrow)!=null&&i.alignmentOffset)return{};const M=Lr(f),q=kl(g),I=Lr(g)===g,Y=await(S.isRTL==null?void 0:S.isRTL(b.floating)),H=O||(I||!D?[V1(g)]:bj(g)),Z=A!=="none";!O&&Z&&H.push(...Tj(g,D,A,Y));const V=[g,...H],X=await S.detectOverflow(a,N),le=[];let K=((u=p.flip)==null?void 0:u.overflows)||[];if(E&&le.push(X[M]),T){const te=vj(f,y,Y);le.push(X[te[0]],X[te[1]])}if(K=[...K,{placement:f,overflows:le}],!le.every(te=>te<=0)){var fe,ie;const te=(((fe=p.flip)==null?void 0:fe.index)||0)+1,J=V[te];if(J&&(!(T==="alignment"?q!==kl(J):!1)||K.every(F=>kl(F.placement)===q?F.overflows[0]>0:!0)))return{data:{index:te,overflows:K},reset:{placement:J}};let L=(ie=K.filter(B=>B.overflows[0]<=0).sort((B,F)=>B.overflows[1]-F.overflows[1])[0])==null?void 0:ie.placement;if(!L)switch(_){case"bestFit":{var ee;const B=(ee=K.filter(F=>{if(Z){const ne=kl(F.placement);return ne===q||ne==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(ne=>ne>0).reduce((ne,ce)=>ne+ce,0)]).sort((F,ne)=>F[1]-ne[1])[0])==null?void 0:ee[0];B&&(L=B);break}case"initialPlacement":L=g;break}if(f!==L)return{reset:{placement:L}}}return{}}}};function OA(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function CA(t){return gj.some(a=>t[a]>=0)}const F9=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:i,platform:u}=a,{strategy:f="referenceHidden",...p}=hs(t,a);switch(f){case"referenceHidden":{const y=await u.detectOverflow(a,{...p,elementContext:"reference"}),g=OA(y,i.reference);return{data:{referenceHiddenOffsets:g,referenceHidden:CA(g)}}}case"escaped":{const y=await u.detectOverflow(a,{...p,altBoundary:!0}),g=OA(y,i.floating);return{data:{escapedOffsets:g,escaped:CA(g)}}}default:return{}}}}},xA=new Set(["left","top"]);async function Q9(t,a){const{placement:i,platform:u,elements:f}=t,p=await(u.isRTL==null?void 0:u.isRTL(f.floating)),y=Lr(i),g=kc(i),S=kl(i)==="y",b=xA.has(y)?-1:1,E=p&&S?-1:1,T=hs(a,t);let{mainAxis:O,crossAxis:_,alignmentAxis:A}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:T.mainAxis||0,crossAxis:T.crossAxis||0,alignmentAxis:T.alignmentAxis};return g&&typeof A=="number"&&(_=g==="end"?A*-1:A),S?{x:_*E,y:O*b}:{x:O*b,y:_*E}}const J9=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var i,u;const{x:f,y:p,placement:y,middlewareData:g}=a,S=await Q9(a,t);return y===((i=g.offset)==null?void 0:i.placement)&&(u=g.arrow)!=null&&u.alignmentOffset?{}:{x:f+S.x,y:p+S.y,data:{...S,placement:y}}}}},K9=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:i,y:u,placement:f,platform:p}=a,{mainAxis:y=!0,crossAxis:g=!1,limiter:S={fn:M=>{let{x:q,y:I}=M;return{x:q,y:I}}},...b}=hs(t,a),E={x:i,y:u},T=await p.detectOverflow(a,b),O=kl(Lr(f)),_=h2(O);let A=E[_],D=E[O];if(y){const M=_==="y"?"top":"left",q=_==="y"?"bottom":"right",I=A+T[M],Y=A-T[q];A=d2(I,A,Y)}if(g){const M=O==="y"?"top":"left",q=O==="y"?"bottom":"right",I=D+T[M],Y=D-T[q];D=d2(I,D,Y)}const N=S.fn({...a,[_]:A,[O]:D});return{...N,data:{x:N.x-i,y:N.y-u,enabled:{[_]:y,[O]:g}}}}}},W9=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:i,y:u,placement:f,rects:p,middlewareData:y}=a,{offset:g=0,mainAxis:S=!0,crossAxis:b=!0}=hs(t,a),E={x:i,y:u},T=kl(f),O=h2(T);let _=E[O],A=E[T];const D=hs(g,a),N=typeof D=="number"?{mainAxis:D,crossAxis:0}:{mainAxis:0,crossAxis:0,...D};if(S){const I=O==="y"?"height":"width",Y=p.reference[O]-p.floating[I]+N.mainAxis,H=p.reference[O]+p.reference[I]-N.mainAxis;_<Y?_=Y:_>H&&(_=H)}if(b){var M,q;const I=O==="y"?"width":"height",Y=xA.has(Lr(f)),H=p.reference[T]-p.floating[I]+(Y&&((M=y.offset)==null?void 0:M[T])||0)+(Y?0:N.crossAxis),Z=p.reference[T]+p.reference[I]+(Y?0:((q=y.offset)==null?void 0:q[T])||0)-(Y?N.crossAxis:0);A<H?A=H:A>Z&&(A=Z)}return{[O]:_,[T]:A}}}},eL=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var i,u;const{placement:f,rects:p,platform:y,elements:g}=a,{apply:S=()=>{},...b}=hs(t,a),E=await y.detectOverflow(a,b),T=Lr(f),O=kc(f),_=kl(f)==="y",{width:A,height:D}=p.floating;let N,M;T==="top"||T==="bottom"?(N=T,M=O===(await(y.isRTL==null?void 0:y.isRTL(g.floating))?"start":"end")?"left":"right"):(M=T,N=O==="end"?"top":"bottom");const q=D-E.top-E.bottom,I=A-E.left-E.right,Y=Bp(D-E[N],q),H=Bp(A-E[M],I),Z=!a.middlewareData.shift;let V=Y,X=H;if((i=a.middlewareData.shift)!=null&&i.enabled.x&&(X=I),(u=a.middlewareData.shift)!=null&&u.enabled.y&&(V=q),Z&&!O){const K=rl(E.left,0),fe=rl(E.right,0),ie=rl(E.top,0),ee=rl(E.bottom,0);_?X=A-2*(K!==0||fe!==0?K+fe:rl(E.left,E.right)):V=D-2*(ie!==0||ee!==0?ie+ee:rl(E.top,E.bottom))}await S({...a,availableWidth:X,availableHeight:V});const le=await y.getDimensions(g.floating);return A!==le.width||D!==le.height?{reset:{rects:!0}}:{}}}};function _A(t){const a=jr(t);let i=parseFloat(a.width)||0,u=parseFloat(a.height)||0;const f=Fn(t),p=f?t.offsetWidth:i,y=f?t.offsetHeight:u,g=k1(i)!==p||k1(u)!==y;return g&&(i=p,u=y),{width:i,height:u,$:g}}function $2(t){return pn(t)?t:t.contextElement}function Xp(t){const a=$2(t);if(!Fn(a))return bu(1);const i=a.getBoundingClientRect(),{width:u,height:f,$:p}=_A(a);let y=(p?k1(i.width):i.width)/u,g=(p?k1(i.height):i.height)/f;return(!y||!Number.isFinite(y))&&(y=1),(!g||!Number.isFinite(g))&&(g=1),{x:y,y:g}}const tL=bu(0);function AA(t){const a=oa(t);return!N1()||!a.visualViewport?tL:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function nL(t,a,i){return a===void 0&&(a=!1),!i||a&&i!==oa(t)?!1:a}function Nd(t,a,i,u){a===void 0&&(a=!1),i===void 0&&(i=!1);const f=t.getBoundingClientRect(),p=$2(t);let y=bu(1);a&&(u?pn(u)&&(y=Xp(u)):y=Xp(t));const g=nL(p,i,u)?AA(p):bu(0);let S=(f.left+g.x)/y.x,b=(f.top+g.y)/y.y,E=f.width/y.x,T=f.height/y.y;if(p){const O=oa(p),_=u&&pn(u)?oa(u):u;let A=O,D=n2(A);for(;D&&u&&_!==A;){const N=Xp(D),M=D.getBoundingClientRect(),q=jr(D),I=M.left+(D.clientLeft+parseFloat(q.paddingLeft))*N.x,Y=M.top+(D.clientTop+parseFloat(q.paddingTop))*N.y;S*=N.x,b*=N.y,E*=N.x,T*=N.y,S+=I,b+=Y,A=oa(D),D=n2(A)}}return $y({width:E,height:T,x:S,y:b})}function W1(t,a){const i=U1(t).scrollLeft;return a?a.left+i:Nd(mu(t)).left+i}function DA(t,a){const i=t.getBoundingClientRect(),u=i.left+a.scrollLeft-W1(t,i),f=i.top+a.scrollTop;return{x:u,y:f}}function aL(t){let{elements:a,rect:i,offsetParent:u,strategy:f}=t;const p=f==="fixed",y=mu(u),g=a?z1(a.floating):!1;if(u===y||g&&p)return i;let S={scrollLeft:0,scrollTop:0},b=bu(1);const E=bu(0),T=Fn(u);if((T||!T&&!p)&&((Fo(u)!=="body"||jc(y))&&(S=U1(u)),T)){const _=Nd(u);b=Xp(u),E.x=_.x+u.clientLeft,E.y=_.y+u.clientTop}const O=y&&!T&&!p?DA(y,S):bu(0);return{width:i.width*b.x,height:i.height*b.y,x:i.x*b.x-S.scrollLeft*b.x+E.x+O.x,y:i.y*b.y-S.scrollTop*b.y+E.y+O.y}}function oL(t){return Array.from(t.getClientRects())}function rL(t){const a=mu(t),i=U1(t),u=t.ownerDocument.body,f=rl(a.scrollWidth,a.clientWidth,u.scrollWidth,u.clientWidth),p=rl(a.scrollHeight,a.clientHeight,u.scrollHeight,u.clientHeight);let y=-i.scrollLeft+W1(t);const g=-i.scrollTop;return jr(u).direction==="rtl"&&(y+=rl(a.clientWidth,u.clientWidth)-f),{width:f,height:p,x:y,y:g}}const MA=25;function lL(t,a){const i=oa(t),u=mu(t),f=i.visualViewport;let p=u.clientWidth,y=u.clientHeight,g=0,S=0;if(f){p=f.width,y=f.height;const E=N1();(!E||E&&a==="fixed")&&(g=f.offsetLeft,S=f.offsetTop)}const b=W1(u);if(b<=0){const E=u.ownerDocument,T=E.body,O=getComputedStyle(T),_=E.compatMode==="CSS1Compat"&&parseFloat(O.marginLeft)+parseFloat(O.marginRight)||0,A=Math.abs(u.clientWidth-T.clientWidth-_);A<=MA&&(p-=A)}else b<=MA&&(p+=b);return{width:p,height:y,x:g,y:S}}function iL(t,a){const i=Nd(t,!0,a==="fixed"),u=i.top+t.clientTop,f=i.left+t.clientLeft,p=Fn(t)?Xp(t):bu(1),y=t.clientWidth*p.x,g=t.clientHeight*p.y,S=f*p.x,b=u*p.y;return{width:y,height:g,x:S,y:b}}function zA(t,a,i){let u;if(a==="viewport")u=lL(t,i);else if(a==="document")u=rL(mu(t));else if(pn(a))u=iL(a,i);else{const f=AA(t);u={x:a.x-f.x,y:a.y-f.y,width:a.width,height:a.height}}return $y(u)}function NA(t,a){const i=ds(t);return i===a||!pn(i)||fs(i)?!1:jr(i).position==="fixed"||NA(i,a)}function uL(t,a){const i=a.get(t);if(i)return i;let u=By(t,[],!1).filter(g=>pn(g)&&Fo(g)!=="body"),f=null;const p=jr(t).position==="fixed";let y=p?ds(t):t;for(;pn(y)&&!fs(y);){const g=jr(y),S=t2(y);!S&&g.position==="fixed"&&(f=null),(p?!S&&!f:!S&&g.position==="static"&&!!f&&(f.position==="absolute"||f.position==="fixed")||jc(y)&&!S&&NA(t,y))?u=u.filter(E=>E!==y):f=g,y=ds(y)}return a.set(t,u),u}function sL(t){let{element:a,boundary:i,rootBoundary:u,strategy:f}=t;const y=[...i==="clippingAncestors"?z1(a)?[]:uL(a,this._c):[].concat(i),u],g=zA(a,y[0],f);let S=g.top,b=g.right,E=g.bottom,T=g.left;for(let O=1;O<y.length;O++){const _=zA(a,y[O],f);S=rl(_.top,S),b=Bp(_.right,b),E=Bp(_.bottom,E),T=rl(_.left,T)}return{width:b-T,height:E-S,x:T,y:S}}function cL(t){const{width:a,height:i}=_A(t);return{width:a,height:i}}function fL(t,a,i){const u=Fn(a),f=mu(a),p=i==="fixed",y=Nd(t,!0,p,a);let g={scrollLeft:0,scrollTop:0};const S=bu(0);function b(){S.x=W1(f)}if(u||!u&&!p)if((Fo(a)!=="body"||jc(f))&&(g=U1(a)),u){const _=Nd(a,!0,p,a);S.x=_.x+a.clientLeft,S.y=_.y+a.clientTop}else f&&b();p&&!u&&f&&b();const E=f&&!u&&!p?DA(f,g):bu(0),T=y.left+g.scrollLeft-S.x-E.x,O=y.top+g.scrollTop-S.y-E.y;return{x:T,y:O,width:y.width,height:y.height}}function Z2(t){return jr(t).position==="static"}function UA(t,a){if(!Fn(t)||jr(t).position==="fixed")return null;if(a)return a(t);let i=t.offsetParent;return mu(t)===i&&(i=i.ownerDocument.body),i}function jA(t,a){const i=oa(t);if(z1(t))return i;if(!Fn(t)){let f=ds(t);for(;f&&!fs(f);){if(pn(f)&&!Z2(f))return f;f=ds(f)}return i}let u=UA(t,a);for(;u&&aj(u)&&Z2(u);)u=UA(u,a);return u&&fs(u)&&Z2(u)&&!t2(u)?i:u||lj(t)||i}const dL=async function(t){const a=this.getOffsetParent||jA,i=this.getDimensions,u=await i(t.floating);return{reference:fL(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:u.width,height:u.height}}};function hL(t){return jr(t).direction==="rtl"}const LA={convertOffsetParentRelativeRectToViewportRelativeRect:aL,getDocumentElement:mu,getClippingRect:sL,getOffsetParent:jA,getElementRects:dL,getClientRects:oL,getDimensions:cL,getScale:Xp,isElement:pn,isRTL:hL};function HA(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function pL(t,a){let i=null,u;const f=mu(t);function p(){var g;clearTimeout(u),(g=i)==null||g.disconnect(),i=null}function y(g,S){g===void 0&&(g=!1),S===void 0&&(S=1),p();const b=t.getBoundingClientRect(),{left:E,top:T,width:O,height:_}=b;if(g||a(),!O||!_)return;const A=xd(T),D=xd(f.clientWidth-(E+O)),N=xd(f.clientHeight-(T+_)),M=xd(E),I={rootMargin:-A+"px "+-D+"px "+-N+"px "+-M+"px",threshold:rl(0,Bp(1,S))||1};let Y=!0;function H(Z){const V=Z[0].intersectionRatio;if(V!==S){if(!Y)return y();V?y(!1,V):u=setTimeout(()=>{y(!1,1e-7)},1e3)}V===1&&!HA(b,t.getBoundingClientRect())&&y(),Y=!1}try{i=new IntersectionObserver(H,{...I,root:f.ownerDocument})}catch{i=new IntersectionObserver(H,I)}i.observe(t)}return y(!0),p}function kA(t,a,i,u){u===void 0&&(u={});const{ancestorScroll:f=!0,ancestorResize:p=!0,elementResize:y=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:S=!1}=u,b=$2(t),E=f||p?[...b?By(b):[],...a?By(a):[]]:[];E.forEach(M=>{f&&M.addEventListener("scroll",i,{passive:!0}),p&&M.addEventListener("resize",i)});const T=b&&g?pL(b,i):null;let O=-1,_=null;y&&(_=new ResizeObserver(M=>{let[q]=M;q&&q.target===b&&_&&a&&(_.unobserve(a),cancelAnimationFrame(O),O=requestAnimationFrame(()=>{var I;(I=_)==null||I.observe(a)})),i()}),b&&!S&&_.observe(b),a&&_.observe(a));let A,D=S?Nd(t):null;S&&N();function N(){const M=Nd(t);D&&!HA(D,M)&&i(),D=M,A=requestAnimationFrame(N)}return i(),()=>{var M;E.forEach(q=>{f&&q.removeEventListener("scroll",i),p&&q.removeEventListener("resize",i)}),T?.(),(M=_)==null||M.disconnect(),_=null,S&&cancelAnimationFrame(A)}}const mL=J9,gL=K9,yL=P9,vL=eL,bL=F9,SL=W9,EL=(t,a,i)=>{const u=new Map,f={platform:LA,...i},p={...f.platform,_c:u};return X9(t,a,{...f,platform:p})};var wL=typeof document<"u",TL=function(){},eS=wL?x.useLayoutEffect:TL;function tS(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let i,u,f;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(i=t.length,i!==a.length)return!1;for(u=i;u--!==0;)if(!tS(t[u],a[u]))return!1;return!0}if(f=Object.keys(t),i=f.length,i!==Object.keys(a).length)return!1;for(u=i;u--!==0;)if(!{}.hasOwnProperty.call(a,f[u]))return!1;for(u=i;u--!==0;){const p=f[u];if(!(p==="_owner"&&t.$$typeof)&&!tS(t[p],a[p]))return!1}return!0}return t!==t&&a!==a}function VA(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function BA(t,a){const i=VA(t);return Math.round(a*i)/i}function X2(t){const a=x.useRef(t);return eS(()=>{a.current=t}),a}function RL(t){t===void 0&&(t={});const{placement:a="bottom",strategy:i="absolute",middleware:u=[],platform:f,elements:{reference:p,floating:y}={},transform:g=!0,whileElementsMounted:S,open:b}=t,[E,T]=x.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[O,_]=x.useState(u);tS(O,u)||_(u);const[A,D]=x.useState(null),[N,M]=x.useState(null),q=x.useCallback(F=>{F!==Z.current&&(Z.current=F,D(F))},[]),I=x.useCallback(F=>{F!==V.current&&(V.current=F,M(F))},[]),Y=p||A,H=y||N,Z=x.useRef(null),V=x.useRef(null),X=x.useRef(E),le=S!=null,K=X2(S),fe=X2(f),ie=X2(b),ee=x.useCallback(()=>{if(!Z.current||!V.current)return;const F={placement:a,strategy:i,middleware:O};fe.current&&(F.platform=fe.current),EL(Z.current,V.current,F).then(ne=>{const ce={...ne,isPositioned:ie.current!==!1};te.current&&!tS(X.current,ce)&&(X.current=ce,tl.flushSync(()=>{T(ce)}))})},[O,a,i,fe,ie]);eS(()=>{b===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,T(F=>({...F,isPositioned:!1})))},[b]);const te=x.useRef(!1);eS(()=>(te.current=!0,()=>{te.current=!1}),[]),eS(()=>{if(Y&&(Z.current=Y),H&&(V.current=H),Y&&H){if(K.current)return K.current(Y,H,ee);ee()}},[Y,H,ee,K,le]);const J=x.useMemo(()=>({reference:Z,floating:V,setReference:q,setFloating:I}),[q,I]),L=x.useMemo(()=>({reference:Y,floating:H}),[Y,H]),B=x.useMemo(()=>{const F={position:i,left:0,top:0};if(!L.floating)return F;const ne=BA(L.floating,E.x),ce=BA(L.floating,E.y);return g?{...F,transform:"translate("+ne+"px, "+ce+"px)",...VA(L.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:ne,top:ce}},[i,g,L.floating,E.x,E.y]);return x.useMemo(()=>({...E,update:ee,refs:J,elements:L,floatingStyles:B}),[E,ee,J,L,B])}const OL=(t,a)=>{const i=mL(t);return{name:i.name,fn:i.fn,options:[t,a]}},CL=(t,a)=>{const i=gL(t);return{name:i.name,fn:i.fn,options:[t,a]}},xL=(t,a)=>({fn:SL(t).fn,options:[t,a]}),_L=(t,a)=>{const i=yL(t);return{name:i.name,fn:i.fn,options:[t,a]}},AL=(t,a)=>{const i=vL(t);return{name:i.name,fn:i.fn,options:[t,a]}},DL=(t,a)=>{const i=bL(t);return{name:i.name,fn:i.fn,options:[t,a]}},ML={open:Ke(t=>t.open),transitionStatus:Ke(t=>t.transitionStatus),domReferenceElement:Ke(t=>t.domReferenceElement),referenceElement:Ke(t=>t.positionReference??t.referenceElement),floatingElement:Ke(t=>t.floatingElement),floatingId:Ke(t=>t.floatingId)};class P2 extends D1{constructor(a){const{syncOnly:i,nested:u,onOpenChange:f,triggerElements:p,...y}=a;super({...y,positionReference:y.referenceElement,domReferenceElement:y.referenceElement},{onOpenChange:f,dataRef:{current:{}},events:EA(),nested:u,triggerElements:p},ML),this.syncOnly=i}syncOpenEvent=(a,i)=>{(!a||!this.state.open||i!=null&&A_(i))&&(this.context.dataRef.current.openEvent=a?i:void 0)};dispatchOpenChange=(a,i)=>{this.syncOpenEvent(a,i.event);const u={open:a,reason:i.reason,nativeEvent:i.event,nested:this.context.nested,triggerElement:i.trigger};this.context.events.emit("openchange",u)};setOpen=(a,i)=>{if(this.syncOnly){this.context.onOpenChange?.(a,i);return}this.dispatchOpenChange(a,i),this.context.onOpenChange?.(a,i)}}function Ky(t,a=!1,i=!1){const[u,f]=x.useState(t&&a?"idle":void 0),[p,y]=x.useState(t);return t&&!p&&(y(!0),f("starting")),!t&&p&&u!=="ending"&&!i&&f("ending"),!t&&!p&&u==="ending"&&f(void 0),rt(()=>{if(!t&&p&&u!=="ending"&&i){const g=yu.request(()=>{f("ending")});return()=>{yu.cancel(g)}}},[t,p,u,i]),rt(()=>{if(!t||a)return;const g=yu.request(()=>{f(void 0)});return()=>{yu.cancel(g)}},[a,t]),rt(()=>{if(!t||!a)return;t&&p&&u!=="idle"&&f("starting");const g=yu.request(()=>{f("idle")});return()=>{yu.cancel(g)}},[a,t,p,u]),{mounted:p,setMounted:y,transitionStatus:u}}function zL(t,a){const i=x.useRef(null),u=x.useRef(null);return x.useCallback(f=>{if(t!==void 0){if(i.current!==null){const p=i.current,y=u.current,g=a.context.triggerElements.getById(p);y&&g===y&&a.context.triggerElements.delete(p),i.current=null,u.current=null}f!==null&&(i.current=t,u.current=f,a.context.triggerElements.add(t,f))}},[a,t])}function GA(t,a,i,u){const f=i.useState("isMountedByTrigger",t),p=zL(t,i),y=it(g=>{if(p(g),!g||!i.select("open"))return;const S=i.select("activeTriggerId");if(S===t){i.update({activeTriggerElement:g,...u});return}S==null&&i.update({activeTriggerId:t,activeTriggerElement:g,...u})});return rt(()=>{f&&i.update({activeTriggerElement:a.current,...u})},[f,i,a,...Object.values(u)]),{registerTrigger:y,isMountedByThisTrigger:f}}function YA(t){const a=t.useState("open");rt(()=>{if(a&&!t.select("activeTriggerId")&&t.context.triggerElements.size===1){const i=t.context.triggerElements.entries().next();if(!i.done){const[u,f]=i.value;t.update({activeTriggerId:u,activeTriggerElement:f})}}},[a,t])}function IA(t,a,i){const{mounted:u,setMounted:f,transitionStatus:p}=Ky(t);a.useSyncedValues({mounted:u,transitionStatus:p});const y=it(()=>{f(!1),a.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),i?.(),a.context.onOpenChangeComplete?.(!1)}),g=a.useState("preventUnmountingOnClose");return ys({enabled:!g,open:t,ref:a.context.popupRef,onComplete(){t||y()}}),{forceUnmount:y,transitionStatus:p}}class nS{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(a,i){const u=this.idMap.get(a);if(u!==i&&(u!==void 0&&this.elementsSet.delete(u),this.elementsSet.add(i),this.idMap.set(a,i),process.env.NODE_ENV!=="production"&&this.elementsSet.size!==this.idMap.size))throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.")}delete(a){const i=this.idMap.get(a);i&&(this.elementsSet.delete(i),this.idMap.delete(a))}hasElement(a){return this.elementsSet.has(a)}hasMatchingElement(a){for(const i of this.elementsSet)if(a(i))return!0;return!1}getById(a){return this.idMap.get(a)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function NL(){return new P2({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new nS,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0})}function qA(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:NL(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:za,inactiveTriggerProps:za,popupProps:za}}const aS=Ke(t=>t.triggerIdProp??t.activeTriggerId),$A={open:Ke(t=>t.openProp??t.open),mounted:Ke(t=>t.mounted),transitionStatus:Ke(t=>t.transitionStatus),floatingRootContext:Ke(t=>t.floatingRootContext),preventUnmountingOnClose:Ke(t=>t.preventUnmountingOnClose),payload:Ke(t=>t.payload),activeTriggerId:aS,activeTriggerElement:Ke(t=>t.mounted?t.activeTriggerElement:null),isTriggerActive:Ke((t,a)=>a!==void 0&&aS(t)===a),isOpenedByTrigger:Ke((t,a)=>a!==void 0&&aS(t)===a&&t.open),isMountedByTrigger:Ke((t,a)=>a!==void 0&&aS(t)===a&&t.mounted),triggerProps:Ke((t,a)=>a?t.activeTriggerProps:t.inactiveTriggerProps),popupProps:Ke(t=>t.popupProps),popupElement:Ke(t=>t.popupElement),positionerElement:Ke(t=>t.positionerElement)};function ZA(t){const{open:a=!1,onOpenChange:i,elements:u={}}=t,f=Dd(),p=Bc()!=null;if(process.env.NODE_ENV!=="production"){const g=u.reference;g&&!pn(g)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const y=ro(()=>new P2({open:a,transitionStatus:void 0,onOpenChange:i,referenceElement:u.reference??null,floatingElement:u.floating??null,triggerElements:new nS,floatingId:f,syncOnly:!1,nested:p})).current;return rt(()=>{const g={open:a,floatingId:f};u.reference!==void 0&&(g.referenceElement=u.reference,g.domReferenceElement=pn(u.reference)?u.reference:null),u.floating!==void 0&&(g.floatingElement=u.floating),y.update(g)},[a,f,u.reference,u.floating,y]),y.context.onOpenChange=i,y.context.nested=p,y}function UL(t={}){const{nodeId:a,externalTree:i}=t,u=ZA(t),f=t.rootContext||u,p={reference:f.useState("referenceElement"),floating:f.useState("floatingElement"),domReference:f.useState("domReferenceElement")},[y,g]=x.useState(null),S=x.useRef(null),b=zd(i);rt(()=>{p.domReference&&(S.current=p.domReference)},[p.domReference]);const E=RL({...t,elements:{...p,...y&&{reference:y}}}),T=x.useCallback(X=>{const le=pn(X)?{getBoundingClientRect:()=>X.getBoundingClientRect(),getClientRects:()=>X.getClientRects(),contextElement:X}:X;g(le),E.refs.setReference(le)},[E.refs]),[O,_]=x.useState(void 0),[A,D]=x.useState(null);f.useSyncedValue("referenceElement",O??null);const N=pn(O)?O:null;f.useSyncedValue("domReferenceElement",O===void 0?p.domReference:N),f.useSyncedValue("floatingElement",A);const M=x.useCallback(X=>{(pn(X)||X===null)&&(S.current=X,_(X)),(pn(E.refs.reference.current)||E.refs.reference.current===null||X!==null&&!pn(X))&&E.refs.setReference(X)},[E.refs,_]),q=x.useCallback(X=>{D(X),E.refs.setFloating(X)},[E.refs]),I=x.useMemo(()=>({...E.refs,setReference:M,setFloating:q,setPositionReference:T,domReference:S}),[E.refs,M,q,T]),Y=x.useMemo(()=>({...E.elements,domReference:p.domReference}),[E.elements,p.domReference]),H=f.useState("open"),Z=f.useState("floatingId"),V=x.useMemo(()=>({...E,dataRef:f.context.dataRef,open:H,onOpenChange:f.setOpen,events:f.context.events,floatingId:Z,refs:I,elements:Y,nodeId:a,rootStore:f}),[E,I,Y,a,f,H,Z]);return rt(()=>{f.context.dataRef.current.floatingContext=V;const X=b?.nodesRef.current.find(le=>le.id===a);X&&(X.context=V)}),x.useMemo(()=>({...E,context:V,refs:I,elements:Y,rootStore:f}),[E,I,Y,V,f])}function XA(t){const{popupStore:a,treatPopupAsFloatingElement:i=!1,onOpenChange:u}=t,f=Dd(),p=Bc()!=null,y=a.useState("open"),g=a.useState("activeTriggerElement"),S=a.useState(i?"popupElement":"positionerElement"),b=a.context.triggerElements,E=ro(()=>new P2({open:y,transitionStatus:void 0,referenceElement:g,floatingElement:S,triggerElements:b,onOpenChange:u,floatingId:f,syncOnly:!0,nested:p})).current;return rt(()=>{const T={open:y,floatingId:f,referenceElement:g,floatingElement:S};pn(g)&&(T.domReferenceElement=g),E.state.positionReference===E.state.referenceElement&&(T.positionReference=g),E.update(T)},[y,f,g,S,E]),E.context.onOpenChange=u,E.context.nested=p,E}class F2{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new nl,this.restTimeout=new nl,this.handleCloseOptions=void 0}static create(){return new F2}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const oS=new WeakMap;function rS(t){if(!t.performedPointerEventsMutation)return;const a=t.pointerEventsScopeElement;a&&oS.get(a)===t&&(t.pointerEventsScopeElement?.style.removeProperty("pointer-events"),t.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),t.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),oS.delete(a)),t.performedPointerEventsMutation=!1,t.pointerEventsScopeElement=null,t.pointerEventsReferenceElement=null,t.pointerEventsFloatingElement=null}function PA(t,a){const{scopeElement:i,referenceElement:u,floatingElement:f}=a,p=oS.get(i);p&&p!==t&&rS(p),rS(t),t.performedPointerEventsMutation=!0,t.pointerEventsScopeElement=i,t.pointerEventsReferenceElement=u,t.pointerEventsFloatingElement=f,oS.set(i,t),i.style.pointerEvents="none",u.style.pointerEvents="auto",f.style.pointerEvents="auto"}function FA(t){const a=ro(F2.create).current,i=t.context.dataRef.current;return i.hoverInteractionState||(i.hoverInteractionState=a),Vy(i.hoverInteractionState.disposeEffect),i.hoverInteractionState}function jL(t,a={}){const i="rootStore"in t?t.rootStore:t,u=i.useState("open"),f=i.useState("floatingElement"),p=i.useState("domReferenceElement"),{dataRef:y}=i.context,{enabled:g=!0,closeDelay:S=0,nodeId:b}=a,E=FA(i),T=zd(),O=Bc(),_=it(()=>fA(y.current.openEvent?.type,E.interactedInside)),A=it(()=>{const Y=y.current.openEvent?.type;return Y?.includes("mouse")&&Y!=="mousedown"}),D=it(Y=>O_(Y,i.context.triggerElements)),N=x.useCallback(Y=>{const H=A2(S,"close",E.pointerType),Z=()=>{i.setOpen(!1,sn(cr,Y)),T?.events.emit("floating.closed",Y)};H?E.openChangeTimeout.start(H,Z):(E.openChangeTimeout.clear(),Z())},[S,i,E,T]),M=it(()=>{rS(E)}),q=it(Y=>{const H=Na(Y);if(!pj(H)){E.interactedInside=!1;return}E.interactedInside=H?.closest("[aria-haspopup]")!=null});rt(()=>{u||(E.pointerType=void 0,E.restTimeoutPending=!1,E.interactedInside=!1,M())},[u,E,M]),x.useEffect(()=>M,[M]),rt(()=>{if(g&&u&&E.handleCloseOptions?.blockPointerEvents&&A()&&pn(p)&&f){const Y=p,H=f,Z=Pt(f),V=T?.nodesRef.current.find(le=>le.id===O)?.context?.elements.floating;V&&(V.style.pointerEvents="");const X=E.handleCloseOptions?.getScope?.()??E.pointerEventsScopeElement??V??Y.closest("[data-rootownerid]")??Z.body;return PA(E,{scopeElement:X,referenceElement:Y,floatingElement:H}),()=>{M()}}},[g,u,p,f,E,A,T,O,M]);const I=al();x.useEffect(()=>{if(!g)return;function Y(){E.openChangeTimeout.clear(),I.clear(),T?.events.off("floating.closed",Z),M()}function H(X){if(T&&O&&vu(T.nodesRef.current,O).length>0){T.events.on("floating.closed",Z);return}if(D(X.relatedTarget))return;const le=y.current.floatingContext?.nodeId??b,K=X.relatedTarget;if(!(T&&le&&pn(K)&&vu(T.nodesRef.current,le,!1).some(ie=>wt(ie.context?.elements.floating,K)))){if(E.handler){E.handler(X);return}M(),_()||N(X)}}function Z(X){!T||!O||vu(T.nodesRef.current,O).length>0||I.start(0,()=>{T.events.off("floating.closed",Z),i.setOpen(!1,sn(cr,X)),T.events.emit("floating.closed",X)})}const V=f;return gu(V&&Ft(V,"mouseenter",Y),V&&Ft(V,"mouseleave",H),V&&Ft(V,"pointerdown",q,!0),()=>{T?.events.off("floating.closed",Z)})},[g,f,i,y,b,_,D,N,M,q,E,T,O,I])}const LL={current:null};function HL(t,a={}){const i="rootStore"in t?t.rootStore:t,{dataRef:u,events:f}=i.context,{enabled:p=!0,delay:y=0,handleClose:g=null,mouseOnly:S=!1,restMs:b=0,move:E=!0,triggerElementRef:T=LL,externalTree:O,isActiveTrigger:_=!0,getHandleCloseContext:A,isClosing:D}=a,N=zd(O),M=FA(i),q=x.useRef(!1),I=Ya(g),Y=Ya(y),H=Ya(b),Z=Ya(p),V=Ya(D);_&&(M.handleCloseOptions=I.current?.__options);const X=it(()=>fA(u.current.openEvent?.type,M.interactedInside)),le=it(te=>O_(te,i.context.triggerElements)),K=it((te,J,L)=>{const B=i.context.triggerElements;if(B.hasElement(J))return!te||!wt(te,J);if(!pn(L))return!1;const F=L;return B.hasMatchingElement(ne=>wt(ne,F))&&(!te||!wt(te,F))}),fe=it((te,J=!0)=>{const L=A2(Y.current,"close",M.pointerType);L?M.openChangeTimeout.start(L,()=>{i.setOpen(!1,sn(cr,te)),N?.events.emit("floating.closed",te)}):J&&(M.openChangeTimeout.clear(),i.setOpen(!1,sn(cr,te)),N?.events.emit("floating.closed",te))}),ie=it(()=>{if(!M.handler)return;Pt(i.select("domReferenceElement")).removeEventListener("mousemove",M.handler),M.handler=void 0}),ee=it(()=>{rS(M)});return x.useEffect(()=>ie,[ie]),x.useEffect(()=>{if(!p)return;function te(J){J.open?q.current=!1:(q.current=J.reason===cr,ie(),M.openChangeTimeout.clear(),M.restTimeout.clear(),M.blockMouseMove=!0,M.restTimeoutPending=!1)}return f.on("openchange",te),()=>{f.off("openchange",te)}},[p,f,M,ie]),x.useEffect(()=>{if(!p)return;const te=T.current??(_?i.select("domReferenceElement"):null);if(!pn(te))return;function J(B){if(M.openChangeTimeout.clear(),M.blockMouseMove=!1,S&&!qy(M.pointerType))return;const F=cA(H.current),ne=A2(Y.current,"open",M.pointerType),ce=Na(B),j=B.currentTarget??null,Q=i.select("domReferenceElement");let oe=j;if(pn(ce)&&!i.context.triggerElements.hasElement(ce)){for(const Ze of i.context.triggerElements.elements())if(wt(Ze,ce)){oe=Ze;break}}pn(j)&&pn(Q)&&!i.context.triggerElements.hasElement(j)&&wt(j,Q)&&(oe=Q);const de=oe==null?!1:K(Q,oe,ce),ve=i.select("open"),_e=V.current?.()??i.select("transitionStatus")==="ending",Te=!ve&&_e&&q.current,Ue=!de&&pn(oe)&&pn(Q)&&wt(Q,oe)&&Te,Ge=F>0&&!ne,We=de&&(ve||Te)||Ue,Ne=!ve||de;if(We){i.setOpen(!0,sn(cr,B,oe));return}Ge||(ne?M.openChangeTimeout.start(ne,()=>{Ne&&i.setOpen(!0,sn(cr,B,oe))}):Ne&&i.setOpen(!0,sn(cr,B,oe)))}function L(B){if(X()){ee();return}ie();const F=i.select("domReferenceElement"),ne=Pt(F);M.restTimeout.clear(),M.restTimeoutPending=!1;const ce=u.current.floatingContext??A?.();if(le(B.relatedTarget))return;if(I.current&&ce){i.select("open")||M.openChangeTimeout.clear();const oe=T.current;M.handler=I.current({...ce,tree:N,x:B.clientX,y:B.clientY,onClose(){ee(),ie(),Z.current&&!X()&&oe===i.select("domReferenceElement")&&fe(B,!0)}}),ne.addEventListener("mousemove",M.handler),M.handler(B);return}(M.pointerType!=="touch"||!wt(i.select("floatingElement"),B.relatedTarget))&&fe(B)}return E?gu(Ft(te,"mousemove",J,{once:!0}),Ft(te,"mouseenter",J),Ft(te,"mouseleave",L)):gu(Ft(te,"mouseenter",J),Ft(te,"mouseleave",L))},[ie,ee,u,Y,fe,i,p,I,M,_,K,X,le,S,E,H,T,N,Z,A,V]),x.useMemo(()=>{if(!p)return;function te(J){M.pointerType=J.pointerType}return{onPointerDown:te,onPointerEnter:te,onMouseMove(J){const{nativeEvent:L}=J,B=J.currentTarget,F=i.select("domReferenceElement"),ne=i.select("open"),ce=K(F,B,J.target);if(S&&!qy(M.pointerType))return;if(ne&&ce&&M.handleCloseOptions?.blockPointerEvents){const oe=i.select("floatingElement");if(oe){const de=M.handleCloseOptions?.getScope?.()??B.ownerDocument.body;PA(M,{scopeElement:de,referenceElement:B,floatingElement:oe})}}const j=cA(H.current);if(ne&&!ce||j===0||!ce&&M.restTimeoutPending&&J.movementX**2+J.movementY**2<2)return;M.restTimeout.clear();function Q(){if(M.restTimeoutPending=!1,X())return;const oe=i.select("open");!M.blockMouseMove&&(!oe||ce)&&i.setOpen(!0,sn(cr,L,B))}M.pointerType==="touch"?tl.flushSync(()=>{Q()}):ce&&ne?Q():(M.restTimeoutPending=!0,M.restTimeout.start(j,Q))}}},[p,M,X,K,S,i,H])}function Wy(t=[]){const a=t.map(b=>b?.reference),i=t.map(b=>b?.floating),u=t.map(b=>b?.item),f=t.map(b=>b?.trigger),p=x.useCallback(b=>lS(b,t,"reference"),a),y=x.useCallback(b=>lS(b,t,"floating"),i),g=x.useCallback(b=>lS(b,t,"item"),u),S=x.useCallback(b=>lS(b,t,"trigger"),f);return x.useMemo(()=>({getReferenceProps:p,getFloatingProps:y,getItemProps:g,getTriggerProps:S}),[p,y,g,S])}function lS(t,a,i){const u=new Map,f=i==="item",p={};i==="floating"&&(p.tabIndex=-1,p[i2]="");for(const y in t)f&&t&&(y===w_||y===T_)||(p[y]=t[y]);for(let y=0;y<a.length;y+=1){let g;const S=a[y]?.[i];typeof S=="function"?g=t?S(t):null:g=S,g&&QA(p,g,f,u)}return QA(p,t,f,u),p}function QA(t,a,i,u){for(const f in a){const p=a[f];i&&(f===w_||f===T_)||(f.startsWith("on")?(u.has(f)||u.set(f,[]),typeof p=="function"&&(u.get(f)?.push(p),t[f]=(...y)=>u.get(f)?.map(g=>g(...y)).find(g=>g!==void 0))):t[f]=p)}}const kL="Escape";function iS(t,a,i){switch(t){case"vertical":return a;case"horizontal":return i;default:return a||i}}function uS(t,a){return iS(a,t===u2||t===Yy,t===Lc||t===Hc)}function Q2(t,a,i){return iS(a,t===Yy,i?t===Lc:t===Hc)||t==="Enter"||t===" "||t===""}function VL(t,a,i){return iS(a,i?t===Lc:t===Hc,t===Yy)}function BL(t,a,i,u){const f=i?t===Hc:t===Lc,p=t===u2;return a==="both"||a==="horizontal"&&u&&u>1?t===kL:iS(a,f,p)}function GL(t,a){const i="rootStore"in t?t.rootStore:t,u=i.useState("open"),f=i.useState("floatingElement"),p=i.useState("domReferenceElement"),y=i.context.dataRef,{listRef:g,activeIndex:S,onNavigate:b=()=>{},enabled:E=!0,selectedIndex:T=null,allowEscape:O=!1,loopFocus:_=!1,nested:A=!1,rtl:D=!1,virtual:N=!1,focusItemOnOpen:M="auto",focusItemOnHover:q=!0,openOnArrowKeyDown:I=!0,disabledIndices:Y=void 0,orientation:H="vertical",parentOrientation:Z,cols:V=1,id:X,resetOnPointerLeave:le=!0,externalTree:K}=a;process.env.NODE_ENV!=="production"&&(O&&(_||console.warn("`useListNavigation` looping must be enabled to allow escaping."),N||console.warn("`useListNavigation` must be virtual to allow escaping.")),H==="vertical"&&V>1&&console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const fe=Iy(f),ie=Ya(fe),ee=Bc(),te=zd(K);rt(()=>{y.current.orientation=H},[y,H]);const J=c2(p),L=x.useRef(M),B=x.useRef(T??-1),F=x.useRef(null),ne=x.useRef(!0),ce=it(Re=>{b(B.current===-1?null:B.current,Re)}),j=x.useRef(ce),Q=x.useRef(!!f),oe=x.useRef(u),de=x.useRef(!1),ve=x.useRef(!1),_e=x.useRef(null),Te=Ya(Y),Ue=Ya(u),Ge=Ya(T),We=Ya(le),Ne=it(()=>{function Re(tt){N?te?.events.emit("virtualfocus",tt):_e.current=J1(tt,{sync:de.current,preventScroll:!0})}const je=g.current[B.current],Ce=ve.current;je&&Re(je),(de.current?tt=>tt():requestAnimationFrame)(()=>{const tt=g.current[B.current]||je;if(!tt)return;je||Re(tt),Xe&&(Ce||!ne.current)&&tt.scrollIntoView?.({block:"nearest",inline:"nearest"})})});rt(()=>{E&&(u&&f?(B.current=T??-1,L.current&&T!=null&&(ve.current=!0,ce())):Q.current&&(B.current=-1,j.current()))},[E,u,f,T,ce]),rt(()=>{if(E){if(!u){de.current=!1;return}if(f)if(S==null){if(de.current=!1,Ge.current!=null)return;if(Q.current&&(B.current=-1,Ne()),(!oe.current||!Q.current)&&L.current&&(F.current!=null||L.current===!0&&F.current==null)){let Re=0;const je=()=>{g.current[0]==null?(Re<2&&(Re?requestAnimationFrame:queueMicrotask)(je),Re+=1):(B.current=F.current==null||Q2(F.current,H,D)||A?y2(g):N_(g),F.current=null,ce())};je()}}else G1(g.current,S)||(B.current=S,Ne(),ve.current=!1)}},[E,u,f,S,Ge,A,g,H,D,ce,Ne,Te]),rt(()=>{if(!E||f||!te||N||!Q.current)return;const Re=te.nodesRef.current,je=Re.find(tt=>tt.id===ee)?.context?.elements.floating,Ce=Qo(Pt(f)),we=Re.some(tt=>tt.context&&wt(tt.context.elements.floating,Ce));je&&!we&&ne.current&&je.focus({preventScroll:!0})},[E,f,te,ee,N]),rt(()=>{j.current=ce,oe.current=u,Q.current=!!f}),rt(()=>{u||(F.current=null,L.current=M)},[u,M]);const Ze=S!=null,lt=it(Re=>{if(!Ue.current)return;const je=g.current.indexOf(Re.currentTarget);je!==-1&&(B.current!==je||S!==je)&&(B.current=je,ce(Re))}),Xe=x.useMemo(()=>({onFocus(je){de.current=!0,lt(je)},onClick:({currentTarget:je})=>je.focus({preventScroll:!0}),onMouseMove(je){de.current=!0,ve.current=!1,q&&lt(je)},onPointerLeave(je){if(!Ue.current||!ne.current||je.pointerType==="touch")return;de.current=!0;const Ce=je.relatedTarget;if(!(!q||g.current.includes(Ce))&&We.current&&(_e.current?.(),_e.current=null,B.current=-1,ce(je),!N)){const we=ie.current,tt=Qo(Pt(we));we&&wt(we,tt)&&we.focus({preventScroll:!0})}}}),[lt,Ue,ie,q,g,ce,We,N]),ht=x.useCallback(()=>Z??te?.nodesRef.current.find(Re=>Re.id===ee)?.context?.dataRef?.current.orientation,[ee,te,Z]),$e=it(Re=>{if(ne.current=!1,de.current=!0,Re.which===229||!Ue.current&&Re.currentTarget===ie.current)return;if(A&&BL(Re.key,H,D,V)){uS(Re.key,ht())||ol(Re),i.setOpen(!1,sn(z2,Re.nativeEvent)),Fn(p)&&(N?te?.events.emit("virtualfocus",p):p.focus());return}const je=B.current,Ce=y2(g,Y),we=N_(g,Y);if(J||(Re.key==="Home"&&(ol(Re),B.current=Ce,ce(Re)),Re.key==="End"&&(ol(Re),B.current=we,ce(Re))),V>1){const tt=Array.from({length:g.current.length},()=>({width:1,height:1})),pt=Cj(tt,V),ct=pt.findIndex(Rt=>Rt!=null&&!Gp(g.current,Rt,Y)),yt=pt.reduce((Rt,Qt,xt)=>Qt!=null&&!Gp(g.current,Qt,Y)?xt:Rt,-1),ln=pt[Oj(pt.map(Rt=>Rt!=null?g.current[Rt]:null),{event:Re,orientation:H,loopFocus:_,rtl:D,cols:V,disabledIndices:_j([...(typeof Y!="function"?Y:null)||g.current.map((Rt,Qt)=>Gp(g.current,Qt,Y)?Qt:void 0),void 0],pt),minIndex:ct,maxIndex:yt,prevIndex:xj(B.current>we?Ce:B.current,tt,pt,V,Re.key===Yy?"bl":Re.key===(D?Lc:Hc)?"tr":"tl"),stopEvent:!0})];if(ln!=null&&(B.current=ln,ce(Re)),H==="both")return}if(uS(Re.key,H)){if(ol(Re),u&&!N&&Qo(Re.currentTarget.ownerDocument)===Re.currentTarget){B.current=Q2(Re.key,H,D)?Ce:we,ce(Re);return}Q2(Re.key,H,D)?_?je>=we?O&&je!==g.current.length?B.current=-1:(de.current=!1,B.current=Ce):B.current=sr(g.current,{startingIndex:je,disabledIndices:Y}):B.current=Math.min(we,sr(g.current,{startingIndex:je,disabledIndices:Y})):_?je<=Ce?O&&je!==-1?B.current=g.current.length:(de.current=!1,B.current=we):B.current=sr(g.current,{startingIndex:je,decrement:!0,disabledIndices:Y}):B.current=Math.max(Ce,sr(g.current,{startingIndex:je,decrement:!0,disabledIndices:Y})),G1(g.current,B.current)&&(B.current=-1),ce(Re)}}),Qe=x.useMemo(()=>N&&u&&Ze&&{"aria-activedescendant":`${X}-${S}`},[N,u,Ze,X,S]),dt=x.useMemo(()=>({"aria-orientation":H==="both"?void 0:H,...J?{}:Qe,onKeyDown(Re){if(Re.key==="Tab"&&Re.shiftKey&&u&&!N){const je=Na(Re.nativeEvent);if(je&&!wt(ie.current,je))return;ol(Re),i.setOpen(!1,sn(Md,Re.nativeEvent)),Fn(p)&&p.focus();return}$e(Re)},onPointerMove(){ne.current=!0}}),[Qe,$e,ie,H,J,i,u,N,p]),et=x.useMemo(()=>{function Re(Ce){M==="auto"&&x_(Ce.nativeEvent)&&(L.current=!N)}function je(Ce){L.current=M,M==="auto"&&__(Ce.nativeEvent)&&(L.current=!0)}return{onKeyDown(Ce){const we=i.select("open");ne.current=!1;const tt=Ce.key.startsWith("Arrow"),pt=VL(Ce.key,ht(),D),ct=uS(Ce.key,H),yt=(A?pt:ct)||Ce.key==="Enter"||Ce.key.trim()==="";if(N&&we)return $e(Ce);if(!(!we&&!I&&tt)){if(yt){const ln=uS(Ce.key,ht());F.current=A&&ln?null:Ce.key}if(A){pt&&(ol(Ce),we?(B.current=y2(g,Te.current),ce(Ce)):i.setOpen(!0,sn(z2,Ce.nativeEvent,Ce.currentTarget)));return}ct&&(Ge.current!=null&&(B.current=Ge.current),ol(Ce),!we&&I?i.setOpen(!0,sn(z2,Ce.nativeEvent,Ce.currentTarget)):$e(Ce),we&&ce(Ce))}},onFocus(Ce){i.select("open")&&!N&&(B.current=-1,ce(Ce))},onPointerDown:je,onPointerEnter:je,onMouseDown:Re,onClick:Re}},[$e,Te,M,g,A,ce,i,I,H,ht,D,Ge,N]),Ve=x.useMemo(()=>({...Qe,...et}),[Qe,et]);return x.useMemo(()=>E?{reference:Ve,floating:dt,item:Xe,trigger:et}:{},[E,Ve,dt,et,Xe])}const YL=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function JA(t,a={}){const i="rootStore"in t?t.rootStore:t,u=i.useState("open"),f=i.useState("floatingId"),p=i.useState("domReferenceElement"),y=i.useState("floatingElement"),{role:g="dialog"}=a,S=Dd(),b=p?.id||S,E=x.useMemo(()=>Iy(y)?.id||f,[y,f]),T=YL.get(g)??g,_=Bc()!=null,A=x.useMemo(()=>T==="tooltip"||g==="label"?za:{"aria-haspopup":T==="alertdialog"?"dialog":T,"aria-expanded":"false",...T==="listbox"&&{role:"combobox"},...T==="menu"&&_&&{role:"menuitem"},...g==="select"&&{"aria-autocomplete":"none"},...g==="combobox"&&{"aria-autocomplete":"list"}},[T,_,g]),D=x.useMemo(()=>T==="tooltip"||g==="label"?{[`aria-${g==="label"?"labelledby":"describedby"}`]:u?E:void 0}:{...A,"aria-expanded":u?"true":"false","aria-controls":u?E:void 0,...T==="menu"&&{id:b}},[T,E,u,b,g,A]),N=x.useMemo(()=>{const q={id:E,...T&&{role:T}};return T==="tooltip"||g==="label"?q:{...q,...T==="menu"&&{"aria-labelledby":b}}},[T,E,b,g]),M=x.useCallback(({active:q,selected:I})=>{const Y={role:"option",...q&&{id:`${E}-fui-option`}};switch(g){case"select":case"combobox":return{...Y,"aria-selected":I}}return{}},[E,g]);return x.useMemo(()=>({reference:D,floating:N,item:M,trigger:A}),[D,N,A,M])}function IL(t,a){const i="rootStore"in t?t.rootStore:t,u=i.context.dataRef,f=i.useState("open"),{listRef:p,elementsRef:y,activeIndex:g,onMatch:S,onTypingChange:b,enabled:E=!0,resetMs:T=750,selectedIndex:O=null}=a,_=al(),A=x.useRef(""),D=x.useRef(O??g??-1),N=x.useRef(null);rt(()=>{!f&&O!==null||(_.clear(),N.current=null,A.current!==""&&(A.current=""))},[f,O,_]),rt(()=>{f&&A.current===""&&(D.current=O??g??-1)},[f,O,g]);const M=it(Z=>{Z?u.current.typing||(u.current.typing=Z,b?.(Z)):u.current.typing&&(u.current.typing=Z,b?.(Z))}),q=it(Z=>{function V(J){const L=y?.current[J];return!L||Y1(L)}function X(J,L,B=0){if(J.length===0)return-1;const F=(B%J.length+J.length)%J.length,ne=L.toLocaleLowerCase();for(let ce=0;ce<J.length;ce+=1){const j=(F+ce)%J.length;if(!(!J[j]?.toLocaleLowerCase().startsWith(ne)||!V(j)))return j}return-1}const le=p.current;if(A.current.length>0&&Z.key===" "&&(ol(Z),M(!0)),A.current.length>0&&A.current[0]!==" "&&X(le,A.current)===-1&&Z.key!==" "&&M(!1),le==null||Z.key.length!==1||Z.ctrlKey||Z.metaKey||Z.altKey)return;f&&Z.key!==" "&&(ol(Z),M(!0));const K=A.current==="";K&&(D.current=O??g??-1),le.every(J=>J?J[0]?.toLocaleLowerCase()!==J[1]?.toLocaleLowerCase():!0)&&A.current===Z.key&&(A.current="",D.current=N.current),A.current+=Z.key,_.start(T,()=>{A.current="",D.current=N.current,M(!1)});const ee=((K?O??g??-1:D.current)??0)+1,te=X(le,A.current,ee);te!==-1?(S?.(te),N.current=te):Z.key!==" "&&(A.current="",M(!1))}),I=it(Z=>{const V=Z.relatedTarget,X=i.select("domReferenceElement"),le=i.select("floatingElement"),K=wt(X,V),fe=wt(le,V);K||fe||(_.clear(),A.current="",D.current=N.current,M(!1))}),Y=x.useMemo(()=>({onKeyDown:q,onBlur:I}),[q,I]),H=x.useMemo(()=>({onKeyDown:q,onBlur:I}),[q,I]);return x.useMemo(()=>E?{reference:Y,floating:H}:{},[E,Y,H])}const KA=.1,qL=KA*KA,kn=.5;function sS(t,a,i,u,f,p){return u>=a!=p>=a&&t<=(f-i)*(a-u)/(p-u)+i}function cS(t,a,i,u,f,p,y,g,S,b){let E=!1;return sS(t,a,i,u,f,p)&&(E=!E),sS(t,a,f,p,y,g)&&(E=!E),sS(t,a,y,g,S,b)&&(E=!E),sS(t,a,S,b,i,u)&&(E=!E),E}function $L(t,a,i){return t>=i.x&&t<=i.x+i.width&&a>=i.y&&a<=i.y+i.height}function fS(t,a,i,u,f,p){const y=Math.min(i,f),g=Math.max(i,f),S=Math.min(u,p),b=Math.max(u,p);return t>=y&&t<=g&&a>=S&&a<=b}function ZL(t={}){const{blockPointerEvents:a=!1}=t,i=new nl,u=({x:f,y:p,placement:y,elements:g,onClose:S,nodeId:b,tree:E})=>{const T=y?.split("-")[0];let O=!1,_=null,A=null,D=typeof performance<"u"?performance.now():0;function N(q,I){const Y=performance.now(),H=Y-D;if(_===null||A===null||H===0)return _=q,A=I,D=Y,!1;const Z=q-_,V=I-A,X=Z*Z+V*V,le=H*H*qL;return _=q,A=I,D=Y,X<le}function M(){i.clear(),S()}return function(I){i.clear();const Y=g.domReference,H=g.floating;if(!Y||!H||T==null||f==null||p==null)return;const{clientX:Z,clientY:V}=I,X=Na(I),le=I.type==="mouseleave",K=wt(H,X),fe=wt(Y,X);if(K&&(O=!0,!le))return;if(fe&&(O=!1,!le)){O=!0;return}if(le&&pn(I.relatedTarget)&&wt(H,I.relatedTarget))return;function ie(){return!!(E&&vu(E.nodesRef.current,b).length>0)}function ee(){ie()||M()}if(ie())return;const te=Y.getBoundingClientRect(),J=H.getBoundingClientRect(),L=f>J.right-J.width/2,B=p>J.bottom-J.height/2,F=J.width>te.width,ne=J.height>te.height,ce=(F?te:J).left,j=(F?te:J).right,Q=(ne?te:J).top,oe=(ne?te:J).bottom;if(T==="top"&&p>=te.bottom-1||T==="bottom"&&p<=te.top+1||T==="left"&&f>=te.right-1||T==="right"&&f<=te.left+1){ee();return}let de=!1;switch(T){case"top":de=fS(Z,V,ce,te.top+1,j,J.bottom-1);break;case"bottom":de=fS(Z,V,ce,J.top+1,j,te.bottom-1);break;case"left":de=fS(Z,V,J.right-1,oe,te.left+1,Q);break;case"right":de=fS(Z,V,te.right-1,oe,J.left+1,Q);break}if(de)return;if(O&&!$L(Z,V,te)){ee();return}if(!le&&N(Z,V)){ee();return}let ve=!1;switch(T){case"top":{const _e=F?kn/2:kn*4,Te=F||L?f+_e:f-_e,Ue=F?f-_e:L?f+_e:f-_e,Ge=p+kn+1,We=L||F?J.bottom-kn:J.top,Ne=L?F?J.bottom-kn:J.top:J.bottom-kn;ve=cS(Z,V,Te,Ge,Ue,Ge,J.left,We,J.right,Ne);break}case"bottom":{const _e=F?kn/2:kn*4,Te=F||L?f+_e:f-_e,Ue=F?f-_e:L?f+_e:f-_e,Ge=p-kn,We=L||F?J.top+kn:J.bottom,Ne=L?F?J.top+kn:J.bottom:J.top+kn;ve=cS(Z,V,Te,Ge,Ue,Ge,J.left,We,J.right,Ne);break}case"left":{const _e=ne?kn/2:kn*4,Te=ne||B?p+_e:p-_e,Ue=ne?p-_e:B?p+_e:p-_e,Ge=f+kn+1,We=B||ne?J.right-kn:J.left,Ne=B?ne?J.right-kn:J.left:J.right-kn;ve=cS(Z,V,We,J.top,Ne,J.bottom,Ge,Te,Ge,Ue);break}case"right":{const _e=ne?kn/2:kn*4,Te=ne||B?p+_e:p-_e,Ue=ne?p-_e:B?p+_e:p-_e,Ge=f-kn,We=B||ne?J.left+kn:J.right,Ne=B?ne?J.left+kn:J.right:J.left+kn;ve=cS(Z,V,Ge,Te,Ge,Ue,We,J.top,Ne,J.bottom);break}}ve?O||i.start(40,ee):ee()}};return u.__options={...t,blockPointerEvents:a},u}const WA=x.forwardRef(function(a,i){const{children:u,container:f,className:p,render:y,style:g,...S}=a,{portalNode:b,portalSubtree:E}=SA({container:f,ref:i,componentProps:a,elementProps:S});return!E&&!b?null:P.jsxs(x.Fragment,{children:[E,b&&tl.createPortal(u,b)]})});process.env.NODE_ENV!=="production"&&(WA.displayName="FloatingPortalLite");const XL=WA,eD=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(eD.displayName="DirectionContext");function tD(){return x.useContext(eD)?.direction??"ltr"}const PL=t=>({name:"arrow",options:t,async fn(a){const{x:i,y:u,placement:f,rects:p,platform:y,elements:g,middlewareData:S}=a,{element:b,padding:E=0,offsetParent:T="real"}=hs(t,a)||{};if(b==null)return{};const O=z_(E),_={x:i,y:u},A=m2(f),D=p2(A),N=await y.getDimensions(b),M=A==="y",q=M?"top":"left",I=M?"bottom":"right",Y=M?"clientHeight":"clientWidth",H=p.reference[D]+p.reference[A]-_[A]-p.floating[D],Z=_[A]-p.reference[A],V=T==="real"?await y.getOffsetParent?.(b):g.floating;let X=g.floating[Y]||p.floating[D];(!X||!await y.isElement?.(V))&&(X=g.floating[Y]||p.floating[D]);const le=H/2-Z/2,K=X/2-N[D]/2-1,fe=Math.min(O[q],K),ie=Math.min(O[I],K),ee=fe,te=X-N[D]-ie,J=X/2-N[D]/2+le,L=d2(ee,J,te),B=!S.arrow&&kc(f)!=null&&J!==L&&p.reference[D]/2-(J<ee?fe:ie)-N[D]/2<0,F=B?J<ee?J-ee:J-te:0;return{[A]:_[A]+F,data:{[A]:L,centerOffset:J-L-F,...B&&{alignmentOffset:F}},reset:B}}}),FL=(t,a)=>({...PL(t),options:[t,a]}),QL={name:"hide",async fn(t){const{width:a,height:i,x:u,y:f}=t.rects.reference,p=a===0&&i===0&&u===0&&f===0;return{data:{referenceHidden:(await DL().fn(t)).data?.referenceHidden||p}}}},dS={sideX:"left",sideY:"top"},JL={name:"adaptiveOrigin",async fn(t){const{x:a,y:i,rects:{floating:u},elements:{floating:f},platform:p,strategy:y,placement:g}=t,S=oa(f),b=S.getComputedStyle(f);if(!(b.transitionDuration!=="0s"&&b.transitionDuration!==""))return{x:a,y:i,data:dS};const T=await p.getOffsetParent?.(f);let O={width:0,height:0};if(y==="fixed"&&S?.visualViewport)O={width:S.visualViewport.width,height:S.visualViewport.height};else if(T===S){const q=Pt(f);O={width:q.documentElement.clientWidth,height:q.documentElement.clientHeight}}else await p.isElement?.(T)&&(O=await p.getDimensions(T));const _=Lr(g);let A=a,D=i;_==="left"&&(A=O.width-(a+u.width)),_==="top"&&(D=O.height-(i+u.height));const N=_==="left"?"right":dS.sideX,M=_==="top"?"bottom":dS.sideY;return{x:A,y:D,data:{sideX:N,sideY:M}}}};function nD(t,a,i){const u=t==="inline-start"||t==="inline-end";return{top:"top",right:u?i?"inline-start":"inline-end":"right",bottom:"bottom",left:u?i?"inline-end":"inline-start":"left"}[a]}function aD(t,a,i){const{rects:u,placement:f}=t;return{side:nD(a,Lr(f),i),align:kc(f)||"center",anchor:{width:u.reference.width,height:u.reference.height},positioner:{width:u.floating.width,height:u.floating.height}}}function oD(t){const{anchor:a,positionMethod:i="absolute",side:u="bottom",sideOffset:f=0,align:p="center",alignOffset:y=0,collisionBoundary:g,collisionPadding:S=5,sticky:b=!1,arrowPadding:E=5,disableAnchorTracking:T=!1,keepMounted:O=!1,floatingRootContext:_,mounted:A,collisionAvoidance:D,shiftCrossAxis:N=!1,nodeId:M,adaptiveOrigin:q,lazyFlip:I=!1,externalTree:Y}=t,[H,Z]=x.useState(null);!A&&H!==null&&Z(null);const V=D.side||"flip",X=D.align||"flip",le=D.fallbackAxisSide||"end",K=typeof a=="function"?a:void 0,fe=it(K),ie=K?fe:a,ee=Ya(a),te=Ya(A),L=tD()==="rtl",B=H||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":L?"left":"right","inline-start":L?"right":"left"}[u],F=p==="center"?B:`${B}-${p}`;let ne=S;const ce=1,j=u==="bottom"?ce:0,Q=u==="top"?ce:0,oe=u==="right"?ce:0,de=u==="left"?ce:0;typeof ne=="number"?ne={top:ne+j,right:ne+de,bottom:ne+Q,left:ne+oe}:ne&&(ne={top:(ne.top||0)+j,right:(ne.right||0)+de,bottom:(ne.bottom||0)+Q,left:(ne.left||0)+oe});const ve={boundary:g==="clipping-ancestors"?"clippingAncestors":g,padding:ne},_e=x.useRef(null),Te=Ya(f),Ue=Ya(y),Ne=[OL(k=>{const W=aD(k,u,L),Se=typeof Te.current=="function"?Te.current(W):Te.current,De=typeof Ue.current=="function"?Ue.current(W):Ue.current;return{mainAxis:Se,crossAxis:De,alignmentAxis:De}},[typeof f!="function"?f:0,typeof y!="function"?y:0,L,u])],Ze=X==="none"&&V!=="shift",lt=!Ze&&(b||N||V==="shift"),Xe=V==="none"?null:_L({...ve,padding:{top:ne.top+ce,right:ne.right+ce,bottom:ne.bottom+ce,left:ne.left+ce},mainAxis:!N&&V==="flip",crossAxis:X==="flip"?"alignment":!1,fallbackAxisSideDirection:le}),ht=Ze?null:CL(k=>{const W=Pt(k.elements.floating).documentElement;return{...ve,rootBoundary:N?{x:0,y:0,width:W.clientWidth,height:W.clientHeight}:void 0,mainAxis:X!=="none",crossAxis:lt,limiter:b||N?void 0:xL(Se=>{if(!_e.current)return{};const{width:De,height:Ie}=_e.current.getBoundingClientRect(),Pe=kl(Lr(Se.placement)),Fe=Pe==="y"?De:Ie,ut=Pe==="y"?ne.left+ne.right:ne.top+ne.bottom;return{offset:Fe/2+ut/2}})}},[ve,b,N,ne,X]);V==="shift"||X==="shift"||p==="center"?Ne.push(ht,Xe):Ne.push(Xe,ht),Ne.push(AL({...ve,apply({elements:{floating:k},availableWidth:W,availableHeight:Se,rects:De}){if(!te.current)return;const Ie=k.style;Ie.setProperty("--available-width",`${W}px`),Ie.setProperty("--available-height",`${Se}px`);const Pe=oa(k).devicePixelRatio||1,{x:Fe,y:ut,width:ft,height:tn}=De.reference,Tn=(Math.round((Fe+ft)*Pe)-Math.round(Fe*Pe))/Pe,Zn=(Math.round((ut+tn)*Pe)-Math.round(ut*Pe))/Pe;Ie.setProperty("--anchor-width",`${Tn}px`),Ie.setProperty("--anchor-height",`${Zn}px`)}}),FL(()=>({element:_e.current||Pt(_e.current).createElement("div"),padding:E,offsetParent:"floating"}),[E]),{name:"transformOrigin",fn(k){const{elements:W,middlewareData:Se,placement:De,rects:Ie,y:Pe}=k,Fe=Lr(De),ut=kl(Fe),ft=_e.current,tn=Se.arrow?.x||0,Tn=Se.arrow?.y||0,Zn=ft?.clientWidth||0,Rn=ft?.clientHeight||0,Ea=tn+Zn/2,da=Tn+Rn/2,Ua=Math.abs(Se.shift?.y||0),Jt=Ie.reference.height/2,Dn=typeof f=="function"?f(aD(k,u,L)):f,yo=Ua>Dn,Jo={top:`${Ea}px calc(100% + ${Dn}px)`,bottom:`${Ea}px ${-Dn}px`,left:`calc(100% + ${Dn}px) ${da}px`,right:`${-Dn}px ${da}px`}[Fe],ra=`${Ea}px ${Ie.reference.y+Jt-Pe}px`;return W.floating.style.setProperty("--transform-origin",lt&&ut==="y"&&yo?ra:Jo),{}}},QL,q),rt(()=>{!A&&_&&_.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[A,_]);const $e=x.useMemo(()=>({elementResize:!T&&typeof ResizeObserver<"u",layoutShift:!T&&typeof IntersectionObserver<"u"}),[T]),{refs:Qe,elements:dt,x:et,y:Ve,middlewareData:Re,update:je,placement:Ce,context:we,isPositioned:tt,floatingStyles:pt}=UL({rootContext:_,open:O?A:void 0,placement:F,middleware:Ne,strategy:i,whileElementsMounted:O?void 0:(...k)=>kA(...k,$e),nodeId:M,externalTree:Y}),{sideX:ct,sideY:yt}=Re.adaptiveOrigin||dS,ln=tt?i:"fixed",Rt=x.useMemo(()=>{const k=q?{position:ln,[ct]:et,[yt]:Ve}:{position:ln,...pt};return tt||(k.opacity=0),k},[q,ln,ct,et,yt,Ve,pt,tt]),Qt=x.useRef(null);rt(()=>{if(!A)return;const k=ee.current,W=typeof k=="function"?k():k,De=(rD(W)?W.current:W)||null||null;De!==Qt.current&&(Qe.setPositionReference(De),Qt.current=De)},[A,Qe,ie,ee]),x.useEffect(()=>{if(!A)return;const k=ee.current;typeof k!="function"&&rD(k)&&k.current!==Qt.current&&(Qe.setPositionReference(k.current),Qt.current=k.current)},[A,Qe,ie,ee]),x.useEffect(()=>{if(O&&A&&dt.domReference&&dt.floating)return kA(dt.domReference,dt.floating,je,$e)},[O,A,dt,je,$e]);const xt=Lr(Ce),Nt=nD(u,xt,L),Ot=kc(Ce)||"center",Wt=!!Re.hide?.referenceHidden;rt(()=>{I&&A&&tt&&Z(xt)},[I,A,tt,xt]);const en=x.useMemo(()=>({position:"absolute",top:Re.arrow?.y,left:Re.arrow?.x}),[Re.arrow]),yn=Re.arrow?.centerOffset!==0;return x.useMemo(()=>({positionerStyles:Rt,arrowStyles:en,arrowRef:_e,arrowUncentered:yn,side:Nt,align:Ot,physicalSide:xt,anchorHidden:Wt,refs:Qe,context:we,isPositioned:tt,update:je}),[Rt,en,_e,yn,Nt,Ot,xt,Wt,Qe,we,tt,je])}function rD(t){return t!=null&&"current"in t}let Ud=(function(t){return t.open="data-open",t.closed="data-closed",t[t.startingStyle=Py.startingStyle]="startingStyle",t[t.endingStyle=Py.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t})({}),J2=(function(t){return t.popupOpen="data-popup-open",t.pressed="data-pressed",t})({});const KL={[J2.popupOpen]:""},WL={[J2.popupOpen]:"",[J2.pressed]:""},e7={[Ud.open]:""},t7={[Ud.closed]:""},n7={[Ud.anchorHidden]:""},lD={open(t){return t?KL:null}},iD={open(t){return t?WL:null}},jd={open(t){return t?e7:t7},anchorHidden(t){return t?n7:null}};function K2(t){return t==="starting"?s9:za}function uD(t,a,{styles:i,transitionStatus:u,props:f,refs:p,hidden:y,inert:g=!1}){const S={...i};return g&&(S.pointerEvents="none"),Hn("div",t,{state:a,ref:p,props:[{role:"presentation",hidden:y,style:S},K2(u),f],stateAttributesMapping:jd})}function sD(){const t=x.useContext(O1);if(!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: useToastManager must be used within <Toast.Provider>.":va(73));const a=t.useState("toasts");return x.useMemo(()=>({toasts:a,add:t.addToast,close:t.closeToast,update:t.updateToast,promise:t.promiseToast}),[a,t])}function Ld(...t){return $T(Zx(t))}const cD={Viewport:"_Viewport_ai81v_1",Toast:"_Toast_ai81v_14"};let Pp=null,ev=3e3;function a7({timeout:t}){const a=sD();return x.useEffect(()=>(Pp=a,ev=t,()=>{Pp=null}),[a,t]),null}const wu={success:(t,a)=>Pp?.add({description:t,timeout:a?.timeout||ev}),error:(t,a)=>Pp?.add({description:t,timeout:a?.timeout||ev}),info:(t,a)=>Pp?.add({description:t,timeout:a?.timeout||ev}),warning:(t,a)=>Pp?.add({description:t,timeout:a?.timeout||ev})};function o7({toastConfigs:t}){const a=t?.timeout??3e3;return P.jsxs($_,{timeout:a,children:[P.jsx(a7,{timeout:a}),P.jsx(r7,{configs:t})]})}function r7({configs:t}){const{toasts:a}=sD();return P.jsx(XL,{children:P.jsx(nA,{className:Ld(cD.Viewport,t?.viewportClassName),children:a.map(i=>P.jsx(rA,{toast:i,className:Ld("pointer-events-none flex items-center justify-center px-6 py-3 min-w-[200px] max-w-[80vw]","text-white text-base rounded-md bg-black/80",cD.Toast,t?.className),style:t?.style,children:P.jsx(uA,{className:"text-xs",children:i.description})},i.id))})})}class l7{baseUrl;credentials;interceptors;timeout;onError;headers;constructor({baseUrl:a,timeout:i=1/0,responseInterceptor:u=S=>S.data,requestInterceptor:f=S=>S,onError:p=()=>{},headers:y,credentials:g="include"}){this.baseUrl=a,this.timeout=i,this.credentials=g,this.interceptors={request:f,response:u},this.headers=new Headers({"Content-Type":"application/json",...y}),this.onError=p}async request(a){const i=new AbortController;a.url=`${this.baseUrl}${a.url}`,a=this.interceptors.request(a);const u=new Headers(this.headers);Object.entries(a.headers||{}).forEach(([g,S])=>{u.set(g,S)});const f=this.headers.get("content-type");let p=null;if(a.data instanceof FormData)p=a.data,u.delete("Content-Type");else if(a.data!==void 0&&a.method!=="GET")if(f==="application/x-www-form-urlencoded"){const g=new URLSearchParams;for(const S in a.data)a.data[S]!==void 0&&g.append(S,a.data[S]);p=g.toString()}else p=JSON.stringify(a.data);else if(a.method==="GET"){const g=new URLSearchParams;for(const b in a.data)a.data[b]!==void 0&&g.append(b,a.data[b]);const S=g.toString();a.url+=S?`?${S}`:""}const y=fetch(a.url,{method:a.method,headers:u,body:p,signal:a.signal||i.signal,credentials:this.credentials});try{const g=a.timeout||this.timeout,{timeoutId:S,timeoutPromise:b}=this._setTimeout(g,i),E=await Promise.race([y,b].filter(Boolean));if(S&&clearTimeout(S),E.ok){const T=await E.json();return this.interceptors.response(T,E).catch(O=>(this.onError({data:O,response:E}),Promise.reject(T)))}else{const T=await E.json();return this.onError({data:T,response:E}),Promise.reject(T)}}catch(g){return g.name!=="AbortError"&&this.onError({}),Promise.reject(g)}}_setTimeout(a,i){let u=null,f=null;return a!==1/0&&(f=new Promise((p,y)=>{u=setTimeout(()=>{y(new Error("请求超时")),i.abort()},a)})),{timeoutPromise:f,timeoutId:u}}get(a,i,u){return this.request({...u,url:a,method:"GET",data:i})}post(a,i,u){return this.request({...u,url:a,method:"POST",data:i})}put(a,i,u){return this.request({...u,url:a,method:"PUT",data:i})}delete(a,i){return this.request({...i,url:a,method:"DELETE"})}patch(a,i,u){return this.request({...u,url:a,method:"PATCH",data:i})}}const ll=new l7({baseUrl:"https://apis.sdk.mobileztgame.com",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},async responseInterceptor(t,a){if(["/passport-api/v2/ztgame/auth/login","/passport-api/v2/sms-captchas","/passport-api/v2/ztgame/auth/mobile-register","/passport-api/v2/ztgame/auth/auth","/passport-api/v2/ztgame/auth/re-auth","/idcard"].some(u=>a.url.includes(u))){const u=a.headers.get("set-authentication")||a.headers.get("Set-Authentication")||"";return{...t,_auth:u}}if(t?.code!==0)throw new Error(t.error);return t},onError({response:t,data:a}){if(t&&t?.status!==401){const i=`${a?.message||a?.detail||"未知错误"}`;wu.error(i)}}});function fD(t){ll.headers.set("Authentication",t)}const $n={ROLE_ID:"roleid",GIANT:"giant",MOBILE:"mobile"},hS={default:{types:[$n.GIANT,$n.MOBILE],default:$n.GIANT},5327:{types:[$n.GIANT,$n.MOBILE],default:$n.MOBILE},5273:{types:[$n.ROLE_ID],default:$n.ROLE_ID},5199:{types:[$n.ROLE_ID],default:$n.ROLE_ID},5012:{types:[$n.ROLE_ID],default:$n.ROLE_ID},5242:{types:[$n.GIANT,$n.MOBILE],default:$n.MOBILE}};function _o(...t){return $T(Zx(t))}function i7(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,i)=>String.fromCharCode(Number.parseInt(i,16))))}function u7(t){return t==="5199"||t==="5012"}function s7(t){const{entity:a,gaplaySign:i}=t;return i7(`${JSON.stringify(a)}$$${i}`)}function pS(t,a){return a||hS[t]?.types||hS.default?.types||[]}function c7(t,a){return a||hS[t]?.default||hS.default?.default}function dD({loginTypes:t,gameId:a}){return pS(a,t).includes($n.GIANT)}function hD({loginTypes:t,gameId:a}){return pS(a,t).includes($n.ROLE_ID)}function pD({loginTypes:t,gameId:a}){return pS(a,t).includes($n.MOBILE)}function mD({gameId:t}){ll.headers.set("X-GAME-ID",t),ll.headers.set("X-Login-H5","1");const a=localStorage.getItem("UNIQUE_ID");a&&ll.headers.set("X-Client-Info",JSON.stringify({sdk_version:"3.0.0",device_udid:a,appunid:a}))}async function f7({gameId:t}){mD({gameId:t});let a=localStorage.getItem("UNIQUE_ID");a||(a=(await(await Y8.load()).get()).visitorId,localStorage.setItem("UNIQUE_ID",a)),ll.headers.set("X-Client-Info",JSON.stringify({sdk_version:"3.0.0",device_udid:a,appunid:a}))}const gD=[{code:"86",name:"中国大陆"},{code:"886",name:"台湾地区"},{code:"852",name:"香港特别行政区"},{code:"853",name:"澳门特别行政区"},{code:"1",name:"美国"},{code:"81",name:"日本"},{code:"376",name:"安道尔"},{code:"971",name:"阿拉伯联合酋长国"},{code:"93",name:"阿富汗"},{code:"1268",name:"安提瓜和巴布达"},{code:"1264",name:"安圭拉"},{code:"355",name:"阿尔巴尼亚"},{code:"374",name:"亚美尼亚"},{code:"244",name:"安哥拉"},{code:"54",name:"阿根廷"},{code:"1684",name:"美属萨摩亚"},{code:"43",name:"奥地利"},{code:"61",name:"澳大利亚"},{code:"297",name:"阿鲁巴"},{code:"994",name:"阿塞拜疆"},{code:"387",name:"波斯尼亚和黑塞哥维那"},{code:"1246",name:"巴巴多斯"},{code:"880",name:"孟加拉国"},{code:"32",name:"比利时"},{code:"226",name:"布基纳法索"},{code:"359",name:"保加利亚"},{code:"973",name:"巴林"},{code:"257",name:"布隆迪"},{code:"229",name:"贝宁"},{code:"1441",name:"百慕大群岛"},{code:"673",name:"文莱"},{code:"591",name:"玻利维亚"},{code:"599",name:"荷兰加勒比"},{code:"55",name:"巴西"},{code:"1242",name:"巴哈马"},{code:"975",name:"不丹"},{code:"267",name:"博茨瓦纳"},{code:"375",name:"白俄罗斯"},{code:"501",name:"伯利兹"},{code:"1",name:"加拿大"},{code:"243",name:"刚果民主共和国"},{code:"236",name:"中非共和国"},{code:"242",name:"刚果共和国"},{code:"41",name:"瑞士"},{code:"225",name:"象牙海岸"},{code:"682",name:"库克群岛"},{code:"56",name:"智利"},{code:"237",name:"喀麦隆"},{code:"57",name:"哥伦比亚"},{code:"506",name:"哥斯达黎加"},{code:"53",name:"古巴"},{code:"238",name:"佛得角共和国"},{code:"599",name:"库拉索"},{code:"357",name:"塞浦路斯"},{code:"420",name:"捷克"},{code:"49",name:"德国"},{code:"253",name:"吉布提"},{code:"45",name:"丹麦"},{code:"1767",name:"多米尼加"},{code:"1809",name:"多米尼加共和国"},{code:"213",name:"阿尔及利亚"},{code:"593",name:"厄瓜多尔"},{code:"372",name:"爱沙尼亚"},{code:"20",name:"埃及"},{code:"291",name:"厄立特里亚"},{code:"34",name:"西班牙"},{code:"251",name:"埃塞俄比亚"},{code:"358",name:"芬兰"},{code:"679",name:"斐济"},{code:"691",name:"密克罗尼西亚"},{code:"298",name:"法罗群岛"},{code:"33",name:"法国"},{code:"241",name:"加蓬"},{code:"44",name:"英国"},{code:"1473",name:"格林纳达"},{code:"995",name:"格鲁吉亚"},{code:"594",name:"法属圭亚那"},{code:"233",name:"加纳"},{code:"350",name:"直布罗陀"},{code:"299",name:"格陵兰岛"},{code:"220",name:"冈比亚"},{code:"224",name:"几内亚"},{code:"590",name:"瓜德罗普岛"},{code:"240",name:"赤道几内亚"},{code:"30",name:"希腊"},{code:"502",name:"瓜地马拉"},{code:"1671",name:"关岛"},{code:"245",name:"几内亚比绍共和国"},{code:"592",name:"圭亚那"},{code:"504",name:"洪都拉斯"},{code:"385",name:"克罗地亚"},{code:"509",name:"海地"},{code:"36",name:"匈牙利"},{code:"62",name:"印度尼西亚"},{code:"353",name:"爱尔兰"},{code:"972",name:"以色列"},{code:"91",name:"印度"},{code:"964",name:"伊拉克"},{code:"98",name:"伊朗"},{code:"354",name:"冰岛"},{code:"39",name:"意大利"},{code:"1876",name:"牙买加"},{code:"962",name:"约旦"},{code:"254",name:"肯尼亚"},{code:"996",name:"吉尔吉斯斯坦"},{code:"855",name:"柬埔寨"},{code:"686",name:"基里巴斯"},{code:"269",name:"科摩罗"},{code:"1869",name:"圣基茨和尼维斯"},{code:"850",name:"朝鲜"},{code:"82",name:"韩国"},{code:"965",name:"科威特"},{code:"1345",name:"开曼群岛"},{code:"7",name:"哈萨克斯坦"},{code:"856",name:"老挝"},{code:"961",name:"黎巴嫩"},{code:"1758",name:"圣露西亚"},{code:"423",name:"列支敦士登"},{code:"94",name:"斯里兰卡"},{code:"231",name:"利比里亚"},{code:"266",name:"莱索托"},{code:"370",name:"立陶宛"},{code:"352",name:"卢森堡"},{code:"371",name:"拉脱维亚"},{code:"218",name:"利比亚"},{code:"212",name:"摩洛哥"},{code:"377",name:"摩纳哥"},{code:"373",name:"摩尔多瓦"},{code:"382",name:"黑山"},{code:"261",name:"马达加斯加"},{code:"692",name:"马绍尔群岛"},{code:"389",name:"北马其顿"},{code:"223",name:"马里"},{code:"95",name:"缅甸"},{code:"976",name:"蒙古"},{code:"222",name:"毛里塔尼亚"},{code:"1664",name:"蒙特塞拉特岛"},{code:"356",name:"马耳他"},{code:"230",name:"毛里求斯"},{code:"960",name:"马尔代夫"},{code:"265",name:"马拉维"},{code:"52",name:"墨西哥"},{code:"60",name:"马来西亚"},{code:"258",name:"莫桑比克"},{code:"264",name:"纳米比亚"},{code:"687",name:"新喀里多尼亚"},{code:"227",name:"尼日尔"},{code:"234",name:"尼日利亚"},{code:"505",name:"尼加拉瓜"},{code:"31",name:"荷兰"},{code:"47",name:"挪威"},{code:"977",name:"尼泊尔"},{code:"674",name:"拿鲁岛"},{code:"64",name:"新西兰"},{code:"968",name:"阿曼"},{code:"507",name:"巴拿马"},{code:"51",name:"秘鲁"},{code:"689",name:"法属波利尼西亚"},{code:"675",name:"巴布亚新几内亚"},{code:"63",name:"菲律宾"},{code:"92",name:"巴基斯坦"},{code:"48",name:"波兰"},{code:"508",name:"圣彼埃尔和密克隆岛"},{code:"1787",name:"波多黎各"},{code:"351",name:"葡萄牙"},{code:"680",name:"帕劳"},{code:"595",name:"巴拉圭"},{code:"974",name:"卡塔尔"},{code:"262",name:"留尼汪"},{code:"40",name:"罗马尼亚"},{code:"381",name:"塞尔维亚"},{code:"7",name:"俄罗斯"},{code:"250",name:"卢旺达"},{code:"966",name:"沙特阿拉伯"},{code:"677",name:"所罗门群岛"},{code:"248",name:"塞舌尔"},{code:"249",name:"苏丹"},{code:"46",name:"瑞典"},{code:"65",name:"新加坡"},{code:"386",name:"斯洛文尼亚"},{code:"421",name:"斯洛伐克"},{code:"232",name:"塞拉利昂"},{code:"378",name:"圣马力诺"},{code:"221",name:"塞内加尔"},{code:"252",name:"索马里"},{code:"597",name:"苏里南"},{code:"239",name:"圣多美和普林西比"},{code:"503",name:"萨尔瓦多"},{code:"963",name:"叙利亚"},{code:"268",name:"埃斯瓦蒂尼"},{code:"1649",name:"特克斯和凯科斯群岛"},{code:"235",name:"乍得"},{code:"228",name:"多哥"},{code:"66",name:"泰国"},{code:"992",name:"塔吉克斯坦"},{code:"670",name:"东帝汶"},{code:"993",name:"土库曼斯坦"},{code:"216",name:"突尼斯"},{code:"676",name:"汤加"},{code:"90",name:"土耳其"},{code:"1868",name:"特立尼达和多巴哥"},{code:"255",name:"坦桑尼亚"},{code:"380",name:"乌克兰"},{code:"256",name:"乌干达"},{code:"598",name:"乌拉圭"},{code:"998",name:"乌兹别克斯坦"},{code:"1784",name:"圣文森特和格林纳丁斯"},{code:"58",name:"委内瑞拉"},{code:"1284",name:"英属处女群岛"},{code:"84",name:"越南"},{code:"678",name:"瓦努阿图"},{code:"685",name:"萨摩亚"},{code:"967",name:"也门"},{code:"269",name:"马约特"},{code:"27",name:"南非"},{code:"260",name:"赞比亚"},{code:"263",name:"津巴布韦"}].map(t=>({label:t.name,value:t.code,id:`${t.code}-${t.name}`}));function d7(t){if(t==="5327"){const a=["1","34","39","44","49","60","61","63","65","66","7","81","82","852","853","86","886"];return gD.filter(i=>a.includes(i.value))}return gD}function h7(t){return"account"in t}function p7({gameId:t,serverUserInfo:a,extraState:i}){const u={game_id:t,xToken:s7(a),saveTime:a.entity.time,$version:"v2",extraState:i};if(h7(a))u.openid=a.entity.openid,u.gaplaySign=a.gaplaySign,u.account=a.account,u.username=a.account.view_name,u.loginByRoleMail=!1,u.channelId=a.channel||6;else if(a.gaplaySign){const{ZONEID:f,openid:p,CHARID:y,NAME:g,REALZONEID:S,ZONENAME:b}=a.entity;u.openid=p,u.zone={zoneid:S||f,zonename:b,area:f},u.char={...a.entity,CHARID:y,NAME:g,GAMEPOINT:a.entity.GAMEPOINT,VIPLEVEL:a.entity.VIPLEVEL},u.loginByRoleMail=!0,u.gaplaySign=a.gaplaySign}else{const{ZONEID:f,CHARID:p,NAME:y,REALZONEID:g,ZONENAME:S,OPENID:b,CHANNELID:E,GAMEPOINT:T,VIPLEVEL:O}=a.entity;u.openid=b,u.channelId=E,u.char={CHARID:p,NAME:y,GAMEPOINT:T,VIPLEVEL:O},u.loginByRoleMail=!1,u.username=y,u.zone={zoneid:g||f,zonename:S,area:f},u.xToken=void 0}return u}function yD(){try{const t=localStorage.getItem("userInfo")||"[]";return JSON.parse(t)}catch{return[]}}function W2(t){return yD().find(i=>i.game_id===t)}function m7(t){const a=localStorage.getItem("userInfo")||"[]",i=JSON.parse(a),u=i.find(p=>p.game_id===t);u?.openid&&vD(u.openid,t);const f=i.filter(p=>p.game_id!==t);localStorage.setItem("userInfo",JSON.stringify(f))}function g7(t){const a=yD(),i=W2(t.game_id),u=a.findIndex(f=>f.game_id===t.game_id);i?a[u]=t:a.push(t),localStorage.setItem("userInfo",JSON.stringify(a))}const tv="LOGIN_SDK_ACCOUNTS";function Fp(t){try{const a=JSON.parse(localStorage.getItem(tv)||"[]");return t?a.filter(i=>i.gameId===t):a}catch{return[]}}function mS(t,a,i){if(!i)return;const u=JSON.parse(localStorage.getItem(tv)||"[]");let f=1;const p=u.filter(S=>S.openid===t.accid&&S.gameId===i?(f=(S.loginCnt||1)+1,!1):!0),g=[{openid:t.accid,username:t.account?.view_name||"",uid:t.account?.uid||"",mobile:t.account?.mobile||"",accountType:t.account?.account_type||0,authorization:a,loginAt:Date.now(),loginCnt:f,gameId:i},...p].slice(0,20);localStorage.setItem(tv,JSON.stringify(g))}function vD(t,a){if(!a)return;const u=JSON.parse(localStorage.getItem(tv)||"[]").filter(f=>!(f.openid===t&&f.gameId===a));localStorage.setItem(tv,JSON.stringify(u))}let bD={};function SD(t){bD=t}function Hd(t){const a=t||bD.gameId;if(!a)throw new Error("gameId is required. Call init({ gameId }) first or pass it as an argument.");return a}const ED=x.createContext(void 0),y7={enabled:!0,days:7},wD={"--primary-color":"#787bf4","--icon-color":"#a9aad1","--input-border-color":"#cad0e0","--input-label-color":"var(--jssdk-primary-color)","--input-bg-color":"#fff"};function vs(){const t=x.use(ED);if(!t)throw new Error("useConfig 必须在 ConfigProvider 中使用");return t}function TD({children:t,value:a}){const i=Hd(a.gameId),u=pS(i,a.loginTypes),f=c7(i,a.defaultLoginType),p=x.useRef(null);mD({gameId:i});const y=ot.useMemo(()=>!a.defaultLoginType&&Fp(i).length>0?"quick":f,[a.defaultLoginType,i,f]),[g,S]=x.useState(y),[b,E]=x.useState(!0),[T,O]=x.useState(!1),[_,A]=x.useState(!1),[D,N]=x.useState(""),M=()=>{O(!0)};x.useEffect(()=>{f7({gameId:i})},[i]);const q={...a,gameId:i,loginTypes:u,defaultLoginType:f,autoLoginConfig:{...y7,...a.autoLoginConfig}};x.useEffect(()=>{document.body.classList.add(`game-${i}`)},[i]);function I(Y){Object.entries(Y).forEach(([H,Z])=>{const V=`--jssdk-${H.replace(/^--/,"")}`;document.documentElement.style.setProperty(V,Z)})}return x.useEffect(()=>{const Y=p.current;if(Y){const H={...wD,...a.styleVars};I(H)}return()=>{Y&&I(wD)}},[a.styleVars]),P.jsx("div",{ref:p,children:P.jsx(ED,{value:{...q,currentLoginType:g,setCurrentLoginType:S,isShowGiantLogo:b,setIsShowGiantLogo:E,showRealNameModal:T,setShowRealNameModal:O,triggerRealNameAuth:M,isAutoLoggingIn:_,setIsAutoLoggingIn:A,autoLoginAccountName:D,setAutoLoginAccountName:N,onClose:a.onClose},children:t})})}function gS({controlled:t,default:a,name:i,state:u="value"}){const{current:f}=x.useRef(t!==void 0),[p,y]=x.useState(a),g=f?t:p;if(process.env.NODE_ENV!=="production"){x.useEffect(()=>{f!==(t!==void 0)&&Ip([`A component is changing the ${f?"":"un"}controlled ${u} state of ${i} to be ${f?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
259
+ `))},[u,i,t]);const{current:b}=x.useRef(a);x.useEffect(()=>{!f&&RD(b)!==RD(a)&&Ip([`A component is changing the default ${u} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
260
+ `))},[a])}const S=x.useCallback(b=>{f||y(b)},[]);return[g,S]}function RD(t){let a=0;const i=new WeakMap;try{return JSON.stringify(t,function(p,y){if(!(p==="_owner"&&this!=null&&typeof this=="object"&&"$$typeof"in this)){if(typeof y=="bigint")return`__bigint__:${y}`;if(y!==null&&typeof y=="object"){const g=i.get(y);if(g!==void 0)return`__object__:${g}`;i.set(y,a),a+=1}return y}})??`__top__:${typeof t}`}catch{return"__unserializable__"}}const eR=x.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});process.env.NODE_ENV!=="production"&&(eR.displayName="CompositeListContext");function v7(){return x.useContext(eR)}function b7(t){const{children:a,elementsRef:i,labelsRef:u,onMapChange:f}=t,p=it(f),y=x.useRef(0),g=ro(E7).current,S=ro(S7).current,[b,E]=x.useState(0),T=x.useRef(b),O=it((M,q)=>{S.set(M,q??null),T.current+=1,E(T.current)}),_=it(M=>{S.delete(M),T.current+=1,E(T.current)}),A=x.useMemo(()=>{const M=new Map;return Array.from(S.keys()).filter(I=>I.isConnected).sort(w7).forEach((I,Y)=>{const H=S.get(I)??{};M.set(I,{...H,index:Y})}),M},[S,b]);rt(()=>{if(typeof MutationObserver!="function"||A.size===0)return;const M=new MutationObserver(q=>{const I=new Set,Y=H=>I.has(H)?I.delete(H):I.add(H);q.forEach(H=>{H.removedNodes.forEach(Y),H.addedNodes.forEach(Y)}),I.size===0&&(T.current+=1,E(T.current))});return A.forEach((q,I)=>{I.parentElement&&M.observe(I.parentElement,{childList:!0})}),()=>{M.disconnect()}},[A]),rt(()=>{T.current===b&&(i.current.length!==A.size&&(i.current.length=A.size),u&&u.current.length!==A.size&&(u.current.length=A.size),y.current=A.size),p(A)},[p,A,i,u,b]),rt(()=>()=>{i.current=[]},[i]),rt(()=>()=>{u&&(u.current=[])},[u]);const D=it(M=>(g.add(M),()=>{g.delete(M)}));rt(()=>{g.forEach(M=>M(A))},[g,A]);const N=x.useMemo(()=>({register:O,unregister:_,subscribeMapChange:D,elementsRef:i,labelsRef:u,nextIndexRef:y}),[O,_,D,i,u,y]);return P.jsx(eR.Provider,{value:N,children:a})}function S7(){return new Map}function E7(){return new Set}function w7(t,a){const i=t.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?1:0}function il(t){return Dd(t,"base-ui")}let OD=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function T7(t={}){const{label:a,metadata:i,textRef:u,indexGuessBehavior:f,index:p}=t,{register:y,unregister:g,subscribeMapChange:S,elementsRef:b,labelsRef:E,nextIndexRef:T}=v7(),O=x.useRef(-1),[_,A]=x.useState(p??(f===OD.GuessFromOrder?()=>{if(O.current===-1){const M=T.current;T.current+=1,O.current=M}return O.current}:-1)),D=x.useRef(null),N=x.useCallback(M=>{if(D.current=M,_!==-1&&M!==null&&(b.current[_]=M,E)){const q=a!==void 0;E.current[_]=q?a:u?.current?.textContent??M.textContent}},[_,b,E,a,u]);return rt(()=>{if(p!=null)return;const M=D.current;if(M)return y(M,i),()=>{g(M)}},[p,y,g,i]),rt(()=>{if(p==null)return S(M=>{const q=D.current?M.get(D.current)?.index:null;q!=null&&A(q)})},[p,S,A]),x.useMemo(()=>({ref:N,index:_}),[_,N])}const CD="ArrowUp",xD="ArrowDown",_D="ArrowLeft",AD="ArrowRight",DD="Home",MD="End",R7=new Set([_D,AD]),O7=new Set([CD,xD]),C7=new Set([...R7,...O7]);[...C7];const tR=new Set([CD,xD,_D,AD,DD,MD]);function nR(t){const a=x.useRef(!0);a.current&&(a.current=!1,t())}let zD={},ND={},UD="";function x7(t){if(typeof document>"u")return!1;const a=Pt(t);return oa(a).innerWidth-a.documentElement.clientWidth>0}function _7(t){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const i=Pt(t),u=i.documentElement,f=i.body,p=jc(u)?u:f,y=p.style.overflowY,g=u.style.scrollbarGutter;u.style.scrollbarGutter="stable",p.style.overflowY="scroll";const S=p.offsetWidth;p.style.overflowY="hidden";const b=p.offsetWidth;return p.style.overflowY=y,u.style.scrollbarGutter=g,S===b}function A7(t){const a=Pt(t),i=a.documentElement,u=a.body,f=jc(i)?i:u,p={overflowY:f.style.overflowY,overflowX:f.style.overflowX};return Object.assign(f.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(f.style,p)}}function D7(t){const a=Pt(t),i=a.documentElement,u=a.body,f=oa(i);let p=0,y=0,g=!1;const S=yu.create();if(r2&&(f.visualViewport?.scale??1)!==1)return()=>{};function b(){const _=f.getComputedStyle(i),A=f.getComputedStyle(u),M=(_.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";p=i.scrollTop,y=i.scrollLeft,zD={scrollbarGutter:i.style.scrollbarGutter,overflowY:i.style.overflowY,overflowX:i.style.overflowX},UD=i.style.scrollBehavior,ND={position:u.style.position,height:u.style.height,width:u.style.width,boxSizing:u.style.boxSizing,overflowY:u.style.overflowY,overflowX:u.style.overflowX,scrollBehavior:u.style.scrollBehavior};const q=i.scrollHeight>i.clientHeight,I=i.scrollWidth>i.clientWidth,Y=_.overflowY==="scroll"||A.overflowY==="scroll",H=_.overflowX==="scroll"||A.overflowX==="scroll",Z=Math.max(0,f.innerWidth-u.clientWidth),V=Math.max(0,f.innerHeight-u.clientHeight),X=parseFloat(A.marginTop)+parseFloat(A.marginBottom),le=parseFloat(A.marginLeft)+parseFloat(A.marginRight),K=jc(i)?i:u;if(g=_7(t),g){i.style.scrollbarGutter=M,K.style.overflowY="hidden",K.style.overflowX="hidden";return}Object.assign(i.style,{scrollbarGutter:M,overflowY:"hidden",overflowX:"hidden"}),(q||Y)&&(i.style.overflowY="scroll"),(I||H)&&(i.style.overflowX="scroll"),Object.assign(u.style,{position:"relative",height:X||V?`calc(100dvh - ${X+V}px)`:"100dvh",width:le||Z?`calc(100vw - ${le+Z}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),u.scrollTop=p,u.scrollLeft=y,i.setAttribute("data-base-ui-scroll-locked",""),i.style.scrollBehavior="unset"}function E(){Object.assign(i.style,zD),Object.assign(u.style,ND),g||(i.scrollTop=p,i.scrollLeft=y,i.removeAttribute("data-base-ui-scroll-locked"),i.style.scrollBehavior=UD)}function T(){E(),S.request(b)}b();const O=Ft(f,"resize",T);return()=>{S.cancel(),E(),typeof f.removeEventListener=="function"&&O()}}class M7{lockCount=0;restore=null;timeoutLock=nl.create();timeoutUnlock=nl.create();acquire(a){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(a)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(a){if(this.lockCount===0||this.restore!==null)return;const u=Pt(a).documentElement,f=oa(u).getComputedStyle(u).overflowY;if(f==="hidden"||f==="clip"){this.restore=go;return}const p=S_||!x7(a);this.restore=p?A7(a):D7(a)}}const z7=new M7;function jD(t=!0,a=null){rt(()=>{if(t)return z7.acquire(a)},[t,a])}function N7(t){const a=x.useRef(""),i=x.useCallback(f=>{f.defaultPrevented||(a.current=f.pointerType,t(f,f.pointerType))},[t]);return{onClick:x.useCallback(f=>{if(f.detail===0){t(f,"keyboard");return}"pointerType"in f?t(f,f.pointerType):t(f,a.current),a.current=""},[t]),onPointerDown:i}}function yS(t,a){const i=x.useRef(t),u=it(a);rt(()=>{i.current!==t&&u(i.current)},[t,u]),rt(()=>{i.current=t},[t])}function aR(t){const[a,i]=x.useState(null),u=it((y,g)=>{t||i(g||(S_?"touch":""))});yS(t,y=>{y&&!t&&i(null)});const{onClick:f,onPointerDown:p}=N7(u);return x.useMemo(()=>({openMethod:a,triggerProps:{onClick:f,onPointerDown:p}}),[a,f,p])}function U7(t){const{store:a,parentContext:i,actionsRef:u,isDrawer:f}=t,p=a.useState("open"),y=a.useState("disablePointerDismissal"),g=a.useState("modal"),S=a.useState("popupElement"),{openMethod:b,triggerProps:E}=aR(p);YA(a);const{forceUnmount:T}=IA(p,a),O=x.useCallback(()=>{a.setOpen(!1,sn(hA))},[a]);x.useImperativeHandle(u,()=>({unmount:T,close:O}),[T,O]);const _=XA({popupStore:a,onOpenChange:a.setOpen,treatPopupAsFloatingElement:!0}),[A,D]=x.useState(0),[N,M]=x.useState(0),q=A===0,I=JA(_),Y=q2(_,{outsidePressEvent(){return a.context.internalBackdropRef.current||a.context.backdropRef.current?"intentional":{mouse:g==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(fe){if(!a.context.outsidePressEnabledRef.current||"button"in fe&&fe.button!==0||"touches"in fe&&fe.touches.length!==1)return!1;const ie=Na(fe);if(q&&!y){const ee=ie;return g&&(a.context.internalBackdropRef.current||a.context.backdropRef.current)?a.context.internalBackdropRef.current===ee||a.context.backdropRef.current===ee||wt(ee,S)&&!ee?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:q});jD(p&&g===!0,S);const{getReferenceProps:H,getFloatingProps:Z,getTriggerProps:V}=Wy([I,Y]);a.useContextCallback("onNestedDialogOpen",(fe,ie)=>{D(fe),M(ie)}),a.useContextCallback("onNestedDialogClose",()=>{D(0),M(0)}),x.useEffect(()=>(i?.onNestedDialogOpen&&p&&i.onNestedDialogOpen(A+1,N+(f?1:0)),i?.onNestedDialogClose&&!p&&i.onNestedDialogClose(),()=>{i?.onNestedDialogClose&&p&&i.onNestedDialogClose()}),[f,p,A,N,i]);const X=x.useMemo(()=>H(E),[H,E]),le=x.useMemo(()=>V(E),[V,E]),K=x.useMemo(()=>Z(),[Z]);a.useSyncedValues({openMethod:b,activeTriggerProps:X,inactiveTriggerProps:le,popupProps:K,floatingRootContext:_,nestedOpenDialogCount:A,nestedOpenDrawerCount:N})}const oR=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(oR.displayName="DialogRootContext");function Yc(t){const a=x.useContext(oR);if(t===!1&&a===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.":va(27));return a}const j7={...$A,modal:Ke(t=>t.modal),nested:Ke(t=>t.nested),nestedOpenDialogCount:Ke(t=>t.nestedOpenDialogCount),nestedOpenDrawerCount:Ke(t=>t.nestedOpenDrawerCount),disablePointerDismissal:Ke(t=>t.disablePointerDismissal),openMethod:Ke(t=>t.openMethod),descriptionElementId:Ke(t=>t.descriptionElementId),titleElementId:Ke(t=>t.titleElementId),viewportElement:Ke(t=>t.viewportElement),role:Ke(t=>t.role)};class rR extends D1{constructor(a){super(L7(a),{popupRef:x.createRef(),backdropRef:x.createRef(),internalBackdropRef:x.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new nS,onOpenChange:void 0,onOpenChangeComplete:void 0},j7)}setOpen=(a,i)=>{if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!a&&i.trigger==null&&this.state.activeTriggerId!=null&&(i.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(a,i),i.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(a,i);const u={open:a},f=i.trigger?.id??null;(f||a)&&(u.activeTriggerId=f,u.activeTriggerElement=i.trigger??null),this.update(u)};static useStore(a,i){const u=ro(()=>new rR(i)).current;return a??u}}function L7(t={}){return{...qA(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}const lR=x.createContext(!1);process.env.NODE_ENV!=="production"&&(lR.displayName="IsDrawerContext");function LD(t){const{children:a,open:i,defaultOpen:u=!1,onOpenChange:f,onOpenChangeComplete:p,disablePointerDismissal:y=!1,modal:g=!0,actionsRef:S,handle:b,triggerId:E,defaultTriggerId:T=null}=t,O=Yc(!0),_=x.useContext(lR),A=!!O,D=rR.useStore(b?.store,{open:u,openProp:i,activeTriggerId:T,triggerIdProp:E,modal:g,disablePointerDismissal:y,nested:A});nR(()=>{i===void 0&&D.state.open===!1&&u===!0&&D.update({open:!0,activeTriggerId:T})}),D.useControlledProp("openProp",i),D.useControlledProp("triggerIdProp",E),D.useSyncedValues({disablePointerDismissal:y,nested:A,modal:g}),D.useContextCallback("onOpenChange",f),D.useContextCallback("onOpenChangeComplete",p);const N=D.useState("payload");U7({store:D,actionsRef:S,parentContext:O?.store.context,isDrawer:_});const M=x.useMemo(()=>({store:D}),[D]);return P.jsx(lR.Provider,{value:!1,children:P.jsx(oR.Provider,{value:M,children:typeof a=="function"?a({payload:N}):a})})}const H7={...jd,...ms},iR=x.forwardRef(function(a,i){const{render:u,className:f,style:p,forceRender:y=!1,...g}=a,{store:S}=Yc(),b=S.useState("open"),E=S.useState("nested"),T=S.useState("mounted"),O=S.useState("transitionStatus");return Hn("div",a,{state:{open:b,transitionStatus:O},ref:[S.context.backdropRef,i],stateAttributesMapping:H7,props:[{role:"presentation",hidden:!T,style:{userSelect:"none",WebkitUserSelect:"none"}},g],enabled:y||!E})});process.env.NODE_ENV!=="production"&&(iR.displayName="DialogBackdrop");const uR=x.forwardRef(function(a,i){const{render:u,className:f,disabled:p=!1,nativeButton:y=!0,style:g,...S}=a,{store:b}=Yc(),E=b.useState("open");function T(D){E&&b.setOpen(!1,sn(x9,D.nativeEvent))}const{getButtonProps:O,buttonRef:_}=qp({disabled:p,native:y});return Hn("button",a,{state:{disabled:p},ref:[i,_],props:[{onClick:T},S,O]})});process.env.NODE_ENV!=="production"&&(uR.displayName="DialogClose");const sR=x.forwardRef(function(a,i){const{render:u,className:f,style:p,id:y,...g}=a,{store:S}=Yc(),b=il(y);return S.useSyncedValueWithCleanup("descriptionElementId",b),Hn("p",a,{ref:i,props:[{id:b},g]})});process.env.NODE_ENV!=="production"&&(sR.displayName="DialogDescription");let k7=(function(t){return t.nestedDialogs="--nested-dialogs",t})({}),V7=(function(t){return t[t.open=Ud.open]="open",t[t.closed=Ud.closed]="closed",t[t.startingStyle=Ud.startingStyle]="startingStyle",t[t.endingStyle=Ud.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});const cR=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(cR.displayName="DialogPortalContext");function B7(){const t=x.useContext(cR);if(t===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Portal> is missing.":va(26));return t}const G7={...jd,...ms,nestedDialogOpen(t){return t?{[V7.nestedDialogOpen]:""}:null}},fR=x.forwardRef(function(a,i){const{className:u,finalFocus:f,initialFocus:p,render:y,style:g,...S}=a,{store:b}=Yc(),E=b.useState("descriptionElementId"),T=b.useState("disablePointerDismissal"),O=b.useState("floatingRootContext"),_=b.useState("popupProps"),A=b.useState("modal"),D=b.useState("mounted"),N=b.useState("nested"),M=b.useState("nestedOpenDialogCount"),q=b.useState("open"),I=b.useState("openMethod"),Y=b.useState("titleElementId"),H=b.useState("transitionStatus"),Z=b.useState("role");B7(),ys({open:q,ref:b.context.popupRef,onComplete(){q&&b.context.onOpenChangeComplete?.(!0)}});function V(ie){return ie==="touch"?b.context.popupRef.current:!0}const X=p===void 0?V:p,le=M>0,fe=Hn("div",a,{state:{open:q,nested:N,transitionStatus:H,nestedDialogOpen:le},props:[_,{"aria-labelledby":Y??void 0,"aria-describedby":E??void 0,role:Z,tabIndex:-1,hidden:!D,onKeyDown(ie){tR.has(ie.key)&&ie.stopPropagation()},style:{[k7.nestedDialogs]:M}},S],ref:[i,b.context.popupRef,b.useStateSetter("popupElement")],stateAttributesMapping:G7});return P.jsx(Y2,{context:O,openInteractionType:I,disabled:!D,closeOnFocusOut:!T,initialFocus:X,returnFocus:f,modal:A!==!1,restoreFocus:"popup",children:fe})});process.env.NODE_ENV!=="production"&&(fR.displayName="DialogPopup");const vS=x.forwardRef(function(a,i){const{cutout:u,...f}=a;let p;if(u){const y=u.getBoundingClientRect();p=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${y.left}px ${y.top}px,${y.left}px ${y.bottom}px,${y.right}px ${y.bottom}px,${y.right}px ${y.top}px,${y.left}px ${y.top}px)`}return P.jsx("div",{ref:i,role:"presentation","data-base-ui-inert":"",...f,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:p}})});process.env.NODE_ENV!=="production"&&(vS.displayName="InternalBackdrop");const dR=x.forwardRef(function(a,i){const{keepMounted:u=!1,...f}=a,{store:p}=Yc(),y=p.useState("mounted"),g=p.useState("modal"),S=p.useState("open");return y||u?P.jsx(cR.Provider,{value:u,children:P.jsxs(K1,{ref:i,...f,children:[y&&g===!0&&P.jsx(vS,{ref:p.context.internalBackdropRef,inert:X1(!S)}),a.children]})}):null});process.env.NODE_ENV!=="production"&&(dR.displayName="DialogPortal");const hR=x.forwardRef(function(a,i){const{render:u,className:f,style:p,id:y,...g}=a,{store:S}=Yc(),b=il(y);return S.useSyncedValueWithCleanup("titleElementId",b),Hn("h2",a,{ref:i,props:[{id:b},g]})});process.env.NODE_ENV!=="production"&&(hR.displayName="DialogTitle");const pR=x.forwardRef(function(a,i){const{render:u,className:f,disabled:p=!1,nativeButton:y=!0,id:g,payload:S,handle:b,style:E,...T}=a,O=Yc(!0),_=b?.store??O?.store;if(!_)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.":va(79));const A=il(g),D=_.useState("floatingRootContext"),N=_.useState("isOpenedByTrigger",A),M=x.useRef(null),{registerTrigger:q,isMountedByThisTrigger:I}=GA(A,M,_,{payload:S}),{getButtonProps:Y,buttonRef:H}=qp({disabled:p,native:y}),Z=I2(D,{enabled:D!=null}),V=Wy([Z]),X={disabled:p,open:N},le=_.useState("triggerProps",I);return Hn("button",a,{state:X,ref:[H,i,q,M],props:[V.getReferenceProps(),le,{[x2]:"",id:A},T,Y],stateAttributesMapping:lD})});process.env.NODE_ENV!=="production"&&(pR.displayName="DialogTrigger");const Y7=(t,a)=>Object.is(t,a);function Qp(t,a,i){return t==null||a==null?Object.is(t,a):i(t,a)}function I7(t,a,i){return!t||t.length===0?!1:t.some(u=>u===void 0?!1:Qp(a,u,i))}function nv(t,a,i){return!t||t.length===0?-1:t.findIndex(u=>u===void 0?!1:Qp(u,a,i))}function q7(t,a,i){return t.filter(u=>!Qp(a,u,i))}function mR(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}function $7(t){return t!=null&&t.length>0&&typeof t[0]=="object"&&t[0]!=null&&"items"in t[0]}function Z7(t){if(!Array.isArray(t))return t!=null&&"null"in t;const a=t;if($7(a)){for(const i of a)for(const u of i.items)if(u&&u.value==null&&u.label!=null)return!0;return!1}for(const i of a)if(i&&i.value==null&&i.label!=null)return!0;return!1}function X7(t,a){if(a&&t!=null)return a(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return mR(t)}function Jp(t,a){return a&&t!=null?a(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?mR(t.value):mR(t)}let HD=(function(t){return t.disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t})({});const bS={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},av={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},P7={disabled:!1,...av},kd={valid(t){return t===null?null:t?{[HD.valid]:""}:{[HD.invalid]:""}}},gR=x.createContext({invalid:void 0,name:void 0,validityData:{state:bS,errors:[],error:"",value:"",initialValue:null},setValidityData:go,disabled:void 0,touched:av.touched,setTouched:go,dirty:av.dirty,setDirty:go,filled:av.filled,setFilled:go,focused:av.focused,setFocused:go,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:P7,markedDirtyRef:{current:!1},registerFieldControl:go,validation:{getValidationProps:(t=za)=>t,getInputValidationProps:(t=za)=>t,inputRef:{current:null},commit:async()=>{}}});process.env.NODE_ENV!=="production"&&(gR.displayName="FieldRootContext");function Vd(t=!0){const a=x.useContext(gR);if(a.setValidityData===go&&!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.":va(28));return a}function yR(t,a){const{enabled:i=!0,getValue:u,id:f,value:p}=a,{registerFieldControl:y}=Vd(),g=x.useRef(null);g.current||(g.current=Symbol()),rt(()=>{const S=g.current;if(!(!S||!i))return y(S,{controlRef:t,getValue:u,id:f,value:p}),()=>{y(S,void 0)}},[t,i,u,f,y,p])}const vR=x.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:go,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});process.env.NODE_ENV!=="production"&&(vR.displayName="FormContext");function Kp(){return x.useContext(vR)}const bR=x.createContext({controlId:void 0,registerControlId:go,labelId:void 0,setLabelId:go,messageIds:[],setMessageIds:go,getDescriptionProps:t=>t});process.env.NODE_ENV!=="production"&&(bR.displayName="LabelableContext");function bs(){return x.useContext(bR)}function SR(t={}){const{id:a,implicit:i=!1,controlRef:u}=t,{controlId:f,registerControlId:p}=bs(),y=il(a),g=i?f:void 0,S=ro(()=>Symbol("labelable-control")),b=x.useRef(!1),E=x.useRef(a!=null),T=it(()=>{!b.current||p===go||(b.current=!1,p(S.current,void 0))});return rt(()=>{if(p===go)return;let O;if(i){const _=u?.current;pn(_)&&_.closest("label")!=null?O=a??null:O=g??y}else if(a!=null)E.current=!0,O=a;else if(E.current)O=y;else{T();return}if(O===void 0){T();return}b.current=!0,p(S.current,O)},[a,u,g,p,i,y,S,T]),x.useEffect(()=>T,[T]),f??y}function F7(t){const a=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production")return a;const i=oa(t),u=i.getComputedStyle(t,"::before"),f=i.getComputedStyle(t,"::after");if(!(u.content!=="none"||f.content!=="none"))return a;const y=parseFloat(u.width)||0,g=parseFloat(u.height)||0,S=parseFloat(f.width)||0,b=parseFloat(f.height)||0,E=Math.max(a.width,y,S),T=Math.max(a.height,g,b),O=E-a.width,_=T-a.height;return{left:a.left-O/2,right:a.right+O/2,top:a.top-_/2,bottom:a.bottom+_/2}}function Q7(t,a){return t??a}const J7=20;function kD(t,a,i,u){const[f,p]=x.useState(!1);rt(()=>{if(!t||!a||i==null){p(!1);return}const y=Pt(i).documentElement.clientWidth,g=i.offsetWidth;p(y>0&&g>0&&g>=y-J7)},[t,a,i]),jD(t&&(!a||f),u)}let VD=(function(t){return t.checked="data-checked",t.unchecked="data-unchecked",t.indeterminate="data-indeterminate",t.disabled="data-disabled",t.readonly="data-readonly",t.required="data-required",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t})({});function BD(t){return x.useMemo(()=>({checked(a){return t.indeterminate?{}:a?{[VD.checked]:""}:{[VD.unchecked]:""}},...kd}),[t.indeterminate])}const GD=x.createContext({disabled:!1});process.env.NODE_ENV!=="production"&&(GD.displayName="FieldItemContext");function K7(){return x.useContext(GD)}function W7(t,a,i,u=!0,f){const[p,y]=x.useState(),g=il(f?`${f}-label`:void 0),S=t??a??p;return rt(()=>{const b=t||a||!u?void 0:eH(i.current,g);p!==b&&y(b)}),S}function eH(t,a){const i=tH(t);if(i)return!i.id&&a&&(i.id=a),i.id||void 0}function tH(t){if(!t)return;const a=t.parentElement;if(a&&a.tagName==="LABEL")return a;const i=t.id;if(i){const f=t.nextElementSibling;if(f&&f.htmlFor===i)return f}const u=t.labels;return u&&u[0]}const YD=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(YD.displayName="CheckboxGroupContext");function nH(t=!0){const a=x.useContext(YD);if(a===void 0&&!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.":va(3));return a}const ER=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(ER.displayName="CheckboxRootContext");function aH(){const t=x.useContext(ER);if(t===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.":va(14));return t}const oH="data-parent",wR=x.forwardRef(function(a,i){const{checked:u,className:f,defaultChecked:p=!1,"aria-labelledby":y,disabled:g=!1,form:S,id:b,indeterminate:E=!1,inputRef:T,name:O,onCheckedChange:_,parent:A=!1,readOnly:D=!1,render:N,required:M=!1,uncheckedValue:q,value:I,nativeButton:Y=!1,style:H,...Z}=a,{clearErrors:V}=Kp(),{disabled:X,name:le,setDirty:K,setFilled:fe,setFocused:ie,setTouched:ee,state:te,validationMode:J,validityData:L,shouldValidateOnChange:B,validation:F}=Vd(),ne=K7(),{labelId:ce,controlId:j,registerControlId:Q,getDescriptionProps:oe}=bs(),de=nH(),ve=de?.parent,_e=ve&&de.allValues,Te=X||ne.disabled||de?.disabled||g,Ue=le??O,Ge=I??Ue,We=il(),Ne=il();let Ze=j;_e?Ze=A?Ne:`${ve.id}-${Ge}`:b&&(Ze=b);let lt={};_e&&(A?lt=de.parent.getParentProps():Ge&&(lt=de.parent.getChildProps(Ge)));const Xe=it(_),{checked:ht=u,indeterminate:$e=E,onCheckedChange:Qe,...dt}=lt,et=de?.value,Ve=de?.setValue,Re=de?.defaultValue,je=x.useRef(null),Ce=ro(()=>Symbol("checkbox-control")),we=x.useRef(!1),{getButtonProps:tt,buttonRef:pt}=qp({disabled:Te,native:Y}),ct=de?.validation??F,[yt,ln]=gS({controlled:Ge&&et&&!A?et.includes(Ge):ht,default:Ge&&Re&&!A?Re.includes(Ge):p,name:"Checkbox",state:"checked"});rt(()=>{Q!==go&&(we.current=!0,Q(Ce.current,Ze))},[Ze,de,Q,A,Ce]),x.useEffect(()=>{const W=Ce.current;return()=>{!we.current||Q===go||(we.current=!1,Q(W,void 0))}},[Q,Ce]),yR(je,{enabled:!de,id:We,value:yt});const Rt=x.useRef(null),Qt=_d(T,Rt,ct.inputRef),xt=W7(y,ce,Rt,!Y,Ze??void 0);rt(()=>{Rt.current&&(Rt.current.indeterminate=$e,yt&&fe(!0))},[yt,$e,fe]),yS(yt,()=>{de&&!A||(V(Ue),fe(yt),K(yt!==L.initialValue),B()?ct.commit(yt):ct.commit(yt,!0))});const Nt=ps({checked:yt,disabled:Te,form:S,name:A?void 0:Ue,id:Y?void 0:Ze??void 0,required:M,ref:Qt,style:Ue?X_:q1,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(W){if(W.nativeEvent.defaultPrevented)return;if(D){W.preventDefault();return}const Se=W.currentTarget.checked,De=sn($p,W.nativeEvent);if(Qe?.(Se,De),Xe(Se,De),!De.isCanceled&&(ln(Se),Ge&&et&&Ve&&!A&&!_e)){const Ie=Se?[...et,Ge]:et.filter(Pe=>Pe!==Ge);Ve(Ie,De)}},onFocus(){je.current?.focus()}},I!==void 0?{value:(de?yt&&I:I)||""}:za,oe,de?ct.getValidationProps:ct.getInputValidationProps),Ot=_e?!!ht:yt,Wt=_e&&$e||E;x.useEffect(()=>{if(!ve||!Ge)return;const W=ve.disabledStatesRef.current;return W.set(Ge,Te),()=>{W.delete(Ge)}},[ve,Te,Ge]);const en=x.useMemo(()=>({...te,checked:Ot,disabled:Te,readOnly:D,required:M,indeterminate:Wt}),[te,Ot,Te,D,M,Wt]),yn=BD(en),k=Hn("span",a,{state:en,ref:[pt,je,i,de?.registerControlRef],props:[{id:Y?Ze??void 0:We,role:"checkbox","aria-checked":$e?"mixed":yt,"aria-readonly":D||void 0,"aria-required":M||void 0,"aria-labelledby":xt,[oH]:A?"":void 0,onFocus(){ie(!0)},onBlur(){const W=Rt.current;W&&(ee(!0),ie(!1),J==="onBlur"&&ct.commit(de?et:W.checked))},onClick(W){D||Te||(W.preventDefault(),Rt.current?.dispatchEvent(new PointerEvent("click",{bubbles:!0,shiftKey:W.shiftKey,ctrlKey:W.ctrlKey,altKey:W.altKey,metaKey:W.metaKey})))}},oe,ct.getValidationProps,Z,dt,tt],stateAttributesMapping:yn});return P.jsxs(ER.Provider,{value:en,children:[k,!yt&&!de&&Ue&&!A&&q!==void 0&&P.jsx("input",{type:"hidden",form:S,name:Ue,value:q}),P.jsx("input",{...Nt,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!=="production"&&(wR.displayName="CheckboxRoot");const TR=x.forwardRef(function(a,i){const{render:u,className:f,style:p,keepMounted:y=!1,...g}=a,S=aH(),b=S.checked||S.indeterminate,{mounted:E,transitionStatus:T,setMounted:O}=Ky(b),_=x.useRef(null),A={...S,transitionStatus:T};ys({open:b,ref:_,onComplete(){b||O(!1)}});const D=BD(S),N=x.useMemo(()=>({...D,...ms,...kd}),[D]),M=y||E,q=Hn("span",a,{ref:[i,_],state:A,stateAttributesMapping:N,props:g});return M?q:null});process.env.NODE_ENV!=="production"&&(TR.displayName="CheckboxIndicator");function rH(t,a){const i=il(t);return rt(()=>(a(i),()=>{a(void 0)}),[i,a]),i}function lH(t={}){const{id:a,fallbackControlId:i,native:u=!1,setLabelId:f,focusControl:p}=t,{controlId:y,setLabelId:g}=bs(),S=it(_=>{g(_),f?.(_)}),b=rH(a,S),E=y??i;function T(_){if(p){p(_,E);return}if(!E)return;const A=Pt(_.currentTarget).getElementById(E);Fn(A)&&iH(A)}function O(_){Na(_.nativeEvent)?.closest("button,input,select,textarea")||(!_.defaultPrevented&&_.detail>1&&_.preventDefault(),!u&&T(_))}return u?{id:b,htmlFor:E??void 0,onMouseDown:O}:{id:b,onClick:O,onPointerDown(_){_.preventDefault()}}}function iH(t){t.focus({focusVisible:!0})}const ID=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(ID.displayName="ToolbarRootContext");function qD(t){return x.useContext(ID)}function uH(t,a){const i=x.useRef(null),u=it(p=>{tl.flushSync(()=>{t.setOpen(!1,sn(Md,p.nativeEvent,p.currentTarget))}),Lj(i.current)?.focus()}),f=it(p=>{const y=t.select("positionerElement");if(y&&Yp(p,y))t.context.beforeContentFocusGuardRef.current?.focus();else{tl.flushSync(()=>{t.setOpen(!1,sn(Md,p.nativeEvent,p.currentTarget))});let g=jj(t.context.triggerFocusTargetRef.current||a.current);for(;g!==null&&wt(y,g);){const S=g;if(g=E2(g),g===S)break}g?.focus()}});return{preFocusGuardRef:i,handlePreFocusGuardFocus:u,handleFocusTargetFocus:f}}function sH(t){const[a,i]=x.useState({current:t,previous:null});return t!==a.current&&i({current:t,previous:a.current}),a.previous}const $D=x.createContext(void 0);process.env.NODE_ENV!=="production"&&($D.displayName="CSPContext");const cH={disableStyleElements:!1};function fH(){return x.useContext($D)??cH}function ov(t,a=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(t,i))}const ZD=x.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});process.env.NODE_ENV!=="production"&&(ZD.displayName="FieldsetRootContext");function dH(t=!1){const a=x.useContext(ZD);if(!a&&!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.":va(86));return a}const XD=function(a){const i=il(),u=a.controlId===void 0?i:a.controlId,[f,p]=x.useState(u),[y,g]=x.useState(a.labelId),[S,b]=x.useState([]),E=ro(()=>new Map),{messageIds:T}=bs(),O=it((D,N)=>{const M=E.current;if(N===void 0){M.delete(D);return}M.set(D,N),p(q=>{if(M.size===0)return;let I;for(const Y of M.values()){if(q!==void 0&&Y===q)return q;I===void 0&&(I=Y)}return I})}),_=x.useCallback(D=>ps({"aria-describedby":T.concat(S).join(" ")||void 0},D),[T,S]),A=x.useMemo(()=>({controlId:f,registerControlId:O,labelId:y,setLabelId:g,messageIds:S,setMessageIds:b,getDescriptionProps:_}),[f,O,y,g,S,b,_]);return P.jsx(bR.Provider,{value:A,children:a.children})};process.env.NODE_ENV!=="production"&&(XD.displayName="LabelableProvider");function SS(t,a){return{...t,state:{...t.state,valid:!a&&t.state.valid}}}const ES=Object.keys(bS);function hH(t){if(!t||t.valid||!t.valueMissing)return!1;let a=!1;for(const i of ES)i!=="valid"&&(i==="valueMissing"&&(a=t[i]),t[i]&&(a=!1));return a}function pH(t){const{formRef:a,clearErrors:i}=Kp(),{setValidityData:u,validate:f,validityData:p,validationDebounceTime:y,invalid:g,markedDirtyRef:S,state:b,name:E,shouldValidateOnChange:T}=t,{controlId:O,getDescriptionProps:_}=bs(),A=al(),D=x.useRef(null),N=it(async(I,Y=!1)=>{const H=D.current;if(!H)return;if(Y){if(b.valid!==!1)return;const ee=H.validity;if(!ee.valueMissing){const J={value:I,state:{...bS,valid:!0},error:"",errors:[],initialValue:p.initialValue};if(H.setCustomValidity(""),O){const L=a.current.fields.get(O);L&&a.current.fields.set(O,{...L,...SS(J,!1)})}u(J);return}const te=ES.reduce((J,L)=>(J[L]=ee[L],J),{});if(!te.valid&&!hH(te))return}function Z(ee){const te=ES.reduce((L,B)=>(L[B]=ee.validity[B],L),{});let J=!1;for(const L of ES)if(L!=="valid"){if(L==="valueMissing"&&te[L])J=!0;else if(te[L])return te}return J&&!S.current&&(te.valid=!0,te.valueMissing=!1),te}A.clear();let V=null,X=[];const le=Z(H);let K;const fe=T();if(H.validationMessage&&!fe)K=H.validationMessage,X=[H.validationMessage];else{const ee=Array.from(a.current.fields.values()).reduce((J,L)=>(L.name&&(J[L.name]=L.getValue()),J),{}),te=f(I,ee);typeof te=="object"&&te!==null&&"then"in te?V=await te:V=te,V!==null?(le.valid=!1,le.customError=!0,Array.isArray(V)?(X=V,H.setCustomValidity(V.join(`
261
+ `))):V&&(X=[V],H.setCustomValidity(V))):fe&&(H.setCustomValidity(""),le.customError=!1,H.validationMessage?(K=H.validationMessage,X=[H.validationMessage]):H.validity.valid&&!le.valid&&(le.valid=!0))}const ie={value:I,state:le,error:K??(Array.isArray(V)?V[0]:V??""),errors:X,initialValue:p.initialValue};if(O){const ee=a.current.fields.get(O);ee&&a.current.fields.set(O,{...ee,...SS(ie,g)})}u(ie)}),M=x.useCallback((I={})=>ps(_,b.valid===!1?{"aria-invalid":!0}:za,I),[_,b.valid]),q=x.useCallback((I={})=>ps({onChange(Y){if(Y.nativeEvent.defaultPrevented)return;if(i(E),!T()){N(Y.currentTarget.value,!0);return}const H=Y.currentTarget;if(H.value===""){N(H.value);return}A.clear(),y?A.start(y,()=>{N(H.value)}):N(H.value)}},M(I)),[M,i,E,A,N,y,T]);return x.useMemo(()=>({getValidationProps:M,getInputValidationProps:q,inputRef:D,commit:N}),[M,q,N])}function mH(t){const{commit:a,invalid:i,markedDirtyRef:u,name:f,setValidityData:p,validityData:y}=t,{formRef:g}=Kp(),S=x.useRef(null),b=x.useRef(null),E=x.useRef(null),T=it(()=>{const N=b.current;if(N)return N.getValue?N.getValue():N.value}),O=it((N=!0)=>{const M=b.current;if(!M)return;let q=M.value;q===void 0&&(q=T()),u.current=!0,N?tl.flushSync(()=>a(q)):a(q)});function _(){const N=b.current;!N||!N.id||g.current.fields.set(N.id,{getValue:T,name:f,controlRef:N.controlRef??E,validityData:SS(y,i),validate:O})}function A(N=b.current?.id){N&&g.current.fields.delete(N)}function D(){const N=b.current;if(!N)return;let M=N.value;M===void 0&&(M=T()),y.initialValue===null&&M!==null&&p(q=>({...q,initialValue:M}))}return rt(()=>{const N=b.current;!N||!N.id||g.current.fields.set(N.id,{getValue:T,name:f,controlRef:N.controlRef??E,validityData:SS(y,i),validate:O})},[g,T,i,f,O,y]),rt(()=>{const N=g.current.fields;return()=>{const M=b.current?.id;M&&N.delete(M)}},[g]),it((N,M)=>{if(!M){S.current===N&&(S.current=null,A(),b.current=null);return}const q=b.current?.id;S.current=N,b.current=M,q&&q!==M.id&&A(q),D(),_()})}const PD=x.forwardRef(function(a,i){const{errors:u,validationMode:f,submitAttemptedRef:p}=Kp(),{render:y,className:g,validate:S,validationDebounceTime:b=0,validationMode:E=f,name:T,disabled:O=!1,invalid:_,dirty:A,touched:D,actionsRef:N,style:M,...q}=a,{disabled:I}=dH(),Y=it(S||(()=>null)),H=I||O,[Z,V]=x.useState(!1),[X,le]=x.useState(!1),[K,fe]=x.useState(!1),[ie,ee]=x.useState(!1),te=A??X,J=D??Z,L=x.useRef(!1),B=it(Ne=>{A===void 0&&(Ne&&(L.current=!0),le(Ne))}),F=it(Ne=>{D===void 0&&V(Ne)}),ne=it(()=>E==="onChange"||E==="onSubmit"&&p.current),ce=!!T&&Object.hasOwn(u,T)&&u[T]!==void 0,j=_===!0||ce,[Q,oe]=x.useState({state:bS,error:"",errors:[],value:null,initialValue:null}),de=!j&&Q.state.valid,ve=x.useMemo(()=>({disabled:H,touched:J,dirty:te,valid:de,filled:K,focused:ie}),[H,J,te,de,K,ie]),_e=pH({setValidityData:oe,validate:Y,validityData:Q,validationDebounceTime:b,invalid:j,markedDirtyRef:L,state:ve,name:T,shouldValidateOnChange:ne}),Te=x.useCallback(()=>{L.current=!0,_e.commit(Q.value)},[_e,Q]),Ue=mH({commit:_e.commit,invalid:j,markedDirtyRef:L,name:T,setValidityData:oe,validityData:Q});x.useImperativeHandle(N,()=>({validate:Te}),[Te]);const Ge=x.useMemo(()=>({invalid:j,name:T,validityData:Q,setValidityData:oe,disabled:H,touched:J,setTouched:F,dirty:te,setDirty:B,filled:K,setFilled:fe,focused:ie,setFocused:ee,validate:Y,validationMode:E,validationDebounceTime:b,shouldValidateOnChange:ne,state:ve,markedDirtyRef:L,registerFieldControl:Ue,validation:_e}),[j,T,Q,H,J,F,te,B,K,fe,ie,ee,Y,E,b,ne,ve,Ue,_e]),We=Hn("div",a,{ref:i,state:ve,props:q,stateAttributesMapping:kd});return P.jsx(gR.Provider,{value:Ge,children:We})});process.env.NODE_ENV!=="production"&&(PD.displayName="FieldRootInner");const Ni=x.forwardRef(function(a,i){return P.jsx(XD,{children:P.jsx(PD,{...a,ref:i})})});process.env.NODE_ENV!=="production"&&(Ni.displayName="FieldRoot");const RR=x.forwardRef(function(a,i){const{render:u,className:f,style:p,id:y,nativeLabel:g=!0,...S}=a,b=Vd(!1),{labelId:E}=bs(),T=x.useRef(null),O=lH({id:E??y,native:g});return process.env.NODE_ENV!=="production"&&x.useEffect(()=>{if(!T.current)return;const A=T.current.tagName==="LABEL";if(g){if(!A){const D=Qy.captureOwnerStack?.()||"";Ip(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${D}`)}}else if(A){const D=Qy.captureOwnerStack?.()||"";Ip(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${D}`)}},[g]),Hn("label",a,{ref:[i,T],state:b.state,props:[O,S],stateAttributesMapping:kd})});process.env.NODE_ENV!=="production"&&(RR.displayName="FieldLabel");const gH={...kd,...ms},rv=x.forwardRef(function(a,i){const{render:u,id:f,className:p,match:y,style:g,...S}=a,b=il(f),{validityData:E,state:T,name:O}=Vd(!1),{setMessageIds:_}=bs(),{errors:A}=Kp(),D=O?A[O]:null,N=typeof y=="string";let M=!1;y===!0?M=!0:N?M=!!E.state[y]:M=!!D||E.state.valid===!1;const{mounted:q,transitionStatus:I,setMounted:Y}=Ky(M);rt(()=>{if(!(!M||!b))return _(J=>J.concat(b)),()=>{_(J=>J.filter(L=>L!==b))}},[M,b,_]);const H=x.useRef(null),[Z,V]=x.useState(null),[X,le]=x.useState(null),K=E.errors.length>1?P.jsx("ul",{children:E.errors.map(J=>P.jsx("li",{children:J},J))}):E.error,fe=N?K:D||K;let ie=E.error;D!=null?ie=Array.isArray(D)?JSON.stringify(D):D:E.errors.length>1&&(ie=JSON.stringify(E.errors)),M&&ie!==X&&(le(ie),V(fe)),ys({open:M,ref:H,onComplete(){M||Y(!1)}});const ee={...T,transitionStatus:I},te=Hn("div",a,{ref:[i,H],state:ee,props:[{id:b,children:M?fe:Z},S],stateAttributesMapping:gH,enabled:q});return q?te:null});process.env.NODE_ENV!=="production"&&(rv.displayName="FieldError");const Ss=x.forwardRef(function(a,i){const{render:u,className:f,id:p,name:y,value:g,disabled:S=!1,onValueChange:b,defaultValue:E,autoFocus:T=!1,style:O,..._}=a,{state:A,name:D,disabled:N,setTouched:M,setDirty:q,validityData:I,setFocused:Y,setFilled:H,validationMode:Z,validation:V}=Vd(),X=N||S,le=D??y,K={...A,disabled:X},{labelId:fe}=bs(),ie=SR({id:p});rt(()=>{const ne=g!=null;V.inputRef.current?.value||ne&&g!==""?H(!0):ne&&g===""&&H(!1)},[V.inputRef,H,g]);const ee=x.useRef(null);rt(()=>{T&&ee.current===Qo(Pt(ee.current))&&Y(!0)},[T,Y]);const[te]=gS({controlled:g,default:E,name:"FieldControl",state:"value"}),J=g!==void 0,L=J?te:void 0,B=it(()=>V.inputRef.current?.value);return yR(V.inputRef,{id:ie,value:L,getValue:B}),Hn("input",a,{ref:[i,ee],state:K,props:[{id:ie,disabled:X,name:le,ref:V.inputRef,"aria-labelledby":fe,autoFocus:T,...J?{value:L}:{defaultValue:E},onChange(ne){const ce=ne.currentTarget.value;b?.(ce,sn($p,ne.nativeEvent)),q(ce!==I.initialValue),H(ce!=="")},onFocus(){Y(!0)},onBlur(ne){M(!0),Y(!1),Z==="onBlur"&&V.commit(ne.currentTarget.value)},onKeyDown(ne){ne.currentTarget.tagName==="INPUT"&&ne.key==="Enter"&&(M(!0),V.commit(ne.currentTarget.value))}},V.getInputValidationProps(),_],stateAttributesMapping:kd})});process.env.NODE_ENV!=="production"&&(Ss.displayName="FieldControl");const lv=x.forwardRef(function(a,i){const{render:u,className:f,validationMode:p="onSubmit",errors:y,onSubmit:g,onFormSubmit:S,actionsRef:b,style:E,...T}=a,O=x.useRef({fields:new Map}),_=x.useRef(!1),A=x.useRef(!1),D=it(Z=>{Z&&(Z.focus(),Z.tagName==="INPUT"&&Z.select())}),[N,M]=x.useState(y);yS(y,()=>{M(y)}),x.useEffect(()=>{if(!_.current)return;_.current=!1;const Z=Array.from(O.current.fields.values()).filter(V=>V.validityData.state.valid===!1);Z.length&&D(Z[0].controlRef.current)},[N,D]);const q=x.useCallback(Z=>{const V=Array.from(O.current.fields.values());if(Z){const X=V.find(le=>le.name===Z);X&&X.validate(!1)}else V.forEach(X=>{X.validate(!1)})},[]);x.useImperativeHandle(b,()=>({validate:q}),[q]);const I=Hn("form",a,{ref:i,props:[{noValidate:!0,onSubmit(Z){A.current=!0;let V=Array.from(O.current.fields.values());V.forEach(le=>{le.validate()}),V=Array.from(O.current.fields.values());const X=V.filter(le=>!le.validityData.state.valid);if(X.length)Z.preventDefault(),D(X[0].controlRef.current);else if(_.current=!0,g?.(Z),S){Z.preventDefault();const le=V.reduce((K,fe)=>(fe.name&&(K[fe.name]=fe.getValue()),K),{});S(le,D9($p,Z.nativeEvent))}}},T]}),Y=it(Z=>{if(Z&&N&&za.hasOwnProperty.call(N,Z)){const V={...N};delete V[Z],M(V)}}),H=x.useMemo(()=>({formRef:O,validationMode:p,errors:N??za,clearErrors:Y,submitAttemptedRef:A}),[O,p,N,Y]);return P.jsx(vR.Provider,{value:H,children:I})});process.env.NODE_ENV!=="production"&&(lv.displayName="Form");const OR=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(OR.displayName="PopoverRootContext");function Es(t){const a=x.useContext(OR);if(a===void 0&&!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.":va(47));return a}function yH(){return{...qA(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}const vH={...$A,disabled:Ke(t=>t.disabled),instantType:Ke(t=>t.instantType),openMethod:Ke(t=>t.openMethod),openChangeReason:Ke(t=>t.openChangeReason),modal:Ke(t=>t.modal),focusManagerModal:Ke(t=>t.focusManagerModal),stickIfOpen:Ke(t=>t.stickIfOpen),titleElementId:Ke(t=>t.titleElementId),descriptionElementId:Ke(t=>t.descriptionElementId),openOnHover:Ke(t=>t.openOnHover),closeDelay:Ke(t=>t.closeDelay),hasViewport:Ke(t=>t.hasViewport)};class CR extends D1{constructor(a){const i={...yH(),...a};i.open&&a?.mounted===void 0&&(i.mounted=!0),super(i,{popupRef:x.createRef(),backdropRef:x.createRef(),internalBackdropRef:x.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:x.createRef(),beforeContentFocusGuardRef:x.createRef(),stickIfOpenTimeout:new nl,triggerElements:new nS},vH)}setOpen=(a,i)=>{const u=i.reason===cr,f=i.reason===Zp&&i.event.detail===0,p=!a&&(i.reason===dA||i.reason==null);if(i.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(a,i),i.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(a,i);const y=()=>{const g={open:a,openChangeReason:i.reason},S=i.trigger?.id??null;(S||a)&&(g.activeTriggerId=S,g.activeTriggerElement=i.trigger??null),this.update(g)};u?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(u9,()=>{this.set("stickIfOpen",!1)}),tl.flushSync(y)):y(),f||p?this.set("instantType",f?"click":"dismiss"):i.reason===Md?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(a,i){const u=ro(()=>new CR(i)).current,f=a??u;return Vy(u.disposeEffect),f}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}function FD({props:t}){const{children:a,open:i,defaultOpen:u=!1,onOpenChange:f,onOpenChangeComplete:p,modal:y=!1,handle:g,triggerId:S,defaultTriggerId:b=null}=t,E=CR.useStore(g?.store,{modal:y,open:u,openProp:i,activeTriggerId:b,triggerIdProp:S});nR(()=>{i===void 0&&E.state.open===!1&&u===!0&&E.update({open:!0,activeTriggerId:b})}),E.useControlledProp("openProp",i),E.useControlledProp("triggerIdProp",S);const T=E.useState("open"),O=E.useState("payload");E.useContextCallback("onOpenChange",f),E.useContextCallback("onOpenChangeComplete",p);const{openMethod:_,triggerProps:A}=aR(T);YA(E);const{forceUnmount:D}=IA(T,E,()=>{E.update({stickIfOpen:!0,openChangeReason:null})});x.useEffect(()=>{T||E.context.stickIfOpenTimeout.clear()},[E,T]);const N=x.useCallback(()=>{E.setOpen(!1,sn(hA))},[E]);x.useImperativeHandle(t.actionsRef,()=>({unmount:D,close:N}),[D,N]);const M=XA({popupStore:E,onOpenChange:E.setOpen}),q=q2(M,{outsidePressEvent:{mouse:y==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),I=JA(M),{getReferenceProps:Y,getFloatingProps:H,getTriggerProps:Z}=Wy([q,I]),V=x.useMemo(()=>Y(A),[Y,A]),X=x.useMemo(()=>Z(A),[Z,A]),le=x.useMemo(()=>H(),[H]);E.useSyncedValues({modal:y,openMethod:_,activeTriggerProps:V,inactiveTriggerProps:X,popupProps:le,floatingRootContext:M,nested:Bc()!=null});const K=x.useMemo(()=>({store:E}),[E]);return P.jsx(OR.Provider,{value:K,children:typeof a=="function"?a({payload:O}):a})}function bH(t){return Es(!0)?P.jsx(FD,{props:t}):P.jsx(k9,{children:P.jsx(FD,{props:t})})}const SH=300,QD=x.forwardRef(function(a,i){const{render:u,className:f,disabled:p=!1,nativeButton:y=!0,handle:g,payload:S,openOnHover:b=!1,delay:E=SH,closeDelay:T=0,id:O,style:_,...A}=a,D=Es(!0),N=g?.store??D?.store;if(!N)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.":va(74));const M=il(O),q=N.useState("isTriggerActive",M),I=N.useState("floatingRootContext"),Y=N.useState("isOpenedByTrigger",M),H=x.useRef(null),{registerTrigger:Z,isMountedByThisTrigger:V}=GA(M,H,N,{payload:S,disabled:p,openOnHover:b,closeDelay:T}),X=N.useState("openChangeReason"),le=N.useState("stickIfOpen"),K=N.useState("openMethod"),fe=N.useState("focusManagerModal"),ie=HL(I,{enabled:I!=null&&b&&(K!=="touch"||X!==Zp),mouseOnly:!0,move:!1,handleClose:ZL(),restMs:E,delay:{close:T},triggerElementRef:H,isActiveTrigger:q,isClosing:()=>N.select("transitionStatus")==="ending"}),ee=I2(I,{enabled:I!=null,stickIfOpen:le}),te=Wy([ee]),J=N.useState("triggerProps",V),L={disabled:p,open:Y},{getButtonProps:B,buttonRef:F}=qp({disabled:p,native:y}),ne=x.useMemo(()=>({open(de){return de&&X===Zp?iD.open(de):lD.open(de)}}),[X]),ce=Hn("button",a,{state:L,ref:[F,i,Z,H],props:[te.getReferenceProps(),ie,J,{[x2]:"",id:M},A,B],stateAttributesMapping:ne}),{preFocusGuardRef:j,handlePreFocusGuardFocus:Q,handleFocusTargetFocus:oe}=uH(N,H);return q&&!fe?P.jsxs(x.Fragment,{children:[P.jsx(Eu,{ref:j,onFocus:Q}),P.jsx(x.Fragment,{children:ce},M),P.jsx(Eu,{ref:N.context.triggerFocusTargetRef,onFocus:oe})]}):P.jsx(x.Fragment,{children:ce},M)});process.env.NODE_ENV!=="production"&&(QD.displayName="PopoverTrigger");const xR=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(xR.displayName="PopoverPortalContext");function EH(){const t=x.useContext(xR);if(t===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Portal> is missing.":va(45));return t}const JD=x.forwardRef(function(a,i){const{keepMounted:u=!1,...f}=a,{store:p}=Es();return p.useState("mounted")||u?P.jsx(xR.Provider,{value:u,children:P.jsx(K1,{ref:i,...f})}):null});process.env.NODE_ENV!=="production"&&(JD.displayName="PopoverPortal");const _R=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(_R.displayName="PopoverPositionerContext");function KD(){const t=x.useContext(_R);if(!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.":va(46));return t}const WD=x.forwardRef(function(a,i){const{render:u,className:f,anchor:p,positionMethod:y="absolute",side:g="bottom",align:S="center",sideOffset:b=0,alignOffset:E=0,collisionBoundary:T="clipping-ancestors",collisionPadding:O=5,arrowPadding:_=5,sticky:A=!1,disableAnchorTracking:D=!1,collisionAvoidance:N=m9,style:M,...q}=a,{store:I}=Es(),Y=EH(),H=L9(),Z=I.useState("floatingRootContext"),V=I.useState("mounted"),X=I.useState("open"),le=I.useState("openChangeReason"),K=I.useState("activeTriggerElement"),fe=I.useState("modal"),ie=I.useState("openMethod"),ee=I.useState("positionerElement"),te=I.useState("instantType"),J=I.useState("transitionStatus"),L=I.useState("hasViewport"),B=x.useRef(null),F=aA(ee,!1,!1),ne=oD({anchor:p,floatingRootContext:Z,positionMethod:y,mounted:V,side:g,sideOffset:b,align:S,alignOffset:E,arrowPadding:_,collisionBoundary:T,collisionPadding:O,sticky:A,disableAnchorTracking:D,keepMounted:Y,nodeId:H,collisionAvoidance:N,adaptiveOrigin:L?JL:void 0}),ce=Z.useState("domReferenceElement");rt(()=>{const de=ce,ve=B.current;if(de&&(B.current=de),ve&&de&&de!==ve){I.set("instantType",void 0);const _e=new AbortController;return F(()=>{I.set("instantType","trigger-change")},_e.signal),()=>{_e.abort()}}},[ce,F,I]);const j={open:X,side:ne.side,align:ne.align,anchorHidden:ne.anchorHidden,instant:te};kD(X&&fe===!0&&le!==cr,ie==="touch",ee,K);const Q=x.useCallback(de=>{I.set("positionerElement",de)},[I]),oe=uD(a,j,{styles:ne.positionerStyles,transitionStatus:J,props:q,refs:[i,Q],hidden:!V,inert:!X});return P.jsxs(_R.Provider,{value:ne,children:[V&&fe===!0&&le!==cr&&P.jsx(vS,{ref:I.context.internalBackdropRef,inert:X1(!X),cutout:K}),P.jsx(H9,{id:H,children:oe})]})});process.env.NODE_ENV!=="production"&&(WD.displayName="PopoverPositioner");const eM=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(eM.displayName="ClosePartContext");function wH(){const[t,a]=x.useState(0),i=it(()=>(a(f=>f+1),()=>{a(f=>Math.max(0,f-1))}));return{context:x.useMemo(()=>({register:i}),[i]),hasClosePart:t>0}}function TH(t){const{value:a,children:i}=t;return P.jsx(eM.Provider,{value:a,children:i})}const RH={...jd,...ms},tM=x.forwardRef(function(a,i){const{className:u,render:f,initialFocus:p,finalFocus:y,style:g,...S}=a,{store:b}=Es(),E=KD(),T=qD()!=null,{context:O,hasClosePart:_}=wH(),A=b.useState("open"),D=b.useState("openMethod"),N=b.useState("instantType"),M=b.useState("transitionStatus"),q=b.useState("popupProps"),I=b.useState("titleElementId"),Y=b.useState("descriptionElementId"),H=b.useState("modal"),Z=b.useState("mounted"),V=b.useState("openChangeReason"),X=b.useState("activeTriggerElement"),le=b.useState("floatingRootContext");ys({open:A,ref:b.context.popupRef,onComplete(){A&&b.context.onOpenChangeComplete?.(!0)}});const K=b.useState("disabled"),fe=b.useState("openOnHover"),ie=b.useState("closeDelay");jL(le,{enabled:fe&&!K,closeDelay:ie});function ee(ne){return ne==="touch"?b.context.popupRef.current:!0}const te=p===void 0?ee:p,J={open:A,side:E.side,align:E.align,instant:N,transitionStatus:M},L=H!==!1&&_;b.useSyncedValue("focusManagerModal",L);const B=x.useCallback(ne=>{b.set("popupElement",ne)},[b]),F=Hn("div",a,{state:J,ref:[i,b.context.popupRef,B],props:[q,{"aria-labelledby":I,"aria-describedby":Y,onKeyDown(ne){T&&tR.has(ne.key)&&ne.stopPropagation()}},K2(M),S],stateAttributesMapping:RH});return P.jsx(Y2,{context:le,openInteractionType:D,modal:L,disabled:!Z||V===cr,initialFocus:te,returnFocus:y,restoreFocus:"popup",previousFocusableElement:Fn(X)?X:void 0,nextFocusableElement:b.context.triggerFocusTargetRef,beforeContentFocusGuardRef:b.context.beforeContentFocusGuardRef,children:P.jsx(TH,{value:O,children:F})})});process.env.NODE_ENV!=="production"&&(tM.displayName="PopoverPopup");const nM=x.forwardRef(function(a,i){const{className:u,render:f,style:p,...y}=a,{store:g}=Es(),S=g.useState("open"),{arrowRef:b,side:E,align:T,arrowUncentered:O,arrowStyles:_}=KD();return Hn("div",a,{state:{open:S,side:E,align:T,uncentered:O},ref:[i,b],props:[{style:_,"aria-hidden":!0},y],stateAttributesMapping:jd})});process.env.NODE_ENV!=="production"&&(nM.displayName="PopoverArrow");const OH={...jd,...ms},aM=x.forwardRef(function(a,i){const{className:u,render:f,style:p,...y}=a,{store:g}=Es(),S=g.useState("open"),b=g.useState("mounted"),E=g.useState("transitionStatus"),T=g.useState("openChangeReason");return Hn("div",a,{state:{open:S,transitionStatus:E},ref:[g.context.backdropRef,i],props:[{role:"presentation",hidden:!b,style:{pointerEvents:T===cr?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},y],stateAttributesMapping:OH})});process.env.NODE_ENV!=="production"&&(aM.displayName="PopoverBackdrop");const oM=x.forwardRef(function(a,i){const{render:u,className:f,style:p,...y}=a,{store:g}=Es(),S=il(y.id);return rt(()=>(g.set("titleElementId",S),()=>{g.set("titleElementId",void 0)}),[g,S]),Hn("h2",a,{ref:i,props:[{id:S},y]})});process.env.NODE_ENV!=="production"&&(oM.displayName="PopoverTitle");const rM=x.forwardRef(function(a,i){const{render:u,className:f,style:p,...y}=a,{store:g}=Es(),S=il(y.id);return rt(()=>(g.set("descriptionElementId",S),()=>{g.set("descriptionElementId",void 0)}),[g,S]),Hn("p",a,{ref:i,props:[{id:S},y]})});process.env.NODE_ENV!=="production"&&(rM.displayName="PopoverDescription");const wS="base-ui-disable-scrollbar",AR={className:wS,getElement(t){return P.jsx("style",{nonce:t,href:wS,precedence:"base-ui:low",children:`.${wS}{scrollbar-width:none}.${wS}::-webkit-scrollbar{display:none}`})}};process.env.NODE_ENV!=="production"&&(AR.getElement.displayName="styleDisableScrollbar.getElement");const ws=1;function lM(t,a){return Math.max(0,t-a)}function CH(t,a){if(a<=0)return 0;const i=ov(t,0,a),u=i,f=a-i,p=u<=ws,y=f<=ws;return p&&y?u<=f?0:a:p?0:y?a:i}const DR=x.createContext(null);process.env.NODE_ENV!=="production"&&(DR.displayName="SelectRootContext");const MR=x.createContext(null);process.env.NODE_ENV!=="production"&&(MR.displayName="SelectFloatingContext");function Wp(){const t=x.useContext(DR);if(t===null)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.":va(60));return t}function iM(){const t=x.useContext(MR);if(t===null)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.":va(61));return t}const rn={id:Ke(t=>t.id),labelId:Ke(t=>t.labelId),modal:Ke(t=>t.modal),multiple:Ke(t=>t.multiple),items:Ke(t=>t.items),itemToStringLabel:Ke(t=>t.itemToStringLabel),itemToStringValue:Ke(t=>t.itemToStringValue),isItemEqualToValue:Ke(t=>t.isItemEqualToValue),value:Ke(t=>t.value),hasSelectedValue:Ke(t=>{const{value:a,multiple:i,itemToStringValue:u}=t;return a==null?!1:i&&Array.isArray(a)?a.length>0:Jp(a,u)!==""}),hasNullItemLabel:Ke((t,a)=>a?Z7(t.items):!1),open:Ke(t=>t.open),mounted:Ke(t=>t.mounted),forceMount:Ke(t=>t.forceMount),transitionStatus:Ke(t=>t.transitionStatus),openMethod:Ke(t=>t.openMethod),activeIndex:Ke(t=>t.activeIndex),selectedIndex:Ke(t=>t.selectedIndex),isActive:Ke((t,a)=>t.activeIndex===a),isSelected:Ke((t,a,i)=>{const u=t.isItemEqualToValue,f=t.value;return t.multiple?Array.isArray(f)&&f.some(p=>Qp(i,p,u)):t.selectedIndex===a&&t.selectedIndex!==null?!0:Qp(i,f,u)}),isSelectedByFocus:Ke((t,a)=>t.selectedIndex===a),popupProps:Ke(t=>t.popupProps),triggerProps:Ke(t=>t.triggerProps),triggerElement:Ke(t=>t.triggerElement),positionerElement:Ke(t=>t.positionerElement),listElement:Ke(t=>t.listElement),scrollUpArrowVisible:Ke(t=>t.scrollUpArrowVisible),scrollDownArrowVisible:Ke(t=>t.scrollDownArrowVisible),hasScrollArrows:Ke(t=>t.hasScrollArrows)};function xH(t){const{id:a,value:i,defaultValue:u=null,onValueChange:f,open:p,defaultOpen:y=!1,onOpenChange:g,name:S,form:b,autoComplete:E,disabled:T=!1,readOnly:O=!1,required:_=!1,modal:A=!0,actionsRef:D,inputRef:N,onOpenChangeComplete:M,items:q,multiple:I=!1,itemToStringLabel:Y,itemToStringValue:H,isItemEqualToValue:Z=Y7,highlightItemOnHover:V=!0,children:X}=t,{clearErrors:le}=Kp(),{setDirty:K,setTouched:fe,setFocused:ie,shouldValidateOnChange:ee,validityData:te,setFilled:J,name:L,disabled:B,validation:F,validationMode:ne}=Vd(),ce=SR({id:a}),j=B||T,Q=L??S,[oe,de]=gS({controlled:i,default:I?u??p_:u,name:"Select",state:"value"}),[ve,_e]=gS({controlled:p,default:y,name:"Select",state:"open"}),Te=x.useRef([]),Ue=x.useRef([]),Ge=x.useRef(null),We=x.useRef(null),Ne=x.useRef(0),Ze=x.useRef(null),lt=x.useRef([]),Xe=x.useRef(!1),ht=x.useRef(!1),$e=x.useRef(null),Qe=x.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),dt=x.useRef(!1),{mounted:et,setMounted:Ve,transitionStatus:Re}=Ky(ve),{openMethod:je,triggerProps:Ce}=aR(ve),we=ro(()=>new h_({id:ce,labelId:void 0,modal:A,multiple:I,itemToStringLabel:Y,itemToStringValue:H,isItemEqualToValue:Z,value:oe,open:ve,mounted:et,transitionStatus:Re,items:q,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,tt=on(we,rn.activeIndex),pt=on(we,rn.selectedIndex),ct=on(we,rn.triggerElement),yt=on(we,rn.positionerElement),ln=sH(je),Rt=je??ln,Qt=x.useMemo(()=>I&&Array.isArray(oe)&&oe.length===0?"":Jp(oe,H),[I,oe,H]),xt=x.useMemo(()=>I&&Array.isArray(oe)?oe.map(Jt=>Jp(Jt,H)):Jp(oe,H),[I,oe,H]),Nt=Ya(we.state.triggerElement),Ot=it(()=>xt);yR(Nt,{id:ce,value:oe,getValue:Ot});const Wt=x.useRef(oe);rt(()=>{oe!==Wt.current&&we.set("forceMount",!0)},[we,oe]),rt(()=>{J(I?Array.isArray(oe)&&oe.length>0:oe!=null)},[I,oe,J]),rt(function(){if(ve)return;const Dn=lt.current;if(I){const Jo=Array.isArray(oe)?oe:[];if(Jo.length===0){we.set("selectedIndex",null);return}const ra=Jo[Jo.length-1],dn=nv(Dn,ra,Z);we.set("selectedIndex",dn===-1?null:dn);return}const yo=nv(Dn,oe,Z);we.set("selectedIndex",yo===-1?null:yo)},[I,ve,oe,lt,Z,we]),yS(oe,()=>{le(Q),K(oe!==te.initialValue),ee()?F.commit(oe):F.commit(oe,!0)});const en=it((Jt,Dn)=>{if(g?.(Jt,Dn),!Dn.isCanceled&&(_e(Jt),!Jt&&(Dn.reason===Md||Dn.reason===D2)&&(fe(!0),ie(!1),ne==="onBlur"&&F.commit(oe)),!Jt&&we.state.activeIndex!==null)){const yo=Te.current[we.state.activeIndex];queueMicrotask(()=>{yo?.setAttribute("tabindex","-1")})}}),yn=it(()=>{Ve(!1),we.update({activeIndex:null,openMethod:null}),M?.(!1)});ys({enabled:!D,open:ve,ref:Ge,onComplete(){ve||yn()}}),x.useImperativeHandle(D,()=>({unmount:yn}),[yn]);const k=it((Jt,Dn)=>{f?.(Jt,Dn),!Dn.isCanceled&&de(Jt)}),W=it(()=>{const Jt=we.state.listElement||Ge.current;if(!Jt)return;const Dn=lM(Jt.scrollHeight,Jt.clientHeight),yo=CH(Jt.scrollTop,Dn),Jo=yo>0,ra=yo<Dn;we.state.scrollUpArrowVisible!==Jo&&we.set("scrollUpArrowVisible",Jo),we.state.scrollDownArrowVisible!==ra&&we.set("scrollDownArrowVisible",ra)}),Se=ZA({open:ve,onOpenChange:en,elements:{reference:ct,floating:yt}}),De=I2(Se,{enabled:!O&&!j,event:"mousedown"}),Ie=q2(Se,{bubbles:!1}),Pe=GL(Se,{enabled:!O&&!j,listRef:Te,activeIndex:tt,selectedIndex:pt,disabledIndices:p_,onNavigate(Jt){Jt===null&&!ve||we.set("activeIndex",Jt)},focusItemOnHover:V}),Fe=IL(Se,{enabled:!O&&!j&&(ve||!I),listRef:Ue,activeIndex:tt,selectedIndex:pt,onMatch(Jt){ve?we.set("activeIndex",Jt):k(lt.current[Jt],sn("none"))},onTypingChange(Jt){Xe.current=Jt}}),{getReferenceProps:ut,getFloatingProps:ft,getItemProps:tn}=Wy([De,Ie,Pe,Fe]),Tn=x.useMemo(()=>ps(ut(),Ce,ce?{id:ce}:za),[ut,Ce,ce]);nR(()=>{we.update({popupProps:ft(),triggerProps:Tn})}),rt(()=>{we.update({id:ce,modal:A,multiple:I,value:oe,open:ve,mounted:et,transitionStatus:Re,popupProps:ft(),triggerProps:Tn,items:q,itemToStringLabel:Y,itemToStringValue:H,isItemEqualToValue:Z,openMethod:Rt})},[we,ce,A,I,oe,ve,et,Re,ft,Tn,q,Y,H,Z,Rt]);const Zn=x.useMemo(()=>({store:we,name:Q,required:_,disabled:j,readOnly:O,multiple:I,highlightItemOnHover:V,setValue:k,setOpen:en,listRef:Te,popupRef:Ge,scrollHandlerRef:We,handleScrollArrowVisibility:W,scrollArrowsMountedCountRef:Ne,getItemProps:tn,events:Se.context.events,valueRef:Ze,valuesRef:lt,labelsRef:Ue,typingRef:Xe,selectionRef:Qe,selectedItemTextRef:$e,validation:F,onOpenChangeComplete:M,keyboardActiveRef:ht,alignItemWithTriggerActiveRef:dt,initialValueRef:Wt}),[we,Q,_,j,O,I,V,k,en,tn,Se.context.events,F,M,W]),Rn=_d(N,F.inputRef),Ea=I&&Array.isArray(oe)&&oe.length>0,da=I?void 0:Q,Ua=x.useMemo(()=>!I||!Array.isArray(oe)||!Q?null:oe.map(Jt=>{const Dn=Jp(Jt,H);return P.jsx("input",{type:"hidden",form:b,name:Q,value:Dn},Dn)}),[I,oe,b,Q,H]);return P.jsx(DR.Provider,{value:Zn,children:P.jsxs(MR.Provider,{value:Se,children:[X,P.jsx("input",{...F.getInputValidationProps({onFocus(){we.state.triggerElement?.focus({focusVisible:!0})},onChange(Jt){if(Jt.nativeEvent.defaultPrevented)return;const Dn=Jt.currentTarget.value,yo=sn($p,Jt.nativeEvent);function Jo(){if(I)return;const ra=lt.current.find(dn=>Jp(dn,H).toLowerCase()===Dn.toLowerCase()||X7(dn,Y).toLowerCase()===Dn.toLowerCase());ra!=null&&(K(ra!==te.initialValue),k(ra,yo),ee()&&F.commit(ra))}we.set("forceMount",!0),queueMicrotask(Jo)}}),id:ce&&da==null?`${ce}-hidden-input`:void 0,form:b,name:da,autoComplete:E,value:Qt,disabled:j,required:_&&!Ea,readOnly:O,ref:Rn,style:Q?X_:q1,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ua]})})}const TS=2,_H=400,uM=200,AH={...iD,...kd,value:()=>null},sM=x.forwardRef(function(a,i){const{render:u,className:f,id:p,disabled:y=!1,nativeButton:g=!0,style:S,...b}=a,{setTouched:E,setFocused:T,validationMode:O,state:_,disabled:A}=Vd(),{labelId:D}=bs(),{store:N,setOpen:M,selectionRef:q,validation:I,readOnly:Y,required:H,alignItemWithTriggerActiveRef:Z,disabled:V,keyboardActiveRef:X}=Wp(),le=A||V||y,K=on(N,rn.open),fe=on(N,rn.value),ie=on(N,rn.triggerProps),ee=on(N,rn.positionerElement),te=on(N,rn.listElement),J=on(N,rn.id),L=on(N,rn.labelId),B=on(N,rn.hasSelectedValue),F=!B&&K,ne=on(N,rn.hasNullItemLabel,F),ce=p??J,j=Q7(D,L);SR({id:ce});const Q=Ya(ee),oe=x.useRef(null),{getButtonProps:de,buttonRef:ve}=qp({disabled:le,native:g}),_e=it(ht=>{N.set("triggerElement",ht)}),Te=_d(i,oe,ve,_e),Ue=al(),Ge=al(),We=al(),Ne=al();x.useEffect(()=>{if(K)return!(B||ne)?We.start(_H,()=>{q.current.allowUnselectedMouseUp=!0,q.current.allowSelectedMouseUp=!0}):Ne.start(uM,()=>{q.current.allowUnselectedMouseUp=!0,We.start(uM,()=>{q.current.allowSelectedMouseUp=!0})}),()=>{We.clear(),Ne.clear()};q.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},Ge.clear()},[K,B,ne,q,Ge,We,Ne]);const Ze=x.useMemo(()=>te?.id??Iy(ee)?.id,[te,ee]),lt=ps(ie,{id:ce,role:"combobox","aria-expanded":K?"true":"false","aria-haspopup":"listbox","aria-controls":K?Ze:void 0,"aria-labelledby":j,"aria-readonly":Y||void 0,"aria-required":H||void 0,tabIndex:le?-1:0,ref:Te,onFocus(ht){T(!0),K&&Z.current&&M(!1,sn($p,ht.nativeEvent)),Ue.start(0,()=>{N.set("forceMount",!0)})},onBlur(ht){wt(ee,ht.relatedTarget)||(E(!0),T(!1),O==="onBlur"&&I.commit(fe))},onPointerMove(){X.current=!1},onKeyDown(){X.current=!0},onMouseDown(ht){if(K)return;const $e=Pt(ht.currentTarget);function Qe(dt){if(!oe.current)return;const et=dt.target;if(wt(oe.current,et)||wt(Q.current,et)||et===oe.current)return;const Ve=F7(oe.current);dt.clientX>=Ve.left-TS&&dt.clientX<=Ve.right+TS&&dt.clientY>=Ve.top-TS&&dt.clientY<=Ve.bottom+TS||M(!1,sn(_9,dt))}Ge.start(0,()=>{$e.addEventListener("mouseup",Qe,{once:!0})})}},I.getValidationProps,b,de);lt.role="combobox";const Xe={..._,open:K,disabled:le,value:fe,readOnly:Y,placeholder:!B};return Hn("button",a,{ref:[i,oe],state:Xe,stateAttributesMapping:AH,props:lt})});process.env.NODE_ENV!=="production"&&(sM.displayName="SelectTrigger");const cM=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(cM.displayName="SelectPortalContext");const fM=x.forwardRef(function(a,i){const{store:u}=Wp(),f=on(u,rn.mounted),p=on(u,rn.forceMount);return f||p?P.jsx(cM.Provider,{value:!0,children:P.jsx(K1,{ref:i,...a})}):null});process.env.NODE_ENV!=="production"&&(fM.displayName="SelectPortal");const zR=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(zR.displayName="SelectPositionerContext");function DH(){const t=x.useContext(zR);if(!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.":va(59));return t}function RS(t,a){t&&Object.assign(t.style,a)}const MH={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},zH={position:"fixed"},dM=x.forwardRef(function(a,i){const{anchor:u,positionMethod:f="absolute",className:p,render:y,side:g="bottom",align:S="center",sideOffset:b=0,alignOffset:E=0,collisionBoundary:T="clipping-ancestors",collisionPadding:O,arrowPadding:_=5,sticky:A=!1,disableAnchorTracking:D,alignItemWithTrigger:N=!0,collisionAvoidance:M=p9,style:q,...I}=a,{store:Y,listRef:H,labelsRef:Z,alignItemWithTriggerActiveRef:V,selectedItemTextRef:X,valuesRef:le,initialValueRef:K,popupRef:fe,setValue:ie}=Wp(),ee=iM(),te=on(Y,rn.open),J=on(Y,rn.mounted),L=on(Y,rn.modal),B=on(Y,rn.value),F=on(Y,rn.openMethod),ne=on(Y,rn.positionerElement),ce=on(Y,rn.triggerElement),j=on(Y,rn.isItemEqualToValue),Q=on(Y,rn.transitionStatus),oe=x.useRef(null),de=x.useRef(null),[ve,_e]=x.useState(N),Te=J&&ve&&F!=="touch";!J&&ve!==N&&_e(N),rt(()=>{J||(rn.scrollUpArrowVisible(Y.state)&&Y.set("scrollUpArrowVisible",!1),rn.scrollDownArrowVisible(Y.state)&&Y.set("scrollDownArrowVisible",!1))},[Y,J]),x.useImperativeHandle(V,()=>Te),kD((Te||L)&&te,F==="touch",ne,ce);const Ue=oD({anchor:u,floatingRootContext:ee,positionMethod:f,mounted:J,side:g,sideOffset:b,align:S,alignOffset:E,arrowPadding:_,collisionBoundary:T,collisionPadding:O,sticky:A,disableAnchorTracking:D??Te,collisionAvoidance:M,keepMounted:!0}),Ge=Te?"none":Ue.side,We=Te?zH:Ue.positionerStyles,Ne={open:te,side:Ge,align:Ue.align,anchorHidden:Ue.anchorHidden},Ze=it(Qe=>{Y.set("positionerElement",Qe)}),lt=uD(a,Ne,{styles:We,transitionStatus:Q,props:I,refs:[i,Ze],hidden:!J,inert:!te}),Xe=x.useRef(0),ht=it(Qe=>{if(Qe.size===0&&Xe.current===0||le.current.length===0)return;const dt=Xe.current;if(Xe.current=Qe.size,Qe.size===dt)return;const et=sn($p);if(dt!==0&&!Y.state.multiple&&B!==null&&nv(le.current,B,j)===-1){const Re=K.current,Ce=Re!=null&&nv(le.current,Re,j)!==-1?Re:null;ie(Ce,et),Ce===null&&(Y.set("selectedIndex",null),X.current=null)}if(dt!==0&&Y.state.multiple&&Array.isArray(B)){const Ve=je=>nv(le.current,je,j)!==-1,Re=B.filter(je=>Ve(je));(Re.length!==B.length||Re.some(je=>!I7(B,je,j)))&&(ie(Re,et),Re.length===0&&(Y.set("selectedIndex",null),X.current=null))}if(te&&Te){Y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Ve={height:""};RS(ne,Ve),RS(fe.current,Ve)}}),$e=x.useMemo(()=>({...Ue,side:Ge,alignItemWithTriggerActive:Te,setControlledAlignItemWithTrigger:_e,scrollUpArrowRef:oe,scrollDownArrowRef:de}),[Ue,Ge,Te,_e]);return P.jsx(b7,{elementsRef:H,labelsRef:Z,onMapChange:ht,children:P.jsxs(zR.Provider,{value:$e,children:[J&&L&&P.jsx(vS,{inert:X1(!te),cutout:ce}),lt]})})});process.env.NODE_ENV!=="production"&&(dM.displayName="SelectPositioner");const NH={...jd,...ms},hM=x.forwardRef(function(a,i){const{render:u,className:f,style:p,finalFocus:y,...g}=a,{store:S,popupRef:b,onOpenChangeComplete:E,setOpen:T,valueRef:O,selectedItemTextRef:_,keyboardActiveRef:A,multiple:D,handleScrollArrowVisibility:N,scrollHandlerRef:M,listRef:q,highlightItemOnHover:I}=Wp(),{side:Y,align:H,alignItemWithTriggerActive:Z,isPositioned:V,setControlledAlignItemWithTrigger:X,scrollDownArrowRef:le,scrollUpArrowRef:K}=DH(),fe=qD()!=null,ie=iM(),ee=tD(),{nonce:te,disableStyleElements:J}=fH(),L=on(S,rn.id),B=on(S,rn.open),F=on(S,rn.mounted),ne=on(S,rn.popupProps),ce=on(S,rn.transitionStatus),j=on(S,rn.triggerElement),Q=on(S,rn.positionerElement),oe=on(S,rn.listElement),de=x.useRef(!1),ve=x.useRef(!1),_e=x.useRef({}),Te=H1(),Ue=it(Ze=>{if(!Q||!b.current||!ve.current)return;if(de.current||!Z){N();return}const lt=Q.style.top==="0px",Xe=Q.style.bottom==="0px";if(!lt&&!Xe){N();return}const ht=mM(Q),$e=iv(Q.getBoundingClientRect().height,"y",ht),Qe=Pt(Q),dt=getComputedStyle(Q),et=parseFloat(dt.marginTop),Ve=parseFloat(dt.marginBottom),Re=pM(getComputedStyle(b.current)),je=Math.min(Qe.documentElement.clientHeight-et-Ve,Re),Ce=Ze.scrollTop,we=OS(Ze);let tt=0,pt=null,ct=!1,yt=!1;const ln=Nt=>{Q.style.height=`${Nt}px`},Rt=(Nt,Ot)=>{const Wt=ov(Nt,0,je-$e);Wt>0&&ln($e+Wt),Ze.scrollTop=Ot,je-($e+Wt)<=ws&&(de.current=!0),N()},Qt=lt?we-Ce:Ce,xt=Math.min($e+Qt,je);if(tt=xt,Qt<=ws){Rt(Qt,lt?we:0);return}if(je-xt>ws)lt?yt=!0:pt=0;else if(ct=!0,Xe&&Ce<we){const Nt=$e+Qt-je;pt=Ce-(Qt-Nt)}if(tt=Math.ceil(tt),tt!==0&&ln(tt),yt||pt!=null){const Nt=OS(Ze),Ot=yt?Nt:ov(pt,0,Nt);Math.abs(Ze.scrollTop-Ot)>ws&&(Ze.scrollTop=Ot)}(ct||tt>=je-ws)&&(de.current=!0),N()});x.useImperativeHandle(M,()=>Ue,[Ue]),ys({open:B,ref:b,onComplete(){B&&E?.(!0)}});const Ge={open:B,transitionStatus:ce,side:Y,align:H};rt(()=>{!Q||!b.current||Object.keys(_e.current).length||(_e.current={top:Q.style.top||"0",left:Q.style.left||"0",right:Q.style.right,height:Q.style.height,bottom:Q.style.bottom,minHeight:Q.style.minHeight,maxHeight:Q.style.maxHeight,marginTop:Q.style.marginTop,marginBottom:Q.style.marginBottom})},[b,Q]),rt(()=>{B||Z||(ve.current=!1,de.current=!1,RS(Q,_e.current))},[B,Z,Q,b]),rt(()=>{const Ze=b.current;if(!B||!j||!Q||!Ze||Z&&!V||S.state.transitionStatus==="ending")return;if(!Z){ve.current=!0,Te.request(N),Ze.style.removeProperty("--transform-origin");return}const lt=UH(Ze);Ze.style.removeProperty("--transform-origin");try{const Xe=_.current,ht=O.current,$e=getComputedStyle(Q),Qe=getComputedStyle(Ze),dt=Pt(j),et=oa(Q),Ve=mM(j),Re=CS(j.getBoundingClientRect(),Ve),je=CS(Q.getBoundingClientRect(),Ve),Ce=Re.height,we=oe||Ze,tt=we.scrollHeight,pt=parseFloat(Qe.borderBottomWidth),ct=parseFloat($e.marginTop)||10,yt=parseFloat($e.marginBottom)||10,ln=parseFloat($e.minHeight)||100,Rt=pM(Qe),Qt=5,xt=5,Nt=20,Ot=dt.documentElement.clientHeight-ct-yt,Wt=dt.documentElement.clientWidth,en=Ot-Re.bottom+Ce;let yn,k=ee==="rtl"?Re.right-je.width:Re.left,W=0;if(Xe&&ht){const Rn=CS(ht.getBoundingClientRect(),Ve);yn=CS(Xe.getBoundingClientRect(),Ve),k=je.left+(ee==="rtl"?Rn.right-yn.right:Rn.left-yn.left);const Ea=Rn.top-Re.top+Rn.height/2;W=yn.top-je.top+yn.height/2-Ea}const Se=en+W+yt+pt;let De=Math.min(Ot,Se);const Ie=Ot-ct-yt,Pe=Se-De,Fe=Wt-xt;Q.style.left=`${ov(k,Qt,Fe-je.width)}px`,Q.style.height=`${De}px`,Q.style.maxHeight="auto",Q.style.marginTop=`${ct}px`,Q.style.marginBottom=`${yt}px`,Ze.style.height="100%";const ut=OS(we),ft=Pe>=ut-ws;ft&&(De=Math.min(Ot,je.height)-(Pe-ut));const tn=Re.top<Nt||Re.bottom>Ot-Nt||Math.ceil(De)+ws<Math.min(tt,ln),Tn=(et.visualViewport?.scale??1)!==1&&r2;if(tn||Tn){ve.current=!0,RS(Q,_e.current),X(!1);return}const Zn=Math.max(ln,De);if(ft){const Rn=Math.max(0,Ot-Se);Q.style.top=je.height>=Ie?"0":`${Rn}px`,Q.style.height=`${De}px`,we.scrollTop=OS(we)}else Q.style.bottom="0",we.scrollTop=Pe;if(yn){const Rn=je.top,Ea=je.height,da=yn.top+yn.height/2,Ua=Ea>0?(da-Rn)/Ea*100:50,Jt=ov(Ua,0,100);Ze.style.setProperty("--transform-origin",`50% ${Jt}%`)}(Zn===Ot||De>=Rt)&&(de.current=!0),N(),I&&S.state.selectedIndex===null&&S.state.activeIndex===null&&q.current[0]!=null&&S.set("activeIndex",0),ve.current=!0}finally{lt()}},[S,B,Q,j,O,_,b,N,Z,X,Te,le,K,oe,q,I,ee,V]),x.useEffect(()=>{if(!Z||!Q||!B)return;const Ze=oa(Q);function lt(Xe){T(!1,sn(A9,Xe))}return Ft(Ze,"resize",lt)},[T,Z,Q,B]);const We={...oe?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":D||void 0,id:`${L}-list`},onKeyDown(Ze){A.current=!0,fe&&tR.has(Ze.key)&&Ze.stopPropagation()},onMouseMove(){A.current=!1},onScroll(Ze){oe||Ue(Ze.currentTarget)},...Z&&{style:oe?{height:"100%"}:MH}},Ne=Hn("div",a,{ref:[i,b],state:Ge,stateAttributesMapping:NH,props:[ne,We,K2(ce),{className:!oe&&Z?AR.className:void 0},g]});return P.jsxs(x.Fragment,{children:[!J&&AR.getElement(te),P.jsx(Y2,{context:ie,modal:!1,disabled:!F,returnFocus:y,restoreFocus:!0,children:Ne})]})});process.env.NODE_ENV!=="production"&&(hM.displayName="SelectPopup");function pM(t){const a=t.maxHeight||"";return a.endsWith("px")&&parseFloat(a)||1/0}function OS(t){return lM(t.scrollHeight,t.clientHeight)}function mM(t){return LA.getScale(t)}function iv(t,a,i){return t/i[a]}function CS(t,a){return $y({x:iv(t.x,"x",a),y:iv(t.y,"y",a),width:iv(t.width,"x",a),height:iv(t.height,"y",a)})}const gM=[["transform","none"],["scale","1"],["translate","0 0"]];function UH(t){const{style:a}=t,i={};for(const[u,f]of gM)i[u]=a.getPropertyValue(u),a.setProperty(u,f,"important");return()=>{for(const[u]of gM){const f=i[u];f?a.setProperty(u,f):a.removeProperty(u)}}}const NR=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(NR.displayName="SelectItemContext");function UR(){const t=x.useContext(NR);if(!t)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.":va(57));return t}const yM=x.memo(x.forwardRef(function(a,i){const{render:u,className:f,value:p=null,label:y,disabled:g=!1,nativeButton:S=!1,style:b,...E}=a,T=x.useRef(null),O=T7({label:y,textRef:T,indexGuessBehavior:OD.GuessFromOrder}),{store:_,getItemProps:A,setOpen:D,setValue:N,selectionRef:M,typingRef:q,valuesRef:I,multiple:Y,selectedItemTextRef:H}=Wp(),Z=on(_,rn.isActive,O.index),V=on(_,rn.isSelected,O.index,p),X=on(_,rn.isSelectedByFocus,O.index),le=on(_,rn.isItemEqualToValue),K=O.index,fe=K!==-1,ie=x.useRef(null),ee=Ya(K);rt(()=>{if(!fe)return;const ve=I.current;return ve[K]=p,()=>{delete ve[K]}},[fe,K,p,I]),rt(()=>{if(!fe)return;const ve=_.state.value;let _e=ve;Y&&Array.isArray(ve)&&ve.length>0&&(_e=ve[ve.length-1]),_e!==void 0&&Qp(p,_e,le)&&(_.set("selectedIndex",K),T.current&&(H.current=T.current))},[fe,K,Y,le,_,p,H]);const te={disabled:g,selected:V,highlighted:Z},J=A({active:Z,selected:V});J.id=void 0;const L=x.useRef(null),B=x.useRef("mouse"),F=x.useRef(!1),{getButtonProps:ne,buttonRef:ce}=qp({disabled:g,focusableWhenDisabled:!0,native:S,composite:!0});function j(ve){const _e=_.state.value;if(Y){const Te=Array.isArray(_e)?_e:[],Ue=V?q7(Te,p,le):[...Te,p];N(Ue,sn(M2,ve))}else N(p,sn(M2,ve)),D(!1,sn(M2,ve))}const Q={role:"option","aria-selected":V,tabIndex:Z?0:-1,onTouchStart(){M.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(ve){L.current=ve.key,_.set("activeIndex",K),ve.key===" "&&q.current&&ve.preventDefault()},onClick(ve){F.current=!1,!(ve.type==="keydown"&&L.current===null)&&(g||ve.type==="keydown"&&L.current===" "&&q.current||B.current!=="touch"&&!Z||(L.current=null,j(ve.nativeEvent)))},onPointerEnter(ve){B.current=ve.pointerType},onPointerDown(ve){B.current=ve.pointerType,F.current=!0},onMouseUp(){if(g)return;if(F.current){F.current=!1;return}const ve=!M.current.allowSelectedMouseUp&&V,_e=!M.current.allowUnselectedMouseUp&&!V;ve||_e||B.current!=="touch"&&!Z||ie.current?.click()}},oe=Hn("div",a,{ref:[ce,i,O.ref,ie],state:te,props:[J,Q,E,ne]}),de=x.useMemo(()=>({selected:V,indexRef:ee,textRef:T,selectedByFocus:X,hasRegistered:fe}),[V,ee,T,X,fe]);return P.jsx(NR.Provider,{value:de,children:oe})}));process.env.NODE_ENV!=="production"&&(yM.displayName="SelectItem");const vM=x.forwardRef(function(a,i){const u=a.keepMounted??!1,{selected:f}=UR();return u||f?P.jsx(bM,{...a,ref:i}):null});process.env.NODE_ENV!=="production"&&(vM.displayName="SelectItemIndicator");const bM=x.memo(x.forwardRef((t,a)=>{const{render:i,className:u,style:f,keepMounted:p,...y}=t,{selected:g}=UR(),S=x.useRef(null),{transitionStatus:b,setMounted:E}=Ky(g),O=Hn("span",t,{ref:[a,S],state:{selected:g,transitionStatus:b},props:[{"aria-hidden":!0,children:"✔️"},y],stateAttributesMapping:ms});return ys({open:g,ref:S,onComplete(){g||E(!1)}}),O}));process.env.NODE_ENV!=="production"&&(bM.displayName="Inner");const SM=x.memo(x.forwardRef(function(a,i){const{indexRef:u,textRef:f,selectedByFocus:p,hasRegistered:y}=UR(),{selectedItemTextRef:g}=Wp(),{className:S,render:b,style:E,...T}=a,O=x.useCallback(A=>{if(!A||!y)return;const D=g.current===null||!g.current.isConnected;(p||D&&u.current===0)&&(g.current=A)},[g,u,p,y]);return Hn("div",a,{ref:[O,i,f],props:T})}));process.env.NODE_ENV!=="production"&&(SM.displayName="SelectItemText");function Ui({as:t,children:a,className:i,disabled:u,...f}){const p=t||"button",y=p==="button";return P.jsx(p,{className:$T("align-middle inline-flex items-center justify-center transition-all cursor-pointer hover:brightness-110 active:brightness-90 active:scale-90 disabled:cursor-not-allowed disabled:grayscale",i),...y?{disabled:u}:{"aria-disabled":u},...u&&!y?{onClick:g=>{g.preventDefault(),g.stopPropagation()}}:{},...f,children:a})}const jH=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),LH=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),EM=t=>{const a=LH(t);return a.charAt(0).toUpperCase()+a.slice(1)},wM=(...t)=>t.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),HH=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var kH={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const VH=x.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:f="",children:p,iconNode:y,...g},S)=>x.createElement("svg",{ref:S,...kH,width:a,height:a,stroke:t,strokeWidth:u?Number(i)*24/Number(a):i,className:wM("lucide",f),...!p&&!HH(g)&&{"aria-hidden":"true"},...g},[...y.map(([b,E])=>x.createElement(b,E)),...Array.isArray(p)?p:[p]]));const Ic=(t,a)=>{const i=x.forwardRef(({className:u,...f},p)=>x.createElement(VH,{ref:p,iconNode:a,className:wM(`lucide-${jH(EM(t))}`,`lucide-${t}`,u),...f}));return i.displayName=EM(t),i};const jR=Ic("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const TM=Ic("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const BH=Ic("eye-closed",[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]]);const GH=Ic("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const YH=Ic("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);const IH=Ic("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const qH=Ic("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const RM=Ic("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function $H(t){return ll.get("/channel/game/role/mail-captcha",t)}function ZH(t){return ll.get("/channel/game/role/auth",t)}function XH(t){return ll.post("/passport-api/v2/ztgame/auth/login",{account:t.account,password:t.password,channel_login:1,channel_id:6})}function PH(t){return ll.post("/passport-api/v2/sms-captchas",{mobile:t.mobile,type:t.type||"register",is_voice:0,nationcode:t.countryCode})}function FH(t){return ll.post("/passport-api/v2/ztgame/auth/mobile-register",{mobile:t.mobile,captcha:t.captcha,channel_login:1,channel_id:6,nationcode:t.countryCode,ad_id:""})}function OM(){return ll.post("/passport-api/v2/ztgame/auth/auth",{channel_login:1,channel_id:6})}function QH(t){return ll.post(`/passport-api/v2/ztgame/users/${t.uid}/idcard`,{name:t.name,idcard:t.idcard},{headers:{Authentication:t.authorization}})}function JH(t){return ll.post("/passport-api/v2/ztgame/auth/re-auth",{type:"auth",channel_id:6,ad_id:"",channel_login:1},{headers:{Authentication:t}})}const KH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAYAAADk3wSdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFJ0lEQVQ4jW2VW4ydVRXHf2tfvu87Z+5znEtnxnLR0pYJatEHWxhBEZUSCE8YESImRnzwQTEEY6KJGrQJXiFGXzAxaowkSkyoIgjYlEqEIIrSS6KmpTPDdJgz55w5t++29/bhjDQFVrKf9lq/rGSt/3/J+v2XExRQgNsKuJbH9QLFKaE4BWqUu6TCvXhGQsajOD6D4BJfQBCuvvaLLE/uhLTN/8PwVlGCxIJZCJ9XYzwYBEIGdLkztBE8d1rvSJWlbSLw/oJy9UZe8AOAGglfNbt4UE2CSkBikASwfKpE6blOncdndtOauAjy3gWM8516wCGiuFGPyT2Mhw+EQvC9wZ+UEAw4UfXZtBU6cZX7Fm+C4IDwBmgAPHdguEGPy1VqSO0MObhewHc9UgC5gAKXKmpbW3fV8i1/8JovsDyzG5ortxK4DpFzwP1A2yAcUpHciwURCLngOgFVBkIOOPBd/qrWir/MrTV/k6nk2N3v/Rx/uHgJmqvfrqb5l3sioBVofTsi18hrDywGqQ46IQBFwHcCRT1QrrmfDjXaP/TrvNRerrIiM/xq98d4bH6ROK3fV3XlV0QU60azajTOGND6R4YIpAqiAsEDVnB1UM30lonQ/t0/G3t4uXkZqxM1TkztpDmUXP7uzVcO2SA3FVrR0hoEOkrRCAFCGDMScUJX3V6lPCEIrqexsb82quVHnji6xJ9PH8Bbtc9G2f4dW42PznbDzc5qerGlnURURMidEPT2sIw5bFTMYVMp94rxEASfyananu6RI0/t49G/f4gdMxu/jExxm/QF1fMURtEdshRKMSo5GZa1OKJlDVSSc1STx4wedi/paomKPMELSfAv9NKY5569jNGk89nIFLeFIAQFISiMC9jCMZzlHJ+cfPn5uem9G6AQBdXkReKoacxw0TDDHhWX4BQqLjY3z4zTaVapVLODIch5YchAHNa7rJ4k1//pit3LRRT9h9a2RCvJJtai7JgbN1ObqOlzqJlzMJxPjF7cZnSkT78V/1Hk/GJLgKBlKyqLfUcX33m0mJu9lLIU4giSGOJ4gjhG2Zn6uxhvk+kqfRvDWPdKc8UrfPgTz+E2R34cUvMwKhAEvOL0Rcud95+pLZw4eeB94N2VGAtRNHjW7qOajBlG+gcb3QXq3XHaZUzFdvfOmY2r5JNnjw39+2/Iz3Z9vGbCDyTORyr94ul/LEbFr+8YhWoLmvJpbDSQqggYPUsSf0TSjYmw0p6nnlnqmWUji8Frp4bzm1eS7PfHf3sJ5eMLjHQtJ/eUPH39GAzNvI2txUdIZ66mtzVwKQGshaHqz00ImsxruqWmkRleS4W1VOvQqBz2OvnJ2aW1B55cXD1BfQqG50fpRbdTn/oG0UQNayC24MIAGllQqiO+FX13pXnp3Sebk5zuaZZ7hvVU86+e5vlMcIWjwDxJmG3i3/5B9PwkageoKWAanAKXDUzCmrMovWRE5V+aH//vcaS8oe+n97/at3ObheLFAtK+h7wCevo6dA10ddsjuxASEAW6UqLNMSR6BpHv4GkaPIjJH1oYXn+onY1E3UJuXE3VPb0tvZ9Cg66A0oNz4FNQMfg20Gkj5lvI+C9Qc8vI1GCJX3d+D6mzlEHy2PhH3lF1B95T8d9ECYQAFBByCH3wLXBnnsWd2QP9Q6CXt+X2Fs6/7Xy5F4oAOyxfQ/sGRfa919NCAX75GVBLmF1AzGBCF8abDp8ARuDVnoJMvo/JSrz/OpIaKJ7CN25Batul4U1AgP8BRjZPP9WeeTQAAAAASUVORK5CYII=";function WH(t){return P.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 500 500",...t,children:[P.jsx("path",{fill:"url(#a)",d:"M0 250C0 111.929 111.929 0 250 0s250 111.929 250 250-111.929 250-250 250S0 388.071 0 250Z"}),P.jsx("path",{fill:"#fff",d:"M159.432 341h-33.008V158.949h33.008V341Zm220.263-76.172c0 11.087-1.946 21.286-5.84 30.596-3.808 9.31-9.098 17.35-15.869 24.121-6.771 6.686-14.811 11.934-24.121 15.742-9.31 3.809-19.424 5.713-30.342 5.713h-89.121c-2.369 0-4.57-.423-6.601-1.27-2.031-.846-3.809-1.988-5.332-3.427-1.439-1.524-2.582-3.301-3.428-5.332-.846-2.032-1.27-4.232-1.27-6.602V175.58c0-2.285.424-4.443 1.27-6.475.846-2.031 1.989-3.808 3.428-5.332a16.354 16.354 0 0 1 5.332-3.554c2.031-.847 4.232-1.27 6.601-1.27h89.121c10.918 0 21.032 1.905 30.342 5.713 9.31 3.809 17.35 9.098 24.121 15.869 6.771 6.686 12.061 14.727 15.869 24.121 3.894 9.31 5.84 19.466 5.84 30.469v29.707Zm-33.007-29.707c0-6.432-1.058-12.314-3.174-17.646-2.032-5.332-4.952-9.86-8.76-13.584-3.809-3.809-8.379-6.729-13.711-8.76-5.247-2.116-11.087-3.174-17.52-3.174h-72.744v116.035h72.744c6.433 0 12.273-1.015 17.52-3.047 5.332-2.116 9.902-5.035 13.711-8.759 3.808-3.809 6.728-8.337 8.76-13.584 2.116-5.332 3.174-11.257 3.174-17.774v-29.707Z"}),P.jsx("defs",{children:P.jsxs("linearGradient",{id:"a",x1:250,x2:250,y1:0,y2:500,gradientUnits:"userSpaceOnUse",children:[P.jsx("stop",{stopColor:"#497EFE"}),P.jsx("stop",{offset:1,stopColor:"#947AFA"})]})})]})}function xS(){const{gameId:t,loginTypes:a,currentLoginType:i,setCurrentLoginType:u}=vs(),f=hD({loginTypes:a,gameId:t}),p=pD({loginTypes:a,gameId:t}),y=dD({loginTypes:a,gameId:t}),g=[];return y&&i!==$n.GIANT&&g.push({type:$n.GIANT,label:t==="5327"?"账号密码登录":"巨人账号",icon:P.jsx("img",{className:"size-4",src:KH})}),p&&i!==$n.MOBILE&&g.push({type:$n.MOBILE,label:"手机号登录",icon:P.jsx(YH,{className:"size-4"})}),f&&i!==$n.ROLE_ID&&g.push({type:$n.ROLE_ID,label:"ID 登录",icon:P.jsx(WH,{className:"size-4"})}),i!=="quick"&&Fp(t).length>0&&g.push({type:"quick",label:"快捷登录",icon:P.jsx(qH,{className:"size-4"})}),g.length?P.jsx("div",{className:"text-gray-500 text-xs flex justify-center items-center gap-2 mb-4",children:g.map((S,b)=>P.jsxs(Ui,{className:"h-7 px-3 border rounded-full border-gray-300 gap-1.5",onClick:()=>u(S.type),children:[S.icon,P.jsx("span",{children:S.label})]},S.type))}):null}function ek(t){return P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 90",fill:"currentColor",...t,children:P.jsx("path",{d:"M41.415 1.601c6.427-2.244 13.363 2.04 14.18 8.773.611 5.508-2.959 10.609-8.365 11.833-.408.102-.918.203-1.326.305-.918.204-1.735.409-2.653.613-.306.102-.714.204-1.122.306h-.101c-.816.306-1.633.51-2.448.816-.306.102-.715.306-1.021.408l-2.754 1.223c-.408.103-.714.307-1.02.511-1.224.612-2.346 1.326-3.468 2.142l-.307.306c-.612.409-1.122.919-1.632 1.327-.51.408-1.02.816-1.53 1.326-.408.306-.714.713-1.122 1.02-.408.407-.816.918-1.326 1.428-.306.612-.409 1.224-.612 1.836-.204 1.122-.51 2.143-.714 3.265-.204 1.02-.408 2.04-.51 3.06 0 .611-.103 1.122-.103 1.734v1.632c0 1.02 0 1.938.103 2.958.102 1.02.306 2.143.51 3.163.204.816.408 1.733.612 2.55.204.816.408 1.53.612 2.346.102.306.204.51.408.714.51.612 1.122 1.122 1.632 1.734 1.02.918 2.04 1.836 3.162 2.754.816.612 1.734 1.224 2.55 1.836.51.306.919.612 1.429.918.102 0 .204 0 .204.103.204 0 .306.102.51.204.408.204.714.408 1.122.612.918.408 1.734.714 2.652 1.122.714.204 1.326.51 2.04.714 1.122.306 2.143.612 3.265.918.51.204 1.122.204 1.632 0 .306-.102.51-.102.816-.204.816-.204 1.53-.51 2.346-.714 1.53-.408 2.958-1.02 4.386-1.633h.102c.816-.408 1.735-.815 2.55-1.325.307-.204.714-.408 1.02-.612 1.02-.714 2.04-1.428 3.06-2.244.613-.51 1.123-1.02 1.735-1.53l2.142-2.143c.408-.408.714-.816.816-1.428 0-.102.103-.102.103-.204.306-1.02.611-2.142.815-3.162.306-1.326.612-2.755.714-4.183v-.204c.102-1.224.103-2.448.103-3.672-.102-.816-.102-1.53-.204-2.346 0-.102 0-.204-.102-.205-.918.408-1.735.715-2.55 1.225-1.633.918-3.061 1.938-4.489 3.06-.102.101-.204.102-.306.204-1.02.918-1.938 1.734-2.856 2.652-1.02 1.02-2.041 2.04-2.96 3.162-1.937 2.244-4.487 3.469-7.445 3.673-5.713.306-10.61-3.673-11.324-9.283-.816-5.61 2.959-10.813 8.467-11.935a52.639 52.639 0 0 0 7.856-2.142h.101c.816-.408 1.734-.715 2.55-1.122 3.264-1.53 6.121-3.672 8.773-6.12 1.327-1.327 2.652-2.653 3.876-4.082 2.347-2.55 5.305-3.774 8.773-3.57 5.1.306 9.283 4.285 9.895 9.283.204 1.53.102 3.06-.408 4.489-.612 1.938-1.224 3.876-1.734 5.916-.102 1.02-.408 1.939-.51 2.958-.408 2.449-.51 4.795-.306 7.141v.306c.102.816.204 1.53.306 2.347a46.28 46.28 0 0 0 1.224 5.406c.102 0 .102.102.102.204.51 1.632 1.224 3.264 1.224 4.794.306 3.162-.51 5.917-2.55 8.365-1.632 1.938-3.774 3.06-6.223 3.57-1.734.408-3.57.817-5.304 1.326-.102.102-.204.102-.306.102-1.836.612-3.775 1.326-5.509 2.244h-.101c-.918.408-1.735.919-2.551 1.429-.306.204-.714.51-1.02.714a30.738 30.738 0 0 0-2.856 2.244c-.816.714-1.633 1.53-2.347 2.244a.22.22 0 0 1-.204.204c-.918.918-1.734 1.836-2.55 2.754-2.346 2.55-5.202 3.877-8.67 3.775-3.06-.102-5.61-1.428-7.651-3.672-1.428-1.633-2.958-3.163-4.488-4.591v-.102c-.51-.408-1.02-.918-1.53-1.326-.715-.612-1.53-1.122-2.245-1.734l-1.53-.918c-.612-.306-1.122-.612-1.734-.918l-2.754-1.225c-1.326-.612-2.653-1.02-4.081-1.428-1.326-.407-2.652-.714-3.978-1.02a11.146 11.146 0 0 1-3.673-1.224c-3.264-1.734-5.1-4.489-5.61-8.16-.204-1.633 0-3.265.51-4.795.816-2.244 1.428-4.59 1.938-6.936.102-.102.102-.103.102-.204.102-.715.204-1.531.306-2.347.102-.714.205-1.428.205-2.142V43.63l-.087-.956a39.328 39.328 0 0 0-1.24-6.695c-.102-.102-.102-.205-.102-.306-.51-1.734-1.224-3.469-1.53-5.203-1.122-5.712 2.55-11.22 8.263-12.445.714-.204 1.53-.306 2.244-.51 1.224-.306 2.55-.612 3.775-1.02 1.224-.408 2.448-.816 3.672-1.326l1.223-.612c.918-.408 1.837-.918 2.755-1.428 1.122-.714 2.244-1.53 3.366-2.346.408-.306.715-.612 1.122-.918.408-.408.918-.918 1.428-1.326a40.49 40.49 0 0 0 2.96-2.96c1.53-1.835 3.161-3.16 5.405-3.977Z"})})}function tk(t){return P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",...t,children:P.jsx("path",{d:"M842.667 384H768V277.333a234.667 234.667 0 1 0-469.333 0V384H224a53.393 53.393 0 0 0-53.333 53.333V928A53.393 53.393 0 0 0 224 981.333h618.667A53.393 53.393 0 0 0 896 928V437.333A53.393 53.393 0 0 0 842.667 384zm-288 295.007v110.326a21.333 21.333 0 0 1-42.667 0V679.007a64 64 0 1 1 42.667 0zM725.333 384h-384V277.333c0-105.866 86.134-192 192-192s192 86.134 192 192z"})})}var LR,CM;function nk(){if(CM)return LR;CM=1;var t="Expected a function",a=NaN,i="[object Symbol]",u=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,y=/^0o[0-7]+$/i,g=parseInt,S=typeof s1=="object"&&s1&&s1.Object===Object&&s1,b=typeof self=="object"&&self&&self.Object===Object&&self,E=S||b||Function("return this")(),T=Object.prototype,O=T.toString,_=Math.max,A=Math.min,D=function(){return E.Date.now()};function N(H,Z,V){var X,le,K,fe,ie,ee,te=0,J=!1,L=!1,B=!0;if(typeof H!="function")throw new TypeError(t);Z=Y(Z)||0,M(V)&&(J=!!V.leading,L="maxWait"in V,K=L?_(Y(V.maxWait)||0,Z):K,B="trailing"in V?!!V.trailing:B);function F(Te){var Ue=X,Ge=le;return X=le=void 0,te=Te,fe=H.apply(Ge,Ue),fe}function ne(Te){return te=Te,ie=setTimeout(Q,Z),J?F(Te):fe}function ce(Te){var Ue=Te-ee,Ge=Te-te,We=Z-Ue;return L?A(We,K-Ge):We}function j(Te){var Ue=Te-ee,Ge=Te-te;return ee===void 0||Ue>=Z||Ue<0||L&&Ge>=K}function Q(){var Te=D();if(j(Te))return oe(Te);ie=setTimeout(Q,ce(Te))}function oe(Te){return ie=void 0,B&&X?F(Te):(X=le=void 0,fe)}function de(){ie!==void 0&&clearTimeout(ie),te=0,X=ee=le=ie=void 0}function ve(){return ie===void 0?fe:oe(D())}function _e(){var Te=D(),Ue=j(Te);if(X=arguments,le=this,ee=Te,Ue){if(ie===void 0)return ne(ee);if(L)return ie=setTimeout(Q,Z),F(ee)}return ie===void 0&&(ie=setTimeout(Q,Z)),fe}return _e.cancel=de,_e.flush=ve,_e}function M(H){var Z=typeof H;return!!H&&(Z=="object"||Z=="function")}function q(H){return!!H&&typeof H=="object"}function I(H){return typeof H=="symbol"||q(H)&&O.call(H)==i}function Y(H){if(typeof H=="number")return H;if(I(H))return a;if(M(H)){var Z=typeof H.valueOf=="function"?H.valueOf():H;H=M(Z)?Z+"":Z}if(typeof H!="string")return H===0?H:+H;H=H.replace(u,"");var V=p.test(H);return V||y.test(H)?g(H.slice(2),V?2:8):f.test(H)?a:+H}return LR=N,LR}nk();function ak(t=!1){if(typeof t!="boolean")throw new Error("defaultValue must be `true` or `false`");const[a,i]=x.useState(t),u=x.useCallback(()=>{i(!0)},[]),f=x.useCallback(()=>{i(!1)},[]),p=x.useCallback(()=>{i(y=>!y)},[]);return{value:a,setValue:i,setTrue:u,setFalse:f,toggle:p}}var xM=typeof window<"u"?x.useLayoutEffect:x.useEffect;function ok(t){const[a,i]=x.useState(t),u=x.useCallback(()=>{i(y=>y+1)},[]),f=x.useCallback(()=>{i(y=>y-1)},[]),p=x.useCallback(()=>{i(t)},[t]);return{count:a,increment:u,decrement:f,reset:p,setCount:i}}function rk(t,a){const i=x.useRef(t);xM(()=>{i.current=t},[t]),x.useEffect(()=>{if(a===null)return;const u=setInterval(()=>{i.current()},a);return()=>{clearInterval(u)}},[a])}function lk({countStart:t,countStop:a=0,intervalMs:i=1e3,isIncrement:u=!1}){const{count:f,increment:p,decrement:y,reset:g}=ok(t),{value:S,setTrue:b,setFalse:E}=ak(!1),T=x.useCallback(()=>{E(),g()},[E,g]),O=x.useCallback(()=>{if(f===a){E();return}u?p():y()},[f,a,y,p,u,E]);return rk(O,S?i:null),[f,{startCountdown:b,stopCountdown:E,resetCountdown:T}]}var ik=typeof window>"u";function uk(t,{defaultValue:a=!1,initializeWithValue:i=!0}={}){const u=g=>ik?a:window.matchMedia(g).matches,[f,p]=x.useState(()=>i?u(t):a);function y(){p(u(t))}return xM(()=>{const g=window.matchMedia(t);return y(),g.addListener?g.addListener(y):g.addEventListener("change",y),()=>{g.removeListener?g.removeListener(y):g.removeEventListener("change",y)}},[t]),f}function qc(t,a,{checkForDefaultPrevented:i=!0}={}){return function(f){if(t?.(f),i===!1||!f.defaultPrevented)return a?.(f)}}function _M(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function AM(...t){return a=>{let i=!1;const u=t.map(f=>{const p=_M(f,a);return!i&&typeof p=="function"&&(i=!0),p});if(i)return()=>{for(let f=0;f<u.length;f++){const p=u[f];typeof p=="function"?p():_M(t[f],null)}}}}function Bd(...t){return x.useCallback(AM(...t),t)}function sk(t,a){const i=x.createContext(a),u=p=>{const{children:y,...g}=p,S=x.useMemo(()=>g,Object.values(g));return P.jsx(i.Provider,{value:S,children:y})};u.displayName=t+"Provider";function f(p){const y=x.useContext(i);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${t}\``)}return[u,f]}function ck(t,a=[]){let i=[];function u(p,y){const g=x.createContext(y),S=i.length;i=[...i,y];const b=T=>{const{scope:O,children:_,...A}=T,D=O?.[t]?.[S]||g,N=x.useMemo(()=>A,Object.values(A));return P.jsx(D.Provider,{value:N,children:_})};b.displayName=p+"Provider";function E(T,O){const _=O?.[t]?.[S]||g,A=x.useContext(_);if(A)return A;if(y!==void 0)return y;throw new Error(`\`${T}\` must be used within \`${p}\``)}return[b,E]}const f=()=>{const p=i.map(y=>x.createContext(y));return function(g){const S=g?.[t]||p;return x.useMemo(()=>({[`__scope${t}`]:{...g,[t]:S}}),[g,S])}};return f.scopeName=t,[u,fk(f,...a)]}function fk(...t){const a=t[0];if(t.length===1)return a;const i=()=>{const u=t.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(p){const y=u.reduce((g,{useScope:S,scopeName:b})=>{const T=S(p)[`__scope${b}`];return{...g,...T}},{});return x.useMemo(()=>({[`__scope${a.scopeName}`]:y}),[y])}};return i.scopeName=a.scopeName,i}var uv=globalThis?.document?x.useLayoutEffect:()=>{},dk=S1[" useId ".trim().toString()]||(()=>{}),hk=0;function HR(t){const[a,i]=x.useState(dk());return uv(()=>{i(u=>u??String(hk++))},[t]),t||(a?`radix-${a}`:"")}var pk=S1[" useInsertionEffect ".trim().toString()]||uv;function mk({prop:t,defaultProp:a,onChange:i=()=>{},caller:u}){const[f,p,y]=gk({defaultProp:a,onChange:i}),g=t!==void 0,S=g?t:f;{const E=x.useRef(t!==void 0);x.useEffect(()=>{const T=E.current;T!==g&&console.warn(`${u} is changing from ${T?"controlled":"uncontrolled"} to ${g?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),E.current=g},[g,u])}const b=x.useCallback(E=>{if(g){const T=yk(E)?E(t):E;T!==t&&y.current?.(T)}else p(E)},[g,t,p,y]);return[S,b]}function gk({defaultProp:t,onChange:a}){const[i,u]=x.useState(t),f=x.useRef(i),p=x.useRef(a);return pk(()=>{p.current=a},[a]),x.useEffect(()=>{f.current!==i&&(p.current?.(i),f.current=i)},[i,f]),[i,u,p]}function yk(t){return typeof t=="function"}function DM(t){const a=vk(t),i=x.forwardRef((u,f)=>{const{children:p,...y}=u,g=x.Children.toArray(p),S=g.find(Sk);if(S){const b=S.props.children,E=g.map(T=>T===S?x.Children.count(b)>1?x.Children.only(null):x.isValidElement(b)?b.props.children:null:T);return P.jsx(a,{...y,ref:f,children:x.isValidElement(b)?x.cloneElement(b,void 0,E):null})}return P.jsx(a,{...y,ref:f,children:p})});return i.displayName=`${t}.Slot`,i}function vk(t){const a=x.forwardRef((i,u)=>{const{children:f,...p}=i;if(x.isValidElement(f)){const y=wk(f),g=Ek(p,f.props);return f.type!==x.Fragment&&(g.ref=u?AM(u,y):y),x.cloneElement(f,g)}return x.Children.count(f)>1?x.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var bk=Symbol("radix.slottable");function Sk(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===bk}function Ek(t,a){const i={...a};for(const u in a){const f=t[u],p=a[u];/^on[A-Z]/.test(u)?f&&p?i[u]=(...g)=>{const S=p(...g);return f(...g),S}:f&&(i[u]=f):u==="style"?i[u]={...f,...p}:u==="className"&&(i[u]=[f,p].filter(Boolean).join(" "))}return{...t,...i}}function wk(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var Tk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ts=Tk.reduce((t,a)=>{const i=DM(`Primitive.${a}`),u=x.forwardRef((f,p)=>{const{asChild:y,...g}=f,S=y?i:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(S,{...g,ref:p})});return u.displayName=`Primitive.${a}`,{...t,[a]:u}},{});function Rk(t,a){t&&tl.flushSync(()=>t.dispatchEvent(a))}function sv(t){const a=x.useRef(t);return x.useEffect(()=>{a.current=t}),x.useMemo(()=>(...i)=>a.current?.(...i),[])}function Ok(t,a=globalThis?.document){const i=sv(t);x.useEffect(()=>{const u=f=>{f.key==="Escape"&&i(f)};return a.addEventListener("keydown",u,{capture:!0}),()=>a.removeEventListener("keydown",u,{capture:!0})},[i,a])}var Ck="DismissableLayer",kR="dismissableLayer.update",xk="dismissableLayer.pointerDownOutside",_k="dismissableLayer.focusOutside",MM,zM=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NM=x.forwardRef((t,a)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:y,onDismiss:g,...S}=t,b=x.useContext(zM),[E,T]=x.useState(null),O=E?.ownerDocument??globalThis?.document,[,_]=x.useState({}),A=Bd(a,V=>T(V)),D=Array.from(b.layers),[N]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),M=D.indexOf(N),q=E?D.indexOf(E):-1,I=b.layersWithOutsidePointerEventsDisabled.size>0,Y=q>=M,H=Mk(V=>{const X=V.target,le=[...b.branches].some(K=>K.contains(X));!Y||le||(f?.(V),y?.(V),V.defaultPrevented||g?.())},O),Z=zk(V=>{const X=V.target;[...b.branches].some(K=>K.contains(X))||(p?.(V),y?.(V),V.defaultPrevented||g?.())},O);return Ok(V=>{q===b.layers.size-1&&(u?.(V),!V.defaultPrevented&&g&&(V.preventDefault(),g()))},O),x.useEffect(()=>{if(E)return i&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(MM=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(E)),b.layers.add(E),UM(),()=>{i&&b.layersWithOutsidePointerEventsDisabled.size===1&&(O.body.style.pointerEvents=MM)}},[E,O,i,b]),x.useEffect(()=>()=>{E&&(b.layers.delete(E),b.layersWithOutsidePointerEventsDisabled.delete(E),UM())},[E,b]),x.useEffect(()=>{const V=()=>_({});return document.addEventListener(kR,V),()=>document.removeEventListener(kR,V)},[]),P.jsx(Ts.div,{...S,ref:A,style:{pointerEvents:I?Y?"auto":"none":void 0,...t.style},onFocusCapture:qc(t.onFocusCapture,Z.onFocusCapture),onBlurCapture:qc(t.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:qc(t.onPointerDownCapture,H.onPointerDownCapture)})});NM.displayName=Ck;var Ak="DismissableLayerBranch",Dk=x.forwardRef((t,a)=>{const i=x.useContext(zM),u=x.useRef(null),f=Bd(a,u);return x.useEffect(()=>{const p=u.current;if(p)return i.branches.add(p),()=>{i.branches.delete(p)}},[i.branches]),P.jsx(Ts.div,{...t,ref:f})});Dk.displayName=Ak;function Mk(t,a=globalThis?.document){const i=sv(t),u=x.useRef(!1),f=x.useRef(()=>{});return x.useEffect(()=>{const p=g=>{if(g.target&&!u.current){let S=function(){jM(xk,i,b,{discrete:!0})};const b={originalEvent:g};g.pointerType==="touch"?(a.removeEventListener("click",f.current),f.current=S,a.addEventListener("click",f.current,{once:!0})):S()}else a.removeEventListener("click",f.current);u.current=!1},y=window.setTimeout(()=>{a.addEventListener("pointerdown",p)},0);return()=>{window.clearTimeout(y),a.removeEventListener("pointerdown",p),a.removeEventListener("click",f.current)}},[a,i]),{onPointerDownCapture:()=>u.current=!0}}function zk(t,a=globalThis?.document){const i=sv(t),u=x.useRef(!1);return x.useEffect(()=>{const f=p=>{p.target&&!u.current&&jM(_k,i,{originalEvent:p},{discrete:!1})};return a.addEventListener("focusin",f),()=>a.removeEventListener("focusin",f)},[a,i]),{onFocusCapture:()=>u.current=!0,onBlurCapture:()=>u.current=!1}}function UM(){const t=new CustomEvent(kR);document.dispatchEvent(t)}function jM(t,a,i,{discrete:u}){const f=i.originalEvent.target,p=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});a&&f.addEventListener(t,a,{once:!0}),u?Rk(f,p):f.dispatchEvent(p)}var VR="focusScope.autoFocusOnMount",BR="focusScope.autoFocusOnUnmount",LM={bubbles:!1,cancelable:!0},Nk="FocusScope",HM=x.forwardRef((t,a)=>{const{loop:i=!1,trapped:u=!1,onMountAutoFocus:f,onUnmountAutoFocus:p,...y}=t,[g,S]=x.useState(null),b=sv(f),E=sv(p),T=x.useRef(null),O=Bd(a,D=>S(D)),_=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(u){let D=function(I){if(_.paused||!g)return;const Y=I.target;g.contains(Y)?T.current=Y:$c(T.current,{select:!0})},N=function(I){if(_.paused||!g)return;const Y=I.relatedTarget;Y!==null&&(g.contains(Y)||$c(T.current,{select:!0}))},M=function(I){if(document.activeElement===document.body)for(const H of I)H.removedNodes.length>0&&$c(g)};document.addEventListener("focusin",D),document.addEventListener("focusout",N);const q=new MutationObserver(M);return g&&q.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",N),q.disconnect()}}},[u,g,_.paused]),x.useEffect(()=>{if(g){BM.add(_);const D=document.activeElement;if(!g.contains(D)){const M=new CustomEvent(VR,LM);g.addEventListener(VR,b),g.dispatchEvent(M),M.defaultPrevented||(Uk(Vk(kM(g)),{select:!0}),document.activeElement===D&&$c(g))}return()=>{g.removeEventListener(VR,b),setTimeout(()=>{const M=new CustomEvent(BR,LM);g.addEventListener(BR,E),g.dispatchEvent(M),M.defaultPrevented||$c(D??document.body,{select:!0}),g.removeEventListener(BR,E),BM.remove(_)},0)}}},[g,b,E,_]);const A=x.useCallback(D=>{if(!i&&!u||_.paused)return;const N=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,M=document.activeElement;if(N&&M){const q=D.currentTarget,[I,Y]=jk(q);I&&Y?!D.shiftKey&&M===Y?(D.preventDefault(),i&&$c(I,{select:!0})):D.shiftKey&&M===I&&(D.preventDefault(),i&&$c(Y,{select:!0})):M===q&&D.preventDefault()}},[i,u,_.paused]);return P.jsx(Ts.div,{tabIndex:-1,...y,ref:O,onKeyDown:A})});HM.displayName=Nk;function Uk(t,{select:a=!1}={}){const i=document.activeElement;for(const u of t)if($c(u,{select:a}),document.activeElement!==i)return}function jk(t){const a=kM(t),i=VM(a,t),u=VM(a.reverse(),t);return[i,u]}function kM(t){const a=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const f=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||f?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)a.push(i.currentNode);return a}function VM(t,a){for(const i of t)if(!Lk(i,{upTo:a}))return i}function Lk(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Hk(t){return t instanceof HTMLInputElement&&"select"in t}function $c(t,{select:a=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&Hk(t)&&a&&t.select()}}var BM=kk();function kk(){let t=[];return{add(a){const i=t[0];a!==i&&i?.pause(),t=GM(t,a),t.unshift(a)},remove(a){t=GM(t,a),t[0]?.resume()}}}function GM(t,a){const i=[...t],u=i.indexOf(a);return u!==-1&&i.splice(u,1),i}function Vk(t){return t.filter(a=>a.tagName!=="A")}var Bk="Portal",YM=x.forwardRef((t,a)=>{const{container:i,...u}=t,[f,p]=x.useState(!1);uv(()=>p(!0),[]);const y=i||f&&globalThis?.document?.body;return y?nj.createPortal(P.jsx(Ts.div,{...u,ref:a}),y):null});YM.displayName=Bk;function Gk(t,a){return x.useReducer((i,u)=>a[i][u]??i,t)}var _S=t=>{const{present:a,children:i}=t,u=Yk(a),f=typeof i=="function"?i({present:u.isPresent}):x.Children.only(i),p=Bd(u.ref,Ik(f));return typeof i=="function"||u.isPresent?x.cloneElement(f,{ref:p}):null};_S.displayName="Presence";function Yk(t){const[a,i]=x.useState(),u=x.useRef(null),f=x.useRef(t),p=x.useRef("none"),y=t?"mounted":"unmounted",[g,S]=Gk(y,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const b=AS(u.current);p.current=g==="mounted"?b:"none"},[g]),uv(()=>{const b=u.current,E=f.current;if(E!==t){const O=p.current,_=AS(b);t?S("MOUNT"):_==="none"||b?.display==="none"?S("UNMOUNT"):S(E&&O!==_?"ANIMATION_OUT":"UNMOUNT"),f.current=t}},[t,S]),uv(()=>{if(a){let b;const E=a.ownerDocument.defaultView??window,T=_=>{const D=AS(u.current).includes(_.animationName);if(_.target===a&&D&&(S("ANIMATION_END"),!f.current)){const N=a.style.animationFillMode;a.style.animationFillMode="forwards",b=E.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=N)})}},O=_=>{_.target===a&&(p.current=AS(u.current))};return a.addEventListener("animationstart",O),a.addEventListener("animationcancel",T),a.addEventListener("animationend",T),()=>{E.clearTimeout(b),a.removeEventListener("animationstart",O),a.removeEventListener("animationcancel",T),a.removeEventListener("animationend",T)}}else S("ANIMATION_END")},[a,S]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:x.useCallback(b=>{u.current=b?getComputedStyle(b):null,i(b)},[])}}function AS(t){return t?.animationName||"none"}function Ik(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var GR=0;function qk(){x.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??IM()),document.body.insertAdjacentElement("beforeend",t[1]??IM()),GR++,()=>{GR===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),GR--}},[])}function IM(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var DS="right-scroll-bar-position",MS="width-before-scroll-bar",$k="with-scroll-bars-hidden",Zk="--removed-body-scroll-bar-size";function YR(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function Xk(t,a){var i=x.useState(function(){return{value:t,callback:a,facade:{get current(){return i.value},set current(u){var f=i.value;f!==u&&(i.value=u,i.callback(u,f))}}}})[0];return i.callback=a,i.facade}var Pk=typeof window<"u"?x.useLayoutEffect:x.useEffect,qM=new WeakMap;function Fk(t,a){var i=Xk(null,function(u){return t.forEach(function(f){return YR(f,u)})});return Pk(function(){var u=qM.get(i);if(u){var f=new Set(u),p=new Set(t),y=i.current;f.forEach(function(g){p.has(g)||YR(g,null)}),p.forEach(function(g){f.has(g)||YR(g,y)})}qM.set(i,t)},[t]),i}function Qk(t){return t}function Jk(t,a){a===void 0&&(a=Qk);var i=[],u=!1,f={read:function(){if(u)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(p){var y=a(p,u);return i.push(y),function(){i=i.filter(function(g){return g!==y})}},assignSyncMedium:function(p){for(u=!0;i.length;){var y=i;i=[],y.forEach(p)}i={push:function(g){return p(g)},filter:function(){return i}}},assignMedium:function(p){u=!0;var y=[];if(i.length){var g=i;i=[],g.forEach(p),y=i}var S=function(){var E=y;y=[],E.forEach(p)},b=function(){return Promise.resolve().then(S)};b(),i={push:function(E){y.push(E),b()},filter:function(E){return y=y.filter(E),i}}}};return f}function Kk(t){t===void 0&&(t={});var a=Jk(null);return a.options=Ai({async:!0,ssr:!1},t),a}var $M=function(t){var a=t.sideCar,i=yx(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var u=a.read();if(!u)throw new Error("Sidecar medium not found");return x.createElement(u,Ai({},i))};$M.isSideCarExport=!0;function Wk(t,a){return t.useMedium(a),$M}var ZM=Kk(),IR=function(){},zS=x.forwardRef(function(t,a){var i=x.useRef(null),u=x.useState({onScrollCapture:IR,onWheelCapture:IR,onTouchMoveCapture:IR}),f=u[0],p=u[1],y=t.forwardProps,g=t.children,S=t.className,b=t.removeScrollBar,E=t.enabled,T=t.shards,O=t.sideCar,_=t.noRelative,A=t.noIsolation,D=t.inert,N=t.allowPinchZoom,M=t.as,q=M===void 0?"div":M,I=t.gapMode,Y=yx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=O,Z=Fk([i,a]),V=Ai(Ai({},Y),f);return x.createElement(x.Fragment,null,E&&x.createElement(H,{sideCar:ZM,removeScrollBar:b,shards:T,noRelative:_,noIsolation:A,inert:D,setCallbacks:p,allowPinchZoom:!!N,lockRef:i,gapMode:I}),y?x.cloneElement(x.Children.only(g),Ai(Ai({},V),{ref:Z})):x.createElement(q,Ai({},V,{className:S,ref:Z}),g))});zS.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zS.classNames={fullWidth:MS,zeroRight:DS};var eV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tV(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=eV();return a&&t.setAttribute("nonce",a),t}function nV(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function aV(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var oV=function(){var t=0,a=null;return{add:function(i){t==0&&(a=tV())&&(nV(a,i),aV(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},rV=function(){var t=oV();return function(a,i){x.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&i])}},XM=function(){var t=rV(),a=function(i){var u=i.styles,f=i.dynamic;return t(u,f),null};return a},lV={left:0,top:0,right:0,gap:0},qR=function(t){return parseInt(t||"",10)||0},iV=function(t){var a=window.getComputedStyle(document.body),i=a[t==="padding"?"paddingLeft":"marginLeft"],u=a[t==="padding"?"paddingTop":"marginTop"],f=a[t==="padding"?"paddingRight":"marginRight"];return[qR(i),qR(u),qR(f)]},uV=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return lV;var a=iV(t),i=document.documentElement.clientWidth,u=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,u-i+a[2]-a[0])}},sV=XM(),em="data-scroll-locked",cV=function(t,a,i,u){var f=t.left,p=t.top,y=t.right,g=t.gap;return i===void 0&&(i="margin"),`
262
+ .`.concat($k,` {
263
+ overflow: hidden `).concat(u,`;
264
+ padding-right: `).concat(g,"px ").concat(u,`;
265
+ }
266
+ body[`).concat(em,`] {
267
+ overflow: hidden `).concat(u,`;
268
+ overscroll-behavior: contain;
269
+ `).concat([a&&"position: relative ".concat(u,";"),i==="margin"&&`
270
+ padding-left: `.concat(f,`px;
271
+ padding-top: `).concat(p,`px;
272
+ padding-right: `).concat(y,`px;
273
+ margin-left:0;
274
+ margin-top:0;
275
+ margin-right: `).concat(g,"px ").concat(u,`;
276
+ `),i==="padding"&&"padding-right: ".concat(g,"px ").concat(u,";")].filter(Boolean).join(""),`
277
+ }
278
+
279
+ .`).concat(DS,` {
280
+ right: `).concat(g,"px ").concat(u,`;
281
+ }
282
+
283
+ .`).concat(MS,` {
284
+ margin-right: `).concat(g,"px ").concat(u,`;
285
+ }
286
+
287
+ .`).concat(DS," .").concat(DS,` {
288
+ right: 0 `).concat(u,`;
289
+ }
290
+
291
+ .`).concat(MS," .").concat(MS,` {
292
+ margin-right: 0 `).concat(u,`;
293
+ }
294
+
295
+ body[`).concat(em,`] {
296
+ `).concat(Zk,": ").concat(g,`px;
297
+ }
298
+ `)},PM=function(){var t=parseInt(document.body.getAttribute(em)||"0",10);return isFinite(t)?t:0},fV=function(){x.useEffect(function(){return document.body.setAttribute(em,(PM()+1).toString()),function(){var t=PM()-1;t<=0?document.body.removeAttribute(em):document.body.setAttribute(em,t.toString())}},[])},dV=function(t){var a=t.noRelative,i=t.noImportant,u=t.gapMode,f=u===void 0?"margin":u;fV();var p=x.useMemo(function(){return uV(f)},[f]);return x.createElement(sV,{styles:cV(p,!a,f,i?"":"!important")})},$R=!1;if(typeof window<"u")try{var NS=Object.defineProperty({},"passive",{get:function(){return $R=!0,!0}});window.addEventListener("test",NS,NS),window.removeEventListener("test",NS,NS)}catch{$R=!1}var tm=$R?{passive:!1}:!1,hV=function(t){return t.tagName==="TEXTAREA"},FM=function(t,a){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[a]!=="hidden"&&!(i.overflowY===i.overflowX&&!hV(t)&&i[a]==="visible")},pV=function(t){return FM(t,"overflowY")},mV=function(t){return FM(t,"overflowX")},QM=function(t,a){var i=a.ownerDocument,u=a;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var f=JM(t,u);if(f){var p=KM(t,u),y=p[1],g=p[2];if(y>g)return!0}u=u.parentNode}while(u&&u!==i.body);return!1},gV=function(t){var a=t.scrollTop,i=t.scrollHeight,u=t.clientHeight;return[a,i,u]},yV=function(t){var a=t.scrollLeft,i=t.scrollWidth,u=t.clientWidth;return[a,i,u]},JM=function(t,a){return t==="v"?pV(a):mV(a)},KM=function(t,a){return t==="v"?gV(a):yV(a)},vV=function(t,a){return t==="h"&&a==="rtl"?-1:1},bV=function(t,a,i,u,f){var p=vV(t,window.getComputedStyle(a).direction),y=p*u,g=i.target,S=a.contains(g),b=!1,E=y>0,T=0,O=0;do{if(!g)break;var _=KM(t,g),A=_[0],D=_[1],N=_[2],M=D-N-p*A;(A||M)&&JM(t,g)&&(T+=M,O+=A);var q=g.parentNode;g=q&&q.nodeType===Node.DOCUMENT_FRAGMENT_NODE?q.host:q}while(!S&&g!==document.body||S&&(a.contains(g)||a===g));return(E&&Math.abs(T)<1||!E&&Math.abs(O)<1)&&(b=!0),b},US=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},WM=function(t){return[t.deltaX,t.deltaY]},e3=function(t){return t&&"current"in t?t.current:t},SV=function(t,a){return t[0]===a[0]&&t[1]===a[1]},EV=function(t){return`
299
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
300
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
301
+ `)},wV=0,nm=[];function TV(t){var a=x.useRef([]),i=x.useRef([0,0]),u=x.useRef(),f=x.useState(wV++)[0],p=x.useState(XM)[0],y=x.useRef(t);x.useEffect(function(){y.current=t},[t]),x.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(f));var D=NT([t.lockRef.current],(t.shards||[]).map(e3),!0).filter(Boolean);return D.forEach(function(N){return N.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),D.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(f))})}}},[t.inert,t.lockRef.current,t.shards]);var g=x.useCallback(function(D,N){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!y.current.allowPinchZoom;var M=US(D),q=i.current,I="deltaX"in D?D.deltaX:q[0]-M[0],Y="deltaY"in D?D.deltaY:q[1]-M[1],H,Z=D.target,V=Math.abs(I)>Math.abs(Y)?"h":"v";if("touches"in D&&V==="h"&&Z.type==="range")return!1;var X=QM(V,Z);if(!X)return!0;if(X?H=V:(H=V==="v"?"h":"v",X=QM(V,Z)),!X)return!1;if(!u.current&&"changedTouches"in D&&(I||Y)&&(u.current=H),!H)return!0;var le=u.current||H;return bV(le,N,D,le==="h"?I:Y)},[]),S=x.useCallback(function(D){var N=D;if(!(!nm.length||nm[nm.length-1]!==p)){var M="deltaY"in N?WM(N):US(N),q=a.current.filter(function(H){return H.name===N.type&&(H.target===N.target||N.target===H.shadowParent)&&SV(H.delta,M)})[0];if(q&&q.should){N.cancelable&&N.preventDefault();return}if(!q){var I=(y.current.shards||[]).map(e3).filter(Boolean).filter(function(H){return H.contains(N.target)}),Y=I.length>0?g(N,I[0]):!y.current.noIsolation;Y&&N.cancelable&&N.preventDefault()}}},[]),b=x.useCallback(function(D,N,M,q){var I={name:D,delta:N,target:M,should:q,shadowParent:RV(M)};a.current.push(I),setTimeout(function(){a.current=a.current.filter(function(Y){return Y!==I})},1)},[]),E=x.useCallback(function(D){i.current=US(D),u.current=void 0},[]),T=x.useCallback(function(D){b(D.type,WM(D),D.target,g(D,t.lockRef.current))},[]),O=x.useCallback(function(D){b(D.type,US(D),D.target,g(D,t.lockRef.current))},[]);x.useEffect(function(){return nm.push(p),t.setCallbacks({onScrollCapture:T,onWheelCapture:T,onTouchMoveCapture:O}),document.addEventListener("wheel",S,tm),document.addEventListener("touchmove",S,tm),document.addEventListener("touchstart",E,tm),function(){nm=nm.filter(function(D){return D!==p}),document.removeEventListener("wheel",S,tm),document.removeEventListener("touchmove",S,tm),document.removeEventListener("touchstart",E,tm)}},[]);var _=t.removeScrollBar,A=t.inert;return x.createElement(x.Fragment,null,A?x.createElement(p,{styles:EV(f)}):null,_?x.createElement(dV,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function RV(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const OV=Wk(ZM,TV);var t3=x.forwardRef(function(t,a){return x.createElement(zS,Ai({},t,{ref:a,sideCar:OV}))});t3.classNames=zS.classNames;var CV=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},am=new WeakMap,jS=new WeakMap,LS={},ZR=0,n3=function(t){return t&&(t.host||n3(t.parentNode))},xV=function(t,a){return a.map(function(i){if(t.contains(i))return i;var u=n3(i);return u&&t.contains(u)?u:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},_V=function(t,a,i,u){var f=xV(a,Array.isArray(t)?t:[t]);LS[i]||(LS[i]=new WeakMap);var p=LS[i],y=[],g=new Set,S=new Set(f),b=function(T){!T||g.has(T)||(g.add(T),b(T.parentNode))};f.forEach(b);var E=function(T){!T||S.has(T)||Array.prototype.forEach.call(T.children,function(O){if(g.has(O))E(O);else try{var _=O.getAttribute(u),A=_!==null&&_!=="false",D=(am.get(O)||0)+1,N=(p.get(O)||0)+1;am.set(O,D),p.set(O,N),y.push(O),D===1&&A&&jS.set(O,!0),N===1&&O.setAttribute(i,"true"),A||O.setAttribute(u,"true")}catch(M){console.error("aria-hidden: cannot operate on ",O,M)}})};return E(a),g.clear(),ZR++,function(){y.forEach(function(T){var O=am.get(T)-1,_=p.get(T)-1;am.set(T,O),p.set(T,_),O||(jS.has(T)||T.removeAttribute(u),jS.delete(T)),_||T.removeAttribute(i)}),ZR--,ZR||(am=new WeakMap,am=new WeakMap,jS=new WeakMap,LS={})}},AV=function(t,a,i){i===void 0&&(i="data-aria-hidden");var u=Array.from(Array.isArray(t)?t:[t]),f=CV(t);return f?(u.push.apply(u,Array.from(f.querySelectorAll("[aria-live], script"))),_V(u,f,i,"aria-hidden")):function(){return null}},HS="Dialog",[a3,kZ]=ck(HS),[DV,ji]=a3(HS),o3=t=>{const{__scopeDialog:a,children:i,open:u,defaultOpen:f,onOpenChange:p,modal:y=!0}=t,g=x.useRef(null),S=x.useRef(null),[b,E]=mk({prop:u,defaultProp:f??!1,onChange:p,caller:HS});return P.jsx(DV,{scope:a,triggerRef:g,contentRef:S,contentId:HR(),titleId:HR(),descriptionId:HR(),open:b,onOpenChange:E,onOpenToggle:x.useCallback(()=>E(T=>!T),[E]),modal:y,children:i})};o3.displayName=HS;var r3="DialogTrigger",l3=x.forwardRef((t,a)=>{const{__scopeDialog:i,...u}=t,f=ji(r3,i),p=Bd(a,f.triggerRef);return P.jsx(Ts.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.contentId,"data-state":FR(f.open),...u,ref:p,onClick:qc(t.onClick,f.onOpenToggle)})});l3.displayName=r3;var XR="DialogPortal",[MV,i3]=a3(XR,{forceMount:void 0}),u3=t=>{const{__scopeDialog:a,forceMount:i,children:u,container:f}=t,p=ji(XR,a);return P.jsx(MV,{scope:a,forceMount:i,children:x.Children.map(u,y=>P.jsx(_S,{present:i||p.open,children:P.jsx(YM,{asChild:!0,container:f,children:y})}))})};u3.displayName=XR;var kS="DialogOverlay",s3=x.forwardRef((t,a)=>{const i=i3(kS,t.__scopeDialog),{forceMount:u=i.forceMount,...f}=t,p=ji(kS,t.__scopeDialog);return p.modal?P.jsx(_S,{present:u||p.open,children:P.jsx(NV,{...f,ref:a})}):null});s3.displayName=kS;var zV=DM("DialogOverlay.RemoveScroll"),NV=x.forwardRef((t,a)=>{const{__scopeDialog:i,...u}=t,f=ji(kS,i);return P.jsx(t3,{as:zV,allowPinchZoom:!0,shards:[f.contentRef],children:P.jsx(Ts.div,{"data-state":FR(f.open),...u,ref:a,style:{pointerEvents:"auto",...u.style}})})}),Gd="DialogContent",c3=x.forwardRef((t,a)=>{const i=i3(Gd,t.__scopeDialog),{forceMount:u=i.forceMount,...f}=t,p=ji(Gd,t.__scopeDialog);return P.jsx(_S,{present:u||p.open,children:p.modal?P.jsx(UV,{...f,ref:a}):P.jsx(jV,{...f,ref:a})})});c3.displayName=Gd;var UV=x.forwardRef((t,a)=>{const i=ji(Gd,t.__scopeDialog),u=x.useRef(null),f=Bd(a,i.contentRef,u);return x.useEffect(()=>{const p=u.current;if(p)return AV(p)},[]),P.jsx(f3,{...t,ref:f,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qc(t.onCloseAutoFocus,p=>{p.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:qc(t.onPointerDownOutside,p=>{const y=p.detail.originalEvent,g=y.button===0&&y.ctrlKey===!0;(y.button===2||g)&&p.preventDefault()}),onFocusOutside:qc(t.onFocusOutside,p=>p.preventDefault())})}),jV=x.forwardRef((t,a)=>{const i=ji(Gd,t.__scopeDialog),u=x.useRef(!1),f=x.useRef(!1);return P.jsx(f3,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:p=>{t.onCloseAutoFocus?.(p),p.defaultPrevented||(u.current||i.triggerRef.current?.focus(),p.preventDefault()),u.current=!1,f.current=!1},onInteractOutside:p=>{t.onInteractOutside?.(p),p.defaultPrevented||(u.current=!0,p.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const y=p.target;i.triggerRef.current?.contains(y)&&p.preventDefault(),p.detail.originalEvent.type==="focusin"&&f.current&&p.preventDefault()}})}),f3=x.forwardRef((t,a)=>{const{__scopeDialog:i,trapFocus:u,onOpenAutoFocus:f,onCloseAutoFocus:p,...y}=t,g=ji(Gd,i),S=x.useRef(null),b=Bd(a,S);return qk(),P.jsxs(P.Fragment,{children:[P.jsx(HM,{asChild:!0,loop:!0,trapped:u,onMountAutoFocus:f,onUnmountAutoFocus:p,children:P.jsx(NM,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionId,"aria-labelledby":g.titleId,"data-state":FR(g.open),...y,ref:b,onDismiss:()=>g.onOpenChange(!1)})}),P.jsxs(P.Fragment,{children:[P.jsx(kV,{titleId:g.titleId}),P.jsx(BV,{contentRef:S,descriptionId:g.descriptionId})]})]})}),PR="DialogTitle",d3=x.forwardRef((t,a)=>{const{__scopeDialog:i,...u}=t,f=ji(PR,i);return P.jsx(Ts.h2,{id:f.titleId,...u,ref:a})});d3.displayName=PR;var h3="DialogDescription",LV=x.forwardRef((t,a)=>{const{__scopeDialog:i,...u}=t,f=ji(h3,i);return P.jsx(Ts.p,{id:f.descriptionId,...u,ref:a})});LV.displayName=h3;var p3="DialogClose",HV=x.forwardRef((t,a)=>{const{__scopeDialog:i,...u}=t,f=ji(p3,i);return P.jsx(Ts.button,{type:"button",...u,ref:a,onClick:qc(t.onClick,()=>f.onOpenChange(!1))})});HV.displayName=p3;function FR(t){return t?"open":"closed"}var m3="DialogTitleWarning",[VZ,g3]=sk(m3,{contentName:Gd,titleName:PR,docsSlug:"dialog"}),kV=({titleId:t})=>{const a=g3(m3),i=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
302
+
303
+ If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
304
+
305
+ For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return x.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},VV="DialogDescriptionWarning",BV=({contentRef:t,descriptionId:a})=>{const u=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${g3(VV).contentName}}.`;return x.useEffect(()=>{const f=t.current?.getAttribute("aria-describedby");a&&f&&(document.getElementById(a)||console.warn(u))},[u,t,a]),null},GV=o3,YV=l3,IV=u3,qV=s3,$V=c3,ZV=d3;function XV(t){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",a.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}const y3=ot.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),cv=()=>{const t=ot.useContext(y3);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};XV(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
306
+ [data-state=closed]
307
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function PV(){const t=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}function FV(){return QR(/^Mac/)}function QV(){return QR(/^iPhone/)}function v3(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function JV(){return QR(/^iPad/)||FV()&&navigator.maxTouchPoints>1}function b3(){return QV()||JV()}function QR(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const KV=24,WV=typeof window<"u"?x.useLayoutEffect:x.useEffect;function S3(...t){return(...a)=>{for(let i of t)typeof i=="function"&&i(...a)}}const JR=typeof document<"u"&&window.visualViewport;function E3(t){let a=window.getComputedStyle(t);return/(auto|scroll)/.test(a.overflow+a.overflowX+a.overflowY)}function w3(t){for(E3(t)&&(t=t.parentElement);t&&!E3(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const eB=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let VS=0,KR;function tB(t={}){let{isDisabled:a}=t;WV(()=>{if(!a)return VS++,VS===1&&b3()&&(KR=nB()),()=>{VS--,VS===0&&KR?.()}},[a])}function nB(){let t,a=0,i=T=>{t=w3(T.target),!(t===document.documentElement&&t===document.body)&&(a=T.changedTouches[0].pageY)},u=T=>{if(!t||t===document.documentElement||t===document.body){T.preventDefault();return}let O=T.changedTouches[0].pageY,_=t.scrollTop,A=t.scrollHeight-t.clientHeight;A!==0&&((_<=0&&O>a||_>=A&&O<a)&&T.preventDefault(),a=O)},f=T=>{let O=T.target;WR(O)&&O!==document.activeElement&&(T.preventDefault(),O.style.transform="translateY(-2000px)",O.focus(),requestAnimationFrame(()=>{O.style.transform=""}))},p=T=>{let O=T.target;WR(O)&&(O.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{O.style.transform="",JR&&(JR.height<window.innerHeight?requestAnimationFrame(()=>{T3(O)}):JR.addEventListener("resize",()=>T3(O),{once:!0}))}))},y=()=>{window.scrollTo(0,0)},g=window.pageXOffset,S=window.pageYOffset,b=S3(aB(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let E=S3(fv(document,"touchstart",i,{passive:!1,capture:!0}),fv(document,"touchmove",u,{passive:!1,capture:!0}),fv(document,"touchend",f,{passive:!1,capture:!0}),fv(document,"focus",p,!0),fv(window,"scroll",y));return()=>{b(),E(),window.scrollTo(g,S)}}function aB(t,a,i){let u=t.style[a];return t.style[a]=i,()=>{t.style[a]=u}}function fv(t,a,i,u){return t.addEventListener(a,i,u),()=>{t.removeEventListener(a,i,u)}}function T3(t){let a=document.scrollingElement||document.documentElement;for(;t&&t!==a;){let i=w3(t);if(i!==document.documentElement&&i!==document.body&&i!==t){let u=i.getBoundingClientRect().top,f=t.getBoundingClientRect().top,p=t.getBoundingClientRect().bottom;const y=i.getBoundingClientRect().bottom+KV;p>y&&(i.scrollTop+=f-u)}t=i.parentElement}}function WR(t){return t instanceof HTMLInputElement&&!eB.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function oB(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function rB(...t){return a=>t.forEach(i=>oB(i,a))}function R3(...t){return x.useCallback(rB(...t),t)}const O3=new WeakMap;function lo(t,a,i=!1){if(!t||!(t instanceof HTMLElement))return;let u={};Object.entries(a).forEach(([f,p])=>{if(f.startsWith("--")){t.style.setProperty(f,p);return}u[f]=t.style[f],t.style[f]=p}),!i&&O3.set(t,u)}function lB(t,a){if(!t||!(t instanceof HTMLElement))return;let i=O3.get(t);i&&(t.style[a]=i[a])}const Ia=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function BS(t,a){if(!t)return null;const i=window.getComputedStyle(t),u=i.transform||i.webkitTransform||i.mozTransform;let f=u.match(/^matrix3d\((.+)\)$/);return f?parseFloat(f[1].split(", ")[Ia(a)?13:12]):(f=u.match(/^matrix\((.+)\)$/),f?parseFloat(f[1].split(", ")[Ia(a)?5:4]):null)}function iB(t){return 8*(Math.log(t+1)-2)}function eO(t,a){if(!t)return()=>{};const i=t.style.cssText;return Object.assign(t.style,a),()=>{t.style.cssText=i}}function uB(...t){return(...a)=>{for(const i of t)typeof i=="function"&&i(...a)}}const ba={DURATION:.5,EASE:[.32,.72,0,1]},C3=.4,sB=.25,cB=100,x3=8,Yd=16,tO=26,nO="vaul-dragging";function _3(t){const a=ot.useRef(t);return ot.useEffect(()=>{a.current=t}),ot.useMemo(()=>(...i)=>a.current==null?void 0:a.current.call(a,...i),[])}function fB({defaultProp:t,onChange:a}){const i=ot.useState(t),[u]=i,f=ot.useRef(u),p=_3(a);return ot.useEffect(()=>{f.current!==u&&(p(u),f.current=u)},[u,f,p]),i}function A3({prop:t,defaultProp:a,onChange:i=()=>{}}){const[u,f]=fB({defaultProp:a,onChange:i}),p=t!==void 0,y=p?t:u,g=_3(i),S=ot.useCallback(b=>{if(p){const T=typeof b=="function"?b(t):b;T!==t&&g(T)}else f(b)},[p,t,f,g]);return[y,S]}function dB({activeSnapPointProp:t,setActiveSnapPointProp:a,snapPoints:i,drawerRef:u,overlayRef:f,fadeFromIndex:p,onSnapPointChange:y,direction:g="bottom",container:S,snapToSequentialPoint:b}){const[E,T]=A3({prop:t,defaultProp:i?.[0],onChange:a}),[O,_]=ot.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ot.useEffect(()=>{function V(){_({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",V),()=>window.removeEventListener("resize",V)},[]);const A=ot.useMemo(()=>E===i?.[i.length-1]||null,[i,E]),D=ot.useMemo(()=>{var V;return(V=i?.findIndex(X=>X===E))!=null?V:null},[i,E]),N=i&&i.length>0&&(p||p===0)&&!Number.isNaN(p)&&i[p]===E||!i,M=ot.useMemo(()=>{const V=S?{width:S.getBoundingClientRect().width,height:S.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var X;return(X=i?.map(le=>{const K=typeof le=="string";let fe=0;if(K&&(fe=parseInt(le,10)),Ia(g)){const ee=K?fe:O?le*V.height:0;return O?g==="bottom"?V.height-ee:-V.height+ee:ee}const ie=K?fe:O?le*V.width:0;return O?g==="right"?V.width-ie:-V.width+ie:ie}))!=null?X:[]},[i,O,S]),q=ot.useMemo(()=>D!==null?M?.[D]:null,[M,D]),I=ot.useCallback(V=>{var X;const le=(X=M?.findIndex(K=>K===V))!=null?X:null;y(le),lo(u.current,{transition:`transform ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`,transform:Ia(g)?`translate3d(0, ${V}px, 0)`:`translate3d(${V}px, 0, 0)`}),M&&le!==M.length-1&&p!==void 0&&le!==p&&le<p?lo(f.current,{transition:`opacity ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`,opacity:"0"}):lo(f.current,{transition:`opacity ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`,opacity:"1"}),T(i?.[Math.max(le,0)])},[u.current,i,M,p,f,T]);ot.useEffect(()=>{if(E||t){var V;const X=(V=i?.findIndex(le=>le===t||le===E))!=null?V:-1;M&&X!==-1&&typeof M[X]=="number"&&I(M[X])}},[E,t,i,M,I]);function Y({draggedDistance:V,closeDrawer:X,velocity:le,dismissible:K}){if(p===void 0)return;const fe=g==="bottom"||g==="right"?(q??0)-V:(q??0)+V,ie=D===p-1,ee=D===0,te=V>0;if(ie&&lo(f.current,{transition:`opacity ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`}),!b&&le>2&&!te){K?X():I(M[0]);return}if(!b&&le>2&&te&&M&&i){I(M[i.length-1]);return}const J=M?.reduce((B,F)=>typeof B!="number"||typeof F!="number"?B:Math.abs(F-fe)<Math.abs(B-fe)?F:B),L=Ia(g)?window.innerHeight:window.innerWidth;if(le>C3&&Math.abs(V)<L*.4){const B=te?1:-1;if(B>0&&A&&i){I(M[i.length-1]);return}if(ee&&B<0&&K&&X(),D===null)return;I(M[D+B]);return}I(J)}function H({draggedDistance:V}){if(q===null)return;const X=g==="bottom"||g==="right"?q-V:q+V;(g==="bottom"||g==="right")&&X<M[M.length-1]||(g==="top"||g==="left")&&X>M[M.length-1]||lo(u.current,{transform:Ia(g)?`translate3d(0, ${X}px, 0)`:`translate3d(${X}px, 0, 0)`})}function Z(V,X){if(!i||typeof D!="number"||!M||p===void 0)return null;const le=D===p-1;if(D>=p&&X)return 0;if(le&&!X)return 1;if(!N&&!le)return null;const fe=le?D+1:D-1,ie=le?M[fe]-M[fe-1]:M[fe+1]-M[fe],ee=V/Math.abs(ie);return le?1-ee:ee}return{isLastSnapPoint:A,activeSnapPoint:E,shouldFade:N,getPercentageDragged:Z,setActiveSnapPoint:T,activeSnapPointIndex:D,onRelease:Y,onDrag:H,snapPointsOffset:M}}const hB=()=>()=>{};function pB(){const{direction:t,isOpen:a,shouldScaleBackground:i,setBackgroundColorOnScale:u,noBodyStyles:f}=cv(),p=ot.useRef(null),y=x.useMemo(()=>document.body.style.backgroundColor,[]);function g(){return(window.innerWidth-tO)/window.innerWidth}ot.useEffect(()=>{if(a&&i){p.current&&clearTimeout(p.current);const S=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!S)return;uB(u&&!f?eO(document.body,{background:"black"}):hB,eO(S,{transformOrigin:Ia(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ba.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ba.EASE.join(",")})`}));const b=eO(S,{borderRadius:`${x3}px`,overflow:"hidden",...Ia(t)?{transform:`scale(${g()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${g()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{b(),p.current=window.setTimeout(()=>{y?document.body.style.background=y:document.body.style.removeProperty("background")},ba.DURATION*1e3)}}},[a,i,y])}let dv=null;function mB({isOpen:t,modal:a,nested:i,hasBeenOpened:u,preventScrollRestoration:f,noBodyStyles:p}){const[y,g]=ot.useState(()=>typeof window<"u"?window.location.href:""),S=ot.useRef(0),b=ot.useCallback(()=>{if(v3()&&dv===null&&t&&!p){dv={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:T,innerHeight:O}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-S.current}px`,left:`${-T}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const _=O-window.innerHeight;_&&S.current>=O&&(document.body.style.top=`${-(S.current+_)}px`)}),300)}},[t]),E=ot.useCallback(()=>{if(v3()&&dv!==null&&!p){const T=-parseInt(document.body.style.top,10),O=-parseInt(document.body.style.left,10);Object.assign(document.body.style,dv),window.requestAnimationFrame(()=>{if(f&&y!==window.location.href){g(window.location.href);return}window.scrollTo(O,T)}),dv=null}},[y]);return ot.useEffect(()=>{function T(){S.current=window.scrollY}return T(),window.addEventListener("scroll",T),()=>{window.removeEventListener("scroll",T)}},[]),ot.useEffect(()=>{if(a)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||E()}},[a,E]),ot.useEffect(()=>{i||!u||(t?(!window.matchMedia("(display-mode: standalone)").matches&&b(),a||window.setTimeout(()=>{E()},500)):E())},[t,u,y,a,i,b,E]),{restorePositionSetting:E}}function gB({open:t,onOpenChange:a,children:i,onDrag:u,onRelease:f,snapPoints:p,shouldScaleBackground:y=!1,setBackgroundColorOnScale:g=!0,closeThreshold:S=sB,scrollLockTimeout:b=cB,dismissible:E=!0,handleOnly:T=!1,fadeFromIndex:O=p&&p.length-1,activeSnapPoint:_,setActiveSnapPoint:A,fixed:D,modal:N=!0,onClose:M,nested:q,noBodyStyles:I=!1,direction:Y="bottom",defaultOpen:H=!1,disablePreventScroll:Z=!0,snapToSequentialPoint:V=!1,preventScrollRestoration:X=!1,repositionInputs:le=!0,onAnimationEnd:K,container:fe,autoFocus:ie=!1}){var ee,te;const[J=!1,L]=A3({defaultProp:H,prop:t,onChange:W=>{a?.(W),!W&&!q&&ct(),setTimeout(()=>{K?.(W)},ba.DURATION*1e3),W&&!N&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),W||(document.body.style.pointerEvents="auto")}}),[B,F]=ot.useState(!1),[ne,ce]=ot.useState(!1),[j,Q]=ot.useState(!1),oe=ot.useRef(null),de=ot.useRef(null),ve=ot.useRef(null),_e=ot.useRef(null),Te=ot.useRef(null),Ue=ot.useRef(!1),Ge=ot.useRef(null),We=ot.useRef(0),Ne=ot.useRef(!1),Ze=ot.useRef(!H),lt=ot.useRef(0),Xe=ot.useRef(null),ht=ot.useRef(((ee=Xe.current)==null?void 0:ee.getBoundingClientRect().height)||0),$e=ot.useRef(((te=Xe.current)==null?void 0:te.getBoundingClientRect().width)||0),Qe=ot.useRef(0),dt=ot.useCallback(W=>{p&&W===Ce.length-1&&(de.current=new Date)},[]),{activeSnapPoint:et,activeSnapPointIndex:Ve,setActiveSnapPoint:Re,onRelease:je,snapPointsOffset:Ce,onDrag:we,shouldFade:tt,getPercentageDragged:pt}=dB({snapPoints:p,activeSnapPointProp:_,setActiveSnapPointProp:A,drawerRef:Xe,fadeFromIndex:O,overlayRef:oe,onSnapPointChange:dt,direction:Y,container:fe,snapToSequentialPoint:V});tB({isDisabled:!J||ne||!N||j||!B||!le||!Z});const{restorePositionSetting:ct}=mB({isOpen:J,modal:N,nested:q??!1,hasBeenOpened:B,preventScrollRestoration:X,noBodyStyles:I});function yt(){return(window.innerWidth-tO)/window.innerWidth}function ln(W){var Se,De;!E&&!p||Xe.current&&!Xe.current.contains(W.target)||(ht.current=((Se=Xe.current)==null?void 0:Se.getBoundingClientRect().height)||0,$e.current=((De=Xe.current)==null?void 0:De.getBoundingClientRect().width)||0,ce(!0),ve.current=new Date,b3()&&window.addEventListener("touchend",()=>Ue.current=!1,{once:!0}),W.target.setPointerCapture(W.pointerId),We.current=Ia(Y)?W.pageY:W.pageX)}function Rt(W,Se){var De;let Ie=W;const Pe=(De=window.getSelection())==null?void 0:De.toString(),Fe=Xe.current?BS(Xe.current,Y):null,ut=new Date;if(Ie.tagName==="SELECT"||Ie.hasAttribute("data-vaul-no-drag")||Ie.closest("[data-vaul-no-drag]"))return!1;if(Y==="right"||Y==="left")return!0;if(de.current&&ut.getTime()-de.current.getTime()<500)return!1;if(Fe!==null&&(Y==="bottom"?Fe>0:Fe<0))return!0;if(Pe&&Pe.length>0)return!1;if(Te.current&&ut.getTime()-Te.current.getTime()<b&&Fe===0||Se)return Te.current=ut,!1;for(;Ie;){if(Ie.scrollHeight>Ie.clientHeight){if(Ie.scrollTop!==0)return Te.current=new Date,!1;if(Ie.getAttribute("role")==="dialog")return!0}Ie=Ie.parentNode}return!0}function Qt(W){if(Xe.current&&ne){const Se=Y==="bottom"||Y==="right"?1:-1,De=(We.current-(Ia(Y)?W.pageY:W.pageX))*Se,Ie=De>0,Pe=p&&!E&&!Ie;if(Pe&&Ve===0)return;const Fe=Math.abs(De),ut=document.querySelector("[data-vaul-drawer-wrapper]"),ft=Y==="bottom"||Y==="top"?ht.current:$e.current;let tn=Fe/ft;const Tn=pt(Fe,Ie);if(Tn!==null&&(tn=Tn),Pe&&tn>=1||!Ue.current&&!Rt(W.target,Ie))return;if(Xe.current.classList.add(nO),Ue.current=!0,lo(Xe.current,{transition:"none"}),lo(oe.current,{transition:"none"}),p&&we({draggedDistance:De}),Ie&&!p){const Rn=iB(De),Ea=Math.min(Rn*-1,0)*Se;lo(Xe.current,{transform:Ia(Y)?`translate3d(0, ${Ea}px, 0)`:`translate3d(${Ea}px, 0, 0)`});return}const Zn=1-tn;if((tt||O&&Ve===O-1)&&(u?.(W,tn),lo(oe.current,{opacity:`${Zn}`,transition:"none"},!0)),ut&&oe.current&&y){const Rn=Math.min(yt()+tn*(1-yt()),1),Ea=8-tn*8,da=Math.max(0,14-tn*14);lo(ut,{borderRadius:`${Ea}px`,transform:Ia(Y)?`scale(${Rn}) translate3d(0, ${da}px, 0)`:`scale(${Rn}) translate3d(${da}px, 0, 0)`,transition:"none"},!0)}if(!p){const Rn=Fe*Se;lo(Xe.current,{transform:Ia(Y)?`translate3d(0, ${Rn}px, 0)`:`translate3d(${Rn}px, 0, 0)`})}}}ot.useEffect(()=>{window.requestAnimationFrame(()=>{Ze.current=!0})},[]),ot.useEffect(()=>{var W;function Se(){if(!Xe.current||!le)return;const De=document.activeElement;if(WR(De)||Ne.current){var Ie;const Pe=((Ie=window.visualViewport)==null?void 0:Ie.height)||0,Fe=window.innerHeight;let ut=Fe-Pe;const ft=Xe.current.getBoundingClientRect().height||0,tn=ft>Fe*.8;Qe.current||(Qe.current=ft);const Tn=Xe.current.getBoundingClientRect().top;if(Math.abs(lt.current-ut)>60&&(Ne.current=!Ne.current),p&&p.length>0&&Ce&&Ve){const Zn=Ce[Ve]||0;ut+=Zn}if(lt.current=ut,ft>Pe||Ne.current){const Zn=Xe.current.getBoundingClientRect().height;let Rn=Zn;Zn>Pe&&(Rn=Pe-(tn?Tn:tO)),D?Xe.current.style.height=`${Zn-Math.max(ut,0)}px`:Xe.current.style.height=`${Math.max(Rn,Pe-Tn)}px`}else PV()||(Xe.current.style.height=`${Qe.current}px`);p&&p.length>0&&!Ne.current?Xe.current.style.bottom="0px":Xe.current.style.bottom=`${Math.max(ut,0)}px`}}return(W=window.visualViewport)==null||W.addEventListener("resize",Se),()=>{var De;return(De=window.visualViewport)==null?void 0:De.removeEventListener("resize",Se)}},[Ve,p,Ce]);function xt(W){Ot(),M?.(),W||L(!1),setTimeout(()=>{p&&Re(p[0])},ba.DURATION*1e3)}function Nt(){if(!Xe.current)return;const W=document.querySelector("[data-vaul-drawer-wrapper]"),Se=BS(Xe.current,Y);lo(Xe.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`}),lo(oe.current,{transition:`opacity ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`,opacity:"1"}),y&&Se&&Se>0&&J&&lo(W,{borderRadius:`${x3}px`,overflow:"hidden",...Ia(Y)?{transform:`scale(${yt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${yt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ba.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ba.EASE.join(",")})`},!0)}function Ot(){!ne||!Xe.current||(Xe.current.classList.remove(nO),Ue.current=!1,ce(!1),_e.current=new Date)}function Wt(W){if(!ne||!Xe.current)return;Xe.current.classList.remove(nO),Ue.current=!1,ce(!1),_e.current=new Date;const Se=BS(Xe.current,Y);if(!W||!Rt(W.target,!1)||!Se||Number.isNaN(Se)||ve.current===null)return;const De=_e.current.getTime()-ve.current.getTime(),Ie=We.current-(Ia(Y)?W.pageY:W.pageX),Pe=Math.abs(Ie)/De;if(Pe>.05&&(Q(!0),setTimeout(()=>{Q(!1)},200)),p){je({draggedDistance:Ie*(Y==="bottom"||Y==="right"?1:-1),closeDrawer:xt,velocity:Pe,dismissible:E}),f?.(W,!0);return}if(Y==="bottom"||Y==="right"?Ie>0:Ie<0){Nt(),f?.(W,!0);return}if(Pe>C3){xt(),f?.(W,!1);return}var Fe;const ut=Math.min((Fe=Xe.current.getBoundingClientRect().height)!=null?Fe:0,window.innerHeight);var ft;const tn=Math.min((ft=Xe.current.getBoundingClientRect().width)!=null?ft:0,window.innerWidth),Tn=Y==="left"||Y==="right";if(Math.abs(Se)>=(Tn?tn:ut)*S){xt(),f?.(W,!1);return}f?.(W,!0),Nt()}ot.useEffect(()=>(J&&(lo(document.documentElement,{scrollBehavior:"auto"}),de.current=new Date),()=>{lB(document.documentElement,"scrollBehavior")}),[J]);function en(W){const Se=W?(window.innerWidth-Yd)/window.innerWidth:1,De=W?-Yd:0;Ge.current&&window.clearTimeout(Ge.current),lo(Xe.current,{transition:`transform ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`,transform:Ia(Y)?`scale(${Se}) translate3d(0, ${De}px, 0)`:`scale(${Se}) translate3d(${De}px, 0, 0)`}),!W&&Xe.current&&(Ge.current=setTimeout(()=>{const Ie=BS(Xe.current,Y);lo(Xe.current,{transition:"none",transform:Ia(Y)?`translate3d(0, ${Ie}px, 0)`:`translate3d(${Ie}px, 0, 0)`})},500))}function yn(W,Se){if(Se<0)return;const De=(window.innerWidth-Yd)/window.innerWidth,Ie=De+Se*(1-De),Pe=-Yd+Se*Yd;lo(Xe.current,{transform:Ia(Y)?`scale(${Ie}) translate3d(0, ${Pe}px, 0)`:`scale(${Ie}) translate3d(${Pe}px, 0, 0)`,transition:"none"})}function k(W,Se){const De=Ia(Y)?window.innerHeight:window.innerWidth,Ie=Se?(De-Yd)/De:1,Pe=Se?-Yd:0;Se&&lo(Xe.current,{transition:`transform ${ba.DURATION}s cubic-bezier(${ba.EASE.join(",")})`,transform:Ia(Y)?`scale(${Ie}) translate3d(0, ${Pe}px, 0)`:`scale(${Ie}) translate3d(${Pe}px, 0, 0)`})}return ot.useEffect(()=>{N||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[N]),ot.createElement(GV,{defaultOpen:H,onOpenChange:W=>{!E&&!W||(W?F(!0):xt(!0),L(W))},open:J},ot.createElement(y3.Provider,{value:{activeSnapPoint:et,snapPoints:p,setActiveSnapPoint:Re,drawerRef:Xe,overlayRef:oe,onOpenChange:a,onPress:ln,onRelease:Wt,onDrag:Qt,dismissible:E,shouldAnimate:Ze,handleOnly:T,isOpen:J,isDragging:ne,shouldFade:tt,closeDrawer:xt,onNestedDrag:yn,onNestedOpenChange:en,onNestedRelease:k,keyboardIsOpen:Ne,modal:N,snapPointsOffset:Ce,activeSnapPointIndex:Ve,direction:Y,shouldScaleBackground:y,setBackgroundColorOnScale:g,noBodyStyles:I,container:fe,autoFocus:ie}},i))}const D3=ot.forwardRef(function({...t},a){const{overlayRef:i,snapPoints:u,onRelease:f,shouldFade:p,isOpen:y,modal:g,shouldAnimate:S}=cv(),b=R3(a,i),E=u&&u.length>0;if(!g)return null;const T=ot.useCallback(O=>f(O),[f]);return ot.createElement(qV,{onMouseUp:T,ref:b,"data-vaul-overlay":"","data-vaul-snap-points":y&&E?"true":"false","data-vaul-snap-points-overlay":y&&p?"true":"false","data-vaul-animate":S?.current?"true":"false",...t})});D3.displayName="Drawer.Overlay";const M3=ot.forwardRef(function({onPointerDownOutside:t,style:a,onOpenAutoFocus:i,...u},f){const{drawerRef:p,onPress:y,onRelease:g,onDrag:S,keyboardIsOpen:b,snapPointsOffset:E,activeSnapPointIndex:T,modal:O,isOpen:_,direction:A,snapPoints:D,container:N,handleOnly:M,shouldAnimate:q,autoFocus:I}=cv(),[Y,H]=ot.useState(!1),Z=R3(f,p),V=ot.useRef(null),X=ot.useRef(null),le=ot.useRef(!1),K=D&&D.length>0;pB();const fe=(ee,te,J=0)=>{if(le.current)return!0;const L=Math.abs(ee.y),B=Math.abs(ee.x),F=B>L,ne=["bottom","right"].includes(te)?1:-1;if(te==="left"||te==="right"){if(!(ee.x*ne<0)&&B>=0&&B<=J)return F}else if(!(ee.y*ne<0)&&L>=0&&L<=J)return!F;return le.current=!0,!0};ot.useEffect(()=>{K&&window.requestAnimationFrame(()=>{H(!0)})},[]);function ie(ee){V.current=null,le.current=!1,g(ee)}return ot.createElement($V,{"data-vaul-drawer-direction":A,"data-vaul-drawer":"","data-vaul-delayed-snap-points":Y?"true":"false","data-vaul-snap-points":_&&K?"true":"false","data-vaul-custom-container":N?"true":"false","data-vaul-animate":q?.current?"true":"false",...u,ref:Z,style:E&&E.length>0?{"--snap-point-height":`${E[T??0]}px`,...a}:a,onPointerDown:ee=>{M||(u.onPointerDown==null||u.onPointerDown.call(u,ee),V.current={x:ee.pageX,y:ee.pageY},y(ee))},onOpenAutoFocus:ee=>{i?.(ee),I||ee.preventDefault()},onPointerDownOutside:ee=>{if(t?.(ee),!O||ee.defaultPrevented){ee.preventDefault();return}b.current&&(b.current=!1)},onFocusOutside:ee=>{if(!O){ee.preventDefault();return}},onPointerMove:ee=>{if(X.current=ee,M||(u.onPointerMove==null||u.onPointerMove.call(u,ee),!V.current))return;const te=ee.pageY-V.current.y,J=ee.pageX-V.current.x,L=ee.pointerType==="touch"?10:2;fe({x:J,y:te},A,L)?S(ee):(Math.abs(J)>L||Math.abs(te)>L)&&(V.current=null)},onPointerUp:ee=>{u.onPointerUp==null||u.onPointerUp.call(u,ee),V.current=null,le.current=!1,g(ee)},onPointerOut:ee=>{u.onPointerOut==null||u.onPointerOut.call(u,ee),ie(X.current)},onContextMenu:ee=>{u.onContextMenu==null||u.onContextMenu.call(u,ee),X.current&&ie(X.current)}})});M3.displayName="Drawer.Content";const yB=250,vB=120,bB=ot.forwardRef(function({preventCycle:t=!1,children:a,...i},u){const{closeDrawer:f,isDragging:p,snapPoints:y,activeSnapPoint:g,setActiveSnapPoint:S,dismissible:b,handleOnly:E,isOpen:T,onPress:O,onDrag:_}=cv(),A=ot.useRef(null),D=ot.useRef(!1);function N(){if(D.current){I();return}window.setTimeout(()=>{M()},vB)}function M(){if(p||t||D.current){I();return}if(I(),!y||y.length===0){b||f();return}if(g===y[y.length-1]&&b){f();return}const H=y.findIndex(V=>V===g);if(H===-1)return;const Z=y[H+1];S(Z)}function q(){A.current=window.setTimeout(()=>{D.current=!0},yB)}function I(){A.current&&window.clearTimeout(A.current),D.current=!1}return ot.createElement("div",{onClick:N,onPointerCancel:I,onPointerDown:Y=>{E&&O(Y),q()},onPointerMove:Y=>{E&&_(Y)},ref:u,"data-vaul-drawer-visible":T?"true":"false","data-vaul-handle":"","aria-hidden":"true",...i},ot.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},a))});bB.displayName="Drawer.Handle";function SB(t){const a=cv(),{container:i=a.container,...u}=t;return ot.createElement(IV,{container:i,...u})}const om={Root:gB,Content:M3,Overlay:D3,Trigger:YV,Portal:SB,Title:ZV};function z3({trigger:t,title:a,description:i,children:u,open:f,showCloseIcon:p=!0,onOpenChange:y,zIndex:g,classNames:S}){return uk("(min-width: 1024px)")?P.jsxs(LD,{open:f,onOpenChange:y,disablePointerDismissal:!0,children:[t&&P.jsx(pR,{className:S?.trigger,children:t}),P.jsxs(dR,{children:[P.jsx(iR,{style:{zIndex:g},className:"fixed inset-0 bg-black/70 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm"}),P.jsxs(fR,{style:{zIndex:g},className:Ld("fixed top-1/2 left-1/2 w-96 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-gray-50 p-4 text-gray-900 transition-all duration-150 data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 z-[991]",S?.desktopPopup),children:[a&&P.jsx(hR,{className:Ld("-mt-1.5 mb-1 text-lg font-medium",S?.title),children:a}),i&&P.jsx(sR,{className:Ld("mb-6 text-base text-gray-600",S?.description),children:i}),p&&P.jsx(uR,{className:"absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5",children:P.jsx(RM,{})}),P.jsx("div",{children:u})]})]})]}):P.jsxs(om.Root,{open:f,onOpenChange:y,children:[t&&P.jsx(om.Trigger,{className:S?.trigger,children:t}),P.jsxs(om.Portal,{children:[P.jsx(om.Overlay,{style:{zIndex:g},className:Ld("fixed inset-0 bg-black/70 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm",S?.backdrop)}),P.jsxs(om.Content,{style:{zIndex:g},className:Ld("h-fit fixed bottom-0 left-0 right-0 outline-none z-[991]",S?.mobilePopup),children:[P.jsx(om.Title,{className:"hidden"}),P.jsxs("div",{className:"p-4 bg-white rounded-t-xl",children:[P.jsx("div",{"aria-hidden":!0,className:"mx-auto w-12 h-1.5 flex-shrink-0 rounded-full bg-gray-300 mb-4"}),P.jsx("div",{children:u})]})]})]})]})}function N3({checked:t,onChange:a}){const[i,u]=x.useState(!1),[f,p]=x.useState(!1);return P.jsxs("div",{children:[P.jsx(z3,{title:"用户协议",open:i,onOpenChange:u,zIndex:993,classNames:{desktopPopup:"w-[90vw] lg:w-[60vw]"},children:P.jsx("iframe",{src:"https://www.gatribe.com/license-light.html?channel_id=1&game_id=5327",className:"w-full h-[70vh]"})}),P.jsx(z3,{title:"隐私政策",open:f,onOpenChange:p,zIndex:993,classNames:{desktopPopup:"w-[90vw] lg:w-[60vw]"},children:P.jsx("iframe",{src:"https://www.gatribe.com/privacy-light.html?channel_id=1&game_id=5327",className:"w-full h-[70vh]"})}),P.jsx(Ni,{name:"rememberLogin",children:P.jsxs(RR,{className:"flex items-center justify-center text-gray-500 text-xs md:text-sm",children:[P.jsx(wR,{checked:t,className:"size-4 md:size-5 flex items-center justify-center rounded-full border-2 data-[checked]:border-[var(--jssdk-primary-color)] data-[unchecked]:border-[var(--jssdk-input-border-color)]",onCheckedChange:y=>a(!!y),children:P.jsx(TR,{children:P.jsx(jR,{className:"size-3 text-[var(--jssdk-primary-color)]",strokeWidth:4})})}),P.jsx("span",{className:"ml-2",children:"我已详细阅读并同意"}),P.jsx(Ui,{className:"text-[var(--jssdk-primary-color)]",onClick:()=>u(!0),type:"button",children:"《用户协议》"}),P.jsx("span",{children:"及"}),P.jsx(Ui,{className:"text-[var(--jssdk-primary-color)]",onClick:()=>p(!0),type:"button",children:"《隐私政策》"})]})})]})}function EB(){const{gameId:t,onAccountLoginSuccess:a,onLoginSuccess:i,onLoginError:u,triggerRealNameAuth:f}=vs(),p=x.useRef(null),[y,g]=x.useState(""),[S,b]=x.useState(""),[E,T]=x.useState(!1),[O,_]=x.useState(!0),{mutate:A,isPending:D}=zp({mutationFn:()=>XH({account:y,password:S}),onSuccess:M=>{const q={account:M.account,entity:M.channel_info.entity,token:M.channel_info.token,sign:M.channel_info.sign,accid:M.channel_info.entity.openid,extra_data:M.channel_info.extra_data,gaplaySign:M.channel_info.gaplaySign,realname:M.channel_info.realname};if(mS(q,M._auth,t),q.realname&&q.realname.reject>=2){f();return}a?.(q),i?.(q)},onError:M=>{u?.(M)}});async function N(M){if(M.preventDefault(),!O){wu.warning("请先阅读并同意用户协议和隐私政策");return}if(!y||!S){wu.warning("请输入账号和密码");return}A()}return P.jsx(P.Fragment,{children:P.jsxs(lv,{ref:p,onSubmit:N,className:"space-y-5",children:[P.jsxs(Ni,{name:"account",className:"flex items-center border border-[var(--jssdk-input-border-color)] rounded-full bg-white px-3 gap-2 h-12",children:[P.jsx(ek,{className:"size-5 text-gray-400"}),P.jsx(Ss,{className:"flex-1 outline-none rounded-full h-full pl-1",placeholder:"请输入巨人通行证账号",autoFocus:!0,onChange:M=>g(M.currentTarget.value)})]}),P.jsxs(Ni,{name:"password",className:"flex items-center border border-[var(--jssdk-input-border-color)] rounded-full bg-white px-3 gap-2 h-12",children:[P.jsx(tk,{className:"size-5 text-gray-400"}),P.jsx(Ss,{type:E?"text":"password",autoComplete:"off",className:"flex-1 w-0 outline-none rounded-full h-full pl-1",placeholder:"请输入密码",value:S,onValueChange:M=>b(M)}),P.jsx(Ui,{onClick:()=>T(!E),type:"button",children:E?P.jsx(GH,{className:"size-5 text-gray-400"}):P.jsx(BH,{className:"size-5 text-gray-400"})})]}),P.jsxs("section",{children:[P.jsx("div",{className:"flex justify-end mb-1",children:P.jsx(Ui,{className:"text-[var(--jssdk-primary-color)]",as:"a",href:"https://my.ztgame.com/plugin/pwd",children:"忘记密码"})}),P.jsx(Ui,{className:"h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",type:"submit",disabled:D,children:"登录"})]}),P.jsx(xS,{}),P.jsx(N3,{checked:O,onChange:_})]})})}var wB=function(t){return typeof t=="number"};function TB(t){var a=x.useRef(t);return a.current=t,a}var GS={exports:{}},RB=GS.exports,U3;function OB(){return U3||(U3=1,(function(t,a){(function(i,u){t.exports=u()})(RB,(function(){var i=1e3,u=6e4,f=36e5,p="millisecond",y="second",g="minute",S="hour",b="day",E="week",T="month",O="quarter",_="year",A="date",D="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(te){var J=["th","st","nd","rd"],L=te%100;return"["+te+(J[(L-20)%10]||J[L]||J[0])+"]"}},I=function(te,J,L){var B=String(te);return!B||B.length>=J?te:""+Array(J+1-B.length).join(L)+te},Y={s:I,z:function(te){var J=-te.utcOffset(),L=Math.abs(J),B=Math.floor(L/60),F=L%60;return(J<=0?"+":"-")+I(B,2,"0")+":"+I(F,2,"0")},m:function te(J,L){if(J.date()<L.date())return-te(L,J);var B=12*(L.year()-J.year())+(L.month()-J.month()),F=J.clone().add(B,T),ne=L-F<0,ce=J.clone().add(B+(ne?-1:1),T);return+(-(B+(L-F)/(ne?F-ce:ce-F))||0)},a:function(te){return te<0?Math.ceil(te)||0:Math.floor(te)},p:function(te){return{M:T,y:_,w:E,d:b,D:A,h:S,m:g,s:y,ms:p,Q:O}[te]||String(te||"").toLowerCase().replace(/s$/,"")},u:function(te){return te===void 0}},H="en",Z={};Z[H]=q;var V="$isDayjsObject",X=function(te){return te instanceof ie||!(!te||!te[V])},le=function te(J,L,B){var F;if(!J)return H;if(typeof J=="string"){var ne=J.toLowerCase();Z[ne]&&(F=ne),L&&(Z[ne]=L,F=ne);var ce=J.split("-");if(!F&&ce.length>1)return te(ce[0])}else{var j=J.name;Z[j]=J,F=j}return!B&&F&&(H=F),F||!B&&H},K=function(te,J){if(X(te))return te.clone();var L=typeof J=="object"?J:{};return L.date=te,L.args=arguments,new ie(L)},fe=Y;fe.l=le,fe.i=X,fe.w=function(te,J){return K(te,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var ie=(function(){function te(L){this.$L=le(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[V]=!0}var J=te.prototype;return J.parse=function(L){this.$d=(function(B){var F=B.date,ne=B.utc;if(F===null)return new Date(NaN);if(fe.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var ce=F.match(N);if(ce){var j=ce[2]-1||0,Q=(ce[7]||"0").substring(0,3);return ne?new Date(Date.UTC(ce[1],j,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,Q)):new Date(ce[1],j,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,Q)}}return new Date(F)})(L),this.init()},J.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},J.$utils=function(){return fe},J.isValid=function(){return this.$d.toString()!==D},J.isSame=function(L,B){var F=K(L);return this.startOf(B)<=F&&F<=this.endOf(B)},J.isAfter=function(L,B){return K(L)<this.startOf(B)},J.isBefore=function(L,B){return this.endOf(B)<K(L)},J.$g=function(L,B,F){return fe.u(L)?this[B]:this.set(F,L)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(L,B){var F=this,ne=!!fe.u(B)||B,ce=fe.p(L),j=function(Ge,We){var Ne=fe.w(F.$u?Date.UTC(F.$y,We,Ge):new Date(F.$y,We,Ge),F);return ne?Ne:Ne.endOf(b)},Q=function(Ge,We){return fe.w(F.toDate()[Ge].apply(F.toDate("s"),(ne?[0,0,0,0]:[23,59,59,999]).slice(We)),F)},oe=this.$W,de=this.$M,ve=this.$D,_e="set"+(this.$u?"UTC":"");switch(ce){case _:return ne?j(1,0):j(31,11);case T:return ne?j(1,de):j(0,de+1);case E:var Te=this.$locale().weekStart||0,Ue=(oe<Te?oe+7:oe)-Te;return j(ne?ve-Ue:ve+(6-Ue),de);case b:case A:return Q(_e+"Hours",0);case S:return Q(_e+"Minutes",1);case g:return Q(_e+"Seconds",2);case y:return Q(_e+"Milliseconds",3);default:return this.clone()}},J.endOf=function(L){return this.startOf(L,!1)},J.$set=function(L,B){var F,ne=fe.p(L),ce="set"+(this.$u?"UTC":""),j=(F={},F[b]=ce+"Date",F[A]=ce+"Date",F[T]=ce+"Month",F[_]=ce+"FullYear",F[S]=ce+"Hours",F[g]=ce+"Minutes",F[y]=ce+"Seconds",F[p]=ce+"Milliseconds",F)[ne],Q=ne===b?this.$D+(B-this.$W):B;if(ne===T||ne===_){var oe=this.clone().set(A,1);oe.$d[j](Q),oe.init(),this.$d=oe.set(A,Math.min(this.$D,oe.daysInMonth())).$d}else j&&this.$d[j](Q);return this.init(),this},J.set=function(L,B){return this.clone().$set(L,B)},J.get=function(L){return this[fe.p(L)]()},J.add=function(L,B){var F,ne=this;L=Number(L);var ce=fe.p(B),j=function(de){var ve=K(ne);return fe.w(ve.date(ve.date()+Math.round(de*L)),ne)};if(ce===T)return this.set(T,this.$M+L);if(ce===_)return this.set(_,this.$y+L);if(ce===b)return j(1);if(ce===E)return j(7);var Q=(F={},F[g]=u,F[S]=f,F[y]=i,F)[ce]||1,oe=this.$d.getTime()+L*Q;return fe.w(oe,this)},J.subtract=function(L,B){return this.add(-1*L,B)},J.format=function(L){var B=this,F=this.$locale();if(!this.isValid())return F.invalidDate||D;var ne=L||"YYYY-MM-DDTHH:mm:ssZ",ce=fe.z(this),j=this.$H,Q=this.$m,oe=this.$M,de=F.weekdays,ve=F.months,_e=F.meridiem,Te=function(We,Ne,Ze,lt){return We&&(We[Ne]||We(B,ne))||Ze[Ne].slice(0,lt)},Ue=function(We){return fe.s(j%12||12,We,"0")},Ge=_e||function(We,Ne,Ze){var lt=We<12?"AM":"PM";return Ze?lt.toLowerCase():lt};return ne.replace(M,(function(We,Ne){return Ne||(function(Ze){switch(Ze){case"YY":return String(B.$y).slice(-2);case"YYYY":return fe.s(B.$y,4,"0");case"M":return oe+1;case"MM":return fe.s(oe+1,2,"0");case"MMM":return Te(F.monthsShort,oe,ve,3);case"MMMM":return Te(ve,oe);case"D":return B.$D;case"DD":return fe.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return Te(F.weekdaysMin,B.$W,de,2);case"ddd":return Te(F.weekdaysShort,B.$W,de,3);case"dddd":return de[B.$W];case"H":return String(j);case"HH":return fe.s(j,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return Ge(j,Q,!0);case"A":return Ge(j,Q,!1);case"m":return String(Q);case"mm":return fe.s(Q,2,"0");case"s":return String(B.$s);case"ss":return fe.s(B.$s,2,"0");case"SSS":return fe.s(B.$ms,3,"0");case"Z":return ce}return null})(We)||ce.replace(":","")}))},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(L,B,F){var ne,ce=this,j=fe.p(B),Q=K(L),oe=(Q.utcOffset()-this.utcOffset())*u,de=this-Q,ve=function(){return fe.m(ce,Q)};switch(j){case _:ne=ve()/12;break;case T:ne=ve();break;case O:ne=ve()/3;break;case E:ne=(de-oe)/6048e5;break;case b:ne=(de-oe)/864e5;break;case S:ne=de/f;break;case g:ne=de/u;break;case y:ne=de/i;break;default:ne=de}return F?ne:fe.a(ne)},J.daysInMonth=function(){return this.endOf(T).$D},J.$locale=function(){return Z[this.$L]},J.locale=function(L,B){if(!L)return this.$L;var F=this.clone(),ne=le(L,B,!0);return ne&&(F.$L=ne),F},J.clone=function(){return fe.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},te})(),ee=ie.prototype;return K.prototype=ee,[["$ms",p],["$s",y],["$m",g],["$H",S],["$W",b],["$M",T],["$y",_],["$D",A]].forEach((function(te){ee[te[1]]=function(J){return this.$g(J,te[0],te[1])}})),K.extend=function(te,J){return te.$i||(te(J,ie,K),te.$i=!0),K},K.locale=le,K.isDayjs=X,K.unix=function(te){return K(1e3*te)},K.en=Z[H],K.Ls=Z,K.p={},K}))})(GS)),GS.exports}var CB=OB();const xB=c1(CB);var aO=function(t){if(!t)return 0;var a=xB(t).valueOf()-Date.now();return a<0?0:a},_B=function(t){return{days:Math.floor(t/864e5),hours:Math.floor(t/36e5)%24,minutes:Math.floor(t/6e4)%60,seconds:Math.floor(t/1e3)%60,milliseconds:Math.floor(t)%1e3}},AB=function(t){t===void 0&&(t={});var a=t||{},i=a.leftTime,u=a.targetDate,f=a.interval,p=f===void 0?1e3:f,y=a.onEnd,g=x.useMemo(function(){return wB(i)&&i>0?Date.now()+i:void 0},[i]),S="leftTime"in t?g:u,b=M6(x.useState(function(){return aO(S)}),2),E=b[0],T=b[1],O=TB(y);x.useEffect(function(){if(!S){T(0);return}T(aO(S));var A=setInterval(function(){var D,N=aO(S);T(N),N===0&&(clearInterval(A),(D=O.current)===null||D===void 0||D.call(O))},p);return function(){return clearInterval(A)}},[S,p]);var _=x.useMemo(function(){return _B(E)},[E]);return[E,_]},j3;function qe(t,a,i){function u(g,S){if(g._zod||Object.defineProperty(g,"_zod",{value:{def:S,constr:y,traits:new Set},enumerable:!1}),g._zod.traits.has(t))return;g._zod.traits.add(t),a(g,S);const b=y.prototype,E=Object.keys(b);for(let T=0;T<E.length;T++){const O=E[T];O in g||(g[O]=b[O].bind(g))}}const f=i?.Parent??Object;class p extends f{}Object.defineProperty(p,"name",{value:t});function y(g){var S;const b=i?.Parent?new p:this;u(b,g),(S=b._zod).deferred??(S.deferred=[]);for(const E of b._zod.deferred)E();return b}return Object.defineProperty(y,"init",{value:u}),Object.defineProperty(y,Symbol.hasInstance,{value:g=>i?.Parent&&g instanceof i.Parent?!0:g?._zod?.traits?.has(t)}),Object.defineProperty(y,"name",{value:t}),y}class rm extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class L3 extends Error{constructor(a){super(`Encountered unidirectional transform during encode: ${a}`),this.name="ZodEncodeError"}}(j3=globalThis).__zod_globalConfig??(j3.__zod_globalConfig={});const oO=globalThis.__zod_globalConfig;function Id(t){return oO}function H3(t){const a=Object.values(t).filter(u=>typeof u=="number");return Object.entries(t).filter(([u,f])=>a.indexOf(+u)===-1).map(([u,f])=>f)}function rO(t,a){return typeof a=="bigint"?a.toString():a}function lO(t){return{get value(){{const a=t();return Object.defineProperty(this,"value",{value:a}),a}}}}function iO(t){return t==null}function uO(t){const a=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(a,i)}const k3=Symbol("evaluating");function Vn(t,a,i){let u;Object.defineProperty(t,a,{get(){if(u!==k3)return u===void 0&&(u=k3,u=i()),u},set(f){Object.defineProperty(t,a,{value:f})},configurable:!0})}function qd(t,a,i){Object.defineProperty(t,a,{value:i,writable:!0,enumerable:!0,configurable:!0})}function Zc(...t){const a={};for(const i of t){const u=Object.getOwnPropertyDescriptors(i);Object.assign(a,u)}return Object.defineProperties({},a)}function V3(t){return JSON.stringify(t)}function DB(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const B3="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function YS(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const MB=lO(()=>{if(oO.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function hv(t){if(YS(t)===!1)return!1;const a=t.constructor;if(a===void 0||typeof a!="function")return!0;const i=a.prototype;return!(YS(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function G3(t){return hv(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}const zB=new Set(["string","number","symbol"]);function IS(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xc(t,a,i){const u=new t._zod.constr(a??t._zod.def);return(!a||i?.parent)&&(u._zod.parent=t),u}function Ut(t){const a=t;if(!a)return{};if(typeof a=="string")return{error:()=>a};if(a?.message!==void 0){if(a?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");a.error=a.message}return delete a.message,typeof a.error=="string"?{...a,error:()=>a.error}:a}function NB(t){return Object.keys(t).filter(a=>t[a]._zod.optin==="optional"&&t[a]._zod.optout==="optional")}function UB(t,a){const i=t._zod.def,u=i.checks;if(u&&u.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const p=Zc(t._zod.def,{get shape(){const y={};for(const g in a){if(!(g in i.shape))throw new Error(`Unrecognized key: "${g}"`);a[g]&&(y[g]=i.shape[g])}return qd(this,"shape",y),y},checks:[]});return Xc(t,p)}function jB(t,a){const i=t._zod.def,u=i.checks;if(u&&u.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const p=Zc(t._zod.def,{get shape(){const y={...t._zod.def.shape};for(const g in a){if(!(g in i.shape))throw new Error(`Unrecognized key: "${g}"`);a[g]&&delete y[g]}return qd(this,"shape",y),y},checks:[]});return Xc(t,p)}function LB(t,a){if(!hv(a))throw new Error("Invalid input to extend: expected a plain object");const i=t._zod.def.checks;if(i&&i.length>0){const p=t._zod.def.shape;for(const y in a)if(Object.getOwnPropertyDescriptor(p,y)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const f=Zc(t._zod.def,{get shape(){const p={...t._zod.def.shape,...a};return qd(this,"shape",p),p}});return Xc(t,f)}function HB(t,a){if(!hv(a))throw new Error("Invalid input to safeExtend: expected a plain object");const i=Zc(t._zod.def,{get shape(){const u={...t._zod.def.shape,...a};return qd(this,"shape",u),u}});return Xc(t,i)}function kB(t,a){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const i=Zc(t._zod.def,{get shape(){const u={...t._zod.def.shape,...a._zod.def.shape};return qd(this,"shape",u),u},get catchall(){return a._zod.def.catchall},checks:a._zod.def.checks??[]});return Xc(t,i)}function VB(t,a,i){const f=a._zod.def.checks;if(f&&f.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const y=Zc(a._zod.def,{get shape(){const g=a._zod.def.shape,S={...g};if(i)for(const b in i){if(!(b in g))throw new Error(`Unrecognized key: "${b}"`);i[b]&&(S[b]=t?new t({type:"optional",innerType:g[b]}):g[b])}else for(const b in g)S[b]=t?new t({type:"optional",innerType:g[b]}):g[b];return qd(this,"shape",S),S},checks:[]});return Xc(a,y)}function BB(t,a,i){const u=Zc(a._zod.def,{get shape(){const f=a._zod.def.shape,p={...f};if(i)for(const y in i){if(!(y in p))throw new Error(`Unrecognized key: "${y}"`);i[y]&&(p[y]=new t({type:"nonoptional",innerType:f[y]}))}else for(const y in f)p[y]=new t({type:"nonoptional",innerType:f[y]});return qd(this,"shape",p),p}});return Xc(a,u)}function lm(t,a=0){if(t.aborted===!0)return!0;for(let i=a;i<t.issues.length;i++)if(t.issues[i]?.continue!==!0)return!0;return!1}function GB(t,a=0){if(t.aborted===!0)return!0;for(let i=a;i<t.issues.length;i++)if(t.issues[i]?.continue===!1)return!0;return!1}function Y3(t,a){return a.map(i=>{var u;return(u=i).path??(u.path=[]),i.path.unshift(t),i})}function qS(t){return typeof t=="string"?t:t?.message}function $d(t,a,i){const u=t.message?t.message:qS(t.inst?._zod.def?.error?.(t))??qS(a?.error?.(t))??qS(i.customError?.(t))??qS(i.localeError?.(t))??"Invalid input",{inst:f,continue:p,input:y,...g}=t;return g.path??(g.path=[]),g.message=u,a?.reportInput&&(g.input=y),g}function sO(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function pv(...t){const[a,i,u]=t;return typeof a=="string"?{message:a,code:"custom",input:i,inst:u}:{...a}}const I3=(t,a)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:a,enumerable:!1}),t.message=JSON.stringify(a,rO,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},q3=qe("$ZodError",I3),$3=qe("$ZodError",I3,{Parent:Error});function $S(t,a=i=>i.message){const i={},u=[];for(const f of t.issues)f.path.length>0?(i[f.path[0]]=i[f.path[0]]||[],i[f.path[0]].push(a(f))):u.push(a(f));return{formErrors:u,fieldErrors:i}}function YB(t,a=i=>i.message){const i={_errors:[]},u=(f,p=[])=>{for(const y of f.issues)if(y.code==="invalid_union"&&y.errors.length)y.errors.map(g=>u({issues:g},[...p,...y.path]));else if(y.code==="invalid_key")u({issues:y.issues},[...p,...y.path]);else if(y.code==="invalid_element")u({issues:y.issues},[...p,...y.path]);else{const g=[...p,...y.path];if(g.length===0)i._errors.push(a(y));else{let S=i,b=0;for(;b<g.length;){const E=g[b];b===g.length-1?(S[E]=S[E]||{_errors:[]},S[E]._errors.push(a(y))):S[E]=S[E]||{_errors:[]},S=S[E],b++}}}};return u(t),i}const cO=t=>(a,i,u,f)=>{const p=u?{...u,async:!1}:{async:!1},y=a._zod.run({value:i,issues:[]},p);if(y instanceof Promise)throw new rm;if(y.issues.length){const g=new(f?.Err??t)(y.issues.map(S=>$d(S,p,Id())));throw B3(g,f?.callee),g}return y.value},fO=t=>async(a,i,u,f)=>{const p=u?{...u,async:!0}:{async:!0};let y=a._zod.run({value:i,issues:[]},p);if(y instanceof Promise&&(y=await y),y.issues.length){const g=new(f?.Err??t)(y.issues.map(S=>$d(S,p,Id())));throw B3(g,f?.callee),g}return y.value},ZS=t=>(a,i,u)=>{const f=u?{...u,async:!1}:{async:!1},p=a._zod.run({value:i,issues:[]},f);if(p instanceof Promise)throw new rm;return p.issues.length?{success:!1,error:new(t??q3)(p.issues.map(y=>$d(y,f,Id())))}:{success:!0,data:p.value}},IB=ZS($3),XS=t=>async(a,i,u)=>{const f=u?{...u,async:!0}:{async:!0};let p=a._zod.run({value:i,issues:[]},f);return p instanceof Promise&&(p=await p),p.issues.length?{success:!1,error:new t(p.issues.map(y=>$d(y,f,Id())))}:{success:!0,data:p.value}},qB=XS($3),$B=t=>(a,i,u)=>{const f=u?{...u,direction:"backward"}:{direction:"backward"};return cO(t)(a,i,f)},ZB=t=>(a,i,u)=>cO(t)(a,i,u),XB=t=>async(a,i,u)=>{const f=u?{...u,direction:"backward"}:{direction:"backward"};return fO(t)(a,i,f)},PB=t=>async(a,i,u)=>fO(t)(a,i,u),FB=t=>(a,i,u)=>{const f=u?{...u,direction:"backward"}:{direction:"backward"};return ZS(t)(a,i,f)},QB=t=>(a,i,u)=>ZS(t)(a,i,u),JB=t=>async(a,i,u)=>{const f=u?{...u,direction:"backward"}:{direction:"backward"};return XS(t)(a,i,f)},KB=t=>async(a,i,u)=>XS(t)(a,i,u),WB=/^[cC][0-9a-z]{6,}$/,eG=/^[0-9a-z]+$/,tG=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nG=/^[0-9a-vA-V]{20}$/,aG=/^[A-Za-z0-9]{27}$/,oG=/^[a-zA-Z0-9_-]{21}$/,rG=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lG=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Z3=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,iG=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,uG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function sG(){return new RegExp(uG,"u")}const cG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,fG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,dG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,hG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,X3=/^[A-Za-z0-9_-]*$/,mG=/^https?$/,gG=/^\+[1-9]\d{6,14}$/,P3="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",yG=new RegExp(`^${P3}$`);function F3(t){const a="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${a}`:t.precision===0?`${a}:[0-5]\\d`:`${a}:[0-5]\\d\\.\\d{${t.precision}}`:`${a}(?::[0-5]\\d(?:\\.\\d+)?)?`}function vG(t){return new RegExp(`^${F3(t)}$`)}function bG(t){const a=F3({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const u=`${a}(?:${i.join("|")})`;return new RegExp(`^${P3}T(?:${u})$`)}const SG=t=>{const a=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${a}$`)},EG=/^[^A-Z]*$/,wG=/^[^a-z]*$/,Tu=qe("$ZodCheck",(t,a)=>{var i;t._zod??(t._zod={}),t._zod.def=a,(i=t._zod).onattach??(i.onattach=[])}),TG=qe("$ZodCheckMaxLength",(t,a)=>{var i;Tu.init(t,a),(i=t._zod.def).when??(i.when=u=>{const f=u.value;return!iO(f)&&f.length!==void 0}),t._zod.onattach.push(u=>{const f=u._zod.bag.maximum??Number.POSITIVE_INFINITY;a.maximum<f&&(u._zod.bag.maximum=a.maximum)}),t._zod.check=u=>{const f=u.value;if(f.length<=a.maximum)return;const y=sO(f);u.issues.push({origin:y,code:"too_big",maximum:a.maximum,inclusive:!0,input:f,inst:t,continue:!a.abort})}}),RG=qe("$ZodCheckMinLength",(t,a)=>{var i;Tu.init(t,a),(i=t._zod.def).when??(i.when=u=>{const f=u.value;return!iO(f)&&f.length!==void 0}),t._zod.onattach.push(u=>{const f=u._zod.bag.minimum??Number.NEGATIVE_INFINITY;a.minimum>f&&(u._zod.bag.minimum=a.minimum)}),t._zod.check=u=>{const f=u.value;if(f.length>=a.minimum)return;const y=sO(f);u.issues.push({origin:y,code:"too_small",minimum:a.minimum,inclusive:!0,input:f,inst:t,continue:!a.abort})}}),OG=qe("$ZodCheckLengthEquals",(t,a)=>{var i;Tu.init(t,a),(i=t._zod.def).when??(i.when=u=>{const f=u.value;return!iO(f)&&f.length!==void 0}),t._zod.onattach.push(u=>{const f=u._zod.bag;f.minimum=a.length,f.maximum=a.length,f.length=a.length}),t._zod.check=u=>{const f=u.value,p=f.length;if(p===a.length)return;const y=sO(f),g=p>a.length;u.issues.push({origin:y,...g?{code:"too_big",maximum:a.length}:{code:"too_small",minimum:a.length},inclusive:!0,exact:!0,input:u.value,inst:t,continue:!a.abort})}}),PS=qe("$ZodCheckStringFormat",(t,a)=>{var i,u;Tu.init(t,a),t._zod.onattach.push(f=>{const p=f._zod.bag;p.format=a.format,a.pattern&&(p.patterns??(p.patterns=new Set),p.patterns.add(a.pattern))}),a.pattern?(i=t._zod).check??(i.check=f=>{a.pattern.lastIndex=0,!a.pattern.test(f.value)&&f.issues.push({origin:"string",code:"invalid_format",format:a.format,input:f.value,...a.pattern?{pattern:a.pattern.toString()}:{},inst:t,continue:!a.abort})}):(u=t._zod).check??(u.check=()=>{})}),CG=qe("$ZodCheckRegex",(t,a)=>{PS.init(t,a),t._zod.check=i=>{a.pattern.lastIndex=0,!a.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:a.pattern.toString(),inst:t,continue:!a.abort})}}),xG=qe("$ZodCheckLowerCase",(t,a)=>{a.pattern??(a.pattern=EG),PS.init(t,a)}),_G=qe("$ZodCheckUpperCase",(t,a)=>{a.pattern??(a.pattern=wG),PS.init(t,a)}),AG=qe("$ZodCheckIncludes",(t,a)=>{Tu.init(t,a);const i=IS(a.includes),u=new RegExp(typeof a.position=="number"?`^.{${a.position}}${i}`:i);a.pattern=u,t._zod.onattach.push(f=>{const p=f._zod.bag;p.patterns??(p.patterns=new Set),p.patterns.add(u)}),t._zod.check=f=>{f.value.includes(a.includes,a.position)||f.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:a.includes,input:f.value,inst:t,continue:!a.abort})}}),DG=qe("$ZodCheckStartsWith",(t,a)=>{Tu.init(t,a);const i=new RegExp(`^${IS(a.prefix)}.*`);a.pattern??(a.pattern=i),t._zod.onattach.push(u=>{const f=u._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(i)}),t._zod.check=u=>{u.value.startsWith(a.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:a.prefix,input:u.value,inst:t,continue:!a.abort})}}),MG=qe("$ZodCheckEndsWith",(t,a)=>{Tu.init(t,a);const i=new RegExp(`.*${IS(a.suffix)}$`);a.pattern??(a.pattern=i),t._zod.onattach.push(u=>{const f=u._zod.bag;f.patterns??(f.patterns=new Set),f.patterns.add(i)}),t._zod.check=u=>{u.value.endsWith(a.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:a.suffix,input:u.value,inst:t,continue:!a.abort})}}),zG=qe("$ZodCheckOverwrite",(t,a)=>{Tu.init(t,a),t._zod.check=i=>{i.value=a.tx(i.value)}});class NG{constructor(a=[]){this.content=[],this.indent=0,this&&(this.args=a)}indented(a){this.indent+=1,a(this),this.indent-=1}write(a){if(typeof a=="function"){a(this,{execution:"sync"}),a(this,{execution:"async"});return}const u=a.split(`
308
+ `).filter(y=>y),f=Math.min(...u.map(y=>y.length-y.trimStart().length)),p=u.map(y=>y.slice(f)).map(y=>" ".repeat(this.indent*2)+y);for(const y of p)this.content.push(y)}compile(){const a=Function,i=this?.args,f=[...(this?.content??[""]).map(p=>` ${p}`)];return new a(...i,f.join(`
309
+ `))}}const UG={major:4,minor:4,patch:3},io=qe("$ZodType",(t,a)=>{var i;t??(t={}),t._zod.def=a,t._zod.bag=t._zod.bag||{},t._zod.version=UG;const u=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&u.unshift(t);for(const f of u)for(const p of f._zod.onattach)p(t);if(u.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const f=(y,g,S)=>{let b=lm(y),E;for(const T of g){if(T._zod.def.when){if(GB(y)||!T._zod.def.when(y))continue}else if(b)continue;const O=y.issues.length,_=T._zod.check(y);if(_ instanceof Promise&&S?.async===!1)throw new rm;if(E||_ instanceof Promise)E=(E??Promise.resolve()).then(async()=>{await _,y.issues.length!==O&&(b||(b=lm(y,O)))});else{if(y.issues.length===O)continue;b||(b=lm(y,O))}}return E?E.then(()=>y):y},p=(y,g,S)=>{if(lm(y))return y.aborted=!0,y;const b=f(g,u,S);if(b instanceof Promise){if(S.async===!1)throw new rm;return b.then(E=>t._zod.parse(E,S))}return t._zod.parse(b,S)};t._zod.run=(y,g)=>{if(g.skipChecks)return t._zod.parse(y,g);if(g.direction==="backward"){const b=t._zod.parse({value:y.value,issues:[]},{...g,skipChecks:!0});return b instanceof Promise?b.then(E=>p(E,y,g)):p(b,y,g)}const S=t._zod.parse(y,g);if(S instanceof Promise){if(g.async===!1)throw new rm;return S.then(b=>f(b,u,g))}return f(S,u,g)}}Vn(t,"~standard",()=>({validate:f=>{try{const p=IB(t,f);return p.success?{value:p.data}:{issues:p.error?.issues}}catch{return qB(t,f).then(y=>y.success?{value:y.data}:{issues:y.error?.issues})}},vendor:"zod",version:1}))}),dO=qe("$ZodString",(t,a)=>{io.init(t,a),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??SG(t._zod.bag),t._zod.parse=(i,u)=>{if(a.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),fa=qe("$ZodStringFormat",(t,a)=>{PS.init(t,a),dO.init(t,a)}),jG=qe("$ZodGUID",(t,a)=>{a.pattern??(a.pattern=lG),fa.init(t,a)}),LG=qe("$ZodUUID",(t,a)=>{if(a.version){const u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[a.version];if(u===void 0)throw new Error(`Invalid UUID version: "${a.version}"`);a.pattern??(a.pattern=Z3(u))}else a.pattern??(a.pattern=Z3());fa.init(t,a)}),HG=qe("$ZodEmail",(t,a)=>{a.pattern??(a.pattern=iG),fa.init(t,a)}),kG=qe("$ZodURL",(t,a)=>{fa.init(t,a),t._zod.check=i=>{try{const u=i.value.trim();if(!a.normalize&&a.protocol?.source===mG.source&&!/^https?:\/\//i.test(u)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!a.abort});return}const f=new URL(u);a.hostname&&(a.hostname.lastIndex=0,a.hostname.test(f.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:a.hostname.source,input:i.value,inst:t,continue:!a.abort})),a.protocol&&(a.protocol.lastIndex=0,a.protocol.test(f.protocol.endsWith(":")?f.protocol.slice(0,-1):f.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:a.protocol.source,input:i.value,inst:t,continue:!a.abort})),a.normalize?i.value=f.href:i.value=u;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!a.abort})}}}),VG=qe("$ZodEmoji",(t,a)=>{a.pattern??(a.pattern=sG()),fa.init(t,a)}),BG=qe("$ZodNanoID",(t,a)=>{a.pattern??(a.pattern=oG),fa.init(t,a)}),GG=qe("$ZodCUID",(t,a)=>{a.pattern??(a.pattern=WB),fa.init(t,a)}),YG=qe("$ZodCUID2",(t,a)=>{a.pattern??(a.pattern=eG),fa.init(t,a)}),IG=qe("$ZodULID",(t,a)=>{a.pattern??(a.pattern=tG),fa.init(t,a)}),qG=qe("$ZodXID",(t,a)=>{a.pattern??(a.pattern=nG),fa.init(t,a)}),$G=qe("$ZodKSUID",(t,a)=>{a.pattern??(a.pattern=aG),fa.init(t,a)}),ZG=qe("$ZodISODateTime",(t,a)=>{a.pattern??(a.pattern=bG(a)),fa.init(t,a)}),XG=qe("$ZodISODate",(t,a)=>{a.pattern??(a.pattern=yG),fa.init(t,a)}),PG=qe("$ZodISOTime",(t,a)=>{a.pattern??(a.pattern=vG(a)),fa.init(t,a)}),FG=qe("$ZodISODuration",(t,a)=>{a.pattern??(a.pattern=rG),fa.init(t,a)}),QG=qe("$ZodIPv4",(t,a)=>{a.pattern??(a.pattern=cG),fa.init(t,a),t._zod.bag.format="ipv4"}),JG=qe("$ZodIPv6",(t,a)=>{a.pattern??(a.pattern=fG),fa.init(t,a),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!a.abort})}}}),KG=qe("$ZodCIDRv4",(t,a)=>{a.pattern??(a.pattern=dG),fa.init(t,a)}),WG=qe("$ZodCIDRv6",(t,a)=>{a.pattern??(a.pattern=hG),fa.init(t,a),t._zod.check=i=>{const u=i.value.split("/");try{if(u.length!==2)throw new Error;const[f,p]=u;if(!p)throw new Error;const y=Number(p);if(`${y}`!==p)throw new Error;if(y<0||y>128)throw new Error;new URL(`http://[${f}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!a.abort})}}});function Q3(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const eY=qe("$ZodBase64",(t,a)=>{a.pattern??(a.pattern=pG),fa.init(t,a),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{Q3(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!a.abort})}});function tY(t){if(!X3.test(t))return!1;const a=t.replace(/[-_]/g,u=>u==="-"?"+":"/"),i=a.padEnd(Math.ceil(a.length/4)*4,"=");return Q3(i)}const nY=qe("$ZodBase64URL",(t,a)=>{a.pattern??(a.pattern=X3),fa.init(t,a),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{tY(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!a.abort})}}),aY=qe("$ZodE164",(t,a)=>{a.pattern??(a.pattern=gG),fa.init(t,a)});function oY(t,a=null){try{const i=t.split(".");if(i.length!==3)return!1;const[u]=i;if(!u)return!1;const f=JSON.parse(atob(u));return!("typ"in f&&f?.typ!=="JWT"||!f.alg||a&&(!("alg"in f)||f.alg!==a))}catch{return!1}}const rY=qe("$ZodJWT",(t,a)=>{fa.init(t,a),t._zod.check=i=>{oY(i.value,a.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!a.abort})}}),lY=qe("$ZodUnknown",(t,a)=>{io.init(t,a),t._zod.parse=i=>i}),iY=qe("$ZodNever",(t,a)=>{io.init(t,a),t._zod.parse=(i,u)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function J3(t,a,i){t.issues.length&&a.issues.push(...Y3(i,t.issues)),a.value[i]=t.value}const uY=qe("$ZodArray",(t,a)=>{io.init(t,a),t._zod.parse=(i,u)=>{const f=i.value;if(!Array.isArray(f))return i.issues.push({expected:"array",code:"invalid_type",input:f,inst:t}),i;i.value=Array(f.length);const p=[];for(let y=0;y<f.length;y++){const g=f[y],S=a.element._zod.run({value:g,issues:[]},u);S instanceof Promise?p.push(S.then(b=>J3(b,i,y))):J3(S,i,y)}return p.length?Promise.all(p).then(()=>i):i}});function FS(t,a,i,u,f,p){const y=i in u;if(t.issues.length){if(f&&p&&!y)return;a.issues.push(...Y3(i,t.issues))}if(!y&&!f){t.issues.length||a.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?y&&(a.value[i]=void 0):a.value[i]=t.value}function K3(t){const a=Object.keys(t.shape);for(const u of a)if(!t.shape?.[u]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${u}": expected a Zod schema`);const i=NB(t.shape);return{...t,keys:a,keySet:new Set(a),numKeys:a.length,optionalKeys:new Set(i)}}function W3(t,a,i,u,f,p){const y=[],g=f.keySet,S=f.catchall._zod,b=S.def.type,E=S.optin==="optional",T=S.optout==="optional";for(const O in a){if(O==="__proto__"||g.has(O))continue;if(b==="never"){y.push(O);continue}const _=S.run({value:a[O],issues:[]},u);_ instanceof Promise?t.push(_.then(A=>FS(A,i,O,a,E,T))):FS(_,i,O,a,E,T)}return y.length&&i.issues.push({code:"unrecognized_keys",keys:y,input:a,inst:p}),t.length?Promise.all(t).then(()=>i):i}const sY=qe("$ZodObject",(t,a)=>{if(io.init(t,a),!Object.getOwnPropertyDescriptor(a,"shape")?.get){const g=a.shape;Object.defineProperty(a,"shape",{get:()=>{const S={...g};return Object.defineProperty(a,"shape",{value:S}),S}})}const u=lO(()=>K3(a));Vn(t._zod,"propValues",()=>{const g=a.shape,S={};for(const b in g){const E=g[b]._zod;if(E.values){S[b]??(S[b]=new Set);for(const T of E.values)S[b].add(T)}}return S});const f=YS,p=a.catchall;let y;t._zod.parse=(g,S)=>{y??(y=u.value);const b=g.value;if(!f(b))return g.issues.push({expected:"object",code:"invalid_type",input:b,inst:t}),g;g.value={};const E=[],T=y.shape;for(const O of y.keys){const _=T[O],A=_._zod.optin==="optional",D=_._zod.optout==="optional",N=_._zod.run({value:b[O],issues:[]},S);N instanceof Promise?E.push(N.then(M=>FS(M,g,O,b,A,D))):FS(N,g,O,b,A,D)}return p?W3(E,b,g,S,u.value,t):E.length?Promise.all(E).then(()=>g):g}}),cY=qe("$ZodObjectJIT",(t,a)=>{sY.init(t,a);const i=t._zod.parse,u=lO(()=>K3(a)),f=O=>{const _=new NG(["shape","payload","ctx"]),A=u.value,D=I=>{const Y=V3(I);return`shape[${Y}]._zod.run({ value: input[${Y}], issues: [] }, ctx)`};_.write("const input = payload.value;");const N=Object.create(null);let M=0;for(const I of A.keys)N[I]=`key_${M++}`;_.write("const newResult = {};");for(const I of A.keys){const Y=N[I],H=V3(I),Z=O[I],V=Z?._zod?.optin==="optional",X=Z?._zod?.optout==="optional";_.write(`const ${Y} = ${D(I)};`),V&&X?_.write(`
310
+ if (${Y}.issues.length) {
311
+ if (${H} in input) {
312
+ payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
313
+ ...iss,
314
+ path: iss.path ? [${H}, ...iss.path] : [${H}]
315
+ })));
316
+ }
317
+ }
318
+
319
+ if (${Y}.value === undefined) {
320
+ if (${H} in input) {
321
+ newResult[${H}] = undefined;
322
+ }
323
+ } else {
324
+ newResult[${H}] = ${Y}.value;
325
+ }
326
+
327
+ `):V?_.write(`
328
+ if (${Y}.issues.length) {
329
+ payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
330
+ ...iss,
331
+ path: iss.path ? [${H}, ...iss.path] : [${H}]
332
+ })));
333
+ }
334
+
335
+ if (${Y}.value === undefined) {
336
+ if (${H} in input) {
337
+ newResult[${H}] = undefined;
338
+ }
339
+ } else {
340
+ newResult[${H}] = ${Y}.value;
341
+ }
342
+
343
+ `):_.write(`
344
+ const ${Y}_present = ${H} in input;
345
+ if (${Y}.issues.length) {
346
+ payload.issues = payload.issues.concat(${Y}.issues.map(iss => ({
347
+ ...iss,
348
+ path: iss.path ? [${H}, ...iss.path] : [${H}]
349
+ })));
350
+ }
351
+ if (!${Y}_present && !${Y}.issues.length) {
352
+ payload.issues.push({
353
+ code: "invalid_type",
354
+ expected: "nonoptional",
355
+ input: undefined,
356
+ path: [${H}]
357
+ });
358
+ }
359
+
360
+ if (${Y}_present) {
361
+ if (${Y}.value === undefined) {
362
+ newResult[${H}] = undefined;
363
+ } else {
364
+ newResult[${H}] = ${Y}.value;
365
+ }
366
+ }
367
+
368
+ `)}_.write("payload.value = newResult;"),_.write("return payload;");const q=_.compile();return(I,Y)=>q(O,I,Y)};let p;const y=YS,g=!oO.jitless,b=g&&MB.value,E=a.catchall;let T;t._zod.parse=(O,_)=>{T??(T=u.value);const A=O.value;return y(A)?g&&b&&_?.async===!1&&_.jitless!==!0?(p||(p=f(a.shape)),O=p(O,_),E?W3([],A,O,_,T,t):O):i(O,_):(O.issues.push({expected:"object",code:"invalid_type",input:A,inst:t}),O)}});function ez(t,a,i,u){for(const p of t)if(p.issues.length===0)return a.value=p.value,a;const f=t.filter(p=>!lm(p));return f.length===1?(a.value=f[0].value,f[0]):(a.issues.push({code:"invalid_union",input:a.value,inst:i,errors:t.map(p=>p.issues.map(y=>$d(y,u,Id())))}),a)}const fY=qe("$ZodUnion",(t,a)=>{io.init(t,a),Vn(t._zod,"optin",()=>a.options.some(u=>u._zod.optin==="optional")?"optional":void 0),Vn(t._zod,"optout",()=>a.options.some(u=>u._zod.optout==="optional")?"optional":void 0),Vn(t._zod,"values",()=>{if(a.options.every(u=>u._zod.values))return new Set(a.options.flatMap(u=>Array.from(u._zod.values)))}),Vn(t._zod,"pattern",()=>{if(a.options.every(u=>u._zod.pattern)){const u=a.options.map(f=>f._zod.pattern);return new RegExp(`^(${u.map(f=>uO(f.source)).join("|")})$`)}});const i=a.options.length===1?a.options[0]._zod.run:null;t._zod.parse=(u,f)=>{if(i)return i(u,f);let p=!1;const y=[];for(const g of a.options){const S=g._zod.run({value:u.value,issues:[]},f);if(S instanceof Promise)y.push(S),p=!0;else{if(S.issues.length===0)return S;y.push(S)}}return p?Promise.all(y).then(g=>ez(g,u,t,f)):ez(y,u,t,f)}}),dY=qe("$ZodIntersection",(t,a)=>{io.init(t,a),t._zod.parse=(i,u)=>{const f=i.value,p=a.left._zod.run({value:f,issues:[]},u),y=a.right._zod.run({value:f,issues:[]},u);return p instanceof Promise||y instanceof Promise?Promise.all([p,y]).then(([S,b])=>tz(i,S,b)):tz(i,p,y)}});function hO(t,a){if(t===a)return{valid:!0,data:t};if(t instanceof Date&&a instanceof Date&&+t==+a)return{valid:!0,data:t};if(hv(t)&&hv(a)){const i=Object.keys(a),u=Object.keys(t).filter(p=>i.indexOf(p)!==-1),f={...t,...a};for(const p of u){const y=hO(t[p],a[p]);if(!y.valid)return{valid:!1,mergeErrorPath:[p,...y.mergeErrorPath]};f[p]=y.data}return{valid:!0,data:f}}if(Array.isArray(t)&&Array.isArray(a)){if(t.length!==a.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let u=0;u<t.length;u++){const f=t[u],p=a[u],y=hO(f,p);if(!y.valid)return{valid:!1,mergeErrorPath:[u,...y.mergeErrorPath]};i.push(y.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function tz(t,a,i){const u=new Map;let f;for(const g of a.issues)if(g.code==="unrecognized_keys"){f??(f=g);for(const S of g.keys)u.has(S)||u.set(S,{}),u.get(S).l=!0}else t.issues.push(g);for(const g of i.issues)if(g.code==="unrecognized_keys")for(const S of g.keys)u.has(S)||u.set(S,{}),u.get(S).r=!0;else t.issues.push(g);const p=[...u].filter(([,g])=>g.l&&g.r).map(([g])=>g);if(p.length&&f&&t.issues.push({...f,keys:p}),lm(t))return t;const y=hO(a.value,i.value);if(!y.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(y.mergeErrorPath)}`);return t.value=y.data,t}const hY=qe("$ZodEnum",(t,a)=>{io.init(t,a);const i=H3(a.entries),u=new Set(i);t._zod.values=u,t._zod.pattern=new RegExp(`^(${i.filter(f=>zB.has(typeof f)).map(f=>typeof f=="string"?IS(f):f.toString()).join("|")})$`),t._zod.parse=(f,p)=>{const y=f.value;return u.has(y)||f.issues.push({code:"invalid_value",values:i,input:y,inst:t}),f}}),pY=qe("$ZodTransform",(t,a)=>{io.init(t,a),t._zod.optin="optional",t._zod.parse=(i,u)=>{if(u.direction==="backward")throw new L3(t.constructor.name);const f=a.transform(i.value,i);if(u.async)return(f instanceof Promise?f:Promise.resolve(f)).then(y=>(i.value=y,i.fallback=!0,i));if(f instanceof Promise)throw new rm;return i.value=f,i.fallback=!0,i}});function nz(t,a){return a===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}const az=qe("$ZodOptional",(t,a)=>{io.init(t,a),t._zod.optin="optional",t._zod.optout="optional",Vn(t._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,void 0]):void 0),Vn(t._zod,"pattern",()=>{const i=a.innerType._zod.pattern;return i?new RegExp(`^(${uO(i.source)})?$`):void 0}),t._zod.parse=(i,u)=>{if(a.innerType._zod.optin==="optional"){const f=i.value,p=a.innerType._zod.run(i,u);return p instanceof Promise?p.then(y=>nz(y,f)):nz(p,f)}return i.value===void 0?i:a.innerType._zod.run(i,u)}}),mY=qe("$ZodExactOptional",(t,a)=>{az.init(t,a),Vn(t._zod,"values",()=>a.innerType._zod.values),Vn(t._zod,"pattern",()=>a.innerType._zod.pattern),t._zod.parse=(i,u)=>a.innerType._zod.run(i,u)}),gY=qe("$ZodNullable",(t,a)=>{io.init(t,a),Vn(t._zod,"optin",()=>a.innerType._zod.optin),Vn(t._zod,"optout",()=>a.innerType._zod.optout),Vn(t._zod,"pattern",()=>{const i=a.innerType._zod.pattern;return i?new RegExp(`^(${uO(i.source)}|null)$`):void 0}),Vn(t._zod,"values",()=>a.innerType._zod.values?new Set([...a.innerType._zod.values,null]):void 0),t._zod.parse=(i,u)=>i.value===null?i:a.innerType._zod.run(i,u)}),yY=qe("$ZodDefault",(t,a)=>{io.init(t,a),t._zod.optin="optional",Vn(t._zod,"values",()=>a.innerType._zod.values),t._zod.parse=(i,u)=>{if(u.direction==="backward")return a.innerType._zod.run(i,u);if(i.value===void 0)return i.value=a.defaultValue,i;const f=a.innerType._zod.run(i,u);return f instanceof Promise?f.then(p=>oz(p,a)):oz(f,a)}});function oz(t,a){return t.value===void 0&&(t.value=a.defaultValue),t}const vY=qe("$ZodPrefault",(t,a)=>{io.init(t,a),t._zod.optin="optional",Vn(t._zod,"values",()=>a.innerType._zod.values),t._zod.parse=(i,u)=>(u.direction==="backward"||i.value===void 0&&(i.value=a.defaultValue),a.innerType._zod.run(i,u))}),bY=qe("$ZodNonOptional",(t,a)=>{io.init(t,a),Vn(t._zod,"values",()=>{const i=a.innerType._zod.values;return i?new Set([...i].filter(u=>u!==void 0)):void 0}),t._zod.parse=(i,u)=>{const f=a.innerType._zod.run(i,u);return f instanceof Promise?f.then(p=>rz(p,t)):rz(f,t)}});function rz(t,a){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:a}),t}const SY=qe("$ZodCatch",(t,a)=>{io.init(t,a),t._zod.optin="optional",Vn(t._zod,"optout",()=>a.innerType._zod.optout),Vn(t._zod,"values",()=>a.innerType._zod.values),t._zod.parse=(i,u)=>{if(u.direction==="backward")return a.innerType._zod.run(i,u);const f=a.innerType._zod.run(i,u);return f instanceof Promise?f.then(p=>(i.value=p.value,p.issues.length&&(i.value=a.catchValue({...i,error:{issues:p.issues.map(y=>$d(y,u,Id()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=f.value,f.issues.length&&(i.value=a.catchValue({...i,error:{issues:f.issues.map(p=>$d(p,u,Id()))},input:i.value}),i.issues=[],i.fallback=!0),i)}}),EY=qe("$ZodPipe",(t,a)=>{io.init(t,a),Vn(t._zod,"values",()=>a.in._zod.values),Vn(t._zod,"optin",()=>a.in._zod.optin),Vn(t._zod,"optout",()=>a.out._zod.optout),Vn(t._zod,"propValues",()=>a.in._zod.propValues),t._zod.parse=(i,u)=>{if(u.direction==="backward"){const p=a.out._zod.run(i,u);return p instanceof Promise?p.then(y=>QS(y,a.in,u)):QS(p,a.in,u)}const f=a.in._zod.run(i,u);return f instanceof Promise?f.then(p=>QS(p,a.out,u)):QS(f,a.out,u)}});function QS(t,a,i){return t.issues.length?(t.aborted=!0,t):a._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}const wY=qe("$ZodReadonly",(t,a)=>{io.init(t,a),Vn(t._zod,"propValues",()=>a.innerType._zod.propValues),Vn(t._zod,"values",()=>a.innerType._zod.values),Vn(t._zod,"optin",()=>a.innerType?._zod?.optin),Vn(t._zod,"optout",()=>a.innerType?._zod?.optout),t._zod.parse=(i,u)=>{if(u.direction==="backward")return a.innerType._zod.run(i,u);const f=a.innerType._zod.run(i,u);return f instanceof Promise?f.then(lz):lz(f)}});function lz(t){return t.value=Object.freeze(t.value),t}const TY=qe("$ZodCustom",(t,a)=>{Tu.init(t,a),io.init(t,a),t._zod.parse=(i,u)=>i,t._zod.check=i=>{const u=i.value,f=a.fn(u);if(f instanceof Promise)return f.then(p=>iz(p,i,u,t));iz(f,i,u,t)}});function iz(t,a,i,u){if(!t){const f={code:"custom",input:i,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};u._zod.def.params&&(f.params=u._zod.def.params),a.issues.push(pv(f))}}var uz;class RY{constructor(){this._map=new WeakMap,this._idmap=new Map}add(a,...i){const u=i[0];return this._map.set(a,u),u&&typeof u=="object"&&"id"in u&&this._idmap.set(u.id,a),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(a){const i=this._map.get(a);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(a),this}get(a){const i=a._zod.parent;if(i){const u={...this.get(i)??{}};delete u.id;const f={...u,...this._map.get(a)};return Object.keys(f).length?f:void 0}return this._map.get(a)}has(a){return this._map.has(a)}}function OY(){return new RY}(uz=globalThis).__zod_globalRegistry??(uz.__zod_globalRegistry=OY());const mv=globalThis.__zod_globalRegistry;function CY(t,a){return new t({type:"string",...Ut(a)})}function xY(t,a){return new t({type:"string",format:"email",check:"string_format",abort:!1,...Ut(a)})}function sz(t,a){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...Ut(a)})}function _Y(t,a){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...Ut(a)})}function AY(t,a){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ut(a)})}function DY(t,a){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ut(a)})}function MY(t,a){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ut(a)})}function zY(t,a){return new t({type:"string",format:"url",check:"string_format",abort:!1,...Ut(a)})}function NY(t,a){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...Ut(a)})}function UY(t,a){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ut(a)})}function jY(t,a){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...Ut(a)})}function LY(t,a){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ut(a)})}function HY(t,a){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...Ut(a)})}function kY(t,a){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...Ut(a)})}function VY(t,a){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ut(a)})}function BY(t,a){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ut(a)})}function GY(t,a){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ut(a)})}function YY(t,a){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ut(a)})}function IY(t,a){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ut(a)})}function qY(t,a){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...Ut(a)})}function $Y(t,a){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...Ut(a)})}function ZY(t,a){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...Ut(a)})}function XY(t,a){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...Ut(a)})}function PY(t,a){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ut(a)})}function FY(t,a){return new t({type:"string",format:"date",check:"string_format",...Ut(a)})}function QY(t,a){return new t({type:"string",format:"time",check:"string_format",precision:null,...Ut(a)})}function JY(t,a){return new t({type:"string",format:"duration",check:"string_format",...Ut(a)})}function KY(t){return new t({type:"unknown"})}function WY(t,a){return new t({type:"never",...Ut(a)})}function cz(t,a){return new TG({check:"max_length",...Ut(a),maximum:t})}function JS(t,a){return new RG({check:"min_length",...Ut(a),minimum:t})}function fz(t,a){return new OG({check:"length_equals",...Ut(a),length:t})}function eI(t,a){return new CG({check:"string_format",format:"regex",...Ut(a),pattern:t})}function tI(t){return new xG({check:"string_format",format:"lowercase",...Ut(t)})}function nI(t){return new _G({check:"string_format",format:"uppercase",...Ut(t)})}function aI(t,a){return new AG({check:"string_format",format:"includes",...Ut(a),includes:t})}function oI(t,a){return new DG({check:"string_format",format:"starts_with",...Ut(a),prefix:t})}function rI(t,a){return new MG({check:"string_format",format:"ends_with",...Ut(a),suffix:t})}function im(t){return new zG({check:"overwrite",tx:t})}function lI(t){return im(a=>a.normalize(t))}function iI(){return im(t=>t.trim())}function uI(){return im(t=>t.toLowerCase())}function sI(){return im(t=>t.toUpperCase())}function cI(){return im(t=>DB(t))}function fI(t,a,i){return new t({type:"array",element:a,...Ut(i)})}function dI(t,a,i){return new t({type:"custom",check:"custom",fn:a,...Ut(i)})}function hI(t,a){const i=pI(u=>(u.addIssue=f=>{if(typeof f=="string")u.issues.push(pv(f,u.value,i._zod.def));else{const p=f;p.fatal&&(p.continue=!1),p.code??(p.code="custom"),p.input??(p.input=u.value),p.inst??(p.inst=i),p.continue??(p.continue=!i._zod.def.abort),u.issues.push(pv(p))}},t(u.value,u)),a);return i}function pI(t,a){const i=new Tu({check:"custom",...Ut(a)});return i._zod.check=t,i}function dz(t){let a=t?.target??"draft-2020-12";return a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??mv,target:a,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function Ao(t,a,i={path:[],schemaPath:[]}){var u;const f=t._zod.def,p=a.seen.get(t);if(p)return p.count++,i.schemaPath.includes(t)&&(p.cycle=i.path),p.schema;const y={schema:{},count:1,cycle:void 0,path:i.path};a.seen.set(t,y);const g=t._zod.toJSONSchema?.();if(g)y.schema=g;else{const E={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(a,y.schema,E);else{const O=y.schema,_=a.processors[f.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${f.type}`);_(t,a,O,E)}const T=t._zod.parent;T&&(y.ref||(y.ref=T),Ao(T,a,E),a.seen.get(T).isParent=!0)}const S=a.metadataRegistry.get(t);return S&&Object.assign(y.schema,S),a.io==="input"&&fr(t)&&(delete y.schema.examples,delete y.schema.default),a.io==="input"&&"_prefault"in y.schema&&((u=y.schema).default??(u.default=y.schema._prefault)),delete y.schema._prefault,a.seen.get(t).schema}function hz(t,a){const i=t.seen.get(a);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=new Map;for(const y of t.seen.entries()){const g=t.metadataRegistry.get(y[0])?.id;if(g){const S=u.get(g);if(S&&S!==y[0])throw new Error(`Duplicate schema id "${g}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);u.set(g,y[0])}}const f=y=>{const g=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const T=t.external.registry.get(y[0])?.id,O=t.external.uri??(A=>A);if(T)return{ref:O(T)};const _=y[1].defId??y[1].schema.id??`schema${t.counter++}`;return y[1].defId=_,{defId:_,ref:`${O("__shared")}#/${g}/${_}`}}if(y[1]===i)return{ref:"#"};const b=`#/${g}/`,E=y[1].schema.id??`__schema${t.counter++}`;return{defId:E,ref:b+E}},p=y=>{if(y[1].schema.$ref)return;const g=y[1],{ref:S,defId:b}=f(y);g.def={...g.schema},b&&(g.defId=b);const E=g.schema;for(const T in E)delete E[T];E.$ref=S};if(t.cycles==="throw")for(const y of t.seen.entries()){const g=y[1];if(g.cycle)throw new Error(`Cycle detected: #/${g.cycle?.join("/")}/<root>
369
+
370
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const y of t.seen.entries()){const g=y[1];if(a===y[0]){p(y);continue}if(t.external){const b=t.external.registry.get(y[0])?.id;if(a!==y[0]&&b){p(y);continue}}if(t.metadataRegistry.get(y[0])?.id){p(y);continue}if(g.cycle){p(y);continue}if(g.count>1&&t.reused==="ref"){p(y);continue}}}function pz(t,a){const i=t.seen.get(a);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=g=>{const S=t.seen.get(g);if(S.ref===null)return;const b=S.def??S.schema,E={...b},T=S.ref;if(S.ref=null,T){u(T);const _=t.seen.get(T),A=_.schema;if(A.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(b.allOf=b.allOf??[],b.allOf.push(A)):Object.assign(b,A),Object.assign(b,E),g._zod.parent===T)for(const N in b)N==="$ref"||N==="allOf"||N in E||delete b[N];if(A.$ref&&_.def)for(const N in b)N==="$ref"||N==="allOf"||N in _.def&&JSON.stringify(b[N])===JSON.stringify(_.def[N])&&delete b[N]}const O=g._zod.parent;if(O&&O!==T){u(O);const _=t.seen.get(O);if(_?.schema.$ref&&(b.$ref=_.schema.$ref,_.def))for(const A in b)A==="$ref"||A==="allOf"||A in _.def&&JSON.stringify(b[A])===JSON.stringify(_.def[A])&&delete b[A]}t.override({zodSchema:g,jsonSchema:b,path:S.path??[]})};for(const g of[...t.seen.entries()].reverse())u(g[0]);const f={};if(t.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?f.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?f.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){const g=t.external.registry.get(a)?.id;if(!g)throw new Error("Schema is missing an `id` property");f.$id=t.external.uri(g)}Object.assign(f,i.def??i.schema);const p=t.metadataRegistry.get(a)?.id;p!==void 0&&f.id===p&&delete f.id;const y=t.external?.defs??{};for(const g of t.seen.entries()){const S=g[1];S.def&&S.defId&&(S.def.id===S.defId&&delete S.def.id,y[S.defId]=S.def)}t.external||Object.keys(y).length>0&&(t.target==="draft-2020-12"?f.$defs=y:f.definitions=y);try{const g=JSON.parse(JSON.stringify(f));return Object.defineProperty(g,"~standard",{value:{...a["~standard"],jsonSchema:{input:KS(a,"input",t.processors),output:KS(a,"output",t.processors)}},enumerable:!1,writable:!1}),g}catch{throw new Error("Error converting schema to JSON.")}}function fr(t,a){const i=a??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);const u=t._zod.def;if(u.type==="transform")return!0;if(u.type==="array")return fr(u.element,i);if(u.type==="set")return fr(u.valueType,i);if(u.type==="lazy")return fr(u.getter(),i);if(u.type==="promise"||u.type==="optional"||u.type==="nonoptional"||u.type==="nullable"||u.type==="readonly"||u.type==="default"||u.type==="prefault")return fr(u.innerType,i);if(u.type==="intersection")return fr(u.left,i)||fr(u.right,i);if(u.type==="record"||u.type==="map")return fr(u.keyType,i)||fr(u.valueType,i);if(u.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:fr(u.in,i)||fr(u.out,i);if(u.type==="object"){for(const f in u.shape)if(fr(u.shape[f],i))return!0;return!1}if(u.type==="union"){for(const f of u.options)if(fr(f,i))return!0;return!1}if(u.type==="tuple"){for(const f of u.items)if(fr(f,i))return!0;return!!(u.rest&&fr(u.rest,i))}return!1}const mI=(t,a={})=>i=>{const u=dz({...i,processors:a});return Ao(t,u),hz(u,t),pz(u,t)},KS=(t,a,i={})=>u=>{const{libraryOptions:f,target:p}=u??{},y=dz({...f??{},target:p,io:a,processors:i});return Ao(t,y),hz(y,t),pz(y,t)},gI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yI=(t,a,i,u)=>{const f=i;f.type="string";const{minimum:p,maximum:y,format:g,patterns:S,contentEncoding:b}=t._zod.bag;if(typeof p=="number"&&(f.minLength=p),typeof y=="number"&&(f.maxLength=y),g&&(f.format=gI[g]??g,f.format===""&&delete f.format,g==="time"&&delete f.format),b&&(f.contentEncoding=b),S&&S.size>0){const E=[...S];E.length===1?f.pattern=E[0].source:E.length>1&&(f.allOf=[...E.map(T=>({...a.target==="draft-07"||a.target==="draft-04"||a.target==="openapi-3.0"?{type:"string"}:{},pattern:T.source}))])}},vI=(t,a,i,u)=>{i.not={}},bI=(t,a,i,u)=>{},SI=(t,a,i,u)=>{const f=t._zod.def,p=H3(f.entries);p.every(y=>typeof y=="number")&&(i.type="number"),p.every(y=>typeof y=="string")&&(i.type="string"),i.enum=p},EI=(t,a,i,u)=>{if(a.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wI=(t,a,i,u)=>{if(a.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},TI=(t,a,i,u)=>{const f=i,p=t._zod.def,{minimum:y,maximum:g}=t._zod.bag;typeof y=="number"&&(f.minItems=y),typeof g=="number"&&(f.maxItems=g),f.type="array",f.items=Ao(p.element,a,{...u,path:[...u.path,"items"]})},RI=(t,a,i,u)=>{const f=i,p=t._zod.def;f.type="object",f.properties={};const y=p.shape;for(const b in y)f.properties[b]=Ao(y[b],a,{...u,path:[...u.path,"properties",b]});const g=new Set(Object.keys(y)),S=new Set([...g].filter(b=>{const E=p.shape[b]._zod;return a.io==="input"?E.optin===void 0:E.optout===void 0}));S.size>0&&(f.required=Array.from(S)),p.catchall?._zod.def.type==="never"?f.additionalProperties=!1:p.catchall?p.catchall&&(f.additionalProperties=Ao(p.catchall,a,{...u,path:[...u.path,"additionalProperties"]})):a.io==="output"&&(f.additionalProperties=!1)},OI=(t,a,i,u)=>{const f=t._zod.def,p=f.inclusive===!1,y=f.options.map((g,S)=>Ao(g,a,{...u,path:[...u.path,p?"oneOf":"anyOf",S]}));p?i.oneOf=y:i.anyOf=y},CI=(t,a,i,u)=>{const f=t._zod.def,p=Ao(f.left,a,{...u,path:[...u.path,"allOf",0]}),y=Ao(f.right,a,{...u,path:[...u.path,"allOf",1]}),g=b=>"allOf"in b&&Object.keys(b).length===1,S=[...g(p)?p.allOf:[p],...g(y)?y.allOf:[y]];i.allOf=S},xI=(t,a,i,u)=>{const f=t._zod.def,p=Ao(f.innerType,a,u),y=a.seen.get(t);a.target==="openapi-3.0"?(y.ref=f.innerType,i.nullable=!0):i.anyOf=[p,{type:"null"}]},_I=(t,a,i,u)=>{const f=t._zod.def;Ao(f.innerType,a,u);const p=a.seen.get(t);p.ref=f.innerType},AI=(t,a,i,u)=>{const f=t._zod.def;Ao(f.innerType,a,u);const p=a.seen.get(t);p.ref=f.innerType,i.default=JSON.parse(JSON.stringify(f.defaultValue))},DI=(t,a,i,u)=>{const f=t._zod.def;Ao(f.innerType,a,u);const p=a.seen.get(t);p.ref=f.innerType,a.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(f.defaultValue)))},MI=(t,a,i,u)=>{const f=t._zod.def;Ao(f.innerType,a,u);const p=a.seen.get(t);p.ref=f.innerType;let y;try{y=f.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=y},zI=(t,a,i,u)=>{const f=t._zod.def,p=f.in._zod.traits.has("$ZodTransform"),y=a.io==="input"?p?f.out:f.in:f.out;Ao(y,a,u);const g=a.seen.get(t);g.ref=y},NI=(t,a,i,u)=>{const f=t._zod.def;Ao(f.innerType,a,u);const p=a.seen.get(t);p.ref=f.innerType,i.readOnly=!0},mz=(t,a,i,u)=>{const f=t._zod.def;Ao(f.innerType,a,u);const p=a.seen.get(t);p.ref=f.innerType},UI=qe("ZodISODateTime",(t,a)=>{ZG.init(t,a),Sa.init(t,a)});function jI(t){return PY(UI,t)}const LI=qe("ZodISODate",(t,a)=>{XG.init(t,a),Sa.init(t,a)});function HI(t){return FY(LI,t)}const kI=qe("ZodISOTime",(t,a)=>{PG.init(t,a),Sa.init(t,a)});function VI(t){return QY(kI,t)}const BI=qe("ZodISODuration",(t,a)=>{FG.init(t,a),Sa.init(t,a)});function GI(t){return JY(BI,t)}const Vl=qe("ZodError",(t,a)=>{q3.init(t,a),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>YB(t,i)},flatten:{value:i=>$S(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,rO,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,rO,2)}},isEmpty:{get(){return t.issues.length===0}}})},{Parent:Error}),YI=cO(Vl),II=fO(Vl),qI=ZS(Vl),$I=XS(Vl),ZI=$B(Vl),XI=ZB(Vl),PI=XB(Vl),FI=PB(Vl),QI=FB(Vl),JI=QB(Vl),KI=JB(Vl),WI=KB(Vl),gz=new WeakMap;function WS(t,a,i){const u=Object.getPrototypeOf(t);let f=gz.get(u);if(f||(f=new Set,gz.set(u,f)),!f.has(a)){f.add(a);for(const p in i){const y=i[p];Object.defineProperty(u,p,{configurable:!0,enumerable:!1,get(){const g=y.bind(this);return Object.defineProperty(this,p,{configurable:!0,writable:!0,enumerable:!0,value:g}),g},set(g){Object.defineProperty(this,p,{configurable:!0,writable:!0,enumerable:!0,value:g})}})}}}const uo=qe("ZodType",(t,a)=>(io.init(t,a),Object.assign(t["~standard"],{jsonSchema:{input:KS(t,"input"),output:KS(t,"output")}}),t.toJSONSchema=mI(t,{}),t.def=a,t.type=a.type,Object.defineProperty(t,"_def",{value:a}),t.parse=(i,u)=>YI(t,i,u,{callee:t.parse}),t.safeParse=(i,u)=>qI(t,i,u),t.parseAsync=async(i,u)=>II(t,i,u,{callee:t.parseAsync}),t.safeParseAsync=async(i,u)=>$I(t,i,u),t.spa=t.safeParseAsync,t.encode=(i,u)=>ZI(t,i,u),t.decode=(i,u)=>XI(t,i,u),t.encodeAsync=async(i,u)=>PI(t,i,u),t.decodeAsync=async(i,u)=>FI(t,i,u),t.safeEncode=(i,u)=>QI(t,i,u),t.safeDecode=(i,u)=>JI(t,i,u),t.safeEncodeAsync=async(i,u)=>KI(t,i,u),t.safeDecodeAsync=async(i,u)=>WI(t,i,u),WS(t,"ZodType",{check(...i){const u=this.def;return this.clone(Zc(u,{checks:[...u.checks??[],...i.map(f=>typeof f=="function"?{_zod:{check:f,def:{check:"custom"},onattach:[]}}:f)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,u){return Xc(this,i,u)},brand(){return this},register(i,u){return i.add(this,u),this},refine(i,u){return this.check($q(i,u))},superRefine(i,u){return this.check(Zq(i,u))},overwrite(i){return this.check(im(i))},optional(){return wz(this)},exactOptional(){return zq(this)},nullable(){return Tz(this)},nullish(){return wz(Tz(this))},nonoptional(i){return kq(this,i)},array(){return wq(this)},or(i){return Oq([this,i])},and(i){return xq(this,i)},transform(i){return Oz(this,Dq(i))},default(i){return jq(this,i)},prefault(i){return Hq(this,i)},catch(i){return Bq(this,i)},pipe(i){return Oz(this,i)},readonly(){return Iq(this)},describe(i){const u=this.clone();return mv.add(u,{description:i}),u},meta(...i){if(i.length===0)return mv.get(this);const u=this.clone();return mv.add(u,i[0]),u},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return mv.get(t)?.description},configurable:!0}),t)),yz=qe("_ZodString",(t,a)=>{dO.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(u,f,p)=>yI(t,u,f);const i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,WS(t,"_ZodString",{regex(...u){return this.check(eI(...u))},includes(...u){return this.check(aI(...u))},startsWith(...u){return this.check(oI(...u))},endsWith(...u){return this.check(rI(...u))},min(...u){return this.check(JS(...u))},max(...u){return this.check(cz(...u))},length(...u){return this.check(fz(...u))},nonempty(...u){return this.check(JS(1,...u))},lowercase(u){return this.check(tI(u))},uppercase(u){return this.check(nI(u))},trim(){return this.check(iI())},normalize(...u){return this.check(lI(...u))},toLowerCase(){return this.check(uI())},toUpperCase(){return this.check(sI())},slugify(){return this.check(cI())}})}),eq=qe("ZodString",(t,a)=>{dO.init(t,a),yz.init(t,a),t.email=i=>t.check(xY(tq,i)),t.url=i=>t.check(zY(nq,i)),t.jwt=i=>t.check(XY(yq,i)),t.emoji=i=>t.check(NY(aq,i)),t.guid=i=>t.check(sz(vz,i)),t.uuid=i=>t.check(_Y(tE,i)),t.uuidv4=i=>t.check(AY(tE,i)),t.uuidv6=i=>t.check(DY(tE,i)),t.uuidv7=i=>t.check(MY(tE,i)),t.nanoid=i=>t.check(UY(oq,i)),t.guid=i=>t.check(sz(vz,i)),t.cuid=i=>t.check(jY(rq,i)),t.cuid2=i=>t.check(LY(lq,i)),t.ulid=i=>t.check(HY(iq,i)),t.base64=i=>t.check(qY(pq,i)),t.base64url=i=>t.check($Y(mq,i)),t.xid=i=>t.check(kY(uq,i)),t.ksuid=i=>t.check(VY(sq,i)),t.ipv4=i=>t.check(BY(cq,i)),t.ipv6=i=>t.check(GY(fq,i)),t.cidrv4=i=>t.check(YY(dq,i)),t.cidrv6=i=>t.check(IY(hq,i)),t.e164=i=>t.check(ZY(gq,i)),t.datetime=i=>t.check(jI(i)),t.date=i=>t.check(HI(i)),t.time=i=>t.check(VI(i)),t.duration=i=>t.check(GI(i))});function eE(t){return CY(eq,t)}const Sa=qe("ZodStringFormat",(t,a)=>{fa.init(t,a),yz.init(t,a)}),tq=qe("ZodEmail",(t,a)=>{HG.init(t,a),Sa.init(t,a)}),vz=qe("ZodGUID",(t,a)=>{jG.init(t,a),Sa.init(t,a)}),tE=qe("ZodUUID",(t,a)=>{LG.init(t,a),Sa.init(t,a)}),nq=qe("ZodURL",(t,a)=>{kG.init(t,a),Sa.init(t,a)}),aq=qe("ZodEmoji",(t,a)=>{VG.init(t,a),Sa.init(t,a)}),oq=qe("ZodNanoID",(t,a)=>{BG.init(t,a),Sa.init(t,a)}),rq=qe("ZodCUID",(t,a)=>{GG.init(t,a),Sa.init(t,a)}),lq=qe("ZodCUID2",(t,a)=>{YG.init(t,a),Sa.init(t,a)}),iq=qe("ZodULID",(t,a)=>{IG.init(t,a),Sa.init(t,a)}),uq=qe("ZodXID",(t,a)=>{qG.init(t,a),Sa.init(t,a)}),sq=qe("ZodKSUID",(t,a)=>{$G.init(t,a),Sa.init(t,a)}),cq=qe("ZodIPv4",(t,a)=>{QG.init(t,a),Sa.init(t,a)}),fq=qe("ZodIPv6",(t,a)=>{JG.init(t,a),Sa.init(t,a)}),dq=qe("ZodCIDRv4",(t,a)=>{KG.init(t,a),Sa.init(t,a)}),hq=qe("ZodCIDRv6",(t,a)=>{WG.init(t,a),Sa.init(t,a)}),pq=qe("ZodBase64",(t,a)=>{eY.init(t,a),Sa.init(t,a)}),mq=qe("ZodBase64URL",(t,a)=>{nY.init(t,a),Sa.init(t,a)}),gq=qe("ZodE164",(t,a)=>{aY.init(t,a),Sa.init(t,a)}),yq=qe("ZodJWT",(t,a)=>{rY.init(t,a),Sa.init(t,a)}),vq=qe("ZodUnknown",(t,a)=>{lY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>bI()});function bz(){return KY(vq)}const bq=qe("ZodNever",(t,a)=>{iY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>vI(t,i,u)});function Sq(t){return WY(bq,t)}const Eq=qe("ZodArray",(t,a)=>{uY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>TI(t,i,u,f),t.element=a.element,WS(t,"ZodArray",{min(i,u){return this.check(JS(i,u))},nonempty(i){return this.check(JS(1,i))},max(i,u){return this.check(cz(i,u))},length(i,u){return this.check(fz(i,u))},unwrap(){return this.element}})});function wq(t,a){return fI(Eq,t,a)}const Tq=qe("ZodObject",(t,a)=>{cY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>RI(t,i,u,f),Vn(t,"shape",()=>a.shape),WS(t,"ZodObject",{keyof(){return _q(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:bz()})},loose(){return this.clone({...this._zod.def,catchall:bz()})},strict(){return this.clone({...this._zod.def,catchall:Sq()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return LB(this,i)},safeExtend(i){return HB(this,i)},merge(i){return kB(this,i)},pick(i){return UB(this,i)},omit(i){return jB(this,i)},partial(...i){return VB(Ez,this,i[0])},required(...i){return BB(Rz,this,i[0])}})});function Sz(t,a){const i={type:"object",shape:t??{},...Ut(a)};return new Tq(i)}const Rq=qe("ZodUnion",(t,a)=>{fY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>OI(t,i,u,f),t.options=a.options});function Oq(t,a){return new Rq({type:"union",options:t,...Ut(a)})}const Cq=qe("ZodIntersection",(t,a)=>{dY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>CI(t,i,u,f)});function xq(t,a){return new Cq({type:"intersection",left:t,right:a})}const pO=qe("ZodEnum",(t,a)=>{hY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(u,f,p)=>SI(t,u,f),t.enum=a.entries,t.options=Object.values(a.entries);const i=new Set(Object.keys(a.entries));t.extract=(u,f)=>{const p={};for(const y of u)if(i.has(y))p[y]=a.entries[y];else throw new Error(`Key ${y} not found in enum`);return new pO({...a,checks:[],...Ut(f),entries:p})},t.exclude=(u,f)=>{const p={...a.entries};for(const y of u)if(i.has(y))delete p[y];else throw new Error(`Key ${y} not found in enum`);return new pO({...a,checks:[],...Ut(f),entries:p})}});function _q(t,a){const i=Array.isArray(t)?Object.fromEntries(t.map(u=>[u,u])):t;return new pO({type:"enum",entries:i,...Ut(a)})}const Aq=qe("ZodTransform",(t,a)=>{pY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>wI(t,i),t._zod.parse=(i,u)=>{if(u.direction==="backward")throw new L3(t.constructor.name);i.addIssue=p=>{if(typeof p=="string")i.issues.push(pv(p,i.value,a));else{const y=p;y.fatal&&(y.continue=!1),y.code??(y.code="custom"),y.input??(y.input=i.value),y.inst??(y.inst=t),i.issues.push(pv(y))}};const f=a.transform(i.value,i);return f instanceof Promise?f.then(p=>(i.value=p,i.fallback=!0,i)):(i.value=f,i.fallback=!0,i)}});function Dq(t){return new Aq({type:"transform",transform:t})}const Ez=qe("ZodOptional",(t,a)=>{az.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>mz(t,i,u,f),t.unwrap=()=>t._zod.def.innerType});function wz(t){return new Ez({type:"optional",innerType:t})}const Mq=qe("ZodExactOptional",(t,a)=>{mY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>mz(t,i,u,f),t.unwrap=()=>t._zod.def.innerType});function zq(t){return new Mq({type:"optional",innerType:t})}const Nq=qe("ZodNullable",(t,a)=>{gY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>xI(t,i,u,f),t.unwrap=()=>t._zod.def.innerType});function Tz(t){return new Nq({type:"nullable",innerType:t})}const Uq=qe("ZodDefault",(t,a)=>{yY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>AI(t,i,u,f),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function jq(t,a){return new Uq({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():G3(a)}})}const Lq=qe("ZodPrefault",(t,a)=>{vY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>DI(t,i,u,f),t.unwrap=()=>t._zod.def.innerType});function Hq(t,a){return new Lq({type:"prefault",innerType:t,get defaultValue(){return typeof a=="function"?a():G3(a)}})}const Rz=qe("ZodNonOptional",(t,a)=>{bY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>_I(t,i,u,f),t.unwrap=()=>t._zod.def.innerType});function kq(t,a){return new Rz({type:"nonoptional",innerType:t,...Ut(a)})}const Vq=qe("ZodCatch",(t,a)=>{SY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>MI(t,i,u,f),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Bq(t,a){return new Vq({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}const Gq=qe("ZodPipe",(t,a)=>{EY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>zI(t,i,u,f),t.in=a.in,t.out=a.out});function Oz(t,a){return new Gq({type:"pipe",in:t,out:a})}const Yq=qe("ZodReadonly",(t,a)=>{wY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>NI(t,i,u,f),t.unwrap=()=>t._zod.def.innerType});function Iq(t){return new Yq({type:"readonly",innerType:t})}const qq=qe("ZodCustom",(t,a)=>{TY.init(t,a),uo.init(t,a),t._zod.processJSONSchema=(i,u,f)=>EI(t,i)});function $q(t,a={}){return dI(qq,t,a)}function Zq(t,a){return hI(t,a)}const Zd={trigger:"_trigger_ltbvo_1",popup:"_popup_ltbvo_5",item:"_item_ltbvo_24",indicator:"_indicator_ltbvo_40",itemText:"_itemText_ltbvo_44",itemCode:"_itemCode_ltbvo_48",itemLabel:"_itemLabel_ltbvo_52"};function Xq({value:t,onValueChange:a}){const{gameId:i}=vs(),u=d7(i),f=x.useMemo(()=>u.find(y=>y.id===t||y.value===t)?.id||t,[u,t]);return P.jsxs(xH,{value:f,onValueChange:p=>{const y=u.find(g=>g.id===p);y&&a?.(y.value)},children:[P.jsxs(sM,{className:Zd.trigger,children:[P.jsx("span",{children:u.find(p=>p.id===f)?.value}),P.jsx(TM,{className:"size-4"})]}),P.jsx(fM,{children:P.jsx(dM,{className:"outline-none z-[999]",sideOffset:-4,align:"start",children:P.jsx(hM,{className:Zd.popup,children:u.map(({label:p,value:y,id:g})=>P.jsxs(yM,{value:g,className:Zd.item,children:[P.jsx(vM,{className:Zd.indicator,children:P.jsx(jR,{className:"size-3"})}),P.jsxs(SM,{className:Zd.itemText,children:[P.jsx("span",{className:Zd.itemCode,children:y}),P.jsx("span",{className:Zd.itemLabel,children:p})]})]},g))})})})]})}const Cz=Sz({phoneNumber:eE().regex(/^[1-9]\d{10}$/,"请输入正确的手机号"),verificationCode:eE().length(4,"请输入 6 位验证码")});function xz(){const{mobileLoginConfig:t={},gameId:a,onPhoneLoginSuccess:i,onLoginSuccess:u,onLoginError:f,triggerRealNameAuth:p}=vs(),[y,g]=x.useState("86"),[S,b]=x.useState(""),E=x.useRef(null),[T,O]=x.useState(""),[_,A]=x.useState(),[D,N]=x.useState(!0),[M,q]=ot.useState({}),[I]=AB({leftTime:_?_*1e3:void 0,interval:1e3,onEnd(){A(void 0)}}),{mutate:Y,isPending:H}=zp({mutationFn:()=>PH({mobile:S,countryCode:y,type:t.smsType}),onSuccess:K=>{A(K.lock_time),wu.success("验证码已发送,请注意查收")}}),{mutate:Z,isPending:V}=zp({mutationFn:async()=>{const K=await FH({mobile:S,countryCode:y,captcha:T});A(void 0);const fe={account:K.account,entity:K.channel_info.entity,token:K.channel_info.token,sign:K.channel_info.sign,accid:K.channel_info.entity.openid,extra_data:K.channel_info.extra_data,gaplaySign:K.channel_info.gaplaySign,realname:K.channel_info.realname};if(mS(fe,K._auth,a),fe.realname&&fe.realname.reject>=2){p();return}return i&&await i(fe),u?.(fe),K},onError:K=>{f?.(K)}});function X(){if(!D){wu.warning("请先阅读并同意用户协议和隐私政策");return}const K=new FormData(E.current),fe=Cz.pick({phoneNumber:!0}).safeParse(Object.fromEntries(K));if(!fe.success){q($S(fe.error).fieldErrors);return}Y()}async function le(K){if(K.preventDefault(),!D)return wu.warning("请先阅读并同意用户协议和隐私政策"),{errors:{}};const fe=new FormData(K.currentTarget),ie=Cz.safeParse(Object.fromEntries(fe));return ie.success?(Z(),{errors:{}}):{errors:$S(ie.error).fieldErrors}}return P.jsx(P.Fragment,{children:P.jsxs(lv,{ref:E,errors:M,onSubmit:async K=>{const fe=await le(K);q(fe.errors)},className:"space-y-5",children:[P.jsxs(Ni,{name:"phoneNumber",children:[P.jsxs("div",{className:"flex items-center border border-[var(--jssdk-input-border-color)] data-[focused]:border-[var(--jssdk-primary-color)] rounded-full bg-white gap-2 h-12",children:[P.jsx(Xq,{value:y,onValueChange:g}),P.jsx(Ss,{className:"flex-1 outline-none rounded-full h-full pl-1",placeholder:"请输入手机号码",autoFocus:!0,type:"tel",onChange:K=>b(K.currentTarget.value)})]}),P.jsx(rv,{className:"mt-1 text-sm text-red-800"})]}),P.jsxs(Ni,{name:"verificationCode",children:[P.jsxs("div",{className:"flex items-center border border-[var(--jssdk-input-border-color)] data-[focused]:border-[var(--jssdk-primary-color)] rounded-full bg-white px-3 gap-2 h-12",children:[P.jsx(Ss,{className:"flex-1 w-0 outline-none rounded-full h-full pl-1",placeholder:"请输入验证码",value:T,type:"number",onValueChange:K=>O(K)}),P.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-white inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onClick:()=>X(),disabled:!!_||H,children:H?"发送中...":_?`${Math.round(I/1e3)}s 后重新获取`:"获取验证码"})]}),P.jsx(rv,{className:"mt-1 text-sm text-red-800"})]}),P.jsx(Ui,{className:_o("my-5 h-10 w-full text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",t.buttonClassName),disabled:V,type:"submit",children:V?"登录中...":t.buttonText||"登录"}),P.jsx(xS,{}),P.jsx(N3,{checked:D,onChange:N})]})})}function nE({trigger:t,title:a,description:i,children:u,open:f,showCloseIcon:p=!0,onOpenChange:y,disablePointerDismissal:g=!1,classNames:S}){return P.jsxs(LD,{open:f,onOpenChange:y,disablePointerDismissal:g,children:[t&&P.jsx(pR,{className:S?.trigger,children:t}),P.jsxs(dR,{children:[P.jsx(iR,{className:"fixed inset-0 bg-black/70 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 dark:opacity-70 z-[990] backdrop-blur-sm",forceRender:!0}),P.jsxs(fR,{className:_o("fixed top-1/2 left-1/2 w-96 max-w-[calc(100vw-3rem)] -translate-x-1/2 -translate-y-1/2 rounded-lg bg-gray-50 p-4 text-gray-900 transition-all duration-150 data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 z-[990]",S?.popup),children:[a&&P.jsx(hR,{className:_o("-mt-1.5 mb-1 text-lg font-medium",S?.title),children:a}),i&&P.jsx(sR,{className:_o("mb-6 text-base text-gray-600",S?.description),children:i}),p&&P.jsx(uR,{className:_o("absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5",S?.close),children:P.jsx(RM,{})}),P.jsx("div",{children:u})]})]})]})}function Pq(t){return P.jsxs("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...t,children:[P.jsx("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",className:"fill-current"}),P.jsx("path",{d:"M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",className:"fill-current"})]})}function Fq({children:t,title:a,description:i,content:u,classNames:f={}}){return P.jsxs(bH,{children:[P.jsx(QD,{className:f.trigger,delay:0,children:t}),P.jsxs(JD,{children:[P.jsx(aM,{className:_o("fixed inset-0 bg-black/20 transition-all duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",f.backdrop)}),P.jsx(WD,{sideOffset:8,className:f.positioner,children:P.jsxs(tM,{className:_o("origin-[var(--transform-origin)] bg-white p-1 rounded shadow-sm text-gray-900 transition-[transform,scale,opacity] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[starting-style]:scale-90 data-[starting-style]:opacity-0 dark:shadow-none dark:-outline-offset-1 dark:outline-gray-300",f.popup),children:[P.jsx(nM,{className:_o("data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180",f.arrow),children:P.jsx(Pq,{})}),a&&P.jsx(oM,{className:"text-base font-medium",children:a}),i&&P.jsx(rM,{className:"text-base text-gray-600",children:i}),u]})})]})]})}const Xd={uidGet:"_uidGet_os9yc_1",mailCodeGet:"_mailCodeGet_os9yc_5",uidGetPopup:"_uidGetPopup_os9yc_79",uidGetArrow:"_uidGetArrow_os9yc_83",inputControl:"_inputControl_os9yc_86",form:"_form_os9yc_89"};function _z({onUidLoginSuccess:t,customSendUidMailCaptcha:a,customValidateUidMailCaptcha:i}={}){const{gameId:u,autoLoginConfig:f,sceneId:p,onUidLoginSuccess:y,onLoginSuccess:g,onLoginError:S,uidLoginConfig:b={}}=vs(),E=x.useRef(null),[T,O]=x.useState(""),[_,A]=x.useState(""),[D,N]=x.useState(!0),[M,q]=x.useState(!1),[I,{startCountdown:Y,resetCountdown:H}]=lk({countStart:120,intervalMs:1e3}),{mutate:Z}=zp({mutationFn:()=>{const K=f.enabled?f.days:void 0;return i?i({gameId:u,captcha:_,expireInDays:D?K:void 0,accountId:T,sceneId:p}):ZH({game_id:u,charid:T,captcha_type:"login",captcha:_,expires_day:D?K:void 0,scene_id:p,...b.uidMailExtraParams})},onSuccess:K=>{y?.(K),t?.(K),g?.(K)},onError:K=>{S?.(K)}}),{mutate:V,isPending:X}=zp({mutationFn:()=>a?a({gameId:u,accountId:T}):$H({game_id:u,captcha_type:"login",charid:T,scene_id:p,...b.uidMailExtraParams}),onSuccess:K=>{Y(),wu.success(K.error)}});async function le(K){K.preventDefault(),Z()}return x.useEffect(()=>{_.length===6&&T&&setTimeout(()=>{E.current?.requestSubmit()},0)},[_,T]),x.useEffect(()=>{I===0&&H(),q(I!==120)},[I,H]),P.jsxs(lv,{ref:E,onSubmit:le,className:_o("space-y-6",Xd.form),autoComplete:"off",children:[["5199","5012"].includes(u)?P.jsx("p",{className:"text-center text-xs text-white/80",children:"请点击游戏右上角“设置”查看账号ID"}):null,P.jsxs(Ni,{name:"accountId",className:_o("flex items-center border border-[var(--jssdk-input-border-color)] rounded-full bg-[var(--jssdk-input-bg-color)] px-3 gap-2 h-12",Xd.inputControl),children:[P.jsx(Fq,{content:P.jsx("div",{className:_o(Xd.uidGet,b.uidGetterImageClassName)}),classNames:{backdrop:"z-[992]",positioner:"z-[992]",popup:_o("rounded-2xl shadow-lg",Xd.uidGetPopup),arrow:Xd.uidGetArrow,trigger:"size-5 lg:size-6 lg:text-2xl rounded-full bg-[var(--jssdk-icon-color)] inline-flex items-center justify-center text-white focus:outline focus:outline-2"},children:P.jsx("span",{children:"!"})}),P.jsx(Ss,{className:"flex-1 outline-none rounded-full h-full pl-1 bg-inherit",placeholder:"请输入账号 ID",autoFocus:!0,type:"tel",onChange:K=>O(K.currentTarget.value)})]}),P.jsxs(Ni,{name:"verificationCode",className:_o("flex items-center border border-[var(--jssdk-input-border-color)] rounded-full bg-[var(--jssdk-input-bg-color)] px-3 gap-2 h-12",Xd.inputControl),children:[P.jsx(nE,{trigger:P.jsx("span",{children:"!"}),classNames:{trigger:"size-5 lg:size-6 lg:text-2xl rounded-full bg-[var(--jssdk-icon-color)] inline-flex items-center justify-center text-white focus:outline focus:outline-2",popup:"w-full lg:w-4/5 lg:max-w-5xl p-0 bg-transparent"},children:P.jsx("div",{className:_o(Xd.mailCodeGet,b.mailCodeGetterImageClassName)})}),P.jsx(Ss,{className:"flex-1 w-0 outline-none rounded-full h-full pl-1 bg-inherit",placeholder:"请输入口令码",value:_,type:"tel",onValueChange:K=>A(K)}),P.jsx("button",{type:"button",className:"enabled:text-[var(--jssdk-primary-color)] text-sm rounded-full h-4/6 px-2 enabled:hover:bg-[var(--jssdk-primary-color)] enabled:hover:text-[var(--jssdk-primary-foregroud-color)] inline-flex items-center disabled:cursor-not-allowed disabled:text-gray-500",onMouseDown:K=>{K.preventDefault()},onClick:()=>V(),disabled:M||X||!T,children:M?`${I}s`:X?"发送中...":"发送口令码"})]}),f.enabled?P.jsx(Ni,{name:"rememberLogin",children:P.jsxs(RR,{className:"flex items-center gap-2 text-gray-500",onMouseDown:K=>{K.preventDefault()},children:[P.jsx(wR,{checked:D,className:"size-5 flex items-center justify-center rounded-full border-2 data-[checked]:border-[var(--jssdk-primary-color)] data-[unchecked]:border-gray-300",onCheckedChange:K=>N(!!K),children:P.jsx(TR,{children:P.jsx(jR,{className:"size-3 text-[var(--jssdk-primary-color)]",strokeWidth:4})})}),P.jsxs("div",{children:[P.jsx("span",{className:"mr-0.5",children:f.days}),P.jsx("span",{children:"天内自动登录"})]})]})}):null,["5199","5012"].includes(u)?P.jsx("div",{className:"text-[#f59e9e] text-center text-[11px]",children:"请点击游戏内“邮件”查收口令码,未收到请重启游戏再次查看"}):null,P.jsx(xS,{})]})}const Hr={quickLogin:"_quickLogin_1ibz1_1",quickAccounts:"_quickAccounts_1ibz1_5",selectedAccount:"_selectedAccount_1ibz1_9",accountInfo:"_accountInfo_1ibz1_21",accountName:"_accountName_1ibz1_26",arrow:"_arrow_1ibz1_31",arrowRotate:"_arrowRotate_1ibz1_37",accountList:"_accountList_1ibz1_41",listScroll:"_listScroll_1ibz1_49",accountItem:"_accountItem_1ibz1_58",active:"_active_1ibz1_77",itemName:"_itemName_1ibz1_81",itemInfo:"_itemInfo_1ibz1_86",deleteBtn:"_deleteBtn_1ibz1_97"};function Qq(){const{gameId:t,onLoginSuccess:a,triggerRealNameAuth:i,setCurrentLoginType:u,defaultLoginType:f}=vs(),[p,y]=x.useState([]),[g,S]=x.useState(null),[b,E]=x.useState(!1),[T,O]=x.useState(!1),[_,A]=x.useState(!1),[D,N]=x.useState(-1);x.useEffect(()=>{M()},[t]);const M=()=>{const Z=Fp(t);y(Z),Z.length>0?(!g||!Z.find(V=>V.openid===g.openid))&&S(Z[0]):S(null)},q=Z=>{S(p[Z]),E(!1)},I=(Z,V)=>{Z.stopPropagation(),N(V),A(!0)},Y=()=>{const Z=p[D];if(Z){vD(Z.openid,t);const V=Fp(t);if(V.length===0){u(f);return}y(V),V.find(X=>X.openid===g?.openid)||S(V[0])}A(!1),N(-1)},H=async()=>{if(g){O(!0);try{fD(g.authorization);const Z=await OM(),V={account:Z.account,entity:Z.channel_info.entity,token:Z.channel_info.token,sign:Z.channel_info.sign,accid:Z.channel_info.entity.openid,extra_data:Z.channel_info.extra_data,gaplaySign:Z.channel_info.gaplaySign,realname:Z.channel_info.realname};if(mS(V,g.authorization,t),V.realname&&V.realname.reject>=2){i();return}a?.(V)}catch(Z){wu.error(Z?.detail),console.error("Quick login failed:",Z)}finally{O(!1)}}};return p.length===0?null:P.jsxs("div",{className:Hr.quickLogin,children:[P.jsxs("div",{className:Hr.quickAccounts,children:[P.jsxs("div",{className:Hr.selectedAccount,onClick:()=>E(!b),children:[P.jsx("div",{className:Hr.accountInfo,children:P.jsx("span",{className:Hr.accountName,children:g?.username})}),P.jsx(TM,{className:_o(Hr.arrow,b&&Hr.arrowRotate)})]}),b&&P.jsx("div",{className:Hr.accountList,children:P.jsx("div",{className:Hr.listScroll,children:p.map((Z,V)=>P.jsxs("div",{className:_o(Hr.accountItem,Z.openid===g?.openid&&Hr.active),onClick:()=>q(V),children:[P.jsx("div",{className:Hr.itemInfo,children:P.jsx("span",{className:Hr.itemName,children:Z.username})}),P.jsx("div",{className:Hr.deleteBtn,onClick:X=>I(X,V),children:P.jsx(IH,{className:"size-4 text-gray-400 hover:text-red-500"})})]},Z.openid))})})]}),P.jsx(Ui,{className:"w-full h-10 mt-4 mb-6 text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full shadow-lg",disabled:T,onClick:H,children:T?"登录中...":"登录"}),P.jsx(xS,{}),P.jsx(nE,{open:_,onOpenChange:A,showCloseIcon:!1,classNames:{popup:"w-[300px] p-6"},children:P.jsxs("div",{className:"text-center",children:[P.jsxs("div",{className:"mb-4",children:[P.jsx("p",{className:"text-base font-medium text-gray-900",children:"是否确认删除该条账号登录记录?"}),P.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"删除后登录记录将不会保存。"})]}),P.jsxs("div",{className:"flex gap-3 mt-6",children:[P.jsx(Ui,{className:"flex-1 h-9 border border-gray-300 rounded-full text-gray-600",onClick:()=>A(!1),children:"取消"}),P.jsx(Ui,{className:"flex-1 h-9 bg-gradient-to-r from-[#497efe] to-[#947afa] text-white rounded-full",onClick:Y,children:"确认删除"})]})]})})]})}const Jq=Sz({name:eE().refine(t=>t.length>=1,{error:"请输入真实姓名",abort:!0}).refine(t=>/^[\u4e00-\u9fa5]{2,6}$/.test(t),{error:"姓名须由 2-6 个汉字组成",abort:!0}),idcard:eE().refine(t=>t.length>=1,{error:"请输入身份证号",abort:!0}).refine(t=>/^\d{17}(\d|X|x)$/.test(t),{error:"身份证号格式不正确",abort:!0})});function Kq(){const{gameId:t,onLoginSuccess:a,onAccountLoginSuccess:i,onPhoneLoginSuccess:u,showRealNameModal:f,setShowRealNameModal:p,onClose:y}=vs(),[g,S]=x.useState({}),{mutate:b,isPending:E}=zp({mutationFn:async O=>{const A=Fp(t)[0];if(!A)throw new Error("未找到登录账号信息");await QH({uid:A.uid,authorization:A.authorization,name:O.name,idcard:O.idcard});const D=await JH(A.authorization),N={account:D.account,entity:D.channel_info.entity,token:D.channel_info.token,sign:D.channel_info.sign,accid:D.channel_info.entity.openid,extra_data:D.channel_info.extra_data,gaplaySign:D.channel_info.gaplaySign,realname:D.channel_info.realname};wu.success("实名认证成功"),p(!1),N.account?.mobile?u?.(N):i?.(N),a?.(N)},onError:O=>{wu.error(O.message||"实名认证失败")}}),T=O=>{const _=Jq.safeParse(O);if(!_.success){S($S(_.error).fieldErrors);return}S({}),b(_.data)};return P.jsxs(nE,{open:f,onOpenChange:p,title:"实名认证",showCloseIcon:!1,disablePointerDismissal:!0,classNames:{popup:"w-[400px] p-6 rounded-2xl",title:"text-center text-xl mb-3"},children:[P.jsx("div",{className:"text-sm text-gray-500 mb-6 text-center",children:"根据《关于防止未成年人沉迷网络游戏的通知》,游戏用户需使用有效身份证进行实名认证。"}),P.jsxs(lv,{onFormSubmit:T,errors:g,className:"space-y-4",children:[P.jsxs(Ni,{name:"name",children:[P.jsx("div",{className:"flex items-center border border-gray-300 rounded-full px-4 h-12 focus-within:border-[#787bf4] transition-colors",children:P.jsx(Ss,{className:"flex-1 outline-none text-base bg-transparent",placeholder:"请输入您的真实姓名"})}),P.jsx(rv,{className:"mt-1 ml-2 text-xs text-red-500"})]}),P.jsxs(Ni,{name:"idcard",children:[P.jsx("div",{className:"flex items-center border border-gray-300 rounded-full px-4 h-12 focus-within:border-[#787bf4] transition-colors",children:P.jsx(Ss,{className:"flex-1 outline-none text-base bg-transparent",placeholder:"请输入您的身份证号",maxLength:18})}),P.jsx(rv,{className:"mt-1 ml-2 text-xs text-red-500"})]}),P.jsx(Ui,{type:"submit",className:"w-full h-12 mt-6 text-white bg-gradient-to-r from-[#497efe] to-[#947afa] rounded-full font-bold shadow-lg disabled:opacity-50",disabled:E,children:E?"提交中...":"提交认证"}),P.jsx("button",{type:"button",className:"w-full mt-4 text-sm text-gray-400 hover:text-gray-600 transition-colors",onClick:y,children:"退出游戏"})]})]})}const Az={modal:"_modal_1pbx2_2",close:"_close_1pbx2_8"},aE={autoLoginHint:"_autoLoginHint_h58ls_1",left:"_left_h58ls_22",loading:"_loading_h58ls_28",switchBtn:"_switchBtn_h58ls_37"};function Wq({onSwitch:t}){const{autoLoginAccountName:a,setIsAutoLoggingIn:i}=vs(),u=()=>{i(!1),t()};return P.jsxs("div",{className:aE.autoLoginHint,children:[P.jsxs("div",{className:aE.left,children:[P.jsx("div",{className:aE.loading}),P.jsxs("span",{children:[a," 正在登录..."]})]}),P.jsx("button",{className:aE.switchBtn,onClick:u,children:"切换账号"})]})}function e$({open:t,onOpenChange:a}){const{gameId:i,loginTypes:u,currentLoginType:f,closeable:p,isShowGiantLogo:y,onLoginSuccess:g,triggerRealNameAuth:S,showRealNameModal:b,setIsAutoLoggingIn:E,setAutoLoginAccountName:T}=vs(),[O,_]=ot.useState(!1),A=ot.useMemo(()=>Fp(i),[i,t]),D=t&&A.length>0&&!O;x.useEffect(()=>{if(!t){_(!1),E(!1);return}if(D){const I=A[0];(async()=>{if(!I){_(!0);return}E(!0),T(I.username);try{fD(I.authorization);const H=await OM(),Z={account:H.account,entity:H.channel_info.entity,token:H.channel_info.token,sign:H.channel_info.sign,accid:H.channel_info.entity.openid,extra_data:H.channel_info.extra_data,gaplaySign:H.channel_info.gaplaySign,realname:H.channel_info.realname};if(mS(Z,I.authorization,i),Z.realname&&Z.realname.reject>=2){E(!1),_(!0),S();return}E(!1),_(!0),a?.(!1),g?.(Z)}catch(H){console.error("Auto quick login failed:",H),E(!1),_(!0)}})()}},[t,i,D]);const N=hD({loginTypes:u,gameId:i}),M=pD({loginTypes:u,gameId:i}),q=dD({loginTypes:u,gameId:i});return P.jsxs(P.Fragment,{children:[D&&P.jsx(Wq,{onSwitch:()=>_(!0)}),P.jsxs(nE,{open:t&&!D&&!b,onOpenChange:a,classNames:{popup:_o("w-[400px] p-5",Az.modal),close:Az.close},showCloseIcon:p,children:[y&&!u7(i)&&P.jsx("section",{className:"flex items-center justify-center mb-6",children:P.jsx("img",{src:i==="5327"?"https://cdn-imgs.sdk.mobileztgame.com/paycenter/260511150749961295.png":"https://h5.sdk.mobileztgame.com/dist/bg_logo.png",className:"aspect-[240/85] w-32"})}),P.jsxs("section",{children:[f==="quick"&&P.jsx(Qq,{}),f===$n.MOBILE&&M&&P.jsx(xz,{}),f===$n.ROLE_ID&&N&&P.jsx(_z,{}),f===$n.GIANT&&q&&P.jsx(EB,{})]})]}),P.jsx(Kq,{})]})}class t$ extends x.Component{constructor(a){super(a),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(a){console.error("[Login SDK] Uncaught error:",a)}render(){return this.state.hasError?null:this.props.children}}function mO({open:t,onOpenChange:a,sceneId:i,onPhoneLoginSuccess:u,onAccountLoginSuccess:f,onUidLoginSuccess:p,onLoginSuccess:y,onLoginError:g,closeable:S=!0,mountToaster:b=!0,toastConfigs:E,...T}){const[O]=x.useState(()=>new x6);return P.jsxs(ot.StrictMode,{children:[P.jsx(D6,{client:O,children:P.jsx(TD,{value:{sceneId:i,onPhoneLoginSuccess:u,onAccountLoginSuccess:f,onUidLoginSuccess:p,onLoginSuccess:_=>{g7(p7({gameId:Hd(T.gameId),serverUserInfo:_})),y?.(_)},onLoginError:g,closeable:S,onClose:()=>a?.(!1),...T},children:P.jsx(t$,{children:P.jsx(e$,{open:t,onOpenChange:a})})})}),b&&P.jsx(o7,{toastConfigs:E})]})}const Dz=t=>W2(Hd(t)),Mz=t=>m7(Hd(t)),zz=t=>!!W2(Hd(t));function Nz({loginTypes:t,defaultLoginType:a,gameId:i,onLoginSuccess:u,onLoginError:f}){const p=Hd(i);if(document.querySelector(".login-sdk-container"))return console.warn("Login component is already active. Multiple instances are not allowed."),{close:()=>{}};const y=document.createElement("div");y.className="login-sdk-container",document.body.appendChild(y);const g=a6.createRoot(y),S=()=>{setTimeout(()=>{g.unmount(),y.remove()},200)},b=()=>{g.render(P.jsx(mO,{gameId:p,loginTypes:t,defaultLoginType:a,open:!1,onOpenChange:E,onLoginSuccess:u,onLoginError:f})),S()},E=T=>{T||b()};return g.render(P.jsx(mO,{gameId:p,loginTypes:t,defaultLoginType:a,open:!0,onOpenChange:E,onLoginSuccess:u,onLoginError:f})),{close:b}}const n$={init:SD,login:Nz,logout:Mz,getUserInfo:Dz,isLoggedIn:zz};Zo.ConfigProvider=TD,Zo.Login=mO,Zo.MobileLogin=xz,Zo.SDK=n$,Zo.UidLogin=_z,Zo.getGameId=Hd,Zo.getUserInfo=Dz,Zo.init=SD,Zo.isLoggedIn=zz,Zo.login=Nz,Zo.logout=Mz,Object.defineProperty(Zo,Symbol.toStringTag,{value:"Module"})}));