mobx-view-model-devtools 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.vmButton_esipO{position:fixed;z-index:999999;width:36px;height:36px;border-radius:8px;transition:all .15s ease-in-out;cursor:pointer;-webkit-user-select:none;user-select:none}.vmButton_esipO.dragging_kUMCE{transition:none;cursor:grabbing;opacity:.8;z-index:1000}.vmButton_esipO.opened_NYAFW{opacity:0!important;pointer-events:none}.vmButton_esipO[data-position=top-right]{top:12px;right:12px}.vmButton_esipO[data-position=top-left]{top:12px;left:12px}.vmButton_esipO[data-position=bottom-left]{bottom:12px;left:12px}.vmButton_esipO[data-position=bottom-right]{bottom:12px;right:12px}.vmButton_esipO>img{pointer-events:none;position:absolute;inset:0;border-radius:8px}.vmButton_esipO>div{transition:all .15s ease-in-out;position:absolute;inset:0;border-radius:8px;border:2px solid #00000057}.vmButton_esipO>span{left:-4px;top:-4px;pointer-events:none;position:absolute;display:flex;border-radius:8px;background:#005c26cf;padding:2px;font-weight:600;font-size:12px;line-height:12px;color:#2aff0a}.vmButton_esipO:not(.isConnected_eObxX){filter:grayscale(1)}.iconToggleButton_R48wm{display:flex;align-items:center;gap:2px;position:relative;height:20px;outline:none;border-radius:4px;-webkit-backdrop-filter:blur(var(--vmd-control-blur));backdrop-filter:blur(var(--vmd-control-blur))}.activePosition_IXsRn{position:absolute;height:16px;width:16px;padding:1px;box-sizing:content-box!important;background:var(--vmd-control-active-bg);-webkit-backdrop-filter:blur(var(--vmd-base-blur));backdrop-filter:blur(var(--vmd-base-blur));border-radius:4px;transition:all 149ms ease;transform:translate(calc(20px * var(--index)))}.option_a5IcR{padding:1px;z-index:1;width:18px;height:18px;display:flex;align-items:center;justify-content:center;transition:all 149ms ease;color:var(--vmd-control-inactive-color)}.option_a5IcR.active_6QS-2{color:var(--vmd-control-active-color)}.option_a5IcR>svg{width:14px;height:14px}:root{--vmd-base-blur: 2px;--vmd-bg: #0c0a19e6;--vmd-overlay-bg: #0e1227bd;--vmd-base-color: #ccc;--vmd-control-active-bg: #e6e6e682;--vmd-control-active-color: #181818;--vmd-control-active-text-input-color: var(--vmd-base-color);--vmd-control-active-text-input-placeholder-color: #a3a3a3;--vmd-control-inactive-color: #8b8b8b;--vmd-control-border: #5b5468a6;--vmd-control-bg: transparent;--vmd-control-blur: 2px;--vmd-bg-transparent: #1f1c2600;--vmd-content-bg: transparent;--vmd-content-highlight-bg: #ffffff0a;--vmd-scrollbar-track-size: 8px;--vmd-scrollbar-bg-base: #81818170;--vmd-scrollbar-bg-active: #818181;--vmd-property-meta-color: #616161;--vmd-primary-bg: #0f6013;--vmd-primary-color: #5ab65e;--vmd-secondary-bg: #6b6902;--vmd-header-height: 60px}.root_Xsw1F{display:contents;box-sizing:border-box}.root_Xsw1F *{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;box-sizing:border-box}.root_Xsw1F button{outline:none;background:transparent;border:0;cursor:pointer;margin:0;padding-block:0;padding-inline:0;color:var(--vmd-base-color)}.hierarchyButton_h3FD7{width:18px;height:18px;padding:2px;border-radius:6px}.hierarchyButton_h3FD7.active_4JTx5{background:#f0f0f01f}.treeItemHeader_9gR6Q{display:flex;align-items:center;gap:4px;margin:auto 0;cursor:pointer;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.treeItemLabel_eiMgP{padding:0 4px;border-radius:4px}.treeItemMetaText_cmfX0{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.treeItem_sRXPA{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:pre;height:22px;display:flex;flex-direction:row;align-items:center;padding-left:calc(8px + (var(--level) * 20px));position:sticky;top:calc(var(--vmd-header-height) + var(--vmd-control-panel-height));z-index:1}.treeItem_sRXPA:hover{background:var(--vmd-content-highlight-bg)}.treeItem_sRXPA:not([data-fitted=true])>header{opacity:.6}.vmTreeItem_t-7jc .treeItemLabel_eiMgP{background:var(--vmd-primary-bg)}.vmTreeItem_t-7jc .treeItemMetaText_cmfX0{color:var(--vmd-primary-color)}.extraTreeItem_z3KA1 .treeItemLabel_eiMgP{background:var(--vmd-secondary-bg)}.expandButton_B24E3{color:#a0a0a0;opacity:1!important;width:16px;height:16px;font-weight:700;cursor:pointer}.expandButton_B24E3.expanded_8-pD6{color:#b8b8b8;transform:rotate(90deg)}.expandButton_B24E3.disabled_MBq1Q{opacity:.35!important}.vmContent_TIK57[data-simplebar]{position:relative;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;color:var(--vmd-base-color);background:var(--vmd-bg);-webkit-backdrop-filter:blur(var(--vmd-base-blur));backdrop-filter:blur(var(--vmd-base-blur));display:flex;flex-direction:column;overflow:auto;overflow-y:auto;scrollbar-width:thin;overflow-anchor:none}.vmContent_TIK57[data-simplebar] .simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.vmContent_TIK57[data-simplebar] .simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.vmContent_TIK57[data-simplebar] .simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.vmContent_TIK57[data-simplebar] .simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.vmContent_TIK57[data-simplebar] .simplebar-content-wrapper::-webkit-scrollbar,.vmContent_TIK57[data-simplebar] .simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.vmContent_TIK57[data-simplebar] .simplebar-content:after,.vmContent_TIK57[data-simplebar] .simplebar-content:before{content:" ";display:table}.vmContent_TIK57[data-simplebar] .simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.vmContent_TIK57[data-simplebar] .simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.vmContent_TIK57[data-simplebar] .simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.vmContent_TIK57[data-simplebar] .simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}.vmContent_TIK57[data-simplebar].simplebar-dragging,.vmContent_TIK57[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vmContent_TIK57[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar:before{position:absolute;content:"";background:var(--vmd-scrollbar-bg-base);border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.vmContent_TIK57[data-simplebar] .simplebar-track.simplebar-vertical{top:0;width:var(--vmd-scrollbar-track-size)}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar:before{inset:2px}.vmContent_TIK57[data-simplebar] .simplebar-track.simplebar-horizontal{left:0;height:var(--vmd-scrollbar-track-size)}.vmContent_TIK57[data-simplebar] .simplebar-track.simplebar-horizontal .simplebar-scrollbar{inset:0 auto 0 0;min-height:0;min-width:10px;width:auto}.vmContent_TIK57[data-simplebar] .simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.vmContent_TIK57[data-simplebar] .simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.vmContent_TIK57[data-simplebar] .simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}.vmContentHeader_M1JNM{display:flex;flex-direction:column;height:var(--vmd-header-height);flex:none;padding:0 8px;position:sticky;top:0;z-index:1}.vmContentHeaderLogo_FRJDO{width:16px;margin-right:6px}.vmContentHeaderTitle_lYmde{display:flex;justify-content:space-between;align-items:center;flex:none;font-weight:600;z-index:1}.vmContentHeaderTitleText_RlIFH{font-size:16px;margin-right:auto}.vmContentControlPanel_CgUN9{width:100%;height:var(--vmd-control-panel-height);padding-bottom:4px;flex:none;display:flex;flex-direction:row;z-index:1;gap:4px;overflow:hidden;padding-right:6px}.vmContentControlPanel_CgUN9:has(.vmContentInput_29GM1 input:focus)>.vmContentControlPanelActions_lONbA{margin-left:-106px}.vmContentControlPanelActions_lONbA{display:flex;flex-direction:row;align-items:center;gap:6px;transition:all .15s ease}.hiearchyToggleButton_0FTG-{display:flex}.vmContentInput_29GM1{display:flex;position:relative;flex:1;-webkit-backdrop-filter:blur(var(--vmd-control-blur));backdrop-filter:blur(var(--vmd-control-blur))}.vmContentInput_29GM1>svg{position:absolute;width:16px;inset:50% 0;transform:translate(6px,-50%);pointer-events:none;opacity:.7}.vmContentInput_29GM1>input{background:var(--vmd-control-bg);border:1px solid var(--vmd-control-border);color:var(--vmd-control-active-text-input-color);border-radius:4px;outline:0;width:100%;padding:3px 26px;font-size:14px;text-overflow:ellipsis}.vmContentInput_29GM1>input::placeholder{color:var(--vmd-control-active-text-input-placeholder-color)}.vmContentInput_29GM1>button{position:absolute;right:6px;width:16px;transform:translate(4px,-50%);top:50%;opacity:.6;display:none}.vmContentInput_29GM1.filled_6JZa0>svg{opacity:.9}.vmContentInput_29GM1.filled_6JZa0>button{display:block}.vmContentVirtualized_lia62{flex:1}.vmContentVirtualized_lia62>div>div{height:22px}.gradientBlur_-y-re{position:absolute;top:0;left:0;width:100%;height:calc(100% + 6px);pointer-events:none;background:linear-gradient(to bottom,var(--vmd-overlay-bg) 0%,rgba(0,0,0,0) 100%)}.gradientBlur_-y-re:before{content:"";position:absolute;inset:0;background:transparent;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);-webkit-mask:linear-gradient(to bottom,var(--vmd-overlay-bg) 50%,rgba(0,0,0,0) 100%);mask:linear-gradient(to bottom,var(--vmd-overlay-bg) 50%,rgba(0,0,0,0) 100%)}.property_sD8FG{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:pre;background:var(--vmd-content-bg);height:22px;display:flex;flex-direction:row;align-items:center;position:relative;color:var(--vmd-property-meta-color);padding-left:calc(0px + 28px + (var(--level) * 15px))}.property_sD8FG:hover{background:var(--vmd-content-highlight-bg)}.property_sD8FG.expandable_np03F{cursor:pointer}.property_sD8FG[data-fitted=false]{opacity:.5}.property_sD8FG.instance_jv3IW{--value-color: rgb(190 113 195)}.property_sD8FG.primitive_v6LAV.boolean_Z6znK,.property_sD8FG.primitive_v6LAV.number_U9H45,.property_sD8FG.primitive_v6LAV.object_bHf4I,.property_sD8FG.primitive_v6LAV.bigint_HkgX8,.property_sD8FG.primitive_v6LAV.symbol_oKSwT{--value-color: rgb(89, 153, 205)}.property_sD8FG.primitive_v6LAV.undefined_6CapW,.property_sD8FG.primitive_v6LAV.null_lugoL{--value-color: #499098}.primitive_v6LAV.string_87vm1{--value-color: #af7249}.propertyName_KicXG{color:#ccc}.propertyMeta_Ia9ce{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.propertyValue_fYO2g{color:var(--value-color, var(--vmd-property-meta-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.propertyValue_fYO2g:has(+.propertyName_KicXG){margin-right:4px}.propertyOperations_fT6Ez{position:absolute;right:12px;display:flex;align-items:center;opacity:0}.property_sD8FG:hover>.propertyOperations_fT6Ez{opacity:1}.vmPopup_0hkGL{position:fixed!important;z-index:999999;width:520px;border-radius:8px;height:calc(100vh - 24px);width:calc(100vw - 34px);max-width:520px;box-shadow:0 5px 20px #0006}.vmPopup_0hkGL[data-position=top-right]{top:12px;right:12px}.vmPopup_0hkGL[data-position=top-left]{top:12px;left:12px}.vmPopup_0hkGL[data-position=bottom-left]{bottom:12px;left:12px}.vmPopup_0hkGL[data-position=bottom-right]{bottom:12px;right:12px}.closePopupButton_igv9j{width:28px;height:28px;padding:6px;border:0;background:transparent;color:var(--vmd-base-color);display:flex;align-items:center;justify-content:center}')),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const createCounter=(e,t=0)=>{const n=t=>(i.value=e?.(t)??t,i.value),r=()=>n(++i.counter),i=r;return i.increment=r,i.decrement=()=>n(--i.counter),i.reset=()=>{i.counter=t,i.value=e?.(t)??t},i.reset(),i},createGlobalPoint=e=>{if(null==e){let e;return{get:()=>e,set:t=>(e=t,t)}}const t=globalThis;return{get:()=>t[e],set:n=>(t[e]=n,n)}},createGlobalConfig=(e,t)=>{const n=createGlobalPoint(t);return n.get()||n.set(e)},createPubSub=()=>{const e=(...t)=>{e.lastPub=t,e.subs.forEach(e=>{e(...t)})};return e.lastPub=void 0,e.subs=[],e.unsub=t=>{e.subs=e.subs.filter(e=>e!==t)},e.sub=t=>(e.subs.push(t),()=>e.unsub(t)),e};function die(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var mockGlobal={};function getGlobal$1(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:mockGlobal}var assign=Object.assign,getDescriptor=Object.getOwnPropertyDescriptor,defineProperty=Object.defineProperty,objectPrototype=Object.prototype,EMPTY_ARRAY=[];Object.freeze(EMPTY_ARRAY);var EMPTY_OBJECT={};Object.freeze(EMPTY_OBJECT);var hasProxy="undefined"!=typeof Proxy,plainObjectString=Object.toString();function assertProxies(){hasProxy||die("Proxy not available")}function once(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var noop=function(){};function isFunction$1(e){return"function"==typeof e}function isStringish(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function isObject$2(e){return null!==e&&"object"==typeof e}function isPlainObject(e){if(!isObject$2(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===plainObjectString}function isGenerator(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function addHiddenProp(e,t,n){defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function addHiddenFinalProp(e,t,n){defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function createInstanceofPredicate(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return isObject$2(e)&&!0===e[n]}}function isES6Map(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function isPlainES6Map(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return null===Object.getPrototypeOf(n)}function isES6Set(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var hasGetOwnPropertySymbols=void 0!==Object.getOwnPropertySymbols;function getPlainObjectKeys(e){var t=Object.keys(e);if(!hasGetOwnPropertySymbols)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return objectPrototype.propertyIsEnumerable.call(e,t)})):t}var ownKeys="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:hasGetOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function toPrimitive(e){return null===e?null:"object"==typeof e?""+e:e}function hasProp(e,t){return objectPrototype.hasOwnProperty.call(e,t)}var getOwnPropertyDescriptors=Object.getOwnPropertyDescriptors||function(e){var t={};return ownKeys(e).forEach(function(n){t[n]=getDescriptor(e,n)}),t};function getFlag(e,t){return!!(e&t)}function setFlag(e,t,n){return n?e|=t:e&=~t,e}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var storedAnnotationsSymbol=Symbol("mobx-stored-annotations");function createDecoratorAnnotation(e){return Object.assign(function(t,n){if(is20223Decorator(n))return e.decorate_20223_(t,n);storeAnnotation(t,n,e)},e)}function storeAnnotation(e,t,n){hasProp(e,storedAnnotationsSymbol)||addHiddenProp(e,storedAnnotationsSymbol,_extends({},e[storedAnnotationsSymbol])),isOverride(n)||(e[storedAnnotationsSymbol][t]=n)}function collectStoredAnnotations(e){return hasProp(e,storedAnnotationsSymbol)||addHiddenProp(e,storedAnnotationsSymbol,_extends({},e[storedAnnotationsSymbol])),e[storedAnnotationsSymbol]}function is20223Decorator(e){return"object"==typeof e&&"string"==typeof e.kind}var $mobx=Symbol("mobx administration"),Atom=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return reportObserved(this)},t.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},t.toString=function(){return this.name_},_createClass(e,[{key:"isBeingObserved",get:function(){return getFlag(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return getFlag(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return getFlag(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=setFlag(this.flags_,e.diffValueMask_,1===t)}}])}();Atom.isBeingObservedMask_=1,Atom.isPendingUnobservationMask_=2,Atom.diffValueMask_=4;var isAtom=createInstanceofPredicate("Atom",Atom);function createAtom(e,t,n){void 0===t&&(t=noop),void 0===n&&(n=noop);var r=new Atom(e);return t!==noop&&onBecomeObserved(r,t),n!==noop&&onBecomeUnobserved(r,n),r}function structuralComparer(e,t){return deepEqual(e,t)}function defaultComparer(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}var comparer={structural:structuralComparer,default:defaultComparer};function deepEnhancer(e,t,n){return isObservable(e)?e:Array.isArray(e)?observable.array(e,{name:n}):isPlainObject(e)?observable.object(e,void 0,{name:n}):isES6Map(e)?observable.map(e,{name:n}):isES6Set(e)?observable.set(e,{name:n}):"function"!=typeof e||isAction(e)||isFlow(e)?e:isGenerator(e)?flow(e):autoAction(n,e)}function shallowEnhancer(e,t,n){return null==e||isObservableObject(e)||isObservableArray(e)||isObservableMap(e)||isObservableSet(e)?e:Array.isArray(e)?observable.array(e,{name:n,deep:!1}):isPlainObject(e)?observable.object(e,void 0,{name:n,deep:!1}):isES6Map(e)?observable.map(e,{name:n,deep:!1}):isES6Set(e)?observable.set(e,{name:n,deep:!1}):void 0}function referenceEnhancer(e){return e}function refStructEnhancer(e,t){return deepEqual(e,t)?t:e}var OVERRIDE="override";function isOverride(e){return e.annotationType_===OVERRIDE}function createActionAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$1,extend_:extend_$1,decorate_20223_:decorate_20223_$1}}function make_$1(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(isAction(n.value))return 1;var o=createActionDescriptor(e,this,t,n,!1);return defineProperty(r,t,o),2}function extend_$1(e,t,n,r){var i=createActionDescriptor(e,this,t,n);return e.defineProperty_(t,i,r)}function decorate_20223_$1(e,t){var n,r=t.kind,i=t.name,o=t.addInitializer,a=this,s=function(e){var t,n,r,o;return createAction(null!=(t=null==(n=a.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=a.options_)?void 0:o.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return isAction(n)||(n=s(n)),null!=(t=a.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(isAction(e)||(e=s(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t}),e):void die("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):\n'"+a.annotationType_+"' can only be used on properties with a function value.")}function assertActionDescriptor(e,t,n,r){t.annotationType_,r.value}function createActionDescriptor(e,t,n,r,i){var o,a,s,l,u,c,d;void 0===i&&(i=globalState.safeDescriptors),assertActionDescriptor(e,t,n,r);var p,f=r.value;null!=(o=t.options_)&&o.bound&&(f=f.bind(null!=(p=e.proxy_)?p:e.target_));return{value:createAction(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),f,null!=(l=null==(u=t.options_)?void 0:u.autoAction)&&l,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function createFlowAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$2,extend_:extend_$2,decorate_20223_:decorate_20223_$2}}function make_$2(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!hasProp(e.target_,t)||!isFlow(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(isFlow(n.value))return 1;var o=createFlowDescriptor(e,this,t,n,!1,!1);return defineProperty(r,t,o),2}function extend_$2(e,t,n,r){var i,o=createFlowDescriptor(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function decorate_20223_$2(e,t){var n,r=t.name,i=t.addInitializer;return isFlow(e)||(e=flow(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function assertFlowDescriptor(e,t,n,r){t.annotationType_,r.value}function createFlowDescriptor(e,t,n,r,i,o){void 0===o&&(o=globalState.safeDescriptors),assertFlowDescriptor(e,t,n,r);var a,s=r.value;(isFlow(s)||(s=flow(s)),i)&&((s=s.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0);return{value:s,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function createComputedAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$3,extend_:extend_$3,decorate_20223_:decorate_20223_$3}}function make_$3(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function extend_$3(e,t,n,r){return assertComputedDescriptor(e,this,t,n),e.defineComputedProperty_(t,_extends({},this.options_,{get:n.get,set:n.set}),r)}function decorate_20223_$3(e,t){var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=asObservableObject(this)[$mobx],i=_extends({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new ComputedValue(i))}),function(){return this[$mobx].getObservablePropValue_(r)}}function assertComputedDescriptor(e,t,n,r){t.annotationType_,r.get}function createObservableAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$4,extend_:extend_$4,decorate_20223_:decorate_20223_$4}}function make_$4(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function extend_$4(e,t,n,r){var i,o;return assertObservableDescriptor(e,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:deepEnhancer,r)}function decorate_20223_$4(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function a(e,t){var r,a,s=asObservableObject(e)[$mobx],l=new ObservableValue(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:deepEnhancer,"ObservableObject."+i.toString(),!1);s.values_.set(i,l),o.add(e)}if("accessor"==r)return{get:function(){return o.has(this)||a(this,e.get.call(this)),this[$mobx].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[$mobx].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}function assertObservableDescriptor(e,t,n,r){t.annotationType_}var AUTO="true",autoAnnotation=createAutoAnnotation();function createAutoAnnotation(e){return{annotationType_:AUTO,options_:e,make_:make_$5,extend_:extend_$5,decorate_20223_:decorate_20223_$5}}function make_$5(e,t,n,r){var i,o,a,s;if(n.get)return computed.make_(e,t,n,r);if(n.set){var l=isAction(n.set)?n.set:createAction(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!globalState.safeDescriptors||e.isPlainObject_,set:l})?0:2:(defineProperty(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return isGenerator(n.value)?(null!=(s=this.options_)&&s.autoBind?flow.bound:flow).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?autoAction.bound:autoAction).make_(e,t,n,r);var u,c=!1===(null==(i=this.options_)?void 0:i.deep)?observable.ref:observable;"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_));return c.make_(e,t,n,r)}function extend_$5(e,t,n,r){var i,o,a;if(n.get)return computed.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!globalState.safeDescriptors||e.isPlainObject_,set:createAction(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?observable.ref:observable).extend_(e,t,n,r)}function decorate_20223_$5(e,t){die("'"+this.annotationType_+"' cannot be used as a decorator")}var OBSERVABLE="observable",OBSERVABLE_REF="observable.ref",OBSERVABLE_SHALLOW="observable.shallow",OBSERVABLE_STRUCT="observable.struct",defaultCreateObservableOptions={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function asCreateObservableOptions(e){return e||defaultCreateObservableOptions}Object.freeze(defaultCreateObservableOptions);var observableAnnotation=createObservableAnnotation(OBSERVABLE),observableRefAnnotation=createObservableAnnotation(OBSERVABLE_REF,{enhancer:referenceEnhancer}),observableShallowAnnotation=createObservableAnnotation(OBSERVABLE_SHALLOW,{enhancer:shallowEnhancer}),observableStructAnnotation=createObservableAnnotation(OBSERVABLE_STRUCT,{enhancer:refStructEnhancer}),observableDecoratorAnnotation=createDecoratorAnnotation(observableAnnotation);function getEnhancerFromOptions(e){return!0===e.deep?deepEnhancer:!1===e.deep?referenceEnhancer:getEnhancerFromAnnotation(e.defaultDecorator)}function getAnnotationFromOptions(e){var t;return e?null!=(t=e.defaultDecorator)?t:createAutoAnnotation(e):void 0}function getEnhancerFromAnnotation(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:deepEnhancer}function createObservable(e,t,n){return is20223Decorator(t)?observableAnnotation.decorate_20223_(e,t):isStringish(t)?void storeAnnotation(e,t,observableAnnotation):isObservable(e)?e:isPlainObject(e)?observable.object(e,t,n):Array.isArray(e)?observable.array(e,t):isES6Map(e)?observable.map(e,t):isES6Set(e)?observable.set(e,t):"object"==typeof e&&null!==e?e:observable.box(e,t)}assign(createObservable,observableDecoratorAnnotation);var _getDescriptor$config,_getDescriptor,observableFactories={box:function(e,t){var n=asCreateObservableOptions(t);return new ObservableValue(e,getEnhancerFromOptions(n),n.name,!0,n.equals)},array:function(e,t){var n=asCreateObservableOptions(t);return(!1===globalState.useProxies||!1===n.proxy?createLegacyArray:createObservableArray)(e,getEnhancerFromOptions(n),n.name)},map:function(e,t){var n=asCreateObservableOptions(t);return new ObservableMap(e,getEnhancerFromOptions(n),n.name)},set:function(e,t){var n=asCreateObservableOptions(t);return new ObservableSet(e,getEnhancerFromOptions(n),n.name)},object:function(e,t,n){return initObservable(function(){return extendObservable(!1===globalState.useProxies||!1===(null==n?void 0:n.proxy)?asObservableObject({},n):asDynamicObservableObject({},n),e,t)})},ref:createDecoratorAnnotation(observableRefAnnotation),shallow:createDecoratorAnnotation(observableShallowAnnotation),deep:observableDecoratorAnnotation,struct:createDecoratorAnnotation(observableStructAnnotation)},observable=assign(createObservable,observableFactories),COMPUTED="computed",COMPUTED_STRUCT="computed.struct",computedAnnotation=createComputedAnnotation(COMPUTED),computedStructAnnotation=createComputedAnnotation(COMPUTED_STRUCT,{equals:comparer.structural}),computed=function(e,t){if(is20223Decorator(t))return computedAnnotation.decorate_20223_(e,t);if(isStringish(t))return storeAnnotation(e,t,computedAnnotation);if(isPlainObject(e))return createDecoratorAnnotation(createComputedAnnotation(COMPUTED,e));var n=isPlainObject(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new ComputedValue(n)};Object.assign(computed,computedAnnotation),computed.struct=createDecoratorAnnotation(computedStructAnnotation);var currentActionId=0,nextActionId=1,isFunctionNameConfigurable$1=null!=(_getDescriptor$config=null==(_getDescriptor=getDescriptor(function(){},"name"))?void 0:_getDescriptor.configurable)&&_getDescriptor$config,tmpNameDescriptor={value:"action",configurable:!0,writable:!1,enumerable:!1};function createAction(e,t,n,r){function i(){return executeAction(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},isFunctionNameConfigurable$1&&(tmpNameDescriptor.value=e,defineProperty(i,"name",tmpNameDescriptor)),i}function executeAction(e,t,n,r,i){var o=_startAction(e,t);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{_endAction(o)}}function _startAction(e,t,n,r){var i=globalState.trackingDerivation,o=!t||!i;startBatch();var a=globalState.allowStateChanges;o&&(untrackedStart(),a=allowStateChangesStart(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:allowStateReadsStart(!0),notifySpy_:!1,startTime_:0,actionId_:nextActionId++,parentActionId_:currentActionId};return currentActionId=s.actionId_,s}function _endAction(e){currentActionId!==e.actionId_&&die(30),currentActionId=e.parentActionId_,void 0!==e.error_&&(globalState.suppressReactionErrors=!0),allowStateChangesEnd(e.prevAllowStateChanges_),allowStateReadsEnd(e.prevAllowStateReads_),endBatch(),e.runAsAction_&&untrackedEnd(e.prevDerivation_),globalState.suppressReactionErrors=!1}function allowStateChanges(e,t){var n=allowStateChangesStart(e);try{return t()}finally{allowStateChangesEnd(n)}}function allowStateChangesStart(e){var t=globalState.allowStateChanges;return globalState.allowStateChanges=e,t}function allowStateChangesEnd(e){globalState.allowStateChanges=e}var ObservableValue=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=comparer.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}_inheritsLoose(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==globalState.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(hasInterceptors(this)){var t=interceptChange(this,{object:this,type:UPDATE,newValue:e});if(!t)return globalState.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?globalState.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),hasListeners(this)&&notifyListeners(this,{type:UPDATE,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return registerInterceptor(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:UPDATE,newValue:this.value_,oldValue:void 0}),registerListener(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return toPrimitive(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Atom),ComputedValue=function(){function e(e){this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new CaughtException(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=TraceMode.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||die(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=createAction("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?comparer.structural:comparer.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){propagateMaybeChanged(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&die(32,this.name_,this.derivation),0!==globalState.inBatch||0!==this.observers_.size||this.keepAlive_){if(reportObserved(this),shouldCompute(this)){var e=globalState.trackingContext;this.keepAlive_&&!e&&(globalState.trackingContext=this),this.trackAndCompute()&&propagateChangeConfirmed(this),globalState.trackingContext=e}}else shouldCompute(this)&&(this.warnAboutUntrackedRead_(),startBatch(),this.value_=this.computeValue_(!1),endBatch());var t=this.value_;if(isCaughtException(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&die(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else die(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===IDerivationState_.NOT_TRACKING_,n=this.computeValue_(!0),r=t||isCaughtException(e)||isCaughtException(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=allowStateChangesStart(!1);if(e)t=trackDerivedFunction(this,this.derivation,this.scope_);else if(!0===globalState.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new CaughtException(e)}return allowStateChangesEnd(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(clearObserving(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return autorun(function(){var o=n.get();if(!r||t){var a=untrackedStart();e({observableKind:"computed",debugObjectName:n.name_,type:UPDATE,object:n,newValue:o,oldValue:i}),untrackedEnd(a)}r=!1,i=o})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return toPrimitive(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},_createClass(e,[{key:"isComputing",get:function(){return getFlag(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return getFlag(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return getFlag(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return getFlag(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return getFlag(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=setFlag(this.flags_,e.diffValueMask_,1===t)}}])}();ComputedValue.isComputingMask_=1,ComputedValue.isRunningSetterMask_=2,ComputedValue.isBeingObservedMask_=4,ComputedValue.isPendingUnobservationMask_=8,ComputedValue.diffValueMask_=16;var IDerivationState_,TraceMode,isComputedValue=createInstanceofPredicate("ComputedValue",ComputedValue);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(IDerivationState_||(IDerivationState_={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(TraceMode||(TraceMode={}));var CaughtException=function(e){this.cause=void 0,this.cause=e};function isCaughtException(e){return e instanceof CaughtException}function shouldCompute(e){switch(e.dependenciesState_){case IDerivationState_.UP_TO_DATE_:return!1;case IDerivationState_.NOT_TRACKING_:case IDerivationState_.STALE_:return!0;case IDerivationState_.POSSIBLY_STALE_:for(var t=allowStateReadsStart(!0),n=untrackedStart(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(isComputedValue(a)){if(globalState.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return untrackedEnd(n),allowStateReadsEnd(t),!0}if(e.dependenciesState_===IDerivationState_.STALE_)return untrackedEnd(n),allowStateReadsEnd(t),!0}}return changeDependenciesStateTo0(e),untrackedEnd(n),allowStateReadsEnd(t),!1}}function checkIfStateModificationsAreAllowed(e){}function trackDerivedFunction(e,t,n){var r=allowStateReadsStart(!0);changeDependenciesStateTo0(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++globalState.runId;var i,o=globalState.trackingDerivation;if(globalState.trackingDerivation=e,globalState.inBatch++,!0===globalState.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new CaughtException(e)}return globalState.inBatch--,globalState.trackingDerivation=o,bindDependencies(e),allowStateReadsEnd(r),i}function bindDependencies(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=IDerivationState_.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var l=t[o];0===l.diffValue&&removeObserver(l,e),l.diffValue=0}for(;i--;){var u=n[i];1===u.diffValue&&(u.diffValue=0,addObserver(u,e))}r!==IDerivationState_.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function clearObserving(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)removeObserver(t[n],e);e.dependenciesState_=IDerivationState_.NOT_TRACKING_}function untracked(e){var t=untrackedStart();try{return e()}finally{untrackedEnd(t)}}function untrackedStart(){var e=globalState.trackingDerivation;return globalState.trackingDerivation=null,e}function untrackedEnd(e){globalState.trackingDerivation=e}function allowStateReadsStart(e){var t=globalState.allowStateReads;return globalState.allowStateReads=e,t}function allowStateReadsEnd(e){globalState.allowStateReads=e}function changeDependenciesStateTo0(e){if(e.dependenciesState_!==IDerivationState_.UP_TO_DATE_){e.dependenciesState_=IDerivationState_.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=IDerivationState_.UP_TO_DATE_}}var MobXGlobals=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},canMergeGlobalState=!0,isolateCalled=!1,globalState=function(){var e=getGlobal$1();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(canMergeGlobalState=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new MobXGlobals).version&&(canMergeGlobalState=!1),canMergeGlobalState?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new MobXGlobals):(setTimeout(function(){isolateCalled||die(35)},1),new MobXGlobals)}();function isolateGlobalState(){if((globalState.pendingReactions.length||globalState.inBatch||globalState.isRunningReactions)&&die(36),isolateCalled=!0,canMergeGlobalState){var e=getGlobal$1();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),globalState=new MobXGlobals}}function addObserver(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function removeObserver(e,t){e.observers_.delete(t),0===e.observers_.size&&queueForUnobservation(e)}function queueForUnobservation(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,globalState.pendingUnobservations.push(e))}function startBatch(){globalState.inBatch++}function endBatch(){if(0===--globalState.inBatch){runReactions();for(var e=globalState.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof ComputedValue&&n.suspend_())}globalState.pendingUnobservations=[]}}function reportObserved(e){var t=globalState.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&globalState.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&globalState.inBatch>0&&queueForUnobservation(e),!1)}function propagateChanged(e){e.lowestObserverState_!==IDerivationState_.STALE_&&(e.lowestObserverState_=IDerivationState_.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===IDerivationState_.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=IDerivationState_.STALE_}))}function propagateChangeConfirmed(e){e.lowestObserverState_!==IDerivationState_.STALE_&&(e.lowestObserverState_=IDerivationState_.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===IDerivationState_.POSSIBLY_STALE_?t.dependenciesState_=IDerivationState_.STALE_:t.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(e.lowestObserverState_=IDerivationState_.UP_TO_DATE_)}))}function propagateMaybeChanged(e){e.lowestObserverState_===IDerivationState_.UP_TO_DATE_&&(e.lowestObserverState_=IDerivationState_.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(e.dependenciesState_=IDerivationState_.POSSIBLY_STALE_,e.onBecomeStale_())}))}var Reaction=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=TraceMode.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,globalState.pendingReactions.push(this),runReactions())},t.runReaction_=function(){if(!this.isDisposed){startBatch(),this.isScheduled=!1;var e=globalState.trackingContext;if(globalState.trackingContext=this,shouldCompute(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}globalState.trackingContext=e,endBatch()}},t.track=function(e){if(!this.isDisposed){startBatch(),this.isRunning=!0;var t=globalState.trackingContext;globalState.trackingContext=this;var n=trackDerivedFunction(this,e,void 0);globalState.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(n)&&this.reportExceptionInDerivation_(n.cause),endBatch()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(globalState.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";globalState.suppressReactionErrors||console.error(n,e),globalState.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(startBatch(),clearObserving(this),endBatch()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[$mobx]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){},_createClass(e,[{key:"isDisposed",get:function(){return getFlag(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return getFlag(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return getFlag(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return getFlag(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return getFlag(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=setFlag(this.flags_,e.diffValueMask_,1===t)}}])}();Reaction.isDisposedMask_=1,Reaction.isScheduledMask_=2,Reaction.isTrackPendingMask_=4,Reaction.isRunningMask_=8,Reaction.diffValueMask_=16;var MAX_REACTION_ITERATIONS=100,reactionScheduler=function(e){return e()};function runReactions(){globalState.inBatch>0||globalState.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){globalState.isRunningReactions=!0;for(var e=globalState.pendingReactions,t=0;e.length>0;){++t===MAX_REACTION_ITERATIONS&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}globalState.isRunningReactions=!1}var isReaction=createInstanceofPredicate("Reaction",Reaction);function setReactionScheduler(e){var t=reactionScheduler;reactionScheduler=function(n){return e(function(){return t(n)})}}function isSpyEnabled(){return!1}function spyReport(e){}function spyReportStart(e){}function spyReportEnd(e){}function spy(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var ACTION="action",ACTION_BOUND="action.bound",AUTOACTION="autoAction",AUTOACTION_BOUND="autoAction.bound",DEFAULT_ACTION_NAME="<unnamed action>",actionAnnotation=createActionAnnotation(ACTION),actionBoundAnnotation=createActionAnnotation(ACTION_BOUND,{bound:!0}),autoActionAnnotation=createActionAnnotation(AUTOACTION,{autoAction:!0}),autoActionBoundAnnotation=createActionAnnotation(AUTOACTION_BOUND,{autoAction:!0,bound:!0});function createActionFactory(e){return function(t,n){return isFunction$1(t)?createAction(t.name||DEFAULT_ACTION_NAME,t,e):isFunction$1(n)?createAction(t,n,e):is20223Decorator(n)?(e?autoActionAnnotation:actionAnnotation).decorate_20223_(t,n):isStringish(n)?storeAnnotation(t,n,e?autoActionAnnotation:actionAnnotation):isStringish(t)?createDecoratorAnnotation(createActionAnnotation(e?AUTOACTION:ACTION,{name:t,autoAction:e})):void 0}}var action=createActionFactory(!1);Object.assign(action,actionAnnotation);var autoAction=createActionFactory(!0);function runInAction(e){return executeAction(e.name||DEFAULT_ACTION_NAME,!1,e,this,void 0)}function isAction(e){return isFunction$1(e)&&!0===e.isMobxAction}function autorun(e,t){var n,r,i,o;void 0===t&&(t=EMPTY_OBJECT);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)a=new Reaction(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var l=createSchedulerFromOptions(t),u=!1;a=new Reaction(s,function(){u||(u=!0,l(function(){u=!1,a.isDisposed||a.track(c)}))},t.onError,t.requiresObservable)}function c(){e(a)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}Object.assign(autoAction,autoActionAnnotation),action.bound=createDecoratorAnnotation(actionBoundAnnotation),autoAction.bound=createDecoratorAnnotation(autoActionBoundAnnotation);var run=function(e){return e()};function createSchedulerFromOptions(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:run}function reaction(e,t,n){var r,i,o;void 0===n&&(n=EMPTY_OBJECT);var a,s=null!=(r=n.name)?r:"Reaction",l=action(s,n.onError?wrapErrorHandler(n.onError,t):t),u=!n.scheduler&&!n.delay,c=createSchedulerFromOptions(n),d=!0,p=!1,f=n.compareStructural?comparer.structural:n.equals||comparer.default,h=new Reaction(s,function(){d||u?m():p||(p=!0,c(m))},n.onError,n.requiresObservable);function m(){if(p=!1,!h.isDisposed){var t=!1,r=a;h.track(function(){var n=allowStateChanges(!1,function(){return e(h)});t=d||!f(a,n),a=n}),(d&&n.fireImmediately||!d&&t)&&l(a,r,h),d=!1}}return null!=(i=n)&&null!=(i=i.signal)&&i.aborted||h.schedule_(),h.getDisposer_(null==(o=n)?void 0:o.signal)}function wrapErrorHandler(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}var ON_BECOME_OBSERVED="onBO",ON_BECOME_UNOBSERVED="onBUO";function onBecomeObserved(e,t,n){return interceptHook(ON_BECOME_OBSERVED,e,t,n)}function onBecomeUnobserved(e,t,n){return interceptHook(ON_BECOME_UNOBSERVED,e,t,n)}function interceptHook(e,t,n,r){var i=getAtom(t),o=isFunction$1(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var NEVER="never",ALWAYS="always",OBSERVED="observed";function configure(e){!0===e.isolateGlobalState&&isolateGlobalState();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(globalState.useProxies=t===ALWAYS||t!==NEVER&&"undefined"!=typeof Proxy),"ifavailable"===t&&(globalState.verifyProxies=!0),void 0!==n){var r=n===ALWAYS?ALWAYS:n===OBSERVED;globalState.enforceActions=r,globalState.allowStateChanges=!0!==r&&r!==ALWAYS}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(globalState[t]=!!e[t])}),globalState.allowStateReads=!globalState.observableRequiresReaction,e.reactionScheduler&&setReactionScheduler(e.reactionScheduler)}function extendObservable(e,t,n,r){var i=getOwnPropertyDescriptors(t);return initObservable(function(){var t=asObservableObject(e,r)[$mobx];ownKeys(i).forEach(function(e){t.extend_(e,i[e],!n||(!(e in n)||n[e]))})}),e}function getDependencyTree(e,t){return nodeToDependencyTree(getAtom(e,t))}function nodeToDependencyTree(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=unique(e.observing_).map(nodeToDependencyTree)),t}function unique(e){return Array.from(new Set(e))}var generatorId=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}FlowCancellationError.prototype=Object.create(Error.prototype);var flowAnnotation=createFlowAnnotation("flow"),flowBoundAnnotation=createFlowAnnotation("flow.bound",{bound:!0}),flow=Object.assign(function(e,t){if(is20223Decorator(t))return flowAnnotation.decorate_20223_(e,t);if(isStringish(t))return storeAnnotation(e,t,flowAnnotation);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++generatorId,o=action(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise(function(t,n){var s=0;function l(e){var t;a=void 0;try{t=action(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function u(e){var t;a=void 0;try{t=action(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!isFunction$1(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,u);e.then(c,n)}e=n,l(void 0)});return s.cancel=action(r+" - runid: "+i+" - cancel",function(){try{a&&cancelPromise(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(noop,noop),cancelPromise(n),e(new FlowCancellationError)}catch(t){e(t)}}),s};return i.isMobXFlow=!0,i},flowAnnotation);function cancelPromise(e){isFunction$1(e.cancel)&&e.cancel()}function isFlow(e){return!0===(null==e?void 0:e.isMobXFlow)}function _isObservable(e,t){return!!e&&(isObservableObject(e)||!!e[$mobx]||isAtom(e)||isReaction(e)||isComputedValue(e))}function isObservable(e){return _isObservable(e)}function transaction(e,t){void 0===t&&(t=void 0),startBatch();try{return e.apply(t)}finally{endBatch()}}function getAdm(e){return e[$mobx]}flow.bound=createDecoratorAnnotation(flowBoundAnnotation);var objectProxyTraps={has:function(e,t){return getAdm(e).has_(t)},get:function(e,t){return getAdm(e).get_(t)},set:function(e,t,n){var r;return!!isStringish(t)&&(null==(r=getAdm(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!isStringish(t)&&(null==(n=getAdm(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=getAdm(e).defineProperty_(t,n))||r},ownKeys:function(e){return getAdm(e).ownKeys_()},preventExtensions:function(e){die(13)}};function asDynamicObservableObject(e,t){var n,r;return assertProxies(),null!=(r=(n=(e=asObservableObject(e,t))[$mobx]).proxy_)?r:n.proxy_=new Proxy(e,objectProxyTraps)}function hasInterceptors(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function registerInterceptor(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),once(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function interceptChange(e,t){var n=untrackedStart();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&((t=r[i](t))&&!t.type&&die(14),t);i++);return t}finally{untrackedEnd(n)}}function hasListeners(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function registerListener(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),once(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function notifyListeners(e,t){var n=untrackedStart(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);untrackedEnd(n)}}function makeObservable(e,t,n){return initObservable(function(){var r=asObservableObject(e,n)[$mobx];null!=t||(t=collectStoredAnnotations(e)),ownKeys(t).forEach(function(e){return r.make_(e,t[e])})}),e}var SPLICE="splice",UPDATE="update",MAX_SPLICE_SIZE=1e4,arrayTraps={get:function(e,t){var n=e[$mobx];return t===$mobx?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?hasProp(arrayExtensions,t)?arrayExtensions[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[$mobx];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){die(15)}},ObservableArrayAdministration=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new Atom(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return registerInterceptor(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),registerListener(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&die("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&die(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&reserveArrayBuffer(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;checkIfStateModificationsAreAllowed(this.atom_);var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=EMPTY_ARRAY),hasInterceptors(this)){var o=interceptChange(this,{object:this.proxy_,type:SPLICE,index:e,removedCount:t,added:n});if(!o)return EMPTY_ARRAY;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<MAX_SPLICE_SIZE)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"array",object:this.proxy_,type:UPDATE,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&notifyListeners(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:SPLICE,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&notifyListeners(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&die(17,e,n.length),e<n.length){checkIfStateModificationsAreAllowed(this.atom_);var r=n[e];if(hasInterceptors(this)){var i=interceptChange(this,{type:UPDATE,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var o=new Array(e+1-n.length),a=0;a<o.length-1;a++)o[a]=void 0;o[o.length-1]=t,this.spliceWithArray_(n.length,0,o)}},e}();function createObservableArray(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),assertProxies(),initObservable(function(){var i=new ObservableArrayAdministration(n,t,r,!1);addHiddenFinalProp(i.values_,$mobx,i);var o=new Proxy(i.values_,arrayTraps);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var arrayExtensions={clear:function(){return this.splice(0)},replace:function(e){var t=this[$mobx];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[$mobx];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[$mobx].spliceWithArray_(e,t,n)},push:function(){for(var e=this[$mobx],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[$mobx].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[$mobx],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return globalState.trackingDerivation&&die(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){globalState.trackingDerivation&&die(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[$mobx],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function addArrayExtension(e,t){"function"==typeof Array.prototype[e]&&(arrayExtensions[e]=t(e))}function simpleFunc(e){return function(){var t=this[$mobx];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function mapLikeFunc(e){return function(t,n){var r=this,i=this[$mobx];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function reduceLikeFunc(e){return function(){var t=this,n=this[$mobx];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}addArrayExtension("at",simpleFunc),addArrayExtension("concat",simpleFunc),addArrayExtension("flat",simpleFunc),addArrayExtension("includes",simpleFunc),addArrayExtension("indexOf",simpleFunc),addArrayExtension("join",simpleFunc),addArrayExtension("lastIndexOf",simpleFunc),addArrayExtension("slice",simpleFunc),addArrayExtension("toString",simpleFunc),addArrayExtension("toLocaleString",simpleFunc),addArrayExtension("toSorted",simpleFunc),addArrayExtension("toSpliced",simpleFunc),addArrayExtension("with",simpleFunc),addArrayExtension("every",mapLikeFunc),addArrayExtension("filter",mapLikeFunc),addArrayExtension("find",mapLikeFunc),addArrayExtension("findIndex",mapLikeFunc),addArrayExtension("findLast",mapLikeFunc),addArrayExtension("findLastIndex",mapLikeFunc),addArrayExtension("flatMap",mapLikeFunc),addArrayExtension("forEach",mapLikeFunc),addArrayExtension("map",mapLikeFunc),addArrayExtension("some",mapLikeFunc),addArrayExtension("toReversed",mapLikeFunc),addArrayExtension("reduce",reduceLikeFunc),addArrayExtension("reduceRight",reduceLikeFunc);var isObservableArrayAdministration=createInstanceofPredicate("ObservableArrayAdministration",ObservableArrayAdministration);function isObservableArray(e){return isObject$2(e)&&isObservableArrayAdministration(e[$mobx])}var ObservableMapMarker={},ADD="add",DELETE="delete",ObservableMap=function(){function e(e,t,n){var r=this;void 0===t&&(t=deepEnhancer),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$mobx]=ObservableMapMarker,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,isFunction$1(Map)||die(18),initObservable(function(){r.keysAtom_=createAtom("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!globalState.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new ObservableValue(this.has_(e),referenceEnhancer,"ObservableMap.key?",!1);this.hasMap_.set(e,r),onBecomeUnobserved(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(hasInterceptors(this)){var r=interceptChange(this,{type:n?UPDATE:ADD,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((checkIfStateModificationsAreAllowed(this.keysAtom_),hasInterceptors(this))&&!interceptChange(this,{type:DELETE,object:this,name:e}))return!1;if(this.has_(e)){var n=isSpyEnabled(),r=hasListeners(this),i=r||n?{observableKind:"map",debugObjectName:this.name_,type:DELETE,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return transaction(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&notifyListeners(this,i),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==globalState.UNCHANGED){var r=isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:UPDATE,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&notifyListeners(this,o)}},t.addValue_=function(e,t){var n=this;checkIfStateModificationsAreAllowed(this.keysAtom_),transaction(function(){var r,i=new ObservableValue(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:ADD,object:this,name:e,newValue:t}:null;i&&notifyListeners(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return makeIterableForMap({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return makeIterableForMap({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=_createForOfIteratorHelperLoose(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return isObservableMap(e)&&(e=new Map(e)),transaction(function(){isPlainObject(e)?getPlainObjectKeys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):isES6Map(e)?(isPlainES6Map(e)||die(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&die(20,e)}),this},t.clear=function(){var e=this;transaction(function(){untracked(function(){for(var t,n=_createForOfIteratorHelperLoose(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return transaction(function(){for(var n,r=convertToMap(e),i=new Map,o=!1,a=_createForOfIteratorHelperLoose(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var l=t.data_.get(s);i.set(s,l)}}for(var u,c=_createForOfIteratorHelperLoose(r.entries());!(u=c()).done;){var d=u.value,p=d[0],f=d[1],h=t.data_.has(p);if(t.set(p,f),t.data_.has(p)){var m=t.data_.get(p);i.set(p,m),h||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var b=t.data_.keys(),g=i.keys(),v=b.next(),y=g.next();!v.done;){if(v.value!==y.value){t.keysAtom_.reportChanged();break}v=b.next(),y=g.next()}t.data_=i}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return registerListener(this,e)},t.intercept_=function(e){return registerInterceptor(this,e)},_createClass(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),isObservableMap=createInstanceofPredicate("ObservableMap",ObservableMap);function makeIterableForMap(e){return e[Symbol.toStringTag]="MapIterator",makeIterable(e)}function convertToMap(e){if(isES6Map(e)||isObservableMap(e))return e;if(Array.isArray(e))return new Map(e);if(isPlainObject(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return die(21,e)}var ObservableSetMarker={},ObservableSet=function(){function e(e,t,n){var r=this;void 0===t&&(t=deepEnhancer),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[$mobx]=ObservableSetMarker,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,isFunction$1(Set)||die(22),this.enhancer_=function(e,r){return t(e,r,n)},initObservable(function(){r.atom_=createAtom(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;transaction(function(){untracked(function(){for(var t,n=_createForOfIteratorHelperLoose(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=_createForOfIteratorHelperLoose(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(checkIfStateModificationsAreAllowed(this.atom_),hasInterceptors(this)){var n=interceptChange(this,{type:ADD,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){transaction(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=hasListeners(this),i=r?{observableKind:"set",debugObjectName:this.name_,type:ADD,object:this,newValue:e}:null;r&&notifyListeners(this,i)}return this},t.delete=function(e){var t=this;if(hasInterceptors(this)&&!interceptChange(this,{type:DELETE,object:this,oldValue:e}))return!1;if(this.has(e)){var n=hasListeners(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:DELETE,object:this,oldValue:e}:null;return transaction(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&notifyListeners(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return makeIterableForSet({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return makeIterableForSet({next:function(){var n=t.next(),r=n.value,i=n.done;return i?{value:void 0,done:i}:{value:e.dehanceValue_(r),done:i}}})},t.intersection=function(e){return isES6Set(e)&&!isObservableSet(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return isES6Set(e)&&!isObservableSet(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return isES6Set(e)&&!isObservableSet(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return isES6Set(e)&&!isObservableSet(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return isObservableSet(e)&&(e=new Set(e)),transaction(function(){Array.isArray(e)||isES6Set(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&die("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return registerListener(this,e)},t.intercept_=function(e){return registerInterceptor(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},_createClass(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),isObservableSet=createInstanceofPredicate("ObservableSet",ObservableSet);function makeIterableForSet(e){return e[Symbol.toStringTag]="SetIterator",makeIterable(e)}var descriptorCache=Object.create(null),REMOVE="remove",ObservableObjectAdministration=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=autoAnnotation),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new Atom("ObservableObject.keys"),this.isPlainObject_=isPlainObject(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof ComputedValue)return n.set(t),!0;if(hasInterceptors(this)){var r=interceptChange(this,{type:UPDATE,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==globalState.UNCHANGED){var i=hasListeners(this),o=i?{type:UPDATE,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&notifyListeners(this,o)}return!0},t.get_=function(e){return globalState.trackingDerivation&&!hasProp(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),hasProp(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!globalState.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new ObservableValue(e in this.target_,referenceEnhancer,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[storedAnnotationsSymbol])&&n[e])return;die(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==objectPrototype;){var i=getDescriptor(r,e);if(i){var o=t.make_(this,e,i,r);if(0===o)return;if(1===o)break}r=Object.getPrototypeOf(r)}recordAnnotationApplied(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&recordAnnotationApplied(this,n,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),checkIfStateModificationsAreAllowed(this.keysAtom_);try{startBatch();var r=this.delete_(e);if(!r)return r;if(hasInterceptors(this)){var i=interceptChange(this,{object:this.proxy_||this.target_,name:e,type:ADD,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=_extends({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else defineProperty(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{endBatch()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),checkIfStateModificationsAreAllowed(this.keysAtom_);try{startBatch();var i=this.delete_(e);if(!i)return i;if(hasInterceptors(this)){var o=interceptChange(this,{object:this.proxy_||this.target_,name:e,type:ADD,newValue:t});if(!o)return null;t=o.newValue}var a=getCachedObservablePropDescriptor(e),s={configurable:!globalState.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else defineProperty(this.target_,e,s);var l=new ObservableValue(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{endBatch()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),checkIfStateModificationsAreAllowed(this.keysAtom_);try{startBatch();var r=this.delete_(e);if(!r)return r;if(hasInterceptors(this))if(!interceptChange(this,{object:this.proxy_||this.target_,name:e,type:ADD,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=getCachedObservablePropDescriptor(e),o={configurable:!globalState.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else defineProperty(this.target_,e,o);this.values_.set(e,new ComputedValue(t)),this.notifyPropertyAddition_(e,void 0)}finally{endBatch()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),checkIfStateModificationsAreAllowed(this.keysAtom_),!hasProp(this.target_,e))return!0;if(hasInterceptors(this)&&!interceptChange(this,{object:this.proxy_||this.target_,name:e,type:REMOVE}))return null;try{var n;startBatch();var r,i=hasListeners(this),o=this.values_.get(e),a=void 0;if(!o&&i)a=null==(r=getDescriptor(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof ObservableValue&&(a=o.value_),propagateChanged(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var s={type:REMOVE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};0,i&&notifyListeners(this,s)}}finally{endBatch()}return!0},t.observe_=function(e,t){return registerListener(this,e)},t.intercept_=function(e){return registerInterceptor(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=hasListeners(this);if(r){var i=r?{type:ADD,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&notifyListeners(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),ownKeys(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function asObservableObject(e,t){var n;if(hasProp(e,$mobx))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new ObservableObjectAdministration(e,new Map,String(r),getAnnotationFromOptions(t));return addHiddenProp(e,$mobx,i),e}var isObservableObjectAdministration=createInstanceofPredicate("ObservableObjectAdministration",ObservableObjectAdministration);function getCachedObservablePropDescriptor(e){return descriptorCache[e]||(descriptorCache[e]={get:function(){return this[$mobx].getObservablePropValue_(e)},set:function(t){return this[$mobx].setObservablePropValue_(e,t)}})}function isObservableObject(e){return!!isObject$2(e)&&isObservableObjectAdministration(e[$mobx])}function recordAnnotationApplied(e,t,n){var r;null==(r=e.target_[storedAnnotationsSymbol])||delete r[n]}var ENTRY_0=createArrayEntryDescriptor(0),safariPrototypeSetterInheritanceBug=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),OBSERVABLE_ARRAY_BUFFER_SIZE=0,StubArray=function(){};function inherit(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):void 0!==e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}inherit(StubArray,Array.prototype);var LegacyObservableArray=function(e){function t(t,n,r,i){var o;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,initObservable(function(){var e=new ObservableArrayAdministration(r,n,i,!0);e.proxy_=o,addHiddenFinalProp(o,$mobx,e),t&&t.length&&o.spliceWithArray(0,0,t),safariPrototypeSetterInheritanceBug&&Object.defineProperty(o,"0",ENTRY_0)}),o}_inheritsLoose(t,e);var n=t.prototype;return n.concat=function(){this[$mobx].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return isObservableArray(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return makeIterable({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},_createClass(t,[{key:"length",get:function(){return this[$mobx].getArrayLength_()},set:function(e){this[$mobx].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(StubArray);function createArrayEntryDescriptor(e){return{enumerable:!1,configurable:!0,get:function(){return this[$mobx].get_(e)},set:function(t){this[$mobx].set_(e,t)}}}function createArrayBufferItem(e){defineProperty(LegacyObservableArray.prototype,""+e,createArrayEntryDescriptor(e))}function reserveArrayBuffer(e){if(e>OBSERVABLE_ARRAY_BUFFER_SIZE){for(var t=OBSERVABLE_ARRAY_BUFFER_SIZE;t<e+100;t++)createArrayBufferItem(t);OBSERVABLE_ARRAY_BUFFER_SIZE=e}}function createLegacyArray(e,t,n){return new LegacyObservableArray(e,t,n)}function getAtom(e,t){if("object"==typeof e&&null!==e){if(isObservableArray(e))return void 0!==t&&die(23),e[$mobx].atom_;if(isObservableSet(e))return e.atom_;if(isObservableMap(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||die(25,t,getDebugName(e)),n}if(isObservableObject(e)){if(!t)return die(26);var r=e[$mobx].values_.get(t);return r||die(27,t,getDebugName(e)),r}if(isAtom(e)||isComputedValue(e)||isReaction(e))return e}else if(isFunction$1(e)&&isReaction(e[$mobx]))return e[$mobx];die(28)}function getAdministration(e,t){return e||die(29),isAtom(e)||isComputedValue(e)||isReaction(e)||isObservableMap(e)||isObservableSet(e)?e:e[$mobx]?e[$mobx]:void die(24,e)}function getDebugName(e,t){var n;if(void 0!==t)n=getAtom(e,t);else{if(isAction(e))return e.name;n=isObservableObject(e)||isObservableMap(e)||isObservableSet(e)?getAdministration(e):getAtom(e)}return n.name_}function initObservable(e){var t=untrackedStart(),n=allowStateChangesStart(!0);startBatch();try{return e()}finally{endBatch(),allowStateChangesEnd(n),untrackedEnd(t)}}Object.entries(arrayExtensions).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&addHiddenProp(LegacyObservableArray.prototype,t,n)}),reserveArrayBuffer(1e3);var _getGlobal$Iterator,toString=objectPrototype.toString;function deepEqual(e,t,n){return void 0===n&&(n=-1),eq(e,t,n)}function eq(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=unwrap(e),t=unwrap(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(isFunction$1(l)&&l instanceof l&&isFunction$1(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!eq(e[c],t[c],n-1,r,i))return!1}else{var d=Object.keys(e),p=d.length;if(Object.keys(t).length!==p)return!1;for(var f=0;f<p;f++){var h=d[f];if(!hasProp(t,h)||!eq(e[h],t[h],n-1,r,i))return!1}}return r.pop(),i.pop(),!0}function unwrap(e){return isObservableArray(e)?e.slice():isES6Map(e)||isObservableMap(e)||isES6Set(e)||isObservableSet(e)?Array.from(e.entries()):e}var maybeIteratorPrototype=(null==(_getGlobal$Iterator=getGlobal$1().Iterator)?void 0:_getGlobal$Iterator.prototype)||{};function makeIterable(e){return e[Symbol.iterator]=getSelf,Object.assign(Object.create(maybeIteratorPrototype),e)}function getSelf(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===getGlobal$1()[e]&&die("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:spy,extras:{getDebugName:getDebugName},$mobx:$mobx});const TYPE={Null:"null",Undefined:"undefined",NaN:"nan",Object:"[object Object]",Array:"[object Array]",String:"[object String]",Number:"[object Number]",Boolean:"[object Boolean]",Function:"[object Function]",AsyncFunction:"[object AsyncFunction]",RegExp:"[object RegExp]",Symbol:"[object Symbol]",Infinite:"infinite",Element:"element"};function getType(e){if(void 0===e)return TYPE.Undefined;if(null===e)return TYPE.Null;if(e&&(1===e.nodeType||9===e.nodeType))return TYPE.Element;const t=Object.prototype.toString.call(e);if(t===TYPE.Number){if(Number.isNaN(e))return TYPE.NaN;if(!Number.isFinite(e))return TYPE.Infinite}return t}const createTypeGuard=(...e)=>t=>e.includes(getType(t)),isDefined=e=>null!=e,isNull=createTypeGuard(TYPE.Null),isUndefined=createTypeGuard(TYPE.Undefined),isObject$1=createTypeGuard(TYPE.Object),isArray=createTypeGuard(TYPE.Array),isString=createTypeGuard(TYPE.String),isNumber$1=createTypeGuard(TYPE.Number),isBoolean=createTypeGuard(TYPE.Boolean),isFunction=createTypeGuard(TYPE.Function,TYPE.AsyncFunction),isRegExp=createTypeGuard(TYPE.RegExp),isElement=createTypeGuard(TYPE.Element),isNaN$1=createTypeGuard(TYPE.NaN),isInfinite=createTypeGuard(TYPE.Infinite),isSymbol$1=createTypeGuard(TYPE.Symbol),_exports=Object.freeze(Object.defineProperty({__proto__:null,isArray:isArray,isBoolean:isBoolean,isDefined:isDefined,isElement:isElement,isFunction:isFunction,isInfinite:isInfinite,isNaN:isNaN$1,isNull:isNull,isNumber:isNumber$1,isObject:isObject$1,isRegExp:isRegExp,isString:isString,isSymbol:isSymbol$1,isUndefined:isUndefined},Symbol.toStringTag,{value:"Module"})),applyObservable$1=(e,t,n)=>{n?(t.forEach(([t,n])=>{n(e,t)}),makeObservable(e)):makeObservable(e,Object.fromEntries(t))},createRef=e=>{let t;const n=e?.comparer??comparer.default,r=e=>{const i=e??null;n(r.current,i)||runInAction(()=>{t=r.current??void 0,r.current=i,r.listeners.forEach(e=>{e(r.current,t)}),null===r.current&&void 0!==t&&(t=void 0)})};return r.listeners=new Set(e?.onChange?[e.onChange]:[]),(e?.onSet||e?.onUnset)&&r.listeners.add((t,n)=>{t?e.onSet?.(t,n):e.onUnset?.(n)}),r.current=e?.initial??null,r.meta=e?.meta??{},makeObservable(r,{current:observable.ref,meta:observable}),r},isShallowEqual=(e,t)=>{if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;if(e.constructor!==t.constructor)return!1;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){const n=e,r=t;if(n.length!==r.length)return!1;for(const[e,t]of n.entries())if(t!==r[e])return!1;return!0}if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;const o=t;for(const t of r)if(!Object.hasOwn(o,t)||e[t]!==o[t])return!1;return!0},{entries:entries,setPrototypeOf:setPrototypeOf,isFrozen:isFrozen,getPrototypeOf:getPrototypeOf,getOwnPropertyDescriptor:getOwnPropertyDescriptor}=Object;let{freeze:freeze,seal:seal,create:create}=Object,{apply:apply,construct:construct}="undefined"!=typeof Reflect&&Reflect;freeze||(freeze=function(e){return e}),seal||(seal=function(e){return e}),apply||(apply=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),construct||(construct=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return apply(e,t,r)}}function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return construct(e,n)}}function addToSet(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(isFrozen(t)||(t[r]=e),i=e)}e[i]=!0}return e}function cleanArray(e){for(let t=0;t<e.length;t++){objectHasOwnProperty(e,t)||(e[t]=null)}return e}function clone(e){const t=create(null);for(const[n,r]of entries(e)){objectHasOwnProperty(e,n)&&(Array.isArray(r)?t[n]=cleanArray(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=clone(r):t[n]=r)}return t}function lookupGetter(e,t){for(;null!==e;){const n=getOwnPropertyDescriptor(e,t);if(n){if(n.get)return unapply(n.get);if("function"==typeof n.value)return unapply(n.value)}e=getPrototypeOf(e)}return function(){return null}}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR:ARIA_ATTR,ATTR_WHITESPACE:ATTR_WHITESPACE,CUSTOM_ELEMENT:CUSTOM_ELEMENT,DATA_ATTR:DATA_ATTR,DOCTYPE_NAME:DOCTYPE_NAME,ERB_EXPR:ERB_EXPR,IS_ALLOWED_URI:IS_ALLOWED_URI,IS_SCRIPT_OR_DATA:IS_SCRIPT_OR_DATA,MUSTACHE_EXPR:MUSTACHE_EXPR,TMPLIT_EXPR:TMPLIT_EXPR});const NODE_TYPE={element:1,text:3,progressingInstruction:7,comment:8,document:9},getGlobal=function(){return"undefined"==typeof window?null:window},_createTrustedTypesPolicy=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},_createHooksMap=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:getGlobal();const t=e=>createDOMPurify(e);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==NODE_TYPE.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:f}=e,h=l.prototype,m=lookupGetter(h,"cloneNode"),b=lookupGetter(h,"remove"),g=lookupGetter(h,"nextSibling"),v=lookupGetter(h,"childNodes"),y=lookupGetter(h,"parentNode");if("function"==typeof a){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,_="";const{implementation:w,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:k}=n,{importNode:A}=r;let C=_createHooksMap();t.isSupported="function"==typeof entries&&"function"==typeof y&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:T,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:L}=EXPRESSIONS;let{IS_ALLOWED_URI:D}=EXPRESSIONS,V=null;const j=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let z=null;const F=addToSet({},[...html,...svg,...mathMl,...xml]);let B=Object.seal(create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,U=null;const H=Object.seal(create(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,G=!0,q=!1,K=!0,Y=!1,X=!0,Q=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1;let oe=!0,ae=!1,se={},le=null;const ue=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const de=addToSet({},["audio","video","img","source","image","track"]);let pe=null;const fe=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ge=be,ve=!1,ye=null;const xe=addToSet({},[he,me,be],stringToString);let _e=addToSet({},["mi","mo","mn","ms","mtext"]),we=addToSet({},["annotation-xml"]);const Se=addToSet({},["title","style","font","a","script"]);let Ee=null;const ke=["application/xhtml+xml","text/html"];let Ae=null,Ce=null;const Oe=n.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=clone(e),Ee=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===Ee?stringToString:stringToLowerCase,V=objectHasOwnProperty(e,"ALLOWED_TAGS")?addToSet({},e.ALLOWED_TAGS,Ae):j,z=objectHasOwnProperty(e,"ALLOWED_ATTR")?addToSet({},e.ALLOWED_ATTR,Ae):F,ye=objectHasOwnProperty(e,"ALLOWED_NAMESPACES")?addToSet({},e.ALLOWED_NAMESPACES,stringToString):xe,pe=objectHasOwnProperty(e,"ADD_URI_SAFE_ATTR")?addToSet(clone(fe),e.ADD_URI_SAFE_ATTR,Ae):fe,ce=objectHasOwnProperty(e,"ADD_DATA_URI_TAGS")?addToSet(clone(de),e.ADD_DATA_URI_TAGS,Ae):de,le=objectHasOwnProperty(e,"FORBID_CONTENTS")?addToSet({},e.FORBID_CONTENTS,Ae):ue,$=objectHasOwnProperty(e,"FORBID_TAGS")?addToSet({},e.FORBID_TAGS,Ae):clone({}),U=objectHasOwnProperty(e,"FORBID_ATTR")?addToSet({},e.FORBID_ATTR,Ae):clone({}),se=!!objectHasOwnProperty(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,ge=e.NAMESPACE||be,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,we=e.HTML_INTEGRATION_POINTS||we,B=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),te&&(ee=!0),se&&(V=addToSet({},text),z=[],!0===se.html&&(addToSet(V,html$1),addToSet(z,html)),!0===se.svg&&(addToSet(V,svg$1),addToSet(z,svg),addToSet(z,xml)),!0===se.svgFilters&&(addToSet(V,svgFilters),addToSet(z,svg),addToSet(z,xml)),!0===se.mathMl&&(addToSet(V,mathMl$1),addToSet(z,mathMl),addToSet(z,xml))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(V===j&&(V=clone(V)),addToSet(V,e.ADD_TAGS,Ae))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(z===F&&(z=clone(z)),addToSet(z,e.ADD_ATTR,Ae))),e.ADD_URI_SAFE_ATTR&&addToSet(pe,e.ADD_URI_SAFE_ATTR,Ae),e.FORBID_CONTENTS&&(le===ue&&(le=clone(le)),addToSet(le,e.FORBID_CONTENTS,Ae)),oe&&(V["#text"]=!0),Q&&addToSet(V,["html","head","body"]),V.table&&(addToSet(V,["tbody"]),delete $.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,_=x.createHTML("")}else void 0===x&&(x=_createTrustedTypesPolicy(f,i)),null!==x&&"string"==typeof _&&(_=x.createHTML(""));freeze&&freeze(e),Ce=e}},Pe=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Me=addToSet({},[...mathMl$1,...mathMlDisallowed]),Ie=function(e){arrayPush(t.removed,{element:e});try{y(e).removeChild(e)}catch(t){b(e)}},Ne=function(e,n){try{arrayPush(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){arrayPush(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(ee||te)try{Ie(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},Le=function(e){let t=null,r=null;if(Z)e="<remove></remove>"+e;else{const t=stringMatch(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Ee&&ge===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=x?x.createHTML(e):e;if(ge===be)try{t=(new p).parseFromString(i,Ee)}catch(e){}if(!t||!t.documentElement){t=w.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ve?_:i}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),ge===be?k.call(t,Q?"html":"body")[0]:Q?t.documentElement:o},De=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ve=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof s&&e instanceof s};function ze(e,n,r){arrayForEach(e,e=>{e.call(t,n,r,Ce)})}const Fe=function(e){let n=null;if(ze(C.beforeSanitizeElements,e,null),Ve(e))return Ie(e),!0;const r=Ae(e.nodeName);if(ze(C.uponSanitizeElement,e,{tagName:r,allowedTags:V}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&regExpTest(/<[/\w!]/g,e.innerHTML)&&regExpTest(/<[/\w!]/g,e.textContent))return Ie(e),!0;if(e.nodeType===NODE_TYPE.progressingInstruction)return Ie(e),!0;if(X&&e.nodeType===NODE_TYPE.comment&&regExpTest(/<[/\w]/g,e.data))return Ie(e),!0;if(!(H.tagCheck instanceof Function&&H.tagCheck(r))&&(!V[r]||$[r])){if(!$[r]&&$e(r)){if(B.tagNameCheck instanceof RegExp&&regExpTest(B.tagNameCheck,r))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(r))return!1}if(oe&&!le[r]){const t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,g(e))}}}return Ie(e),!0}return e instanceof l&&!function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=stringToLowerCase(e.tagName),r=stringToLowerCase(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===be?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||_e[r]):Boolean(Pe[n]):e.namespaceURI===he?t.namespaceURI===be?"math"===n:t.namespaceURI===me?"math"===n&&we[r]:Boolean(Me[n]):e.namespaceURI===be?!(t.namespaceURI===me&&!we[r])&&!(t.namespaceURI===he&&!_e[r])&&!Me[n]&&(Se[n]||!Pe[n]):!("application/xhtml+xml"!==Ee||!ye[e.namespaceURI]))}(e)?(Ie(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!regExpTest(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===NODE_TYPE.text&&(n=e.textContent,arrayForEach([O,T,R],e=>{n=stringReplace(n,e," ")}),e.textContent!==n&&(arrayPush(t.removed,{element:e.cloneNode()}),e.textContent=n)),ze(C.afterSanitizeElements,e,null),!1):(Ie(e),!0)},Be=function(e,t,r){if(re&&("id"===t||"name"===t)&&(r in n||r in Oe))return!1;if(G&&!U[t]&&regExpTest(P,t));else if(W&&regExpTest(M,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!z[t]||U[t]){if(!($e(e)&&(B.tagNameCheck instanceof RegExp&&regExpTest(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&regExpTest(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t,e))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&regExpTest(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(pe[t]);else if(regExpTest(D,stringReplace(r,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==stringIndexOf(r,"data:")||!ce[e]){if(q&&!regExpTest(I,stringReplace(r,N,"")));else if(r)return!1}else;return!0},$e=function(e){return"annotation-xml"!==e&&stringMatch(e,L)},Ue=function(e){ze(C.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ve(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=n.length;for(;i--;){const o=n[i],{name:a,namespaceURI:s,value:l}=o,u=Ae(a),c=l;let d="value"===a?c:stringTrim(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,ze(C.uponSanitizeAttribute,e,r),d=r.attrValue,!ie||"id"!==u&&"name"!==u||(Ne(a,e),d="user-content-"+d),X&&regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Ne(a,e);continue}if("attributename"===u&&stringMatch(d,"href")){Ne(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ne(a,e);continue}if(!K&&regExpTest(/\/>/i,d)){Ne(a,e);continue}Y&&arrayForEach([O,T,R],e=>{d=stringReplace(d,e," ")});const p=Ae(e.nodeName);if(Be(p,u,d)){if(x&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(p,u)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}if(d!==c)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Ve(e)?Ie(e):arrayPop(t.removed)}catch(t){Ne(a,e)}}else Ne(a,e)}ze(C.afterSanitizeAttributes,e,null)},He=function e(t){let n=null;const r=De(t);for(ze(C.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ze(C.uponSanitizeShadowNode,n,null),Fe(n),Ue(n),n.content instanceof o&&e(n.content);ze(C.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,l=null,u=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw typeErrorCreate("toString is not a function");if("string"!=typeof(e=e.toString()))throw typeErrorCreate("dirty is not a string, aborting")}if(!t.isSupported)return e;if(J||Re(n),t.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ae(e.nodeName);if(!V[t]||$[t])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)i=Le("\x3c!----\x3e"),a=i.ownerDocument.importNode(e,!0),a.nodeType===NODE_TYPE.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!ee&&!Y&&!Q&&-1===e.indexOf("<"))return x&&ne?x.createHTML(e):e;if(i=Le(e),!i)return ee?null:ne?_:""}i&&Z&&Ie(i.firstChild);const c=De(ae?e:i);for(;l=c.nextNode();)Fe(l),Ue(l),l.content instanceof o&&He(l.content);if(ae)return e;if(ee){if(te)for(u=E.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(z.shadowroot||z.shadowrootmode)&&(u=A.call(r,u,!0)),u}let d=Q?i.outerHTML:i.innerHTML;return Q&&V["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Y&&arrayForEach([O,T,R],e=>{d=stringReplace(d,e," ")}),x&&ne?x.createHTML(d):d},t.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},t.clearConfig=function(){Ce=null,J=!1},t.isValidAttribute=function(e,t,n){Ce||Re({});const r=Ae(e),i=Ae(t);return Be(r,i,n)},t.addHook=function(e,t){"function"==typeof t&&arrayPush(C[e],t)},t.removeHook=function(e,t){if(void 0!==t){const n=arrayLastIndexOf(C[e],t);return-1===n?void 0:arraySplice(C[e],n,1)[0]}return arrayPop(C[e])},t.removeHooks=function(e){C[e]=[]},t.removeAllHooks=function(){C=_createHooksMap()},t}createDOMPurify();const startViewTransitionSafety=(e,t)=>{if(document.startViewTransition&&!t?.disabled)return document.startViewTransition(e);e()};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hasRequiredReact_production_min,hasRequiredReact,react={exports:{}},react_production_min={};function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function b(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var v=g.prototype=new b;v.constructor=g,f(v,m.prototype),v.isPureReactComponent=!0;var y=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var i,o={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)x.call(n,i)&&!w.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:e,type:t,key:a,ref:s,props:o,_owner:_.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var k=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function C(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===o?"."+A(l,0):o,y(a)?(i="",null!=n&&(i=n.replace(k,"$&/")+"/"),C(a,r,i,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+n)),r.push(a)),1;if(l=0,o=""===o?".":o+":",y(n))for(var u=0;u<n.length;u++){var c=o+A(s=n[u],u);l+=C(s,r,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=C(s=s.value,r,i,c=o+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",function(e){return t.call(n,e,i++)}),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},P={transition:null},M={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:P,ReactCurrentOwner:_};function I(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},react_production_min.Component=m,react_production_min.Fragment=n,react_production_min.Profiler=i,react_production_min.PureComponent=g,react_production_min.StrictMode=r,react_production_min.Suspense=l,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,react_production_min.act=I,react_production_min.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=f({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=_.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)x.call(n,u)&&!w.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:e,type:t.type,key:o,ref:a,props:i,_owner:s}},react_production_min.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},react_production_min.createElement=S,react_production_min.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:s,render:e}},react_production_min.isValidElement=E,react_production_min.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},react_production_min.unstable_act=I,react_production_min.useCallback=function(e,t){return R.current.useCallback(e,t)},react_production_min.useContext=function(e){return R.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return R.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return R.current.useEffect(e,t)},react_production_min.useId=function(){return R.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return R.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return R.current.useRef(e)},react_production_min.useState=function(e){return R.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return R.current.useTransition()},react_production_min.version="18.3.1",react_production_min}function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var hasRequiredReactJsxRuntime_production_min,hasRequiredJsxRuntime,jsxRuntime={exports:{}},reactJsxRuntime_production_min={};function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var e=requireReact(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return reactJsxRuntime_production_min.Fragment=n,reactJsxRuntime_production_min.jsx=a,reactJsxRuntime_production_min.jsxs=a,reactJsxRuntime_production_min}function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();if(!reactExports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var hasRequiredScheduler_production_min,hasRequiredScheduler,hasRequiredReactDom_production_min,hasRequiredReactDom,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,y(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&I(x,t.startTime-e)}}function _(t,i){h=!1,m&&(m=!1,g(k),k=-1),f=!0;var o=p;try{for(y(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!O());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var b=n(u);null!==b&&I(x,b.startTime-i),c=!1}return c}finally{d=null,p=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,S=!1,E=null,k=-1,A=5,C=-1;function O(){return!(e.unstable_now()-C<A)}function T(){if(null!==E){var t=e.unstable_now();C=t;var n=!0;try{n=E(!0,t)}finally{n?w():(S=!1,E=null)}}else S=!1}if("function"==typeof v)w=function(){v(T)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=T,w=function(){P.postMessage(null)}}else w=function(){b(T,0)};function M(e){E=e,S||(S=!0,w())}function I(t,n){k=b(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(g(k),k=-1):m=!0,I(x,o-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,M(_))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(scheduler_production_min)),scheduler_production_min}function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var e=requireReact(),t=requireScheduler();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(i[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function p(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){f[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){f[e]=new p(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){f[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){f[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){f[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=f.hasOwnProperty(t)?f[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),P=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var I,N=Object.assign;function L(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var D=!1;function V(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function j(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case y:return"Portal";case w:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Y(e,t){K(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Q(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function ne(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ae,se,le=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ae=ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return se(e,t)})}:se);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ce).forEach(function(e){de.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]})});var he=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,xe=null,_e=null;function we(e){if(e=bi(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=vi(t),ye(e.stateNode,e.type,t))}}function Se(e){xe?_e?_e.push(e):_e=[e]:xe=e}function Ee(){if(xe){var e=xe,t=_e;if(_e=xe=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function ke(e,t){return e(t)}function Ae(){}var Ce=!1;function Oe(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return ke(e,t,n)}finally{Ce=!1,(null!==xe||null!==_e)&&(Ae(),Ee())}}function Te(e,t){var r=e.stateNode;if(null===r)return null;var i=vi(r);if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Re=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(se){Re=!1}function Me(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,Ne=null,Le=!1,De=null,Ve={onError:function(e){Ie=!0,Ne=e}};function je(e,t,n,r,i,o,a,s,l){Ie=!1,Ne=null,Me.apply(Ve,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if(ze(e)!==e)throw Error(n(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Be(o),e;if(a===i)return Be(o),t;a=a.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var He=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,qe=t.unstable_requestPaint,Ke=t.unstable_now,Ye=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/ot|0)|0},it=Math.log,ot=Math.LN2;var at=64,st=4194304;function lt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ut(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=lt(s):0!==(o&=a)&&(r=lt(o))}else 0!==(a=n&~i)?r=lt(a):0!==o&&(r=lt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-rt(t)),r|=e[n],t&=~i;return r}function ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=at;return!(4194240&(at<<=1))&&(at=64),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var vt,yt,xt,_t,wt,St=!1,Et=[],kt=null,At=null,Ct=null,Ot=new Map,Tt=new Map,Rt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function It(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&yt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Nt(e){var t=mi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void wt(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&yt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Dt(e,t,n){Lt(e)&&n.delete(t)}function Vt(){St=!1,null!==kt&&Lt(kt)&&(kt=null),null!==At&&Lt(At)&&(At=null),null!==Ct&&Lt(Ct)&&(Ct=null),Ot.forEach(Dt),Tt.forEach(Dt)}function jt(e,n){e.blockedOn===n&&(e.blockedOn=null,St||(St=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vt)))}function zt(e){function t(t){return jt(t,e)}if(0<Et.length){jt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&jt(kt,e),null!==At&&jt(At,e),null!==Ct&&jt(Ct,e),Ot.forEach(t),Tt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Rt.shift()}var Ft=g.ReactCurrentBatchConfig,Bt=!0;function $t(e,t,n,r){var i=bt,o=Ft.transition;Ft.transition=null;try{bt=1,Ht(e,t,n,r)}finally{bt=i,Ft.transition=o}}function Ut(e,t,n,r){var i=bt,o=Ft.transition;Ft.transition=null;try{bt=4,Ht(e,t,n,r)}finally{bt=i,Ft.transition=o}}function Ht(e,t,n,r){if(Bt){var i=Gt(e,t,n,r);if(null===i)Br(e,t,r,Wt,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return kt=It(kt,e,t,n,r,i),!0;case"dragenter":return At=It(At,e,t,n,r,i),!0;case"mouseover":return Ct=It(Ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,It(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tt.set(o,It(Tt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&vt(o),null===(o=Gt(e,t,n,r))&&Br(e,t,r,Wt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=mi(e=ve(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ye()){case Xe:return 1;case Qe:return 4;case Je:case Ze:return 16;case et:return 536870912;default:return 16}default:return 16}}var Kt=null,Yt=null,Xt=null;function Qt(){if(Xt)return Xt;var e,t,n=Yt,r=n.length,i="value"in Kt?Kt.value:Kt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Zt:en,this.isPropagationStopped=en,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var nn,rn,on,an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=tn(an),ln=N({},an,{view:0,detail:0}),un=tn(ln),cn=N({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(nn=e.screenX-on.screenX,rn=e.screenY-on.screenY):rn=nn=0,on=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),pn=tn(N({},cn,{dataTransfer:0})),fn=tn(N({},ln,{relatedTarget:0})),hn=tn(N({},an,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=N({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=tn(mn),gn=tn(N({},an,{data:0})),vn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function wn(){return _n}var Sn=N({},ln,{key:function(e){if(e.key){var t=vn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?yn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=tn(Sn),kn=tn(N({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=tn(N({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),Cn=tn(N({},an,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=N({},cn,{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}),Tn=tn(On),Rn=[9,13,27,32],Pn=s&&"CompositionEvent"in window,Mn=null;s&&"documentMode"in document&&(Mn=document.documentMode);var In=s&&"TextEvent"in window&&!Mn,Nn=s&&(!Pn||Mn&&8<Mn&&11>=Mn),Ln=String.fromCharCode(32),Dn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Fn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function $n(e,t,n,r){Se(r),0<(t=Ur(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Hn=null;function Wn(e){Lr(e,0)}function Gn(e){if(H(gi(e)))return e}function qn(e,t){if("change"===e)return t}var Kn=!1;if(s){var Yn;if(s){var Xn="oninput"in document;if(!Xn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Xn="function"==typeof Qn.oninput}Yn=Xn}else Yn=!1;Kn=Yn&&(!document.documentMode||9<document.documentMode)}function Jn(){Un&&(Un.detachEvent("onpropertychange",Zn),Hn=Un=null)}function Zn(e){if("value"===e.propertyName&&Gn(Hn)){var t=[];$n(t,Hn,e,ve(e)),Oe(Wn,t)}}function er(e,t,n){"focusin"===e?(Jn(),Hn=n,(Un=t).attachEvent("onpropertychange",Zn)):"focusout"===e&&Jn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Hn)}function nr(e,t){if("click"===e)return Gn(t)}function rr(e,t){if("input"===e||"change"===e)return Gn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!ir(e[i],t[i]))return!1}return!0}function ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var n,r=ar(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ar(r)}}function lr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ur(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=sr(n,o);var a=sr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,fr=null,hr=null,mr=null,br=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==fr||fr!==W(r)||("selectionStart"in(r=fr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionend:vr("Transition","TransitionEnd")},xr={},_r={};function wr(e){if(xr[e])return xr[e];if(!yr[e])return e;var t,n=yr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return xr[e]=n[t];return e}s&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);var Sr=wr("animationend"),Er=wr("animationiteration"),kr=wr("animationstart"),Ar=wr("transitionend"),Cr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Cr.set(e,t),o(t,[e])}for(var Rr=0;Rr<Or.length;Rr++){var Pr=Or[Rr];Tr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Tr(Sr,"onAnimationEnd"),Tr(Er,"onAnimationIteration"),Tr(kr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Ar,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Nr(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,i,o,a,s,l,u){if(je.apply(this,arguments),Ie){if(!Ie)throw Error(n(198));var c=Ne;Ie=!1,Ne=null,Le||(Le=!0,De=c)}}(i,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,u),o=l}}}if(Le)throw e=De,Le=!1,De=null,e}function Dr(e,t){var n=t[pi];void 0===n&&(n=t[pi]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[jr]){e[jr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Ir.has(t)||Vr(t,!1,e),Vr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,Vr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(qt(t)){case 1:var i=$t;break;case 4:i=Ut;break;default:i=Ht}n=i.bind(null,t,n,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=mi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,i=ve(n),a=[];e:{var s=Cr.get(e);if(void 0!==s){var l=sn,u=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":l=En;break;case"focusin":u="focus",l=fn;break;case"focusout":u="blur",l=fn;break;case"beforeblur":case"afterblur":l=fn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Sr:case Er:case kr:l=hn;break;case Ar:l=Cn;break;case"scroll":l=un;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Te(h,p))&&c.push($r(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ge||!(u=n.relatedTarget||n.fromElement)||!mi(u)&&!u[di])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?mi(u):null)&&(u!==(d=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=dn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:gi(l),f=null==u?s:gi(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,mi(i)===r&&((c=new c(p,h+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=Hr(f))h++;for(f=0,m=p;m;m=Hr(m))f++;for(;0<h-f;)c=Hr(c),h--;for(;0<f-h;)p=Hr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Hr(c),p=Hr(p)}c=null}else c=null;null!==l&&Wr(a,s,l,c,!1),null!==u&&null!==d&&Wr(a,d,u,c,!0)}if("select"===(l=(s=r?gi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=qn;else if(Bn(s))if(Kn)b=rr;else{b=tr;var g=er}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=nr);switch(b&&(b=b(e,r))?$n(a,b,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&Q(s,"number",s.value)),g=r?gi(r):window,e){case"focusin":(Bn(g)||"true"===g.contentEditable)&&(fr=g,hr=r,mr=null);break;case"focusout":mr=hr=fr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,gr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,i)}var v;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zn?Vn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Nn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(v=Qt()):(Yt="value"in(Kt=i)?Kt.value:Kt.textContent,zn=!0)),0<(g=Ur(r,y)).length&&(y=new gn(y,e,null,n,i),a.push({event:y,listeners:g}),v?y.data=v:null!==(v=jn(n))&&(y.data=v))),(v=In?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Dn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Dn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Pn&&Vn(e,t)?(e=Qt(),Xt=Yt=Kt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(i=new gn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Lr(a,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Te(e,n))&&r.unshift($r(e,o,i)),null!=(o=Te(e,t))&&r.push($r(e,o,i))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Te(n,o))&&a.unshift($r(n,l,s)):i||null!=(l=Te(n,o))&&a.push($r(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(qr,"")}function Yr(e,t,r){if(t=Kr(t),Kr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Qr=null,Jr=null;function Zr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ei="function"==typeof setTimeout?setTimeout:void 0,ti="function"==typeof clearTimeout?clearTimeout:void 0,ni="function"==typeof Promise?Promise:void 0,ri="function"==typeof queueMicrotask?queueMicrotask:void 0!==ni?function(e){return ni.resolve(null).then(e).catch(ii)}:ei;function ii(e){setTimeout(function(){throw e})}function oi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function ai(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function si(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var li=Math.random().toString(36).slice(2),ui="__reactFiber$"+li,ci="__reactProps$"+li,di="__reactContainer$"+li,pi="__reactEvents$"+li,fi="__reactListeners$"+li,hi="__reactHandles$"+li;function mi(e){var t=e[ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[di]||n[ui]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=si(e);null!==e;){if(n=e[ui])return n;e=si(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[ui]||e[di])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function gi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function vi(e){return e[ci]||null}var yi=[],xi=-1;function _i(e){return{current:e}}function wi(e){0>xi||(e.current=yi[xi],yi[xi]=null,xi--)}function Si(e,t){xi++,yi[xi]=e.current,e.current=t}var Ei={},ki=_i(Ei),Ai=_i(!1),Ci=Ei;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ti(e){return null!=(e=e.childContextTypes)}function Ri(){wi(Ai),wi(ki)}function Pi(e,t,r){if(ki.current!==Ei)throw Error(n(168));Si(ki,t),Si(Ai,r)}function Mi(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,F(e)||"Unknown",o));return N({},r,i)}function Ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ci=ki.current,Si(ki,e),Si(Ai,Ai.current),!0}function Ni(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=Mi(e,t,Ci),i.__reactInternalMemoizedMergedChildContext=e,wi(Ai),wi(ki),Si(ki,e)):wi(Ai),Si(Ai,r)}var Li=null,Di=!1,Vi=!1;function ji(e){null===Li?Li=[e]:Li.push(e)}function zi(){if(!Vi&&null!==Li){Vi=!0;var e=0,t=bt;try{var n=Li;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,Di=!1}catch(t){throw null!==Li&&(Li=Li.slice(e+1)),He(Xe,zi),t}finally{bt=t,Vi=!1}}return null}var Fi=[],Bi=0,$i=null,Ui=0,Hi=[],Wi=0,Gi=null,qi=1,Ki="";function Yi(e,t){Fi[Bi++]=Ui,Fi[Bi++]=$i,$i=e,Ui=t}function Xi(e,t,n){Hi[Wi++]=qi,Hi[Wi++]=Ki,Hi[Wi++]=Gi,Gi=e;var r=qi;e=Ki;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var o=32-rt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,qi=1<<32-rt(t)+i|n<<i|r,Ki=o+e}else qi=1<<o|n<<i|r,Ki=e}function Qi(e){null!==e.return&&(Yi(e,1),Xi(e,1,0))}function Ji(e){for(;e===$i;)$i=Fi[--Bi],Fi[Bi]=null,Ui=Fi[--Bi],Fi[Bi]=null;for(;e===Gi;)Gi=Hi[--Wi],Hi[Wi]=null,Ki=Hi[--Wi],Hi[Wi]=null,qi=Hi[--Wi],Hi[Wi]=null}var Zi=null,eo=null,to=!1,no=null;function ro(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Zi=e,eo=ai(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Zi=e,eo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:qi,overflow:Ki}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Zi=e,eo=null,!0);default:return!1}}function oo(e){return!(!(1&e.mode)||128&e.flags)}function ao(e){if(to){var t=eo;if(t){var r=t;if(!io(e,t)){if(oo(e))throw Error(n(418));t=ai(r.nextSibling);var i=Zi;t&&io(e,t)?ro(i,r):(e.flags=-4097&e.flags|2,to=!1,Zi=e)}}else{if(oo(e))throw Error(n(418));e.flags=-4097&e.flags|2,to=!1,Zi=e}}}function so(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zi=e}function lo(e){if(e!==Zi)return!1;if(!to)return so(e),to=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Zr(e.type,e.memoizedProps)),t&&(t=eo)){if(oo(e))throw uo(),Error(n(418));for(;t;)ro(e,t),t=ai(t.nextSibling)}if(so(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){eo=ai(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}eo=null}}else eo=Zi?ai(e.stateNode.nextSibling):null;return!0}function uo(){for(var e=eo;e;)e=ai(e.nextSibling)}function co(){eo=Zi=null,to=!1}function po(e){null===no?no=[e]:no.push(e)}var fo=g.ReactCurrentBatchConfig;function ho(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var i=r.stateNode}if(!i)throw Error(n(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function mo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ru(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===T&&bo(i)===t.type)?((r=o(t,n.props)).ref=ho(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=ho(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=ho(e,null,t),n.return=e,n;case y:return(t=Lu(t,e.mode,n)).return=e,t;case T:return p(e,(0,t._init)(t._payload),n)}if(J(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;mo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case v:return n.key===i?u(e,t,n,r):null;case y:return n.key===i?c(e,t,n,r):null;case T:return f(e,t,(i=n._init)(n._payload),r)}if(J(n)||M(n))return null!==i?null:d(e,t,n,r,null);mo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return h(e,t,n,(0,r._init)(r._payload),i)}if(J(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);mo(t,r)}return null}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===x&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case v:e:{for(var b=d.key,g=c;null!==g;){if(g.key===b){if((b=d.type)===x){if(7===g.tag){r(u,g.sibling),(c=o(g,d.props.children)).return=u,u=c;break e}}else if(g.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===T&&bo(b)===g.type){r(u,g.sibling),(c=o(g,d.props)).ref=ho(u,g,d),c.return=u,u=c;break e}r(u,g);break}t(u,g),g=g.sibling}d.type===x?((c=Mu(d.props.children,u.mode,m,d.key)).return=u,u=c):((m=Pu(d.type,d.key,d.props,null,u.mode,m)).ref=ho(u,c,d),m.return=u,u=m)}return s(u);case y:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=o(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Lu(d,u.mode,m)).return=u,u=c}return s(u);case T:return l(u,c,(g=d._init)(d._payload),m)}if(J(d))return function(n,o,s,l){for(var u=null,c=null,d=o,m=o=0,b=null;null!==d&&m<s.length;m++){d.index>m?(b=d,d=null):b=d.sibling;var g=f(n,d,s[m],l);if(null===g){null===d&&(d=b);break}e&&d&&null===g.alternate&&t(n,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=b}if(m===s.length)return r(n,d),to&&Yi(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return to&&Yi(n,m),u}for(d=i(n,d);m<s.length;m++)null!==(b=h(d,n,m,s[m],l))&&(e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),o=a(b,o,m),null===c?u=b:c.sibling=b,c=b);return e&&d.forEach(function(e){return t(n,e)}),to&&Yi(n,m),u}(u,c,d,m);if(M(d))return function(o,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,b=s=0,g=null,v=l.next();null!==m&&!v.done;b++,v=l.next()){m.index>b?(g=m,m=null):g=m.sibling;var y=f(o,m,v.value,u);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,b),null===d?c=y:d.sibling=y,d=y,m=g}if(v.done)return r(o,m),to&&Yi(o,b),c;if(null===m){for(;!v.done;b++,v=l.next())null!==(v=p(o,v.value,u))&&(s=a(v,s,b),null===d?c=v:d.sibling=v,d=v);return to&&Yi(o,b),c}for(m=i(o,m);!v.done;b++,v=l.next())null!==(v=h(m,o,b,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?b:v.key),s=a(v,s,b),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(o,e)}),to&&Yi(o,b),c}(u,c,d,m);mo(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=o(c,d)).return=u,u=c):(r(u,c),(c=Nu(d,u.mode,m)).return=u,u=c),s(u)):r(u,c)}}var vo=go(!0),yo=go(!1),xo=_i(null),_o=null,wo=null,So=null;function Eo(){So=wo=_o=null}function ko(e){var t=xo.current;wi(xo),e._currentValue=t}function Ao(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){_o=e,So=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===_o)throw Error(n(308));wo=e,_o.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var To=null;function Ro(e){null===To?To=[e]:To.push(e)}function Po(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mo(e,r)}function Mo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Io=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&kl){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mo(e,n)}return null===(i=r.interleaved)?(t.next=t,Ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mo(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function zo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fo(e,t,n,r){var i=e.updateQueue;Io=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=N({},d,p);break e;case 2:Io=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=r,"function"!=typeof o)throw Error(n(191,o));o.call(i)}}}var $o={},Uo=_i($o),Ho=_i($o),Wo=_i($o);function Go(e){if(e===$o)throw Error(n(174));return e}function qo(e,t){switch(Si(Wo,t),Si(Ho,e),Si(Uo,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oe(null,"");break;default:t=oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Uo),Si(Uo,t)}function Ko(){wi(Uo),wi(Ho),wi(Wo)}function Yo(e){Go(Wo.current);var t=Go(Uo.current),n=oe(t,e.type);t!==n&&(Si(Ho,e),Si(Uo,n))}function Xo(e){Ho.current===e&&(wi(Uo),wi(Ho))}var Qo=_i(0);function Jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zo=[];function ea(){for(var e=0;e<Zo.length;e++)Zo[e]._workInProgressVersionPrimary=null;Zo.length=0}var ta=g.ReactCurrentDispatcher,na=g.ReactCurrentBatchConfig,ra=0,ia=null,oa=null,aa=null,sa=!1,la=!1,ua=0,ca=0;function da(){throw Error(n(321))}function pa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function fa(e,t,r,i,o,a){if(ra=a,ia=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ta.current=null===e||null===e.memoizedState?Xa:Qa,e=r(i,o),la){a=0;do{if(la=!1,ua=0,25<=a)throw Error(n(301));a+=1,aa=oa=null,t.updateQueue=null,ta.current=Ja,e=r(i,o)}while(la)}if(ta.current=Ya,t=null!==oa&&null!==oa.next,ra=0,aa=oa=ia=null,sa=!1,t)throw Error(n(300));return e}function ha(){var e=0!==ua;return ua=0,e}function ma(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aa?ia.memoizedState=aa=e:aa=aa.next=e,aa}function ba(){if(null===oa){var e=ia.alternate;e=null!==e?e.memoizedState:null}else e=oa.next;var t=null===aa?ia.memoizedState:aa.next;if(null!==t)aa=t,oa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(oa=e).memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},null===aa?ia.memoizedState=aa=e:aa=aa.next=e}return aa}function ga(e,t){return"function"==typeof t?t(e):t}function va(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=oa,o=i.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,i=i.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((ra&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=p,s=i):u=u.next=p,ia.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==a);null===u?s=i:u.next=l,ir(i,t.memoizedState)||(bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,r.lastRenderedState=i}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,ia.lanes|=a,Il|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ya(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);ir(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function xa(){}function _a(e,t){var r=ia,i=ba(),o=t(),a=!ir(i.memoizedState,o);if(a&&(i.memoizedState=o,bs=!0),i=i.queue,Ia(Ea.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==aa&&1&aa.memoizedState.tag){if(r.flags|=2048,Oa(9,Sa.bind(null,r,i,o,t),void 0,null),null===Al)throw Error(n(349));30&ra||wa(r,t,o)}return o}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Sa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Aa(e)}function Ea(e,t,n){return n(function(){ka(t)&&Aa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function Aa(e){var t=Mo(e,1);null!==t&&Zl(t,e,1,-1)}function Ca(e){var t=ma();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t.queue=e,e=e.dispatch=Wa.bind(null,ia,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ta(){return ba().memoizedState}function Ra(e,t,n,r){var i=ma();ia.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==oa){var a=oa.memoizedState;if(o=a.destroy,null!==r&&pa(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}ia.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Ma(e,t){return Ra(8390656,8,e,t)}function Ia(e,t){return Pa(2048,8,e,t)}function Na(e,t){return Pa(4,2,e,t)}function La(e,t){return Pa(4,4,e,t)}function Da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Va(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Da.bind(null,t,e),n)}function ja(){}function za(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return 21&ra?(ir(n,t)||(n=pt(),ia.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=na.transition;na.transition={};try{e(!1),t()}finally{bt=n,na.transition=r}}function Ua(){return ba().memoizedState}function Ha(e,t,n){var r=Jl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e))qa(t,n);else if(null!==(n=Po(e,t,n,r))){Zl(n,e,r,Ql()),Ka(n,t,r)}}function Wa(e,t,n){var r=Jl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,ir(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ro(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Po(e,t,i,r))&&(Zl(n,e,r,i=Ql()),Ka(n,t,r))}}function Ga(e){var t=e.alternate;return e===ia||null!==t&&t===ia}function qa(e,t){la=sa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ka(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var Ya={readContext:Oo,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useInsertionEffect:da,useLayoutEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useMutableSource:da,useSyncExternalStore:da,useId:da,unstable_isNewReconciler:!1},Xa={readContext:Oo,useCallback:function(e,t){return ma().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ma();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ma();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ha.bind(null,ia,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ma().memoizedState=e},useState:Ca,useDebugValue:ja,useDeferredValue:function(e){return ma().memoizedState=e},useTransition:function(){var e=Ca(!1),t=e[0];return e=$a.bind(null,e[1]),ma().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=ia,o=ma();if(to){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Al)throw Error(n(349));30&ra||wa(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Ma(Ea.bind(null,i,a,e),[e]),i.flags|=2048,Oa(9,Sa.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=ma(),t=Al.identifierPrefix;if(to){var n=Ki;t=":"+t+"R"+(n=(qi&~(1<<32-rt(qi)-1)).toString(32)+n),0<(n=ua++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ca++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Qa={readContext:Oo,useCallback:za,useContext:Oo,useEffect:Ia,useImperativeHandle:Va,useInsertionEffect:Na,useLayoutEffect:La,useMemo:Fa,useReducer:va,useRef:Ta,useState:function(){return va(ga)},useDebugValue:ja,useDeferredValue:function(e){return Ba(ba(),oa.memoizedState,e)},useTransition:function(){return[va(ga)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1},Ja={readContext:Oo,useCallback:za,useContext:Oo,useEffect:Ia,useImperativeHandle:Va,useInsertionEffect:Na,useLayoutEffect:La,useMemo:Fa,useReducer:ya,useRef:Ta,useState:function(){return ya(ga)},useDebugValue:ja,useDeferredValue:function(e){var t=ba();return null===oa?t.memoizedState=e:Ba(t,oa.memoizedState,e)},useTransition:function(){return[ya(ga)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1};function Za(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function es(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ts={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ql(),i=Jl(e),o=Do(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Vo(e,o,i))&&(Zl(t,e,i,r),jo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ql(),i=Jl(e),o=Do(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Vo(e,o,i))&&(Zl(t,e,i,r),jo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ql(),r=Jl(e),i=Do(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Vo(e,i,r))&&(Zl(t,e,r,n),jo(t,e,r))}};function ns(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(i,o))}function rs(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ti(t)?Ci:ki.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):Ei),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ts,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function is(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ts.enqueueReplaceState(t,t.state,null)}function os(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},No(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ti(t)?Ci:ki.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(es(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ts.enqueueReplaceState(i,i.state,null),Fo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function as(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ss(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var us="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bl||(Bl=!0,$l=r),ls(0,t)},n}function ds(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ls(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ls(0,t),"function"!=typeof r&&(null===Ul?Ul=new Set([this]):Ul.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ps(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new us;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=wu.bind(null,e,t,n),t.then(e,e))}function fs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Vo(n,t,1))),n.lanes|=1),e)}var ms=g.ReactCurrentOwner,bs=!1;function gs(e,t,n,r){t.child=null===e?yo(t,null,n,r):vo(t,e.child,n,r)}function vs(e,t,n,r,i){n=n.render;var o=t.ref;return Co(t,i),r=fa(e,t,n,r,o,i),n=ha(),null===e||bs?(to&&n&&Qi(t),t.flags|=1,gs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function ys(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Tu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:or)(a,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=Ru(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(or(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);131072&e.flags&&(bs=!0)}}return Ss(e,t,n,r,i)}function _s(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Rl,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Rl,Tl),Tl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Rl,Tl),Tl|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Rl,Tl),Tl|=r;return gs(e,t,i,n),t.child}function ws(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=Ti(n)?Ci:ki.current;return o=Oi(t,o),Co(t,i),n=fa(e,t,n,r,o,i),r=ha(),null===e||bs?(to&&r&&Qi(t),t.flags|=1,gs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Es(e,t,n,r,i){if(Ti(n)){var o=!0;Ii(t)}else o=!1;if(Co(t,i),null===t.stateNode)Fs(e,t),rs(t,n,r),os(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Oo(u):u=Oi(t,u=Ti(n)?Ci:ki.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&is(t,a,r,u),Io=!1;var p=t.memoizedState;a.state=p,Fo(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Ai.current||Io?("function"==typeof c&&(es(t,n,c,r),l=t.memoizedState),(s=Io||ns(t,n,s,r,p,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Za(t.type,s),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Oo(l):l=Oi(t,l=Ti(n)?Ci:ki.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&is(t,a,r,l),Io=!1,p=t.memoizedState,a.state=p,Fo(t,r,a,i);var h=t.memoizedState;s!==d||p!==h||Ai.current||Io?("function"==typeof f&&(es(t,n,f,r),h=t.memoizedState),(u=Io||ns(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ks(e,t,n,r,o,i)}function ks(e,t,n,r,i,o){ws(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Ni(t,n,!1),Bs(e,t,o);r=t.stateNode,ms.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=vo(t,e.child,null,o),t.child=vo(t,null,s,o)):gs(e,t,s,o),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),qo(e,t.containerInfo)}function Cs(e,t,n,r,i){return co(),po(i),t.flags|=256,gs(e,t,n,r),t.child}var Os,Ts,Rs,Ps,Ms={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ns(e,t,r){var i,o=t.pendingProps,a=Qo.current,s=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(Qo,1&a),null===e)return ao(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Iu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Mu(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(r),t.memoizedState=Ms,e):Ls(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Ds(e,t,s,i=ss(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=Iu({mode:"visible",children:i.children},o,0,null),(a=Mu(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,1&t.mode&&vo(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=Ms,a);if(!(1&t.mode))return Ds(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var l=i.dgst;return i=l,Ds(e,t,s,i=ss(a=Error(n(419)),i,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(i=Al)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Mo(e,o),Zl(i,e,o,-1))}return pu(),Ds(e,t,s,i=ss(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Eu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,eo=ai(o.nextSibling),Zi=t,to=!0,no=null,null!==e&&(Hi[Wi++]=qi,Hi[Wi++]=Ki,Hi[Wi++]=Gi,qi=e.id,Ki=e.overflow,Gi=t),t=Ls(t,i.children),t.flags|=4096,t)}(e,t,l,o,i,a,r);if(s){s=o.fallback,l=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Ru(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==i?s=Ru(i,s):(s=Mu(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Ru(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ls(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ds(e,t,n,r){return null!==r&&po(r),vo(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ao(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(gs(e,t,r.children,n),2&(r=Qo.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,n,t);else if(19===e.tag)Vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(Qo,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Jo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Jo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Fs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ru(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ru(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!to)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hs(e,t,r){var o=t.pendingProps;switch(Ji(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:case 17:return Ti(t.type)&&Ri(),Us(t),null;case 3:return o=t.stateNode,Ko(),wi(Ai),wi(ki),ea(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(lo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==no&&(ru(no),no=null))),Ts(e,t),Us(t),null;case 5:Xo(t);var a=Go(Wo.current);if(r=t.type,null!==e&&null!=t.stateNode)Rs(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Us(t),null}if(e=Go(Uo.current),lo(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[ui]=t,o[ci]=s,e=!!(1&t.mode),r){case"dialog":Dr("cancel",o),Dr("close",o);break;case"iframe":case"object":case"embed":Dr("load",o);break;case"video":case"audio":for(a=0;a<Mr.length;a++)Dr(Mr[a],o);break;case"source":Dr("error",o);break;case"img":case"image":case"link":Dr("error",o),Dr("load",o);break;case"details":Dr("toggle",o);break;case"input":q(o,s),Dr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Dr("invalid",o);break;case"textarea":te(o,s),Dr("invalid",o)}for(var l in me(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Yr(o.textContent,u,e),a=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Yr(o.textContent,u,e),a=["children",""+u]):i.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Dr("scroll",o)}switch(r){case"input":U(o),X(o,s,!0);break;case"textarea":U(o),re(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=Xr)}o=a,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[ui]=t,e[ci]=o,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,o),r){case"dialog":Dr("cancel",e),Dr("close",e),a=o;break;case"iframe":case"object":case"embed":Dr("load",e),a=o;break;case"video":case"audio":for(a=0;a<Mr.length;a++)Dr(Mr[a],e);a=o;break;case"source":Dr("error",e),a=o;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),a=o;break;case"details":Dr("toggle",e),a=o;break;case"input":q(e,o),a=G(e,o),Dr("invalid",e);break;case"option":default:a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=N({},o,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,o),a=ee(e,o),Dr("invalid",e)}for(s in me(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?fe(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ue(e,c):"number"==typeof c&&ue(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Dr("scroll",e):null!=c&&b(e,s,c,l))}switch(r){case"input":U(e),X(e,o,!1);break;case"textarea":U(e),re(e);break;case"option":null!=o.value&&e.setAttribute("value",""+B(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?Z(e,!!o.multiple,s,!1):null!=o.defaultValue&&Z(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Us(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=Go(Wo.current),Go(Uo.current),lo(t)){if(o=t.stateNode,r=t.memoizedProps,o[ui]=t,(s=o.nodeValue!==r)&&null!==(e=Zi))switch(e.tag){case 3:Yr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[ui]=t,t.stateNode=o}return Us(t),null;case 13:if(wi(Qo),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(to&&null!==eo&&1&t.mode&&!(128&t.flags))uo(),co(),t.flags|=98560,s=!1;else if(s=lo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ui]=t}else co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Us(t),s=!1}else null!==no&&(ru(no),no=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Qo.current?0===Pl&&(Pl=3):pu())),null!==t.updateQueue&&(t.flags|=4),Us(t),null);case 4:return Ko(),Ts(e,t),null===e&&zr(t.stateNode.containerInfo),Us(t),null;case 10:return ko(t.type._context),Us(t),null;case 19:if(wi(Qo),null===(s=t.memoizedState))return Us(t),null;if(o=!!(128&t.flags),null===(l=s.rendering))if(o)$s(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Jo(e))){for(t.flags|=128,$s(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Si(Qo,1&Qo.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>zl&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Jo(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!to)return Us(t),null}else 2*Ke()-s.renderingStartTime>zl&&1073741824!==r&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,r=Qo.current,Si(Qo,o?1&r|2:1&r),t):(Us(t),null);case 22:case 23:return lu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&Tl)&&(Us(t),6&t.subtreeFlags&&(t.flags|=8192)):Us(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ws(e,t){switch(Ji(t),t.tag){case 1:return Ti(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ko(),wi(Ai),wi(ki),ea(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(wi(Qo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(Qo),null;case 4:return Ko(),null;case 10:return ko(t.type._context),null;case 22:case 23:return lu(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(){},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Go(Uo.current);var a,s=null;switch(n){case"input":o=G(e,o),r=G(e,r),s=[];break;case"select":o=N({},o,{value:void 0}),r=N({},r,{value:void 0}),s=[];break;case"textarea":o=ee(e,o),r=ee(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in me(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,qs=!1,Ks="function"==typeof WeakSet?WeakSet:Set,Ys=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function Qs(e,t,n){try{n()}catch(n){_u(e,t,n)}}var Js=!1;function Zs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Qs(t,n,o)}i=i.next}while(i!==r)}}function el(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function nl(e){var t=e.alternate;null!==t&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ui],delete t[ci],delete t[pi],delete t[fi],delete t[hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rl(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ol(e,t,n),e=e.sibling;null!==e;)ol(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}var sl=null,ll=!1;function ul(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch(e){}switch(n.tag){case 5:qs||Xs(n,t);case 6:var r=sl,i=ll;sl=null,ul(e,t,n),ll=i,null!==(sl=r)&&(ll?(e=sl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):sl.removeChild(n.stateNode));break;case 18:null!==sl&&(ll?(e=sl,n=n.stateNode,8===e.nodeType?oi(e.parentNode,n):1===e.nodeType&&oi(e,n),zt(e)):oi(sl,n.stateNode));break;case 4:r=sl,i=ll,sl=n.stateNode.containerInfo,ll=!0,ul(e,t,n),sl=r,ll=i;break;case 0:case 11:case 14:case 15:if(!qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Qs(n,t,a),i=i.next}while(i!==r)}ul(e,t,n);break;case 1:if(!qs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_u(n,t,e)}ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:1&n.mode?(qs=(r=qs)||null!==n.memoizedState,ul(e,t,n),qs=r):ul(e,t,n);break;default:ul(e,t,n)}}function dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ks),t.forEach(function(t){var r=ku.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:sl=l.stateNode,ll=!1;break e;case 3:case 4:sl=l.stateNode.containerInfo,ll=!0;break e}l=l.return}if(null===sl)throw Error(n(160));cl(a,s,o),sl=null,ll=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){_u(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fl(t,e),t=t.sibling}function fl(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),hl(e),4&i){try{Zs(3,e,e.return),el(3,e)}catch(t){_u(e,e.return,t)}try{Zs(5,e,e.return)}catch(t){_u(e,e.return,t)}}break;case 1:pl(t,e),hl(e),512&i&&null!==r&&Xs(r,r.return);break;case 5:if(pl(t,e),hl(e),512&i&&null!==r&&Xs(r,r.return),32&e.flags){var o=e.stateNode;try{ue(o,"")}catch(t){_u(e,e.return,t)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&K(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],p=u[s+1];"style"===d?fe(o,p):"dangerouslySetInnerHTML"===d?le(o,p):"children"===d?ue(o,p):b(o,d,p,c)}switch(l){case"input":Y(o,a);break;case"textarea":ne(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?Z(o,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?Z(o,!!a.multiple,a.defaultValue,!0):Z(o,!!a.multiple,a.multiple?[]:"",!1))}o[ci]=a}catch(t){_u(e,e.return,t)}}break;case 6:if(pl(t,e),hl(e),4&i){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){_u(e,e.return,t)}}break;case 3:if(pl(t,e),hl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){_u(e,e.return,t)}break;case 4:default:pl(t,e),hl(e);break;case 13:pl(t,e),hl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(jl=Ke())),4&i&&dl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(qs=(c=qs)||d,pl(t,e),qs=c):pl(t,e),hl(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Ys=e,d=e.child;null!==d;){for(p=Ys=d;null!==Ys;){switch(h=(f=Ys).child,f.tag){case 0:case 11:case 14:case 15:Zs(4,f,f.return);break;case 1:Xs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){i=f,r=f.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){_u(i,r,e)}}break;case 5:Xs(f,f.return);break;case 22:if(null!==f.memoizedState){vl(p);continue}}null!==h?(h.return=f,Ys=h):vl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=pe("display",s))}catch(t){_u(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){_u(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:pl(t,e),hl(e),4&i&&dl(e);case 21:}}function hl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(rl(r)){var i=r;break e}r=r.return}throw Error(n(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(ue(o,""),i.flags&=-33),al(e,il(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;ol(e,il(e),a);break;default:throw Error(n(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ml(e,t,n){Ys=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Ys;){var i=Ys,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Gs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||qs;s=Gs;var u=qs;if(Gs=a,(qs=l)&&!u)for(Ys=i;null!==Ys;)l=(a=Ys).child,22===a.tag&&null!==a.memoizedState?yl(i):null!==l?(l.return=a,Ys=l):yl(i);for(;null!==o;)Ys=o,bl(o),o=o.sibling;Ys=i,Gs=s,qs=u}gl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Ys=o):gl(e)}}function gl(e){for(;null!==Ys;){var t=Ys;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:qs||el(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!qs)if(null===r)i.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Za(t.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bo(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&zt(p)}}}break;default:throw Error(n(163))}qs||512&t.flags&&tl(t)}catch(e){_u(t,t.return,e)}}if(t===e){Ys=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ys=r;break}Ys=t.return}}function vl(e){for(;null!==Ys;){var t=Ys;if(t===e){Ys=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ys=n;break}Ys=t.return}}function yl(e){for(;null!==Ys;){var t=Ys;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{el(4,t)}catch(e){_u(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){_u(t,i,e)}}var o=t.return;try{tl(t)}catch(e){_u(t,o,e)}break;case 5:var a=t.return;try{tl(t)}catch(e){_u(t,a,e)}}}catch(e){_u(t,t.return,e)}if(t===e){Ys=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Ys=s;break}Ys=t.return}}var xl,_l=Math.ceil,wl=g.ReactCurrentDispatcher,Sl=g.ReactCurrentOwner,El=g.ReactCurrentBatchConfig,kl=0,Al=null,Cl=null,Ol=0,Tl=0,Rl=_i(0),Pl=0,Ml=null,Il=0,Nl=0,Ll=0,Dl=null,Vl=null,jl=0,zl=1/0,Fl=null,Bl=!1,$l=null,Ul=null,Hl=!1,Wl=null,Gl=0,ql=0,Kl=null,Yl=-1,Xl=0;function Ql(){return 6&kl?Ke():-1!==Yl?Yl:Yl=Ke()}function Jl(e){return 1&e.mode?2&kl&&0!==Ol?Ol&-Ol:null!==fo.transition?(0===Xl&&(Xl=pt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:qt(e.type):1}function Zl(e,t,r,i){if(50<ql)throw ql=0,Kl=null,Error(n(185));ht(e,r,i),2&kl&&e===Al||(e===Al&&(!(2&kl)&&(Nl|=r),4===Pl&&iu(e,Ol)),eu(e,i),1===r&&0===kl&&!(1&t.mode)&&(zl=Ke()+500,Di&&zi()))}function eu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-rt(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ct(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ut(e,e===Al?Ol:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Di=!0,ji(e)}(ou.bind(null,e)):ji(ou.bind(null,e)),ri(function(){!(6&kl)&&zi()}),n=null;else{switch(gt(r)){case 1:n=Xe;break;case 4:n=Qe;break;case 16:default:n=Je;break;case 536870912:n=et}n=Au(n,tu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tu(e,t){if(Yl=-1,Xl=0,6&kl)throw Error(n(327));var r=e.callbackNode;if(yu()&&e.callbackNode!==r)return null;var i=ut(e,e===Al?Ol:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=fu(e,i);else{t=i;var o=kl;kl|=2;var a=du();for(Al===e&&Ol===t||(Fl=null,zl=Ke()+500,uu(e,t));;)try{mu();break}catch(t){cu(e,t)}Eo(),wl.current=a,kl=o,null!==Cl?t=0:(Al=null,Ol=0,t=Pl)}if(0!==t){if(2===t&&(0!==(o=dt(e))&&(i=o,t=nu(e,o))),1===t)throw r=Ml,uu(e,0),iu(e,i),eu(e,Ke()),r;if(6===t)iu(e,i);else{if(o=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ir(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=fu(e,i),2===t&&(a=dt(e),0!==a&&(i=a,t=nu(e,a))),1!==t)))throw r=Ml,uu(e,0),iu(e,i),eu(e,Ke()),r;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(n(345));case 2:case 5:vu(e,Vl,Fl);break;case 3:if(iu(e,i),(130023424&i)===i&&10<(t=jl+500-Ke())){if(0!==ut(e,0))break;if(((o=e.suspendedLanes)&i)!==i){Ql(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ei(vu.bind(null,e,Vl,Fl),t);break}vu(e,Vl,Fl);break;case 4:if(iu(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-rt(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Ke()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*_l(i/1960))-i)){e.timeoutHandle=ei(vu.bind(null,e,Vl,Fl),i);break}vu(e,Vl,Fl);break;default:throw Error(n(329))}}}return eu(e,Ke()),e.callbackNode===r?tu.bind(null,e):null}function nu(e,t){var n=Dl;return e.current.memoizedState.isDehydrated&&(uu(e,t).flags|=256),2!==(e=fu(e,t))&&(t=Vl,Vl=n,null!==t&&ru(t)),e}function ru(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function iu(e,t){for(t&=~Ll,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function ou(e){if(6&kl)throw Error(n(327));yu();var t=ut(e,0);if(!(1&t))return eu(e,Ke()),null;var r=fu(e,t);if(0!==e.tag&&2===r){var i=dt(e);0!==i&&(t=i,r=nu(e,i))}if(1===r)throw r=Ml,uu(e,0),iu(e,t),eu(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vu(e,Vl,Fl),eu(e,Ke()),null}function au(e,t){var n=kl;kl|=1;try{return e(t)}finally{0===(kl=n)&&(zl=Ke()+500,Di&&zi())}}function su(e){null!==Wl&&0===Wl.tag&&!(6&kl)&&yu();var t=kl;kl|=1;var n=El.transition,r=bt;try{if(El.transition=null,bt=1,e)return e()}finally{bt=r,El.transition=n,!(6&(kl=t))&&zi()}}function lu(){Tl=Rl.current,wi(Rl)}function uu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ti(n)),null!==Cl)for(n=Cl.return;null!==n;){var r=n;switch(Ji(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ri();break;case 3:Ko(),wi(Ai),wi(ki),ea();break;case 5:Xo(r);break;case 4:Ko();break;case 13:case 19:wi(Qo);break;case 10:ko(r.type._context);break;case 22:case 23:lu()}n=n.return}if(Al=e,Cl=e=Ru(e.current,null),Ol=Tl=t,Pl=0,Ml=null,Ll=Nl=Il=0,Vl=Dl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}To=null}return e}function cu(e,t){for(;;){var r=Cl;try{if(Eo(),ta.current=Ya,sa){for(var i=ia.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}sa=!1}if(ra=0,aa=oa=ia=null,la=!1,ua=0,Sl.current=null,null===r||null===r.return){Pl=1,Ml=t,Cl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=fs(s);if(null!==h){h.flags&=-257,hs(h,s,l,0,t),1&h.mode&&ps(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var b=new Set;b.add(u),t.updateQueue=b}else m.add(u);break e}if(!(1&t)){ps(a,c,t),pu();break e}u=Error(n(426))}else if(to&&1&l.mode){var g=fs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),hs(g,s,l,0,t),po(as(u,l));break e}}a=u=as(u,l),4!==Pl&&(Pl=2),null===Dl?Dl=[a]:Dl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zo(a,cs(0,u,t));break e;case 1:l=u;var v=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Ul&&Ul.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,zo(a,ds(a,l,t));break e}}a=a.return}while(null!==a)}gu(r)}catch(e){t=e,Cl===r&&null!==r&&(Cl=r=r.return);continue}break}}function du(){var e=wl.current;return wl.current=Ya,null===e?Ya:e}function pu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Al||!(268435455&Il)&&!(268435455&Nl)||iu(Al,Ol)}function fu(e,t){var r=kl;kl|=2;var i=du();for(Al===e&&Ol===t||(Fl=null,uu(e,t));;)try{hu();break}catch(t){cu(e,t)}if(Eo(),kl=r,wl.current=i,null!==Cl)throw Error(n(261));return Al=null,Ol=0,Pl}function hu(){for(;null!==Cl;)bu(Cl)}function mu(){for(;null!==Cl&&!Ge();)bu(Cl)}function bu(e){var t=xl(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?gu(e):Cl=t,Sl.current=null}function gu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ws(n,t)))return n.flags&=32767,void(Cl=n);if(null===e)return Pl=6,void(Cl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Hs(n,t,Tl)))return void(Cl=n);if(null!==(t=t.sibling))return void(Cl=t);Cl=t=e}while(null!==t);0===Pl&&(Pl=5)}function vu(e,t,r){var i=bt,o=El.transition;try{El.transition=null,bt=1,function(e,t,r,i){do{yu()}while(null!==Wl);if(6&kl)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-rt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Al&&(Cl=Al=null,Ol=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Hl||(Hl=!0,Au(Je,function(){return yu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=El.transition,El.transition=null;var s=bt;bt=1;var l=kl;kl|=4,Sl.current=null,function(e,t){if(Qr=Bt,cr(e=ur())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==i&&3!==p.nodeType||(u=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++c===o&&(l=s),f===a&&++d===i&&(u=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jr={focusedElem:e,selectionRange:r},Bt=!1,Ys=t;null!==Ys;)if(e=(t=Ys).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ys=e;else for(;null!==Ys;){t=Ys;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var b=m.memoizedProps,g=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Za(t.type,b),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){_u(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ys=e;break}Ys=t.return}m=Js,Js=!1}(e,r),fl(r,e),dr(Jr),Bt=!!Qr,Jr=Qr=null,e.current=r,ml(r),qe(),kl=l,bt=s,El.transition=a}else e.current=r;if(Hl&&(Hl=!1,Wl=e,Gl=o),a=e.pendingLanes,0===a&&(Ul=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),eu(e,Ke()),null!==t)for(i=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(Bl)throw Bl=!1,e=$l,$l=null,e;!!(1&Gl)&&0!==e.tag&&yu(),a=e.pendingLanes,1&a?e===Kl?ql++:(ql=0,Kl=e):ql=0,zi()}(e,t,r,i)}finally{El.transition=o,bt=i}return null}function yu(){if(null!==Wl){var e=gt(Gl),t=El.transition,r=bt;try{if(El.transition=null,bt=16>e?16:e,null===Wl)var i=!1;else{if(e=Wl,Wl=null,Gl=0,6&kl)throw Error(n(331));var o=kl;for(kl|=4,Ys=e.current;null!==Ys;){var a=Ys,s=a.child;if(16&Ys.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ys=c;null!==Ys;){var d=Ys;switch(d.tag){case 0:case 11:case 15:Zs(8,d,a)}var p=d.child;if(null!==p)p.return=d,Ys=p;else for(;null!==Ys;){var f=(d=Ys).sibling,h=d.return;if(nl(d),d===c){Ys=null;break}if(null!==f){f.return=h,Ys=f;break}Ys=h}}}var m=a.alternate;if(null!==m){var b=m.child;if(null!==b){m.child=null;do{var g=b.sibling;b.sibling=null,b=g}while(null!==b)}}Ys=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Ys=s;else e:for(;null!==Ys;){if(2048&(a=Ys).flags)switch(a.tag){case 0:case 11:case 15:Zs(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Ys=v;break e}Ys=a.return}}var y=e.current;for(Ys=y;null!==Ys;){var x=(s=Ys).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Ys=x;else e:for(s=y;null!==Ys;){if(2048&(l=Ys).flags)try{switch(l.tag){case 0:case 11:case 15:el(9,l)}}catch(e){_u(l,l.return,e)}if(l===s){Ys=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Ys=_;break e}Ys=l.return}}if(kl=o,zi(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch(e){}i=!0}return i}finally{bt=r,El.transition=t}}return!1}function xu(e,t,n){e=Vo(e,t=cs(0,t=as(n,t),1),1),t=Ql(),null!==e&&(ht(e,1,t),eu(e,t))}function _u(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ul||!Ul.has(r))){t=Vo(t,e=ds(t,e=as(n,e),1),1),e=Ql(),null!==t&&(ht(t,1,e),eu(t,e));break}}t=t.return}}function wu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ql(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Ol&n)===n&&(4===Pl||3===Pl&&(130023424&Ol)===Ol&&500>Ke()-jl?uu(e,0):Ll|=n),eu(e,t)}function Su(e,t){0===t&&(1&e.mode?(t=st,!(130023424&(st<<=1))&&(st=4194304)):t=1);var n=Ql();null!==(e=Mo(e,t))&&(ht(e,t,n),eu(e,n))}function Eu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Su(e,n)}function ku(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),Su(e,r)}function Au(e,t){return He(e,t)}function Cu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Cu(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Tu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Mu(r.children,o,a,t);case _:s=8,o|=8;break;case w:return(e=Ou(12,r,t,2|o)).elementType=w,e.lanes=a,e;case A:return(e=Ou(13,r,t,o)).elementType=A,e.lanes=a,e;case C:return(e=Ou(19,r,t,o)).elementType=C,e.lanes=a,e;case R:return Iu(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case k:s=11;break e;case O:s=14;break e;case T:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ou(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Mu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Du(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ft(0),this.expirationTimes=ft(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,r,i,o,a,s,l){return e=new Du(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ou(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),e}function ju(e){if(!e)return Ei;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ti(r))return Mi(e,r,t)}return t}function zu(e,t,n,r,i,o,a,s,l){return(e=Vu(n,r,!0,e,0,o,0,s,l)).context=ju(null),n=e.current,(o=Do(r=Ql(),i=Jl(n))).callback=null!=t?t:null,Vo(n,o,i),e.current.lanes=i,ht(e,i,r),eu(e,r),e}function Fu(e,t,n,r){var i=t.current,o=Ql(),a=Jl(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=Do(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vo(i,t,a))&&(Zl(e,i,a,o),jo(e,i,a)),a}function Bu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}xl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:As(t),co();break;case 5:Yo(t);break;case 1:Ti(t.type)&&Ii(t);break;case 4:qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(Qo,1&Qo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ns(e,t,n):(Si(Qo,1&Qo.current),null!==(e=Bs(e,t,n))?e.sibling:null);Si(Qo,1&Qo.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return zs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(Qo,Qo.current),r)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return Bs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,to&&1048576&t.flags&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Fs(e,t),e=t.pendingProps;var o=Oi(t,ki.current);Co(t,r),o=fa(null,t,i,e,o,r);var a=ha();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ti(i)?(a=!0,Ii(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,No(t),o.updater=ts,t.stateNode=o,o._reactInternals=t,os(t,i,e,r),t=ks(null,t,i,!0,a,r)):(t.tag=0,to&&a&&Qi(t),gs(null,t,o,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Tu(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===O)return 14}return 2}(i),e=Za(i,e),o){case 0:t=Ss(null,t,i,e,r);break e;case 1:t=Es(null,t,i,e,r);break e;case 11:t=vs(null,t,i,e,r);break e;case 14:t=ys(null,t,i,Za(i.type,e),r);break e}throw Error(n(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,Ss(e,t,i,o=t.elementType===i?o:Za(i,o),r);case 1:return i=t.type,o=t.pendingProps,Es(e,t,i,o=t.elementType===i?o:Za(i,o),r);case 3:e:{if(As(t),null===e)throw Error(n(387));i=t.pendingProps,o=(a=t.memoizedState).element,Lo(e,t),Fo(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Cs(e,t,i,r,o=as(Error(n(423)),t));break e}if(i!==o){t=Cs(e,t,i,r,o=as(Error(n(424)),t));break e}for(eo=ai(t.stateNode.containerInfo.firstChild),Zi=t,to=!0,no=null,r=yo(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(co(),i===o){t=Bs(e,t,r);break e}gs(e,t,i,r)}t=t.child}return t;case 5:return Yo(t),null===e&&ao(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,Zr(i,o)?s=null:null!==a&&Zr(i,a)&&(t.flags|=32),ws(e,t),gs(e,t,s,r),t.child;case 6:return null===e&&ao(t),null;case 13:return Ns(e,t,r);case 4:return qo(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=vo(t,null,i,r):gs(e,t,i,r),t.child;case 11:return i=t.type,o=t.pendingProps,vs(e,t,i,o=t.elementType===i?o:Za(i,o),r);case 7:return gs(e,t,t.pendingProps,r),t.child;case 8:case 12:return gs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Si(xo,i._currentValue),i._currentValue=s,null!==a)if(ir(a.value,s)){if(a.children===o.children&&!Ai.current){t=Bs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===a.tag){(u=Do(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ao(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ao(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}gs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Co(t,r),i=i(o=Oo(o)),t.flags|=1,gs(e,t,i,r),t.child;case 14:return o=Za(i=t.type,t.pendingProps),ys(e,t,i,o=Za(i.type,o),r);case 15:return xs(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Za(i,o),Fs(e,t),t.tag=1,Ti(i)?(e=!0,Ii(t)):e=!1,Co(t,r),rs(t,i,o),os(t,i,o,r),ks(null,t,i,!0,e,r);case 19:return zs(e,t,r);case 22:return _s(e,t,r)}throw Error(n(156,t.tag))};var Hu="function"==typeof reportError?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yu(){}function Xu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Bu(a);s.call(e)}}Fu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Bu(a);o.call(e)}}var a=zu(t,r,e,0,null,!1,0,"",Yu);return e._reactRootContainer=a,e[di]=a.current,zr(8===e.nodeType?e.parentNode:e),su(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Bu(l);s.call(e)}}var l=Vu(e,0,!1,null,0,!1,0,"",Yu);return e._reactRootContainer=l,e[di]=l.current,zr(8===e.nodeType?e.parentNode:e),su(function(){Fu(t,l,n,r)}),l}(n,t,e,i,r);return Bu(a)}Gu.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Fu(e,t,null,null)},Gu.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;su(function(){Fu(null,e,null,null)}),t[di]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Nt(e)}},vt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lt(t.pendingLanes);0!==n&&(mt(t,1|n),eu(t,Ke()),!(6&kl)&&(zl=Ke()+500,zi()))}break;case 13:su(function(){var t=Mo(e,1);if(null!==t){var n=Ql();Zl(t,e,1,n)}}),Uu(e,1)}},yt=function(e){if(13===e.tag){var t=Mo(e,134217728);if(null!==t)Zl(t,e,134217728,Ql());Uu(e,134217728)}},xt=function(e){if(13===e.tag){var t=Jl(e),n=Mo(e,t);if(null!==n)Zl(n,e,t,Ql());Uu(e,t)}},_t=function(){return bt},wt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ye=function(e,t,r){switch(t){case"input":if(Y(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=vi(i);if(!o)throw Error(n(90));H(i),Y(i,o)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},ke=au,Ae=su;var Qu={usingClientEntryPoint:!1,Events:[bi,gi,vi,Se,Ee,au]},Ju={findFiberByHostInstance:mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zu={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ec=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ec.isDisabled&&ec.supportsFiber)try{tt=ec.inject(Zu),nt=ec}catch(se){}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qu,reactDom_production_min.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},reactDom_production_min.createRoot=function(e,t){if(!qu(e))throw Error(n(299));var r=!1,i="",o=Hu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vu(e,1,!1,null,0,r,0,i,o),e[di]=t.current,zr(8===e.nodeType?e.parentNode:e),new Wu(t)},reactDom_production_min.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=$e(t))?null:e.stateNode},reactDom_production_min.flushSync=function(e){return su(e)},reactDom_production_min.hydrate=function(e,t,r){if(!Ku(t))throw Error(n(200));return Xu(null,e,t,!0,r)},reactDom_production_min.hydrateRoot=function(e,t,r){if(!qu(e))throw Error(n(405));var i=null!=r&&r.hydratedSources||null,o=!1,a="",s=Hu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=zu(t,null,e,1,null!=r?r:null,o,0,a,s),e[di]=t.current,zr(e),i)for(e=0;e<i.length;e++)o=(o=(r=i[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Gu(t)},reactDom_production_min.render=function(e,t,r){if(!Ku(t))throw Error(n(200));return Xu(null,e,t,!1,r)},reactDom_production_min.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(n(40));return!!e._reactRootContainer&&(su(function(){Xu(null,null,e,!1,function(){e._reactRootContainer=null,e[di]=null})}),!0)},reactDom_production_min.unstable_batchedUpdates=au,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Ku(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xu(e,t,r,!1,i)},reactDom_production_min.version="18.3.1-next-f1338f8080-20240426",reactDom_production_min}function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;return hasRequiredReactDom=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var reactDomExports=requireReactDom();function defaultNoopBatch(e){e()}function observerBatching(e){e||(e=defaultNoopBatch),configure({reactionScheduler:e})}function printDebugValue(e){return getDependencyTree(e)}var hasRequiredUseSyncExternalStoreShim_production,hasRequiredShim,REGISTRY_FINALIZE_AFTER=1e4,REGISTRY_SWEEP_INTERVAL=1e4,TimerBasedFinalizationRegistry=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=REGISTRY_FINALIZE_AFTER),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,REGISTRY_SWEEP_INTERVAL))}}),e}(),UniversalFinalizationRegistry="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:TimerBasedFinalizationRegistry,observerFinalizationRegistry=new UniversalFinalizationRegistry(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),shim={exports:{}},useSyncExternalStoreShim_production={};function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var e=requireReact();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=n({inst:{value:s,getSnapshot:t}}),u=l[0].inst,c=l[1];return i(function(){u.value=s,u.getSnapshot=t,a(u)&&c({inst:u})},[e,s,t]),r(function(){return a(u)&&c({inst:u}),e(function(){a(u)&&c({inst:u})})},[e]),o(s),s};return useSyncExternalStoreShim_production.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,useSyncExternalStoreShim_production}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production()),shim.exports}var _a$2,_b,shimExports=requireShim();function createReaction(e){e.reaction=new Reaction("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)})}function useObserver(e,t){void 0===t&&(t="observed");var n=React.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return observerFinalizationRegistry.unregister(r),r.onStoreChange=e,r.reaction||(createReaction(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i,o,a=n.current;if(a.reaction||(createReaction(a),observerFinalizationRegistry.register(n,a,a)),React.useDebugValue(a.reaction,printDebugValue),shimExports.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track(function(){try{i=e()}catch(e){o=e}}),o)throw o;return i}var hasSymbol="function"==typeof Symbol&&Symbol.for,isFunctionNameConfigurable=null!==(_b=null===(_a$2=Object.getOwnPropertyDescriptor(function(){},"name"))||void 0===_a$2?void 0:_a$2.configurable)&&void 0!==_b&&_b,ReactForwardRefSymbol=hasSymbol?Symbol.for("react.forward_ref"):"function"==typeof reactExports.forwardRef&&reactExports.forwardRef(function(e){return null}).$$typeof,ReactMemoSymbol=hasSymbol?Symbol.for("react.memo"):"function"==typeof reactExports.memo&&reactExports.memo(function(e){return null}).$$typeof;function observer(e,t){if(ReactMemoSymbol&&e.$$typeof===ReactMemoSymbol)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=!1,r=e,i=e.displayName||e.name;if(ReactForwardRefSymbol&&e.$$typeof===ReactForwardRefSymbol&&(n=!0,"function"!=typeof(r=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(e,t){return useObserver(function(){return r(e,t)},i)};return o.displayName=e.displayName,isFunctionNameConfigurable&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes),n&&(o=reactExports.forwardRef(o)),copyStaticProperties(e,o=reactExports.memo(o)),o}var _a$1,hoistBlackList={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function copyStaticProperties(e,t){Object.keys(e).forEach(function(n){hoistBlackList[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}observerBatching(reactDomExports.unstable_batchedUpdates),_a$1=observerFinalizationRegistry.finalizeAllImmediately;const staticCounter=createCounter(e=>e.toString(16)),generateVmId=e=>{if(!e.generateId){const t=staticCounter(),n=createCounter(e=>e.toString().padStart(5,"0"));e.generateId=()=>`${t}_${n().toString().padStart(5,"0")}`}return e.generateId()},mergeVMConfigs=(...e)=>{const t={...viewModelsConfig,startViewTransitions:structuredClone(viewModelsConfig.startViewTransitions),observable:{viewModels:{...viewModelsConfig.observable.viewModels},viewModelStores:{...viewModelsConfig.observable.viewModelStores}}};return e.forEach(e=>{if(!e)return;const{startViewTransitions:n,comparePayload:r,observable:i,generateId:o,...a}=e;if(o&&(t.generateId=o),n){const e="boolean"==typeof n?{mount:n,payloadChange:n,unmount:n}:n;Object.assign(t.startViewTransitions,e)}i?.viewModels&&Object.assign(t.observable.viewModels,i.viewModels||{}),i?.viewModelStores&&Object.assign(t.observable.viewModelStores,i.viewModelStores||{}),null!=r&&(t.comparePayload=r),Object.assign(t,a)}),t},viewModelsConfig=createGlobalConfig({comparePayload:!1,payloadComputed:"struct",payloadObservable:"ref",wrapViewsInObserver:!0,startViewTransitions:{mount:!1,payloadChange:!1,unmount:!1},observable:{viewModels:{useDecorators:!0},viewModelStores:{useDecorators:!0}},generateId:generateVmId,factory:e=>new(0,e.VM)({...e,vmConfig:mergeVMConfigs(e.vmConfig)}),hooks:{storeCreate:createPubSub()}},Symbol.for("VIEW_MODELS_CONFIG")),applyObservable=(e,t,n)=>{if(n.custom)return n.custom(e,t);n.disableWrapping||applyObservable$1(e,t,n.useDecorators)},isViewModelClass=e=>e.prototype.payloadChanged,baseAnnotations=[["_isMounted",observable.ref],["_isUnmounting",observable.ref],["isMounted",computed],["isUnmounting",computed],["parentViewModel",computed],["mount",action.bound],["didMount",action],["unmount",action.bound],["didUnmount",action],["willUnmount",action],["setPayload",action]];class ViewModelBase{constructor(e){this.vmParams=e,this.id=e.id,this.vmConfig=mergeVMConfigs(e.vmConfig),this._payload=e.payload,this.props=e.props??{},this.abortController=new AbortController,this.unmountSignal=this.abortController.signal,"strict"===this.vmConfig.comparePayload?this.isPayloadEqual=comparer.structural:"shallow"===this.vmConfig.comparePayload?this.isPayloadEqual=isShallowEqual:"function"==typeof this.vmConfig.comparePayload&&(this.isPayloadEqual=this.vmConfig.comparePayload);const t=[...baseAnnotations];!1!==this.vmConfig.payloadObservable&&t.push(["_payload",observable[this.vmConfig.payloadObservable??"ref"]]),this.vmConfig.payloadComputed&&("struct"===this.vmConfig.payloadComputed?t.push(["payload",computed.struct]):t.push(["payload",computed({equals:!0===this.vmConfig.payloadComputed?void 0:this.vmConfig.payloadComputed})])),applyObservable(this,t,this.vmConfig.observable.viewModels)}abortController;unmountSignal;id;_isMounted=!1;_isUnmounting=!1;_payload;vmConfig;isPayloadEqual;props;get payload(){return this._payload}get viewModels(){return this.vmParams.viewModels}get isMounted(){return this._isMounted}get isUnmounting(){return this._isUnmounting}willUnmount(){this._isUnmounting=!0}willMount(){}mount(){this.vmConfig.onMount?.(this),startViewTransitionSafety(()=>{runInAction(()=>{this._isMounted=!0})},{disabled:!this.vmConfig.startViewTransitions.mount}),this.didMount()}didMount(){}unmount(){this.vmConfig.onUnmount?.(this),startViewTransitionSafety(()=>{runInAction(()=>{this._isMounted=!1})},{disabled:!this.vmConfig.startViewTransitions.unmount}),this.didUnmount()}didUnmount(){this.abortController.abort(),runInAction(()=>{this._isUnmounting=!1})}payloadChanged(e,t){}get parentViewModel(){return this.getParentViewModel(this.vmParams.parentViewModelId)}setPayload(e){this.isPayloadEqual?.(this._payload,e)||startViewTransitionSafety(()=>{runInAction(()=>{this.payloadChanged(e,this._payload),this._payload=e})},{disabled:!this.vmConfig.startViewTransitions.payloadChange})}getParentViewModel(e){return this.vmParams.parentViewModel??this.viewModels?.get(e)}}class ViewModelStoreBase{constructor(e){this.config=e,this.viewModels=observable.map([],{deep:!1}),this.linkedComponentVMClasses=observable.map([],{deep:!1}),this.viewModelIdsByClasses=observable.map([],{deep:!0}),this.instanceAttachedCount=observable.map([],{deep:!1}),this.mountingViews=observable.set([],{deep:!1}),this.unmountingViews=observable.set([],{deep:!1}),this.vmConfig=mergeVMConfigs(e?.vmConfig),this.viewModelsTempHeap=new Map,applyObservable(this,[["mountedViewsCount",computed],["mount",action],["unmount",action],["attachVMConstructor",action],["attach",action],["detach",action],["linkComponents",action],["unlinkComponents",action]],this.vmConfig.observable.viewModelStores),this.vmConfig.hooks.storeCreate(this)}viewModels;linkedComponentVMClasses;viewModelIdsByClasses;instanceAttachedCount;viewModelsTempHeap;mountingViews;unmountingViews;vmConfig;get mountedViewsCount(){return[...this.instanceAttachedCount.values()].reduce((e,t)=>e+t,0)}processCreateConfig(e){this.linkComponents(e.VM,e.component,e.ctx?.externalComponent)}createViewModel(e){const t=e.VM,n=mergeVMConfigs(this.vmConfig,e.vmConfig),r={...e,vmConfig:n};return n.factory?n.factory(r):new t(r)}generateViewModelId(e){return e.id?e.id:this.vmConfig.generateId(e.ctx)}linkComponents(e,...t){t.forEach(t=>{t&&!this.linkedComponentVMClasses.has(t)&&this.linkedComponentVMClasses.set(t,e)})}unlinkComponents(...e){e.forEach(e=>{e&&this.linkedComponentVMClasses.has(e)&&this.linkedComponentVMClasses.delete(e)})}getIds(e){if(!e)return[];if("string"==typeof e)return[e];const t=this.linkedComponentVMClasses.get(e)||e;return this.viewModelIdsByClasses.get(t)||[]}getId(e){const t=this.getIds(e);return 0===t.length?null:t.at(-1)}has(e){const t=this.getId(e);return!!t&&this.viewModels.has(t)}get(e){const t=this.getId(e);if(!t)return null;return this.viewModels.get(t)??this.viewModelsTempHeap.get(t)??null}getOrCreateVmId(e){return e.id||(e.id=this.vmConfig.generateId({VM:e.constructor})),e.id}getAll(e){return this.getIds(e).map(e=>this.viewModels.get(e))}async mount(e){const t=this.getOrCreateVmId(e);this.mountingViews.add(t),await(e.mount?.()),runInAction(()=>{this.mountingViews.delete(t)})}async unmount(e){const t=this.getOrCreateVmId(e);this.unmountingViews.add(t),await(e.unmount?.()),runInAction(()=>{this.unmountingViews.delete(t)})}attachVMConstructor(e){const t=this.getOrCreateVmId(e),n=e.constructor;if(this.viewModelIdsByClasses.has(n)){const e=this.viewModelIdsByClasses.get(n);e.includes(t)||e.push(t)}else this.viewModelIdsByClasses.set(n,[t])}dettachVMConstructor(e){const t=e.constructor;if(this.viewModelIdsByClasses.has(t)){const n=this.viewModelIdsByClasses.get(t).filter(t=>t!==e.id);n.length>0?this.viewModelIdsByClasses.set(t,n):this.viewModelIdsByClasses.delete(t)}}markToBeAttached(e){const t=this.getOrCreateVmId(e);this.viewModelsTempHeap.set(t,e),"attachViewModelStore"in e&&e.attachViewModelStore(this),this.attachVMConstructor(e)}async attach(e){const t=this.getOrCreateVmId(e),n=this.instanceAttachedCount.get(t)??0;this.instanceAttachedCount.set(t,n+1),this.viewModels.has(t)||(this.viewModels.set(t,e),this.attachVMConstructor(e),await this.mount(e),this.viewModelsTempHeap.delete(t))}async detach(e){const t=this.instanceAttachedCount.get(e)??0;this.viewModelsTempHeap.delete(e);const n=this.viewModels.get(e);if(!n)return;const r=t-1;this.instanceAttachedCount.set(e,r),r<=0&&("willUnmount"in n&&n.willUnmount(),this.instanceAttachedCount.delete(e),this.viewModels.delete(e),this.dettachVMConstructor(n),await this.unmount(n))}isAbleToRenderView(e){const t=this.mountingViews.has(e),n=this.viewModels.has(e);return!!e&&n&&!t}clean(){this.viewModels.clear(),this.linkedComponentVMClasses.clear(),this.viewModelIdsByClasses.clear(),this.instanceAttachedCount.clear(),this.mountingViews.clear(),this.unmountingViews.clear(),this.viewModelsTempHeap.clear()}}const ActiveViewModelContext=reactExports.createContext(null),ViewModelsContext=reactExports.createContext(null),ActiveViewModelProvider=ActiveViewModelContext.Provider,useIsomorphicLayoutEffect="undefined"==typeof window?reactExports.useEffect:reactExports.useLayoutEffect;let useValueImpl=null;useValueImpl=e=>{const t=reactExports.useRef(null);return t.current||(t.current=e()),t.current};const useValue=useValueImpl;function useCreateViewModel(e,t,n){return isViewModelClass(e)?useCreateViewModelBase(e,t,n):useCreateViewModelSimple(e,t)}const useCreateViewModelBase=(e,t,n)=>{const r=reactExports.useContext(ViewModelsContext),i=reactExports.useContext(ActiveViewModelContext),o=n?.ctx??{},a=useValue(()=>{const a=r?.generateViewModelId({...n,ctx:o,VM:e,parentViewModelId:i?.id??null})??n?.id??viewModelsConfig.generateId(o),s=r?r.get(a):null;if(s)return s;{const s={...n,vmConfig:n?.vmConfig,id:a,parentViewModelId:i?.id,payload:t??{},VM:e,viewModels:r,parentViewModel:i,ctx:o};r?.processCreateConfig(s);const l=n?.factory?.(s)??r?.createViewModel(s)??viewModelsConfig.factory(s);return l.willMount(),r?.markToBeAttached(l),l}});return useIsomorphicLayoutEffect(()=>r?(r.attach(a),()=>{r.detach(a.id)}):(a.mount(),()=>{a.willUnmount(),a.unmount()}),[a]),a.setPayload(t??{}),a},useCreateViewModelSimple=(e,t)=>{const n=reactExports.useContext(ViewModelsContext),r=reactExports.useContext(ActiveViewModelContext),i=useValue(()=>{const t=new e;return t.parentViewModel=r,n?.markToBeAttached(t),t});return"setPayload"in i&&reactExports.useLayoutEffect(()=>{i.setPayload(t)},[t]),useIsomorphicLayoutEffect(()=>n?(n.attach(i),()=>{n.detach(i.id)}):(i.mount?.(),()=>{i.unmount?.()}),[i]),i},useViewModel=e=>{const t=reactExports.useContext(ViewModelsContext),n=reactExports.useContext(ActiveViewModelContext);if(t?.get(e),!n)throw new Error("Error #1: https://js2me.github.io/mobx-view-model/errors/1");return n};observer(({model:e,config:t,payload:n,children:r})=>{const i=useCreateViewModel(e,n,t);return i.isMounted?"function"==typeof r?r(i):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:r}):null});const ViewModelsProvider=ViewModelsContext.Provider;function withViewModel(e,t,n){if("function"==typeof t||t&&void 0!==t.$$typeof){const n={};return withViewModelWrapper(e,{...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}},t)}{const n=t??{},r={...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}};return t=>withViewModelWrapper(e,r,t)}}const REACT_MEMO_SYMBOL=Symbol.for("react.memo"),withViewModelWrapper=(e,t,n)=>{const r=t.vmConfig?.processViewComponent??viewModelsConfig.processViewComponent,i=t.vmConfig?.wrapViewsInObserver??viewModelsConfig.wrapViewsInObserver;let o=r?.(n,e,t)??n;i&&o&&o.$$typeof!==REACT_MEMO_SYMBOL&&(o=observer(o));const a=t.reactHook,s=t.getPayload,l=t.fallback??viewModelsConfig.fallbackComponent;let u=(n,r)=>{const i=reactExports.useContext(ViewModelsContext);a?.(n,t.ctx,i,r);const{payload:u,...c}=n,d=s?.(n)??u;t.forwardRef&&!("forwardedRef"in c)&&(c.forwardedRef=r);const p=useCreateViewModel(e,d,{...t,props:c});return(!i||i.isAbleToRenderView(p.id))&&!1!==p.isMounted?jsxRuntimeExports.jsx(ActiveViewModelProvider,{value:p,children:o&&jsxRuntimeExports.jsx(o,{...c,model:p})}):l&&jsxRuntimeExports.jsx(l,{...n,payload:d})};return t.forwardRef&&(u=reactExports.forwardRef(u)),u=observer(u),t.component=u,u};class ViewModelImpl extends ViewModelBase{constructor(e){super({...e,vmConfig:{observable:{viewModels:{useDecorators:!1}}}})}}class LinkedAbortController extends AbortController{constructor(...e){super(),this.link(...e)}link(...e){e.forEach(e=>{e?.addEventListener("abort",()=>{this.abort(e.reason)})})}}const callFunction=(e,...t)=>"function"==typeof e?e(...t):e;var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root$1.Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch(e){}var i=nativeObjectToString$1.call(e);return r&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),i}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return null!=e&&"object"==typeof e}var symbolTag="[object Symbol]";function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&baseGetTag(e)==symbolTag}var reWhitespace=/\s/;function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var reTrimStart=/^\s+/;function baseTrim(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var now=function(){return root$1.Date.now()},FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function m(){var e=now();if(h(e))return b(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?nativeMin(n,o-(e-u)):n}(e))}function b(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function g(){var e=now(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=toNumber(t)||0,isObject(n)&&(c=!!n.leading,o=(d="maxWait"in n)?nativeMax(toNumber(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:b(now())},g}var FUNC_ERROR_TEXT="Expected a function";function throttle(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),debounce(e,t,{leading:r,maxWait:t,trailing:i})}let KeyboardHandler$1=class{constructor(e){if(this.config=e,this.abortController=new LinkedAbortController(e.abortSignal),this.activateStrategy=this.config.activateStrategy??{type:"immidiately"},this.isActivated=!("immidiately"!==this.activateStrategy.type),observable.ref(this,"isActivated"),observable.ref(this,"localActions"),computed.struct(this,"actions"),action.bound(this,"handleKeyboardClick"),action.bound(this,"setActions"),makeObservable(this),"element-focus"===this.activateStrategy.type){const e=this.activateStrategy.ref;let t=new LinkedAbortController;reaction(()=>e.current,e=>{e?(globalThis.document?.activeElement===e&&this.activate(),e.addEventListener("focus",this.activate,{signal:t.signal}),e.addEventListener("blur",this.deactivate,{signal:t.signal})):(t.abort(),t=new LinkedAbortController(this.abortController.signal))},{fireImmediately:!0,signal:this.abortController.signal})}globalThis.addEventListener("keydown",this.handleKeyboardClick,{signal:this.abortController.signal}),"keyclick"===e.activateStrategy?.type&&(globalThis.addEventListener("click",this.activate,{signal:this.abortController.signal}),globalThis.addEventListener("mousemove",this.activate,{signal:this.abortController.signal}))}abortController;activateStrategy;localActions;isActivated;get actions(){const e=this.localActions??this.config.actions;return callFunction(e)??[]}setActions(e){this.localActions=e}activate=()=>{this.isActivated||(this.isActivated=!0,this.config.onActivate?.())};deactivate=()=>{this.isActivated&&(this.isActivated=!1,this.config.onDeactivate?.())};handleKeyboardClick(e){if(this.config.onKeyClick?.(e),"keyclick"===this.activateStrategy.type&&this.activate(),this.isActivated)for(let t=0;t<this.actions.length;t++){const n=this.actions[t];if(!callFunction(n.disabled))for(let t=0;t<n.shortcuts.length;t++){if(n.shortcuts[t].split("+").every(t=>this.checkKey(e,t)))return void runInAction(()=>{n.action(e)})}}}checkKey(e,t){return!("Shift"!==t||!e.shiftKey)||(!("Ctrl"!==t&&"Control"!==t||!e.ctrlKey)||(!("Alt"!==t||!e.altKey)||(!("Windows"!==t&&"Meta"!==t&&"Command"!==t&&"⌘"!==t&&"Win"!==t||!e.metaKey)||(t===e.key||t===e.code))))}destroy(){this.abortController.abort()}};class Storage{constructor(e){this.config=e,this.abortController=new LinkedAbortController(e?.abortSignal),this.abortSignal=this.abortController.signal,makeObservable(this)}abortController;abortSignal;getStorage(e){return"session"===(e.type??this.config?.type)?globalThis.sessionStorage:globalThis.localStorage}createKey(e){if(this.config?.createKey)return this.config.createKey(e);const t=e.prefix??this.config?.prefix??"",n=e.namespace??this.config?.namespace;return`${t?`${t}/`:""}${n?`${n}/`:""}${e.key}`}get(e){const t=this.createKey(e),n=this.getStorage(e).getItem(t);let r=null;if("string"==typeof n)try{r=JSON.parse(n)}catch{r=null}else r=n;return r??e.fallback??null}formatValue(e){return JSON.stringify(e)}set(e){const t=this.createKey(e);this.getStorage(e).setItem(t,e.format?e.format(e.value):this.formatValue(e.value))}syncProperty(e,t,n){const r=n?.key??t,i=n&&"fallback"in n?n.fallback:e[t];runInAction(()=>{e[t]=this.get({...n,key:r,fallback:i})??e[t]});const o=autorun(()=>{const i=e[t];this.set({...n,key:r,value:i})},{signal:this.abortSignal});return this.abortSignal.addEventListener("abort",o),()=>{this.abortSignal.removeEventListener("abort",o),o()}}destroy(){this.abortController.abort()}}var hasRequiredClient,client={};function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var e=requireReactDom();return client.createRoot=e.createRoot,client.hydrateRoot=e.hydrateRoot,client}var clientExports=requireClient();function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),getGroupRecursive(n,t)||getGroupIdForArbitraryProperty(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},getGroupRecursive=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?getGroupRecursive(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},createClassMap=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)processClassesRecursively(n[e],r,e,t);return r},processClassesRecursively=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:getPart(t,e)).classGroupId=n)}if("function"==typeof e)return isThemeGetter(e)?void processClassesRecursively(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{processClassesRecursively(i,getPart(t,e),n,r)})})},getPart=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=1,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,i=0,o=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===i){if(":"===s){t.push(e.slice(o,a)),o=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?i++:")"===s&&i--}const a=0===t.length?e:e.substring(o),s=stripImportantModifier(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},stripImportantModifier=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(SPLIT_CLASSES_REGEX);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const b=o(c).join(":"),g=d?b+"!":b,v=g+m;if(a.includes(v))continue;a.push(v);const y=i(m,h);for(let e=0;e<y.length;++e){const t=y[e];a.push(g+t)}l=t+(l.length>0?" "+l:l)}return l};function twJoin(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=toValue(e))&&(r&&(r+=" "),r+=t);return r}const toValue=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=toValue(e[r]))&&(n&&(n+=" "),n+=t);return n};function createTailwindMerge(e,...t){let n,r,i,o=function(s){const l=t.reduce((e,t)=>t(e),e());return n=createConfigUtils(l),r=n.cache.get,i=n.cache.set,o=a,a(s)};function a(e){const t=r(e);if(t)return t;const o=mergeClassList(e,n);return i(e,o),o}return function(){return o(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\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$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const r=arbitraryValueRegex.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},getIsArbitraryVariable=(e,t,n=!1)=>{const r=arbitraryVariableRegex.exec(e);return!!r&&(r[1]?t(r[1]):n)},isLabelPosition=e=>"position"===e||"percentage"===e,isLabelImage=e=>"image"===e||"url"===e,isLabelSize=e=>"length"===e||"size"===e||"bg-size"===e,isLabelLength=e=>"length"===e,isLabelNumber=e=>"number"===e,isLabelFamilyName=e=>"family-name"===e,isLabelShadow=e=>"shadow"===e,getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),r=fromTheme("font-weight"),i=fromTheme("tracking"),o=fromTheme("leading"),a=fromTheme("breakpoint"),s=fromTheme("container"),l=fromTheme("spacing"),u=fromTheme("radius"),c=fromTheme("shadow"),d=fromTheme("inset-shadow"),p=fromTheme("text-shadow"),f=fromTheme("drop-shadow"),h=fromTheme("blur"),m=fromTheme("perspective"),b=fromTheme("aspect"),g=fromTheme("ease"),v=fromTheme("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",isArbitraryVariable,isArbitraryValue],x=()=>[isArbitraryVariable,isArbitraryValue,l],_=()=>[isFraction,"full","auto",...x()],w=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],S=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],E=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],k=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],A=()=>["auto",...x()],C=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],O=()=>[e,isArbitraryVariable,isArbitraryValue],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],R=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],P=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],M=()=>["","none","full",u,isArbitraryVariable,isArbitraryValue],I=()=>["",isNumber,isArbitraryVariableLength,isArbitraryLength],N=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],L=()=>["","none",h,isArbitraryVariable,isArbitraryValue],D=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],V=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],j=()=>[isNumber,isArbitraryVariable,isArbitraryValue],z=()=>[isFraction,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,b]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[s,"screen",...C()]}],"min-w":[{"min-w":[s,"screen","none",...C()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[o,...x()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[isNumber,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[isNumber,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",p,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[isNumber,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:L()}],brightness:[{brightness:[isNumber,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",f,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",g,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",v,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:j()}],"skew-x":[{"skew-x":j()}],"skew-y":[{"skew-y":j()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig),cx=(...e)=>twMerge(clsx(...e)),vmButton="vmButton_esipO",dragging="dragging_kUMCE",opened="opened_NYAFW",isConnected="isConnected_eObxX",css$5={vmButton:vmButton,dragging:dragging,opened:opened,isConnected:isConnected};class VmDevtoolsButtonVM extends ViewModelBase{devtools=this.parentViewModel.devtools;storage=new Storage({namespace:"mobx-view-model-devtools",prefix:"devtools-button",type:"local"});rect=null;ref=createRef({onSet:e=>{const t={isDragging:!1,offsetX:0,offsetY:0,hasMoved:!1,startX:0,startY:0},n=this.storage.get({key:"left",fallback:""}),r=this.storage.get({key:"top",fallback:""});if(n&&r){const{x:t,y:i}=this.fixPosition(n,r);e.style.left=`${t}px`,e.style.top=`${i}px`}e.addEventListener("mousedown",n=>{t.isDragging=!0,t.hasMoved=!1;const r=e.getBoundingClientRect();t.offsetX=r.left-n.clientX,t.offsetY=r.top-n.clientY,t.startX=r.left,t.startY=r.top,e.classList.add(css$5.dragging)});e.addEventListener("click",e=>{if(t.hasMoved)return e.preventDefault(),void e.stopPropagation();this.handleClick()}),document.addEventListener("mousemove",n=>{if(!t.isDragging)return;const{x:r,y:i}=this.fixPosition(n.clientX+t.offsetX,n.clientY+t.offsetY);e.style.left=`${r}px`,e.style.top=`${i}px`,r===t.startX&&i===t.startY||(t.hasMoved=!0)}),document.addEventListener("mouseup",()=>{t.isDragging=!1,e.classList.remove(css$5.dragging),this.position!==this.devtools.position&&runInAction(()=>{this.devtools.position=this.position,this.storage.set({key:"left",value:e.style.left}),this.storage.set({key:"top",value:e.style.top})})})}});handleClick=()=>{this.devtools.isPopupOpened?this.devtools.hidePopup():this.devtools.showPopup()};get position(){const{left:e,top:t}=this.offsets,n=e<window.innerWidth/2,r=t<window.innerHeight/2;return r&&n?"top-left":r&&!n?"top-right":!r&&n?"bottom-left":"bottom-right"}get offsets(){return this.rect=this.ref.current?.getBoundingClientRect(),{left:this.rect?.left??0,top:this.rect?.top??0}}get size(){return!this.rect&&this.ref.current&&(this.rect=this.ref.current.getBoundingClientRect()),{width:this.rect?.width??0,height:this.rect?.height??0}}fixPosition(e,t){const n=window.innerWidth-this.size.width-12,r=window.innerHeight-this.size.height-12;let i="string"==typeof e?+e.replace("px","")||0:e,o="string"==typeof t?+t.replace("px","")||0:t;return i<12&&(i=12),o<12&&(o=12),i>n&&(i=n),o>r&&(o=r),{x:i,y:o}}}const VmDevtoolsButton=withViewModel(VmDevtoolsButtonVM,({model:e})=>jsxRuntimeExports.jsxs("button",{className:cx(css$5.vmButton,{[css$5.opened]:e.devtools.isPopupOpened,[css$5.isConnected]:e.devtools.isActive},e.devtools.config.buttonClassName),ref:e.ref,"data-position":e.devtools.position,children:[jsxRuntimeExports.jsx("img",{src:e.devtools.logoUrl}),jsxRuntimeExports.jsx("div",{}),jsxRuntimeExports.jsx("span",{children:e.devtools.allVms.length})]})),BarsAscendingAlignLeftArrowDown=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.22 13.28a.75.75 0 0 0 1.06 0l2-2a.75.75 0 1 0-1.06-1.06l-.72.72V3.25a.75.75 0 0 0-1.5 0v7.69l-.72-.72a.75.75 0 1 0-1.06 1.06zM7.75 12a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5zm0-3.25a.75.75 0 0 1 0-1.5h5.5a.75.75 0 0 1 0 1.5zm0-4.75a.75.75 0 0 1 0-1.5h2.5a.75.75 0 0 1 0 1.5z",clipRule:"evenodd"})),BarsDescendingAlignCenter=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3.25a.75.75 0 0 1 .75-.75h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 3.25M3 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 8m3.75 4a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),BarsDescendingAlignLeftArrowUp=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.22 2.72a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1-1.06 1.06l-.72-.72v7.69a.75.75 0 0 1-1.5 0V5.06l-.72.72A.75.75 0 0 1 .22 4.72zM7.75 4a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5zm0 3.25a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm0 4.75a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),ChevronRight=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})),Copy=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"})),FolderTree=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.5 13.5v-3A.5.5 0 0 1 8 10h.672a.5.5 0 0 1 .353.146l.414.415.44.439H13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5M6 13H4.5a3 3 0 0 1-3-3V1.25a.75.75 0 0 1 1.5 0V2a1.5 1.5 0 0 0 1.5 1.5H6v-1a2 2 0 0 1 2-2h.672a2 2 0 0 1 1.414.586l.414.414H13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5H4.5A3 3 0 0 1 3 4.599V10a1.5 1.5 0 0 0 1.5 1.5H6v-1a2 2 0 0 1 2-2h.672a2 2 0 0 1 1.414.586l.414.414H13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm1.5-8.75V5.5A.5.5 0 0 0 8 6h5a.5.5 0 0 0 .5-.5v-2A.5.5 0 0 0 13 3H9.879l-.44-.44-.414-.414A.5.5 0 0 0 8.672 2H8a.5.5 0 0 0-.5.5z",clipRule:"evenodd"})),ListUl=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})),Magnifier=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 7a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0m-.82 4.74a6 6 0 1 1 1.06-1.06l2.79 2.79a.75.75 0 1 1-1.06 1.06z",clipRule:"evenodd"})),Xmark=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})),a=null,{min:u,max:h,abs:p,floor:v}=Math,g=(e,t,n)=>u(n,h(t,e)),m=e=>[...e].sort((e,t)=>e-t),_="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)},S=()=>{let e;return[new Promise(t=>{e=t}),e]},w=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},$=(e,t,n)=>{const r=n?"unshift":"push";for(let n=0;n<t;n++)e[r](-1);return e},y=(e,t)=>{const n=e.t[t];return-1===n?e.o:n},x=(e,t,n)=>{const r=-1===e.t[t];return e.t[t]=n,e.i=u(t,e.i),r},z=(e,t)=>{if(!e.l)return 0;if(e.i>=t)return e.u[t];e.i<0&&(e.u[0]=0,e.i=0);let n=e.i,r=e.u[n];for(;n<t;)r+=y(e,n),e.u[++n]=r;return e.i=t,r},b=(e,t,n=0,r=e.l-1)=>{for(;n<=r;){const i=v((n+r)/2);if(z(e,i)<=t){if(z(e,i+1)>t)return i;n=i+1}else r=i-1}return g(n,0,e.l-1)},I=(e,t,n)=>{const r=t-e.l;return e.i=n?-1:u(t-1,e.i),e.l=t,r>0?($(e.u,r),$(e.t,r,n),e.o*r):(e.u.splice(r),(n?e.t.splice(0,-r):e.t.splice(r)).reduce((t,n)=>t-(-1===n?e.o:n),0))},k="undefined"!=typeof window,R=()=>document.documentElement,T=e=>e.ownerDocument,M=e=>e.defaultView,C=w(()=>!!k&&"rtl"===getComputedStyle(R()).direction),E=w(()=>!!/iP(hone|od|ad)/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0),H=w(()=>"scrollBehavior"in R().style),W=e=>h(e.h(),e.p()),O=(e,t=40,n=0,r,i=!1)=>{let o=!!n,s=1,l=0,c=0,d=0,f=0,g=0,v=0,_=0,w=0,S=a,k=[0,o?h(n-1,0):-1],A=0;const C=(j=e,F=t,{o:(B=r)?B[1]:F,t:B&&B[0]?$(B[0].slice(0,u(j,B[0].length)),h(0,j-B[0].length)):$([],j),l:j,i:-1,u:$([],j+1)}),O=new Set,T=()=>d-c,R=()=>T()+g+f,P=(e,t)=>((e,t,n,r)=>{if(r=u(r,e.l-1),z(e,r)<=t){const i=b(e,n,r);return[b(e,t,r,i),i]}{const i=b(e,t,void 0,r);return[i,b(e,n,i)]}})(C,e,t,k[0]),M=()=>z(C,C.l),N=e=>z(C,e)-g,L=e=>y(C,e),D=(e,t=-1)=>C.t[e]===t,V=e=>{e&&(E()&&0!==_||S&&1===w?g+=e:f+=e)};var j,F,B;return{v:()=>{O.clear()},m:()=>s,_:()=>(e=>[e.t.slice(),e.o])(C),S:(e=200)=>{if(!l||o)return k;let t,n;if(v)[t,n]=k;else{let r=h(0,R()),o=r+l;i||(e=h(0,e),1!==_&&(r-=e),2!==_&&(o+=e)),[t,n]=k=P(h(0,r),h(0,o)),S&&(t=u(t,S[0]),n=h(n,S[1]))}return[h(t,0),u(n,C.l-1)]},$:()=>b(C,R()),I:()=>b(C,R()+l),k:D,R:N,T:L,M:()=>C.l,C:()=>d,H:()=>0!==_,p:()=>l,W:()=>c,h:M,O:()=>(v=f,f=0,[v,2===w]),B:(e,t)=>{const n=[e,t];return O.add(n),()=>{O.delete(n)}},J:(e,t)=>{let n,r,u=0;switch(e){case 1:{if(t===d&&0===w)break;const e=v;v=0;const n=t-d,i=p(n);e&&i<p(e)+1||0!==w||(_=n<0?2:1),o&&(o=!1),d=t,u=4;const a=T();a>=-l&&a<=M()&&(u+=1,r=i>l);break}case 2:u=8,0!==_&&(n=!0,u+=1),_=0,w=0,S=a;break;case 3:{const e=t.filter(([e,t])=>!D(e,t));if(!e.length)break;V(e.reduce((e,[t,n])=>((2===w||(S&&1===w?t<S[0]:N(t+(0===_&&0===w?1:0))<T()))&&(e+=n-L(t)),e),0));for(const[t,n]of e){const e=L(t),r=x(C,t,n);i&&(A+=r?n:n-e)}i&&l&&A>l&&(V(((e,t)=>{let n=0;const r=[];e.t.forEach((e,i)=>{-1!==e&&(r.push(e),i<t&&n++)}),e.i=-1;const i=m(r),o=i.length,a=o/2|0,s=o%2==0?(i[a-1]+i[a])/2:i[a],l=e.o;return((e.o=s)-l)*h(t-n,0)})(C,b(C,R()))),i=!1),u=3,r=!0;break}case 4:l!==t&&(l||(r=!0),l=t,u=3);break;case 5:t[1]?(V(I(C,t[0],!0)),w=2,u=1):(I(C,t[0]),u=1);break;case 6:c=t;break;case 7:w=1;break;case 8:S=P(t,t+l),u=1}u&&(s=1+(2147483647&s),n&&g&&(f+=g,g=0),O.forEach(([e,t])=>{u&e&&t(r)}))}}},B=setTimeout,J=(e,t)=>t&&C()?-e:e,A=(e,t,n,r,i,o)=>{const s=Date.now;let l=0,u=!1,c=!1,d=!1,p=!1;const f=(()=>{let t;const n=()=>{t!=a&&clearTimeout(t)},r=()=>{n(),t=B(()=>{t=a,(()=>{if(u||c)return u=!1,void f();d=!1,e.J(2)})()},150)};return r.A=n,r})(),h=()=>{l=s(),d&&(p=!0),e.J(1,r()),f()},m=t=>{if(u||!e.H()||t.ctrlKey)return;const r=s()-l;150>r&&50<r&&(n?t.deltaX:t.deltaY)&&(u=!0)},b=()=>{c=!0,d=p=!1},g=()=>{c=!1,E()&&(d=!0)};return t.addEventListener("scroll",h),t.addEventListener("wheel",m,{passive:!0}),t.addEventListener("touchstart",b,{passive:!0}),t.addEventListener("touchend",g,{passive:!0}),{L:()=>{t.removeEventListener("scroll",h),t.removeEventListener("wheel",m),t.removeEventListener("touchstart",b),t.removeEventListener("touchend",g),f.A()},D:()=>{const[t,o]=e.O();t&&(i(J(t,n),o,p),p=!1,o&&e.p()>e.h()&&e.J(1,r()))}}},L=(e,t,n)=>{let r;return[async(i,o)=>{if(!await t())return;r&&r();const a=()=>{const[t,n]=S();return r=()=>{n(!1)},e.p()&&B(r,150),[t,e.B(2,()=>{n(!0)})]};if(o&&H())e.J(8,i()),_(async()=>{for(;;){let t=!0;for(let[n,r]=e.S();n<=r;n++)if(e.k(n)){t=!1;break}if(t)break;const[n,r]=a();try{if(!await n)return}finally{r()}}e.J(7),n(i(),o)});else for(;;){const[t,r]=a();try{if(e.J(7),n(i()),!await t)return}finally{r()}}},()=>{r&&r()}]},D=(e,t)=>{let n,r,i=S();const o=t?"scrollLeft":"scrollTop",a=t?"overflowX":"overflowY",[s,l]=L(e,()=>i[0],(e,r)=>{e=J(e,t),r?n.scrollTo({[t?"left":"top"]:e,behavior:"smooth"}):n[o]=e});return{P(s){n=s,r=A(e,s,t,()=>J(s[o],t),(t,n,r)=>{if(r){const e=s.style,t=e[a];e[a]="hidden",B(()=>{e[a]=t})}s[o]=e.C()+t,n&&l()}),i[1](!0)},v(){r&&r.L(),i[1](!1),i=S()},V(e){s(()=>e)},X(t){t+=e.C(),s(()=>t)},Y(t,{align:n,smooth:r,offset:i=0}={}){if(t=g(t,0,e.M()-1),"nearest"===n){const r=e.R(t),i=e.C();if(r<i)n="start";else{if(!(r+e.T(t)>i+e.p()))return;n="end"}}s(()=>i+e.W()+e.R(t)+("end"===n?e.T(t)-e.p():"center"===n?(e.T(t)-e.p())/2:0),r)},j:()=>{r&&r.D()}}},X=e=>{let t;return{q(n){(t||(t=new(M(T(n)).ResizeObserver)(e))).observe(n)},G(e){t.unobserve(e)},L(){t&&t.disconnect()}}},Y=(e,t)=>{let n;const r=t?"width":"height",i=new WeakMap,o=X(t=>{const o=[];for(const{target:s,contentRect:l}of t)if(s.offsetParent)if(s===n)e.J(4,l[r]);else{const e=i.get(s);e!=a&&o.push([e,l[r]])}o.length&&e.J(3,o)});return{U(e){o.q(n=e)},F:(e,t)=>(i.set(e,t),o.q(e),()=>{i.delete(e),o.G(e)}),v:o.L}},G=k?reactExports.useLayoutEffect:reactExports.useEffect,U="current",F=(e,t)=>{if(Array.isArray(e))for(const n of e)F(n,t);else null==e||"boolean"==typeof e||t.push(e)},K=(e,t)=>{const n=e.key;return null!=n?n:"_"+t},N=e=>{const t=reactExports.useRef(null);return t[U]||(t[U]=e())},Q=e=>{const t=reactExports.useRef(e);return G(()=>{t[U]=e},[e]),t},Z=reactExports.memo(({Z:e,ee:t,te:n,oe:r,ne:i,re:o,ie:a,se:s})=>{const l=reactExports.useRef(null);G(()=>t(l[U],n),[n]);const u=reactExports.useMemo(()=>{const e={contain:"layout style",position:i&&s?void 0:"absolute",[a?"height":"width"]:"100%",[a?"top":"left"]:0,[a?C()?"right":"left":"top"]:r,visibility:!i||s?void 0:"hidden"};return a&&(e.display="inline-flex"),e},[r,i,s,a]);return jsxRuntimeExports.jsx(o,"string"==typeof o?{ref:l,style:u,children:e}:{ref:l,style:u,index:n,children:e})}),ee=(e,t)=>reactExports.useMemo(()=>{if("function"==typeof e)return[n=>e(t[n],n),t.length];const n=(e=>{const t=[];return F(e,t),t})(e);return[e=>n[e],n.length]},[e,t]),te=reactExports.forwardRef(({children:e,data:t,bufferSize:n,itemSize:r,shift:i,horizontal:o,keepMounted:a,cache:s,startMargin:l=0,ssrCount:u,as:c="div",item:d="div",scrollRef:p,onScroll:f,onScrollEnd:h},b)=>{const[g,v]=ee(e,t),y=reactExports.useRef(null),x=reactExports.useRef(!!u),w=Q(f),S=Q(h),[E,k,A,C]=N(()=>{const e=!!o,t=O(v,r,u,s,!r);return[t,Y(t,e),D(t,e),e]});v!==E.M()&&E.J(5,[v,i]),l!==E.W()&&E.J(6,l);const[T,R]=reactExports.useReducer(E.m,void 0,E.m),P=E.H(),M=E.h(),I=[],L=e=>{const t=g(e);return jsxRuntimeExports.jsx(Z,{ee:k.F,te:e,oe:E.R(e),ne:E.k(e),re:d,Z:t,ie:C,se:x[U]},K(t,e))};if(G(()=>{x[U]=!1,E.B(1,e=>{e?reactDomExports.flushSync(R):R()}),E.B(4,()=>{w[U]&&w[U](E.C())}),E.B(8,()=>{S[U]&&S[U]()});const e=e=>{k.U(e),A.P(e)};return p?_(()=>{p[U]&&e(p[U])}):e(y[U].parentElement),()=>{E.v(),k.v(),A.v()}},[]),G(()=>{A.j()},[T]),reactExports.useImperativeHandle(b,()=>({get cache(){return E._()},get scrollOffset(){return E.C()},get scrollSize(){return W(E)},get viewportSize(){return E.p()},findStartIndex:E.$,findEndIndex:E.I,getItemOffset:E.R,getItemSize:E.T,scrollToIndex:A.Y,scrollTo:A.V,scrollBy:A.X}),[]),a){const e=new Set(a);for(let[t,r]=E.S(n);t<=r;t++)e.add(t);m([...e]).forEach(e=>{I.push(L(e))})}else for(let[e,t]=E.S(n);e<=t;e++)I.push(L(e));return jsxRuntimeExports.jsx(c,{ref:y,style:{contain:"size style",overflowAnchor:"none",flex:"none",position:"relative",width:C?M:"100%",height:C?"100%":M,pointerEvents:P?"none":void 0},children:I})});class ListItem{constructor(e,t,n,r,i){this.devtools=e,this.key=t,this._data=n,this.getChildren=r,this.cache=i??e.anyCache,this.expandKey=`${t}/expand-key`,computed(this,"isExpanded"),computed(this,"isFitted"),computed(this,"totalChildCount"),computed(this,"depthLine"),computed(this,"depth"),computed(this,"stringifiedData"),computed.struct(this,"operations"),computed.struct(this,"children"),computed.struct(this,"expandedChildren"),computed.struct(this,"expandedChildrenWithSelf"),computed(this,"data"),computed(this,"isExpandable"),action(this,"expand"),action(this,"collapse"),makeObservable(this)}cache;get isExpanded(){return!0===this.cache.get(this.expandKey)}get children(){return this.getChildren?.(this)??[]}get isExpandable(){return this.children.length>0}expand(){this.isExpandable&&this.cache.set(this.expandKey,!0)}collapse(){this.cache.set(this.expandKey,!1)}toggleExpand(){this.isExpanded?this.collapse():this.expand()}get expandedChildren(){if(!this.isExpanded)return[];const e=[];let t=0;const n=this.children;for(;;){const r=n[t++];if(!r)break;e.push(r,...r.expandedChildren)}return e}get expandedChildrenWithSelf(){return[this,...this.expandedChildren]}get data(){return this._data}get isFitted(){return!0}get depthLine(){return String().padEnd(this.depth,"-")}get stringifiedData(){return String(this.data)}get operations(){return[]}expandKey}const ignoredKeys=new Set(["constructor"]),ignoredPrototypes=new Set([globalThis.Object.prototype,globalThis.Function.prototype,globalThis.Array.prototype,globalThis.String.prototype,globalThis.Number.prototype,globalThis.Boolean.prototype,globalThis.Symbol.prototype,globalThis.Date.prototype,globalThis.RegExp.prototype,globalThis.Error.prototype,globalThis.Map.prototype,globalThis.Set.prototype,globalThis.WeakMap.prototype,globalThis.WeakSet.prototype,globalThis.ArrayBuffer.prototype,globalThis.DataView.prototype,globalThis.Float32Array.prototype,globalThis.Float64Array.prototype,globalThis.Int8Array.prototype,globalThis.Int16Array.prototype,globalThis.Int32Array.prototype,globalThis.Uint8Array.prototype,globalThis.Uint8ClampedArray.prototype,globalThis.Uint16Array.prototype,globalThis.Uint32Array.prototype,globalThis.BigInt64Array.prototype,globalThis.BigUint64Array.prototype,globalThis.Promise.prototype,globalThis.Iterator.prototype]);function getAllKeys(e){const t=new Set(Object.keys(e));let n=Object.getPrototypeOf(e);for(;n&&n!==globalThis.Object.prototype;){const e=Object.getOwnPropertyDescriptors(n);for(const n in e)ignoredKeys.has(n)||t.add(n);const r=Object.getPrototypeOf(n);if(ignoredPrototypes.has(r))break;n=r}return Array.from(t)}class MetaListItem extends ListItem{constructor(e,t,n,r){super(e,t,void 0),this.content=n,this._depth=r}get depth(){return this._depth}}class VMListItem extends ListItem{constructor(e,t,n,r){const i=t.constructor.name;super(e,`${i}-${t.id}`,t,void 0,new Map),this.allVms=n,this.parent=r,this.displayName=i,this.searchData={name:i.toLowerCase().trim(),id:(t.id||"").toLowerCase().trim()},computed.struct(this,"childVMListItems"),computed.struct(this,"propertyListItems"),makeObservable(this),untracked(()=>{this.expand()})}get childVMListItems(){return this.allVms.filter(e=>{const t=this.getVmParams(e);return t?.parentViewModel&&t.parentViewModel===this.data}).map(e=>new VMListItem(this.devtools,e,this.allVms,this))}get isFitted(){const{searchEngine:e}=this.devtools;if(!e.isActive)return!0;const t=e.segments[0];let n,r;return e.segments[1]?(n=this.searchData.id===t,r=this.searchData.name===t):(n=this.searchData.id.startsWith(t),r=this.searchData.name.startsWith(t)),r||n}get propertyListItems(){let e=getAllKeys(this.data);return"none"!==this.devtools.sortPropertiesBy&&(e=e.sort((e,t)=>"asc"===this.devtools.sortPropertiesBy?e.localeCompare(t):t.localeCompare(e))),e.map((e,t)=>PropertyListItem.create(this.devtools,e,e,t,this))}get children(){return[...this.propertyListItems,...this.childVMListItems]}getVmParams(e){return"vmParams"in e?e.vmParams:null}get depth(){return this.parent&&"tree"===this.devtools.presentationMode?this.parent.depth+1:0}searchData;displayName}class PropertyListItem extends ListItem{constructor(e,t,n,r,i){super(e,PropertyListItem.createKey(i,t),void 0),this.property=t,this.path=n,this.order=r,this.parent=i,computed(this,"type"),computed(this,"searchData"),computed(this,"propertyClosingTag"),computed(this,"dataType"),computed(this,"stringifiedDataType"),computed(this,"extraContent"),observable.ref(this,"failedStringify"),makeObservable(this)}get data(){return this.property&&this.parent.data[this.property]}get dataType(){return typeof this.data}get stringifiedDataType(){return Object.prototype.toString.call(this.data)}get type(){return Array.isArray(this.data)?"array":_exports.isObject(this.data)&&this.data.constructor?.name&&"Object"!==this.data.constructor.name?"instance":_exports.isFunction(this.data)?"function":_exports.isObject(this.data)?"object":this.stringifiedDataType.startsWith("[object ")&&this.data&&"object"==typeof this.data&&"constructor"in this.data?"instance":"primitive"}get children(){let e=[];if("array"===this.type)e=Object.keys(this.data).map((e,t)=>PropertyListItem.create(this.devtools,e,`${this.path}.${e}`,t,this)),e.push(PropertyListItem.create(this.devtools,"length",`${this.path}.length`,e.length,this));else if("function"===this.type)e=Object.keys(this.data).map((e,t)=>PropertyListItem.create(this.devtools,e,`${this.path}.${e}`,t,this));else if("instance"===this.type||"object"===this.type)return getAllKeys(this.data).map((e,t)=>PropertyListItem.create(this.devtools,e,`${this.path}.${e}`,t,this));return"none"!==this.devtools.sortPropertiesBy&&(e=e.sort((e,t)=>{const n=String(e.property),r=String(t.property);return"asc"===this.devtools.sortPropertiesBy?n.localeCompare(r):r.localeCompare(n)})),e}get isFitted(){const{searchEngine:e}=this.devtools;return!e.isActive||!this.property||e.segments.some(e=>e.startsWith(this.property))}get extraContent(){if(this.isExpanded)return null;if(this.parent.isExpanded){if(this.parent instanceof VMListItem)return",";if(this.parent instanceof PropertyListItem)switch(this.parent.type){case"array":case"instance":case"object":return","}}return null}get propertyClosingTag(){switch(this.type){case"array":return new MetaListItem(this.devtools,`${this.key}/closing-tag`,"]",this.depth);case"instance":case"object":return new MetaListItem(this.devtools,`${this.key}/closing-tag`,"}",this.depth);default:return null}}get expandedChildren(){if(!this.isExpanded||!this.isExpandable)return[];const e=[];let t=0;const n=this.children;for(;;){const r=n[t++];if(!r)break;e.push(r,...r.expandedChildren)}return this.propertyClosingTag&&e.push(this.propertyClosingTag),e}get depth(){return this.parent.depth+1}get searchData(){return{property:this.property?.toLowerCase()||""}}failedStringify=!1;get isCopiable(){return"instance"!==this.type&&!this.failedStringify}get stringifiedData(){switch(this.type){case"object":case"array":try{return JSON.stringify(this.data,null,2)}catch(e){return runInAction(()=>{this.failedStringify=!0}),super.stringifiedData}default:switch(this.dataType){case"symbol":return`Symbol(${Symbol.keyFor(this.data)||""})`;case"string":return`"${super.stringifiedData}"`}return super.stringifiedData}}get operations(){return this.isCopiable?[{title:"Copy",icon:Copy,action:()=>navigator.clipboard.writeText(this.stringifiedData)}]:[]}static createKey(e,t){return`${e.key}-${t}`}static create(e,t,n,r,i){const o=i.cache??e.anyCache,a=`${PropertyListItem.createKey(i,t)}/list-item`;let s=o.get(a);return s||(s=new PropertyListItem(e,t,n,r,i),o.set(a,s)),s}}class ExtraListItem extends ListItem{get isFitted(){const{searchEngine:e}=this.devtools;if(!e.isActive)return!0;const t=e.segments[0];let n;return n=e.segments[1]?this.searchData.name===t:this.searchData.name.startsWith(t),n}get propertyListItems(){let e=Object.keys(this.data||{});return"none"!==this.devtools.sortPropertiesBy&&(e=e.sort((e,t)=>"asc"===this.devtools.sortPropertiesBy?e.localeCompare(t):t.localeCompare(e))),e.map((e,t)=>PropertyListItem.create(this.devtools,e,e,t,this))}get children(){return[...this.propertyListItems]}get depth(){return 0}searchData;displayName;constructor(e,t){const n="Extras";super(e,`extra$$$-${n}-`,t,void 0,new Map),this.displayName=n,this.searchData={name:n.toLowerCase().trim()},computed.struct(this,"propertyListItems"),makeObservable(this),untracked(()=>{this.expand()})}}const iconToggleButton="iconToggleButton_R48wm",activePosition="activePosition_IXsRn",option="option_a5IcR",active="active_6QS-2",css$4={iconToggleButton:iconToggleButton,activePosition:activePosition,option:option,active:active},IconToggleButton=({value:e,options:t,className:n,onUpdate:r})=>{const i=[];let o;return t.forEach((n,a)=>{const{icon:s,value:l}=n,u=e===l;u&&(o=a),i.push(jsxRuntimeExports.jsx("div",{className:cx(css$4.option,{[css$4.active]:u}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(t[a].value)},children:jsxRuntimeExports.jsx(s,{})},a))}),jsxRuntimeExports.jsxs("button",{className:cx(css$4.iconToggleButton,n),children:[jsxRuntimeExports.jsx("div",{className:css$4.activePosition,style:{"--index":o}}),i]})},root="root_Xsw1F",treeItemHeader="treeItemHeader_9gR6Q",treeItemLabel="treeItemLabel_eiMgP",treeItemMetaText="treeItemMetaText_cmfX0",treeItem="treeItem_sRXPA",vmTreeItem="vmTreeItem_t-7jc",extraTreeItem="extraTreeItem_z3KA1",css$3={root:root,treeItemHeader:treeItemHeader,treeItemLabel:treeItemLabel,treeItemMetaText:treeItemMetaText,treeItem:treeItem,vmTreeItem:vmTreeItem,extraTreeItem:extraTreeItem},expandButton="expandButton_B24E3",expanded="expanded_8-pD6",disabled="disabled_MBq1Q",vmContent="vmContent_TIK57",vmContentHeader="vmContentHeader_M1JNM",vmContentHeaderLogo="vmContentHeaderLogo_FRJDO",vmContentHeaderTitle="vmContentHeaderTitle_lYmde",vmContentHeaderTitleText="vmContentHeaderTitleText_RlIFH",vmContentControlPanel="vmContentControlPanel_CgUN9",vmContentInput="vmContentInput_29GM1",vmContentControlPanelActions="vmContentControlPanelActions_lONbA",filled="filled_6JZa0",vmContentVirtualized="vmContentVirtualized_lia62",gradientBlur="gradientBlur_-y-re",css$2={expandButton:expandButton,expanded:expanded,disabled:disabled,vmContent:vmContent,vmContentHeader:vmContentHeader,vmContentHeaderLogo:vmContentHeaderLogo,vmContentHeaderTitle:vmContentHeaderTitle,vmContentHeaderTitleText:vmContentHeaderTitleText,vmContentControlPanel:vmContentControlPanel,vmContentInput:vmContentInput,vmContentControlPanelActions:vmContentControlPanelActions,filled:filled,vmContentVirtualized:vmContentVirtualized,gradientBlur:gradientBlur},ExpandButton=({expandable:e,expanded:t,onClick:n,disabled:r,showIconAnyway:i})=>jsxRuntimeExports.jsx("span",{onClick:n,className:cx(css$2.expandButton,{[css$2.expandable]:e,[css$2.expanded]:t,[css$2.disabled]:r}),children:(e||i)&&jsxRuntimeExports.jsx(ChevronRight,{})}),ExtraListItemRender=observer(({item:e})=>jsxRuntimeExports.jsx("div",{className:cx(css$3.treeItem,css$3.extraTreeItem),"data-fitted":e.isFitted,"data-depth":e.depthLine,style:{"--level":e.depth},children:jsxRuntimeExports.jsxs("header",{className:css$3.treeItemHeader,children:[jsxRuntimeExports.jsx(ExpandButton,{showIconAnyway:"tree"===e.devtools.presentationMode,expandable:e.isExpandable,expanded:e.isExpanded}),jsxRuntimeExports.jsx("label",{className:css$3.treeItemLabel,title:e.displayName,children:e.displayName})]})})),property="property_sD8FG",expandable="expandable_np03F",instance="instance_jv3IW",primitive="primitive_v6LAV",boolean="boolean_Z6znK",number="number_U9H45",object2="object_bHf4I",bigint="bigint_HkgX8",symbol="symbol_oKSwT",string="string_87vm1",propertyName="propertyName_KicXG",propertyMeta="propertyMeta_Ia9ce",propertyValue="propertyValue_fYO2g",propertyOperations="propertyOperations_fT6Ez",css$1={property:property,expandable:expandable,instance:instance,primitive:primitive,boolean:boolean,number:number,object:object2,bigint:bigint,symbol:symbol,undefined:"undefined_6CapW",null:"null_lugoL",string:string,propertyName:propertyName,propertyMeta:propertyMeta,propertyValue:propertyValue,propertyOperations:propertyOperations},MetaListItemRender=observer(({item:e})=>jsxRuntimeExports.jsx("div",{className:cx(css$1.property,css$1.primitive),style:{"--level":e.depth},"data-fitted":e.isFitted,title:e.stringifiedData,"data-depth":e.depthLine,children:e.content})),ArrayPropertyContent=observer(({item:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:e.isExpanded?"[":e.isExpandable?"[...]":"[]"})]})),FunctionPropertyContent=observer(({item:e})=>{const t=Array.from({length:e.data.length},(e,t)=>`arg${t+1}`);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),`(${t.join(", ")})`]})}),InstancePropertyContent=observer(({item:e})=>{const t=e.data.constructor.name;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:`${t}`}),e.isExpanded&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ","{"]})]})}),ObjectPropertyContent=observer(({item:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:e.isExpanded?"{":e.isExpandable?"{...}":"{}"})]})),PrimitivePropertyContent=observer(({item:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:e.stringifiedData})]})),PropertyListItemRender=observer(e=>{const{item:t}=e;let n=null;switch(e.item.type){case"array":n=jsxRuntimeExports.jsx(ArrayPropertyContent,{...e});break;case"function":n=jsxRuntimeExports.jsx(FunctionPropertyContent,{...e});break;case"instance":n=jsxRuntimeExports.jsx(InstancePropertyContent,{...e});break;case"object":n=jsxRuntimeExports.jsx(ObjectPropertyContent,{...e});break;case"primitive":n=jsxRuntimeExports.jsx(PrimitivePropertyContent,{...e})}return jsxRuntimeExports.jsxs("div",{className:cx(css$1.property,css$1[t.type],css$1[t.dataType],{[css$1.null]:null===t.data,[css$1.expandable]:t.isExpandable,[css$1.expanded]:t.isExpanded}),style:{"--level":t.depth,"--order":t.order},"data-fitted":t.isFitted,title:t.stringifiedData,onClick:e=>t.devtools.handlePropertyClick(t,e),"data-depth":t.depthLine,children:[n,t.extraContent,t.operations.length>0&&jsxRuntimeExports.jsx("div",{className:css$1.propertyOperations,children:t.operations.map(e=>jsxRuntimeExports.jsx("button",{title:e.title,className:css$1.propertyOperation,onClick:t=>{t.stopPropagation(),e.action()},children:jsxRuntimeExports.jsx(e.icon,{})},e.title))})]})}),VmListItemRender=observer(({item:e})=>jsxRuntimeExports.jsx("div",{className:cx(css$3.treeItem,css$3.vmTreeItem),"data-fitted":e.isFitted,"data-depth":e.depthLine,style:{"--level":e.depth},children:jsxRuntimeExports.jsxs("header",{className:css$3.treeItemHeader,onClick:()=>e.devtools.handleVmItemHeaderClick(e),children:[jsxRuntimeExports.jsx(ExpandButton,{showIconAnyway:"tree"===e.devtools.presentationMode,expandable:e.devtools.isExpandable(e),expanded:e.isExpanded}),jsxRuntimeExports.jsx("label",{className:css$3.treeItemLabel,title:e.displayName,children:e.displayName}),jsxRuntimeExports.jsx("span",{className:css$3.treeItemMetaText,title:e.data.id,children:e.data.id})]})})),VmDevtoolsContent=observer(({className:e,headerContent:t,...n})=>{const r=useViewModel();return jsxRuntimeExports.jsxs("div",{...n,className:cx(css$2.vmContent,e),ref:r.contentRef,children:[jsxRuntimeExports.jsxs("header",{className:css$2.vmContentHeader,children:[jsxRuntimeExports.jsx("div",{className:css$2.gradientBlur}),jsxRuntimeExports.jsxs("div",{className:css$2.vmContentHeaderTitle,children:[jsxRuntimeExports.jsx("img",{className:css$2.vmContentHeaderLogo,src:r.devtools.logoUrl}),jsxRuntimeExports.jsx("span",{className:css$2.vmContentHeaderTitleText,children:"mobx-view-model devtools"}),t]}),jsxRuntimeExports.jsxs("div",{className:css$2.vmContentControlPanel,children:[jsxRuntimeExports.jsxs("div",{className:css$2.vmContentControlPanelActions,children:[jsxRuntimeExports.jsx(IconToggleButton,{onUpdate:r.devtools.handleChangePresentationMode,options:[{value:"tree",icon:FolderTree},{value:"list",icon:ListUl}],value:r.devtools.presentationMode}),jsxRuntimeExports.jsx(IconToggleButton,{onUpdate:r.devtools.handleSortPropertiesChange,options:[{value:"none",icon:BarsDescendingAlignCenter},{value:"asc",icon:BarsAscendingAlignLeftArrowDown},{value:"desc",icon:BarsDescendingAlignLeftArrowUp}],value:r.devtools.sortPropertiesBy})]}),jsxRuntimeExports.jsxs("div",{className:`${css$2.vmContentInput} ${r.devtools.searchEngine.isActive&&css$2.filled}`,children:[jsxRuntimeExports.jsx(Magnifier,{}),jsxRuntimeExports.jsx("input",{ref:r.devtools.searchEngine.searchInputRef,autoFocus:!0,placeholder:"search by property path or ViewModel name"}),jsxRuntimeExports.jsx("button",{onClick:r.devtools.searchEngine.resetSearch,children:jsxRuntimeExports.jsx(Xmark,{})})]})]})]}),jsxRuntimeExports.jsx("div",{className:css$2.vmContentVirtualized,children:jsxRuntimeExports.jsx(te,{ref:r.devtools.scrollListRef,itemSize:22,data:r.devtools.listItems,keepMounted:[0],children:e=>e instanceof VMListItem?jsxRuntimeExports.jsx(VmListItemRender,{item:e},e.key):e instanceof ExtraListItem?jsxRuntimeExports.jsx(ExtraListItemRender,{item:e},e.key):e instanceof PropertyListItem?jsxRuntimeExports.jsx(PropertyListItemRender,{item:e},e.key):e instanceof MetaListItem?jsxRuntimeExports.jsx(MetaListItemRender,{item:e},e.key):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})})})]})}),vmPopup="vmPopup_0hkGL",closePopupButton="closePopupButton_igv9j",css={vmPopup:vmPopup,closePopupButton:closePopupButton},VmDevtoolsPopup=observer(()=>{const e=useViewModel();return jsxRuntimeExports.jsx(VmDevtoolsContent,{className:css.vmPopup,"data-position":e.devtools.position,headerContent:jsxRuntimeExports.jsx("button",{className:css.closePopupButton,onClick:e.devtools.hidePopup,children:jsxRuntimeExports.jsx(Xmark,{})})})});var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function getElementWindow$1(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function getElementDocument$1(e){return e&&e.ownerDocument?e.ownerDocument:document}var getOptions$1=function(e){return Array.prototype.reduce.call(e,function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e},{})};function addClasses$1(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function removeClasses$1(e,t){e&&t.split(" ").forEach(function(t){e.classList.remove(t)})}function classNamesToQuery$1(e){return".".concat(e.split(" ").join("."))}var canUseDOM$1=!("undefined"==typeof window||!window.document||!window.document.createElement),helpers=Object.freeze({__proto__:null,addClasses:addClasses$1,canUseDOM:canUseDOM$1,classNamesToQuery:classNamesToQuery$1,getElementDocument:getElementDocument$1,getElementWindow:getElementWindow$1,getOptions:getOptions$1,removeClasses:removeClasses$1}),cachedScrollbarWidth=null,cachedDevicePixelRatio=null;function scrollbarWidth(){if(null===cachedScrollbarWidth){if("undefined"==typeof document)return cachedScrollbarWidth=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),cachedScrollbarWidth=n}return cachedScrollbarWidth}canUseDOM$1&&window.addEventListener("resize",function(){cachedDevicePixelRatio!==window.devicePixelRatio&&(cachedDevicePixelRatio=window.devicePixelRatio,cachedScrollbarWidth=null)});var getElementWindow=getElementWindow$1,getElementDocument=getElementDocument$1,getOptions$2=getOptions$1,addClasses$2=addClasses$1,removeClasses=removeClasses$1,classNamesToQuery=classNamesToQuery$1,SimpleBarCore=function(){function e(t,n){void 0===n&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var e=getElementWindow(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,addClasses$2(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){removeClasses(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(addClasses$2(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){removeClasses(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(e){var t,n;r.axis.x.track.el&&r.axis.y.track.el&&r.axis.x.scrollbar.el&&r.axis.y.scrollbar.el&&(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y")))))},this.drag=function(t){var n,i,o,a,s,l,u,c,d,p,f;if(r.draggedAxis&&r.contentWrapperEl){var h=r.axis[r.draggedAxis].track,m=null!==(i=null===(n=h.rect)||void 0===n?void 0:n[r.axis[r.draggedAxis].sizeAttr])&&void 0!==i?i:0,b=r.axis[r.draggedAxis].scrollbar,g=null!==(a=null===(o=r.contentWrapperEl)||void 0===o?void 0:o[r.axis[r.draggedAxis].scrollSizeAttr])&&void 0!==a?a:0,v=parseInt(null!==(l=null===(s=r.elStyles)||void 0===s?void 0:s[r.axis[r.draggedAxis].sizeAttr])&&void 0!==l?l:"0px",10);t.preventDefault(),t.stopPropagation();var y=("y"===r.draggedAxis?t.pageY:t.pageX)-(null!==(c=null===(u=h.rect)||void 0===u?void 0:u[r.axis[r.draggedAxis].offsetAttr])&&void 0!==c?c:0)-r.axis[r.draggedAxis].dragOffset,x=(y="x"===r.draggedAxis&&r.isRtl?(null!==(p=null===(d=h.rect)||void 0===d?void 0:d[r.axis[r.draggedAxis].sizeAttr])&&void 0!==p?p:0)-b.size-y:y)/(m-b.size)*(g-v);"x"===r.draggedAxis&&r.isRtl&&(x=(null===(f=e.getRtlHelpers())||void 0===f?void 0:f.isScrollingToNegative)?-x:x),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=x}},this.onEndDrag=function(e){r.isDragging=!1;var t=getElementDocument(r.el),n=getElementWindow(r.el);e.preventDefault(),e.stopPropagation(),removeClasses(r.el,r.classNames.dragging),r.onStopScrolling(),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout(function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.options=__assign(__assign({},e.defaultOptions),n),this.classNames=__assign(__assign({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=throttle(this._onMouseMove,64),this.onWindowResize=debounce(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=debounce(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=debounce(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=null==n?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:scrollbarWidth()}catch(e){return scrollbarWidth()}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=getElementDocument(e),r=getElementWindow(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){canUseDOM$1&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(classNamesToQuery(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(classNamesToQuery(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(classNamesToQuery(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(classNamesToQuery(this.classNames.offset)),this.maskEl=this.el.querySelector(classNamesToQuery(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,classNamesToQuery(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(classNamesToQuery(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(classNamesToQuery(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(classNamesToQuery(this.classNames.track)).concat(classNamesToQuery(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(classNamesToQuery(this.classNames.track)).concat(classNamesToQuery(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(e=this.axis.x.track.el)||void 0===e?void 0:e.querySelector(classNamesToQuery(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(t=this.axis.y.track.el)||void 0===t?void 0:t.querySelector(classNamesToQuery(this.classNames.scrollbar)))||null,this.options.autoHide||(addClasses$2(this.axis.x.scrollbar.el,this.classNames.visible),addClasses$2(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,t=this,n=getElementWindow(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null===(e=this.contentWrapperEl)||void 0===e||e.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var r=!1,i=n.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){r&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=getElementWindow(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var s=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||l,"px"):"auto",this.placeholderEl.style.height="".concat(s,"px");var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&l>t,this.axis.y.isOverflowing=s>u,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>i-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){var t,n;if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var r,i=this.contentEl[this.axis[e].scrollSizeAttr],o=null!==(n=null===(t=this.axis[e].track.el)||void 0===t?void 0:t[this.axis[e].offsetSizeAttr])&&void 0!==n?n:0,a=o/i;return r=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r},e.prototype.positionScrollbar=function(t){var n,r,i;void 0===t&&(t="y");var o=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&o.el&&this.elStyles){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=(null===(n=this.axis[t].track.el)||void 0===n?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u="x"===t&&this.isRtl&&(null===(r=e.getRtlHelpers())||void 0===r?void 0:r.isScrollOriginAtZero)?-u:u,"x"===t&&this.isRtl&&(u=(null===(i=e.getRtlHelpers())||void 0===i?void 0:i.isScrollingToNegative)?u:-u);var c=u/(a-l),d=~~((s-o.size)*c);d="x"===t&&this.isRtl?-d+(s-o.size):d,o.el.style.transform="x"===t?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;t&&n&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(addClasses$2(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),this.isDragging||this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(removeClasses(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var t=this.axis[e];t.track.el&&t.scrollbar.el&&(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),addClasses$2(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?addClasses$2(t.scrollbar.el,this.classNames.hover):removeClasses(t.scrollbar.el,this.classNames.hover)):(removeClasses(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),removeClasses(this.axis[e].track.el,this.classNames.hover),removeClasses(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,t){var n;void 0===t&&(t="y"),this.isDragging=!0;var r=getElementDocument(this.el),i=getElementWindow(this.el),o=this.axis[t].scrollbar,a="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=a-((null===(n=o.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])||0),this.draggedAxis=t,addClasses$2(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,t){var n,r,i,o,a=this;void 0===t&&(t="y");var s=this.axis[t];if(this.options.clickOnTrack&&s.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var l=getElementWindow(this.el);this.axis[t].scrollbar.rect=s.scrollbar.el.getBoundingClientRect();var u=null!==(r=null===(n=this.axis[t].scrollbar.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])&&void 0!==r?r:0,c=parseInt(null!==(o=null===(i=this.elStyles)||void 0===i?void 0:i[this.axis[t].sizeAttr])&&void 0!==o?o:"0px",10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],p=("y"===t?this.mouseY-u:this.mouseX-u)<0?-1:1,f=-1===p?d-c:d+c,h=function(){a.contentWrapperEl&&(-1===p?d>f&&(d-=40,a.contentWrapperEl[a.axis[t].scrollOffsetAttr]=d,l.requestAnimationFrame(h)):d<f&&(d+=40,a.contentWrapperEl[a.axis[t].scrollOffsetAttr]=d,l.requestAnimationFrame(h)))};h()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=getElementWindow(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return n.call(e,t)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=getOptions$2,e.helpers=helpers,e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _a=SimpleBarCore.helpers,getOptions=_a.getOptions,addClasses=_a.addClasses,canUseDOM=_a.canUseDOM,SimpleBar=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return t.instances.set(n[0],i),i}return __extends(t,e),t.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(e){"init"===e.getAttribute("data-simplebar")||t.instances.has(e)||new t(e,getOptions(e.attributes))})},t.removeObserver=function(){var e;null===(e=t.globalObserver)||void 0===e||e.disconnect()},t.prototype.initDOM=function(){var e,t,n,r=this;if(!Array.prototype.filter.call(this.el.children,function(e){return e.classList.contains(r.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),addClasses(this.wrapperEl,this.classNames.wrapper),addClasses(this.contentWrapperEl,this.classNames.contentWrapper),addClasses(this.offsetEl,this.classNames.offset),addClasses(this.maskEl,this.classNames.mask),addClasses(this.contentEl,this.classNames.contentEl),addClasses(this.placeholderEl,this.classNames.placeholder),addClasses(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),addClasses(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),null===(e=this.contentWrapperEl)||void 0===e||e.setAttribute("tabindex",this.options.tabIndex.toString()),null===(t=this.contentWrapperEl)||void 0===t||t.setAttribute("role","region"),null===(n=this.contentWrapperEl)||void 0===n||n.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var i=document.createElement("div"),o=document.createElement("div");addClasses(i,this.classNames.track),addClasses(o,this.classNames.scrollbar),i.appendChild(o),this.axis.x.track.el=i.cloneNode(!0),addClasses(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=i.cloneNode(!0),addClasses(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}SimpleBarCore.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},t.prototype.unMount=function(){SimpleBarCore.prototype.unMount.call(this),t.instances.delete(this.el)},t.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(t.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},t.handleMutations=function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!t.instances.has(e)&&document.documentElement.contains(e)&&new t(e,getOptions(e.attributes)):e.querySelectorAll("[data-simplebar]").forEach(function(e){"init"!==e.getAttribute("data-simplebar")&&!t.instances.has(e)&&document.documentElement.contains(e)&&new t(e,getOptions(e.attributes))}))}),e.removedNodes.forEach(function(e){var n;1===e.nodeType&&("init"===e.getAttribute("data-simplebar")?!document.documentElement.contains(e)&&(null===(n=t.instances.get(e))||void 0===n||n.unMount()):Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),function(e){var n;!document.documentElement.contains(e)&&(null===(n=t.instances.get(e))||void 0===n||n.unMount())}))})})},t.instances=new WeakMap,t}(SimpleBarCore);canUseDOM&&SimpleBar.initHtmlApi();class DevtoolsClientVM extends ViewModelImpl{devtools=this.payload.devtools;contentRef=createRef({meta:{scrollbar:null},onSet(e){const t=new SimpleBar(e);this.meta={scrollbar:t}}})}const DevtoolsClient=withViewModel(DevtoolsClientVM,({model:e})=>jsxRuntimeExports.jsx(ViewModelsProvider,{value:e.devtools.vmStore,children:jsxRuntimeExports.jsxs(ActiveViewModelProvider,{value:e,children:[jsxRuntimeExports.jsx(VmDevtoolsButton,{}),e.devtools.isPopupOpened&&"popup"===e.devtools.displayType&&jsxRuntimeExports.jsx(VmDevtoolsPopup,{})]})}));class KeyboardHandler2 extends KeyboardHandler$1{constructor(e){super({actions:[{shortcuts:["Ctrl+F12"],action:()=>{e.isPopupOpened?e.hidePopup():e.showPopup()}},{shortcuts:["Escape"],action:()=>{e.hidePopup()}},{shortcuts:["Ctrl+ArrowLeft"],action:()=>{e.collapseAllVms()}},{shortcuts:["Ctrl+ArrowRight"],action:()=>{e.expandAllVMs()}},{shortcuts:["Tab"],action:t=>{e.searchEngine.searchInputRef.meta.focused&&t.preventDefault()}},{shortcuts:["Ctrl+ArrowDown","PageDown"],action:t=>{e.scrollListRef.current&&(e.scrollListRef.current.scrollTo(e.scrollListRef.current.scrollOffset+400),e.searchEngine.searchInputRef.meta.focused&&(t.stopPropagation(),t.preventDefault()))}},{shortcuts:["Ctrl+ArrowUp","PageUp"],action:t=>{e.scrollListRef.current&&(e.scrollListRef.current.scrollTo(e.scrollListRef.current.scrollOffset-400),e.searchEngine.searchInputRef.meta.focused&&(t.stopPropagation(),t.preventDefault()))}}]})}}class ViewModelStoreImpl extends ViewModelStoreBase{constructor(e){super({...e,vmConfig:{observable:{viewModelStores:{useDecorators:!1},viewModels:{useDecorators:!1}}}})}}const createFocusableRef=e=>{const t=()=>{runInAction(()=>{n.meta.focused=document.activeElement===n.current})},n=createRef({meta:{focused:!1},onSet:(n,r)=>{t(),n.addEventListener("focus",t,!0),n.addEventListener("blur",t,!0),e?.onSet?.(n,r)},onUnset:n=>{e?.onUnset?.(n),n?.removeEventListener("focus",t,!0),n?.removeEventListener("blur",t,!0)}});return n};class SearchEngine{searchInputRef;fittedVmIds=new Set;rawSearchText;formattedSearchText;searchTextUpdateTimeout;segments=[];get isActive(){return!!this.formattedSearchText}setSearchText(e){if(this.rawSearchText=e,this.formattedSearchText=e.toLowerCase().trim(),this.segments.length=0,!this.formattedSearchText)return;let t=!0;for(let n=0;n<e.length;){const r=e[n];if(0===n&&"."===r){n++;continue}if(" "===r){n++;continue}if("."===r){t=!0,n++;continue}t&&(this.segments.push(""),t=!1);const i=this.segments.length-1;this.segments[i]+=r.toLowerCase(),n++}}resetSearch=()=>{clearTimeout(this.searchTextUpdateTimeout),this.setSearchText(""),this.searchInputRef.current&&(this.searchInputRef.current.value="")};constructor(){this.setSearchText(""),this.searchInputRef=createFocusableRef({onSet:e=>{this.rawSearchText&&e.value!==this.rawSearchText&&(e.value=this.rawSearchText),e.addEventListener("input",()=>{clearTimeout(this.searchTextUpdateTimeout),this.searchTextUpdateTimeout=setTimeout(()=>{this.setSearchText(e.value)},100)})}}),makeObservable(this,{rawSearchText:observable.ref,formattedSearchText:observable.ref,isActive:computed,segments:observable,setSearchText:action.bound})}}class ViewModelDevtools{constructor(e){this.config=e,this.isPopupOpened=!!this.config.defaultIsOpened,this.displayType="popup",this.position=this.storage.get({key:"position"})??this.config.position??"top-right",this.vmStore=new ViewModelStoreImpl,this.setExtras(this.config.extras),this.setStore(this.config.viewModels),this.presentationMode=this.storage.get({key:"presentationMode"})??"tree",this.sortPropertiesBy=this.storage.get({key:"sortPropertiesBy"})??"none",this.expandedVmItemsPaths=observable.set(),this.logoUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAACTFBMVEUvEQFCGQIuEQFAGALpZhjoZhlgJANAGALrZhiAMAR1KwNKHAJXIAM4FQFsKgWUNgL09PYvEQCgPARoJwNRHgL////U0dCoSRGSPgzFTQljKwl5MggjDQHm5ORWsU2JNATWWBC4SQxsMQysQAX6+vra2NbMUQtRJQxWLgu/SAXf3t62tLOyr6zCbTecSxmyQQLIxcDAvbqbmZaVeWeKc2WgRBB/OhCMOQu4QwPt7e/DuLCYz5NoOB2tqqdsaGVhW1NagUJtTjtkYCe8XyaRRRiHRRTi29XKyMfr0cG2p5yag3JfVElMR0GfcjBVMx/KWRnoYxXdXhRzQBB0OA3n6OrOzM2npKPLq5frs5TUpo2umounkHp3cm6mgWqBbGB8aVZzYVBXnktWT0eYY0BYZzOGazGmWi3IYid1QSOxTxZYSBQ6IBFFJA6lPAP/8uvR2s3qybbSwLW8q6G3nYigm4B8fHvxonW9kXWSjGhrgl5vZlpZqk+ZdE5cjE16fkzuh0q9eUetcUKAWEBpdj90bjg/PDfteDRZdTGwaS6sYCljVCl2TCflbCJZYSKlVSJfRh/dZB2OWR1nRhFfNRHO48zo1crjwamuv5SfqpSXtpGro4bEm4SMhoGFu3yQlHqFf3l5tHKtjHCFe2ageWLSimBnYFuue1hYlk1uikCCYT5XijqRWjdNPTLRcS5VVCC7WB3WYBtsTRYmHBNYPxLA3bzwv6LVsZ+4tJyQxYqHqHvVlnJzn2uegF39l1t1oEiKjzyAdjpeRDShaClCLR/JXT/FAAAABnRSTlP7uLgrtivDuZKUAAAElElEQVQ4yyWURXsbMRRFpyRF0vCM2a6ZmWPXYWqwTVKGMDRNUmZmZmZmZub+scrp3bzN+e65q8dMmQwBwqwKnLZTNrsVDW/Y8P3AgRJPKcK8ykHIMZOmMJMgAYAlimCwGQRsHdHpayOv2tsN4wJmIZTMEiSTGMgRQoCC/B5ZAYIu/fylIthsBlkAHCeZKaNChuE4yKkA2w2IAKtdhyNpWY76ZUwkFZkIUFmeNTPU6vUadSMOOg2htNWURRhRkwQBr9OlHXQNYTipbVHZ6tX5JiPGKgsgUBQWUgckMDX/woIFC+uwzEhcWz43J6ANVgEC+dpIrcJyEp8+MeR4k4hpz696PyTIdBMZ+jAv0RBqGXPUZkw1YT0AEtCFw/3NiVgiVbWMR5hCJnnZs5uB+PoeB4pk9OFaoM9adTVDXeXzGm7+9fI8AIwEsiwBV12BYIWZmCL6DIBGozGt8+6vCLmbOp8e0vF0uMKzrH7hnHii3GyGpgjiOcLr9QDubwlaFj3d9oD6GcIqQM1enVO25FobqD1x2IQIp/KAjPUtabCs7e/fHR7hGQAUDqKN4rz9fb/XrJrf76gzcuqexsY91xJaS2Pq7oNdNVaGZ4kElaWituXNaF50b3p8uoN451m02y6VaS1rkksXbwybGMJBSMBSSy5YPtqUs6zbse816HHn8jsuB91zGpNNi2/vyjAsYGmSWm080VblFj9WV589eylnSR7ZnHDnGrvvbNq2K8JgwALCJhtCFVsKjnwgftLnexsKxE4uHyiPB9ZV79s3uHuYwbSKA3e1oeYWn3GxO17lW34kblnke7F5SVCb8lUf6aibxSgYEAhS2mDfs1GuKqa98WLghltb5Tv+dX1obtdY5YBD384gpAIWbmkI9TR7Ve+awMrNe1eK1Hbw1voQbTr46PSrEsaOAVak+7F8d/OYz5sMiJc/uzQXB45Xfpo719L0tvrn85ISxmYFkFe7YmXdPaNecHSueO6cRrzV++TJDFF0rVt+pvVYEbIDs0RS2rKKLW2s0bgoJ7o077ZunT59hkajuXKm82XJBKRAs5R0l/VVnOWNxscB0eW63jt9AnJd6ch6JiCnwkJzyhJqqSjwDkdHXnSt3P7wPyQuNgkTkB1jOryrPth8v+Do7Oz8Vl+/6eD2CZ1LXKsXxtsp5EQAQph0B8vLl2FTpq7u6NEzxysfFiHRchsjq392CQN4IJkLa93xJd0Zkykbqct0vK6urOwtNlmWYgVFKQQh6yvsnl8fu0OLsD4dOXF6cO/eyu2910WNuGDnvfApqlPUwoYFq2bWr97D026driZ8uHVw8NeORz8uipoVK1wrdhZ1oHDvy8KF8zfqMUZpnW54uKbm8KFDf1pbWy+cn0lThFSWEG/WaOQF2SrbnbJ9Fo3H4xnJoKzDaNJTG90kQcIKCAAcLaVxGuz0B/k9HpssOJ0I20uKEGOGHCsIPAAoGnU6x52lfkPU7zfMNsjRUsFqmIAmmzmJIISBCpAgO6OCMC7T47H5BdqP2ikzlb5DxswBjAAhvFX2+2UrRgIyHDtwzGMoFexFZto/HbAJBdFwHOYAAAAASUVORK5CYII=",this.scrollContentRef=createRef(),this.scrollListRef=createRef(),this.keyboardHandler=new KeyboardHandler2(this),this.searchEngine=new SearchEngine,makeObservable(this,{position:observable.ref,isPopupOpened:observable.ref,projectVmStore:observable.ref,presentationMode:observable.ref,sortPropertiesBy:observable.ref,extras:observable.ref,setStore:action.bound,setExtras:action.bound,showPopup:action.bound,hidePopup:action.bound,handleChangePresentationMode:action.bound,handleSortPropertiesChange:action.bound,handleExpandVmPropertyClick:action.bound,expandAllVMs:action.bound,collapseAllVms:action.bound,handleExpandExtraPropertyClick:action.bound,isActive:computed,rootVmListItems:computed.struct,extraListItems:computed.struct}),this.render()}isPopupOpened;displayType;vmStore;projectVmStore;extras;expandedVmItemsPaths;logoUrl;scrollContentRef;keyboardHandler;searchEngine;presentationMode;sortPropertiesBy;position;scrollListRef;storage=new Storage({namespace:"mobx-view-model-devtools",type:"session"});anyCache=observable.map();autoscrollTimeout;get allVms(){const e=this.projectVmStore;return[...(e?.viewModels??new Map).values()].filter(e=>!ViewModelImpl.isPrototypeOf(e.constructor))}get rootVmListItems(){return this.allVms.filter(e=>{const t=this.getVmParams(e);return!t||null==t.parentViewModel}).map(e=>new VMListItem(this,e,this.allVms))}get extraListItems(){return this.extras?[new ExtraListItem(this,this.extras)]:[]}get listItems(){return[...this.rootVmListItems.flatMap(e=>e.expandedChildrenWithSelf),...this.extraListItems.flatMap(e=>e.expandedChildrenWithSelf)]}get isActive(){return!!this.projectVmStore||Object.keys(this.extras||{}).length>0}get containerId(){return this.config.containerId??"view-model-devtools"}isExpanded(e){return e.isExpanded||this.searchEngine.isActive}checkIsExtraPathExpanded(e){const t=`__EXTRA__%%%${e}`;return this.expandedVmItemsPaths.has(t)}handleExpandVmPropertyClick(e,t){const n=`${e.key}%%%${t}`;this.expandedVmItemsPaths.has(n)?this.expandedVmItemsPaths.delete(n):this.expandedVmItemsPaths.add(n)}handlePropertyClick(e,t){e.toggleExpand()}handleExpandExtraPropertyClick(e){const t=`__EXTRA__%%%${e}`;this.expandedVmItemsPaths.has(t)?this.expandedVmItemsPaths.delete(t):this.expandedVmItemsPaths.add(t)}handleVmItemHeaderClick(e){e.toggleExpand()}isExpandable(e){return e.isExpandable&&"list"!==this.presentationMode}getVmParams(e){return"vmParams"in e?e.vmParams:null}setStore(e){this.projectVmStore=e}setExtras(e){this.extras=e}handleChangePresentationMode=e=>{this.presentationMode="list"===e?"list":"tree",this.expandedVmItemsPaths.clear()};handleSortPropertiesChange=e=>{this.sortPropertiesBy=e};expandAllVMs(){}collapseAllVms(){}showPopup(){this.isPopupOpened=!0,this.expandAllVMs()}hidePopup(){this.isPopupOpened=!1}init(){this.isInitialized||(this.isInitialized=!0,reaction(()=>this.searchEngine.formattedSearchText,()=>{clearTimeout(this.autoscrollTimeout),this.autoscrollTimeout=setTimeout(()=>{if(!this.isActive)return void this.scrollListRef.current?.scrollTo(0);let e=0,t=0;document.querySelectorAll(`#${this.containerId} [data-fitted]`).forEach((n,r)=>{"true"===n.dataset.fitted&&n.dataset.depth&&n.dataset.depth.length>=t&&(t=n.dataset.depth.length,e=this.scrollListRef.current?.getItemOffset(r)??0)}),this.scrollListRef.current?.scrollTo(e)},200)}),this.storage.syncProperty(this,"sortPropertiesBy"),this.storage.syncProperty(this,"presentationMode"),this.storage.syncProperty(this,"position"))}isInitialized=!1;render(){let e=document.querySelector(`#${this.containerId}`);if(!e)if(e=document.createElement("div"),e.className=css$3.root,e.id=this.containerId,document.body){document.body.appendChild(e);clientExports.createRoot(e).render(reactExports.createElement(DevtoolsClient,{payload:{devtools:this}}))}else document.addEventListener("DOMContentLoaded",()=>{document.body.appendChild(e);clientExports.createRoot(e).render(reactExports.createElement(DevtoolsClient,{payload:{devtools:this}}))});this.init()}static _instance=null;static define(e){return ViewModelDevtools._instance||(ViewModelDevtools._instance=new ViewModelDevtools(e??{})),ViewModelDevtools._instance}static connect(e,t){const n=ViewModelDevtools.define();return n.setStore(e),n.setExtras(t),n}static connectViewModels(e){const t=ViewModelDevtools.define();return t.setStore(e),t}static connectExtras(e){const t=ViewModelDevtools.define();return t.setExtras(e),t}}export{ViewModelDevtools};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.vmButton_esipO{position:fixed;z-index:999999;width:36px;height:36px;border-radius:8px;transition:all .15s ease-in-out;cursor:pointer;-webkit-user-select:none;user-select:none}.vmButton_esipO.dragging_kUMCE{transition:none;cursor:grabbing;opacity:.8;z-index:1000}.vmButton_esipO.opened_NYAFW{opacity:0!important;pointer-events:none}.vmButton_esipO[data-position=top-right]{top:12px;right:12px}.vmButton_esipO[data-position=top-left]{top:12px;left:12px}.vmButton_esipO[data-position=bottom-left]{bottom:12px;left:12px}.vmButton_esipO[data-position=bottom-right]{bottom:12px;right:12px}.vmButton_esipO>img{pointer-events:none;position:absolute;inset:0;border-radius:8px}.vmButton_esipO>div{transition:all .15s ease-in-out;position:absolute;inset:0;border-radius:8px;border:2px solid #00000057}.vmButton_esipO>span{left:-4px;top:-4px;pointer-events:none;position:absolute;display:flex;border-radius:8px;background:#005c26cf;padding:2px;font-weight:600;font-size:12px;line-height:12px;color:#2aff0a}.vmButton_esipO:not(.isConnected_eObxX){filter:grayscale(1)}.iconToggleButton_R48wm{display:flex;align-items:center;gap:2px;position:relative;height:20px;outline:none;border-radius:4px;-webkit-backdrop-filter:blur(var(--vmd-control-blur));backdrop-filter:blur(var(--vmd-control-blur))}.activePosition_IXsRn{position:absolute;height:16px;width:16px;padding:1px;box-sizing:content-box!important;background:var(--vmd-control-active-bg);-webkit-backdrop-filter:blur(var(--vmd-base-blur));backdrop-filter:blur(var(--vmd-base-blur));border-radius:4px;transition:all 149ms ease;transform:translate(calc(20px * var(--index)))}.option_a5IcR{padding:1px;z-index:1;width:18px;height:18px;display:flex;align-items:center;justify-content:center;transition:all 149ms ease;color:var(--vmd-control-inactive-color)}.option_a5IcR.active_6QS-2{color:var(--vmd-control-active-color)}.option_a5IcR>svg{width:14px;height:14px}:root{--vmd-base-blur: 2px;--vmd-bg: #0c0a19e6;--vmd-overlay-bg: #0e1227bd;--vmd-base-color: #ccc;--vmd-control-active-bg: #e6e6e682;--vmd-control-active-color: #181818;--vmd-control-active-text-input-color: var(--vmd-base-color);--vmd-control-active-text-input-placeholder-color: #a3a3a3;--vmd-control-inactive-color: #8b8b8b;--vmd-control-border: #5b5468a6;--vmd-control-bg: transparent;--vmd-control-blur: 2px;--vmd-bg-transparent: #1f1c2600;--vmd-content-bg: transparent;--vmd-content-highlight-bg: #ffffff0a;--vmd-scrollbar-track-size: 8px;--vmd-scrollbar-bg-base: #81818170;--vmd-scrollbar-bg-active: #818181;--vmd-property-meta-color: #616161;--vmd-primary-bg: #0f6013;--vmd-primary-color: #5ab65e;--vmd-secondary-bg: #6b6902;--vmd-header-height: 60px}.root_Xsw1F{display:contents;box-sizing:border-box}.root_Xsw1F *{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;box-sizing:border-box}.root_Xsw1F button{outline:none;background:transparent;border:0;cursor:pointer;margin:0;padding-block:0;padding-inline:0;color:var(--vmd-base-color)}.hierarchyButton_h3FD7{width:18px;height:18px;padding:2px;border-radius:6px}.hierarchyButton_h3FD7.active_4JTx5{background:#f0f0f01f}.treeItemHeader_9gR6Q{display:flex;align-items:center;gap:4px;margin:auto 0;cursor:pointer;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.treeItemLabel_eiMgP{padding:0 4px;border-radius:4px}.treeItemMetaText_cmfX0{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.treeItem_sRXPA{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:pre;height:22px;display:flex;flex-direction:row;align-items:center;padding-left:calc(8px + (var(--level) * 20px));position:sticky;top:calc(var(--vmd-header-height) + var(--vmd-control-panel-height));z-index:1}.treeItem_sRXPA:hover{background:var(--vmd-content-highlight-bg)}.treeItem_sRXPA:not([data-fitted=true])>header{opacity:.6}.vmTreeItem_t-7jc .treeItemLabel_eiMgP{background:var(--vmd-primary-bg)}.vmTreeItem_t-7jc .treeItemMetaText_cmfX0{color:var(--vmd-primary-color)}.extraTreeItem_z3KA1 .treeItemLabel_eiMgP{background:var(--vmd-secondary-bg)}.expandButton_B24E3{color:#a0a0a0;opacity:1!important;width:16px;height:16px;font-weight:700;cursor:pointer}.expandButton_B24E3.expanded_8-pD6{color:#b8b8b8;transform:rotate(90deg)}.expandButton_B24E3.disabled_MBq1Q{opacity:.35!important}.vmContent_TIK57[data-simplebar]{position:relative;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;color:var(--vmd-base-color);background:var(--vmd-bg);-webkit-backdrop-filter:blur(var(--vmd-base-blur));backdrop-filter:blur(var(--vmd-base-blur));display:flex;flex-direction:column;overflow:auto;overflow-y:auto;scrollbar-width:thin;overflow-anchor:none}.vmContent_TIK57[data-simplebar] .simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.vmContent_TIK57[data-simplebar] .simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.vmContent_TIK57[data-simplebar] .simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.vmContent_TIK57[data-simplebar] .simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.vmContent_TIK57[data-simplebar] .simplebar-content-wrapper::-webkit-scrollbar,.vmContent_TIK57[data-simplebar] .simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.vmContent_TIK57[data-simplebar] .simplebar-content:after,.vmContent_TIK57[data-simplebar] .simplebar-content:before{content:" ";display:table}.vmContent_TIK57[data-simplebar] .simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.vmContent_TIK57[data-simplebar] .simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.vmContent_TIK57[data-simplebar] .simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.vmContent_TIK57[data-simplebar] .simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}.vmContent_TIK57[data-simplebar].simplebar-dragging,.vmContent_TIK57[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vmContent_TIK57[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar:before{position:absolute;content:"";background:var(--vmd-scrollbar-bg-base);border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.vmContent_TIK57[data-simplebar] .simplebar-track.simplebar-vertical{top:0;width:var(--vmd-scrollbar-track-size)}.vmContent_TIK57[data-simplebar] .simplebar-scrollbar:before{inset:2px}.vmContent_TIK57[data-simplebar] .simplebar-track.simplebar-horizontal{left:0;height:var(--vmd-scrollbar-track-size)}.vmContent_TIK57[data-simplebar] .simplebar-track.simplebar-horizontal .simplebar-scrollbar{inset:0 auto 0 0;min-height:0;min-width:10px;width:auto}.vmContent_TIK57[data-simplebar] .simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.vmContent_TIK57[data-simplebar] .simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.vmContent_TIK57[data-simplebar] .simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}.vmContentHeader_M1JNM{display:flex;flex-direction:column;height:var(--vmd-header-height);flex:none;padding:0 8px;position:sticky;top:0;z-index:1}.vmContentHeaderLogo_FRJDO{width:16px;margin-right:6px}.vmContentHeaderTitle_lYmde{display:flex;justify-content:space-between;align-items:center;flex:none;font-weight:600;z-index:1}.vmContentHeaderTitleText_RlIFH{font-size:16px;margin-right:auto}.vmContentControlPanel_CgUN9{width:100%;height:var(--vmd-control-panel-height);padding-bottom:4px;flex:none;display:flex;flex-direction:row;z-index:1;gap:4px;overflow:hidden;padding-right:6px}.vmContentControlPanel_CgUN9:has(.vmContentInput_29GM1 input:focus)>.vmContentControlPanelActions_lONbA{margin-left:-106px}.vmContentControlPanelActions_lONbA{display:flex;flex-direction:row;align-items:center;gap:6px;transition:all .15s ease}.hiearchyToggleButton_0FTG-{display:flex}.vmContentInput_29GM1{display:flex;position:relative;flex:1;-webkit-backdrop-filter:blur(var(--vmd-control-blur));backdrop-filter:blur(var(--vmd-control-blur))}.vmContentInput_29GM1>svg{position:absolute;width:16px;inset:50% 0;transform:translate(6px,-50%);pointer-events:none;opacity:.7}.vmContentInput_29GM1>input{background:var(--vmd-control-bg);border:1px solid var(--vmd-control-border);color:var(--vmd-control-active-text-input-color);border-radius:4px;outline:0;width:100%;padding:3px 26px;font-size:14px;text-overflow:ellipsis}.vmContentInput_29GM1>input::placeholder{color:var(--vmd-control-active-text-input-placeholder-color)}.vmContentInput_29GM1>button{position:absolute;right:6px;width:16px;transform:translate(4px,-50%);top:50%;opacity:.6;display:none}.vmContentInput_29GM1.filled_6JZa0>svg{opacity:.9}.vmContentInput_29GM1.filled_6JZa0>button{display:block}.vmContentVirtualized_lia62{flex:1}.vmContentVirtualized_lia62>div>div{height:22px}.gradientBlur_-y-re{position:absolute;top:0;left:0;width:100%;height:calc(100% + 6px);pointer-events:none;background:linear-gradient(to bottom,var(--vmd-overlay-bg) 0%,rgba(0,0,0,0) 100%)}.gradientBlur_-y-re:before{content:"";position:absolute;inset:0;background:transparent;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);-webkit-mask:linear-gradient(to bottom,var(--vmd-overlay-bg) 50%,rgba(0,0,0,0) 100%);mask:linear-gradient(to bottom,var(--vmd-overlay-bg) 50%,rgba(0,0,0,0) 100%)}.property_sD8FG{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:pre;background:var(--vmd-content-bg);height:22px;display:flex;flex-direction:row;align-items:center;position:relative;color:var(--vmd-property-meta-color);padding-left:calc(0px + 28px + (var(--level) * 15px))}.property_sD8FG:hover{background:var(--vmd-content-highlight-bg)}.property_sD8FG.expandable_np03F{cursor:pointer}.property_sD8FG[data-fitted=false]{opacity:.5}.property_sD8FG.instance_jv3IW{--value-color: rgb(190 113 195)}.property_sD8FG.primitive_v6LAV.boolean_Z6znK,.property_sD8FG.primitive_v6LAV.number_U9H45,.property_sD8FG.primitive_v6LAV.object_bHf4I,.property_sD8FG.primitive_v6LAV.bigint_HkgX8,.property_sD8FG.primitive_v6LAV.symbol_oKSwT{--value-color: rgb(89, 153, 205)}.property_sD8FG.primitive_v6LAV.undefined_6CapW,.property_sD8FG.primitive_v6LAV.null_lugoL{--value-color: #499098}.primitive_v6LAV.string_87vm1{--value-color: #af7249}.propertyName_KicXG{color:#ccc}.propertyMeta_Ia9ce{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.propertyValue_fYO2g{color:var(--value-color, var(--vmd-property-meta-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.propertyValue_fYO2g:has(+.propertyName_KicXG){margin-right:4px}.propertyOperations_fT6Ez{position:absolute;right:12px;display:flex;align-items:center;opacity:0}.property_sD8FG:hover>.propertyOperations_fT6Ez{opacity:1}.vmPopup_0hkGL{position:fixed!important;z-index:999999;width:520px;border-radius:8px;height:calc(100vh - 24px);width:calc(100vw - 34px);max-width:520px;box-shadow:0 5px 20px #0006}.vmPopup_0hkGL[data-position=top-right]{top:12px;right:12px}.vmPopup_0hkGL[data-position=top-left]{top:12px;left:12px}.vmPopup_0hkGL[data-position=bottom-left]{bottom:12px;left:12px}.vmPopup_0hkGL[data-position=bottom-right]{bottom:12px;right:12px}.closePopupButton_igv9j{width:28px;height:28px;padding:6px;border:0;background:transparent;color:var(--vmd-base-color);display:flex;align-items:center;justify-content:center}')),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const createCounter=(e,t=0)=>{const n=t=>(i.value=e?.(t)??t,i.value),r=()=>n(++i.counter),i=r;return i.increment=r,i.decrement=()=>n(--i.counter),i.reset=()=>{i.counter=t,i.value=e?.(t)??t},i.reset(),i},createGlobalPoint=e=>{if(null==e){let e;return{get:()=>e,set:t=>(e=t,t)}}const t=globalThis;return{get:()=>t[e],set:n=>(t[e]=n,n)}},createGlobalConfig=(e,t)=>{const n=createGlobalPoint(t);return n.get()||n.set(e)},createPubSub=()=>{const e=(...t)=>{e.lastPub=t,e.subs.forEach(e=>{e(...t)})};return e.lastPub=void 0,e.subs=[],e.unsub=t=>{e.subs=e.subs.filter(e=>e!==t)},e.sub=t=>(e.subs.push(t),()=>e.unsub(t)),e};function die(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var mockGlobal={};function getGlobal$1(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:mockGlobal}var assign=Object.assign,getDescriptor=Object.getOwnPropertyDescriptor,defineProperty=Object.defineProperty,objectPrototype=Object.prototype,EMPTY_ARRAY=[];Object.freeze(EMPTY_ARRAY);var EMPTY_OBJECT={};Object.freeze(EMPTY_OBJECT);var hasProxy="undefined"!=typeof Proxy,plainObjectString=Object.toString();function assertProxies(){hasProxy||die("Proxy not available")}function once(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var noop=function(){};function isFunction$1(e){return"function"==typeof e}function isStringish(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function isObject$2(e){return null!==e&&"object"==typeof e}function isPlainObject(e){if(!isObject$2(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===plainObjectString}function isGenerator(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function addHiddenProp(e,t,n){defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function addHiddenFinalProp(e,t,n){defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function createInstanceofPredicate(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return isObject$2(e)&&!0===e[n]}}function isES6Map(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function isPlainES6Map(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return null===Object.getPrototypeOf(n)}function isES6Set(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var hasGetOwnPropertySymbols=void 0!==Object.getOwnPropertySymbols;function getPlainObjectKeys(e){var t=Object.keys(e);if(!hasGetOwnPropertySymbols)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return objectPrototype.propertyIsEnumerable.call(e,t)})):t}var ownKeys="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:hasGetOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function toPrimitive(e){return null===e?null:"object"==typeof e?""+e:e}function hasProp(e,t){return objectPrototype.hasOwnProperty.call(e,t)}var getOwnPropertyDescriptors=Object.getOwnPropertyDescriptors||function(e){var t={};return ownKeys(e).forEach(function(n){t[n]=getDescriptor(e,n)}),t};function getFlag(e,t){return!!(e&t)}function setFlag(e,t,n){return n?e|=t:e&=~t,e}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(null,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var storedAnnotationsSymbol=Symbol("mobx-stored-annotations");function createDecoratorAnnotation(e){return Object.assign(function(t,n){if(is20223Decorator(n))return e.decorate_20223_(t,n);storeAnnotation(t,n,e)},e)}function storeAnnotation(e,t,n){hasProp(e,storedAnnotationsSymbol)||addHiddenProp(e,storedAnnotationsSymbol,_extends({},e[storedAnnotationsSymbol])),isOverride(n)||(e[storedAnnotationsSymbol][t]=n)}function collectStoredAnnotations(e){return hasProp(e,storedAnnotationsSymbol)||addHiddenProp(e,storedAnnotationsSymbol,_extends({},e[storedAnnotationsSymbol])),e[storedAnnotationsSymbol]}function is20223Decorator(e){return"object"==typeof e&&"string"==typeof e.kind}var $mobx=Symbol("mobx administration"),Atom=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return reportObserved(this)},t.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},t.toString=function(){return this.name_},_createClass(e,[{key:"isBeingObserved",get:function(){return getFlag(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return getFlag(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return getFlag(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=setFlag(this.flags_,e.diffValueMask_,1===t)}}])}();Atom.isBeingObservedMask_=1,Atom.isPendingUnobservationMask_=2,Atom.diffValueMask_=4;var isAtom=createInstanceofPredicate("Atom",Atom);function createAtom(e,t,n){void 0===t&&(t=noop),void 0===n&&(n=noop);var r=new Atom(e);return t!==noop&&onBecomeObserved(r,t),n!==noop&&onBecomeUnobserved(r,n),r}function structuralComparer(e,t){return deepEqual(e,t)}function defaultComparer(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}var comparer={structural:structuralComparer,default:defaultComparer};function deepEnhancer(e,t,n){return isObservable(e)?e:Array.isArray(e)?observable.array(e,{name:n}):isPlainObject(e)?observable.object(e,void 0,{name:n}):isES6Map(e)?observable.map(e,{name:n}):isES6Set(e)?observable.set(e,{name:n}):"function"!=typeof e||isAction(e)||isFlow(e)?e:isGenerator(e)?flow(e):autoAction(n,e)}function shallowEnhancer(e,t,n){return null==e||isObservableObject(e)||isObservableArray(e)||isObservableMap(e)||isObservableSet(e)?e:Array.isArray(e)?observable.array(e,{name:n,deep:!1}):isPlainObject(e)?observable.object(e,void 0,{name:n,deep:!1}):isES6Map(e)?observable.map(e,{name:n,deep:!1}):isES6Set(e)?observable.set(e,{name:n,deep:!1}):void 0}function referenceEnhancer(e){return e}function refStructEnhancer(e,t){return deepEqual(e,t)?t:e}var OVERRIDE="override";function isOverride(e){return e.annotationType_===OVERRIDE}function createActionAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$1,extend_:extend_$1,decorate_20223_:decorate_20223_$1}}function make_$1(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(isAction(n.value))return 1;var o=createActionDescriptor(e,this,t,n,!1);return defineProperty(r,t,o),2}function extend_$1(e,t,n,r){var i=createActionDescriptor(e,this,t,n);return e.defineProperty_(t,i,r)}function decorate_20223_$1(e,t){var n,r=t.kind,i=t.name,o=t.addInitializer,a=this,s=function(e){var t,n,r,o;return createAction(null!=(t=null==(n=a.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=a.options_)?void 0:o.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return isAction(n)||(n=s(n)),null!=(t=a.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(isAction(e)||(e=s(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t}),e):void die("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):\n'"+a.annotationType_+"' can only be used on properties with a function value.")}function assertActionDescriptor(e,t,n,r){t.annotationType_,r.value}function createActionDescriptor(e,t,n,r,i){var o,a,s,l,u,c,d;void 0===i&&(i=globalState.safeDescriptors),assertActionDescriptor(e,t,n,r);var p,f=r.value;null!=(o=t.options_)&&o.bound&&(f=f.bind(null!=(p=e.proxy_)?p:e.target_));return{value:createAction(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),f,null!=(l=null==(u=t.options_)?void 0:u.autoAction)&&l,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function createFlowAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$2,extend_:extend_$2,decorate_20223_:decorate_20223_$2}}function make_$2(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!hasProp(e.target_,t)||!isFlow(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(isFlow(n.value))return 1;var o=createFlowDescriptor(e,this,t,n,!1,!1);return defineProperty(r,t,o),2}function extend_$2(e,t,n,r){var i,o=createFlowDescriptor(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function decorate_20223_$2(e,t){var n,r=t.name,i=t.addInitializer;return isFlow(e)||(e=flow(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function assertFlowDescriptor(e,t,n,r){t.annotationType_,r.value}function createFlowDescriptor(e,t,n,r,i,o){void 0===o&&(o=globalState.safeDescriptors),assertFlowDescriptor(e,t,n,r);var a,s=r.value;(isFlow(s)||(s=flow(s)),i)&&((s=s.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0);return{value:s,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function createComputedAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$3,extend_:extend_$3,decorate_20223_:decorate_20223_$3}}function make_$3(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function extend_$3(e,t,n,r){return assertComputedDescriptor(e,this,t,n),e.defineComputedProperty_(t,_extends({},this.options_,{get:n.get,set:n.set}),r)}function decorate_20223_$3(e,t){var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=asObservableObject(this)[$mobx],i=_extends({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new ComputedValue(i))}),function(){return this[$mobx].getObservablePropValue_(r)}}function assertComputedDescriptor(e,t,n,r){t.annotationType_,r.get}function createObservableAnnotation(e,t){return{annotationType_:e,options_:t,make_:make_$4,extend_:extend_$4,decorate_20223_:decorate_20223_$4}}function make_$4(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function extend_$4(e,t,n,r){var i,o;return assertObservableDescriptor(e,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:deepEnhancer,r)}function decorate_20223_$4(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function a(e,t){var r,a,s=asObservableObject(e)[$mobx],l=new ObservableValue(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:deepEnhancer,"ObservableObject."+i.toString(),!1);s.values_.set(i,l),o.add(e)}if("accessor"==r)return{get:function(){return o.has(this)||a(this,e.get.call(this)),this[$mobx].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[$mobx].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}function assertObservableDescriptor(e,t,n,r){t.annotationType_}var AUTO="true",autoAnnotation=createAutoAnnotation();function createAutoAnnotation(e){return{annotationType_:AUTO,options_:e,make_:make_$5,extend_:extend_$5,decorate_20223_:decorate_20223_$5}}function make_$5(e,t,n,r){var i,o,a,s;if(n.get)return computed.make_(e,t,n,r);if(n.set){var l=isAction(n.set)?n.set:createAction(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!globalState.safeDescriptors||e.isPlainObject_,set:l})?0:2:(defineProperty(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return isGenerator(n.value)?(null!=(s=this.options_)&&s.autoBind?flow.bound:flow).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?autoAction.bound:autoAction).make_(e,t,n,r);var u,c=!1===(null==(i=this.options_)?void 0:i.deep)?observable.ref:observable;"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_));return c.make_(e,t,n,r)}function extend_$5(e,t,n,r){var i,o,a;if(n.get)return computed.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!globalState.safeDescriptors||e.isPlainObject_,set:createAction(t.toString(),n.set)},r);"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?observable.ref:observable).extend_(e,t,n,r)}function decorate_20223_$5(e,t){die("'"+this.annotationType_+"' cannot be used as a decorator")}var OBSERVABLE="observable",OBSERVABLE_REF="observable.ref",OBSERVABLE_SHALLOW="observable.shallow",OBSERVABLE_STRUCT="observable.struct",defaultCreateObservableOptions={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function asCreateObservableOptions(e){return e||defaultCreateObservableOptions}Object.freeze(defaultCreateObservableOptions);var observableAnnotation=createObservableAnnotation(OBSERVABLE),observableRefAnnotation=createObservableAnnotation(OBSERVABLE_REF,{enhancer:referenceEnhancer}),observableShallowAnnotation=createObservableAnnotation(OBSERVABLE_SHALLOW,{enhancer:shallowEnhancer}),observableStructAnnotation=createObservableAnnotation(OBSERVABLE_STRUCT,{enhancer:refStructEnhancer}),observableDecoratorAnnotation=createDecoratorAnnotation(observableAnnotation);function getEnhancerFromOptions(e){return!0===e.deep?deepEnhancer:!1===e.deep?referenceEnhancer:getEnhancerFromAnnotation(e.defaultDecorator)}function getAnnotationFromOptions(e){var t;return e?null!=(t=e.defaultDecorator)?t:createAutoAnnotation(e):void 0}function getEnhancerFromAnnotation(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:deepEnhancer}function createObservable(e,t,n){return is20223Decorator(t)?observableAnnotation.decorate_20223_(e,t):isStringish(t)?void storeAnnotation(e,t,observableAnnotation):isObservable(e)?e:isPlainObject(e)?observable.object(e,t,n):Array.isArray(e)?observable.array(e,t):isES6Map(e)?observable.map(e,t):isES6Set(e)?observable.set(e,t):"object"==typeof e&&null!==e?e:observable.box(e,t)}assign(createObservable,observableDecoratorAnnotation);var _getDescriptor$config,_getDescriptor,observableFactories={box:function(e,t){var n=asCreateObservableOptions(t);return new ObservableValue(e,getEnhancerFromOptions(n),n.name,!0,n.equals)},array:function(e,t){var n=asCreateObservableOptions(t);return(!1===globalState.useProxies||!1===n.proxy?createLegacyArray:createObservableArray)(e,getEnhancerFromOptions(n),n.name)},map:function(e,t){var n=asCreateObservableOptions(t);return new ObservableMap(e,getEnhancerFromOptions(n),n.name)},set:function(e,t){var n=asCreateObservableOptions(t);return new ObservableSet(e,getEnhancerFromOptions(n),n.name)},object:function(e,t,n){return initObservable(function(){return extendObservable(!1===globalState.useProxies||!1===(null==n?void 0:n.proxy)?asObservableObject({},n):asDynamicObservableObject({},n),e,t)})},ref:createDecoratorAnnotation(observableRefAnnotation),shallow:createDecoratorAnnotation(observableShallowAnnotation),deep:observableDecoratorAnnotation,struct:createDecoratorAnnotation(observableStructAnnotation)},observable=assign(createObservable,observableFactories),COMPUTED="computed",COMPUTED_STRUCT="computed.struct",computedAnnotation=createComputedAnnotation(COMPUTED),computedStructAnnotation=createComputedAnnotation(COMPUTED_STRUCT,{equals:comparer.structural}),computed=function(e,t){if(is20223Decorator(t))return computedAnnotation.decorate_20223_(e,t);if(isStringish(t))return storeAnnotation(e,t,computedAnnotation);if(isPlainObject(e))return createDecoratorAnnotation(createComputedAnnotation(COMPUTED,e));var n=isPlainObject(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new ComputedValue(n)};Object.assign(computed,computedAnnotation),computed.struct=createDecoratorAnnotation(computedStructAnnotation);var currentActionId=0,nextActionId=1,isFunctionNameConfigurable$1=null!=(_getDescriptor$config=null==(_getDescriptor=getDescriptor(function(){},"name"))?void 0:_getDescriptor.configurable)&&_getDescriptor$config,tmpNameDescriptor={value:"action",configurable:!0,writable:!1,enumerable:!1};function createAction(e,t,n,r){function i(){return executeAction(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},isFunctionNameConfigurable$1&&(tmpNameDescriptor.value=e,defineProperty(i,"name",tmpNameDescriptor)),i}function executeAction(e,t,n,r,i){var o=_startAction(e,t);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{_endAction(o)}}function _startAction(e,t,n,r){var i=globalState.trackingDerivation,o=!t||!i;startBatch();var a=globalState.allowStateChanges;o&&(untrackedStart(),a=allowStateChangesStart(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:allowStateReadsStart(!0),notifySpy_:!1,startTime_:0,actionId_:nextActionId++,parentActionId_:currentActionId};return currentActionId=s.actionId_,s}function _endAction(e){currentActionId!==e.actionId_&&die(30),currentActionId=e.parentActionId_,void 0!==e.error_&&(globalState.suppressReactionErrors=!0),allowStateChangesEnd(e.prevAllowStateChanges_),allowStateReadsEnd(e.prevAllowStateReads_),endBatch(),e.runAsAction_&&untrackedEnd(e.prevDerivation_),globalState.suppressReactionErrors=!1}function allowStateChanges(e,t){var n=allowStateChangesStart(e);try{return t()}finally{allowStateChangesEnd(n)}}function allowStateChangesStart(e){var t=globalState.allowStateChanges;return globalState.allowStateChanges=e,t}function allowStateChangesEnd(e){globalState.allowStateChanges=e}var ObservableValue=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=comparer.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}_inheritsLoose(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==globalState.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(hasInterceptors(this)){var t=interceptChange(this,{object:this,type:UPDATE,newValue:e});if(!t)return globalState.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?globalState.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),hasListeners(this)&&notifyListeners(this,{type:UPDATE,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return registerInterceptor(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:UPDATE,newValue:this.value_,oldValue:void 0}),registerListener(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return toPrimitive(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Atom),ComputedValue=function(){function e(e){this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new CaughtException(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=TraceMode.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||die(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=createAction("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?comparer.structural:comparer.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){propagateMaybeChanged(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&die(32,this.name_,this.derivation),0!==globalState.inBatch||0!==this.observers_.size||this.keepAlive_){if(reportObserved(this),shouldCompute(this)){var e=globalState.trackingContext;this.keepAlive_&&!e&&(globalState.trackingContext=this),this.trackAndCompute()&&propagateChangeConfirmed(this),globalState.trackingContext=e}}else shouldCompute(this)&&(this.warnAboutUntrackedRead_(),startBatch(),this.value_=this.computeValue_(!1),endBatch());var t=this.value_;if(isCaughtException(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&die(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else die(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===IDerivationState_.NOT_TRACKING_,n=this.computeValue_(!0),r=t||isCaughtException(e)||isCaughtException(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=allowStateChangesStart(!1);if(e)t=trackDerivedFunction(this,this.derivation,this.scope_);else if(!0===globalState.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new CaughtException(e)}return allowStateChangesEnd(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(clearObserving(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return autorun(function(){var o=n.get();if(!r||t){var a=untrackedStart();e({observableKind:"computed",debugObjectName:n.name_,type:UPDATE,object:n,newValue:o,oldValue:i}),untrackedEnd(a)}r=!1,i=o})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return toPrimitive(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},_createClass(e,[{key:"isComputing",get:function(){return getFlag(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return getFlag(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return getFlag(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return getFlag(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return getFlag(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=setFlag(this.flags_,e.diffValueMask_,1===t)}}])}();ComputedValue.isComputingMask_=1,ComputedValue.isRunningSetterMask_=2,ComputedValue.isBeingObservedMask_=4,ComputedValue.isPendingUnobservationMask_=8,ComputedValue.diffValueMask_=16;var IDerivationState_,TraceMode,isComputedValue=createInstanceofPredicate("ComputedValue",ComputedValue);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(IDerivationState_||(IDerivationState_={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(TraceMode||(TraceMode={}));var CaughtException=function(e){this.cause=void 0,this.cause=e};function isCaughtException(e){return e instanceof CaughtException}function shouldCompute(e){switch(e.dependenciesState_){case IDerivationState_.UP_TO_DATE_:return!1;case IDerivationState_.NOT_TRACKING_:case IDerivationState_.STALE_:return!0;case IDerivationState_.POSSIBLY_STALE_:for(var t=allowStateReadsStart(!0),n=untrackedStart(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(isComputedValue(a)){if(globalState.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return untrackedEnd(n),allowStateReadsEnd(t),!0}if(e.dependenciesState_===IDerivationState_.STALE_)return untrackedEnd(n),allowStateReadsEnd(t),!0}}return changeDependenciesStateTo0(e),untrackedEnd(n),allowStateReadsEnd(t),!1}}function checkIfStateModificationsAreAllowed(e){}function trackDerivedFunction(e,t,n){var r=allowStateReadsStart(!0);changeDependenciesStateTo0(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++globalState.runId;var i,o=globalState.trackingDerivation;if(globalState.trackingDerivation=e,globalState.inBatch++,!0===globalState.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new CaughtException(e)}return globalState.inBatch--,globalState.trackingDerivation=o,bindDependencies(e),allowStateReadsEnd(r),i}function bindDependencies(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=IDerivationState_.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var l=t[o];0===l.diffValue&&removeObserver(l,e),l.diffValue=0}for(;i--;){var u=n[i];1===u.diffValue&&(u.diffValue=0,addObserver(u,e))}r!==IDerivationState_.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function clearObserving(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)removeObserver(t[n],e);e.dependenciesState_=IDerivationState_.NOT_TRACKING_}function untracked(e){var t=untrackedStart();try{return e()}finally{untrackedEnd(t)}}function untrackedStart(){var e=globalState.trackingDerivation;return globalState.trackingDerivation=null,e}function untrackedEnd(e){globalState.trackingDerivation=e}function allowStateReadsStart(e){var t=globalState.allowStateReads;return globalState.allowStateReads=e,t}function allowStateReadsEnd(e){globalState.allowStateReads=e}function changeDependenciesStateTo0(e){if(e.dependenciesState_!==IDerivationState_.UP_TO_DATE_){e.dependenciesState_=IDerivationState_.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=IDerivationState_.UP_TO_DATE_}}var MobXGlobals=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},canMergeGlobalState=!0,isolateCalled=!1,globalState=function(){var e=getGlobal$1();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(canMergeGlobalState=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new MobXGlobals).version&&(canMergeGlobalState=!1),canMergeGlobalState?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new MobXGlobals):(setTimeout(function(){isolateCalled||die(35)},1),new MobXGlobals)}();function isolateGlobalState(){if((globalState.pendingReactions.length||globalState.inBatch||globalState.isRunningReactions)&&die(36),isolateCalled=!0,canMergeGlobalState){var e=getGlobal$1();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),globalState=new MobXGlobals}}function addObserver(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function removeObserver(e,t){e.observers_.delete(t),0===e.observers_.size&&queueForUnobservation(e)}function queueForUnobservation(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,globalState.pendingUnobservations.push(e))}function startBatch(){globalState.inBatch++}function endBatch(){if(0===--globalState.inBatch){runReactions();for(var e=globalState.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof ComputedValue&&n.suspend_())}globalState.pendingUnobservations=[]}}function reportObserved(e){var t=globalState.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&globalState.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&globalState.inBatch>0&&queueForUnobservation(e),!1)}function propagateChanged(e){e.lowestObserverState_!==IDerivationState_.STALE_&&(e.lowestObserverState_=IDerivationState_.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===IDerivationState_.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=IDerivationState_.STALE_}))}function propagateChangeConfirmed(e){e.lowestObserverState_!==IDerivationState_.STALE_&&(e.lowestObserverState_=IDerivationState_.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===IDerivationState_.POSSIBLY_STALE_?t.dependenciesState_=IDerivationState_.STALE_:t.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(e.lowestObserverState_=IDerivationState_.UP_TO_DATE_)}))}function propagateMaybeChanged(e){e.lowestObserverState_===IDerivationState_.UP_TO_DATE_&&(e.lowestObserverState_=IDerivationState_.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(e.dependenciesState_=IDerivationState_.POSSIBLY_STALE_,e.onBecomeStale_())}))}var Reaction=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=TraceMode.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,globalState.pendingReactions.push(this),runReactions())},t.runReaction_=function(){if(!this.isDisposed){startBatch(),this.isScheduled=!1;var e=globalState.trackingContext;if(globalState.trackingContext=this,shouldCompute(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}globalState.trackingContext=e,endBatch()}},t.track=function(e){if(!this.isDisposed){startBatch(),this.isRunning=!0;var t=globalState.trackingContext;globalState.trackingContext=this;var n=trackDerivedFunction(this,e,void 0);globalState.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(n)&&this.reportExceptionInDerivation_(n.cause),endBatch()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(globalState.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";globalState.suppressReactionErrors||console.error(n,e),globalState.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(startBatch(),clearObserving(this),endBatch()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[$mobx]=this,"dispose"in Symbol&&"symbol"==typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){},_createClass(e,[{key:"isDisposed",get:function(){return getFlag(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return getFlag(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return getFlag(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return getFlag(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=setFlag(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return getFlag(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=setFlag(this.flags_,e.diffValueMask_,1===t)}}])}();Reaction.isDisposedMask_=1,Reaction.isScheduledMask_=2,Reaction.isTrackPendingMask_=4,Reaction.isRunningMask_=8,Reaction.diffValueMask_=16;var MAX_REACTION_ITERATIONS=100,reactionScheduler=function(e){return e()};function runReactions(){globalState.inBatch>0||globalState.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){globalState.isRunningReactions=!0;for(var e=globalState.pendingReactions,t=0;e.length>0;){++t===MAX_REACTION_ITERATIONS&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}globalState.isRunningReactions=!1}var isReaction=createInstanceofPredicate("Reaction",Reaction);function setReactionScheduler(e){var t=reactionScheduler;reactionScheduler=function(n){return e(function(){return t(n)})}}function isSpyEnabled(){return!1}function spyReport(e){}function spyReportStart(e){}function spyReportEnd(e){}function spy(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var ACTION="action",ACTION_BOUND="action.bound",AUTOACTION="autoAction",AUTOACTION_BOUND="autoAction.bound",DEFAULT_ACTION_NAME="<unnamed action>",actionAnnotation=createActionAnnotation(ACTION),actionBoundAnnotation=createActionAnnotation(ACTION_BOUND,{bound:!0}),autoActionAnnotation=createActionAnnotation(AUTOACTION,{autoAction:!0}),autoActionBoundAnnotation=createActionAnnotation(AUTOACTION_BOUND,{autoAction:!0,bound:!0});function createActionFactory(e){return function(t,n){return isFunction$1(t)?createAction(t.name||DEFAULT_ACTION_NAME,t,e):isFunction$1(n)?createAction(t,n,e):is20223Decorator(n)?(e?autoActionAnnotation:actionAnnotation).decorate_20223_(t,n):isStringish(n)?storeAnnotation(t,n,e?autoActionAnnotation:actionAnnotation):isStringish(t)?createDecoratorAnnotation(createActionAnnotation(e?AUTOACTION:ACTION,{name:t,autoAction:e})):void 0}}var action=createActionFactory(!1);Object.assign(action,actionAnnotation);var autoAction=createActionFactory(!0);function runInAction(e){return executeAction(e.name||DEFAULT_ACTION_NAME,!1,e,this,void 0)}function isAction(e){return isFunction$1(e)&&!0===e.isMobxAction}function autorun(e,t){var n,r,i,o;void 0===t&&(t=EMPTY_OBJECT);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)a=new Reaction(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var l=createSchedulerFromOptions(t),u=!1;a=new Reaction(s,function(){u||(u=!0,l(function(){u=!1,a.isDisposed||a.track(c)}))},t.onError,t.requiresObservable)}function c(){e(a)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}Object.assign(autoAction,autoActionAnnotation),action.bound=createDecoratorAnnotation(actionBoundAnnotation),autoAction.bound=createDecoratorAnnotation(autoActionBoundAnnotation);var run=function(e){return e()};function createSchedulerFromOptions(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:run}function reaction(e,t,n){var r,i,o;void 0===n&&(n=EMPTY_OBJECT);var a,s=null!=(r=n.name)?r:"Reaction",l=action(s,n.onError?wrapErrorHandler(n.onError,t):t),u=!n.scheduler&&!n.delay,c=createSchedulerFromOptions(n),d=!0,p=!1,f=n.compareStructural?comparer.structural:n.equals||comparer.default,h=new Reaction(s,function(){d||u?m():p||(p=!0,c(m))},n.onError,n.requiresObservable);function m(){if(p=!1,!h.isDisposed){var t=!1,r=a;h.track(function(){var n=allowStateChanges(!1,function(){return e(h)});t=d||!f(a,n),a=n}),(d&&n.fireImmediately||!d&&t)&&l(a,r,h),d=!1}}return null!=(i=n)&&null!=(i=i.signal)&&i.aborted||h.schedule_(),h.getDisposer_(null==(o=n)?void 0:o.signal)}function wrapErrorHandler(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}var ON_BECOME_OBSERVED="onBO",ON_BECOME_UNOBSERVED="onBUO";function onBecomeObserved(e,t,n){return interceptHook(ON_BECOME_OBSERVED,e,t,n)}function onBecomeUnobserved(e,t,n){return interceptHook(ON_BECOME_UNOBSERVED,e,t,n)}function interceptHook(e,t,n,r){var i=getAtom(t),o=isFunction$1(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var NEVER="never",ALWAYS="always",OBSERVED="observed";function configure(e){!0===e.isolateGlobalState&&isolateGlobalState();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(globalState.useProxies=t===ALWAYS||t!==NEVER&&"undefined"!=typeof Proxy),"ifavailable"===t&&(globalState.verifyProxies=!0),void 0!==n){var r=n===ALWAYS?ALWAYS:n===OBSERVED;globalState.enforceActions=r,globalState.allowStateChanges=!0!==r&&r!==ALWAYS}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(globalState[t]=!!e[t])}),globalState.allowStateReads=!globalState.observableRequiresReaction,e.reactionScheduler&&setReactionScheduler(e.reactionScheduler)}function extendObservable(e,t,n,r){var i=getOwnPropertyDescriptors(t);return initObservable(function(){var t=asObservableObject(e,r)[$mobx];ownKeys(i).forEach(function(e){t.extend_(e,i[e],!n||(!(e in n)||n[e]))})}),e}function getDependencyTree(e,t){return nodeToDependencyTree(getAtom(e,t))}function nodeToDependencyTree(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=unique(e.observing_).map(nodeToDependencyTree)),t}function unique(e){return Array.from(new Set(e))}var generatorId=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}FlowCancellationError.prototype=Object.create(Error.prototype);var flowAnnotation=createFlowAnnotation("flow"),flowBoundAnnotation=createFlowAnnotation("flow.bound",{bound:!0}),flow=Object.assign(function(e,t){if(is20223Decorator(t))return flowAnnotation.decorate_20223_(e,t);if(isStringish(t))return storeAnnotation(e,t,flowAnnotation);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++generatorId,o=action(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise(function(t,n){var s=0;function l(e){var t;a=void 0;try{t=action(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function u(e){var t;a=void 0;try{t=action(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!isFunction$1(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,u);e.then(c,n)}e=n,l(void 0)});return s.cancel=action(r+" - runid: "+i+" - cancel",function(){try{a&&cancelPromise(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(noop,noop),cancelPromise(n),e(new FlowCancellationError)}catch(t){e(t)}}),s};return i.isMobXFlow=!0,i},flowAnnotation);function cancelPromise(e){isFunction$1(e.cancel)&&e.cancel()}function isFlow(e){return!0===(null==e?void 0:e.isMobXFlow)}function _isObservable(e,t){return!!e&&(isObservableObject(e)||!!e[$mobx]||isAtom(e)||isReaction(e)||isComputedValue(e))}function isObservable(e){return _isObservable(e)}function transaction(e,t){void 0===t&&(t=void 0),startBatch();try{return e.apply(t)}finally{endBatch()}}function getAdm(e){return e[$mobx]}flow.bound=createDecoratorAnnotation(flowBoundAnnotation);var objectProxyTraps={has:function(e,t){return getAdm(e).has_(t)},get:function(e,t){return getAdm(e).get_(t)},set:function(e,t,n){var r;return!!isStringish(t)&&(null==(r=getAdm(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!isStringish(t)&&(null==(n=getAdm(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=getAdm(e).defineProperty_(t,n))||r},ownKeys:function(e){return getAdm(e).ownKeys_()},preventExtensions:function(e){die(13)}};function asDynamicObservableObject(e,t){var n,r;return assertProxies(),null!=(r=(n=(e=asObservableObject(e,t))[$mobx]).proxy_)?r:n.proxy_=new Proxy(e,objectProxyTraps)}function hasInterceptors(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function registerInterceptor(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),once(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function interceptChange(e,t){var n=untrackedStart();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&((t=r[i](t))&&!t.type&&die(14),t);i++);return t}finally{untrackedEnd(n)}}function hasListeners(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function registerListener(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),once(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function notifyListeners(e,t){var n=untrackedStart(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);untrackedEnd(n)}}function makeObservable(e,t,n){return initObservable(function(){var r=asObservableObject(e,n)[$mobx];null!=t||(t=collectStoredAnnotations(e)),ownKeys(t).forEach(function(e){return r.make_(e,t[e])})}),e}var SPLICE="splice",UPDATE="update",MAX_SPLICE_SIZE=1e4,arrayTraps={get:function(e,t){var n=e[$mobx];return t===$mobx?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?hasProp(arrayExtensions,t)?arrayExtensions[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[$mobx];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){die(15)}},ObservableArrayAdministration=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new Atom(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return registerInterceptor(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),registerListener(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&die("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&die(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&reserveArrayBuffer(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;checkIfStateModificationsAreAllowed(this.atom_);var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=EMPTY_ARRAY),hasInterceptors(this)){var o=interceptChange(this,{object:this.proxy_,type:SPLICE,index:e,removedCount:t,added:n});if(!o)return EMPTY_ARRAY;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<MAX_SPLICE_SIZE)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"array",object:this.proxy_,type:UPDATE,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&notifyListeners(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:SPLICE,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&notifyListeners(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&die(17,e,n.length),e<n.length){checkIfStateModificationsAreAllowed(this.atom_);var r=n[e];if(hasInterceptors(this)){var i=interceptChange(this,{type:UPDATE,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var o=new Array(e+1-n.length),a=0;a<o.length-1;a++)o[a]=void 0;o[o.length-1]=t,this.spliceWithArray_(n.length,0,o)}},e}();function createObservableArray(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),assertProxies(),initObservable(function(){var i=new ObservableArrayAdministration(n,t,r,!1);addHiddenFinalProp(i.values_,$mobx,i);var o=new Proxy(i.values_,arrayTraps);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var arrayExtensions={clear:function(){return this.splice(0)},replace:function(e){var t=this[$mobx];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[$mobx];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[$mobx].spliceWithArray_(e,t,n)},push:function(){for(var e=this[$mobx],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[$mobx].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[$mobx],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return globalState.trackingDerivation&&die(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){globalState.trackingDerivation&&die(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[$mobx],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function addArrayExtension(e,t){"function"==typeof Array.prototype[e]&&(arrayExtensions[e]=t(e))}function simpleFunc(e){return function(){var t=this[$mobx];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function mapLikeFunc(e){return function(t,n){var r=this,i=this[$mobx];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function reduceLikeFunc(e){return function(){var t=this,n=this[$mobx];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}addArrayExtension("at",simpleFunc),addArrayExtension("concat",simpleFunc),addArrayExtension("flat",simpleFunc),addArrayExtension("includes",simpleFunc),addArrayExtension("indexOf",simpleFunc),addArrayExtension("join",simpleFunc),addArrayExtension("lastIndexOf",simpleFunc),addArrayExtension("slice",simpleFunc),addArrayExtension("toString",simpleFunc),addArrayExtension("toLocaleString",simpleFunc),addArrayExtension("toSorted",simpleFunc),addArrayExtension("toSpliced",simpleFunc),addArrayExtension("with",simpleFunc),addArrayExtension("every",mapLikeFunc),addArrayExtension("filter",mapLikeFunc),addArrayExtension("find",mapLikeFunc),addArrayExtension("findIndex",mapLikeFunc),addArrayExtension("findLast",mapLikeFunc),addArrayExtension("findLastIndex",mapLikeFunc),addArrayExtension("flatMap",mapLikeFunc),addArrayExtension("forEach",mapLikeFunc),addArrayExtension("map",mapLikeFunc),addArrayExtension("some",mapLikeFunc),addArrayExtension("toReversed",mapLikeFunc),addArrayExtension("reduce",reduceLikeFunc),addArrayExtension("reduceRight",reduceLikeFunc);var isObservableArrayAdministration=createInstanceofPredicate("ObservableArrayAdministration",ObservableArrayAdministration);function isObservableArray(e){return isObject$2(e)&&isObservableArrayAdministration(e[$mobx])}var ObservableMapMarker={},ADD="add",DELETE="delete",ObservableMap=function(){function e(e,t,n){var r=this;void 0===t&&(t=deepEnhancer),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$mobx]=ObservableMapMarker,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,isFunction$1(Map)||die(18),initObservable(function(){r.keysAtom_=createAtom("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!globalState.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new ObservableValue(this.has_(e),referenceEnhancer,"ObservableMap.key?",!1);this.hasMap_.set(e,r),onBecomeUnobserved(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(hasInterceptors(this)){var r=interceptChange(this,{type:n?UPDATE:ADD,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((checkIfStateModificationsAreAllowed(this.keysAtom_),hasInterceptors(this))&&!interceptChange(this,{type:DELETE,object:this,name:e}))return!1;if(this.has_(e)){var n=isSpyEnabled(),r=hasListeners(this),i=r||n?{observableKind:"map",debugObjectName:this.name_,type:DELETE,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return transaction(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&notifyListeners(this,i),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==globalState.UNCHANGED){var r=isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:UPDATE,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&notifyListeners(this,o)}},t.addValue_=function(e,t){var n=this;checkIfStateModificationsAreAllowed(this.keysAtom_),transaction(function(){var r,i=new ObservableValue(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=isSpyEnabled(),i=hasListeners(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:ADD,object:this,name:e,newValue:t}:null;i&&notifyListeners(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return makeIterableForMap({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return makeIterableForMap({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=_createForOfIteratorHelperLoose(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return isObservableMap(e)&&(e=new Map(e)),transaction(function(){isPlainObject(e)?getPlainObjectKeys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):isES6Map(e)?(isPlainES6Map(e)||die(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!=e&&die(20,e)}),this},t.clear=function(){var e=this;transaction(function(){untracked(function(){for(var t,n=_createForOfIteratorHelperLoose(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return transaction(function(){for(var n,r=convertToMap(e),i=new Map,o=!1,a=_createForOfIteratorHelperLoose(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var l=t.data_.get(s);i.set(s,l)}}for(var u,c=_createForOfIteratorHelperLoose(r.entries());!(u=c()).done;){var d=u.value,p=d[0],f=d[1],h=t.data_.has(p);if(t.set(p,f),t.data_.has(p)){var m=t.data_.get(p);i.set(p,m),h||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var b=t.data_.keys(),g=i.keys(),v=b.next(),y=g.next();!v.done;){if(v.value!==y.value){t.keysAtom_.reportChanged();break}v=b.next(),y=g.next()}t.data_=i}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return registerListener(this,e)},t.intercept_=function(e){return registerInterceptor(this,e)},_createClass(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),isObservableMap=createInstanceofPredicate("ObservableMap",ObservableMap);function makeIterableForMap(e){return e[Symbol.toStringTag]="MapIterator",makeIterable(e)}function convertToMap(e){if(isES6Map(e)||isObservableMap(e))return e;if(Array.isArray(e))return new Map(e);if(isPlainObject(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return die(21,e)}var ObservableSetMarker={},ObservableSet=function(){function e(e,t,n){var r=this;void 0===t&&(t=deepEnhancer),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[$mobx]=ObservableSetMarker,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,isFunction$1(Set)||die(22),this.enhancer_=function(e,r){return t(e,r,n)},initObservable(function(){r.atom_=createAtom(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;transaction(function(){untracked(function(){for(var t,n=_createForOfIteratorHelperLoose(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=_createForOfIteratorHelperLoose(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(checkIfStateModificationsAreAllowed(this.atom_),hasInterceptors(this)){var n=interceptChange(this,{type:ADD,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){transaction(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=hasListeners(this),i=r?{observableKind:"set",debugObjectName:this.name_,type:ADD,object:this,newValue:e}:null;r&&notifyListeners(this,i)}return this},t.delete=function(e){var t=this;if(hasInterceptors(this)&&!interceptChange(this,{type:DELETE,object:this,oldValue:e}))return!1;if(this.has(e)){var n=hasListeners(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:DELETE,object:this,oldValue:e}:null;return transaction(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&notifyListeners(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return makeIterableForSet({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return makeIterableForSet({next:function(){var n=t.next(),r=n.value,i=n.done;return i?{value:void 0,done:i}:{value:e.dehanceValue_(r),done:i}}})},t.intersection=function(e){return isES6Set(e)&&!isObservableSet(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return isES6Set(e)&&!isObservableSet(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return isES6Set(e)&&!isObservableSet(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return isES6Set(e)&&!isObservableSet(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return isObservableSet(e)&&(e=new Set(e)),transaction(function(){Array.isArray(e)||isES6Set(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!=e&&die("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return registerListener(this,e)},t.intercept_=function(e){return registerInterceptor(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},_createClass(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),isObservableSet=createInstanceofPredicate("ObservableSet",ObservableSet);function makeIterableForSet(e){return e[Symbol.toStringTag]="SetIterator",makeIterable(e)}var descriptorCache=Object.create(null),REMOVE="remove",ObservableObjectAdministration=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=autoAnnotation),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new Atom("ObservableObject.keys"),this.isPlainObject_=isPlainObject(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof ComputedValue)return n.set(t),!0;if(hasInterceptors(this)){var r=interceptChange(this,{type:UPDATE,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==globalState.UNCHANGED){var i=hasListeners(this),o=i?{type:UPDATE,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&notifyListeners(this,o)}return!0},t.get_=function(e){return globalState.trackingDerivation&&!hasProp(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),hasProp(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!globalState.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new ObservableValue(e in this.target_,referenceEnhancer,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[storedAnnotationsSymbol])&&n[e])return;die(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==objectPrototype;){var i=getDescriptor(r,e);if(i){var o=t.make_(this,e,i,r);if(0===o)return;if(1===o)break}r=Object.getPrototypeOf(r)}recordAnnotationApplied(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&recordAnnotationApplied(this,n,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),checkIfStateModificationsAreAllowed(this.keysAtom_);try{startBatch();var r=this.delete_(e);if(!r)return r;if(hasInterceptors(this)){var i=interceptChange(this,{object:this.proxy_||this.target_,name:e,type:ADD,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=_extends({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else defineProperty(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{endBatch()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),checkIfStateModificationsAreAllowed(this.keysAtom_);try{startBatch();var i=this.delete_(e);if(!i)return i;if(hasInterceptors(this)){var o=interceptChange(this,{object:this.proxy_||this.target_,name:e,type:ADD,newValue:t});if(!o)return null;t=o.newValue}var a=getCachedObservablePropDescriptor(e),s={configurable:!globalState.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else defineProperty(this.target_,e,s);var l=new ObservableValue(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{endBatch()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),checkIfStateModificationsAreAllowed(this.keysAtom_);try{startBatch();var r=this.delete_(e);if(!r)return r;if(hasInterceptors(this))if(!interceptChange(this,{object:this.proxy_||this.target_,name:e,type:ADD,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=getCachedObservablePropDescriptor(e),o={configurable:!globalState.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else defineProperty(this.target_,e,o);this.values_.set(e,new ComputedValue(t)),this.notifyPropertyAddition_(e,void 0)}finally{endBatch()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),checkIfStateModificationsAreAllowed(this.keysAtom_),!hasProp(this.target_,e))return!0;if(hasInterceptors(this)&&!interceptChange(this,{object:this.proxy_||this.target_,name:e,type:REMOVE}))return null;try{var n;startBatch();var r,i=hasListeners(this),o=this.values_.get(e),a=void 0;if(!o&&i)a=null==(r=getDescriptor(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof ObservableValue&&(a=o.value_),propagateChanged(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var s={type:REMOVE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};0,i&&notifyListeners(this,s)}}finally{endBatch()}return!0},t.observe_=function(e,t){return registerListener(this,e)},t.intercept_=function(e){return registerInterceptor(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=hasListeners(this);if(r){var i=r?{type:ADD,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&notifyListeners(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),ownKeys(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function asObservableObject(e,t){var n;if(hasProp(e,$mobx))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new ObservableObjectAdministration(e,new Map,String(r),getAnnotationFromOptions(t));return addHiddenProp(e,$mobx,i),e}var isObservableObjectAdministration=createInstanceofPredicate("ObservableObjectAdministration",ObservableObjectAdministration);function getCachedObservablePropDescriptor(e){return descriptorCache[e]||(descriptorCache[e]={get:function(){return this[$mobx].getObservablePropValue_(e)},set:function(t){return this[$mobx].setObservablePropValue_(e,t)}})}function isObservableObject(e){return!!isObject$2(e)&&isObservableObjectAdministration(e[$mobx])}function recordAnnotationApplied(e,t,n){var r;null==(r=e.target_[storedAnnotationsSymbol])||delete r[n]}var ENTRY_0=createArrayEntryDescriptor(0),safariPrototypeSetterInheritanceBug=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),OBSERVABLE_ARRAY_BUFFER_SIZE=0,StubArray=function(){};function inherit(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):void 0!==e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}inherit(StubArray,Array.prototype);var LegacyObservableArray=function(e){function t(t,n,r,i){var o;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,initObservable(function(){var e=new ObservableArrayAdministration(r,n,i,!0);e.proxy_=o,addHiddenFinalProp(o,$mobx,e),t&&t.length&&o.spliceWithArray(0,0,t),safariPrototypeSetterInheritanceBug&&Object.defineProperty(o,"0",ENTRY_0)}),o}_inheritsLoose(t,e);var n=t.prototype;return n.concat=function(){this[$mobx].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return isObservableArray(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return makeIterable({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},_createClass(t,[{key:"length",get:function(){return this[$mobx].getArrayLength_()},set:function(e){this[$mobx].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(StubArray);function createArrayEntryDescriptor(e){return{enumerable:!1,configurable:!0,get:function(){return this[$mobx].get_(e)},set:function(t){this[$mobx].set_(e,t)}}}function createArrayBufferItem(e){defineProperty(LegacyObservableArray.prototype,""+e,createArrayEntryDescriptor(e))}function reserveArrayBuffer(e){if(e>OBSERVABLE_ARRAY_BUFFER_SIZE){for(var t=OBSERVABLE_ARRAY_BUFFER_SIZE;t<e+100;t++)createArrayBufferItem(t);OBSERVABLE_ARRAY_BUFFER_SIZE=e}}function createLegacyArray(e,t,n){return new LegacyObservableArray(e,t,n)}function getAtom(e,t){if("object"==typeof e&&null!==e){if(isObservableArray(e))return void 0!==t&&die(23),e[$mobx].atom_;if(isObservableSet(e))return e.atom_;if(isObservableMap(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||die(25,t,getDebugName(e)),n}if(isObservableObject(e)){if(!t)return die(26);var r=e[$mobx].values_.get(t);return r||die(27,t,getDebugName(e)),r}if(isAtom(e)||isComputedValue(e)||isReaction(e))return e}else if(isFunction$1(e)&&isReaction(e[$mobx]))return e[$mobx];die(28)}function getAdministration(e,t){return e||die(29),isAtom(e)||isComputedValue(e)||isReaction(e)||isObservableMap(e)||isObservableSet(e)?e:e[$mobx]?e[$mobx]:void die(24,e)}function getDebugName(e,t){var n;if(void 0!==t)n=getAtom(e,t);else{if(isAction(e))return e.name;n=isObservableObject(e)||isObservableMap(e)||isObservableSet(e)?getAdministration(e):getAtom(e)}return n.name_}function initObservable(e){var t=untrackedStart(),n=allowStateChangesStart(!0);startBatch();try{return e()}finally{endBatch(),allowStateChangesEnd(n),untrackedEnd(t)}}Object.entries(arrayExtensions).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&addHiddenProp(LegacyObservableArray.prototype,t,n)}),reserveArrayBuffer(1e3);var _getGlobal$Iterator,toString=objectPrototype.toString;function deepEqual(e,t,n){return void 0===n&&(n=-1),eq(e,t,n)}function eq(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=toString.call(e);if(a!==toString.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=unwrap(e),t=unwrap(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(isFunction$1(l)&&l instanceof l&&isFunction$1(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!eq(e[c],t[c],n-1,r,i))return!1}else{var d=Object.keys(e),p=d.length;if(Object.keys(t).length!==p)return!1;for(var f=0;f<p;f++){var h=d[f];if(!hasProp(t,h)||!eq(e[h],t[h],n-1,r,i))return!1}}return r.pop(),i.pop(),!0}function unwrap(e){return isObservableArray(e)?e.slice():isES6Map(e)||isObservableMap(e)||isES6Set(e)||isObservableSet(e)?Array.from(e.entries()):e}var maybeIteratorPrototype=(null==(_getGlobal$Iterator=getGlobal$1().Iterator)?void 0:_getGlobal$Iterator.prototype)||{};function makeIterable(e){return e[Symbol.iterator]=getSelf,Object.assign(Object.create(maybeIteratorPrototype),e)}function getSelf(){return this}["Symbol","Map","Set"].forEach(function(e){void 0===getGlobal$1()[e]&&die("MobX requires global '"+e+"' to be available or polyfilled")}),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:spy,extras:{getDebugName:getDebugName},$mobx:$mobx});const TYPE={Null:"null",Undefined:"undefined",NaN:"nan",Object:"[object Object]",Array:"[object Array]",String:"[object String]",Number:"[object Number]",Boolean:"[object Boolean]",Function:"[object Function]",AsyncFunction:"[object AsyncFunction]",RegExp:"[object RegExp]",Symbol:"[object Symbol]",Infinite:"infinite",Element:"element"};function getType(e){if(void 0===e)return TYPE.Undefined;if(null===e)return TYPE.Null;if(e&&(1===e.nodeType||9===e.nodeType))return TYPE.Element;const t=Object.prototype.toString.call(e);if(t===TYPE.Number){if(Number.isNaN(e))return TYPE.NaN;if(!Number.isFinite(e))return TYPE.Infinite}return t}const createTypeGuard=(...e)=>t=>e.includes(getType(t)),isDefined=e=>null!=e,isNull=createTypeGuard(TYPE.Null),isUndefined=createTypeGuard(TYPE.Undefined),isObject$1=createTypeGuard(TYPE.Object),isArray=createTypeGuard(TYPE.Array),isString=createTypeGuard(TYPE.String),isNumber$1=createTypeGuard(TYPE.Number),isBoolean=createTypeGuard(TYPE.Boolean),isFunction=createTypeGuard(TYPE.Function,TYPE.AsyncFunction),isRegExp=createTypeGuard(TYPE.RegExp),isElement=createTypeGuard(TYPE.Element),isNaN$1=createTypeGuard(TYPE.NaN),isInfinite=createTypeGuard(TYPE.Infinite),isSymbol$1=createTypeGuard(TYPE.Symbol),_exports=Object.freeze(Object.defineProperty({__proto__:null,isArray:isArray,isBoolean:isBoolean,isDefined:isDefined,isElement:isElement,isFunction:isFunction,isInfinite:isInfinite,isNaN:isNaN$1,isNull:isNull,isNumber:isNumber$1,isObject:isObject$1,isRegExp:isRegExp,isString:isString,isSymbol:isSymbol$1,isUndefined:isUndefined},Symbol.toStringTag,{value:"Module"})),applyObservable$1=(e,t,n)=>{n?(t.forEach(([t,n])=>{n(e,t)}),makeObservable(e)):makeObservable(e,Object.fromEntries(t))},createRef=e=>{let t;const n=e?.comparer??comparer.default,r=e=>{const i=e??null;n(r.current,i)||runInAction(()=>{t=r.current??void 0,r.current=i,r.listeners.forEach(e=>{e(r.current,t)}),null===r.current&&void 0!==t&&(t=void 0)})};return r.listeners=new Set(e?.onChange?[e.onChange]:[]),(e?.onSet||e?.onUnset)&&r.listeners.add((t,n)=>{t?e.onSet?.(t,n):e.onUnset?.(n)}),r.current=e?.initial??null,r.meta=e?.meta??{},makeObservable(r,{current:observable.ref,meta:observable}),r},isShallowEqual=(e,t)=>{if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null===e||null===t)return!1;if(e.constructor!==t.constructor)return!1;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){const n=e,r=t;if(n.length!==r.length)return!1;for(const[e,t]of n.entries())if(t!==r[e])return!1;return!0}if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;const o=t;for(const t of r)if(!Object.hasOwn(o,t)||e[t]!==o[t])return!1;return!0},{entries:entries,setPrototypeOf:setPrototypeOf,isFrozen:isFrozen,getPrototypeOf:getPrototypeOf,getOwnPropertyDescriptor:getOwnPropertyDescriptor}=Object;let{freeze:freeze,seal:seal,create:create}=Object,{apply:apply,construct:construct}="undefined"!=typeof Reflect&&Reflect;freeze||(freeze=function(e){return e}),seal||(seal=function(e){return e}),apply||(apply=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),construct||(construct=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return apply(e,t,r)}}function unconstruct(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return construct(e,n)}}function addToSet(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(isFrozen(t)||(t[r]=e),i=e)}e[i]=!0}return e}function cleanArray(e){for(let t=0;t<e.length;t++){objectHasOwnProperty(e,t)||(e[t]=null)}return e}function clone(e){const t=create(null);for(const[n,r]of entries(e)){objectHasOwnProperty(e,n)&&(Array.isArray(r)?t[n]=cleanArray(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=clone(r):t[n]=r)}return t}function lookupGetter(e,t){for(;null!==e;){const n=getOwnPropertyDescriptor(e,t);if(n){if(n.get)return unapply(n.get);if("function"==typeof n.value)return unapply(n.value)}e=getPrototypeOf(e)}return function(){return null}}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR:ARIA_ATTR,ATTR_WHITESPACE:ATTR_WHITESPACE,CUSTOM_ELEMENT:CUSTOM_ELEMENT,DATA_ATTR:DATA_ATTR,DOCTYPE_NAME:DOCTYPE_NAME,ERB_EXPR:ERB_EXPR,IS_ALLOWED_URI:IS_ALLOWED_URI,IS_SCRIPT_OR_DATA:IS_SCRIPT_OR_DATA,MUSTACHE_EXPR:MUSTACHE_EXPR,TMPLIT_EXPR:TMPLIT_EXPR});const NODE_TYPE={element:1,text:3,progressingInstruction:7,comment:8,document:9},getGlobal=function(){return"undefined"==typeof window?null:window},_createTrustedTypesPolicy=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},_createHooksMap=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:getGlobal();const t=e=>createDOMPurify(e);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==NODE_TYPE.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:f}=e,h=l.prototype,m=lookupGetter(h,"cloneNode"),b=lookupGetter(h,"remove"),g=lookupGetter(h,"nextSibling"),v=lookupGetter(h,"childNodes"),y=lookupGetter(h,"parentNode");if("function"==typeof a){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,_="";const{implementation:w,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:k}=n,{importNode:A}=r;let C=_createHooksMap();t.isSupported="function"==typeof entries&&"function"==typeof y&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:T,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:L}=EXPRESSIONS;let{IS_ALLOWED_URI:D}=EXPRESSIONS,V=null;const j=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let z=null;const F=addToSet({},[...html,...svg,...mathMl,...xml]);let B=Object.seal(create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,U=null;const H=Object.seal(create(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,G=!0,q=!1,K=!0,Y=!1,X=!0,Q=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1;let oe=!0,ae=!1,se={},le=null;const ue=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const de=addToSet({},["audio","video","img","source","image","track"]);let pe=null;const fe=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ge=be,ve=!1,ye=null;const xe=addToSet({},[he,me,be],stringToString);let _e=addToSet({},["mi","mo","mn","ms","mtext"]),we=addToSet({},["annotation-xml"]);const Se=addToSet({},["title","style","font","a","script"]);let Ee=null;const ke=["application/xhtml+xml","text/html"];let Ae=null,Ce=null;const Oe=n.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=clone(e),Ee=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===Ee?stringToString:stringToLowerCase,V=objectHasOwnProperty(e,"ALLOWED_TAGS")?addToSet({},e.ALLOWED_TAGS,Ae):j,z=objectHasOwnProperty(e,"ALLOWED_ATTR")?addToSet({},e.ALLOWED_ATTR,Ae):F,ye=objectHasOwnProperty(e,"ALLOWED_NAMESPACES")?addToSet({},e.ALLOWED_NAMESPACES,stringToString):xe,pe=objectHasOwnProperty(e,"ADD_URI_SAFE_ATTR")?addToSet(clone(fe),e.ADD_URI_SAFE_ATTR,Ae):fe,ce=objectHasOwnProperty(e,"ADD_DATA_URI_TAGS")?addToSet(clone(de),e.ADD_DATA_URI_TAGS,Ae):de,le=objectHasOwnProperty(e,"FORBID_CONTENTS")?addToSet({},e.FORBID_CONTENTS,Ae):ue,$=objectHasOwnProperty(e,"FORBID_TAGS")?addToSet({},e.FORBID_TAGS,Ae):clone({}),U=objectHasOwnProperty(e,"FORBID_ATTR")?addToSet({},e.FORBID_ATTR,Ae):clone({}),se=!!objectHasOwnProperty(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,ge=e.NAMESPACE||be,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,we=e.HTML_INTEGRATION_POINTS||we,B=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),te&&(ee=!0),se&&(V=addToSet({},text),z=[],!0===se.html&&(addToSet(V,html$1),addToSet(z,html)),!0===se.svg&&(addToSet(V,svg$1),addToSet(z,svg),addToSet(z,xml)),!0===se.svgFilters&&(addToSet(V,svgFilters),addToSet(z,svg),addToSet(z,xml)),!0===se.mathMl&&(addToSet(V,mathMl$1),addToSet(z,mathMl),addToSet(z,xml))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(V===j&&(V=clone(V)),addToSet(V,e.ADD_TAGS,Ae))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(z===F&&(z=clone(z)),addToSet(z,e.ADD_ATTR,Ae))),e.ADD_URI_SAFE_ATTR&&addToSet(pe,e.ADD_URI_SAFE_ATTR,Ae),e.FORBID_CONTENTS&&(le===ue&&(le=clone(le)),addToSet(le,e.FORBID_CONTENTS,Ae)),oe&&(V["#text"]=!0),Q&&addToSet(V,["html","head","body"]),V.table&&(addToSet(V,["tbody"]),delete $.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,_=x.createHTML("")}else void 0===x&&(x=_createTrustedTypesPolicy(f,i)),null!==x&&"string"==typeof _&&(_=x.createHTML(""));freeze&&freeze(e),Ce=e}},Pe=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Me=addToSet({},[...mathMl$1,...mathMlDisallowed]),Ie=function(e){arrayPush(t.removed,{element:e});try{y(e).removeChild(e)}catch(t){b(e)}},Ne=function(e,n){try{arrayPush(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){arrayPush(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(ee||te)try{Ie(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},Le=function(e){let t=null,r=null;if(Z)e="<remove></remove>"+e;else{const t=stringMatch(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Ee&&ge===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=x?x.createHTML(e):e;if(ge===be)try{t=(new p).parseFromString(i,Ee)}catch(e){}if(!t||!t.documentElement){t=w.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ve?_:i}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),ge===be?k.call(t,Q?"html":"body")[0]:Q?t.documentElement:o},De=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ve=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof s&&e instanceof s};function ze(e,n,r){arrayForEach(e,e=>{e.call(t,n,r,Ce)})}const Fe=function(e){let n=null;if(ze(C.beforeSanitizeElements,e,null),Ve(e))return Ie(e),!0;const r=Ae(e.nodeName);if(ze(C.uponSanitizeElement,e,{tagName:r,allowedTags:V}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&regExpTest(/<[/\w!]/g,e.innerHTML)&&regExpTest(/<[/\w!]/g,e.textContent))return Ie(e),!0;if(e.nodeType===NODE_TYPE.progressingInstruction)return Ie(e),!0;if(X&&e.nodeType===NODE_TYPE.comment&&regExpTest(/<[/\w]/g,e.data))return Ie(e),!0;if(!(H.tagCheck instanceof Function&&H.tagCheck(r))&&(!V[r]||$[r])){if(!$[r]&&$e(r)){if(B.tagNameCheck instanceof RegExp&&regExpTest(B.tagNameCheck,r))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(r))return!1}if(oe&&!le[r]){const t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,g(e))}}}return Ie(e),!0}return e instanceof l&&!function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=stringToLowerCase(e.tagName),r=stringToLowerCase(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===be?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||_e[r]):Boolean(Pe[n]):e.namespaceURI===he?t.namespaceURI===be?"math"===n:t.namespaceURI===me?"math"===n&&we[r]:Boolean(Me[n]):e.namespaceURI===be?!(t.namespaceURI===me&&!we[r])&&!(t.namespaceURI===he&&!_e[r])&&!Me[n]&&(Se[n]||!Pe[n]):!("application/xhtml+xml"!==Ee||!ye[e.namespaceURI]))}(e)?(Ie(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!regExpTest(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===NODE_TYPE.text&&(n=e.textContent,arrayForEach([O,T,R],e=>{n=stringReplace(n,e," ")}),e.textContent!==n&&(arrayPush(t.removed,{element:e.cloneNode()}),e.textContent=n)),ze(C.afterSanitizeElements,e,null),!1):(Ie(e),!0)},Be=function(e,t,r){if(re&&("id"===t||"name"===t)&&(r in n||r in Oe))return!1;if(G&&!U[t]&&regExpTest(P,t));else if(W&&regExpTest(M,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!z[t]||U[t]){if(!($e(e)&&(B.tagNameCheck instanceof RegExp&&regExpTest(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&regExpTest(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t,e))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&regExpTest(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(pe[t]);else if(regExpTest(D,stringReplace(r,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==stringIndexOf(r,"data:")||!ce[e]){if(q&&!regExpTest(I,stringReplace(r,N,"")));else if(r)return!1}else;return!0},$e=function(e){return"annotation-xml"!==e&&stringMatch(e,L)},Ue=function(e){ze(C.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ve(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=n.length;for(;i--;){const o=n[i],{name:a,namespaceURI:s,value:l}=o,u=Ae(a),c=l;let d="value"===a?c:stringTrim(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,ze(C.uponSanitizeAttribute,e,r),d=r.attrValue,!ie||"id"!==u&&"name"!==u||(Ne(a,e),d="user-content-"+d),X&&regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Ne(a,e);continue}if("attributename"===u&&stringMatch(d,"href")){Ne(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ne(a,e);continue}if(!K&&regExpTest(/\/>/i,d)){Ne(a,e);continue}Y&&arrayForEach([O,T,R],e=>{d=stringReplace(d,e," ")});const p=Ae(e.nodeName);if(Be(p,u,d)){if(x&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(s);else switch(f.getAttributeType(p,u)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}if(d!==c)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Ve(e)?Ie(e):arrayPop(t.removed)}catch(t){Ne(a,e)}}else Ne(a,e)}ze(C.afterSanitizeAttributes,e,null)},He=function e(t){let n=null;const r=De(t);for(ze(C.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ze(C.uponSanitizeShadowNode,n,null),Fe(n),Ue(n),n.content instanceof o&&e(n.content);ze(C.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,l=null,u=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw typeErrorCreate("toString is not a function");if("string"!=typeof(e=e.toString()))throw typeErrorCreate("dirty is not a string, aborting")}if(!t.isSupported)return e;if(J||Re(n),t.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ae(e.nodeName);if(!V[t]||$[t])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)i=Le("\x3c!----\x3e"),a=i.ownerDocument.importNode(e,!0),a.nodeType===NODE_TYPE.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!ee&&!Y&&!Q&&-1===e.indexOf("<"))return x&&ne?x.createHTML(e):e;if(i=Le(e),!i)return ee?null:ne?_:""}i&&Z&&Ie(i.firstChild);const c=De(ae?e:i);for(;l=c.nextNode();)Fe(l),Ue(l),l.content instanceof o&&He(l.content);if(ae)return e;if(ee){if(te)for(u=E.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return(z.shadowroot||z.shadowrootmode)&&(u=A.call(r,u,!0)),u}let d=Q?i.outerHTML:i.innerHTML;return Q&&V["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&regExpTest(DOCTYPE_NAME,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Y&&arrayForEach([O,T,R],e=>{d=stringReplace(d,e," ")}),x&&ne?x.createHTML(d):d},t.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},t.clearConfig=function(){Ce=null,J=!1},t.isValidAttribute=function(e,t,n){Ce||Re({});const r=Ae(e),i=Ae(t);return Be(r,i,n)},t.addHook=function(e,t){"function"==typeof t&&arrayPush(C[e],t)},t.removeHook=function(e,t){if(void 0!==t){const n=arrayLastIndexOf(C[e],t);return-1===n?void 0:arraySplice(C[e],n,1)[0]}return arrayPop(C[e])},t.removeHooks=function(e){C[e]=[]},t.removeAllHooks=function(){C=_createHooksMap()},t}createDOMPurify();const startViewTransitionSafety=(e,t)=>{if(document.startViewTransition&&!t?.disabled)return document.startViewTransition(e);e()};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hasRequiredReact_production_min,hasRequiredReact,react={exports:{}},react_production_min={};function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function b(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var v=g.prototype=new b;v.constructor=g,f(v,m.prototype),v.isPureReactComponent=!0;var y=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function S(t,n,r){var i,o={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)x.call(n,i)&&!w.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:e,type:t,key:a,ref:s,props:o,_owner:_.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var k=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function C(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===o?"."+A(l,0):o,y(a)?(i="",null!=n&&(i=n.replace(k,"$&/")+"/"),C(a,r,i,"",function(e){return e})):null!=a&&(E(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+n)),r.push(a)),1;if(l=0,o=""===o?".":o+":",y(n))for(var u=0;u<n.length;u++){var c=o+A(s=n[u],u);l+=C(s,r,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=C(s=s.value,r,i,c=o+A(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",function(e){return t.call(n,e,i++)}),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},P={transition:null},M={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:P,ReactCurrentOwner:_};function I(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},react_production_min.Component=m,react_production_min.Fragment=n,react_production_min.Profiler=i,react_production_min.PureComponent=g,react_production_min.StrictMode=r,react_production_min.Suspense=l,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,react_production_min.act=I,react_production_min.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=f({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=_.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)x.call(n,u)&&!w.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:e,type:t.type,key:o,ref:a,props:i,_owner:s}},react_production_min.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},react_production_min.createElement=S,react_production_min.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:s,render:e}},react_production_min.isValidElement=E,react_production_min.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},react_production_min.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},react_production_min.unstable_act=I,react_production_min.useCallback=function(e,t){return R.current.useCallback(e,t)},react_production_min.useContext=function(e){return R.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return R.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return R.current.useEffect(e,t)},react_production_min.useId=function(){return R.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return R.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return R.current.useRef(e)},react_production_min.useState=function(e){return R.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return R.current.useTransition()},react_production_min.version="18.3.1",react_production_min}function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var hasRequiredReactJsxRuntime_production_min,hasRequiredJsxRuntime,jsxRuntime={exports:{}},reactJsxRuntime_production_min={};function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var e=requireReact(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return reactJsxRuntime_production_min.Fragment=n,reactJsxRuntime_production_min.jsx=a,reactJsxRuntime_production_min.jsxs=a,reactJsxRuntime_production_min}function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();if(!reactExports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var hasRequiredScheduler_production_min,hasRequiredScheduler,hasRequiredReactDom_production_min,hasRequiredReactDom,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,y(e),!h)if(null!==n(l))h=!0,M(_);else{var t=n(u);null!==t&&I(x,t.startTime-e)}}function _(t,i){h=!1,m&&(m=!1,g(k),k=-1),f=!0;var o=p;try{for(y(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!O());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var b=n(u);null!==b&&I(x,b.startTime-i),c=!1}return c}finally{d=null,p=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,S=!1,E=null,k=-1,A=5,C=-1;function O(){return!(e.unstable_now()-C<A)}function T(){if(null!==E){var t=e.unstable_now();C=t;var n=!0;try{n=E(!0,t)}finally{n?w():(S=!1,E=null)}}else S=!1}if("function"==typeof v)w=function(){v(T)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=T,w=function(){P.postMessage(null)}}else w=function(){b(T,0)};function M(e){E=e,S||(S=!0,w())}function I(t,n){k=b(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,M(_))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(g(k),k=-1):m=!0,I(x,o-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,M(_))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(scheduler_production_min)),scheduler_production_min}function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var e=requireReact(),t=requireScheduler();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(i[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},d={};function p(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){f[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){f[e]=new p(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){f[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){f[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){f[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=f.hasOwnProperty(t)?f[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),P=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var I,N=Object.assign;function L(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var D=!1;function V(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function j(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case y:return"Portal";case w:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Y(e,t){K(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Q(e,t,n){"number"===t&&W(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function Z(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function ne(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ae,se,le=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ae=ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return se(e,t)})}:se);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ce).forEach(function(e){de.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]})});var he=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ge=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,xe=null,_e=null;function we(e){if(e=bi(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=vi(t),ye(e.stateNode,e.type,t))}}function Se(e){xe?_e?_e.push(e):_e=[e]:xe=e}function Ee(){if(xe){var e=xe,t=_e;if(_e=xe=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function ke(e,t){return e(t)}function Ae(){}var Ce=!1;function Oe(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return ke(e,t,n)}finally{Ce=!1,(null!==xe||null!==_e)&&(Ae(),Ee())}}function Te(e,t){var r=e.stateNode;if(null===r)return null;var i=vi(r);if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Re=!1;if(s)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(se){Re=!1}function Me(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,Ne=null,Le=!1,De=null,Ve={onError:function(e){Ie=!0,Ne=e}};function je(e,t,n,r,i,o,a,s,l){Ie=!1,Ne=null,Me.apply(Ve,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if(ze(e)!==e)throw Error(n(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Be(o),e;if(a===i)return Be(o),t;a=a.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var He=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,qe=t.unstable_requestPaint,Ke=t.unstable_now,Ye=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ze=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/ot|0)|0},it=Math.log,ot=Math.LN2;var at=64,st=4194304;function lt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ut(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=lt(s):0!==(o&=a)&&(r=lt(o))}else 0!==(a=n&~i)?r=lt(a):0!==o&&(r=lt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-rt(t)),r|=e[n],t&=~i;return r}function ct(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=at;return!(4194240&(at<<=1))&&(at=64),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var vt,yt,xt,_t,wt,St=!1,Et=[],kt=null,At=null,Ct=null,Ot=new Map,Tt=new Map,Rt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function It(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&yt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Nt(e){var t=mi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void wt(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&yt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Dt(e,t,n){Lt(e)&&n.delete(t)}function Vt(){St=!1,null!==kt&&Lt(kt)&&(kt=null),null!==At&&Lt(At)&&(At=null),null!==Ct&&Lt(Ct)&&(Ct=null),Ot.forEach(Dt),Tt.forEach(Dt)}function jt(e,n){e.blockedOn===n&&(e.blockedOn=null,St||(St=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vt)))}function zt(e){function t(t){return jt(t,e)}if(0<Et.length){jt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&jt(kt,e),null!==At&&jt(At,e),null!==Ct&&jt(Ct,e),Ot.forEach(t),Tt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Nt(n),null===n.blockedOn&&Rt.shift()}var Ft=g.ReactCurrentBatchConfig,Bt=!0;function $t(e,t,n,r){var i=bt,o=Ft.transition;Ft.transition=null;try{bt=1,Ht(e,t,n,r)}finally{bt=i,Ft.transition=o}}function Ut(e,t,n,r){var i=bt,o=Ft.transition;Ft.transition=null;try{bt=4,Ht(e,t,n,r)}finally{bt=i,Ft.transition=o}}function Ht(e,t,n,r){if(Bt){var i=Gt(e,t,n,r);if(null===i)Br(e,t,r,Wt,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return kt=It(kt,e,t,n,r,i),!0;case"dragenter":return At=It(At,e,t,n,r,i),!0;case"mouseover":return Ct=It(Ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ot.set(o,It(Ot.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tt.set(o,It(Tt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&vt(o),null===(o=Gt(e,t,n,r))&&Br(e,t,r,Wt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=mi(e=ve(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wt=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ye()){case Xe:return 1;case Qe:return 4;case Je:case Ze:return 16;case et:return 536870912;default:return 16}default:return 16}}var Kt=null,Yt=null,Xt=null;function Qt(){if(Xt)return Xt;var e,t,n=Yt,r=n.length,i="value"in Kt?Kt.value:Kt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function en(){return!1}function tn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Zt:en,this.isPropagationStopped=en,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var nn,rn,on,an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=tn(an),ln=N({},an,{view:0,detail:0}),un=tn(ln),cn=N({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(nn=e.screenX-on.screenX,rn=e.screenY-on.screenY):rn=nn=0,on=e),nn)},movementY:function(e){return"movementY"in e?e.movementY:rn}}),dn=tn(cn),pn=tn(N({},cn,{dataTransfer:0})),fn=tn(N({},ln,{relatedTarget:0})),hn=tn(N({},an,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=N({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=tn(mn),gn=tn(N({},an,{data:0})),vn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function wn(){return _n}var Sn=N({},ln,{key:function(e){if(e.key){var t=vn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?yn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=tn(Sn),kn=tn(N({},cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=tn(N({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),Cn=tn(N({},an,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=N({},cn,{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}),Tn=tn(On),Rn=[9,13,27,32],Pn=s&&"CompositionEvent"in window,Mn=null;s&&"documentMode"in document&&(Mn=document.documentMode);var In=s&&"TextEvent"in window&&!Mn,Nn=s&&(!Pn||Mn&&8<Mn&&11>=Mn),Ln=String.fromCharCode(32),Dn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Fn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function $n(e,t,n,r){Se(r),0<(t=Ur(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Hn=null;function Wn(e){Lr(e,0)}function Gn(e){if(H(gi(e)))return e}function qn(e,t){if("change"===e)return t}var Kn=!1;if(s){var Yn;if(s){var Xn="oninput"in document;if(!Xn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Xn="function"==typeof Qn.oninput}Yn=Xn}else Yn=!1;Kn=Yn&&(!document.documentMode||9<document.documentMode)}function Jn(){Un&&(Un.detachEvent("onpropertychange",Zn),Hn=Un=null)}function Zn(e){if("value"===e.propertyName&&Gn(Hn)){var t=[];$n(t,Hn,e,ve(e)),Oe(Wn,t)}}function er(e,t,n){"focusin"===e?(Jn(),Hn=n,(Un=t).attachEvent("onpropertychange",Zn)):"focusout"===e&&Jn()}function tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Hn)}function nr(e,t){if("click"===e)return Gn(t)}function rr(e,t){if("input"===e||"change"===e)return Gn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!ir(e[i],t[i]))return!1}return!0}function ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var n,r=ar(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ar(r)}}function lr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ur(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=ur(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lr(n.ownerDocument.documentElement,n)){if(null!==r&&cr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=sr(n,o);var a=sr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,fr=null,hr=null,mr=null,br=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==fr||fr!==W(r)||("selectionStart"in(r=fr)&&cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Ur(hr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionend:vr("Transition","TransitionEnd")},xr={},_r={};function wr(e){if(xr[e])return xr[e];if(!yr[e])return e;var t,n=yr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return xr[e]=n[t];return e}s&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);var Sr=wr("animationend"),Er=wr("animationiteration"),kr=wr("animationstart"),Ar=wr("transitionend"),Cr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Cr.set(e,t),o(t,[e])}for(var Rr=0;Rr<Or.length;Rr++){var Pr=Or[Rr];Tr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Tr(Sr,"onAnimationEnd"),Tr(Er,"onAnimationIteration"),Tr(kr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Ar,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Nr(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,i,o,a,s,l,u){if(je.apply(this,arguments),Ie){if(!Ie)throw Error(n(198));var c=Ne;Ie=!1,Ne=null,Le||(Le=!0,De=c)}}(i,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Nr(i,s,u),o=l}}}if(Le)throw e=De,Le=!1,De=null,e}function Dr(e,t){var n=t[pi];void 0===n&&(n=t[pi]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[jr]){e[jr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Ir.has(t)||Vr(t,!1,e),Vr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,Vr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(qt(t)){case 1:var i=$t;break;case 4:i=Ut;break;default:i=Ht}n=i.bind(null,t,n,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=mi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=o,i=ve(n),a=[];e:{var s=Cr.get(e);if(void 0!==s){var l=sn,u=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":l=En;break;case"focusin":u="focus",l=fn;break;case"focusout":u="blur",l=fn;break;case"beforeblur":case"afterblur":l=fn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Sr:case Er:case kr:l=hn;break;case Ar:l=Cn;break;case"scroll":l=un;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Te(h,p))&&c.push($r(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ge||!(u=n.relatedTarget||n.fromElement)||!mi(u)&&!u[di])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?mi(u):null)&&(u!==(d=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=dn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:gi(l),f=null==u?s:gi(u),(s=new c(m,h+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,mi(i)===r&&((c=new c(p,h+"enter",u,n,i)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=Hr(f))h++;for(f=0,m=p;m;m=Hr(m))f++;for(;0<h-f;)c=Hr(c),h--;for(;0<f-h;)p=Hr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Hr(c),p=Hr(p)}c=null}else c=null;null!==l&&Wr(a,s,l,c,!1),null!==u&&null!==d&&Wr(a,d,u,c,!0)}if("select"===(l=(s=r?gi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=qn;else if(Bn(s))if(Kn)b=rr;else{b=tr;var g=er}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=nr);switch(b&&(b=b(e,r))?$n(a,b,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&Q(s,"number",s.value)),g=r?gi(r):window,e){case"focusin":(Bn(g)||"true"===g.contentEditable)&&(fr=g,hr=r,mr=null);break;case"focusout":mr=hr=fr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,gr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,i)}var v;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zn?Vn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Nn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(v=Qt()):(Yt="value"in(Kt=i)?Kt.value:Kt.textContent,zn=!0)),0<(g=Ur(r,y)).length&&(y=new gn(y,e,null,n,i),a.push({event:y,listeners:g}),v?y.data=v:null!==(v=jn(n))&&(y.data=v))),(v=In?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Dn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Dn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Pn&&Vn(e,t)?(e=Qt(),Xt=Yt=Kt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(i=new gn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Lr(a,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Te(e,n))&&r.unshift($r(e,o,i)),null!=(o=Te(e,t))&&r.push($r(e,o,i))),e=e.return}return r}function Hr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Te(n,o))&&a.unshift($r(n,l,s)):i||null!=(l=Te(n,o))&&a.push($r(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Kr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(qr,"")}function Yr(e,t,r){if(t=Kr(t),Kr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Qr=null,Jr=null;function Zr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ei="function"==typeof setTimeout?setTimeout:void 0,ti="function"==typeof clearTimeout?clearTimeout:void 0,ni="function"==typeof Promise?Promise:void 0,ri="function"==typeof queueMicrotask?queueMicrotask:void 0!==ni?function(e){return ni.resolve(null).then(e).catch(ii)}:ei;function ii(e){setTimeout(function(){throw e})}function oi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function ai(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function si(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var li=Math.random().toString(36).slice(2),ui="__reactFiber$"+li,ci="__reactProps$"+li,di="__reactContainer$"+li,pi="__reactEvents$"+li,fi="__reactListeners$"+li,hi="__reactHandles$"+li;function mi(e){var t=e[ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[di]||n[ui]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=si(e);null!==e;){if(n=e[ui])return n;e=si(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[ui]||e[di])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function gi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function vi(e){return e[ci]||null}var yi=[],xi=-1;function _i(e){return{current:e}}function wi(e){0>xi||(e.current=yi[xi],yi[xi]=null,xi--)}function Si(e,t){xi++,yi[xi]=e.current,e.current=t}var Ei={},ki=_i(Ei),Ai=_i(!1),Ci=Ei;function Oi(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ti(e){return null!=(e=e.childContextTypes)}function Ri(){wi(Ai),wi(ki)}function Pi(e,t,r){if(ki.current!==Ei)throw Error(n(168));Si(ki,t),Si(Ai,r)}function Mi(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,F(e)||"Unknown",o));return N({},r,i)}function Ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ci=ki.current,Si(ki,e),Si(Ai,Ai.current),!0}function Ni(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=Mi(e,t,Ci),i.__reactInternalMemoizedMergedChildContext=e,wi(Ai),wi(ki),Si(ki,e)):wi(Ai),Si(Ai,r)}var Li=null,Di=!1,Vi=!1;function ji(e){null===Li?Li=[e]:Li.push(e)}function zi(){if(!Vi&&null!==Li){Vi=!0;var e=0,t=bt;try{var n=Li;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,Di=!1}catch(t){throw null!==Li&&(Li=Li.slice(e+1)),He(Xe,zi),t}finally{bt=t,Vi=!1}}return null}var Fi=[],Bi=0,$i=null,Ui=0,Hi=[],Wi=0,Gi=null,qi=1,Ki="";function Yi(e,t){Fi[Bi++]=Ui,Fi[Bi++]=$i,$i=e,Ui=t}function Xi(e,t,n){Hi[Wi++]=qi,Hi[Wi++]=Ki,Hi[Wi++]=Gi,Gi=e;var r=qi;e=Ki;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var o=32-rt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,qi=1<<32-rt(t)+i|n<<i|r,Ki=o+e}else qi=1<<o|n<<i|r,Ki=e}function Qi(e){null!==e.return&&(Yi(e,1),Xi(e,1,0))}function Ji(e){for(;e===$i;)$i=Fi[--Bi],Fi[Bi]=null,Ui=Fi[--Bi],Fi[Bi]=null;for(;e===Gi;)Gi=Hi[--Wi],Hi[Wi]=null,Ki=Hi[--Wi],Hi[Wi]=null,qi=Hi[--Wi],Hi[Wi]=null}var Zi=null,eo=null,to=!1,no=null;function ro(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function io(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Zi=e,eo=ai(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Zi=e,eo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:qi,overflow:Ki}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Zi=e,eo=null,!0);default:return!1}}function oo(e){return!(!(1&e.mode)||128&e.flags)}function ao(e){if(to){var t=eo;if(t){var r=t;if(!io(e,t)){if(oo(e))throw Error(n(418));t=ai(r.nextSibling);var i=Zi;t&&io(e,t)?ro(i,r):(e.flags=-4097&e.flags|2,to=!1,Zi=e)}}else{if(oo(e))throw Error(n(418));e.flags=-4097&e.flags|2,to=!1,Zi=e}}}function so(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zi=e}function lo(e){if(e!==Zi)return!1;if(!to)return so(e),to=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Zr(e.type,e.memoizedProps)),t&&(t=eo)){if(oo(e))throw uo(),Error(n(418));for(;t;)ro(e,t),t=ai(t.nextSibling)}if(so(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){eo=ai(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}eo=null}}else eo=Zi?ai(e.stateNode.nextSibling):null;return!0}function uo(){for(var e=eo;e;)e=ai(e.nextSibling)}function co(){eo=Zi=null,to=!1}function po(e){null===no?no=[e]:no.push(e)}var fo=g.ReactCurrentBatchConfig;function ho(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var i=r.stateNode}if(!i)throw Error(n(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function mo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ru(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===T&&bo(i)===t.type)?((r=o(t,n.props)).ref=ho(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=ho(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=ho(e,null,t),n.return=e,n;case y:return(t=Lu(t,e.mode,n)).return=e,t;case T:return p(e,(0,t._init)(t._payload),n)}if(J(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;mo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case v:return n.key===i?u(e,t,n,r):null;case y:return n.key===i?c(e,t,n,r):null;case T:return f(e,t,(i=n._init)(n._payload),r)}if(J(n)||M(n))return null!==i?null:d(e,t,n,r,null);mo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return h(e,t,n,(0,r._init)(r._payload),i)}if(J(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);mo(t,r)}return null}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===x&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case v:e:{for(var b=d.key,g=c;null!==g;){if(g.key===b){if((b=d.type)===x){if(7===g.tag){r(u,g.sibling),(c=o(g,d.props.children)).return=u,u=c;break e}}else if(g.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===T&&bo(b)===g.type){r(u,g.sibling),(c=o(g,d.props)).ref=ho(u,g,d),c.return=u,u=c;break e}r(u,g);break}t(u,g),g=g.sibling}d.type===x?((c=Mu(d.props.children,u.mode,m,d.key)).return=u,u=c):((m=Pu(d.type,d.key,d.props,null,u.mode,m)).ref=ho(u,c,d),m.return=u,u=m)}return s(u);case y:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=o(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Lu(d,u.mode,m)).return=u,u=c}return s(u);case T:return l(u,c,(g=d._init)(d._payload),m)}if(J(d))return function(n,o,s,l){for(var u=null,c=null,d=o,m=o=0,b=null;null!==d&&m<s.length;m++){d.index>m?(b=d,d=null):b=d.sibling;var g=f(n,d,s[m],l);if(null===g){null===d&&(d=b);break}e&&d&&null===g.alternate&&t(n,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=b}if(m===s.length)return r(n,d),to&&Yi(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return to&&Yi(n,m),u}for(d=i(n,d);m<s.length;m++)null!==(b=h(d,n,m,s[m],l))&&(e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),o=a(b,o,m),null===c?u=b:c.sibling=b,c=b);return e&&d.forEach(function(e){return t(n,e)}),to&&Yi(n,m),u}(u,c,d,m);if(M(d))return function(o,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,b=s=0,g=null,v=l.next();null!==m&&!v.done;b++,v=l.next()){m.index>b?(g=m,m=null):g=m.sibling;var y=f(o,m,v.value,u);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,b),null===d?c=y:d.sibling=y,d=y,m=g}if(v.done)return r(o,m),to&&Yi(o,b),c;if(null===m){for(;!v.done;b++,v=l.next())null!==(v=p(o,v.value,u))&&(s=a(v,s,b),null===d?c=v:d.sibling=v,d=v);return to&&Yi(o,b),c}for(m=i(o,m);!v.done;b++,v=l.next())null!==(v=h(m,o,b,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?b:v.key),s=a(v,s,b),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(o,e)}),to&&Yi(o,b),c}(u,c,d,m);mo(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=o(c,d)).return=u,u=c):(r(u,c),(c=Nu(d,u.mode,m)).return=u,u=c),s(u)):r(u,c)}}var vo=go(!0),yo=go(!1),xo=_i(null),_o=null,wo=null,So=null;function Eo(){So=wo=_o=null}function ko(e){var t=xo.current;wi(xo),e._currentValue=t}function Ao(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){_o=e,So=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===_o)throw Error(n(308));wo=e,_o.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var To=null;function Ro(e){null===To?To=[e]:To.push(e)}function Po(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mo(e,r)}function Mo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Io=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&kl){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mo(e,n)}return null===(i=r.interleaved)?(t.next=t,Ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mo(e,n)}function jo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function zo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fo(e,t,n,r){var i=e.updateQueue;Io=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=N({},d,p);break e;case 2:Io=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Il|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=r,"function"!=typeof o)throw Error(n(191,o));o.call(i)}}}var $o={},Uo=_i($o),Ho=_i($o),Wo=_i($o);function Go(e){if(e===$o)throw Error(n(174));return e}function qo(e,t){switch(Si(Wo,t),Si(Ho,e),Si(Uo,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:oe(null,"");break;default:t=oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Uo),Si(Uo,t)}function Ko(){wi(Uo),wi(Ho),wi(Wo)}function Yo(e){Go(Wo.current);var t=Go(Uo.current),n=oe(t,e.type);t!==n&&(Si(Ho,e),Si(Uo,n))}function Xo(e){Ho.current===e&&(wi(Uo),wi(Ho))}var Qo=_i(0);function Jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zo=[];function ea(){for(var e=0;e<Zo.length;e++)Zo[e]._workInProgressVersionPrimary=null;Zo.length=0}var ta=g.ReactCurrentDispatcher,na=g.ReactCurrentBatchConfig,ra=0,ia=null,oa=null,aa=null,sa=!1,la=!1,ua=0,ca=0;function da(){throw Error(n(321))}function pa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function fa(e,t,r,i,o,a){if(ra=a,ia=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ta.current=null===e||null===e.memoizedState?Xa:Qa,e=r(i,o),la){a=0;do{if(la=!1,ua=0,25<=a)throw Error(n(301));a+=1,aa=oa=null,t.updateQueue=null,ta.current=Ja,e=r(i,o)}while(la)}if(ta.current=Ya,t=null!==oa&&null!==oa.next,ra=0,aa=oa=ia=null,sa=!1,t)throw Error(n(300));return e}function ha(){var e=0!==ua;return ua=0,e}function ma(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aa?ia.memoizedState=aa=e:aa=aa.next=e,aa}function ba(){if(null===oa){var e=ia.alternate;e=null!==e?e.memoizedState:null}else e=oa.next;var t=null===aa?ia.memoizedState:aa.next;if(null!==t)aa=t,oa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(oa=e).memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},null===aa?ia.memoizedState=aa=e:aa=aa.next=e}return aa}function ga(e,t){return"function"==typeof t?t(e):t}function va(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=oa,o=i.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,i=i.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((ra&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=p,s=i):u=u.next=p,ia.lanes|=d,Il|=d}c=c.next}while(null!==c&&c!==a);null===u?s=i:u.next=l,ir(i,t.memoizedState)||(bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,r.lastRenderedState=i}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,ia.lanes|=a,Il|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ya(e){var t=ba(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);ir(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function xa(){}function _a(e,t){var r=ia,i=ba(),o=t(),a=!ir(i.memoizedState,o);if(a&&(i.memoizedState=o,bs=!0),i=i.queue,Ia(Ea.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==aa&&1&aa.memoizedState.tag){if(r.flags|=2048,Oa(9,Sa.bind(null,r,i,o,t),void 0,null),null===Al)throw Error(n(349));30&ra||wa(r,t,o)}return o}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Sa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Aa(e)}function Ea(e,t,n){return n(function(){ka(t)&&Aa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function Aa(e){var t=Mo(e,1);null!==t&&Zl(t,e,1,-1)}function Ca(e){var t=ma();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t.queue=e,e=e.dispatch=Wa.bind(null,ia,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ta(){return ba().memoizedState}function Ra(e,t,n,r){var i=ma();ia.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==oa){var a=oa.memoizedState;if(o=a.destroy,null!==r&&pa(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}ia.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Ma(e,t){return Ra(8390656,8,e,t)}function Ia(e,t){return Pa(2048,8,e,t)}function Na(e,t){return Pa(4,2,e,t)}function La(e,t){return Pa(4,4,e,t)}function Da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Va(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4,4,Da.bind(null,t,e),n)}function ja(){}function za(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return 21&ra?(ir(n,t)||(n=pt(),ia.lanes|=n,Il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function $a(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=na.transition;na.transition={};try{e(!1),t()}finally{bt=n,na.transition=r}}function Ua(){return ba().memoizedState}function Ha(e,t,n){var r=Jl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e))qa(t,n);else if(null!==(n=Po(e,t,n,r))){Zl(n,e,r,Ql()),Ka(n,t,r)}}function Wa(e,t,n){var r=Jl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))qa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,ir(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ro(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Po(e,t,i,r))&&(Zl(n,e,r,i=Ql()),Ka(n,t,r))}}function Ga(e){var t=e.alternate;return e===ia||null!==t&&t===ia}function qa(e,t){la=sa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ka(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var Ya={readContext:Oo,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useInsertionEffect:da,useLayoutEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useMutableSource:da,useSyncExternalStore:da,useId:da,unstable_isNewReconciler:!1},Xa={readContext:Oo,useCallback:function(e,t){return ma().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=ma();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ma();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ha.bind(null,ia,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ma().memoizedState=e},useState:Ca,useDebugValue:ja,useDeferredValue:function(e){return ma().memoizedState=e},useTransition:function(){var e=Ca(!1),t=e[0];return e=$a.bind(null,e[1]),ma().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=ia,o=ma();if(to){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Al)throw Error(n(349));30&ra||wa(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Ma(Ea.bind(null,i,a,e),[e]),i.flags|=2048,Oa(9,Sa.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=ma(),t=Al.identifierPrefix;if(to){var n=Ki;t=":"+t+"R"+(n=(qi&~(1<<32-rt(qi)-1)).toString(32)+n),0<(n=ua++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ca++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Qa={readContext:Oo,useCallback:za,useContext:Oo,useEffect:Ia,useImperativeHandle:Va,useInsertionEffect:Na,useLayoutEffect:La,useMemo:Fa,useReducer:va,useRef:Ta,useState:function(){return va(ga)},useDebugValue:ja,useDeferredValue:function(e){return Ba(ba(),oa.memoizedState,e)},useTransition:function(){return[va(ga)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1},Ja={readContext:Oo,useCallback:za,useContext:Oo,useEffect:Ia,useImperativeHandle:Va,useInsertionEffect:Na,useLayoutEffect:La,useMemo:Fa,useReducer:ya,useRef:Ta,useState:function(){return ya(ga)},useDebugValue:ja,useDeferredValue:function(e){var t=ba();return null===oa?t.memoizedState=e:Ba(t,oa.memoizedState,e)},useTransition:function(){return[ya(ga)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1};function Za(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function es(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ts={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ql(),i=Jl(e),o=Do(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Vo(e,o,i))&&(Zl(t,e,i,r),jo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ql(),i=Jl(e),o=Do(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Vo(e,o,i))&&(Zl(t,e,i,r),jo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ql(),r=Jl(e),i=Do(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Vo(e,i,r))&&(Zl(t,e,r,n),jo(t,e,r))}};function ns(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(i,o))}function rs(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"==typeof o&&null!==o?o=Oo(o):(i=Ti(t)?Ci:ki.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):Ei),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ts,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function is(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ts.enqueueReplaceState(t,t.state,null)}function os(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},No(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Oo(o):(o=Ti(t)?Ci:ki.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(es(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ts.enqueueReplaceState(i,i.state,null),Fo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function as(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ss(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var us="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bl||(Bl=!0,$l=r),ls(0,t)},n}function ds(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ls(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){ls(0,t),"function"!=typeof r&&(null===Ul?Ul=new Set([this]):Ul.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ps(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new us;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=wu.bind(null,e,t,n),t.then(e,e))}function fs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hs(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Vo(n,t,1))),n.lanes|=1),e)}var ms=g.ReactCurrentOwner,bs=!1;function gs(e,t,n,r){t.child=null===e?yo(t,null,n,r):vo(t,e.child,n,r)}function vs(e,t,n,r,i){n=n.render;var o=t.ref;return Co(t,i),r=fa(e,t,n,r,o,i),n=ha(),null===e||bs?(to&&n&&Qi(t),t.flags|=1,gs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function ys(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Tu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:or)(a,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=Ru(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(or(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);131072&e.flags&&(bs=!0)}}return Ss(e,t,n,r,i)}function _s(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Rl,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Rl,Tl),Tl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Rl,Tl),Tl|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Rl,Tl),Tl|=r;return gs(e,t,i,n),t.child}function ws(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=Ti(n)?Ci:ki.current;return o=Oi(t,o),Co(t,i),n=fa(e,t,n,r,o,i),r=ha(),null===e||bs?(to&&r&&Qi(t),t.flags|=1,gs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Es(e,t,n,r,i){if(Ti(n)){var o=!0;Ii(t)}else o=!1;if(Co(t,i),null===t.stateNode)Fs(e,t),rs(t,n,r),os(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Oo(u):u=Oi(t,u=Ti(n)?Ci:ki.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&is(t,a,r,u),Io=!1;var p=t.memoizedState;a.state=p,Fo(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Ai.current||Io?("function"==typeof c&&(es(t,n,c,r),l=t.memoizedState),(s=Io||ns(t,n,s,r,p,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Za(t.type,s),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Oo(l):l=Oi(t,l=Ti(n)?Ci:ki.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&is(t,a,r,l),Io=!1,p=t.memoizedState,a.state=p,Fo(t,r,a,i);var h=t.memoizedState;s!==d||p!==h||Ai.current||Io?("function"==typeof f&&(es(t,n,f,r),h=t.memoizedState),(u=Io||ns(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ks(e,t,n,r,o,i)}function ks(e,t,n,r,i,o){ws(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Ni(t,n,!1),Bs(e,t,o);r=t.stateNode,ms.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=vo(t,e.child,null,o),t.child=vo(t,null,s,o)):gs(e,t,s,o),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),qo(e,t.containerInfo)}function Cs(e,t,n,r,i){return co(),po(i),t.flags|=256,gs(e,t,n,r),t.child}var Os,Ts,Rs,Ps,Ms={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ns(e,t,r){var i,o=t.pendingProps,a=Qo.current,s=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(Qo,1&a),null===e)return ao(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Iu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Mu(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(r),t.memoizedState=Ms,e):Ls(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Ds(e,t,s,i=ss(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=Iu({mode:"visible",children:i.children},o,0,null),(a=Mu(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,1&t.mode&&vo(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=Ms,a);if(!(1&t.mode))return Ds(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var l=i.dgst;return i=l,Ds(e,t,s,i=ss(a=Error(n(419)),i,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(i=Al)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Mo(e,o),Zl(i,e,o,-1))}return pu(),Ds(e,t,s,i=ss(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Eu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,eo=ai(o.nextSibling),Zi=t,to=!0,no=null,null!==e&&(Hi[Wi++]=qi,Hi[Wi++]=Ki,Hi[Wi++]=Gi,qi=e.id,Ki=e.overflow,Gi=t),t=Ls(t,i.children),t.flags|=4096,t)}(e,t,l,o,i,a,r);if(s){s=o.fallback,l=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Ru(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==i?s=Ru(i,s):(s=Mu(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=Ru(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ls(e,t){return(t=Iu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ds(e,t,n,r){return null!==r&&po(r),vo(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ao(e.return,t,n)}function js(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(gs(e,t,r.children,n),2&(r=Qo.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,n,t);else if(19===e.tag)Vs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(Qo,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Jo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),js(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Jo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}js(t,!0,n,null,o);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Fs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Ru(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ru(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!to)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Us(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hs(e,t,r){var o=t.pendingProps;switch(Ji(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Us(t),null;case 1:case 17:return Ti(t.type)&&Ri(),Us(t),null;case 3:return o=t.stateNode,Ko(),wi(Ai),wi(ki),ea(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(lo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==no&&(ru(no),no=null))),Ts(e,t),Us(t),null;case 5:Xo(t);var a=Go(Wo.current);if(r=t.type,null!==e&&null!=t.stateNode)Rs(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Us(t),null}if(e=Go(Uo.current),lo(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[ui]=t,o[ci]=s,e=!!(1&t.mode),r){case"dialog":Dr("cancel",o),Dr("close",o);break;case"iframe":case"object":case"embed":Dr("load",o);break;case"video":case"audio":for(a=0;a<Mr.length;a++)Dr(Mr[a],o);break;case"source":Dr("error",o);break;case"img":case"image":case"link":Dr("error",o),Dr("load",o);break;case"details":Dr("toggle",o);break;case"input":q(o,s),Dr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Dr("invalid",o);break;case"textarea":te(o,s),Dr("invalid",o)}for(var l in me(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Yr(o.textContent,u,e),a=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Yr(o.textContent,u,e),a=["children",""+u]):i.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Dr("scroll",o)}switch(r){case"input":U(o),X(o,s,!0);break;case"textarea":U(o),re(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=Xr)}o=a,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[ui]=t,e[ci]=o,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,o),r){case"dialog":Dr("cancel",e),Dr("close",e),a=o;break;case"iframe":case"object":case"embed":Dr("load",e),a=o;break;case"video":case"audio":for(a=0;a<Mr.length;a++)Dr(Mr[a],e);a=o;break;case"source":Dr("error",e),a=o;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),a=o;break;case"details":Dr("toggle",e),a=o;break;case"input":q(e,o),a=G(e,o),Dr("invalid",e);break;case"option":default:a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=N({},o,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,o),a=ee(e,o),Dr("invalid",e)}for(s in me(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?fe(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ue(e,c):"number"==typeof c&&ue(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Dr("scroll",e):null!=c&&b(e,s,c,l))}switch(r){case"input":U(e),X(e,o,!1);break;case"textarea":U(e),re(e);break;case"option":null!=o.value&&e.setAttribute("value",""+B(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?Z(e,!!o.multiple,s,!1):null!=o.defaultValue&&Z(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Us(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=Go(Wo.current),Go(Uo.current),lo(t)){if(o=t.stateNode,r=t.memoizedProps,o[ui]=t,(s=o.nodeValue!==r)&&null!==(e=Zi))switch(e.tag){case 3:Yr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Yr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[ui]=t,t.stateNode=o}return Us(t),null;case 13:if(wi(Qo),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(to&&null!==eo&&1&t.mode&&!(128&t.flags))uo(),co(),t.flags|=98560,s=!1;else if(s=lo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ui]=t}else co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Us(t),s=!1}else null!==no&&(ru(no),no=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Qo.current?0===Pl&&(Pl=3):pu())),null!==t.updateQueue&&(t.flags|=4),Us(t),null);case 4:return Ko(),Ts(e,t),null===e&&zr(t.stateNode.containerInfo),Us(t),null;case 10:return ko(t.type._context),Us(t),null;case 19:if(wi(Qo),null===(s=t.memoizedState))return Us(t),null;if(o=!!(128&t.flags),null===(l=s.rendering))if(o)$s(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Jo(e))){for(t.flags|=128,$s(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Si(Qo,1&Qo.current|2),t.child}e=e.sibling}null!==s.tail&&Ke()>zl&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Jo(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!to)return Us(t),null}else 2*Ke()-s.renderingStartTime>zl&&1073741824!==r&&(t.flags|=128,o=!0,$s(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ke(),t.sibling=null,r=Qo.current,Si(Qo,o?1&r|2:1&r),t):(Us(t),null);case 22:case 23:return lu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&Tl)&&(Us(t),6&t.subtreeFlags&&(t.flags|=8192)):Us(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ws(e,t){switch(Ji(t),t.tag){case 1:return Ti(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ko(),wi(Ai),wi(ki),ea(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(wi(Qo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(Qo),null;case 4:return Ko(),null;case 10:return ko(t.type._context),null;case 22:case 23:return lu(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(){},Rs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Go(Uo.current);var a,s=null;switch(n){case"input":o=G(e,o),r=G(e,r),s=[];break;case"select":o=N({},o,{value:void 0}),r=N({},r,{value:void 0}),s=[];break;case"textarea":o=ee(e,o),r=ee(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in me(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,qs=!1,Ks="function"==typeof WeakSet?WeakSet:Set,Ys=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_u(e,t,n)}else n.current=null}function Qs(e,t,n){try{n()}catch(n){_u(e,t,n)}}var Js=!1;function Zs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Qs(t,n,o)}i=i.next}while(i!==r)}}function el(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function nl(e){var t=e.alternate;null!==t&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ui],delete t[ci],delete t[pi],delete t[fi],delete t[hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rl(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ol(e,t,n),e=e.sibling;null!==e;)ol(e,t,n),e=e.sibling}function al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}var sl=null,ll=!1;function ul(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch(e){}switch(n.tag){case 5:qs||Xs(n,t);case 6:var r=sl,i=ll;sl=null,ul(e,t,n),ll=i,null!==(sl=r)&&(ll?(e=sl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):sl.removeChild(n.stateNode));break;case 18:null!==sl&&(ll?(e=sl,n=n.stateNode,8===e.nodeType?oi(e.parentNode,n):1===e.nodeType&&oi(e,n),zt(e)):oi(sl,n.stateNode));break;case 4:r=sl,i=ll,sl=n.stateNode.containerInfo,ll=!0,ul(e,t,n),sl=r,ll=i;break;case 0:case 11:case 14:case 15:if(!qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Qs(n,t,a),i=i.next}while(i!==r)}ul(e,t,n);break;case 1:if(!qs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_u(n,t,e)}ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:1&n.mode?(qs=(r=qs)||null!==n.memoizedState,ul(e,t,n),qs=r):ul(e,t,n);break;default:ul(e,t,n)}}function dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ks),t.forEach(function(t){var r=ku.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:sl=l.stateNode,ll=!1;break e;case 3:case 4:sl=l.stateNode.containerInfo,ll=!0;break e}l=l.return}if(null===sl)throw Error(n(160));cl(a,s,o),sl=null,ll=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){_u(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fl(t,e),t=t.sibling}function fl(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),hl(e),4&i){try{Zs(3,e,e.return),el(3,e)}catch(t){_u(e,e.return,t)}try{Zs(5,e,e.return)}catch(t){_u(e,e.return,t)}}break;case 1:pl(t,e),hl(e),512&i&&null!==r&&Xs(r,r.return);break;case 5:if(pl(t,e),hl(e),512&i&&null!==r&&Xs(r,r.return),32&e.flags){var o=e.stateNode;try{ue(o,"")}catch(t){_u(e,e.return,t)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&K(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],p=u[s+1];"style"===d?fe(o,p):"dangerouslySetInnerHTML"===d?le(o,p):"children"===d?ue(o,p):b(o,d,p,c)}switch(l){case"input":Y(o,a);break;case"textarea":ne(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?Z(o,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?Z(o,!!a.multiple,a.defaultValue,!0):Z(o,!!a.multiple,a.multiple?[]:"",!1))}o[ci]=a}catch(t){_u(e,e.return,t)}}break;case 6:if(pl(t,e),hl(e),4&i){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){_u(e,e.return,t)}}break;case 3:if(pl(t,e),hl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){_u(e,e.return,t)}break;case 4:default:pl(t,e),hl(e);break;case 13:pl(t,e),hl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(jl=Ke())),4&i&&dl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(qs=(c=qs)||d,pl(t,e),qs=c):pl(t,e),hl(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Ys=e,d=e.child;null!==d;){for(p=Ys=d;null!==Ys;){switch(h=(f=Ys).child,f.tag){case 0:case 11:case 14:case 15:Zs(4,f,f.return);break;case 1:Xs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){i=f,r=f.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){_u(i,r,e)}}break;case 5:Xs(f,f.return);break;case 22:if(null!==f.memoizedState){vl(p);continue}}null!==h?(h.return=f,Ys=h):vl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=pe("display",s))}catch(t){_u(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){_u(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:pl(t,e),hl(e),4&i&&dl(e);case 21:}}function hl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(rl(r)){var i=r;break e}r=r.return}throw Error(n(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(ue(o,""),i.flags&=-33),al(e,il(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;ol(e,il(e),a);break;default:throw Error(n(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ml(e,t,n){Ys=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Ys;){var i=Ys,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Gs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||qs;s=Gs;var u=qs;if(Gs=a,(qs=l)&&!u)for(Ys=i;null!==Ys;)l=(a=Ys).child,22===a.tag&&null!==a.memoizedState?yl(i):null!==l?(l.return=a,Ys=l):yl(i);for(;null!==o;)Ys=o,bl(o),o=o.sibling;Ys=i,Gs=s,qs=u}gl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Ys=o):gl(e)}}function gl(e){for(;null!==Ys;){var t=Ys;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:qs||el(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!qs)if(null===r)i.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Za(t.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bo(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&zt(p)}}}break;default:throw Error(n(163))}qs||512&t.flags&&tl(t)}catch(e){_u(t,t.return,e)}}if(t===e){Ys=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ys=r;break}Ys=t.return}}function vl(e){for(;null!==Ys;){var t=Ys;if(t===e){Ys=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ys=n;break}Ys=t.return}}function yl(e){for(;null!==Ys;){var t=Ys;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{el(4,t)}catch(e){_u(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){_u(t,i,e)}}var o=t.return;try{tl(t)}catch(e){_u(t,o,e)}break;case 5:var a=t.return;try{tl(t)}catch(e){_u(t,a,e)}}}catch(e){_u(t,t.return,e)}if(t===e){Ys=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Ys=s;break}Ys=t.return}}var xl,_l=Math.ceil,wl=g.ReactCurrentDispatcher,Sl=g.ReactCurrentOwner,El=g.ReactCurrentBatchConfig,kl=0,Al=null,Cl=null,Ol=0,Tl=0,Rl=_i(0),Pl=0,Ml=null,Il=0,Nl=0,Ll=0,Dl=null,Vl=null,jl=0,zl=1/0,Fl=null,Bl=!1,$l=null,Ul=null,Hl=!1,Wl=null,Gl=0,ql=0,Kl=null,Yl=-1,Xl=0;function Ql(){return 6&kl?Ke():-1!==Yl?Yl:Yl=Ke()}function Jl(e){return 1&e.mode?2&kl&&0!==Ol?Ol&-Ol:null!==fo.transition?(0===Xl&&(Xl=pt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:qt(e.type):1}function Zl(e,t,r,i){if(50<ql)throw ql=0,Kl=null,Error(n(185));ht(e,r,i),2&kl&&e===Al||(e===Al&&(!(2&kl)&&(Nl|=r),4===Pl&&iu(e,Ol)),eu(e,i),1===r&&0===kl&&!(1&t.mode)&&(zl=Ke()+500,Di&&zi()))}function eu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-rt(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ct(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ut(e,e===Al?Ol:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Di=!0,ji(e)}(ou.bind(null,e)):ji(ou.bind(null,e)),ri(function(){!(6&kl)&&zi()}),n=null;else{switch(gt(r)){case 1:n=Xe;break;case 4:n=Qe;break;case 16:default:n=Je;break;case 536870912:n=et}n=Au(n,tu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tu(e,t){if(Yl=-1,Xl=0,6&kl)throw Error(n(327));var r=e.callbackNode;if(yu()&&e.callbackNode!==r)return null;var i=ut(e,e===Al?Ol:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=fu(e,i);else{t=i;var o=kl;kl|=2;var a=du();for(Al===e&&Ol===t||(Fl=null,zl=Ke()+500,uu(e,t));;)try{mu();break}catch(t){cu(e,t)}Eo(),wl.current=a,kl=o,null!==Cl?t=0:(Al=null,Ol=0,t=Pl)}if(0!==t){if(2===t&&(0!==(o=dt(e))&&(i=o,t=nu(e,o))),1===t)throw r=Ml,uu(e,0),iu(e,i),eu(e,Ke()),r;if(6===t)iu(e,i);else{if(o=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ir(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=fu(e,i),2===t&&(a=dt(e),0!==a&&(i=a,t=nu(e,a))),1!==t)))throw r=Ml,uu(e,0),iu(e,i),eu(e,Ke()),r;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(n(345));case 2:case 5:vu(e,Vl,Fl);break;case 3:if(iu(e,i),(130023424&i)===i&&10<(t=jl+500-Ke())){if(0!==ut(e,0))break;if(((o=e.suspendedLanes)&i)!==i){Ql(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ei(vu.bind(null,e,Vl,Fl),t);break}vu(e,Vl,Fl);break;case 4:if(iu(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-rt(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Ke()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*_l(i/1960))-i)){e.timeoutHandle=ei(vu.bind(null,e,Vl,Fl),i);break}vu(e,Vl,Fl);break;default:throw Error(n(329))}}}return eu(e,Ke()),e.callbackNode===r?tu.bind(null,e):null}function nu(e,t){var n=Dl;return e.current.memoizedState.isDehydrated&&(uu(e,t).flags|=256),2!==(e=fu(e,t))&&(t=Vl,Vl=n,null!==t&&ru(t)),e}function ru(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function iu(e,t){for(t&=~Ll,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function ou(e){if(6&kl)throw Error(n(327));yu();var t=ut(e,0);if(!(1&t))return eu(e,Ke()),null;var r=fu(e,t);if(0!==e.tag&&2===r){var i=dt(e);0!==i&&(t=i,r=nu(e,i))}if(1===r)throw r=Ml,uu(e,0),iu(e,t),eu(e,Ke()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vu(e,Vl,Fl),eu(e,Ke()),null}function au(e,t){var n=kl;kl|=1;try{return e(t)}finally{0===(kl=n)&&(zl=Ke()+500,Di&&zi())}}function su(e){null!==Wl&&0===Wl.tag&&!(6&kl)&&yu();var t=kl;kl|=1;var n=El.transition,r=bt;try{if(El.transition=null,bt=1,e)return e()}finally{bt=r,El.transition=n,!(6&(kl=t))&&zi()}}function lu(){Tl=Rl.current,wi(Rl)}function uu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ti(n)),null!==Cl)for(n=Cl.return;null!==n;){var r=n;switch(Ji(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ri();break;case 3:Ko(),wi(Ai),wi(ki),ea();break;case 5:Xo(r);break;case 4:Ko();break;case 13:case 19:wi(Qo);break;case 10:ko(r.type._context);break;case 22:case 23:lu()}n=n.return}if(Al=e,Cl=e=Ru(e.current,null),Ol=Tl=t,Pl=0,Ml=null,Ll=Nl=Il=0,Vl=Dl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}To=null}return e}function cu(e,t){for(;;){var r=Cl;try{if(Eo(),ta.current=Ya,sa){for(var i=ia.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}sa=!1}if(ra=0,aa=oa=ia=null,la=!1,ua=0,Sl.current=null,null===r||null===r.return){Pl=1,Ml=t,Cl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=fs(s);if(null!==h){h.flags&=-257,hs(h,s,l,0,t),1&h.mode&&ps(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var b=new Set;b.add(u),t.updateQueue=b}else m.add(u);break e}if(!(1&t)){ps(a,c,t),pu();break e}u=Error(n(426))}else if(to&&1&l.mode){var g=fs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),hs(g,s,l,0,t),po(as(u,l));break e}}a=u=as(u,l),4!==Pl&&(Pl=2),null===Dl?Dl=[a]:Dl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zo(a,cs(0,u,t));break e;case 1:l=u;var v=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Ul&&Ul.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,zo(a,ds(a,l,t));break e}}a=a.return}while(null!==a)}gu(r)}catch(e){t=e,Cl===r&&null!==r&&(Cl=r=r.return);continue}break}}function du(){var e=wl.current;return wl.current=Ya,null===e?Ya:e}function pu(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Al||!(268435455&Il)&&!(268435455&Nl)||iu(Al,Ol)}function fu(e,t){var r=kl;kl|=2;var i=du();for(Al===e&&Ol===t||(Fl=null,uu(e,t));;)try{hu();break}catch(t){cu(e,t)}if(Eo(),kl=r,wl.current=i,null!==Cl)throw Error(n(261));return Al=null,Ol=0,Pl}function hu(){for(;null!==Cl;)bu(Cl)}function mu(){for(;null!==Cl&&!Ge();)bu(Cl)}function bu(e){var t=xl(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?gu(e):Cl=t,Sl.current=null}function gu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ws(n,t)))return n.flags&=32767,void(Cl=n);if(null===e)return Pl=6,void(Cl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Hs(n,t,Tl)))return void(Cl=n);if(null!==(t=t.sibling))return void(Cl=t);Cl=t=e}while(null!==t);0===Pl&&(Pl=5)}function vu(e,t,r){var i=bt,o=El.transition;try{El.transition=null,bt=1,function(e,t,r,i){do{yu()}while(null!==Wl);if(6&kl)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-rt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Al&&(Cl=Al=null,Ol=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Hl||(Hl=!0,Au(Je,function(){return yu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=El.transition,El.transition=null;var s=bt;bt=1;var l=kl;kl|=4,Sl.current=null,function(e,t){if(Qr=Bt,cr(e=ur())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==i&&3!==p.nodeType||(u=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++c===o&&(l=s),f===a&&++d===i&&(u=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jr={focusedElem:e,selectionRange:r},Bt=!1,Ys=t;null!==Ys;)if(e=(t=Ys).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ys=e;else for(;null!==Ys;){t=Ys;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var b=m.memoizedProps,g=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Za(t.type,b),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){_u(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ys=e;break}Ys=t.return}m=Js,Js=!1}(e,r),fl(r,e),dr(Jr),Bt=!!Qr,Jr=Qr=null,e.current=r,ml(r),qe(),kl=l,bt=s,El.transition=a}else e.current=r;if(Hl&&(Hl=!1,Wl=e,Gl=o),a=e.pendingLanes,0===a&&(Ul=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),eu(e,Ke()),null!==t)for(i=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(Bl)throw Bl=!1,e=$l,$l=null,e;!!(1&Gl)&&0!==e.tag&&yu(),a=e.pendingLanes,1&a?e===Kl?ql++:(ql=0,Kl=e):ql=0,zi()}(e,t,r,i)}finally{El.transition=o,bt=i}return null}function yu(){if(null!==Wl){var e=gt(Gl),t=El.transition,r=bt;try{if(El.transition=null,bt=16>e?16:e,null===Wl)var i=!1;else{if(e=Wl,Wl=null,Gl=0,6&kl)throw Error(n(331));var o=kl;for(kl|=4,Ys=e.current;null!==Ys;){var a=Ys,s=a.child;if(16&Ys.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ys=c;null!==Ys;){var d=Ys;switch(d.tag){case 0:case 11:case 15:Zs(8,d,a)}var p=d.child;if(null!==p)p.return=d,Ys=p;else for(;null!==Ys;){var f=(d=Ys).sibling,h=d.return;if(nl(d),d===c){Ys=null;break}if(null!==f){f.return=h,Ys=f;break}Ys=h}}}var m=a.alternate;if(null!==m){var b=m.child;if(null!==b){m.child=null;do{var g=b.sibling;b.sibling=null,b=g}while(null!==b)}}Ys=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Ys=s;else e:for(;null!==Ys;){if(2048&(a=Ys).flags)switch(a.tag){case 0:case 11:case 15:Zs(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Ys=v;break e}Ys=a.return}}var y=e.current;for(Ys=y;null!==Ys;){var x=(s=Ys).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Ys=x;else e:for(s=y;null!==Ys;){if(2048&(l=Ys).flags)try{switch(l.tag){case 0:case 11:case 15:el(9,l)}}catch(e){_u(l,l.return,e)}if(l===s){Ys=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Ys=_;break e}Ys=l.return}}if(kl=o,zi(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch(e){}i=!0}return i}finally{bt=r,El.transition=t}}return!1}function xu(e,t,n){e=Vo(e,t=cs(0,t=as(n,t),1),1),t=Ql(),null!==e&&(ht(e,1,t),eu(e,t))}function _u(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ul||!Ul.has(r))){t=Vo(t,e=ds(t,e=as(n,e),1),1),e=Ql(),null!==t&&(ht(t,1,e),eu(t,e));break}}t=t.return}}function wu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ql(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Ol&n)===n&&(4===Pl||3===Pl&&(130023424&Ol)===Ol&&500>Ke()-jl?uu(e,0):Ll|=n),eu(e,t)}function Su(e,t){0===t&&(1&e.mode?(t=st,!(130023424&(st<<=1))&&(st=4194304)):t=1);var n=Ql();null!==(e=Mo(e,t))&&(ht(e,t,n),eu(e,n))}function Eu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Su(e,n)}function ku(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),Su(e,r)}function Au(e,t){return He(e,t)}function Cu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Cu(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Tu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Mu(r.children,o,a,t);case _:s=8,o|=8;break;case w:return(e=Ou(12,r,t,2|o)).elementType=w,e.lanes=a,e;case A:return(e=Ou(13,r,t,o)).elementType=A,e.lanes=a,e;case C:return(e=Ou(19,r,t,o)).elementType=C,e.lanes=a,e;case R:return Iu(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case k:s=11;break e;case O:s=14;break e;case T:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ou(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Mu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function Iu(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Nu(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Du(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ft(0),this.expirationTimes=ft(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vu(e,t,n,r,i,o,a,s,l){return e=new Du(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ou(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),e}function ju(e){if(!e)return Ei;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ti(r))return Mi(e,r,t)}return t}function zu(e,t,n,r,i,o,a,s,l){return(e=Vu(n,r,!0,e,0,o,0,s,l)).context=ju(null),n=e.current,(o=Do(r=Ql(),i=Jl(n))).callback=null!=t?t:null,Vo(n,o,i),e.current.lanes=i,ht(e,i,r),eu(e,r),e}function Fu(e,t,n,r){var i=t.current,o=Ql(),a=Jl(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=Do(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vo(i,t,a))&&(Zl(e,i,a,o),jo(e,i,a)),a}function Bu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}xl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:As(t),co();break;case 5:Yo(t);break;case 1:Ti(t.type)&&Ii(t);break;case 4:qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(Qo,1&Qo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ns(e,t,n):(Si(Qo,1&Qo.current),null!==(e=Bs(e,t,n))?e.sibling:null);Si(Qo,1&Qo.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return zs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(Qo,Qo.current),r)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return Bs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,to&&1048576&t.flags&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Fs(e,t),e=t.pendingProps;var o=Oi(t,ki.current);Co(t,r),o=fa(null,t,i,e,o,r);var a=ha();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ti(i)?(a=!0,Ii(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,No(t),o.updater=ts,t.stateNode=o,o._reactInternals=t,os(t,i,e,r),t=ks(null,t,i,!0,a,r)):(t.tag=0,to&&a&&Qi(t),gs(null,t,o,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Tu(e)?1:0;if(null!=e){if((e=e.$$typeof)===k)return 11;if(e===O)return 14}return 2}(i),e=Za(i,e),o){case 0:t=Ss(null,t,i,e,r);break e;case 1:t=Es(null,t,i,e,r);break e;case 11:t=vs(null,t,i,e,r);break e;case 14:t=ys(null,t,i,Za(i.type,e),r);break e}throw Error(n(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,Ss(e,t,i,o=t.elementType===i?o:Za(i,o),r);case 1:return i=t.type,o=t.pendingProps,Es(e,t,i,o=t.elementType===i?o:Za(i,o),r);case 3:e:{if(As(t),null===e)throw Error(n(387));i=t.pendingProps,o=(a=t.memoizedState).element,Lo(e,t),Fo(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Cs(e,t,i,r,o=as(Error(n(423)),t));break e}if(i!==o){t=Cs(e,t,i,r,o=as(Error(n(424)),t));break e}for(eo=ai(t.stateNode.containerInfo.firstChild),Zi=t,to=!0,no=null,r=yo(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(co(),i===o){t=Bs(e,t,r);break e}gs(e,t,i,r)}t=t.child}return t;case 5:return Yo(t),null===e&&ao(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,Zr(i,o)?s=null:null!==a&&Zr(i,a)&&(t.flags|=32),ws(e,t),gs(e,t,s,r),t.child;case 6:return null===e&&ao(t),null;case 13:return Ns(e,t,r);case 4:return qo(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=vo(t,null,i,r):gs(e,t,i,r),t.child;case 11:return i=t.type,o=t.pendingProps,vs(e,t,i,o=t.elementType===i?o:Za(i,o),r);case 7:return gs(e,t,t.pendingProps,r),t.child;case 8:case 12:return gs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Si(xo,i._currentValue),i._currentValue=s,null!==a)if(ir(a.value,s)){if(a.children===o.children&&!Ai.current){t=Bs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===a.tag){(u=Do(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ao(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ao(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}gs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Co(t,r),i=i(o=Oo(o)),t.flags|=1,gs(e,t,i,r),t.child;case 14:return o=Za(i=t.type,t.pendingProps),ys(e,t,i,o=Za(i.type,o),r);case 15:return xs(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Za(i,o),Fs(e,t),t.tag=1,Ti(i)?(e=!0,Ii(t)):e=!1,Co(t,r),rs(t,i,o),os(t,i,o,r),ks(null,t,i,!0,e,r);case 19:return zs(e,t,r);case 22:return _s(e,t,r)}throw Error(n(156,t.tag))};var Hu="function"==typeof reportError?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yu(){}function Xu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Bu(a);s.call(e)}}Fu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Bu(a);o.call(e)}}var a=zu(t,r,e,0,null,!1,0,"",Yu);return e._reactRootContainer=a,e[di]=a.current,zr(8===e.nodeType?e.parentNode:e),su(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Bu(l);s.call(e)}}var l=Vu(e,0,!1,null,0,!1,0,"",Yu);return e._reactRootContainer=l,e[di]=l.current,zr(8===e.nodeType?e.parentNode:e),su(function(){Fu(t,l,n,r)}),l}(n,t,e,i,r);return Bu(a)}Gu.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Fu(e,t,null,null)},Gu.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;su(function(){Fu(null,e,null,null)}),t[di]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Nt(e)}},vt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lt(t.pendingLanes);0!==n&&(mt(t,1|n),eu(t,Ke()),!(6&kl)&&(zl=Ke()+500,zi()))}break;case 13:su(function(){var t=Mo(e,1);if(null!==t){var n=Ql();Zl(t,e,1,n)}}),Uu(e,1)}},yt=function(e){if(13===e.tag){var t=Mo(e,134217728);if(null!==t)Zl(t,e,134217728,Ql());Uu(e,134217728)}},xt=function(e){if(13===e.tag){var t=Jl(e),n=Mo(e,t);if(null!==n)Zl(n,e,t,Ql());Uu(e,t)}},_t=function(){return bt},wt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ye=function(e,t,r){switch(t){case"input":if(Y(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=vi(i);if(!o)throw Error(n(90));H(i),Y(i,o)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&Z(e,!!r.multiple,t,!1)}},ke=au,Ae=su;var Qu={usingClientEntryPoint:!1,Events:[bi,gi,vi,Se,Ee,au]},Ju={findFiberByHostInstance:mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Zu={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ec=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ec.isDisabled&&ec.supportsFiber)try{tt=ec.inject(Zu),nt=ec}catch(se){}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qu,reactDom_production_min.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},reactDom_production_min.createRoot=function(e,t){if(!qu(e))throw Error(n(299));var r=!1,i="",o=Hu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vu(e,1,!1,null,0,r,0,i,o),e[di]=t.current,zr(8===e.nodeType?e.parentNode:e),new Wu(t)},reactDom_production_min.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=$e(t))?null:e.stateNode},reactDom_production_min.flushSync=function(e){return su(e)},reactDom_production_min.hydrate=function(e,t,r){if(!Ku(t))throw Error(n(200));return Xu(null,e,t,!0,r)},reactDom_production_min.hydrateRoot=function(e,t,r){if(!qu(e))throw Error(n(405));var i=null!=r&&r.hydratedSources||null,o=!1,a="",s=Hu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=zu(t,null,e,1,null!=r?r:null,o,0,a,s),e[di]=t.current,zr(e),i)for(e=0;e<i.length;e++)o=(o=(r=i[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Gu(t)},reactDom_production_min.render=function(e,t,r){if(!Ku(t))throw Error(n(200));return Xu(null,e,t,!1,r)},reactDom_production_min.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(n(40));return!!e._reactRootContainer&&(su(function(){Xu(null,null,e,!1,function(){e._reactRootContainer=null,e[di]=null})}),!0)},reactDom_production_min.unstable_batchedUpdates=au,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Ku(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xu(e,t,r,!1,i)},reactDom_production_min.version="18.3.1-next-f1338f8080-20240426",reactDom_production_min}function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;return hasRequiredReactDom=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var reactDomExports=requireReactDom();function defaultNoopBatch(e){e()}function observerBatching(e){e||(e=defaultNoopBatch),configure({reactionScheduler:e})}function printDebugValue(e){return getDependencyTree(e)}var hasRequiredUseSyncExternalStoreShim_production,hasRequiredShim,REGISTRY_FINALIZE_AFTER=1e4,REGISTRY_SWEEP_INTERVAL=1e4,TimerBasedFinalizationRegistry=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=REGISTRY_FINALIZE_AFTER),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,REGISTRY_SWEEP_INTERVAL))}}),e}(),UniversalFinalizationRegistry="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:TimerBasedFinalizationRegistry,observerFinalizationRegistry=new UniversalFinalizationRegistry(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),shim={exports:{}},useSyncExternalStoreShim_production={};function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var e=requireReact();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=n({inst:{value:s,getSnapshot:t}}),u=l[0].inst,c=l[1];return i(function(){u.value=s,u.getSnapshot=t,a(u)&&c({inst:u})},[e,s,t]),r(function(){return a(u)&&c({inst:u}),e(function(){a(u)&&c({inst:u})})},[e]),o(s),s};return useSyncExternalStoreShim_production.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,useSyncExternalStoreShim_production}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production()),shim.exports}var _a$2,_b,shimExports=requireShim();function createReaction(e){e.reaction=new Reaction("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)})}function useObserver(e,t){void 0===t&&(t="observed");var n=React.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return observerFinalizationRegistry.unregister(r),r.onStoreChange=e,r.reaction||(createReaction(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i,o,a=n.current;if(a.reaction||(createReaction(a),observerFinalizationRegistry.register(n,a,a)),React.useDebugValue(a.reaction,printDebugValue),shimExports.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track(function(){try{i=e()}catch(e){o=e}}),o)throw o;return i}var hasSymbol="function"==typeof Symbol&&Symbol.for,isFunctionNameConfigurable=null!==(_b=null===(_a$2=Object.getOwnPropertyDescriptor(function(){},"name"))||void 0===_a$2?void 0:_a$2.configurable)&&void 0!==_b&&_b,ReactForwardRefSymbol=hasSymbol?Symbol.for("react.forward_ref"):"function"==typeof reactExports.forwardRef&&reactExports.forwardRef(function(e){return null}).$$typeof,ReactMemoSymbol=hasSymbol?Symbol.for("react.memo"):"function"==typeof reactExports.memo&&reactExports.memo(function(e){return null}).$$typeof;function observer(e,t){if(ReactMemoSymbol&&e.$$typeof===ReactMemoSymbol)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=!1,r=e,i=e.displayName||e.name;if(ReactForwardRefSymbol&&e.$$typeof===ReactForwardRefSymbol&&(n=!0,"function"!=typeof(r=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(e,t){return useObserver(function(){return r(e,t)},i)};return o.displayName=e.displayName,isFunctionNameConfigurable&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes),n&&(o=reactExports.forwardRef(o)),copyStaticProperties(e,o=reactExports.memo(o)),o}var _a$1,hoistBlackList={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function copyStaticProperties(e,t){Object.keys(e).forEach(function(n){hoistBlackList[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}observerBatching(reactDomExports.unstable_batchedUpdates),_a$1=observerFinalizationRegistry.finalizeAllImmediately;const staticCounter=createCounter(e=>e.toString(16)),generateVmId=e=>{if(!e.generateId){const t=staticCounter(),n=createCounter(e=>e.toString().padStart(5,"0"));e.generateId=()=>`${t}_${n().toString().padStart(5,"0")}`}return e.generateId()},mergeVMConfigs=(...e)=>{const t={...viewModelsConfig,startViewTransitions:structuredClone(viewModelsConfig.startViewTransitions),observable:{viewModels:{...viewModelsConfig.observable.viewModels},viewModelStores:{...viewModelsConfig.observable.viewModelStores}}};return e.forEach(e=>{if(!e)return;const{startViewTransitions:n,comparePayload:r,observable:i,generateId:o,...a}=e;if(o&&(t.generateId=o),n){const e="boolean"==typeof n?{mount:n,payloadChange:n,unmount:n}:n;Object.assign(t.startViewTransitions,e)}i?.viewModels&&Object.assign(t.observable.viewModels,i.viewModels||{}),i?.viewModelStores&&Object.assign(t.observable.viewModelStores,i.viewModelStores||{}),null!=r&&(t.comparePayload=r),Object.assign(t,a)}),t},viewModelsConfig=createGlobalConfig({comparePayload:!1,payloadComputed:"struct",payloadObservable:"ref",wrapViewsInObserver:!0,startViewTransitions:{mount:!1,payloadChange:!1,unmount:!1},observable:{viewModels:{useDecorators:!0},viewModelStores:{useDecorators:!0}},generateId:generateVmId,factory:e=>new(0,e.VM)({...e,vmConfig:mergeVMConfigs(e.vmConfig)}),hooks:{storeCreate:createPubSub()}},Symbol.for("VIEW_MODELS_CONFIG")),applyObservable=(e,t,n)=>{if(n.custom)return n.custom(e,t);n.disableWrapping||applyObservable$1(e,t,n.useDecorators)},isViewModelClass=e=>e.prototype.payloadChanged,baseAnnotations=[["_isMounted",observable.ref],["_isUnmounting",observable.ref],["isMounted",computed],["isUnmounting",computed],["parentViewModel",computed],["mount",action.bound],["didMount",action],["unmount",action.bound],["didUnmount",action],["willUnmount",action],["setPayload",action]];class ViewModelBase{constructor(e){this.vmParams=e,this.id=e.id,this.vmConfig=mergeVMConfigs(e.vmConfig),this._payload=e.payload,this.props=e.props??{},this.abortController=new AbortController,this.unmountSignal=this.abortController.signal,"strict"===this.vmConfig.comparePayload?this.isPayloadEqual=comparer.structural:"shallow"===this.vmConfig.comparePayload?this.isPayloadEqual=isShallowEqual:"function"==typeof this.vmConfig.comparePayload&&(this.isPayloadEqual=this.vmConfig.comparePayload);const t=[...baseAnnotations];!1!==this.vmConfig.payloadObservable&&t.push(["_payload",observable[this.vmConfig.payloadObservable??"ref"]]),this.vmConfig.payloadComputed&&("struct"===this.vmConfig.payloadComputed?t.push(["payload",computed.struct]):t.push(["payload",computed({equals:!0===this.vmConfig.payloadComputed?void 0:this.vmConfig.payloadComputed})])),applyObservable(this,t,this.vmConfig.observable.viewModels)}abortController;unmountSignal;id;_isMounted=!1;_isUnmounting=!1;_payload;vmConfig;isPayloadEqual;props;get payload(){return this._payload}get viewModels(){return this.vmParams.viewModels}get isMounted(){return this._isMounted}get isUnmounting(){return this._isUnmounting}willUnmount(){this._isUnmounting=!0}willMount(){}mount(){this.vmConfig.onMount?.(this),startViewTransitionSafety(()=>{runInAction(()=>{this._isMounted=!0})},{disabled:!this.vmConfig.startViewTransitions.mount}),this.didMount()}didMount(){}unmount(){this.vmConfig.onUnmount?.(this),startViewTransitionSafety(()=>{runInAction(()=>{this._isMounted=!1})},{disabled:!this.vmConfig.startViewTransitions.unmount}),this.didUnmount()}didUnmount(){this.abortController.abort(),runInAction(()=>{this._isUnmounting=!1})}payloadChanged(e,t){}get parentViewModel(){return this.getParentViewModel(this.vmParams.parentViewModelId)}setPayload(e){this.isPayloadEqual?.(this._payload,e)||startViewTransitionSafety(()=>{runInAction(()=>{this.payloadChanged(e,this._payload),this._payload=e})},{disabled:!this.vmConfig.startViewTransitions.payloadChange})}getParentViewModel(e){return this.vmParams.parentViewModel??this.viewModels?.get(e)}}class ViewModelStoreBase{constructor(e){this.config=e,this.viewModels=observable.map([],{deep:!1}),this.linkedComponentVMClasses=observable.map([],{deep:!1}),this.viewModelIdsByClasses=observable.map([],{deep:!0}),this.instanceAttachedCount=observable.map([],{deep:!1}),this.mountingViews=observable.set([],{deep:!1}),this.unmountingViews=observable.set([],{deep:!1}),this.vmConfig=mergeVMConfigs(e?.vmConfig),this.viewModelsTempHeap=new Map,applyObservable(this,[["mountedViewsCount",computed],["mount",action],["unmount",action],["attachVMConstructor",action],["attach",action],["detach",action],["linkComponents",action],["unlinkComponents",action]],this.vmConfig.observable.viewModelStores),this.vmConfig.hooks.storeCreate(this)}viewModels;linkedComponentVMClasses;viewModelIdsByClasses;instanceAttachedCount;viewModelsTempHeap;mountingViews;unmountingViews;vmConfig;get mountedViewsCount(){return[...this.instanceAttachedCount.values()].reduce((e,t)=>e+t,0)}processCreateConfig(e){this.linkComponents(e.VM,e.component,e.ctx?.externalComponent)}createViewModel(e){const t=e.VM,n=mergeVMConfigs(this.vmConfig,e.vmConfig),r={...e,vmConfig:n};return n.factory?n.factory(r):new t(r)}generateViewModelId(e){return e.id?e.id:this.vmConfig.generateId(e.ctx)}linkComponents(e,...t){t.forEach(t=>{t&&!this.linkedComponentVMClasses.has(t)&&this.linkedComponentVMClasses.set(t,e)})}unlinkComponents(...e){e.forEach(e=>{e&&this.linkedComponentVMClasses.has(e)&&this.linkedComponentVMClasses.delete(e)})}getIds(e){if(!e)return[];if("string"==typeof e)return[e];const t=this.linkedComponentVMClasses.get(e)||e;return this.viewModelIdsByClasses.get(t)||[]}getId(e){const t=this.getIds(e);return 0===t.length?null:t.at(-1)}has(e){const t=this.getId(e);return!!t&&this.viewModels.has(t)}get(e){const t=this.getId(e);if(!t)return null;return this.viewModels.get(t)??this.viewModelsTempHeap.get(t)??null}getOrCreateVmId(e){return e.id||(e.id=this.vmConfig.generateId({VM:e.constructor})),e.id}getAll(e){return this.getIds(e).map(e=>this.viewModels.get(e))}async mount(e){const t=this.getOrCreateVmId(e);this.mountingViews.add(t),await(e.mount?.()),runInAction(()=>{this.mountingViews.delete(t)})}async unmount(e){const t=this.getOrCreateVmId(e);this.unmountingViews.add(t),await(e.unmount?.()),runInAction(()=>{this.unmountingViews.delete(t)})}attachVMConstructor(e){const t=this.getOrCreateVmId(e),n=e.constructor;if(this.viewModelIdsByClasses.has(n)){const e=this.viewModelIdsByClasses.get(n);e.includes(t)||e.push(t)}else this.viewModelIdsByClasses.set(n,[t])}dettachVMConstructor(e){const t=e.constructor;if(this.viewModelIdsByClasses.has(t)){const n=this.viewModelIdsByClasses.get(t).filter(t=>t!==e.id);n.length>0?this.viewModelIdsByClasses.set(t,n):this.viewModelIdsByClasses.delete(t)}}markToBeAttached(e){const t=this.getOrCreateVmId(e);this.viewModelsTempHeap.set(t,e),"attachViewModelStore"in e&&e.attachViewModelStore(this),this.attachVMConstructor(e)}async attach(e){const t=this.getOrCreateVmId(e),n=this.instanceAttachedCount.get(t)??0;this.instanceAttachedCount.set(t,n+1),this.viewModels.has(t)||(this.viewModels.set(t,e),this.attachVMConstructor(e),await this.mount(e),this.viewModelsTempHeap.delete(t))}async detach(e){const t=this.instanceAttachedCount.get(e)??0;this.viewModelsTempHeap.delete(e);const n=this.viewModels.get(e);if(!n)return;const r=t-1;this.instanceAttachedCount.set(e,r),r<=0&&("willUnmount"in n&&n.willUnmount(),this.instanceAttachedCount.delete(e),this.viewModels.delete(e),this.dettachVMConstructor(n),await this.unmount(n))}isAbleToRenderView(e){const t=this.mountingViews.has(e),n=this.viewModels.has(e);return!!e&&n&&!t}clean(){this.viewModels.clear(),this.linkedComponentVMClasses.clear(),this.viewModelIdsByClasses.clear(),this.instanceAttachedCount.clear(),this.mountingViews.clear(),this.unmountingViews.clear(),this.viewModelsTempHeap.clear()}}const ActiveViewModelContext=reactExports.createContext(null),ViewModelsContext=reactExports.createContext(null),ActiveViewModelProvider=ActiveViewModelContext.Provider,useIsomorphicLayoutEffect="undefined"==typeof window?reactExports.useEffect:reactExports.useLayoutEffect;let useValueImpl=null;useValueImpl=e=>{const t=reactExports.useRef(null);return t.current||(t.current=e()),t.current};const useValue=useValueImpl;function useCreateViewModel(e,t,n){return isViewModelClass(e)?useCreateViewModelBase(e,t,n):useCreateViewModelSimple(e,t)}const useCreateViewModelBase=(e,t,n)=>{const r=reactExports.useContext(ViewModelsContext),i=reactExports.useContext(ActiveViewModelContext),o=n?.ctx??{},a=useValue(()=>{const a=r?.generateViewModelId({...n,ctx:o,VM:e,parentViewModelId:i?.id??null})??n?.id??viewModelsConfig.generateId(o),s=r?r.get(a):null;if(s)return s;{const s={...n,vmConfig:n?.vmConfig,id:a,parentViewModelId:i?.id,payload:t??{},VM:e,viewModels:r,parentViewModel:i,ctx:o};r?.processCreateConfig(s);const l=n?.factory?.(s)??r?.createViewModel(s)??viewModelsConfig.factory(s);return l.willMount(),r?.markToBeAttached(l),l}});return useIsomorphicLayoutEffect(()=>r?(r.attach(a),()=>{r.detach(a.id)}):(a.mount(),()=>{a.willUnmount(),a.unmount()}),[a]),a.setPayload(t??{}),a},useCreateViewModelSimple=(e,t)=>{const n=reactExports.useContext(ViewModelsContext),r=reactExports.useContext(ActiveViewModelContext),i=useValue(()=>{const t=new e;return t.parentViewModel=r,n?.markToBeAttached(t),t});return"setPayload"in i&&reactExports.useLayoutEffect(()=>{i.setPayload(t)},[t]),useIsomorphicLayoutEffect(()=>n?(n.attach(i),()=>{n.detach(i.id)}):(i.mount?.(),()=>{i.unmount?.()}),[i]),i},useViewModel=e=>{const t=reactExports.useContext(ViewModelsContext),n=reactExports.useContext(ActiveViewModelContext);if(t?.get(e),!n)throw new Error("Error #1: https://js2me.github.io/mobx-view-model/errors/1");return n};observer(({model:e,config:t,payload:n,children:r})=>{const i=useCreateViewModel(e,n,t);return i.isMounted?"function"==typeof r?r(i):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:r}):null});const ViewModelsProvider=ViewModelsContext.Provider;function withViewModel(e,t,n){if("function"==typeof t||t&&void 0!==t.$$typeof){const n={};return withViewModelWrapper(e,{...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}},t)}{const n=t??{},r={...n,ctx:{VM:e,generateId:n.generateId,...n.ctx}};return t=>withViewModelWrapper(e,r,t)}}const REACT_MEMO_SYMBOL=Symbol.for("react.memo"),withViewModelWrapper=(e,t,n)=>{const r=t.vmConfig?.processViewComponent??viewModelsConfig.processViewComponent,i=t.vmConfig?.wrapViewsInObserver??viewModelsConfig.wrapViewsInObserver;let o=r?.(n,e,t)??n;i&&o&&o.$$typeof!==REACT_MEMO_SYMBOL&&(o=observer(o));const a=t.reactHook,s=t.getPayload,l=t.fallback??viewModelsConfig.fallbackComponent;let u=(n,r)=>{const i=reactExports.useContext(ViewModelsContext);a?.(n,t.ctx,i,r);const{payload:u,...c}=n,d=s?.(n)??u;t.forwardRef&&!("forwardedRef"in c)&&(c.forwardedRef=r);const p=useCreateViewModel(e,d,{...t,props:c});return(!i||i.isAbleToRenderView(p.id))&&!1!==p.isMounted?jsxRuntimeExports.jsx(ActiveViewModelProvider,{value:p,children:o&&jsxRuntimeExports.jsx(o,{...c,model:p})}):l&&jsxRuntimeExports.jsx(l,{...n,payload:d})};return t.forwardRef&&(u=reactExports.forwardRef(u)),u=observer(u),t.component=u,u};class ViewModelImpl extends ViewModelBase{constructor(e){super({...e,vmConfig:{observable:{viewModels:{useDecorators:!1}}}})}}class LinkedAbortController extends AbortController{constructor(...e){super(),this.link(...e)}link(...e){e.forEach(e=>{e?.addEventListener("abort",()=>{this.abort(e.reason)})})}}const callFunction=(e,...t)=>"function"==typeof e?e(...t):e;var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$1=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root$1.Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch(e){}var i=nativeObjectToString$1.call(e);return r&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),i}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return null!=e&&"object"==typeof e}var symbolTag="[object Symbol]";function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&baseGetTag(e)==symbolTag}var reWhitespace=/\s/;function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var reTrimStart=/^\s+/;function baseTrim(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}function baseClamp(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function clamp(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=toNumber(n))==n?n:0),void 0!==t&&(t=(t=toNumber(t))==t?t:0),baseClamp(toNumber(e),t,n)}var now=function(){return root$1.Date.now()},FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function m(){var e=now();if(h(e))return b(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?nativeMin(n,o-(e-u)):n}(e))}function b(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function g(){var e=now(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=toNumber(t)||0,isObject(n)&&(c=!!n.leading,o=(d="maxWait"in n)?nativeMax(toNumber(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},g.flush=function(){return void 0===s?a:b(now())},g}var FUNC_ERROR_TEXT="Expected a function";function throttle(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);return isObject(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),debounce(e,t,{leading:r,maxWait:t,trailing:i})}let KeyboardHandler$1=class{constructor(e){if(this.config=e,this.abortController=new LinkedAbortController(e.abortSignal),this.activateStrategy=this.config.activateStrategy??{type:"immidiately"},this.isActivated=!("immidiately"!==this.activateStrategy.type),observable.ref(this,"isActivated"),observable.ref(this,"localActions"),computed.struct(this,"actions"),action.bound(this,"handleKeyboardClick"),action.bound(this,"setActions"),makeObservable(this),"element-focus"===this.activateStrategy.type){const e=this.activateStrategy.ref;let t=new LinkedAbortController;reaction(()=>e.current,e=>{e?(globalThis.document?.activeElement===e&&this.activate(),e.addEventListener("focus",this.activate,{signal:t.signal}),e.addEventListener("blur",this.deactivate,{signal:t.signal})):(t.abort(),t=new LinkedAbortController(this.abortController.signal))},{fireImmediately:!0,signal:this.abortController.signal})}globalThis.addEventListener("keydown",this.handleKeyboardClick,{signal:this.abortController.signal}),"keyclick"===e.activateStrategy?.type&&(globalThis.addEventListener("click",this.activate,{signal:this.abortController.signal}),globalThis.addEventListener("mousemove",this.activate,{signal:this.abortController.signal}))}abortController;activateStrategy;localActions;isActivated;get actions(){const e=this.localActions??this.config.actions;return callFunction(e)??[]}setActions(e){this.localActions=e}activate=()=>{this.isActivated||(this.isActivated=!0,this.config.onActivate?.())};deactivate=()=>{this.isActivated&&(this.isActivated=!1,this.config.onDeactivate?.())};handleKeyboardClick(e){if(this.config.onKeyClick?.(e),"keyclick"===this.activateStrategy.type&&this.activate(),this.isActivated)for(let t=0;t<this.actions.length;t++){const n=this.actions[t];if(!callFunction(n.disabled))for(let t=0;t<n.shortcuts.length;t++){if(n.shortcuts[t].split("+").every(t=>this.checkKey(e,t)))return void runInAction(()=>{n.action(e)})}}}checkKey(e,t){return!("Shift"!==t||!e.shiftKey)||(!("Ctrl"!==t&&"Control"!==t||!e.ctrlKey)||(!("Alt"!==t||!e.altKey)||(!("Windows"!==t&&"Meta"!==t&&"Command"!==t&&"⌘"!==t&&"Win"!==t||!e.metaKey)||(t===e.key||t===e.code))))}destroy(){this.abortController.abort()}};class Storage{constructor(e){this.config=e,this.abortController=new LinkedAbortController(e?.abortSignal),this.abortSignal=this.abortController.signal,makeObservable(this)}abortController;abortSignal;getStorage(e){return"session"===(e.type??this.config?.type)?globalThis.sessionStorage:globalThis.localStorage}createKey(e){if(this.config?.createKey)return this.config.createKey(e);const t=e.prefix??this.config?.prefix??"",n=e.namespace??this.config?.namespace;return`${t?`${t}/`:""}${n?`${n}/`:""}${e.key}`}get(e){const t=this.createKey(e),n=this.getStorage(e).getItem(t);let r=null;if("string"==typeof n)try{r=JSON.parse(n)}catch{r=null}else r=n;return r??e.fallback??null}formatValue(e){return JSON.stringify(e)}set(e){const t=this.createKey(e);this.getStorage(e).setItem(t,e.format?e.format(e.value):this.formatValue(e.value))}syncProperty(e,t,n){const r=n?.key??t,i=n&&"fallback"in n?n.fallback:e[t];runInAction(()=>{e[t]=this.get({...n,key:r,fallback:i})??e[t]});const o=autorun(()=>{const i=e[t];this.set({...n,key:r,value:i})},{signal:this.abortSignal});return this.abortSignal.addEventListener("abort",o),()=>{this.abortSignal.removeEventListener("abort",o),o()}}destroy(){this.abortController.abort()}}var hasRequiredClient,client={};function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var e=requireReactDom();return client.createRoot=e.createRoot,client.hydrateRoot=e.hydrateRoot,client}var clientExports=requireClient();function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),getGroupRecursive(n,t)||getGroupIdForArbitraryProperty(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},getGroupRecursive=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?getGroupRecursive(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},createClassMap=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)processClassesRecursively(n[e],r,e,t);return r},processClassesRecursively=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:getPart(t,e)).classGroupId=n)}if("function"==typeof e)return isThemeGetter(e)?void processClassesRecursively(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,i])=>{processClassesRecursively(i,getPart(t,e),n,r)})})},getPart=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=1,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,i=0,o=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===i){if(":"===s){t.push(e.slice(o,a)),o=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?i++:")"===s&&i--}const a=0===t.length?e:e.substring(o),s=stripImportantModifier(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},stripImportantModifier=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)}),n.push(...r.sort()),n}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(SPLIT_CLASSES_REGEX);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){l=t+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=t+(l.length>0?" "+l:l);continue}h=!1}const b=o(c).join(":"),g=d?b+"!":b,v=g+m;if(a.includes(v))continue;a.push(v);const y=i(m,h);for(let e=0;e<y.length;++e){const t=y[e];a.push(g+t)}l=t+(l.length>0?" "+l:l)}return l};function twJoin(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=toValue(e))&&(r&&(r+=" "),r+=t);return r}const toValue=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=toValue(e[r]))&&(n&&(n+=" "),n+=t);return n};function createTailwindMerge(e,...t){let n,r,i,o=function(s){const l=t.reduce((e,t)=>t(e),e());return n=createConfigUtils(l),r=n.cache.get,i=n.cache.set,o=a,a(s)};function a(e){const t=r(e);if(t)return t;const o=mergeClassList(e,n);return i(e,o),o}return function(){return o(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\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$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const r=arbitraryValueRegex.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},getIsArbitraryVariable=(e,t,n=!1)=>{const r=arbitraryVariableRegex.exec(e);return!!r&&(r[1]?t(r[1]):n)},isLabelPosition=e=>"position"===e||"percentage"===e,isLabelImage=e=>"image"===e||"url"===e,isLabelSize=e=>"length"===e||"size"===e||"bg-size"===e,isLabelLength=e=>"length"===e,isLabelNumber=e=>"number"===e,isLabelFamilyName=e=>"family-name"===e,isLabelShadow=e=>"shadow"===e,getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),r=fromTheme("font-weight"),i=fromTheme("tracking"),o=fromTheme("leading"),a=fromTheme("breakpoint"),s=fromTheme("container"),l=fromTheme("spacing"),u=fromTheme("radius"),c=fromTheme("shadow"),d=fromTheme("inset-shadow"),p=fromTheme("text-shadow"),f=fromTheme("drop-shadow"),h=fromTheme("blur"),m=fromTheme("perspective"),b=fromTheme("aspect"),g=fromTheme("ease"),v=fromTheme("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",isArbitraryVariable,isArbitraryValue],x=()=>[isArbitraryVariable,isArbitraryValue,l],_=()=>[isFraction,"full","auto",...x()],w=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],S=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],E=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],k=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],A=()=>["auto",...x()],C=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],O=()=>[e,isArbitraryVariable,isArbitraryValue],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],R=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],P=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],M=()=>["","none","full",u,isArbitraryVariable,isArbitraryValue],I=()=>["",isNumber,isArbitraryVariableLength,isArbitraryLength],N=()=>[isNumber,isPercent,isArbitraryVariablePosition,isArbitraryPosition],L=()=>["","none",h,isArbitraryVariable,isArbitraryValue],D=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],V=()=>["none",isNumber,isArbitraryVariable,isArbitraryValue],j=()=>[isNumber,isArbitraryVariable,isArbitraryValue],z=()=>[isFraction,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,b]}],container:["container"],columns:[{columns:[isNumber,isArbitraryValue,isArbitraryVariable,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[s,"screen",...C()]}],"min-w":[{"min-w":[s,"screen","none",...C()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[o,...x()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[isNumber,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[isNumber,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",d,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[isNumber,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",p,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[isNumber,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[isNumber]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:L()}],brightness:[{brightness:[isNumber,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",f,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",g,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",v,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:j()}],"skew-x":[{"skew-x":j()}],"skew-y":[{"skew-y":j()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[isNumber,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig),cx=(...e)=>twMerge(clsx(...e)),vmButton="vmButton_esipO",dragging="dragging_kUMCE",opened="opened_NYAFW",isConnected="isConnected_eObxX",css$5={vmButton:vmButton,dragging:dragging,opened:opened,isConnected:isConnected};class VmDevtoolsButtonVM extends ViewModelBase{devtools=this.parentViewModel.devtools;storage=new Storage({namespace:"mobx-view-model-devtools",prefix:"devtools-button",type:"local"});rect=null;ref=createRef({onSet:e=>{const t={isDragging:!1,offsetX:0,offsetY:0,hasMoved:!1,startX:0,startY:0},n=this.storage.get({key:"left",fallback:""}),r=this.storage.get({key:"top",fallback:""}),{x:i,y:o}=this.fixPosition(n,r);e.style.left=`${i}px`,e.style.top=`${o}px`,e.addEventListener("mousedown",n=>{t.isDragging=!0,t.hasMoved=!1;const r=e.getBoundingClientRect();t.offsetX=r.left-n.clientX,t.offsetY=r.top-n.clientY,t.startX=r.left,t.startY=r.top,e.classList.add(css$5.dragging)});e.addEventListener("click",e=>{if(t.hasMoved)return e.preventDefault(),void e.stopPropagation();this.handleClick()}),document.addEventListener("mousemove",n=>{if(!t.isDragging)return;const{x:r,y:i}=this.fixPosition(n.clientX+t.offsetX,n.clientY+t.offsetY);e.style.left=`${r}px`,e.style.top=`${i}px`,r===t.startX&&i===t.startY||(t.hasMoved=!0)}),document.addEventListener("mouseup",()=>{t.isDragging=!1,e.classList.remove(css$5.dragging),this.position!==this.devtools.position&&runInAction(()=>{this.devtools.position=this.position,this.storage.set({key:"left",value:e.style.left}),this.storage.set({key:"top",value:e.style.top})})})}});handleClick=()=>{this.devtools.isPopupOpened?this.devtools.hidePopup():this.devtools.showPopup()};get position(){const{left:e,top:t}=this.offsets,n=e<window.innerWidth/2,r=t<window.innerHeight/2;return r&&n?"top-left":r&&!n?"top-right":!r&&n?"bottom-left":"bottom-right"}get offsets(){return this.rect=this.ref.current?.getBoundingClientRect(),{left:this.rect?.left??0,top:this.rect?.top??0}}get size(){return!this.rect&&this.ref.current&&(this.rect=this.ref.current.getBoundingClientRect()),{width:this.rect?.width??0,height:this.rect?.height??0}}fixPosition(e,t){const n=window.innerWidth-this.size.width-12,r=window.innerHeight-this.size.height-12,i="string"==typeof e?+e.replace("px",""):e,o="string"==typeof t?+t.replace("px",""):t;return{x:clamp(i||0,12,n),y:clamp(o||0,12,r)}}}const VmDevtoolsButton=withViewModel(VmDevtoolsButtonVM,({model:e})=>jsxRuntimeExports.jsxs("button",{className:cx(css$5.vmButton,{[css$5.opened]:e.devtools.isPopupOpened,[css$5.isConnected]:e.devtools.isActive},e.devtools.config.buttonClassName),ref:e.ref,"data-position":e.devtools.position,children:[jsxRuntimeExports.jsx("img",{src:e.devtools.logoUrl}),jsxRuntimeExports.jsx("div",{}),jsxRuntimeExports.jsx("span",{children:e.devtools.allVms.length})]})),BarsAscendingAlignLeftArrowDown=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.22 13.28a.75.75 0 0 0 1.06 0l2-2a.75.75 0 1 0-1.06-1.06l-.72.72V3.25a.75.75 0 0 0-1.5 0v7.69l-.72-.72a.75.75 0 1 0-1.06 1.06zM7.75 12a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5zm0-3.25a.75.75 0 0 1 0-1.5h5.5a.75.75 0 0 1 0 1.5zm0-4.75a.75.75 0 0 1 0-1.5h2.5a.75.75 0 0 1 0 1.5z",clipRule:"evenodd"})),BarsDescendingAlignCenter=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3.25a.75.75 0 0 1 .75-.75h12.5a.75.75 0 0 1 0 1.5H1.75A.75.75 0 0 1 1 3.25M3 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 3 8m3.75 4a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),BarsDescendingAlignLeftArrowUp=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.22 2.72a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1-1.06 1.06l-.72-.72v7.69a.75.75 0 0 1-1.5 0V5.06l-.72.72A.75.75 0 0 1 .22 4.72zM7.75 4a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5zm0 3.25a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm0 4.75a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),ChevronRight=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})),Copy=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"})),FolderTree=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.5 13.5v-3A.5.5 0 0 1 8 10h.672a.5.5 0 0 1 .353.146l.414.415.44.439H13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5M6 13H4.5a3 3 0 0 1-3-3V1.25a.75.75 0 0 1 1.5 0V2a1.5 1.5 0 0 0 1.5 1.5H6v-1a2 2 0 0 1 2-2h.672a2 2 0 0 1 1.414.586l.414.414H13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5H4.5A3 3 0 0 1 3 4.599V10a1.5 1.5 0 0 0 1.5 1.5H6v-1a2 2 0 0 1 2-2h.672a2 2 0 0 1 1.414.586l.414.414H13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm1.5-8.75V5.5A.5.5 0 0 0 8 6h5a.5.5 0 0 0 .5-.5v-2A.5.5 0 0 0 13 3H9.879l-.44-.44-.414-.414A.5.5 0 0 0 8.672 2H8a.5.5 0 0 0-.5.5z",clipRule:"evenodd"})),ListUl=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})),Magnifier=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 7a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0m-.82 4.74a6 6 0 1 1 1.06-1.06l2.79 2.79a.75.75 0 1 1-1.06 1.06z",clipRule:"evenodd"})),Xmark=e=>reactExports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),reactExports.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})),a=null,{min:u,max:h,abs:p,floor:v}=Math,g=(e,t,n)=>u(n,h(t,e)),m=e=>[...e].sort((e,t)=>e-t),_="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)},S=()=>{let e;return[new Promise(t=>{e=t}),e]},w=e=>{let t;return()=>(e&&(t=e(),e=void 0),t)},$=(e,t,n)=>{const r=n?"unshift":"push";for(let n=0;n<t;n++)e[r](-1);return e},y=(e,t)=>{const n=e.t[t];return-1===n?e.o:n},x=(e,t,n)=>{const r=-1===e.t[t];return e.t[t]=n,e.i=u(t,e.i),r},z=(e,t)=>{if(!e.l)return 0;if(e.i>=t)return e.u[t];e.i<0&&(e.u[0]=0,e.i=0);let n=e.i,r=e.u[n];for(;n<t;)r+=y(e,n),e.u[++n]=r;return e.i=t,r},b=(e,t,n=0,r=e.l-1)=>{for(;n<=r;){const i=v((n+r)/2);if(z(e,i)<=t){if(z(e,i+1)>t)return i;n=i+1}else r=i-1}return g(n,0,e.l-1)},I=(e,t,n)=>{const r=t-e.l;return e.i=n?-1:u(t-1,e.i),e.l=t,r>0?($(e.u,r),$(e.t,r,n),e.o*r):(e.u.splice(r),(n?e.t.splice(0,-r):e.t.splice(r)).reduce((t,n)=>t-(-1===n?e.o:n),0))},k="undefined"!=typeof window,R=()=>document.documentElement,T=e=>e.ownerDocument,M=e=>e.defaultView,C=w(()=>!!k&&"rtl"===getComputedStyle(R()).direction),E=w(()=>!!/iP(hone|od|ad)/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0),H=w(()=>"scrollBehavior"in R().style),W=e=>h(e.h(),e.p()),O=(e,t=40,n=0,r,i=!1)=>{let o=!!n,s=1,l=0,c=0,d=0,f=0,g=0,v=0,_=0,w=0,S=a,k=[0,o?h(n-1,0):-1],A=0;const C=(j=e,F=t,{o:(B=r)?B[1]:F,t:B&&B[0]?$(B[0].slice(0,u(j,B[0].length)),h(0,j-B[0].length)):$([],j),l:j,i:-1,u:$([],j+1)}),O=new Set,T=()=>d-c,R=()=>T()+g+f,P=(e,t)=>((e,t,n,r)=>{if(r=u(r,e.l-1),z(e,r)<=t){const i=b(e,n,r);return[b(e,t,r,i),i]}{const i=b(e,t,void 0,r);return[i,b(e,n,i)]}})(C,e,t,k[0]),M=()=>z(C,C.l),N=e=>z(C,e)-g,L=e=>y(C,e),D=(e,t=-1)=>C.t[e]===t,V=e=>{e&&(E()&&0!==_||S&&1===w?g+=e:f+=e)};var j,F,B;return{v:()=>{O.clear()},m:()=>s,_:()=>(e=>[e.t.slice(),e.o])(C),S:(e=200)=>{if(!l||o)return k;let t,n;if(v)[t,n]=k;else{let r=h(0,R()),o=r+l;i||(e=h(0,e),1!==_&&(r-=e),2!==_&&(o+=e)),[t,n]=k=P(h(0,r),h(0,o)),S&&(t=u(t,S[0]),n=h(n,S[1]))}return[h(t,0),u(n,C.l-1)]},$:()=>b(C,R()),I:()=>b(C,R()+l),k:D,R:N,T:L,M:()=>C.l,C:()=>d,H:()=>0!==_,p:()=>l,W:()=>c,h:M,O:()=>(v=f,f=0,[v,2===w]),B:(e,t)=>{const n=[e,t];return O.add(n),()=>{O.delete(n)}},J:(e,t)=>{let n,r,u=0;switch(e){case 1:{if(t===d&&0===w)break;const e=v;v=0;const n=t-d,i=p(n);e&&i<p(e)+1||0!==w||(_=n<0?2:1),o&&(o=!1),d=t,u=4;const a=T();a>=-l&&a<=M()&&(u+=1,r=i>l);break}case 2:u=8,0!==_&&(n=!0,u+=1),_=0,w=0,S=a;break;case 3:{const e=t.filter(([e,t])=>!D(e,t));if(!e.length)break;V(e.reduce((e,[t,n])=>((2===w||(S&&1===w?t<S[0]:N(t+(0===_&&0===w?1:0))<T()))&&(e+=n-L(t)),e),0));for(const[t,n]of e){const e=L(t),r=x(C,t,n);i&&(A+=r?n:n-e)}i&&l&&A>l&&(V(((e,t)=>{let n=0;const r=[];e.t.forEach((e,i)=>{-1!==e&&(r.push(e),i<t&&n++)}),e.i=-1;const i=m(r),o=i.length,a=o/2|0,s=o%2==0?(i[a-1]+i[a])/2:i[a],l=e.o;return((e.o=s)-l)*h(t-n,0)})(C,b(C,R()))),i=!1),u=3,r=!0;break}case 4:l!==t&&(l||(r=!0),l=t,u=3);break;case 5:t[1]?(V(I(C,t[0],!0)),w=2,u=1):(I(C,t[0]),u=1);break;case 6:c=t;break;case 7:w=1;break;case 8:S=P(t,t+l),u=1}u&&(s=1+(2147483647&s),n&&g&&(f+=g,g=0),O.forEach(([e,t])=>{u&e&&t(r)}))}}},B=setTimeout,J=(e,t)=>t&&C()?-e:e,A=(e,t,n,r,i,o)=>{const s=Date.now;let l=0,u=!1,c=!1,d=!1,p=!1;const f=(()=>{let t;const n=()=>{t!=a&&clearTimeout(t)},r=()=>{n(),t=B(()=>{t=a,(()=>{if(u||c)return u=!1,void f();d=!1,e.J(2)})()},150)};return r.A=n,r})(),h=()=>{l=s(),d&&(p=!0),e.J(1,r()),f()},m=t=>{if(u||!e.H()||t.ctrlKey)return;const r=s()-l;150>r&&50<r&&(n?t.deltaX:t.deltaY)&&(u=!0)},b=()=>{c=!0,d=p=!1},g=()=>{c=!1,E()&&(d=!0)};return t.addEventListener("scroll",h),t.addEventListener("wheel",m,{passive:!0}),t.addEventListener("touchstart",b,{passive:!0}),t.addEventListener("touchend",g,{passive:!0}),{L:()=>{t.removeEventListener("scroll",h),t.removeEventListener("wheel",m),t.removeEventListener("touchstart",b),t.removeEventListener("touchend",g),f.A()},D:()=>{const[t,o]=e.O();t&&(i(J(t,n),o,p),p=!1,o&&e.p()>e.h()&&e.J(1,r()))}}},L=(e,t,n)=>{let r;return[async(i,o)=>{if(!await t())return;r&&r();const a=()=>{const[t,n]=S();return r=()=>{n(!1)},e.p()&&B(r,150),[t,e.B(2,()=>{n(!0)})]};if(o&&H())e.J(8,i()),_(async()=>{for(;;){let t=!0;for(let[n,r]=e.S();n<=r;n++)if(e.k(n)){t=!1;break}if(t)break;const[n,r]=a();try{if(!await n)return}finally{r()}}e.J(7),n(i(),o)});else for(;;){const[t,r]=a();try{if(e.J(7),n(i()),!await t)return}finally{r()}}},()=>{r&&r()}]},D=(e,t)=>{let n,r,i=S();const o=t?"scrollLeft":"scrollTop",a=t?"overflowX":"overflowY",[s,l]=L(e,()=>i[0],(e,r)=>{e=J(e,t),r?n.scrollTo({[t?"left":"top"]:e,behavior:"smooth"}):n[o]=e});return{P(s){n=s,r=A(e,s,t,()=>J(s[o],t),(t,n,r)=>{if(r){const e=s.style,t=e[a];e[a]="hidden",B(()=>{e[a]=t})}s[o]=e.C()+t,n&&l()}),i[1](!0)},v(){r&&r.L(),i[1](!1),i=S()},V(e){s(()=>e)},X(t){t+=e.C(),s(()=>t)},Y(t,{align:n,smooth:r,offset:i=0}={}){if(t=g(t,0,e.M()-1),"nearest"===n){const r=e.R(t),i=e.C();if(r<i)n="start";else{if(!(r+e.T(t)>i+e.p()))return;n="end"}}s(()=>i+e.W()+e.R(t)+("end"===n?e.T(t)-e.p():"center"===n?(e.T(t)-e.p())/2:0),r)},j:()=>{r&&r.D()}}},X=e=>{let t;return{q(n){(t||(t=new(M(T(n)).ResizeObserver)(e))).observe(n)},G(e){t.unobserve(e)},L(){t&&t.disconnect()}}},Y=(e,t)=>{let n;const r=t?"width":"height",i=new WeakMap,o=X(t=>{const o=[];for(const{target:s,contentRect:l}of t)if(s.offsetParent)if(s===n)e.J(4,l[r]);else{const e=i.get(s);e!=a&&o.push([e,l[r]])}o.length&&e.J(3,o)});return{U(e){o.q(n=e)},F:(e,t)=>(i.set(e,t),o.q(e),()=>{i.delete(e),o.G(e)}),v:o.L}},G=k?reactExports.useLayoutEffect:reactExports.useEffect,U="current",F=(e,t)=>{if(Array.isArray(e))for(const n of e)F(n,t);else null==e||"boolean"==typeof e||t.push(e)},K=(e,t)=>{const n=e.key;return null!=n?n:"_"+t},N=e=>{const t=reactExports.useRef(null);return t[U]||(t[U]=e())},Q=e=>{const t=reactExports.useRef(e);return G(()=>{t[U]=e},[e]),t},Z=reactExports.memo(({Z:e,ee:t,te:n,oe:r,ne:i,re:o,ie:a,se:s})=>{const l=reactExports.useRef(null);G(()=>t(l[U],n),[n]);const u=reactExports.useMemo(()=>{const e={contain:"layout style",position:i&&s?void 0:"absolute",[a?"height":"width"]:"100%",[a?"top":"left"]:0,[a?C()?"right":"left":"top"]:r,visibility:!i||s?void 0:"hidden"};return a&&(e.display="inline-flex"),e},[r,i,s,a]);return jsxRuntimeExports.jsx(o,"string"==typeof o?{ref:l,style:u,children:e}:{ref:l,style:u,index:n,children:e})}),ee=(e,t)=>reactExports.useMemo(()=>{if("function"==typeof e)return[n=>e(t[n],n),t.length];const n=(e=>{const t=[];return F(e,t),t})(e);return[e=>n[e],n.length]},[e,t]),te=reactExports.forwardRef(({children:e,data:t,bufferSize:n,itemSize:r,shift:i,horizontal:o,keepMounted:a,cache:s,startMargin:l=0,ssrCount:u,as:c="div",item:d="div",scrollRef:p,onScroll:f,onScrollEnd:h},b)=>{const[g,v]=ee(e,t),y=reactExports.useRef(null),x=reactExports.useRef(!!u),w=Q(f),S=Q(h),[E,k,A,C]=N(()=>{const e=!!o,t=O(v,r,u,s,!r);return[t,Y(t,e),D(t,e),e]});v!==E.M()&&E.J(5,[v,i]),l!==E.W()&&E.J(6,l);const[T,R]=reactExports.useReducer(E.m,void 0,E.m),P=E.H(),M=E.h(),I=[],L=e=>{const t=g(e);return jsxRuntimeExports.jsx(Z,{ee:k.F,te:e,oe:E.R(e),ne:E.k(e),re:d,Z:t,ie:C,se:x[U]},K(t,e))};if(G(()=>{x[U]=!1,E.B(1,e=>{e?reactDomExports.flushSync(R):R()}),E.B(4,()=>{w[U]&&w[U](E.C())}),E.B(8,()=>{S[U]&&S[U]()});const e=e=>{k.U(e),A.P(e)};return p?_(()=>{p[U]&&e(p[U])}):e(y[U].parentElement),()=>{E.v(),k.v(),A.v()}},[]),G(()=>{A.j()},[T]),reactExports.useImperativeHandle(b,()=>({get cache(){return E._()},get scrollOffset(){return E.C()},get scrollSize(){return W(E)},get viewportSize(){return E.p()},findStartIndex:E.$,findEndIndex:E.I,getItemOffset:E.R,getItemSize:E.T,scrollToIndex:A.Y,scrollTo:A.V,scrollBy:A.X}),[]),a){const e=new Set(a);for(let[t,r]=E.S(n);t<=r;t++)e.add(t);m([...e]).forEach(e=>{I.push(L(e))})}else for(let[e,t]=E.S(n);e<=t;e++)I.push(L(e));return jsxRuntimeExports.jsx(c,{ref:y,style:{contain:"size style",overflowAnchor:"none",flex:"none",position:"relative",width:C?M:"100%",height:C?"100%":M,pointerEvents:P?"none":void 0},children:I})});class ListItem{constructor(e,t,n,r,i){this.devtools=e,this.key=t,this._data=n,this.getChildren=r,this.cache=i??e.anyCache,this.expandKey=`${t}/expand-key`,computed(this,"isExpanded"),computed(this,"isFitted"),computed(this,"totalChildCount"),computed(this,"depthLine"),computed(this,"depth"),computed(this,"stringifiedData"),computed.struct(this,"operations"),computed.struct(this,"children"),computed.struct(this,"expandedChildren"),computed.struct(this,"expandedChildrenWithSelf"),computed(this,"data"),computed(this,"isExpandable"),action(this,"expand"),action(this,"collapse"),makeObservable(this)}cache;get isExpanded(){return!0===this.cache.get(this.expandKey)}get children(){return this.getChildren?.(this)??[]}get isExpandable(){return this.children.length>0}expand(){this.isExpandable&&this.cache.set(this.expandKey,!0)}collapse(){this.cache.set(this.expandKey,!1)}toggleExpand(){this.isExpanded?this.collapse():this.expand()}get expandedChildren(){if(!this.isExpanded)return[];const e=[];let t=0;const n=this.children;for(;;){const r=n[t++];if(!r)break;e.push(r,...r.expandedChildren)}return e}get expandedChildrenWithSelf(){return[this,...this.expandedChildren]}get data(){return this._data}get isFitted(){return!0}get depthLine(){return String().padEnd(this.depth,"-")}get stringifiedData(){return String(this.data)}get operations(){return[]}expandKey}const ignoredKeys=new Set(["constructor"]),ignoredPrototypes=new Set([globalThis.Object.prototype,globalThis.Function.prototype,globalThis.Array.prototype,globalThis.String.prototype,globalThis.Number.prototype,globalThis.Boolean.prototype,globalThis.Symbol.prototype,globalThis.Date.prototype,globalThis.RegExp.prototype,globalThis.Error.prototype,globalThis.Map.prototype,globalThis.Set.prototype,globalThis.WeakMap.prototype,globalThis.WeakSet.prototype,globalThis.ArrayBuffer.prototype,globalThis.DataView.prototype,globalThis.Float32Array.prototype,globalThis.Float64Array.prototype,globalThis.Int8Array.prototype,globalThis.Int16Array.prototype,globalThis.Int32Array.prototype,globalThis.Uint8Array.prototype,globalThis.Uint8ClampedArray.prototype,globalThis.Uint16Array.prototype,globalThis.Uint32Array.prototype,globalThis.BigInt64Array.prototype,globalThis.BigUint64Array.prototype,globalThis.Promise.prototype,globalThis.Iterator.prototype]);function getAllKeys(e){const t=new Set(Object.keys(e));let n=Object.getPrototypeOf(e);for(;n&&n!==globalThis.Object.prototype;){const e=Object.getOwnPropertyDescriptors(n);for(const n in e)ignoredKeys.has(n)||t.add(n);const r=Object.getPrototypeOf(n);if(ignoredPrototypes.has(r))break;n=r}return Array.from(t)}class MetaListItem extends ListItem{constructor(e,t,n,r){super(e,t,void 0),this.content=n,this._depth=r}get depth(){return this._depth}}class VMListItem extends ListItem{constructor(e,t,n,r){const i=t.constructor.name;super(e,`${i}-${t.id}`,t,void 0,new Map),this.allVms=n,this.parent=r,this.displayName=i,this.searchData={name:i.toLowerCase().trim(),id:(t.id||"").toLowerCase().trim()},computed.struct(this,"childVMListItems"),computed.struct(this,"propertyListItems"),makeObservable(this),untracked(()=>{this.expand()})}get childVMListItems(){return this.allVms.filter(e=>{const t=this.getVmParams(e);return t?.parentViewModel&&t.parentViewModel===this.data}).map(e=>new VMListItem(this.devtools,e,this.allVms,this))}get isFitted(){const{searchEngine:e}=this.devtools;if(!e.isActive)return!0;const t=e.segments[0];let n,r;return e.segments[1]?(n=this.searchData.id===t,r=this.searchData.name===t):(n=this.searchData.id.startsWith(t),r=this.searchData.name.startsWith(t)),r||n}get propertyListItems(){let e=getAllKeys(this.data);return"none"!==this.devtools.sortPropertiesBy&&(e=e.sort((e,t)=>"asc"===this.devtools.sortPropertiesBy?e.localeCompare(t):t.localeCompare(e))),e.map((e,t)=>PropertyListItem.create(this.devtools,e,e,t,this))}get children(){return[...this.propertyListItems,...this.childVMListItems]}getVmParams(e){return"vmParams"in e?e.vmParams:null}get depth(){return this.parent&&"tree"===this.devtools.presentationMode?this.parent.depth+1:0}searchData;displayName}class PropertyListItem extends ListItem{constructor(e,t,n,r,i){super(e,PropertyListItem.createKey(i,t),void 0),this.property=t,this.path=n,this.order=r,this.parent=i,computed(this,"type"),computed(this,"searchData"),computed(this,"propertyClosingTag"),computed(this,"dataType"),computed(this,"stringifiedDataType"),computed(this,"extraContent"),observable.ref(this,"failedStringify"),makeObservable(this)}get data(){return this.property&&this.parent.data[this.property]}get dataType(){return typeof this.data}get stringifiedDataType(){return Object.prototype.toString.call(this.data)}get type(){return Array.isArray(this.data)?"array":_exports.isObject(this.data)&&this.data.constructor?.name&&"Object"!==this.data.constructor.name?"instance":_exports.isFunction(this.data)?"function":_exports.isObject(this.data)?"object":this.stringifiedDataType.startsWith("[object ")&&this.data&&"object"==typeof this.data&&"constructor"in this.data?"instance":"primitive"}get children(){let e=[];if("array"===this.type)e=Object.keys(this.data).map((e,t)=>PropertyListItem.create(this.devtools,e,`${this.path}.${e}`,t,this)),e.push(PropertyListItem.create(this.devtools,"length",`${this.path}.length`,e.length,this));else if("function"===this.type)e=Object.keys(this.data).map((e,t)=>PropertyListItem.create(this.devtools,e,`${this.path}.${e}`,t,this));else if("instance"===this.type||"object"===this.type)return getAllKeys(this.data).map((e,t)=>PropertyListItem.create(this.devtools,e,`${this.path}.${e}`,t,this));return"none"!==this.devtools.sortPropertiesBy&&(e=e.sort((e,t)=>{const n=String(e.property),r=String(t.property);return"asc"===this.devtools.sortPropertiesBy?n.localeCompare(r):r.localeCompare(n)})),e}get isFitted(){const{searchEngine:e}=this.devtools;return!e.isActive||!this.property||e.segments.some(e=>e.startsWith(this.property))}get extraContent(){if(this.isExpanded)return null;if(this.parent.isExpanded){if(this.parent instanceof VMListItem)return",";if(this.parent instanceof PropertyListItem)switch(this.parent.type){case"array":case"instance":case"object":return","}}return null}get propertyClosingTag(){switch(this.type){case"array":return new MetaListItem(this.devtools,`${this.key}/closing-tag`,"]",this.depth);case"instance":case"object":return new MetaListItem(this.devtools,`${this.key}/closing-tag`,"}",this.depth);default:return null}}get expandedChildren(){if(!this.isExpanded||!this.isExpandable)return[];const e=[];let t=0;const n=this.children;for(;;){const r=n[t++];if(!r)break;e.push(r,...r.expandedChildren)}return this.propertyClosingTag&&e.push(this.propertyClosingTag),e}get depth(){return this.parent.depth+1}get searchData(){return{property:this.property?.toLowerCase()||""}}failedStringify=!1;get isCopiable(){return"instance"!==this.type&&!this.failedStringify}get stringifiedData(){switch(this.type){case"object":case"array":try{return JSON.stringify(this.data,null,2)}catch(e){return runInAction(()=>{this.failedStringify=!0}),super.stringifiedData}default:switch(this.dataType){case"symbol":return`Symbol(${Symbol.keyFor(this.data)||""})`;case"string":return`"${super.stringifiedData}"`}return super.stringifiedData}}get operations(){return this.isCopiable?[{title:"Copy",icon:Copy,action:()=>navigator.clipboard.writeText(this.stringifiedData)}]:[]}static createKey(e,t){return`${e.key}-${t}`}static create(e,t,n,r,i){const o=i.cache??e.anyCache,a=`${PropertyListItem.createKey(i,t)}/list-item`;let s=o.get(a);return s||(s=new PropertyListItem(e,t,n,r,i),o.set(a,s)),s}}class ExtraListItem extends ListItem{get isFitted(){const{searchEngine:e}=this.devtools;if(!e.isActive)return!0;const t=e.segments[0];let n;return n=e.segments[1]?this.searchData.name===t:this.searchData.name.startsWith(t),n}get propertyListItems(){let e=Object.keys(this.data||{});return"none"!==this.devtools.sortPropertiesBy&&(e=e.sort((e,t)=>"asc"===this.devtools.sortPropertiesBy?e.localeCompare(t):t.localeCompare(e))),e.map((e,t)=>PropertyListItem.create(this.devtools,e,e,t,this))}get children(){return[...this.propertyListItems]}get depth(){return 0}searchData;displayName;constructor(e,t){const n="Extras";super(e,`extra$$$-${n}-`,t,void 0,new Map),this.displayName=n,this.searchData={name:n.toLowerCase().trim()},computed.struct(this,"propertyListItems"),makeObservable(this),untracked(()=>{this.expand()})}}const iconToggleButton="iconToggleButton_R48wm",activePosition="activePosition_IXsRn",option="option_a5IcR",active="active_6QS-2",css$4={iconToggleButton:iconToggleButton,activePosition:activePosition,option:option,active:active},IconToggleButton=({value:e,options:t,className:n,onUpdate:r})=>{const i=[];let o;return t.forEach((n,a)=>{const{icon:s,value:l}=n,u=e===l;u&&(o=a),i.push(jsxRuntimeExports.jsx("div",{className:cx(css$4.option,{[css$4.active]:u}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(t[a].value)},children:jsxRuntimeExports.jsx(s,{})},a))}),jsxRuntimeExports.jsxs("button",{className:cx(css$4.iconToggleButton,n),children:[jsxRuntimeExports.jsx("div",{className:css$4.activePosition,style:{"--index":o}}),i]})},root="root_Xsw1F",treeItemHeader="treeItemHeader_9gR6Q",treeItemLabel="treeItemLabel_eiMgP",treeItemMetaText="treeItemMetaText_cmfX0",treeItem="treeItem_sRXPA",vmTreeItem="vmTreeItem_t-7jc",extraTreeItem="extraTreeItem_z3KA1",css$3={root:root,treeItemHeader:treeItemHeader,treeItemLabel:treeItemLabel,treeItemMetaText:treeItemMetaText,treeItem:treeItem,vmTreeItem:vmTreeItem,extraTreeItem:extraTreeItem},expandButton="expandButton_B24E3",expanded="expanded_8-pD6",disabled="disabled_MBq1Q",vmContent="vmContent_TIK57",vmContentHeader="vmContentHeader_M1JNM",vmContentHeaderLogo="vmContentHeaderLogo_FRJDO",vmContentHeaderTitle="vmContentHeaderTitle_lYmde",vmContentHeaderTitleText="vmContentHeaderTitleText_RlIFH",vmContentControlPanel="vmContentControlPanel_CgUN9",vmContentInput="vmContentInput_29GM1",vmContentControlPanelActions="vmContentControlPanelActions_lONbA",filled="filled_6JZa0",vmContentVirtualized="vmContentVirtualized_lia62",gradientBlur="gradientBlur_-y-re",css$2={expandButton:expandButton,expanded:expanded,disabled:disabled,vmContent:vmContent,vmContentHeader:vmContentHeader,vmContentHeaderLogo:vmContentHeaderLogo,vmContentHeaderTitle:vmContentHeaderTitle,vmContentHeaderTitleText:vmContentHeaderTitleText,vmContentControlPanel:vmContentControlPanel,vmContentInput:vmContentInput,vmContentControlPanelActions:vmContentControlPanelActions,filled:filled,vmContentVirtualized:vmContentVirtualized,gradientBlur:gradientBlur},ExpandButton=({expandable:e,expanded:t,onClick:n,disabled:r,showIconAnyway:i})=>jsxRuntimeExports.jsx("span",{onClick:n,className:cx(css$2.expandButton,{[css$2.expandable]:e,[css$2.expanded]:t,[css$2.disabled]:r}),children:(e||i)&&jsxRuntimeExports.jsx(ChevronRight,{})}),ExtraListItemRender=observer(({item:e})=>jsxRuntimeExports.jsx("div",{className:cx(css$3.treeItem,css$3.extraTreeItem),"data-fitted":e.isFitted,"data-depth":e.depthLine,style:{"--level":e.depth},children:jsxRuntimeExports.jsxs("header",{className:css$3.treeItemHeader,children:[jsxRuntimeExports.jsx(ExpandButton,{showIconAnyway:"tree"===e.devtools.presentationMode,expandable:e.isExpandable,expanded:e.isExpanded}),jsxRuntimeExports.jsx("label",{className:css$3.treeItemLabel,title:e.displayName,children:e.displayName})]})})),property="property_sD8FG",expandable="expandable_np03F",instance="instance_jv3IW",primitive="primitive_v6LAV",boolean="boolean_Z6znK",number="number_U9H45",object2="object_bHf4I",bigint="bigint_HkgX8",symbol="symbol_oKSwT",string="string_87vm1",propertyName="propertyName_KicXG",propertyMeta="propertyMeta_Ia9ce",propertyValue="propertyValue_fYO2g",propertyOperations="propertyOperations_fT6Ez",css$1={property:property,expandable:expandable,instance:instance,primitive:primitive,boolean:boolean,number:number,object:object2,bigint:bigint,symbol:symbol,undefined:"undefined_6CapW",null:"null_lugoL",string:string,propertyName:propertyName,propertyMeta:propertyMeta,propertyValue:propertyValue,propertyOperations:propertyOperations},MetaListItemRender=observer(({item:e})=>jsxRuntimeExports.jsx("div",{className:cx(css$1.property,css$1.primitive),style:{"--level":e.depth},"data-fitted":e.isFitted,title:e.stringifiedData,"data-depth":e.depthLine,children:e.content})),ArrayPropertyContent=observer(({item:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:e.isExpanded?"[":e.isExpandable?"[...]":"[]"})]})),FunctionPropertyContent=observer(({item:e})=>{const t=Array.from({length:e.data.length},(e,t)=>`arg${t+1}`);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),`(${t.join(", ")})`]})}),InstancePropertyContent=observer(({item:e})=>{const t=e.data.constructor.name;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:`${t}`}),e.isExpanded&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ","{"]})]})}),ObjectPropertyContent=observer(({item:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:e.isExpanded?"{":e.isExpandable?"{...}":"{}"})]})),PrimitivePropertyContent=observer(({item:e})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[void 0===e.property?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{className:css$1.propertyName,children:e.property}),": "]}),jsxRuntimeExports.jsx("span",{className:css$1.propertyValue,children:e.stringifiedData})]})),PropertyListItemRender=observer(e=>{const{item:t}=e;let n=null;switch(e.item.type){case"array":n=jsxRuntimeExports.jsx(ArrayPropertyContent,{...e});break;case"function":n=jsxRuntimeExports.jsx(FunctionPropertyContent,{...e});break;case"instance":n=jsxRuntimeExports.jsx(InstancePropertyContent,{...e});break;case"object":n=jsxRuntimeExports.jsx(ObjectPropertyContent,{...e});break;case"primitive":n=jsxRuntimeExports.jsx(PrimitivePropertyContent,{...e})}return jsxRuntimeExports.jsxs("div",{className:cx(css$1.property,css$1[t.type],css$1[t.dataType],{[css$1.null]:null===t.data,[css$1.expandable]:t.isExpandable,[css$1.expanded]:t.isExpanded}),style:{"--level":t.depth,"--order":t.order},"data-fitted":t.isFitted,title:t.stringifiedData,onClick:e=>t.devtools.handlePropertyClick(t,e),"data-depth":t.depthLine,children:[n,t.extraContent,t.operations.length>0&&jsxRuntimeExports.jsx("div",{className:css$1.propertyOperations,children:t.operations.map(e=>jsxRuntimeExports.jsx("button",{title:e.title,className:css$1.propertyOperation,onClick:t=>{t.stopPropagation(),e.action()},children:jsxRuntimeExports.jsx(e.icon,{})},e.title))})]})}),VmListItemRender=observer(({item:e})=>jsxRuntimeExports.jsx("div",{className:cx(css$3.treeItem,css$3.vmTreeItem),"data-fitted":e.isFitted,"data-depth":e.depthLine,style:{"--level":e.depth},children:jsxRuntimeExports.jsxs("header",{className:css$3.treeItemHeader,onClick:()=>e.devtools.handleVmItemHeaderClick(e),children:[jsxRuntimeExports.jsx(ExpandButton,{showIconAnyway:"tree"===e.devtools.presentationMode,expandable:e.devtools.isExpandable(e),expanded:e.isExpanded}),jsxRuntimeExports.jsx("label",{className:css$3.treeItemLabel,title:e.displayName,children:e.displayName}),jsxRuntimeExports.jsx("span",{className:css$3.treeItemMetaText,title:e.data.id,children:e.data.id})]})})),VmDevtoolsContent=observer(({className:e,headerContent:t,...n})=>{const r=useViewModel();return jsxRuntimeExports.jsxs("div",{...n,className:cx(css$2.vmContent,e),ref:r.contentRef,children:[jsxRuntimeExports.jsxs("header",{className:css$2.vmContentHeader,children:[jsxRuntimeExports.jsx("div",{className:css$2.gradientBlur}),jsxRuntimeExports.jsxs("div",{className:css$2.vmContentHeaderTitle,children:[jsxRuntimeExports.jsx("img",{className:css$2.vmContentHeaderLogo,src:r.devtools.logoUrl}),jsxRuntimeExports.jsx("span",{className:css$2.vmContentHeaderTitleText,children:"mobx-view-model devtools"}),t]}),jsxRuntimeExports.jsxs("div",{className:css$2.vmContentControlPanel,children:[jsxRuntimeExports.jsxs("div",{className:css$2.vmContentControlPanelActions,children:[jsxRuntimeExports.jsx(IconToggleButton,{onUpdate:r.devtools.handleChangePresentationMode,options:[{value:"tree",icon:FolderTree},{value:"list",icon:ListUl}],value:r.devtools.presentationMode}),jsxRuntimeExports.jsx(IconToggleButton,{onUpdate:r.devtools.handleSortPropertiesChange,options:[{value:"none",icon:BarsDescendingAlignCenter},{value:"asc",icon:BarsAscendingAlignLeftArrowDown},{value:"desc",icon:BarsDescendingAlignLeftArrowUp}],value:r.devtools.sortPropertiesBy})]}),jsxRuntimeExports.jsxs("div",{className:`${css$2.vmContentInput} ${r.devtools.searchEngine.isActive&&css$2.filled}`,children:[jsxRuntimeExports.jsx(Magnifier,{}),jsxRuntimeExports.jsx("input",{ref:r.devtools.searchEngine.searchInputRef,autoFocus:!0,placeholder:"search by property path or ViewModel name"}),jsxRuntimeExports.jsx("button",{onClick:r.devtools.searchEngine.resetSearch,children:jsxRuntimeExports.jsx(Xmark,{})})]})]})]}),jsxRuntimeExports.jsx("div",{className:css$2.vmContentVirtualized,children:jsxRuntimeExports.jsx(te,{ref:r.devtools.scrollListRef,itemSize:22,data:r.devtools.listItems,keepMounted:[0],children:e=>e instanceof VMListItem?jsxRuntimeExports.jsx(VmListItemRender,{item:e},e.key):e instanceof ExtraListItem?jsxRuntimeExports.jsx(ExtraListItemRender,{item:e},e.key):e instanceof PropertyListItem?jsxRuntimeExports.jsx(PropertyListItemRender,{item:e},e.key):e instanceof MetaListItem?jsxRuntimeExports.jsx(MetaListItemRender,{item:e},e.key):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})})})]})}),vmPopup="vmPopup_0hkGL",closePopupButton="closePopupButton_igv9j",css={vmPopup:vmPopup,closePopupButton:closePopupButton},VmDevtoolsPopup=observer(()=>{const e=useViewModel();return jsxRuntimeExports.jsx(VmDevtoolsContent,{className:css.vmPopup,"data-position":e.devtools.position,headerContent:jsxRuntimeExports.jsx("button",{className:css.closePopupButton,onClick:e.devtools.hidePopup,children:jsxRuntimeExports.jsx(Xmark,{})})})});var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function getElementWindow$1(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function getElementDocument$1(e){return e&&e.ownerDocument?e.ownerDocument:document}var getOptions$1=function(e){return Array.prototype.reduce.call(e,function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,function(e,t){return t.toUpperCase()});switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e},{})};function addClasses$1(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function removeClasses$1(e,t){e&&t.split(" ").forEach(function(t){e.classList.remove(t)})}function classNamesToQuery$1(e){return".".concat(e.split(" ").join("."))}var canUseDOM$1=!("undefined"==typeof window||!window.document||!window.document.createElement),helpers=Object.freeze({__proto__:null,addClasses:addClasses$1,canUseDOM:canUseDOM$1,classNamesToQuery:classNamesToQuery$1,getElementDocument:getElementDocument$1,getElementWindow:getElementWindow$1,getOptions:getOptions$1,removeClasses:removeClasses$1}),cachedScrollbarWidth=null,cachedDevicePixelRatio=null;function scrollbarWidth(){if(null===cachedScrollbarWidth){if("undefined"==typeof document)return cachedScrollbarWidth=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),cachedScrollbarWidth=n}return cachedScrollbarWidth}canUseDOM$1&&window.addEventListener("resize",function(){cachedDevicePixelRatio!==window.devicePixelRatio&&(cachedDevicePixelRatio=window.devicePixelRatio,cachedScrollbarWidth=null)});var getElementWindow=getElementWindow$1,getElementDocument=getElementDocument$1,getOptions$2=getOptions$1,addClasses$2=addClasses$1,removeClasses=removeClasses$1,classNamesToQuery=classNamesToQuery$1,SimpleBarCore=function(){function e(t,n){void 0===n&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var e=getElementWindow(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,addClasses$2(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){removeClasses(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(addClasses$2(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){removeClasses(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(e){var t,n;r.axis.x.track.el&&r.axis.y.track.el&&r.axis.x.scrollbar.el&&r.axis.y.scrollbar.el&&(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.stopPropagation(),"pointerdown"===e.type&&"touch"!==e.pointerType&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y")))))},this.drag=function(t){var n,i,o,a,s,l,u,c,d,p,f;if(r.draggedAxis&&r.contentWrapperEl){var h=r.axis[r.draggedAxis].track,m=null!==(i=null===(n=h.rect)||void 0===n?void 0:n[r.axis[r.draggedAxis].sizeAttr])&&void 0!==i?i:0,b=r.axis[r.draggedAxis].scrollbar,g=null!==(a=null===(o=r.contentWrapperEl)||void 0===o?void 0:o[r.axis[r.draggedAxis].scrollSizeAttr])&&void 0!==a?a:0,v=parseInt(null!==(l=null===(s=r.elStyles)||void 0===s?void 0:s[r.axis[r.draggedAxis].sizeAttr])&&void 0!==l?l:"0px",10);t.preventDefault(),t.stopPropagation();var y=("y"===r.draggedAxis?t.pageY:t.pageX)-(null!==(c=null===(u=h.rect)||void 0===u?void 0:u[r.axis[r.draggedAxis].offsetAttr])&&void 0!==c?c:0)-r.axis[r.draggedAxis].dragOffset,x=(y="x"===r.draggedAxis&&r.isRtl?(null!==(p=null===(d=h.rect)||void 0===d?void 0:d[r.axis[r.draggedAxis].sizeAttr])&&void 0!==p?p:0)-b.size-y:y)/(m-b.size)*(g-v);"x"===r.draggedAxis&&r.isRtl&&(x=(null===(f=e.getRtlHelpers())||void 0===f?void 0:f.isScrollingToNegative)?-x:x),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=x}},this.onEndDrag=function(e){r.isDragging=!1;var t=getElementDocument(r.el),n=getElementWindow(r.el);e.preventDefault(),e.stopPropagation(),removeClasses(r.el,r.classNames.dragging),r.onStopScrolling(),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout(function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.options=__assign(__assign({},e.defaultOptions),n),this.classNames=__assign(__assign({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=throttle(this._onMouseMove,64),this.onWindowResize=debounce(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=debounce(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=debounce(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=null==n?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:scrollbarWidth()}catch(e){return scrollbarWidth()}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=getElementDocument(e),r=getElementWindow(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){canUseDOM$1&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(classNamesToQuery(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(classNamesToQuery(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(classNamesToQuery(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(classNamesToQuery(this.classNames.offset)),this.maskEl=this.el.querySelector(classNamesToQuery(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,classNamesToQuery(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(classNamesToQuery(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(classNamesToQuery(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(classNamesToQuery(this.classNames.track)).concat(classNamesToQuery(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(classNamesToQuery(this.classNames.track)).concat(classNamesToQuery(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(e=this.axis.x.track.el)||void 0===e?void 0:e.querySelector(classNamesToQuery(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(t=this.axis.y.track.el)||void 0===t?void 0:t.querySelector(classNamesToQuery(this.classNames.scrollbar)))||null,this.options.autoHide||(addClasses$2(this.axis.x.scrollbar.el,this.classNames.visible),addClasses$2(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,t=this,n=getElementWindow(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null===(e=this.contentWrapperEl)||void 0===e||e.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var r=!1,i=n.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){r&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=getElementWindow(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var s=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||l,"px"):"auto",this.placeholderEl.style.height="".concat(s,"px");var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&l>t,this.axis.y.isOverflowing=s>u,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>i-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){var t,n;if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var r,i=this.contentEl[this.axis[e].scrollSizeAttr],o=null!==(n=null===(t=this.axis[e].track.el)||void 0===t?void 0:t[this.axis[e].offsetSizeAttr])&&void 0!==n?n:0,a=o/i;return r=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r},e.prototype.positionScrollbar=function(t){var n,r,i;void 0===t&&(t="y");var o=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&o.el&&this.elStyles){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=(null===(n=this.axis[t].track.el)||void 0===n?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u="x"===t&&this.isRtl&&(null===(r=e.getRtlHelpers())||void 0===r?void 0:r.isScrollOriginAtZero)?-u:u,"x"===t&&this.isRtl&&(u=(null===(i=e.getRtlHelpers())||void 0===i?void 0:i.isScrollingToNegative)?u:-u);var c=u/(a-l),d=~~((s-o.size)*c);d="x"===t&&this.isRtl?-d+(s-o.size):d,o.el.style.transform="x"===t?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;t&&n&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(addClasses$2(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),this.isDragging||this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(removeClasses(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var t=this.axis[e];t.track.el&&t.scrollbar.el&&(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),addClasses$2(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?addClasses$2(t.scrollbar.el,this.classNames.hover):removeClasses(t.scrollbar.el,this.classNames.hover)):(removeClasses(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),removeClasses(this.axis[e].track.el,this.classNames.hover),removeClasses(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,t){var n;void 0===t&&(t="y"),this.isDragging=!0;var r=getElementDocument(this.el),i=getElementWindow(this.el),o=this.axis[t].scrollbar,a="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=a-((null===(n=o.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])||0),this.draggedAxis=t,addClasses$2(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,t){var n,r,i,o,a=this;void 0===t&&(t="y");var s=this.axis[t];if(this.options.clickOnTrack&&s.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var l=getElementWindow(this.el);this.axis[t].scrollbar.rect=s.scrollbar.el.getBoundingClientRect();var u=null!==(r=null===(n=this.axis[t].scrollbar.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])&&void 0!==r?r:0,c=parseInt(null!==(o=null===(i=this.elStyles)||void 0===i?void 0:i[this.axis[t].sizeAttr])&&void 0!==o?o:"0px",10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],p=("y"===t?this.mouseY-u:this.mouseX-u)<0?-1:1,f=-1===p?d-c:d+c,h=function(){a.contentWrapperEl&&(-1===p?d>f&&(d-=40,a.contentWrapperEl[a.axis[t].scrollOffsetAttr]=d,l.requestAnimationFrame(h)):d<f&&(d+=40,a.contentWrapperEl[a.axis[t].scrollOffsetAttr]=d,l.requestAnimationFrame(h)))};h()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var e=getElementWindow(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(e){return n.call(e,t)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=getOptions$2,e.helpers=helpers,e}(),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _a=SimpleBarCore.helpers,getOptions=_a.getOptions,addClasses=_a.addClasses,canUseDOM=_a.canUseDOM,SimpleBar=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return t.instances.set(n[0],i),i}return __extends(t,e),t.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(e){"init"===e.getAttribute("data-simplebar")||t.instances.has(e)||new t(e,getOptions(e.attributes))})},t.removeObserver=function(){var e;null===(e=t.globalObserver)||void 0===e||e.disconnect()},t.prototype.initDOM=function(){var e,t,n,r=this;if(!Array.prototype.filter.call(this.el.children,function(e){return e.classList.contains(r.classNames.wrapper)}).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),addClasses(this.wrapperEl,this.classNames.wrapper),addClasses(this.contentWrapperEl,this.classNames.contentWrapper),addClasses(this.offsetEl,this.classNames.offset),addClasses(this.maskEl,this.classNames.mask),addClasses(this.contentEl,this.classNames.contentEl),addClasses(this.placeholderEl,this.classNames.placeholder),addClasses(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),addClasses(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),null===(e=this.contentWrapperEl)||void 0===e||e.setAttribute("tabindex",this.options.tabIndex.toString()),null===(t=this.contentWrapperEl)||void 0===t||t.setAttribute("role","region"),null===(n=this.contentWrapperEl)||void 0===n||n.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var i=document.createElement("div"),o=document.createElement("div");addClasses(i,this.classNames.track),addClasses(o,this.classNames.scrollbar),i.appendChild(o),this.axis.x.track.el=i.cloneNode(!0),addClasses(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=i.cloneNode(!0),addClasses(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}SimpleBarCore.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},t.prototype.unMount=function(){SimpleBarCore.prototype.unMount.call(this),t.instances.delete(this.el)},t.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(t.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},t.handleMutations=function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!t.instances.has(e)&&document.documentElement.contains(e)&&new t(e,getOptions(e.attributes)):e.querySelectorAll("[data-simplebar]").forEach(function(e){"init"!==e.getAttribute("data-simplebar")&&!t.instances.has(e)&&document.documentElement.contains(e)&&new t(e,getOptions(e.attributes))}))}),e.removedNodes.forEach(function(e){var n;1===e.nodeType&&("init"===e.getAttribute("data-simplebar")?!document.documentElement.contains(e)&&(null===(n=t.instances.get(e))||void 0===n||n.unMount()):Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),function(e){var n;!document.documentElement.contains(e)&&(null===(n=t.instances.get(e))||void 0===n||n.unMount())}))})})},t.instances=new WeakMap,t}(SimpleBarCore);canUseDOM&&SimpleBar.initHtmlApi();class DevtoolsClientVM extends ViewModelImpl{devtools=this.payload.devtools;contentRef=createRef({meta:{scrollbar:null},onSet(e){const t=new SimpleBar(e);this.meta={scrollbar:t}}})}const DevtoolsClient=withViewModel(DevtoolsClientVM,({model:e})=>jsxRuntimeExports.jsx(ViewModelsProvider,{value:e.devtools.vmStore,children:jsxRuntimeExports.jsxs(ActiveViewModelProvider,{value:e,children:[jsxRuntimeExports.jsx(VmDevtoolsButton,{}),e.devtools.isPopupOpened&&"popup"===e.devtools.displayType&&jsxRuntimeExports.jsx(VmDevtoolsPopup,{})]})}));class KeyboardHandler2 extends KeyboardHandler$1{constructor(e){super({actions:[{shortcuts:["Ctrl+F12"],action:()=>{e.isPopupOpened?e.hidePopup():e.showPopup()}},{shortcuts:["Escape"],action:()=>{e.hidePopup()}},{shortcuts:["Ctrl+ArrowLeft"],action:()=>{e.collapseAllVms()}},{shortcuts:["Ctrl+ArrowRight"],action:()=>{e.expandAllVMs()}},{shortcuts:["Tab"],action:t=>{e.searchEngine.searchInputRef.meta.focused&&t.preventDefault()}},{shortcuts:["Ctrl+ArrowDown","PageDown"],action:t=>{e.scrollListRef.current&&(e.scrollListRef.current.scrollTo(e.scrollListRef.current.scrollOffset+400),e.searchEngine.searchInputRef.meta.focused&&(t.stopPropagation(),t.preventDefault()))}},{shortcuts:["Ctrl+ArrowUp","PageUp"],action:t=>{e.scrollListRef.current&&(e.scrollListRef.current.scrollTo(e.scrollListRef.current.scrollOffset-400),e.searchEngine.searchInputRef.meta.focused&&(t.stopPropagation(),t.preventDefault()))}}]})}}class ViewModelStoreImpl extends ViewModelStoreBase{constructor(e){super({...e,vmConfig:{observable:{viewModelStores:{useDecorators:!1},viewModels:{useDecorators:!1}}}})}}const createFocusableRef=e=>{const t=()=>{runInAction(()=>{n.meta.focused=document.activeElement===n.current})},n=createRef({meta:{focused:!1},onSet:(n,r)=>{t(),n.addEventListener("focus",t,!0),n.addEventListener("blur",t,!0),e?.onSet?.(n,r)},onUnset:n=>{e?.onUnset?.(n),n?.removeEventListener("focus",t,!0),n?.removeEventListener("blur",t,!0)}});return n};class SearchEngine{searchInputRef;fittedVmIds=new Set;rawSearchText;formattedSearchText;searchTextUpdateTimeout;segments=[];get isActive(){return!!this.formattedSearchText}setSearchText(e){if(this.rawSearchText=e,this.formattedSearchText=e.toLowerCase().trim(),this.segments.length=0,!this.formattedSearchText)return;let t=!0;for(let n=0;n<e.length;){const r=e[n];if(0===n&&"."===r){n++;continue}if(" "===r){n++;continue}if("."===r){t=!0,n++;continue}t&&(this.segments.push(""),t=!1);const i=this.segments.length-1;this.segments[i]+=r.toLowerCase(),n++}}resetSearch=()=>{clearTimeout(this.searchTextUpdateTimeout),this.setSearchText(""),this.searchInputRef.current&&(this.searchInputRef.current.value="")};constructor(){this.setSearchText(""),this.searchInputRef=createFocusableRef({onSet:e=>{this.rawSearchText&&e.value!==this.rawSearchText&&(e.value=this.rawSearchText),e.addEventListener("input",()=>{clearTimeout(this.searchTextUpdateTimeout),this.searchTextUpdateTimeout=setTimeout(()=>{this.setSearchText(e.value)},100)})}}),makeObservable(this,{rawSearchText:observable.ref,formattedSearchText:observable.ref,isActive:computed,segments:observable,setSearchText:action.bound})}}class ViewModelDevtools{constructor(e){this.config=e,this.isPopupOpened=!!this.config.defaultIsOpened,this.displayType="popup",this.position=this.storage.get({key:"position"})??this.config.position??"top-right",this.vmStore=new ViewModelStoreImpl,this.setExtras(this.config.extras),this.setStore(this.config.viewModels),this.presentationMode=this.storage.get({key:"presentationMode"})??"tree",this.sortPropertiesBy=this.storage.get({key:"sortPropertiesBy"})??"none",this.expandedVmItemsPaths=observable.set(),this.logoUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAACTFBMVEUvEQFCGQIuEQFAGALpZhjoZhlgJANAGALrZhiAMAR1KwNKHAJXIAM4FQFsKgWUNgL09PYvEQCgPARoJwNRHgL////U0dCoSRGSPgzFTQljKwl5MggjDQHm5ORWsU2JNATWWBC4SQxsMQysQAX6+vra2NbMUQtRJQxWLgu/SAXf3t62tLOyr6zCbTecSxmyQQLIxcDAvbqbmZaVeWeKc2WgRBB/OhCMOQu4QwPt7e/DuLCYz5NoOB2tqqdsaGVhW1NagUJtTjtkYCe8XyaRRRiHRRTi29XKyMfr0cG2p5yag3JfVElMR0GfcjBVMx/KWRnoYxXdXhRzQBB0OA3n6OrOzM2npKPLq5frs5TUpo2umounkHp3cm6mgWqBbGB8aVZzYVBXnktWT0eYY0BYZzOGazGmWi3IYid1QSOxTxZYSBQ6IBFFJA6lPAP/8uvR2s3qybbSwLW8q6G3nYigm4B8fHvxonW9kXWSjGhrgl5vZlpZqk+ZdE5cjE16fkzuh0q9eUetcUKAWEBpdj90bjg/PDfteDRZdTGwaS6sYCljVCl2TCflbCJZYSKlVSJfRh/dZB2OWR1nRhFfNRHO48zo1crjwamuv5SfqpSXtpGro4bEm4SMhoGFu3yQlHqFf3l5tHKtjHCFe2ageWLSimBnYFuue1hYlk1uikCCYT5XijqRWjdNPTLRcS5VVCC7WB3WYBtsTRYmHBNYPxLA3bzwv6LVsZ+4tJyQxYqHqHvVlnJzn2uegF39l1t1oEiKjzyAdjpeRDShaClCLR/JXT/FAAAABnRSTlP7uLgrtivDuZKUAAAElElEQVQ4yyWURXsbMRRFpyRF0vCM2a6ZmWPXYWqwTVKGMDRNUmZmZmZmZub+scrp3bzN+e65q8dMmQwBwqwKnLZTNrsVDW/Y8P3AgRJPKcK8ykHIMZOmMJMgAYAlimCwGQRsHdHpayOv2tsN4wJmIZTMEiSTGMgRQoCC/B5ZAYIu/fylIthsBlkAHCeZKaNChuE4yKkA2w2IAKtdhyNpWY76ZUwkFZkIUFmeNTPU6vUadSMOOg2htNWURRhRkwQBr9OlHXQNYTipbVHZ6tX5JiPGKgsgUBQWUgckMDX/woIFC+uwzEhcWz43J6ANVgEC+dpIrcJyEp8+MeR4k4hpz696PyTIdBMZ+jAv0RBqGXPUZkw1YT0AEtCFw/3NiVgiVbWMR5hCJnnZs5uB+PoeB4pk9OFaoM9adTVDXeXzGm7+9fI8AIwEsiwBV12BYIWZmCL6DIBGozGt8+6vCLmbOp8e0vF0uMKzrH7hnHii3GyGpgjiOcLr9QDubwlaFj3d9oD6GcIqQM1enVO25FobqD1x2IQIp/KAjPUtabCs7e/fHR7hGQAUDqKN4rz9fb/XrJrf76gzcuqexsY91xJaS2Pq7oNdNVaGZ4kElaWituXNaF50b3p8uoN451m02y6VaS1rkksXbwybGMJBSMBSSy5YPtqUs6zbse816HHn8jsuB91zGpNNi2/vyjAsYGmSWm080VblFj9WV589eylnSR7ZnHDnGrvvbNq2K8JgwALCJhtCFVsKjnwgftLnexsKxE4uHyiPB9ZV79s3uHuYwbSKA3e1oeYWn3GxO17lW34kblnke7F5SVCb8lUf6aibxSgYEAhS2mDfs1GuKqa98WLghltb5Tv+dX1obtdY5YBD384gpAIWbmkI9TR7Ve+awMrNe1eK1Hbw1voQbTr46PSrEsaOAVak+7F8d/OYz5sMiJc/uzQXB45Xfpo719L0tvrn85ISxmYFkFe7YmXdPaNecHSueO6cRrzV++TJDFF0rVt+pvVYEbIDs0RS2rKKLW2s0bgoJ7o077ZunT59hkajuXKm82XJBKRAs5R0l/VVnOWNxscB0eW63jt9AnJd6ch6JiCnwkJzyhJqqSjwDkdHXnSt3P7wPyQuNgkTkB1jOryrPth8v+Do7Oz8Vl+/6eD2CZ1LXKsXxtsp5EQAQph0B8vLl2FTpq7u6NEzxysfFiHRchsjq392CQN4IJkLa93xJd0Zkykbqct0vK6urOwtNlmWYgVFKQQh6yvsnl8fu0OLsD4dOXF6cO/eyu2910WNuGDnvfApqlPUwoYFq2bWr97D026driZ8uHVw8NeORz8uipoVK1wrdhZ1oHDvy8KF8zfqMUZpnW54uKbm8KFDf1pbWy+cn0lThFSWEG/WaOQF2SrbnbJ9Fo3H4xnJoKzDaNJTG90kQcIKCAAcLaVxGuz0B/k9HpssOJ0I20uKEGOGHCsIPAAoGnU6x52lfkPU7zfMNsjRUsFqmIAmmzmJIISBCpAgO6OCMC7T47H5BdqP2ikzlb5DxswBjAAhvFX2+2UrRgIyHDtwzGMoFexFZto/HbAJBdFwHOYAAAAASUVORK5CYII=",this.scrollContentRef=createRef(),this.scrollListRef=createRef(),this.keyboardHandler=new KeyboardHandler2(this),this.searchEngine=new SearchEngine,makeObservable(this,{position:observable.ref,isPopupOpened:observable.ref,projectVmStore:observable.ref,presentationMode:observable.ref,sortPropertiesBy:observable.ref,extras:observable.ref,setStore:action.bound,setExtras:action.bound,showPopup:action.bound,hidePopup:action.bound,handleChangePresentationMode:action.bound,handleSortPropertiesChange:action.bound,handleExpandVmPropertyClick:action.bound,expandAllVMs:action.bound,collapseAllVms:action.bound,handleExpandExtraPropertyClick:action.bound,isActive:computed,rootVmListItems:computed.struct,extraListItems:computed.struct}),this.render()}isPopupOpened;displayType;vmStore;projectVmStore;extras;expandedVmItemsPaths;logoUrl;scrollContentRef;keyboardHandler;searchEngine;presentationMode;sortPropertiesBy;position;scrollListRef;storage=new Storage({namespace:"mobx-view-model-devtools",type:"session"});anyCache=observable.map();autoscrollTimeout;get allVms(){const e=this.projectVmStore;return[...(e?.viewModels??new Map).values()].filter(e=>!ViewModelImpl.isPrototypeOf(e.constructor))}get rootVmListItems(){return this.allVms.filter(e=>{const t=this.getVmParams(e);return!t||null==t.parentViewModel}).map(e=>new VMListItem(this,e,this.allVms))}get extraListItems(){return this.extras?[new ExtraListItem(this,this.extras)]:[]}get listItems(){return[...this.rootVmListItems.flatMap(e=>e.expandedChildrenWithSelf),...this.extraListItems.flatMap(e=>e.expandedChildrenWithSelf)]}get isActive(){return!!this.projectVmStore||Object.keys(this.extras||{}).length>0}get containerId(){return this.config.containerId??"view-model-devtools"}isExpanded(e){return e.isExpanded||this.searchEngine.isActive}checkIsExtraPathExpanded(e){const t=`__EXTRA__%%%${e}`;return this.expandedVmItemsPaths.has(t)}handleExpandVmPropertyClick(e,t){const n=`${e.key}%%%${t}`;this.expandedVmItemsPaths.has(n)?this.expandedVmItemsPaths.delete(n):this.expandedVmItemsPaths.add(n)}handlePropertyClick(e,t){e.toggleExpand()}handleExpandExtraPropertyClick(e){const t=`__EXTRA__%%%${e}`;this.expandedVmItemsPaths.has(t)?this.expandedVmItemsPaths.delete(t):this.expandedVmItemsPaths.add(t)}handleVmItemHeaderClick(e){e.toggleExpand()}isExpandable(e){return e.isExpandable&&"list"!==this.presentationMode}getVmParams(e){return"vmParams"in e?e.vmParams:null}setStore(e){this.projectVmStore=e}setExtras(e){this.extras=e}handleChangePresentationMode=e=>{this.presentationMode="list"===e?"list":"tree",this.expandedVmItemsPaths.clear()};handleSortPropertiesChange=e=>{this.sortPropertiesBy=e};expandAllVMs(){}collapseAllVms(){}showPopup(){this.isPopupOpened=!0,this.expandAllVMs()}hidePopup(){this.isPopupOpened=!1}init(){this.isInitialized||(this.isInitialized=!0,reaction(()=>this.searchEngine.formattedSearchText,()=>{clearTimeout(this.autoscrollTimeout),this.autoscrollTimeout=setTimeout(()=>{if(!this.isActive)return void this.scrollListRef.current?.scrollTo(0);let e=0,t=0;document.querySelectorAll(`#${this.containerId} [data-fitted]`).forEach((n,r)=>{"true"===n.dataset.fitted&&n.dataset.depth&&n.dataset.depth.length>=t&&(t=n.dataset.depth.length,e=this.scrollListRef.current?.getItemOffset(r)??0)}),this.scrollListRef.current?.scrollTo(e)},200)}),this.storage.syncProperty(this,"sortPropertiesBy"),this.storage.syncProperty(this,"presentationMode"),this.storage.syncProperty(this,"position"))}isInitialized=!1;render(){let e=document.querySelector(`#${this.containerId}`);if(!e)if(e=document.createElement("div"),e.className=css$3.root,e.id=this.containerId,document.body){document.body.appendChild(e);clientExports.createRoot(e).render(reactExports.createElement(DevtoolsClient,{payload:{devtools:this}}))}else document.addEventListener("DOMContentLoaded",()=>{document.body.appendChild(e);clientExports.createRoot(e).render(reactExports.createElement(DevtoolsClient,{payload:{devtools:this}}))});this.init()}static _instance=null;static define(e){return ViewModelDevtools._instance||(ViewModelDevtools._instance=new ViewModelDevtools(e??{})),ViewModelDevtools._instance}static connect(e,t){const n=ViewModelDevtools.define();return n.setStore(e),n.setExtras(t),n}static connectViewModels(e){const t=ViewModelDevtools.define();return t.setStore(e),t}static connectExtras(e){const t=ViewModelDevtools.define();return t.setExtras(e),t}}export{ViewModelDevtools};