@hpcc-js/composite 3.2.2 → 3.2.4

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.
@@ -1,248 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".composite_ChartPanel>.body{margin:0;padding:0;display:flex;flex-flow:row}.composite_ChartPanel>.body>article{flex:3 1 60%;order:2}.composite_ChartPanel>.body>nav{flex:1 6 20%;order:1}.composite_ChartPanel>.body>aside{margin-left:4px;flex:1 6 20%;order:3}header,footer{display:block}.composite_Dermatology{background-color:#f8f8ff}.composite_Dermatology .common_Icon{background-color:red;opacity:.75}.composite_Dermatology .common_Icon .common_Shape{fill:#fff;stroke:#a9a9a9;cursor:pointer}.composite_Dermatology .common_Icon.show .common_Shape{fill:#d3d3d3}.composite_Dermatology .common_Icon .common_FAChar .common_Text{fill:#a9a9a9;cursor:pointer}.composite_Dermatology .other_PropertyEditor{font-family:sans-serif;font-size:11px}.composite_Dermatology .other_PropertyEditor input{font-family:sans-serif;font-size:11px;border:0px}.composite_Dermatology .other_PropertyEditor .property-label{height:unset}.composite_MegaChart-Info,.composite_MegaChart-Info *,.composite_MegaChart-Maximize,.composite_MegaChart-Maximize *{font-family:FontAwesome}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common"),require("@hpcc-js/api"),require("@hpcc-js/form"),require("@hpcc-js/other")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/api","@hpcc-js/form","@hpcc-js/other"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global["@hpcc-js/composite"]={},global["@hpcc-js/common"],global["@hpcc-js/api"],global["@hpcc-js/form"],global["@hpcc-js/other"]))})(this,function(exports2,common,api,form,other){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);const PKG_NAME="@hpcc-js/composite",PKG_VERSION="3.1.1",BUILD_VERSION="3.2.1";function getDefaultExportFromCjs$1(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var react={exports:{}},react_production_min={};/**
3
- * @license React
4
- * react.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r2=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a2){return a2===null||typeof a2!="object"?null:(a2=z&&a2[z]||a2["@@iterator"],typeof a2=="function"?a2:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a2,b,e){this.props=a2,this.context=b,this.refs=D,this.updater=e||B}E.prototype.isReactComponent={},E.prototype.setState=function(a2,b){if(typeof a2!="object"&&typeof a2!="function"&&a2!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a2,b,"setState")},E.prototype.forceUpdate=function(a2){this.updater.enqueueForceUpdate(this,a2,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a2,b,e){this.props=a2,this.context=b,this.refs=D,this.updater=e||B}var H=G.prototype=new F;H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(a2,b,e){var d,c2={},k2=null,h=null;if(b!=null)for(d in b.ref!==void 0&&(h=b.ref),b.key!==void 0&&(k2=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c2[d]=b[d]);var g=arguments.length-2;if(g===1)c2.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c2.children=f}if(a2&&a2.defaultProps)for(d in g=a2.defaultProps,g)c2[d]===void 0&&(c2[d]=g[d]);return{$$typeof:l,type:a2,key:k2,ref:h,props:c2,_owner:K.current}}function N(a2,b){return{$$typeof:l,type:a2.type,key:b,ref:a2.ref,props:a2.props,_owner:a2._owner}}function O(a2){return typeof a2=="object"&&a2!==null&&a2.$$typeof===l}function escape(a2){var b={"=":"=0",":":"=2"};return"$"+a2.replace(/[=:]/g,function(a3){return b[a3]})}var P=/\/+/g;function Q(a2,b){return typeof a2=="object"&&a2!==null&&a2.key!=null?escape(""+a2.key):b.toString(36)}function R(a2,b,e,d,c2){var k2=typeof a2;(k2==="undefined"||k2==="boolean")&&(a2=null);var h=!1;if(a2===null)h=!0;else switch(k2){case"string":case"number":h=!0;break;case"object":switch(a2.$$typeof){case l:case n:h=!0}}if(h)return h=a2,c2=c2(h),a2=d===""?"."+Q(h,0):d,I(c2)?(e="",a2!=null&&(e=a2.replace(P,"$&/")+"/"),R(c2,b,e,"",function(a3){return a3})):c2!=null&&(O(c2)&&(c2=N(c2,e+(!c2.key||h&&h.key===c2.key?"":(""+c2.key).replace(P,"$&/")+"/")+a2)),b.push(c2)),1;if(h=0,d=d===""?".":d+":",I(a2))for(var g=0;g<a2.length;g++){k2=a2[g];var f=d+Q(k2,g);h+=R(k2,b,e,f,c2)}else if(f=A(a2),typeof f=="function")for(a2=f.call(a2),g=0;!(k2=a2.next()).done;)k2=k2.value,f=d+Q(k2,g++),h+=R(k2,b,e,f,c2);else if(k2==="object")throw b=String(a2),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(a2).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}function S(a2,b,e){if(a2==null)return a2;var d=[],c2=0;return R(a2,d,"","",function(a3){return b.call(e,a3,c2++)}),d}function T(a2){if(a2._status===-1){var b=a2._result;b=b(),b.then(function(b2){(a2._status===0||a2._status===-1)&&(a2._status=1,a2._result=b2)},function(b2){(a2._status===0||a2._status===-1)&&(a2._status=2,a2._result=b2)}),a2._status===-1&&(a2._status=0,a2._result=b)}if(a2._status===1)return a2._result.default;throw a2._result}var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:S,forEach:function(a2,b,e){S(a2,function(){b.apply(this,arguments)},e)},count:function(a2){var b=0;return S(a2,function(){b++}),b},toArray:function(a2){return S(a2,function(a3){return a3})||[]},only:function(a2){if(!O(a2))throw Error("React.Children.only expected to receive a single React element child.");return a2}},react_production_min.Component=E,react_production_min.Fragment=p,react_production_min.Profiler=r2,react_production_min.PureComponent=G,react_production_min.StrictMode=q,react_production_min.Suspense=w,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,react_production_min.act=X,react_production_min.cloneElement=function(a2,b,e){if(a2==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a2+".");var d=C({},a2.props),c2=a2.key,k2=a2.ref,h=a2._owner;if(b!=null){if(b.ref!==void 0&&(k2=b.ref,h=K.current),b.key!==void 0&&(c2=""+b.key),a2.type&&a2.type.defaultProps)var g=a2.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=b[f]===void 0&&g!==void 0?g[f]:b[f])}var f=arguments.length-2;if(f===1)d.children=e;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a2.type,key:c2,ref:k2,props:d,_owner:h}},react_production_min.createContext=function(a2){return a2={$$typeof:u,_currentValue:a2,_currentValue2:a2,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},a2.Provider={$$typeof:t,_context:a2},a2.Consumer=a2},react_production_min.createElement=M,react_production_min.createFactory=function(a2){var b=M.bind(null,a2);return b.type=a2,b},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(a2){return{$$typeof:v,render:a2}},react_production_min.isValidElement=O,react_production_min.lazy=function(a2){return{$$typeof:y,_payload:{_status:-1,_result:a2},_init:T}},react_production_min.memo=function(a2,b){return{$$typeof:x,type:a2,compare:b===void 0?null:b}},react_production_min.startTransition=function(a2){var b=V.transition;V.transition={};try{a2()}finally{V.transition=b}},react_production_min.unstable_act=X,react_production_min.useCallback=function(a2,b){return U.current.useCallback(a2,b)},react_production_min.useContext=function(a2){return U.current.useContext(a2)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(a2){return U.current.useDeferredValue(a2)},react_production_min.useEffect=function(a2,b){return U.current.useEffect(a2,b)},react_production_min.useId=function(){return U.current.useId()},react_production_min.useImperativeHandle=function(a2,b,e){return U.current.useImperativeHandle(a2,b,e)},react_production_min.useInsertionEffect=function(a2,b){return U.current.useInsertionEffect(a2,b)},react_production_min.useLayoutEffect=function(a2,b){return U.current.useLayoutEffect(a2,b)},react_production_min.useMemo=function(a2,b){return U.current.useMemo(a2,b)},react_production_min.useReducer=function(a2,b,e){return U.current.useReducer(a2,b,e)},react_production_min.useRef=function(a2){return U.current.useRef(a2)},react_production_min.useState=function(a2){return U.current.useState(a2)},react_production_min.useSyncExternalStore=function(a2,b,e){return U.current.useSyncExternalStore(a2,b,e)},react_production_min.useTransition=function(){return U.current.useTransition()},react_production_min.version="18.3.1",react_production_min}var react_development={exports:{}};/**
11
- * @license React
12
- * react.development.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */react_development.exports;var hasRequiredReact_development;function requireReact_development(){return hasRequiredReact_development||(hasRequiredReact_development=1,function(module2,exports3){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ReactVersion="18.3.1",REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactCurrentDispatcher={current:null},ReactCurrentBatchConfig={transition:null},ReactCurrentActQueue={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ReactCurrentOwner={current:null},ReactDebugCurrentFrame={},currentExtraStackFrame=null;function setExtraStackFrame(stack){currentExtraStackFrame=stack}ReactDebugCurrentFrame.setExtraStackFrame=function(stack){currentExtraStackFrame=stack},ReactDebugCurrentFrame.getCurrentStack=null,ReactDebugCurrentFrame.getStackAddendum=function(){var stack="";currentExtraStackFrame&&(stack+=currentExtraStackFrame);var impl=ReactDebugCurrentFrame.getCurrentStack;return impl&&(stack+=impl()||""),stack};var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,ReactSharedInternals={ReactCurrentDispatcher,ReactCurrentBatchConfig,ReactCurrentOwner};ReactSharedInternals.ReactDebugCurrentFrame=ReactDebugCurrentFrame,ReactSharedInternals.ReactCurrentActQueue=ReactCurrentActQueue;function warn(format){{for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format,args)}}function error(format){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var didWarnStateUpdateForUnmountedComponent={};function warnNoop(publicInstance,callerName){{var _constructor=publicInstance.constructor,componentName=_constructor&&(_constructor.displayName||_constructor.name)||"ReactClass",warningKey=componentName+"."+callerName;if(didWarnStateUpdateForUnmountedComponent[warningKey])return;error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",callerName,componentName),didWarnStateUpdateForUnmountedComponent[warningKey]=!0}}var ReactNoopUpdateQueue={isMounted:function(publicInstance){return!1},enqueueForceUpdate:function(publicInstance,callback,callerName){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance,completeState,callback,callerName){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance,partialState,callback,callerName){warnNoop(publicInstance,"setState")}},assign=Object.assign,emptyObject={};Object.freeze(emptyObject);function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(typeof partialState!="object"&&typeof partialState!="function"&&partialState!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};{var deprecatedAPIs={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},defineDeprecationWarning=function(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})};for(var fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&defineDeprecationWarning(fnName,deprecatedAPIs[fnName])}function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,assign(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;function createRef(){var refObject={current:null};return Object.seal(refObject),refObject}var isArrayImpl=Array.isArray;function isArray(a2){return isArrayImpl(a2)}function typeName(value){{var hasToStringTag=typeof Symbol=="function"&&Symbol.toStringTag,type=hasToStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object";return type}}function willCoercionThrow(value){try{return testStringCoercion(value),!1}catch{return!0}}function testStringCoercion(value){return""+value}function checkKeyStringCoercion(value){if(willCoercionThrow(value))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value)),testStringCoercion(value)}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return getComponentNameFromType(init(payload))}catch{return null}}}return null}var hasOwnProperty=Object.prototype.hasOwnProperty,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown,didWarnAboutStringRefs;didWarnAboutStringRefs={};function hasValidRef(config){if(hasOwnProperty.call(config,"ref")){var getter=Object.getOwnPropertyDescriptor(config,"ref").get;if(getter&&getter.isReactWarning)return!1}return config.ref!==void 0}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){var warnAboutAccessingKey=function(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function defineRefPropWarningGetter(props,displayName){var warnAboutAccessingRef=function(){specialPropRefWarningShown||(specialPropRefWarningShown=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(props,"ref",{get:warnAboutAccessingRef,configurable:!0})}function warnIfStringRefCannotBeAutoConverted(config){if(typeof config.ref=="string"&&ReactCurrentOwner.current&&config.__self&&ReactCurrentOwner.current.stateNode!==config.__self){var componentName=getComponentNameFromType(ReactCurrentOwner.current.type);didWarnAboutStringRefs[componentName]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',componentName,config.ref),didWarnAboutStringRefs[componentName]=!0)}}var ReactElement=function(type,key,ref,self2,source,owner,props){var element={$$typeof:REACT_ELEMENT_TYPE,type,key,ref,props,_owner:owner};return element._store={},Object.defineProperty(element._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(element,"_self",{configurable:!1,enumerable:!1,writable:!1,value:self2}),Object.defineProperty(element,"_source",{configurable:!1,enumerable:!1,writable:!1,value:source}),Object.freeze&&(Object.freeze(element.props),Object.freeze(element)),element};function createElement(type,config,children){var propName,props={},key=null,ref=null,self2=null,source=null;if(config!=null){hasValidRef(config)&&(ref=config.ref,warnIfStringRefCannotBeAutoConverted(config)),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key),self2=config.__self===void 0?null:config.__self,source=config.__source===void 0?null:config.__source;for(propName in config)hasOwnProperty.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(props[propName]=config[propName])}var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(childrenLength>1){for(var childArray=Array(childrenLength),i=0;i<childrenLength;i++)childArray[i]=arguments[i+2];Object.freeze&&Object.freeze(childArray),props.children=childArray}if(type&&type.defaultProps){var defaultProps=type.defaultProps;for(propName in defaultProps)props[propName]===void 0&&(props[propName]=defaultProps[propName])}if(key||ref){var displayName=typeof type=="function"?type.displayName||type.name||"Unknown":type;key&&defineKeyPropWarningGetter(props,displayName),ref&&defineRefPropWarningGetter(props,displayName)}return ReactElement(type,key,ref,self2,source,ReactCurrentOwner.current,props)}function cloneAndReplaceKey(oldElement,newKey){var newElement=ReactElement(oldElement.type,newKey,oldElement.ref,oldElement._self,oldElement._source,oldElement._owner,oldElement.props);return newElement}function cloneElement(element,config,children){if(element==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+element+".");var propName,props=assign({},element.props),key=element.key,ref=element.ref,self2=element._self,source=element._source,owner=element._owner;if(config!=null){hasValidRef(config)&&(ref=config.ref,owner=ReactCurrentOwner.current),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key);var defaultProps;element.type&&element.type.defaultProps&&(defaultProps=element.type.defaultProps);for(propName in config)hasOwnProperty.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(config[propName]===void 0&&defaultProps!==void 0?props[propName]=defaultProps[propName]:props[propName]=config[propName])}var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(childrenLength>1){for(var childArray=Array(childrenLength),i=0;i<childrenLength;i++)childArray[i]=arguments[i+2];props.children=childArray}return ReactElement(element.type,key,ref,self2,source,owner,props)}function isValidElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}var SEPARATOR=".",SUBSEPARATOR=":";function escape(key){var escapeRegex=/[=:]/g,escaperLookup={"=":"=0",":":"=2"},escapedString=key.replace(escapeRegex,function(match){return escaperLookup[match]});return"$"+escapedString}var didWarnAboutMaps=!1,userProvidedKeyEscapeRegex=/\/+/g;function escapeUserProvidedKey(text){return text.replace(userProvidedKeyEscapeRegex,"$&/")}function getElementKey(element,index){return typeof element=="object"&&element!==null&&element.key!=null?(checkKeyStringCoercion(element.key),escape(""+element.key)):index.toString(36)}function mapIntoArray(children,array,escapedPrefix,nameSoFar,callback){var type=typeof children;(type==="undefined"||type==="boolean")&&(children=null);var invokeCallback=!1;if(children===null)invokeCallback=!0;else switch(type){case"string":case"number":invokeCallback=!0;break;case"object":switch(children.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:invokeCallback=!0}}if(invokeCallback){var _child=children,mappedChild=callback(_child),childKey=nameSoFar===""?SEPARATOR+getElementKey(_child,0):nameSoFar;if(isArray(mappedChild)){var escapedChildKey="";childKey!=null&&(escapedChildKey=escapeUserProvidedKey(childKey)+"/"),mapIntoArray(mappedChild,array,escapedChildKey,"",function(c2){return c2})}else mappedChild!=null&&(isValidElement(mappedChild)&&(mappedChild.key&&(!_child||_child.key!==mappedChild.key)&&checkKeyStringCoercion(mappedChild.key),mappedChild=cloneAndReplaceKey(mappedChild,escapedPrefix+(mappedChild.key&&(!_child||_child.key!==mappedChild.key)?escapeUserProvidedKey(""+mappedChild.key)+"/":"")+childKey)),array.push(mappedChild));return 1}var child,nextName,subtreeCount=0,nextNamePrefix=nameSoFar===""?SEPARATOR:nameSoFar+SUBSEPARATOR;if(isArray(children))for(var i=0;i<children.length;i++)child=children[i],nextName=nextNamePrefix+getElementKey(child,i),subtreeCount+=mapIntoArray(child,array,escapedPrefix,nextName,callback);else{var iteratorFn=getIteratorFn(children);if(typeof iteratorFn=="function"){var iterableChildren=children;iteratorFn===iterableChildren.entries&&(didWarnAboutMaps||warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),didWarnAboutMaps=!0);for(var iterator=iteratorFn.call(iterableChildren),step,ii=0;!(step=iterator.next()).done;)child=step.value,nextName=nextNamePrefix+getElementKey(child,ii++),subtreeCount+=mapIntoArray(child,array,escapedPrefix,nextName,callback)}else if(type==="object"){var childrenString=String(children);throw new Error("Objects are not valid as a React child (found: "+(childrenString==="[object Object]"?"object with keys {"+Object.keys(children).join(", ")+"}":childrenString)+"). If you meant to render a collection of children, use an array instead.")}}return subtreeCount}function mapChildren(children,func,context){if(children==null)return children;var result=[],count=0;return mapIntoArray(children,result,"","",function(child){return func.call(context,child,count++)}),result}function countChildren(children){var n=0;return mapChildren(children,function(){n++}),n}function forEachChildren(children,forEachFunc,forEachContext){mapChildren(children,function(){forEachFunc.apply(this,arguments)},forEachContext)}function toArray(children){return mapChildren(children,function(child){return child})||[]}function onlyChild(children){if(!isValidElement(children))throw new Error("React.Children.only expected to receive a single React element child.");return children}function createContext(defaultValue){var context={$$typeof:REACT_CONTEXT_TYPE,_currentValue:defaultValue,_currentValue2:defaultValue,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};context.Provider={$$typeof:REACT_PROVIDER_TYPE,_context:context};var hasWarnedAboutUsingNestedContextConsumers=!1,hasWarnedAboutUsingConsumerProvider=!1,hasWarnedAboutDisplayNameOnConsumer=!1;{var Consumer={$$typeof:REACT_CONTEXT_TYPE,_context:context};Object.defineProperties(Consumer,{Provider:{get:function(){return hasWarnedAboutUsingConsumerProvider||(hasWarnedAboutUsingConsumerProvider=!0,error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),context.Provider},set:function(_Provider){context.Provider=_Provider}},_currentValue:{get:function(){return context._currentValue},set:function(_currentValue){context._currentValue=_currentValue}},_currentValue2:{get:function(){return context._currentValue2},set:function(_currentValue2){context._currentValue2=_currentValue2}},_threadCount:{get:function(){return context._threadCount},set:function(_threadCount){context._threadCount=_threadCount}},Consumer:{get:function(){return hasWarnedAboutUsingNestedContextConsumers||(hasWarnedAboutUsingNestedContextConsumers=!0,error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),context.Consumer}},displayName:{get:function(){return context.displayName},set:function(displayName){hasWarnedAboutDisplayNameOnConsumer||(warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",displayName),hasWarnedAboutDisplayNameOnConsumer=!0)}}}),context.Consumer=Consumer}return context._currentRenderer=null,context._currentRenderer2=null,context}var Uninitialized=-1,Pending=0,Resolved=1,Rejected=2;function lazyInitializer(payload){if(payload._status===Uninitialized){var ctor=payload._result,thenable=ctor();if(thenable.then(function(moduleObject2){if(payload._status===Pending||payload._status===Uninitialized){var resolved=payload;resolved._status=Resolved,resolved._result=moduleObject2}},function(error2){if(payload._status===Pending||payload._status===Uninitialized){var rejected=payload;rejected._status=Rejected,rejected._result=error2}}),payload._status===Uninitialized){var pending=payload;pending._status=Pending,pending._result=thenable}}if(payload._status===Resolved){var moduleObject=payload._result;return moduleObject===void 0&&error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
19
-
20
- Your code should look like:
21
- const MyComponent = lazy(() => import('./MyComponent'))
22
-
23
- Did you accidentally put curly braces around the import?`,moduleObject),"default"in moduleObject||error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
24
-
25
- Your code should look like:
26
- const MyComponent = lazy(() => import('./MyComponent'))`,moduleObject),moduleObject.default}else throw payload._result}function lazy(ctor){var payload={_status:Uninitialized,_result:ctor},lazyType={$$typeof:REACT_LAZY_TYPE,_payload:payload,_init:lazyInitializer};{var defaultProps,propTypes;Object.defineProperties(lazyType,{defaultProps:{configurable:!0,get:function(){return defaultProps},set:function(newDefaultProps){error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),defaultProps=newDefaultProps,Object.defineProperty(lazyType,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return propTypes},set:function(newPropTypes){error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),propTypes=newPropTypes,Object.defineProperty(lazyType,"propTypes",{enumerable:!0})}}})}return lazyType}function forwardRef(render){render!=null&&render.$$typeof===REACT_MEMO_TYPE?error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof render!="function"?error("forwardRef requires a render function but was given %s.",render===null?"null":typeof render):render.length!==0&&render.length!==2&&error("forwardRef render functions accept exactly two parameters: props and ref. %s",render.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),render!=null&&(render.defaultProps!=null||render.propTypes!=null)&&error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var elementType={$$typeof:REACT_FORWARD_REF_TYPE,render};{var ownName;Object.defineProperty(elementType,"displayName",{enumerable:!1,configurable:!0,get:function(){return ownName},set:function(name){ownName=name,!render.name&&!render.displayName&&(render.displayName=name)}})}return elementType}var REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");function isValidElementType(type){return!!(typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==void 0))}function memo(type,compare){isValidElementType(type)||error("memo: The first argument must be a component. Instead received: %s",type===null?"null":typeof type);var elementType={$$typeof:REACT_MEMO_TYPE,type,compare:compare===void 0?null:compare};{var ownName;Object.defineProperty(elementType,"displayName",{enumerable:!1,configurable:!0,get:function(){return ownName},set:function(name){ownName=name,!type.name&&!type.displayName&&(type.displayName=name)}})}return elementType}function resolveDispatcher(){var dispatcher=ReactCurrentDispatcher.current;return dispatcher===null&&error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
- 2. You might be breaking the Rules of Hooks
29
- 3. You might have more than one copy of React in the same app
30
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),dispatcher}function useContext(Context){var dispatcher=resolveDispatcher();if(Context._context!==void 0){var realContext=Context._context;realContext.Consumer===Context?error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):realContext.Provider===Context&&error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return dispatcher.useContext(Context)}function useState(initialState){var dispatcher=resolveDispatcher();return dispatcher.useState(initialState)}function useReducer(reducer,initialArg,init){var dispatcher=resolveDispatcher();return dispatcher.useReducer(reducer,initialArg,init)}function useRef(initialValue){var dispatcher=resolveDispatcher();return dispatcher.useRef(initialValue)}function useEffect(create2,deps){var dispatcher=resolveDispatcher();return dispatcher.useEffect(create2,deps)}function useInsertionEffect(create2,deps){var dispatcher=resolveDispatcher();return dispatcher.useInsertionEffect(create2,deps)}function useLayoutEffect2(create2,deps){var dispatcher=resolveDispatcher();return dispatcher.useLayoutEffect(create2,deps)}function useCallback(callback,deps){var dispatcher=resolveDispatcher();return dispatcher.useCallback(callback,deps)}function useMemo(create2,deps){var dispatcher=resolveDispatcher();return dispatcher.useMemo(create2,deps)}function useImperativeHandle(ref,create2,deps){var dispatcher=resolveDispatcher();return dispatcher.useImperativeHandle(ref,create2,deps)}function useDebugValue(value,formatterFn){{var dispatcher=resolveDispatcher();return dispatcher.useDebugValue(value,formatterFn)}}function useTransition(){var dispatcher=resolveDispatcher();return dispatcher.useTransition()}function useDeferredValue(value){var dispatcher=resolveDispatcher();return dispatcher.useDeferredValue(value)}function useId(){var dispatcher=resolveDispatcher();return dispatcher.useId()}function useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var dispatcher=resolveDispatcher();return dispatcher.useSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)}var disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher$1=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x){var match=x.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return`
31
- `+prefix+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher$1.current,ReactCurrentDispatcher$1.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x){control=x}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x){control=x}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(`
32
- `),controlLines=control.stack.split(`
33
- `),s2=sampleLines.length-1,c2=controlLines.length-1;s2>=1&&c2>=0&&sampleLines[s2]!==controlLines[c2];)c2--;for(;s2>=1&&c2>=0;s2--,c2--)if(sampleLines[s2]!==controlLines[c2]){if(s2!==1||c2!==1)do if(s2--,c2--,c2<0||sampleLines[s2]!==controlLines[c2]){var _frame=`
34
- `+sampleLines[s2].replace(" at new "," at ");return fn.displayName&&_frame.includes("<anonymous>")&&(_frame=_frame.replace("<anonymous>",fn.displayName)),typeof fn=="function"&&componentFrameCache.set(fn,_frame),_frame}while(s2>=1&&c2>=0);break}}}finally{reentry=!1,ReactCurrentDispatcher$1.current=previousDispatcher,reenableLogs(),Error.prepareStackTrace=previousPrepareStackTrace}var name=fn?fn.displayName||fn.name:"",syntheticFrame=name?describeBuiltInComponentFrame(name):"";return typeof fn=="function"&&componentFrameCache.set(fn,syntheticFrame),syntheticFrame}function describeFunctionComponentFrame(fn,source,ownerFn){return describeNativeComponentFrame(fn,!1)}function shouldConstruct(Component2){var prototype=Component2.prototype;return!!(prototype&&prototype.isReactComponent)}function describeUnknownElementTypeFrameInDEV(type,source,ownerFn){if(type==null)return"";if(typeof type=="function")return describeNativeComponentFrame(type,shouldConstruct(type));if(typeof type=="string")return describeBuiltInComponentFrame(type);switch(type){case REACT_SUSPENSE_TYPE:return describeBuiltInComponentFrame("Suspense");case REACT_SUSPENSE_LIST_TYPE:return describeBuiltInComponentFrame("SuspenseList")}if(typeof type=="object")switch(type.$$typeof){case REACT_FORWARD_REF_TYPE:return describeFunctionComponentFrame(type.render);case REACT_MEMO_TYPE:return describeUnknownElementTypeFrameInDEV(type.type,source,ownerFn);case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return describeUnknownElementTypeFrameInDEV(init(payload),source,ownerFn)}catch{}}}return""}var loggedTypeFailures={},ReactDebugCurrentFrame$1=ReactSharedInternals.ReactDebugCurrentFrame;function setCurrentlyValidatingElement(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);ReactDebugCurrentFrame$1.setExtraStackFrame(stack)}else ReactDebugCurrentFrame$1.setExtraStackFrame(null)}function checkPropTypes(typeSpecs,values,location,componentName,element){{var has=Function.call.bind(hasOwnProperty);for(var typeSpecName in typeSpecs)if(has(typeSpecs,typeSpecName)){var error$1=void 0;try{if(typeof typeSpecs[typeSpecName]!="function"){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw err.name="Invariant Violation",err}error$1=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ex){error$1=ex}error$1&&!(error$1 instanceof Error)&&(setCurrentlyValidatingElement(element),error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",componentName||"React class",location,typeSpecName,typeof error$1),setCurrentlyValidatingElement(null)),error$1 instanceof Error&&!(error$1.message in loggedTypeFailures)&&(loggedTypeFailures[error$1.message]=!0,setCurrentlyValidatingElement(element),error("Failed %s type: %s",location,error$1.message),setCurrentlyValidatingElement(null))}}}function setCurrentlyValidatingElement$1(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);setExtraStackFrame(stack)}else setExtraStackFrame(null)}var propTypesMisspellWarningShown;propTypesMisspellWarningShown=!1;function getDeclarationErrorAddendum(){if(ReactCurrentOwner.current){var name=getComponentNameFromType(ReactCurrentOwner.current.type);if(name)return`
35
-
36
- Check the render method of \``+name+"`."}return""}function getSourceInfoErrorAddendum(source){if(source!==void 0){var fileName=source.fileName.replace(/^.*[\\\/]/,""),lineNumber=source.lineNumber;return`
37
-
38
- Check your code at `+fileName+":"+lineNumber+"."}return""}function getSourceInfoErrorAddendumForProps(elementProps){return elementProps!=null?getSourceInfoErrorAddendum(elementProps.__source):""}var ownerHasKeyUseWarning={};function getCurrentComponentErrorInfo(parentType){var info=getDeclarationErrorAddendum();if(!info){var parentName=typeof parentType=="string"?parentType:parentType.displayName||parentType.name;parentName&&(info=`
39
-
40
- Check the top-level render call using <`+parentName+">.")}return info}function validateExplicitKey(element,parentType){if(!(!element._store||element._store.validated||element.key!=null)){element._store.validated=!0;var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);if(!ownerHasKeyUseWarning[currentComponentErrorInfo]){ownerHasKeyUseWarning[currentComponentErrorInfo]=!0;var childOwner="";element&&element._owner&&element._owner!==ReactCurrentOwner.current&&(childOwner=" It was passed a child from "+getComponentNameFromType(element._owner.type)+"."),setCurrentlyValidatingElement$1(element),error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',currentComponentErrorInfo,childOwner),setCurrentlyValidatingElement$1(null)}}}function validateChildKeys(node,parentType){if(typeof node=="object"){if(isArray(node))for(var i=0;i<node.length;i++){var child=node[i];isValidElement(child)&&validateExplicitKey(child,parentType)}else if(isValidElement(node))node._store&&(node._store.validated=!0);else if(node){var iteratorFn=getIteratorFn(node);if(typeof iteratorFn=="function"&&iteratorFn!==node.entries)for(var iterator=iteratorFn.call(node),step;!(step=iterator.next()).done;)isValidElement(step.value)&&validateExplicitKey(step.value,parentType)}}}function validatePropTypes(element){{var type=element.type;if(type==null||typeof type=="string")return;var propTypes;if(typeof type=="function")propTypes=type.propTypes;else if(typeof type=="object"&&(type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MEMO_TYPE))propTypes=type.propTypes;else return;if(propTypes){var name=getComponentNameFromType(type);checkPropTypes(propTypes,element.props,"prop",name,element)}else if(type.PropTypes!==void 0&&!propTypesMisspellWarningShown){propTypesMisspellWarningShown=!0;var _name=getComponentNameFromType(type);error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_name||"Unknown")}typeof type.getDefaultProps=="function"&&!type.getDefaultProps.isReactClassApproved&&error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function validateFragmentProps(fragment){{for(var keys=Object.keys(fragment.props),i=0;i<keys.length;i++){var key=keys[i];if(key!=="children"&&key!=="key"){setCurrentlyValidatingElement$1(fragment),error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",key),setCurrentlyValidatingElement$1(null);break}}fragment.ref!==null&&(setCurrentlyValidatingElement$1(fragment),error("Invalid attribute `ref` supplied to `React.Fragment`."),setCurrentlyValidatingElement$1(null))}}function createElementWithValidation(type,props,children){var validType=isValidElementType(type);if(!validType){var info="";(type===void 0||typeof type=="object"&&type!==null&&Object.keys(type).length===0)&&(info+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var sourceInfo=getSourceInfoErrorAddendumForProps(props);sourceInfo?info+=sourceInfo:info+=getDeclarationErrorAddendum();var typeString;type===null?typeString="null":isArray(type)?typeString="array":type!==void 0&&type.$$typeof===REACT_ELEMENT_TYPE?(typeString="<"+(getComponentNameFromType(type.type)||"Unknown")+" />",info=" Did you accidentally export a JSX literal instead of a component?"):typeString=typeof type,error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",typeString,info)}var element=createElement.apply(this,arguments);if(element==null)return element;if(validType)for(var i=2;i<arguments.length;i++)validateChildKeys(arguments[i],type);return type===REACT_FRAGMENT_TYPE?validateFragmentProps(element):validatePropTypes(element),element}var didWarnAboutDeprecatedCreateFactory=!1;function createFactoryWithValidation(type){var validatedFactory=createElementWithValidation.bind(null,type);return validatedFactory.type=type,didWarnAboutDeprecatedCreateFactory||(didWarnAboutDeprecatedCreateFactory=!0,warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(validatedFactory,"type",{enumerable:!1,get:function(){return warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:type}),type}}),validatedFactory}function cloneElementWithValidation(element,props,children){for(var newElement=cloneElement.apply(this,arguments),i=2;i<arguments.length;i++)validateChildKeys(arguments[i],newElement.type);return validatePropTypes(newElement),newElement}function startTransition(scope,options){var prevTransition=ReactCurrentBatchConfig.transition;ReactCurrentBatchConfig.transition={};var currentTransition=ReactCurrentBatchConfig.transition;ReactCurrentBatchConfig.transition._updatedFibers=new Set;try{scope()}finally{if(ReactCurrentBatchConfig.transition=prevTransition,prevTransition===null&&currentTransition._updatedFibers){var updatedFibersCount=currentTransition._updatedFibers.size;updatedFibersCount>10&&warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),currentTransition._updatedFibers.clear()}}}var didWarnAboutMessageChannel=!1,enqueueTaskImpl=null;function enqueueTask(task){if(enqueueTaskImpl===null)try{var requireString=("require"+Math.random()).slice(0,7),nodeRequire=module2&&module2[requireString];enqueueTaskImpl=nodeRequire.call(module2,"timers").setImmediate}catch{enqueueTaskImpl=function(callback){didWarnAboutMessageChannel===!1&&(didWarnAboutMessageChannel=!0,typeof MessageChannel>"u"&&error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var channel=new MessageChannel;channel.port1.onmessage=callback,channel.port2.postMessage(void 0)}}return enqueueTaskImpl(task)}var actScopeDepth=0,didWarnNoAwaitAct=!1;function act(callback){{var prevActScopeDepth=actScopeDepth;actScopeDepth++,ReactCurrentActQueue.current===null&&(ReactCurrentActQueue.current=[]);var prevIsBatchingLegacy=ReactCurrentActQueue.isBatchingLegacy,result;try{if(ReactCurrentActQueue.isBatchingLegacy=!0,result=callback(),!prevIsBatchingLegacy&&ReactCurrentActQueue.didScheduleLegacyUpdate){var queue=ReactCurrentActQueue.current;queue!==null&&(ReactCurrentActQueue.didScheduleLegacyUpdate=!1,flushActQueue(queue))}}catch(error2){throw popActScope(prevActScopeDepth),error2}finally{ReactCurrentActQueue.isBatchingLegacy=prevIsBatchingLegacy}if(result!==null&&typeof result=="object"&&typeof result.then=="function"){var thenableResult=result,wasAwaited=!1,thenable={then:function(resolve,reject){wasAwaited=!0,thenableResult.then(function(returnValue2){popActScope(prevActScopeDepth),actScopeDepth===0?recursivelyFlushAsyncActWork(returnValue2,resolve,reject):resolve(returnValue2)},function(error2){popActScope(prevActScopeDepth),reject(error2)})}};return!didWarnNoAwaitAct&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){wasAwaited||(didWarnNoAwaitAct=!0,error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),thenable}else{var returnValue=result;if(popActScope(prevActScopeDepth),actScopeDepth===0){var _queue=ReactCurrentActQueue.current;_queue!==null&&(flushActQueue(_queue),ReactCurrentActQueue.current=null);var _thenable={then:function(resolve,reject){ReactCurrentActQueue.current===null?(ReactCurrentActQueue.current=[],recursivelyFlushAsyncActWork(returnValue,resolve,reject)):resolve(returnValue)}};return _thenable}else{var _thenable2={then:function(resolve,reject){resolve(returnValue)}};return _thenable2}}}}function popActScope(prevActScopeDepth){prevActScopeDepth!==actScopeDepth-1&&error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),actScopeDepth=prevActScopeDepth}function recursivelyFlushAsyncActWork(returnValue,resolve,reject){{var queue=ReactCurrentActQueue.current;if(queue!==null)try{flushActQueue(queue),enqueueTask(function(){queue.length===0?(ReactCurrentActQueue.current=null,resolve(returnValue)):recursivelyFlushAsyncActWork(returnValue,resolve,reject)})}catch(error2){reject(error2)}else resolve(returnValue)}}var isFlushing=!1;function flushActQueue(queue){if(!isFlushing){isFlushing=!0;var i=0;try{for(;i<queue.length;i++){var callback=queue[i];do callback=callback(!0);while(callback!==null)}queue.length=0}catch(error2){throw queue=queue.slice(i+1),error2}finally{isFlushing=!1}}}var createElement$1=createElementWithValidation,cloneElement$1=cloneElementWithValidation,createFactory=createFactoryWithValidation,Children={map:mapChildren,forEach:forEachChildren,count:countChildren,toArray,only:onlyChild};exports3.Children=Children,exports3.Component=Component,exports3.Fragment=REACT_FRAGMENT_TYPE,exports3.Profiler=REACT_PROFILER_TYPE,exports3.PureComponent=PureComponent,exports3.StrictMode=REACT_STRICT_MODE_TYPE,exports3.Suspense=REACT_SUSPENSE_TYPE,exports3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ReactSharedInternals,exports3.act=act,exports3.cloneElement=cloneElement$1,exports3.createContext=createContext,exports3.createElement=createElement$1,exports3.createFactory=createFactory,exports3.createRef=createRef,exports3.forwardRef=forwardRef,exports3.isValidElement=isValidElement,exports3.lazy=lazy,exports3.memo=memo,exports3.startTransition=startTransition,exports3.unstable_act=act,exports3.useCallback=useCallback,exports3.useContext=useContext,exports3.useDebugValue=useDebugValue,exports3.useDeferredValue=useDeferredValue,exports3.useEffect=useEffect,exports3.useId=useId,exports3.useImperativeHandle=useImperativeHandle,exports3.useInsertionEffect=useInsertionEffect,exports3.useLayoutEffect=useLayoutEffect2,exports3.useMemo=useMemo,exports3.useReducer=useReducer,exports3.useRef=useRef,exports3.useState=useState,exports3.useSyncExternalStore=useSyncExternalStore,exports3.useTransition=useTransition,exports3.version=ReactVersion,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(react_development,react_development.exports)),react_development.exports}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,process.env.NODE_ENV==="production"?react.exports=requireReact_production_min():react.exports=requireReact_development()),react.exports}var reactExports=requireReact();const require$$0$1=getDefaultExportFromCjs$1(reactExports);var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
41
- * @license React
42
- * scheduler.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(exports3){function f(a2,b){var c2=a2.length;a2.push(b);a:for(;0<c2;){var d=c2-1>>>1,e=a2[d];if(0<g(e,b))a2[d]=b,a2[c2]=e,c2=d;else break a}}function h(a2){return a2.length===0?null:a2[0]}function k2(a2){if(a2.length===0)return null;var b=a2[0],c2=a2.pop();if(c2!==b){a2[0]=c2;a:for(var d=0,e=a2.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a2[m],n=m+1,x=a2[n];if(0>g(C,c2))n<e&&0>g(x,C)?(a2[d]=x,a2[n]=c2,d=n):(a2[d]=C,a2[m]=c2,d=m);else if(n<e&&0>g(x,c2))a2[d]=x,a2[n]=c2,d=n;else break a}}return b}function g(a2,b){var c2=a2.sortIndex-b.sortIndex;return c2!==0?c2:a2.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;exports3.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports3.unstable_now=function(){return p.now()-q}}var r2=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a2){for(var b=h(t);b!==null;){if(b.callback===null)k2(t);else if(b.startTime<=a2)k2(t),b.sortIndex=b.expirationTime,f(r2,b);else break;b=h(t)}}function H(a2){if(B=!1,G(a2),!A)if(h(r2)!==null)A=!0,I(J);else{var b=h(t);b!==null&&K(H,b.startTime-a2)}}function J(a2,b){A=!1,B&&(B=!1,E(L),L=-1),z=!0;var c2=y;try{for(G(b),v=h(r2);v!==null&&(!(v.expirationTime>b)||a2&&!M());){var d=v.callback;if(typeof d=="function"){v.callback=null,y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports3.unstable_now(),typeof e=="function"?v.callback=e:v===h(r2)&&k2(r2),G(b)}else k2(r2);v=h(r2)}if(v!==null)var w=!0;else{var m=h(t);m!==null&&K(H,m.startTime-b),w=!1}return w}finally{v=null,y=c2,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;function M(){return!(exports3.unstable_now()-Q<P)}function R(){if(O!==null){var a2=exports3.unstable_now();Q=a2;var b=!0;try{b=O(!0,a2)}finally{b?S():(N=!1,O=null)}}else N=!1}var S;if(typeof F=="function")S=function(){F(R)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R,S=function(){U.postMessage(null)}}else S=function(){D(R,0)};function I(a2){O=a2,N||(N=!0,S())}function K(a2,b){L=D(function(){a2(exports3.unstable_now())},b)}exports3.unstable_IdlePriority=5,exports3.unstable_ImmediatePriority=1,exports3.unstable_LowPriority=4,exports3.unstable_NormalPriority=3,exports3.unstable_Profiling=null,exports3.unstable_UserBlockingPriority=2,exports3.unstable_cancelCallback=function(a2){a2.callback=null},exports3.unstable_continueExecution=function(){A||z||(A=!0,I(J))},exports3.unstable_forceFrameRate=function(a2){0>a2||125<a2?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<a2?Math.floor(1e3/a2):5},exports3.unstable_getCurrentPriorityLevel=function(){return y},exports3.unstable_getFirstCallbackNode=function(){return h(r2)},exports3.unstable_next=function(a2){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y}var c2=y;y=b;try{return a2()}finally{y=c2}},exports3.unstable_pauseExecution=function(){},exports3.unstable_requestPaint=function(){},exports3.unstable_runWithPriority=function(a2,b){switch(a2){case 1:case 2:case 3:case 4:case 5:break;default:a2=3}var c2=y;y=a2;try{return b()}finally{y=c2}},exports3.unstable_scheduleCallback=function(a2,b,c2){var d=exports3.unstable_now();switch(typeof c2=="object"&&c2!==null?(c2=c2.delay,c2=typeof c2=="number"&&0<c2?d+c2:d):c2=d,a2){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1e4;break;default:e=5e3}return e=c2+e,a2={id:u++,callback:b,priorityLevel:a2,startTime:c2,expirationTime:e,sortIndex:-1},c2>d?(a2.sortIndex=c2,f(t,a2),h(r2)===null&&a2===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c2-d))):(a2.sortIndex=e,f(r2,a2),A||z||(A=!0,I(J))),a2},exports3.unstable_shouldYield=M,exports3.unstable_wrapCallback=function(a2){var b=y;return function(){var c2=y;y=b;try{return a2.apply(this,arguments)}finally{y=c2}}}}(scheduler_production_min)),scheduler_production_min}var scheduler_development={};/**
49
- * @license React
50
- * scheduler.development.js
51
- *
52
- * Copyright (c) Facebook, Inc. and its affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var hasRequiredScheduler_development;function requireScheduler_development(){return hasRequiredScheduler_development||(hasRequiredScheduler_development=1,function(exports3){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var enableProfiling=!1,frameYieldMs=5;function push(heap,node){var index=heap.length;heap.push(node),siftUp(heap,node,index)}function peek(heap){return heap.length===0?null:heap[0]}function pop(heap){if(heap.length===0)return null;var first=heap[0],last=heap.pop();return last!==first&&(heap[0]=last,siftDown(heap,last,0)),first}function siftUp(heap,node,i){for(var index=i;index>0;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(compare(parent,node)>0)heap[parentIndex]=node,heap[index]=parent,index=parentIndex;else return}}function siftDown(heap,node,i){for(var index=i,length=heap.length,halfLength=length>>>1;index<halfLength;){var leftIndex=(index+1)*2-1,left=heap[leftIndex],rightIndex=leftIndex+1,right=heap[rightIndex];if(compare(left,node)<0)rightIndex<length&&compare(right,left)<0?(heap[index]=right,heap[rightIndex]=node,index=rightIndex):(heap[index]=left,heap[leftIndex]=node,index=leftIndex);else if(rightIndex<length&&compare(right,node)<0)heap[index]=right,heap[rightIndex]=node,index=rightIndex;else return}}function compare(a2,b){var diff=a2.sortIndex-b.sortIndex;return diff!==0?diff:a2.id-b.id}var ImmediatePriority=1,UserBlockingPriority=2,NormalPriority=3,LowPriority=4,IdlePriority=5;function markTaskErrored(task,ms){}var hasPerformanceNow=typeof performance=="object"&&typeof performance.now=="function";if(hasPerformanceNow){var localPerformance=performance;exports3.unstable_now=function(){return localPerformance.now()}}else{var localDate=Date,initialTime=localDate.now();exports3.unstable_now=function(){return localDate.now()-initialTime}}var maxSigned31BitInt=1073741823,IMMEDIATE_PRIORITY_TIMEOUT=-1,USER_BLOCKING_PRIORITY_TIMEOUT=250,NORMAL_PRIORITY_TIMEOUT=5e3,LOW_PRIORITY_TIMEOUT=1e4,IDLE_PRIORITY_TIMEOUT=maxSigned31BitInt,taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=NormalPriority,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1,localSetTimeout=typeof setTimeout=="function"?setTimeout:null,localClearTimeout=typeof clearTimeout=="function"?clearTimeout:null,localSetImmediate=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function advanceTimers(currentTime){for(var timer=peek(timerQueue);timer!==null;){if(timer.callback===null)pop(timerQueue);else if(timer.startTime<=currentTime)pop(timerQueue),timer.sortIndex=timer.expirationTime,push(taskQueue,timer);else return;timer=peek(timerQueue)}}function handleTimeout(currentTime){if(isHostTimeoutScheduled=!1,advanceTimers(currentTime),!isHostCallbackScheduled)if(peek(taskQueue)!==null)isHostCallbackScheduled=!0,requestHostCallback(flushWork);else{var firstTimer=peek(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime)}}function flushWork(hasTimeRemaining,initialTime2){isHostCallbackScheduled=!1,isHostTimeoutScheduled&&(isHostTimeoutScheduled=!1,cancelHostTimeout()),isPerformingWork=!0;var previousPriorityLevel=currentPriorityLevel;try{var currentTime;if(!enableProfiling)return workLoop(hasTimeRemaining,initialTime2)}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1}}function workLoop(hasTimeRemaining,initialTime2){var currentTime=initialTime2;for(advanceTimers(currentTime),currentTask=peek(taskQueue);currentTask!==null&&!(currentTask.expirationTime>currentTime&&(!hasTimeRemaining||shouldYieldToHost()));){var callback=currentTask.callback;if(typeof callback=="function"){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var didUserCallbackTimeout=currentTask.expirationTime<=currentTime,continuationCallback=callback(didUserCallbackTimeout);currentTime=exports3.unstable_now(),typeof continuationCallback=="function"?currentTask.callback=continuationCallback:currentTask===peek(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek(taskQueue)}if(currentTask!==null)return!0;var firstTimer=peek(timerQueue);return firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),!1}function unstable_runWithPriority(priorityLevel,eventHandler){switch(priorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:case LowPriority:case IdlePriority:break;default:priorityLevel=NormalPriority}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_next(eventHandler){var priorityLevel;switch(currentPriorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:priorityLevel=NormalPriority;break;default:priorityLevel=currentPriorityLevel;break}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_wrapCallback(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}}function unstable_scheduleCallback(priorityLevel,callback,options){var currentTime=exports3.unstable_now(),startTime2;if(typeof options=="object"&&options!==null){var delay=options.delay;typeof delay=="number"&&delay>0?startTime2=currentTime+delay:startTime2=currentTime}else startTime2=currentTime;var timeout;switch(priorityLevel){case ImmediatePriority:timeout=IMMEDIATE_PRIORITY_TIMEOUT;break;case UserBlockingPriority:timeout=USER_BLOCKING_PRIORITY_TIMEOUT;break;case IdlePriority:timeout=IDLE_PRIORITY_TIMEOUT;break;case LowPriority:timeout=LOW_PRIORITY_TIMEOUT;break;case NormalPriority:default:timeout=NORMAL_PRIORITY_TIMEOUT;break}var expirationTime=startTime2+timeout,newTask={id:taskIdCounter++,callback,priorityLevel,startTime:startTime2,expirationTime,sortIndex:-1};return startTime2>currentTime?(newTask.sortIndex=startTime2,push(timerQueue,newTask),peek(taskQueue)===null&&newTask===peek(timerQueue)&&(isHostTimeoutScheduled?cancelHostTimeout():isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,startTime2-currentTime))):(newTask.sortIndex=expirationTime,push(taskQueue,newTask),!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))),newTask}function unstable_pauseExecution(){}function unstable_continueExecution(){!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))}function unstable_getFirstCallbackNode(){return peek(taskQueue)}function unstable_cancelCallback(task){task.callback=null}function unstable_getCurrentPriorityLevel(){return currentPriorityLevel}var isMessageLoopRunning=!1,scheduledHostCallback=null,taskTimeoutID=-1,frameInterval=frameYieldMs,startTime=-1;function shouldYieldToHost(){var timeElapsed=exports3.unstable_now()-startTime;return!(timeElapsed<frameInterval)}function requestPaint(){}function forceFrameRate(fps){if(fps<0||fps>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}fps>0?frameInterval=Math.floor(1e3/fps):frameInterval=frameYieldMs}var performWorkUntilDeadline=function(){if(scheduledHostCallback!==null){var currentTime=exports3.unstable_now();startTime=currentTime;var hasTimeRemaining=!0,hasMoreWork=!0;try{hasMoreWork=scheduledHostCallback(hasTimeRemaining,currentTime)}finally{hasMoreWork?schedulePerformWorkUntilDeadline():(isMessageLoopRunning=!1,scheduledHostCallback=null)}}else isMessageLoopRunning=!1},schedulePerformWorkUntilDeadline;if(typeof localSetImmediate=="function")schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(typeof MessageChannel<"u"){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};function requestHostCallback(callback){scheduledHostCallback=callback,isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())}function requestHostTimeout(callback,ms){taskTimeoutID=localSetTimeout(function(){callback(exports3.unstable_now())},ms)}function cancelHostTimeout(){localClearTimeout(taskTimeoutID),taskTimeoutID=-1}var unstable_requestPaint=requestPaint,unstable_Profiling=null;exports3.unstable_IdlePriority=IdlePriority,exports3.unstable_ImmediatePriority=ImmediatePriority,exports3.unstable_LowPriority=LowPriority,exports3.unstable_NormalPriority=NormalPriority,exports3.unstable_Profiling=unstable_Profiling,exports3.unstable_UserBlockingPriority=UserBlockingPriority,exports3.unstable_cancelCallback=unstable_cancelCallback,exports3.unstable_continueExecution=unstable_continueExecution,exports3.unstable_forceFrameRate=forceFrameRate,exports3.unstable_getCurrentPriorityLevel=unstable_getCurrentPriorityLevel,exports3.unstable_getFirstCallbackNode=unstable_getFirstCallbackNode,exports3.unstable_next=unstable_next,exports3.unstable_pauseExecution=unstable_pauseExecution,exports3.unstable_requestPaint=unstable_requestPaint,exports3.unstable_runWithPriority=unstable_runWithPriority,exports3.unstable_scheduleCallback=unstable_scheduleCallback,exports3.unstable_shouldYield=shouldYieldToHost,exports3.unstable_wrapCallback=unstable_wrapCallback,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(scheduler_development)),scheduler_development}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,process.env.NODE_ENV==="production"?scheduler.exports=requireScheduler_production_min():scheduler.exports=requireScheduler_development()),scheduler.exports}/**
57
- * @license React
58
- * react-dom.production.min.js
59
- *
60
- * Copyright (c) Facebook, Inc. and its affiliates.
61
- *
62
- * This source code is licensed under the MIT license found in the
63
- * LICENSE file in the root directory of this source tree.
64
- */var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var aa=requireReact(),ca=requireScheduler();function p(a2){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a2,c2=1;c2<arguments.length;c2++)b+="&args[]="+encodeURIComponent(arguments[c2]);return"Minified React error #"+a2+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(a2,b){ha(a2,b),ha(a2+"Capture",b)}function ha(a2,b){for(ea[a2]=b,a2=0;a2<b.length;a2++)da.add(b[a2])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka2=/^[: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]*$/,la={},ma={};function oa(a2){return ja.call(ma,a2)?!0:ja.call(la,a2)?!1:ka2.test(a2)?ma[a2]=!0:(la[a2]=!0,!1)}function pa(a2,b,c2,d){if(c2!==null&&c2.type===0)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":return d?!1:c2!==null?!c2.acceptsBooleans:(a2=a2.toLowerCase().slice(0,5),a2!=="data-"&&a2!=="aria-");default:return!1}}function qa(a2,b,c2,d){if(b===null||typeof b>"u"||pa(a2,b,c2,d))return!0;if(d)return!1;if(c2!==null)switch(c2.type){case 3:return!b;case 4:return b===!1;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function v(a2,b,c2,d,e,f,g){this.acceptsBooleans=b===2||b===3||b===4,this.attributeName=d,this.attributeNamespace=e,this.mustUseProperty=c2,this.propertyName=a2,this.type=b,this.sanitizeURL=f,this.removeEmptyString=g}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2){z[a2]=new v(a2,0,!1,a2,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a2){var b=a2[0];z[b]=new v(b,1,!1,a2[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a2){z[a2]=new v(a2,2,!1,a2.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a2){z[a2]=new v(a2,2,!1,a2,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(a2){z[a2]=new v(a2,3,!1,a2.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a2){z[a2]=new v(a2,3,!0,a2,null,!1,!1)}),["capture","download"].forEach(function(a2){z[a2]=new v(a2,4,!1,a2,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a2){z[a2]=new v(a2,6,!1,a2,null,!1,!1)}),["rowSpan","start"].forEach(function(a2){z[a2]=new v(a2,5,!1,a2.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(a2){return a2[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2){var b=a2.replace(ra,sa);z[b]=new v(b,1,!1,a2,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2){var b=a2.replace(ra,sa);z[b]=new v(b,1,!1,a2,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a2){var b=a2.replace(ra,sa);z[b]=new v(b,1,!1,a2,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a2){z[a2]=new v(a2,1,!1,a2.toLowerCase(),null,!1,!1)}),z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a2){z[a2]=new v(a2,1,!1,a2.toLowerCase(),null,!0,!0)});function ta(a2,b,c2,d){var e=z.hasOwnProperty(b)?z[b]:null;(e!==null?e.type!==0:d||!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")&&(qa(b,c2,e,d)&&(c2=null),d||e===null?oa(b)&&(c2===null?a2.removeAttribute(b):a2.setAttribute(b,""+c2)):e.mustUseProperty?a2[e.propertyName]=c2===null?e.type===3?!1:"":c2:(b=e.attributeName,d=e.attributeNamespace,c2===null?a2.removeAttribute(b):(e=e.type,c2=e===3||e===4&&c2===!0?"":""+c2,d?a2.setAttributeNS(d,b,c2):a2.setAttribute(b,c2))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(a2){return a2===null||typeof a2!="object"?null:(a2=Ja&&a2[Ja]||a2["@@iterator"],typeof a2=="function"?a2:null)}var A=Object.assign,La;function Ma(a2){if(La===void 0)try{throw Error()}catch(c2){var b=c2.stack.trim().match(/\n( *(at )?)/);La=b&&b[1]||""}return`
65
- `+La+a2}var Na=!1;function Oa(a2,b){if(!a2||Na)return"";Na=!0;var c2=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error()},Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(l){var d=l}Reflect.construct(a2,[],b)}else{try{b.call()}catch(l){d=l}a2.call(b.prototype)}else{try{throw Error()}catch(l){d=l}a2()}}catch(l){if(l&&d&&typeof l.stack=="string"){for(var e=l.stack.split(`
66
- `),f=d.stack.split(`
67
- `),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(g!==1||h!==1)do if(g--,h--,0>h||e[g]!==f[h]){var k2=`
68
- `+e[g].replace(" at new "," at ");return a2.displayName&&k2.includes("<anonymous>")&&(k2=k2.replace("<anonymous>",a2.displayName)),k2}while(1<=g&&0<=h);break}}}finally{Na=!1,Error.prepareStackTrace=c2}return(a2=a2?a2.displayName||a2.name:"")?Ma(a2):""}function Pa(a2){switch(a2.tag){case 5:return Ma(a2.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a2=Oa(a2.type,!1),a2;case 11:return a2=Oa(a2.type.render,!1),a2;case 1:return a2=Oa(a2.type,!0),a2;default:return""}}function Qa(a2){if(a2==null)return null;if(typeof a2=="function")return a2.displayName||a2.name||null;if(typeof a2=="string")return a2;switch(a2){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof a2=="object")switch(a2.$$typeof){case Ca:return(a2.displayName||"Context")+".Consumer";case Ba:return(a2._context.displayName||"Context")+".Provider";case Da:var b=a2.render;return a2=a2.displayName,a2||(a2=b.displayName||b.name||"",a2=a2!==""?"ForwardRef("+a2+")":"ForwardRef"),a2;case Ga:return b=a2.displayName||null,b!==null?b:Qa(a2.type)||"Memo";case Ha:b=a2._payload,a2=a2._init;try{return Qa(a2(b))}catch{}}return null}function Ra(a2){var b=a2.type;switch(a2.tag){case 24:return"Cache";case 9:return(b.displayName||"Context")+".Consumer";case 10:return(b._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a2=b.render,a2=a2.displayName||a2.name||"",b.displayName||(a2!==""?"ForwardRef("+a2+")":"ForwardRef");case 7:return"Fragment";case 5:return b;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(b);case 8:return b===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b}return null}function Sa(a2){switch(typeof a2){case"boolean":case"number":case"string":case"undefined":return a2;case"object":return a2;default:return""}}function Ta(a2){var b=a2.type;return(a2=a2.nodeName)&&a2.toLowerCase()==="input"&&(b==="checkbox"||b==="radio")}function Ua(a2){var b=Ta(a2)?"checked":"value",c2=Object.getOwnPropertyDescriptor(a2.constructor.prototype,b),d=""+a2[b];if(!a2.hasOwnProperty(b)&&typeof c2<"u"&&typeof c2.get=="function"&&typeof c2.set=="function"){var e=c2.get,f=c2.set;return Object.defineProperty(a2,b,{configurable:!0,get:function(){return e.call(this)},set:function(a3){d=""+a3,f.call(this,a3)}}),Object.defineProperty(a2,b,{enumerable:c2.enumerable}),{getValue:function(){return d},setValue:function(a3){d=""+a3},stopTracking:function(){a2._valueTracker=null,delete a2[b]}}}}function Va(a2){a2._valueTracker||(a2._valueTracker=Ua(a2))}function Wa(a2){if(!a2)return!1;var b=a2._valueTracker;if(!b)return!0;var c2=b.getValue(),d="";return a2&&(d=Ta(a2)?a2.checked?"true":"false":a2.value),a2=d,a2!==c2?(b.setValue(a2),!0):!1}function Xa(a2){if(a2=a2||(typeof document<"u"?document:void 0),typeof a2>"u")return null;try{return a2.activeElement||a2.body}catch{return a2.body}}function Ya(a2,b){var c2=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c2??a2._wrapperState.initialChecked})}function Za(a2,b){var c2=b.defaultValue==null?"":b.defaultValue,d=b.checked!=null?b.checked:b.defaultChecked;c2=Sa(b.value!=null?b.value:c2),a2._wrapperState={initialChecked:d,initialValue:c2,controlled:b.type==="checkbox"||b.type==="radio"?b.checked!=null:b.value!=null}}function ab(a2,b){b=b.checked,b!=null&&ta(a2,"checked",b,!1)}function bb(a2,b){ab(a2,b);var c2=Sa(b.value),d=b.type;if(c2!=null)d==="number"?(c2===0&&a2.value===""||a2.value!=c2)&&(a2.value=""+c2):a2.value!==""+c2&&(a2.value=""+c2);else if(d==="submit"||d==="reset"){a2.removeAttribute("value");return}b.hasOwnProperty("value")?cb(a2,b.type,c2):b.hasOwnProperty("defaultValue")&&cb(a2,b.type,Sa(b.defaultValue)),b.checked==null&&b.defaultChecked!=null&&(a2.defaultChecked=!!b.defaultChecked)}function db(a2,b,c2){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!(d!=="submit"&&d!=="reset"||b.value!==void 0&&b.value!==null))return;b=""+a2._wrapperState.initialValue,c2||b===a2.value||(a2.value=b),a2.defaultValue=b}c2=a2.name,c2!==""&&(a2.name=""),a2.defaultChecked=!!a2._wrapperState.initialChecked,c2!==""&&(a2.name=c2)}function cb(a2,b,c2){(b!=="number"||Xa(a2.ownerDocument)!==a2)&&(c2==null?a2.defaultValue=""+a2._wrapperState.initialValue:a2.defaultValue!==""+c2&&(a2.defaultValue=""+c2))}var eb=Array.isArray;function fb(a2,b,c2,d){if(a2=a2.options,b){b={};for(var e=0;e<c2.length;e++)b["$"+c2[e]]=!0;for(c2=0;c2<a2.length;c2++)e=b.hasOwnProperty("$"+a2[c2].value),a2[c2].selected!==e&&(a2[c2].selected=e),e&&d&&(a2[c2].defaultSelected=!0)}else{for(c2=""+Sa(c2),b=null,e=0;e<a2.length;e++){if(a2[e].value===c2){a2[e].selected=!0,d&&(a2[e].defaultSelected=!0);return}b!==null||a2[e].disabled||(b=a2[e])}b!==null&&(b.selected=!0)}}function gb(a2,b){if(b.dangerouslySetInnerHTML!=null)throw Error(p(91));return A({},b,{value:void 0,defaultValue:void 0,children:""+a2._wrapperState.initialValue})}function hb(a2,b){var c2=b.value;if(c2==null){if(c2=b.children,b=b.defaultValue,c2!=null){if(b!=null)throw Error(p(92));if(eb(c2)){if(1<c2.length)throw Error(p(93));c2=c2[0]}b=c2}b==null&&(b=""),c2=b}a2._wrapperState={initialValue:Sa(c2)}}function ib(a2,b){var c2=Sa(b.value),d=Sa(b.defaultValue);c2!=null&&(c2=""+c2,c2!==a2.value&&(a2.value=c2),b.defaultValue==null&&a2.defaultValue!==c2&&(a2.defaultValue=c2)),d!=null&&(a2.defaultValue=""+d)}function jb(a2){var b=a2.textContent;b===a2._wrapperState.initialValue&&b!==""&&b!==null&&(a2.value=b)}function kb(a2){switch(a2){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 lb(a2,b){return a2==null||a2==="http://www.w3.org/1999/xhtml"?kb(b):a2==="http://www.w3.org/2000/svg"&&b==="foreignObject"?"http://www.w3.org/1999/xhtml":a2}var mb,nb=function(a2){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(b,c2,d,e){MSApp.execUnsafeLocalFunction(function(){return a2(b,c2,d,e)})}:a2}(function(a2,b){if(a2.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a2)a2.innerHTML=b;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+b.valueOf().toString()+"</svg>",b=mb.firstChild;a2.firstChild;)a2.removeChild(a2.firstChild);for(;b.firstChild;)a2.appendChild(b.firstChild)}});function ob(a2,b){if(b){var c2=a2.firstChild;if(c2&&c2===a2.lastChild&&c2.nodeType===3){c2.nodeValue=b;return}}a2.textContent=b}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a2){qb.forEach(function(b){b=b+a2.charAt(0).toUpperCase()+a2.substring(1),pb[b]=pb[a2]})});function rb(a2,b,c2){return b==null||typeof b=="boolean"||b===""?"":c2||typeof b!="number"||b===0||pb.hasOwnProperty(a2)&&pb[a2]?(""+b).trim():b+"px"}function sb(a2,b){a2=a2.style;for(var c2 in b)if(b.hasOwnProperty(c2)){var d=c2.indexOf("--")===0,e=rb(c2,b[c2],d);c2==="float"&&(c2="cssFloat"),d?a2.setProperty(c2,e):a2[c2]=e}}var tb=A({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 ub(a2,b){if(b){if(tb[a2]&&(b.children!=null||b.dangerouslySetInnerHTML!=null))throw Error(p(137,a2));if(b.dangerouslySetInnerHTML!=null){if(b.children!=null)throw Error(p(60));if(typeof b.dangerouslySetInnerHTML!="object"||!("__html"in b.dangerouslySetInnerHTML))throw Error(p(61))}if(b.style!=null&&typeof b.style!="object")throw Error(p(62))}}function vb(a2,b){if(a2.indexOf("-")===-1)return typeof b.is=="string";switch(a2){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 wb=null;function xb(a2){return a2=a2.target||a2.srcElement||window,a2.correspondingUseElement&&(a2=a2.correspondingUseElement),a2.nodeType===3?a2.parentNode:a2}var yb=null,zb=null,Ab=null;function Bb(a2){if(a2=Cb(a2)){if(typeof yb!="function")throw Error(p(280));var b=a2.stateNode;b&&(b=Db(b),yb(a2.stateNode,a2.type,b))}}function Eb(a2){zb?Ab?Ab.push(a2):Ab=[a2]:zb=a2}function Fb(){if(zb){var a2=zb,b=Ab;if(Ab=zb=null,Bb(a2),b)for(a2=0;a2<b.length;a2++)Bb(b[a2])}}function Gb(a2,b){return a2(b)}function Hb(){}var Ib=!1;function Jb(a2,b,c2){if(Ib)return a2(b,c2);Ib=!0;try{return Gb(a2,b,c2)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(a2,b){var c2=a2.stateNode;if(c2===null)return null;var d=Db(c2);if(d===null)return null;c2=d[b];a:switch(b){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(a2=a2.type,d=!(a2==="button"||a2==="input"||a2==="select"||a2==="textarea")),a2=!d;break a;default:a2=!1}if(a2)return null;if(c2&&typeof c2!="function")throw Error(p(231,b,typeof c2));return c2}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(a2,b,c2,d,e,f,g,h,k2){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c2,l)}catch(m){this.onError(m)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a2){Ob=!0,Pb=a2}};function Tb(a2,b,c2,d,e,f,g,h,k2){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(a2,b,c2,d,e,f,g,h,k2){if(Tb.apply(this,arguments),Ob){if(Ob){var l=Pb;Ob=!1,Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=l)}}function Vb(a2){var b=a2,c2=a2;if(a2.alternate)for(;b.return;)b=b.return;else{a2=b;do b=a2,b.flags&4098&&(c2=b.return),a2=b.return;while(a2)}return b.tag===3?c2:null}function Wb(a2){if(a2.tag===13){var b=a2.memoizedState;if(b===null&&(a2=a2.alternate,a2!==null&&(b=a2.memoizedState)),b!==null)return b.dehydrated}return null}function Xb(a2){if(Vb(a2)!==a2)throw Error(p(188))}function Yb(a2){var b=a2.alternate;if(!b){if(b=Vb(a2),b===null)throw Error(p(188));return b!==a2?null:a2}for(var c2=a2,d=b;;){var e=c2.return;if(e===null)break;var f=e.alternate;if(f===null){if(d=e.return,d!==null){c2=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c2)return Xb(e),a2;if(f===d)return Xb(e),b;f=f.sibling}throw Error(p(188))}if(c2.return!==d.return)c2=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c2){g=!0,c2=e,d=f;break}if(h===d){g=!0,d=e,c2=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c2){g=!0,c2=f,d=e;break}if(h===d){g=!0,d=f,c2=e;break}h=h.sibling}if(!g)throw Error(p(189))}}if(c2.alternate!==d)throw Error(p(190))}if(c2.tag!==3)throw Error(p(188));return c2.stateNode.current===c2?a2:b}function Zb(a2){return a2=Yb(a2),a2!==null?$b(a2):null}function $b(a2){if(a2.tag===5||a2.tag===6)return a2;for(a2=a2.child;a2!==null;){var b=$b(a2);if(b!==null)return b;a2=a2.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a2){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,a2,void 0,(a2.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a2){return a2>>>=0,a2===0?32:31-(pc(a2)/qc|0)|0}var rc=64,sc=4194304;function tc(a2){switch(a2&-a2){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 a2&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a2&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a2}}function uc(a2,b){var c2=a2.pendingLanes;if(c2===0)return 0;var d=0,e=a2.suspendedLanes,f=a2.pingedLanes,g=c2&268435455;if(g!==0){var h=g&~e;h!==0?d=tc(h):(f&=g,f!==0&&(d=tc(f)))}else g=c2&~e,g!==0?d=tc(g):f!==0&&(d=tc(f));if(d===0)return 0;if(b!==0&&b!==d&&!(b&e)&&(e=d&-d,f=b&-b,e>=f||e===16&&(f&4194240)!==0))return b;if(d&4&&(d|=c2&16),b=a2.entangledLanes,b!==0)for(a2=a2.entanglements,b&=d;0<b;)c2=31-oc(b),e=1<<c2,d|=a2[c2],b&=~e;return d}function vc(a2,b){switch(a2){case 1:case 2:case 4:return b+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 b+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(a2,b){for(var c2=a2.suspendedLanes,d=a2.pingedLanes,e=a2.expirationTimes,f=a2.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k2=e[g];k2===-1?(!(h&c2)||h&d)&&(e[g]=vc(h,b)):k2<=b&&(a2.expiredLanes|=h),f&=~h}}function xc(a2){return a2=a2.pendingLanes&-1073741825,a2!==0?a2:a2&1073741824?1073741824:0}function yc(){var a2=rc;return rc<<=1,!(rc&4194240)&&(rc=64),a2}function zc(a2){for(var b=[],c2=0;31>c2;c2++)b.push(a2);return b}function Ac(a2,b,c2){a2.pendingLanes|=b,b!==536870912&&(a2.suspendedLanes=0,a2.pingedLanes=0),a2=a2.eventTimes,b=31-oc(b),a2[b]=c2}function Bc(a2,b){var c2=a2.pendingLanes&~b;a2.pendingLanes=b,a2.suspendedLanes=0,a2.pingedLanes=0,a2.expiredLanes&=b,a2.mutableReadLanes&=b,a2.entangledLanes&=b,b=a2.entanglements;var d=a2.eventTimes;for(a2=a2.expirationTimes;0<c2;){var e=31-oc(c2),f=1<<e;b[e]=0,d[e]=-1,a2[e]=-1,c2&=~f}}function Cc(a2,b){var c2=a2.entangledLanes|=b;for(a2=a2.entanglements;c2;){var d=31-oc(c2),e=1<<d;e&b|a2[d]&b&&(a2[d]|=b),c2&=~e}}var C=0;function Dc(a2){return a2&=-a2,1<a2?4<a2?a2&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="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 Sc(a2,b){switch(a2){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(b.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(b.pointerId)}}function Tc(a2,b,c2,d,e,f){return a2===null||a2.nativeEvent!==f?(a2={blockedOn:b,domEventName:c2,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},b!==null&&(b=Cb(b),b!==null&&Fc(b)),a2):(a2.eventSystemFlags|=d,b=a2.targetContainers,e!==null&&b.indexOf(e)===-1&&b.push(e),a2)}function Uc(a2,b,c2,d,e){switch(b){case"focusin":return Lc=Tc(Lc,a2,b,c2,d,e),!0;case"dragenter":return Mc=Tc(Mc,a2,b,c2,d,e),!0;case"mouseover":return Nc=Tc(Nc,a2,b,c2,d,e),!0;case"pointerover":var f=e.pointerId;return Oc.set(f,Tc(Oc.get(f)||null,a2,b,c2,d,e)),!0;case"gotpointercapture":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a2,b,c2,d,e)),!0}return!1}function Vc(a2){var b=Wc(a2.target);if(b!==null){var c2=Vb(b);if(c2!==null){if(b=c2.tag,b===13){if(b=Wb(c2),b!==null){a2.blockedOn=b,Ic(a2.priority,function(){Gc(c2)});return}}else if(b===3&&c2.stateNode.current.memoizedState.isDehydrated){a2.blockedOn=c2.tag===3?c2.stateNode.containerInfo:null;return}}}a2.blockedOn=null}function Xc(a2){if(a2.blockedOn!==null)return!1;for(var b=a2.targetContainers;0<b.length;){var c2=Yc(a2.domEventName,a2.eventSystemFlags,b[0],a2.nativeEvent);if(c2===null){c2=a2.nativeEvent;var d=new c2.constructor(c2.type,c2);wb=d,c2.target.dispatchEvent(d),wb=null}else return b=Cb(c2),b!==null&&Fc(b),a2.blockedOn=c2,!1;b.shift()}return!0}function Zc(a2,b,c2){Xc(a2)&&c2.delete(b)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(a2,b){a2.blockedOn===b&&(a2.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(a2){function b(b2){return ad(b2,a2)}if(0<Kc.length){ad(Kc[0],a2);for(var c2=1;c2<Kc.length;c2++){var d=Kc[c2];d.blockedOn===a2&&(d.blockedOn=null)}}for(Lc!==null&&ad(Lc,a2),Mc!==null&&ad(Mc,a2),Nc!==null&&ad(Nc,a2),Oc.forEach(b),Pc.forEach(b),c2=0;c2<Qc.length;c2++)d=Qc[c2],d.blockedOn===a2&&(d.blockedOn=null);for(;0<Qc.length&&(c2=Qc[0],c2.blockedOn===null);)Vc(c2),c2.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(a2,b,c2,d){var e=C,f=cd.transition;cd.transition=null;try{C=1,fd(a2,b,c2,d)}finally{C=e,cd.transition=f}}function gd(a2,b,c2,d){var e=C,f=cd.transition;cd.transition=null;try{C=4,fd(a2,b,c2,d)}finally{C=e,cd.transition=f}}function fd(a2,b,c2,d){if(dd){var e=Yc(a2,b,c2,d);if(e===null)hd(a2,b,d,id,c2),Sc(a2,d);else if(Uc(e,a2,b,c2,d))d.stopPropagation();else if(Sc(a2,d),b&4&&-1<Rc.indexOf(a2)){for(;e!==null;){var f=Cb(e);if(f!==null&&Ec(f),f=Yc(a2,b,c2,d),f===null&&hd(a2,b,d,id,c2),f===e)break;e=f}e!==null&&d.stopPropagation()}else hd(a2,b,d,null,c2)}}var id=null;function Yc(a2,b,c2,d){if(id=null,a2=xb(d),a2=Wc(a2),a2!==null)if(b=Vb(a2),b===null)a2=null;else if(c2=b.tag,c2===13){if(a2=Wb(b),a2!==null)return a2;a2=null}else if(c2===3){if(b.stateNode.current.memoizedState.isDehydrated)return b.tag===3?b.stateNode.containerInfo:null;a2=null}else b!==a2&&(a2=null);return id=a2,null}function jd(a2){switch(a2){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(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a2,b=ld,c2=b.length,d,e="value"in kd?kd.value:kd.textContent,f=e.length;for(a2=0;a2<c2&&b[a2]===e[a2];a2++);var g=c2-a2;for(d=1;d<=g&&b[c2-d]===e[f-d];d++);return md=e.slice(a2,1<d?1-d:void 0)}function od(a2){var b=a2.keyCode;return"charCode"in a2?(a2=a2.charCode,a2===0&&b===13&&(a2=13)):a2=b,a2===10&&(a2=13),32<=a2||a2===13?a2:0}function pd(){return!0}function qd(){return!1}function rd(a2){function b(b2,d,e,f,g){this._reactName=b2,this._targetInst=e,this.type=d,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var c2 in a2)a2.hasOwnProperty(c2)&&(b2=a2[c2],this[c2]=b2?b2(f):f[c2]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a3=this.nativeEvent;a3&&(a3.preventDefault?a3.preventDefault():typeof a3.returnValue!="unknown"&&(a3.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a3=this.nativeEvent;a3&&(a3.stopPropagation?a3.stopPropagation():typeof a3.cancelBubble!="unknown"&&(a3.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),b}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a2){return a2.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a2){return a2.relatedTarget===void 0?a2.fromElement===a2.srcElement?a2.toElement:a2.fromElement:a2.relatedTarget},movementX:function(a2){return"movementX"in a2?a2.movementX:(a2!==yd&&(yd&&a2.type==="mousemove"?(wd=a2.screenX-yd.screenX,xd=a2.screenY-yd.screenY):xd=wd=0,yd=a2),wd)},movementY:function(a2){return"movementY"in a2?a2.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(a2){return"clipboardData"in a2?a2.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(a2){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a2):(a2=Od[a2])?!!b[a2]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(a2){if(a2.key){var b=Md[a2.key]||a2.key;if(b!=="Unidentified")return b}return a2.type==="keypress"?(a2=od(a2),a2===13?"Enter":String.fromCharCode(a2)):a2.type==="keydown"||a2.type==="keyup"?Nd[a2.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a2){return a2.type==="keypress"?od(a2):0},keyCode:function(a2){return a2.type==="keydown"||a2.type==="keyup"?a2.keyCode:0},which:function(a2){return a2.type==="keypress"?od(a2):a2.type==="keydown"||a2.type==="keyup"?a2.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(a2){return"deltaX"in a2?a2.deltaX:"wheelDeltaX"in a2?-a2.wheelDeltaX:0},deltaY:function(a2){return"deltaY"in a2?a2.deltaY:"wheelDeltaY"in a2?-a2.wheelDeltaY:"wheelDelta"in a2?-a2.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(a2,b){switch(a2){case"keyup":return $d.indexOf(b.keyCode)!==-1;case"keydown":return b.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a2){return a2=a2.detail,typeof a2=="object"&&"data"in a2?a2.data:null}var ie=!1;function je(a2,b){switch(a2){case"compositionend":return he(b);case"keypress":return b.which!==32?null:(fe=!0,ee);case"textInput":return a2=b.data,a2===ee&&fe?null:a2;default:return null}}function ke(a2,b){if(ie)return a2==="compositionend"||!ae&&ge(a2,b)?(a2=nd(),md=ld=kd=null,ie=!1,a2):null;switch(a2){case"paste":return null;case"keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case"compositionend":return de&&b.locale!=="ko"?null:b.data;default:return null}}var le={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 me(a2){var b=a2&&a2.nodeName&&a2.nodeName.toLowerCase();return b==="input"?!!le[a2.type]:b==="textarea"}function ne(a2,b,c2,d){Eb(d),b=oe(b,"onChange"),0<b.length&&(c2=new td("onChange","change",null,c2,d),a2.push({event:c2,listeners:b}))}var pe=null,qe=null;function re(a2){se(a2,0)}function te(a2){var b=ue(a2);if(Wa(b))return a2}function ve(a2,b){if(a2==="change")return b}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(a2){if(a2.propertyName==="value"&&te(qe)){var b=[];ne(b,qe,a2,xb(a2)),Jb(re,b)}}function Ce(a2,b,c2){a2==="focusin"?(Ae(),pe=b,qe=c2,pe.attachEvent("onpropertychange",Be)):a2==="focusout"&&Ae()}function De(a2){if(a2==="selectionchange"||a2==="keyup"||a2==="keydown")return te(qe)}function Ee(a2,b){if(a2==="click")return te(b)}function Fe(a2,b){if(a2==="input"||a2==="change")return te(b)}function Ge(a2,b){return a2===b&&(a2!==0||1/a2===1/b)||a2!==a2&&b!==b}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(a2,b){if(He(a2,b))return!0;if(typeof a2!="object"||a2===null||typeof b!="object"||b===null)return!1;var c2=Object.keys(a2),d=Object.keys(b);if(c2.length!==d.length)return!1;for(d=0;d<c2.length;d++){var e=c2[d];if(!ja.call(b,e)||!He(a2[e],b[e]))return!1}return!0}function Je(a2){for(;a2&&a2.firstChild;)a2=a2.firstChild;return a2}function Ke(a2,b){var c2=Je(a2);a2=0;for(var d;c2;){if(c2.nodeType===3){if(d=a2+c2.textContent.length,a2<=b&&d>=b)return{node:c2,offset:b-a2};a2=d}a:{for(;c2;){if(c2.nextSibling){c2=c2.nextSibling;break a}c2=c2.parentNode}c2=void 0}c2=Je(c2)}}function Le(a2,b){return a2&&b?a2===b?!0:a2&&a2.nodeType===3?!1:b&&b.nodeType===3?Le(a2,b.parentNode):"contains"in a2?a2.contains(b):a2.compareDocumentPosition?!!(a2.compareDocumentPosition(b)&16):!1:!1}function Me(){for(var a2=window,b=Xa();b instanceof a2.HTMLIFrameElement;){try{var c2=typeof b.contentWindow.location.href=="string"}catch{c2=!1}if(c2)a2=b.contentWindow;else break;b=Xa(a2.document)}return b}function Ne(a2){var b=a2&&a2.nodeName&&a2.nodeName.toLowerCase();return b&&(b==="input"&&(a2.type==="text"||a2.type==="search"||a2.type==="tel"||a2.type==="url"||a2.type==="password")||b==="textarea"||a2.contentEditable==="true")}function Oe(a2){var b=Me(),c2=a2.focusedElem,d=a2.selectionRange;if(b!==c2&&c2&&c2.ownerDocument&&Le(c2.ownerDocument.documentElement,c2)){if(d!==null&&Ne(c2)){if(b=d.start,a2=d.end,a2===void 0&&(a2=b),"selectionStart"in c2)c2.selectionStart=b,c2.selectionEnd=Math.min(a2,c2.value.length);else if(a2=(b=c2.ownerDocument||document)&&b.defaultView||window,a2.getSelection){a2=a2.getSelection();var e=c2.textContent.length,f=Math.min(d.start,e);d=d.end===void 0?f:Math.min(d.end,e),!a2.extend&&f>d&&(e=d,d=f,f=e),e=Ke(c2,f);var g=Ke(c2,d);e&&g&&(a2.rangeCount!==1||a2.anchorNode!==e.node||a2.anchorOffset!==e.offset||a2.focusNode!==g.node||a2.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a2.removeAllRanges(),f>d?(a2.addRange(b),a2.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a2.addRange(b)))}}for(b=[],a2=c2;a2=a2.parentNode;)a2.nodeType===1&&b.push({element:a2,left:a2.scrollLeft,top:a2.scrollTop});for(typeof c2.focus=="function"&&c2.focus(),c2=0;c2<b.length;c2++)a2=b[c2],a2.element.scrollLeft=a2.left,a2.element.scrollTop=a2.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(a2,b,c2){var d=c2.window===c2?c2.document:c2.nodeType===9?c2:c2.ownerDocument;Te||Qe==null||Qe!==Xa(d)||(d=Qe,"selectionStart"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,"onSelect"),0<d.length&&(b=new td("onSelect","select",null,b,c2),a2.push({event:b,listeners:d}),b.target=Qe)))}function Ve(a2,b){var c2={};return c2[a2.toLowerCase()]=b.toLowerCase(),c2["Webkit"+a2]="webkit"+b,c2["Moz"+a2]="moz"+b,c2}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(a2){if(Xe[a2])return Xe[a2];if(!We[a2])return a2;var b=We[a2],c2;for(c2 in b)if(b.hasOwnProperty(c2)&&c2 in Ye)return Xe[a2]=b[c2];return a2}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="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 ff(a2,b){df.set(a2,b),fa(b,[a2])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd"),ff(af,"onAnimationIteration"),ff(bf,"onAnimationStart"),ff("dblclick","onDoubleClick"),ff("focusin","onFocus"),ff("focusout","onBlur"),ff(cf,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(a2,b,c2){var d=a2.type||"unknown-event";a2.currentTarget=c2,Ub(d,b,void 0,a2),a2.currentTarget=null}function se(a2,b){b=(b&4)!==0;for(var c2=0;c2<a2.length;c2++){var d=a2[c2],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k2=h.instance,l=h.currentTarget;if(h=h.listener,k2!==f&&e.isPropagationStopped())break a;nf(e,h,l),f=k2}else for(g=0;g<d.length;g++){if(h=d[g],k2=h.instance,l=h.currentTarget,h=h.listener,k2!==f&&e.isPropagationStopped())break a;nf(e,h,l),f=k2}}}if(Qb)throw a2=Rb,Qb=!1,Rb=null,a2}function D(a2,b){var c2=b[of];c2===void 0&&(c2=b[of]=new Set);var d=a2+"__bubble";c2.has(d)||(pf(b,a2,2,!1),c2.add(d))}function qf(a2,b,c2){var d=0;b&&(d|=4),pf(c2,a2,d,b)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a2){if(!a2[rf]){a2[rf]=!0,da.forEach(function(b2){b2!=="selectionchange"&&(mf.has(b2)||qf(b2,!1,a2),qf(b2,!0,a2))});var b=a2.nodeType===9?a2:a2.ownerDocument;b===null||b[rf]||(b[rf]=!0,qf("selectionchange",!1,b))}}function pf(a2,b,c2,d){switch(jd(b)){case 1:var e=ed;break;case 4:e=gd;break;default:e=fd}c2=e.bind(null,b,c2,a2),e=void 0,!Lb||b!=="touchstart"&&b!=="touchmove"&&b!=="wheel"||(e=!0),d?e!==void 0?a2.addEventListener(b,c2,{capture:!0,passive:e}):a2.addEventListener(b,c2,!0):e!==void 0?a2.addEventListener(b,c2,{passive:e}):a2.addEventListener(b,c2,!1)}function hd(a2,b,c2,d,e){var f=d;if(!(b&1)&&!(b&2)&&d!==null)a:for(;;){if(d===null)return;var g=d.tag;if(g===3||g===4){var h=d.stateNode.containerInfo;if(h===e||h.nodeType===8&&h.parentNode===e)break;if(g===4)for(g=d.return;g!==null;){var k2=g.tag;if((k2===3||k2===4)&&(k2=g.stateNode.containerInfo,k2===e||k2.nodeType===8&&k2.parentNode===e))return;g=g.return}for(;h!==null;){if(g=Wc(h),g===null)return;if(k2=g.tag,k2===5||k2===6){d=f=g;continue a}h=h.parentNode}}d=d.return}Jb(function(){var d2=f,e2=xb(c2),g2=[];a:{var h2=df.get(a2);if(h2!==void 0){var k3=td,n=a2;switch(a2){case"keypress":if(od(c2)===0)break a;case"keydown":case"keyup":k3=Rd;break;case"focusin":n="focus",k3=Fd;break;case"focusout":n="blur",k3=Fd;break;case"beforeblur":case"afterblur":k3=Fd;break;case"click":if(c2.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k3=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k3=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k3=Vd;break;case $e:case af:case bf:k3=Hd;break;case cf:k3=Xd;break;case"scroll":k3=vd;break;case"wheel":k3=Zd;break;case"copy":case"cut":case"paste":k3=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k3=Td}var t=(b&4)!==0,J=!t&&a2==="scroll",x=t?h2!==null?h2+"Capture":null:h2;t=[];for(var w=d2,u;w!==null;){u=w;var F=u.stateNode;if(u.tag===5&&F!==null&&(u=F,x!==null&&(F=Kb(w,x),F!=null&&t.push(tf(w,F,u)))),J)break;w=w.return}0<t.length&&(h2=new k3(h2,n,null,c2,e2),g2.push({event:h2,listeners:t}))}}if(!(b&7)){a:{if(h2=a2==="mouseover"||a2==="pointerover",k3=a2==="mouseout"||a2==="pointerout",h2&&c2!==wb&&(n=c2.relatedTarget||c2.fromElement)&&(Wc(n)||n[uf]))break a;if((k3||h2)&&(h2=e2.window===e2?e2:(h2=e2.ownerDocument)?h2.defaultView||h2.parentWindow:window,k3?(n=c2.relatedTarget||c2.toElement,k3=d2,n=n?Wc(n):null,n!==null&&(J=Vb(n),n!==J||n.tag!==5&&n.tag!==6)&&(n=null)):(k3=null,n=d2),k3!==n)){if(t=Bd,F="onMouseLeave",x="onMouseEnter",w="mouse",(a2==="pointerout"||a2==="pointerover")&&(t=Td,F="onPointerLeave",x="onPointerEnter",w="pointer"),J=k3==null?h2:ue(k3),u=n==null?h2:ue(n),h2=new t(F,w+"leave",k3,c2,e2),h2.target=J,h2.relatedTarget=u,F=null,Wc(e2)===d2&&(t=new t(x,w+"enter",n,c2,e2),t.target=u,t.relatedTarget=J,F=t),J=F,k3&&n)b:{for(t=k3,x=n,w=0,u=t;u;u=vf(u))w++;for(u=0,F=x;F;F=vf(F))u++;for(;0<w-u;)t=vf(t),w--;for(;0<u-w;)x=vf(x),u--;for(;w--;){if(t===x||x!==null&&t===x.alternate)break b;t=vf(t),x=vf(x)}t=null}else t=null;k3!==null&&wf(g2,h2,k3,t,!1),n!==null&&J!==null&&wf(g2,J,n,t,!0)}}a:{if(h2=d2?ue(d2):window,k3=h2.nodeName&&h2.nodeName.toLowerCase(),k3==="select"||k3==="input"&&h2.type==="file")var na=ve;else if(me(h2))if(we)na=Fe;else{na=De;var xa=Ce}else(k3=h2.nodeName)&&k3.toLowerCase()==="input"&&(h2.type==="checkbox"||h2.type==="radio")&&(na=Ee);if(na&&(na=na(a2,d2))){ne(g2,na,c2,e2);break a}xa&&xa(a2,h2,d2),a2==="focusout"&&(xa=h2._wrapperState)&&xa.controlled&&h2.type==="number"&&cb(h2,"number",h2.value)}switch(xa=d2?ue(d2):window,a2){case"focusin":(me(xa)||xa.contentEditable==="true")&&(Qe=xa,Re=d2,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(g2,c2,e2);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(g2,c2,e2)}var $a;if(ae)b:{switch(a2){case"compositionstart":var ba="onCompositionStart";break b;case"compositionend":ba="onCompositionEnd";break b;case"compositionupdate":ba="onCompositionUpdate";break b}ba=void 0}else ie?ge(a2,c2)&&(ba="onCompositionEnd"):a2==="keydown"&&c2.keyCode===229&&(ba="onCompositionStart");ba&&(de&&c2.locale!=="ko"&&(ie||ba!=="onCompositionStart"?ba==="onCompositionEnd"&&ie&&($a=nd()):(kd=e2,ld="value"in kd?kd.value:kd.textContent,ie=!0)),xa=oe(d2,ba),0<xa.length&&(ba=new Ld(ba,a2,null,c2,e2),g2.push({event:ba,listeners:xa}),$a?ba.data=$a:($a=he(c2),$a!==null&&(ba.data=$a)))),($a=ce?je(a2,c2):ke(a2,c2))&&(d2=oe(d2,"onBeforeInput"),0<d2.length&&(e2=new Ld("onBeforeInput","beforeinput",null,c2,e2),g2.push({event:e2,listeners:d2}),e2.data=$a))}se(g2,b)})}function tf(a2,b,c2){return{instance:a2,listener:b,currentTarget:c2}}function oe(a2,b){for(var c2=b+"Capture",d=[];a2!==null;){var e=a2,f=e.stateNode;e.tag===5&&f!==null&&(e=f,f=Kb(a2,c2),f!=null&&d.unshift(tf(a2,f,e)),f=Kb(a2,b),f!=null&&d.push(tf(a2,f,e))),a2=a2.return}return d}function vf(a2){if(a2===null)return null;do a2=a2.return;while(a2&&a2.tag!==5);return a2||null}function wf(a2,b,c2,d,e){for(var f=b._reactName,g=[];c2!==null&&c2!==d;){var h=c2,k2=h.alternate,l=h.stateNode;if(k2!==null&&k2===d)break;h.tag===5&&l!==null&&(h=l,e?(k2=Kb(c2,f),k2!=null&&g.unshift(tf(c2,k2,h))):e||(k2=Kb(c2,f),k2!=null&&g.push(tf(c2,k2,h)))),c2=c2.return}g.length!==0&&a2.push({event:b,listeners:g})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(a2){return(typeof a2=="string"?a2:""+a2).replace(xf,`
69
- `).replace(yf,"")}function Af(a2,b,c2){if(b=zf(b),zf(a2)!==b&&c2)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(a2,b){return a2==="textarea"||a2==="noscript"||typeof b.children=="string"||typeof b.children=="number"||typeof b.dangerouslySetInnerHTML=="object"&&b.dangerouslySetInnerHTML!==null&&b.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(a2){return Hf.resolve(null).then(a2).catch(If)}:Ff;function If(a2){setTimeout(function(){throw a2})}function Kf(a2,b){var c2=b,d=0;do{var e=c2.nextSibling;if(a2.removeChild(c2),e&&e.nodeType===8)if(c2=e.data,c2==="/$"){if(d===0){a2.removeChild(e),bd(b);return}d--}else c2!=="$"&&c2!=="$?"&&c2!=="$!"||d++;c2=e}while(c2);bd(b)}function Lf(a2){for(;a2!=null;a2=a2.nextSibling){var b=a2.nodeType;if(b===1||b===3)break;if(b===8){if(b=a2.data,b==="$"||b==="$!"||b==="$?")break;if(b==="/$")return null}}return a2}function Mf(a2){a2=a2.previousSibling;for(var b=0;a2;){if(a2.nodeType===8){var c2=a2.data;if(c2==="$"||c2==="$!"||c2==="$?"){if(b===0)return a2;b--}else c2==="/$"&&b++}a2=a2.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(a2){var b=a2[Of];if(b)return b;for(var c2=a2.parentNode;c2;){if(b=c2[uf]||c2[Of]){if(c2=b.alternate,b.child!==null||c2!==null&&c2.child!==null)for(a2=Mf(a2);a2!==null;){if(c2=a2[Of])return c2;a2=Mf(a2)}return b}a2=c2,c2=a2.parentNode}return null}function Cb(a2){return a2=a2[Of]||a2[uf],!a2||a2.tag!==5&&a2.tag!==6&&a2.tag!==13&&a2.tag!==3?null:a2}function ue(a2){if(a2.tag===5||a2.tag===6)return a2.stateNode;throw Error(p(33))}function Db(a2){return a2[Pf]||null}var Sf=[],Tf=-1;function Uf(a2){return{current:a2}}function E(a2){0>Tf||(a2.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a2,b){Tf++,Sf[Tf]=a2.current,a2.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a2,b){var c2=a2.type.contextTypes;if(!c2)return Vf;var d=a2.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c2)e[f]=b[f];return d&&(a2=a2.stateNode,a2.__reactInternalMemoizedUnmaskedChildContext=b,a2.__reactInternalMemoizedMaskedChildContext=e),e}function Zf(a2){return a2=a2.childContextTypes,a2!=null}function $f(){E(Wf),E(H)}function ag(a2,b,c2){if(H.current!==Vf)throw Error(p(168));G(H,b),G(Wf,c2)}function bg(a2,b,c2){var d=a2.stateNode;if(b=b.childContextTypes,typeof d.getChildContext!="function")return c2;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a2)||"Unknown",e));return A({},c2,d)}function cg(a2){return a2=(a2=a2.stateNode)&&a2.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,a2),G(Wf,Wf.current),!0}function dg(a2,b,c2){var d=a2.stateNode;if(!d)throw Error(p(169));c2?(a2=bg(a2,b,Xf),d.__reactInternalMemoizedMergedChildContext=a2,E(Wf),E(H),G(H,a2)):E(Wf),G(Wf,c2)}var eg=null,fg=!1,gg=!1;function hg(a2){eg===null?eg=[a2]:eg.push(a2)}function ig(a2){fg=!0,hg(a2)}function jg(){if(!gg&&eg!==null){gg=!0;var a2=0,b=C;try{var c2=eg;for(C=1;a2<c2.length;a2++){var d=c2[a2];do d=d(!0);while(d!==null)}eg=null,fg=!1}catch(e){throw eg!==null&&(eg=eg.slice(a2+1)),ac(fc,jg),e}finally{C=b,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a2,b){kg[lg++]=ng,kg[lg++]=mg,mg=a2,ng=b}function ug(a2,b,c2){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a2;var d=rg;a2=sg;var e=32-oc(d)-1;d&=~(1<<e),c2+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32),d>>=g,e-=g,rg=1<<32-oc(b)+e|c2<<e|d,sg=f+a2}else rg=1<<f|c2<<e|d,sg=a2}function vg(a2){a2.return!==null&&(tg(a2,1),ug(a2,1,0))}function wg(a2){for(;a2===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a2===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(a2,b){var c2=Bg(5,null,null,0);c2.elementType="DELETED",c2.stateNode=b,c2.return=a2,b=a2.deletions,b===null?(a2.deletions=[c2],a2.flags|=16):b.push(c2)}function Cg(a2,b){switch(a2.tag){case 5:var c2=a2.type;return b=b.nodeType!==1||c2.toLowerCase()!==b.nodeName.toLowerCase()?null:b,b!==null?(a2.stateNode=b,xg=a2,yg=Lf(b.firstChild),!0):!1;case 6:return b=a2.pendingProps===""||b.nodeType!==3?null:b,b!==null?(a2.stateNode=b,xg=a2,yg=null,!0):!1;case 13:return b=b.nodeType!==8?null:b,b!==null?(c2=qg!==null?{id:rg,overflow:sg}:null,a2.memoizedState={dehydrated:b,treeContext:c2,retryLane:1073741824},c2=Bg(18,null,null,0),c2.stateNode=b,c2.return=a2,a2.child=c2,xg=a2,yg=null,!0):!1;default:return!1}}function Dg(a2){return(a2.mode&1)!==0&&(a2.flags&128)===0}function Eg(a2){if(I){var b=yg;if(b){var c2=b;if(!Cg(a2,b)){if(Dg(a2))throw Error(p(418));b=Lf(c2.nextSibling);var d=xg;b&&Cg(a2,b)?Ag(d,c2):(a2.flags=a2.flags&-4097|2,I=!1,xg=a2)}}else{if(Dg(a2))throw Error(p(418));a2.flags=a2.flags&-4097|2,I=!1,xg=a2}}}function Fg(a2){for(a2=a2.return;a2!==null&&a2.tag!==5&&a2.tag!==3&&a2.tag!==13;)a2=a2.return;xg=a2}function Gg(a2){if(a2!==xg)return!1;if(!I)return Fg(a2),I=!0,!1;var b;if((b=a2.tag!==3)&&!(b=a2.tag!==5)&&(b=a2.type,b=b!=="head"&&b!=="body"&&!Ef(a2.type,a2.memoizedProps)),b&&(b=yg)){if(Dg(a2))throw Hg(),Error(p(418));for(;b;)Ag(a2,b),b=Lf(b.nextSibling)}if(Fg(a2),a2.tag===13){if(a2=a2.memoizedState,a2=a2!==null?a2.dehydrated:null,!a2)throw Error(p(317));a:{for(a2=a2.nextSibling,b=0;a2;){if(a2.nodeType===8){var c2=a2.data;if(c2==="/$"){if(b===0){yg=Lf(a2.nextSibling);break a}b--}else c2!=="$"&&c2!=="$!"&&c2!=="$?"||b++}a2=a2.nextSibling}yg=null}}else yg=xg?Lf(a2.stateNode.nextSibling):null;return!0}function Hg(){for(var a2=yg;a2;)a2=Lf(a2.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(a2){zg===null?zg=[a2]:zg.push(a2)}var Kg=ua.ReactCurrentBatchConfig;function Lg(a2,b,c2){if(a2=c2.ref,a2!==null&&typeof a2!="function"&&typeof a2!="object"){if(c2._owner){if(c2=c2._owner,c2){if(c2.tag!==1)throw Error(p(309));var d=c2.stateNode}if(!d)throw Error(p(147,a2));var e=d,f=""+a2;return b!==null&&b.ref!==null&&typeof b.ref=="function"&&b.ref._stringRef===f?b.ref:(b=function(a3){var b2=e.refs;a3===null?delete b2[f]:b2[f]=a3},b._stringRef=f,b)}if(typeof a2!="string")throw Error(p(284));if(!c2._owner)throw Error(p(290,a2))}return a2}function Mg(a2,b){throw a2=Object.prototype.toString.call(b),Error(p(31,a2==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":a2))}function Ng(a2){var b=a2._init;return b(a2._payload)}function Og(a2){function b(b2,c3){if(a2){var d2=b2.deletions;d2===null?(b2.deletions=[c3],b2.flags|=16):d2.push(c3)}}function c2(c3,d2){if(!a2)return null;for(;d2!==null;)b(c3,d2),d2=d2.sibling;return null}function d(a3,b2){for(a3=new Map;b2!==null;)b2.key!==null?a3.set(b2.key,b2):a3.set(b2.index,b2),b2=b2.sibling;return a3}function e(a3,b2){return a3=Pg(a3,b2),a3.index=0,a3.sibling=null,a3}function f(b2,c3,d2){return b2.index=d2,a2?(d2=b2.alternate,d2!==null?(d2=d2.index,d2<c3?(b2.flags|=2,c3):d2):(b2.flags|=2,c3)):(b2.flags|=1048576,c3)}function g(b2){return a2&&b2.alternate===null&&(b2.flags|=2),b2}function h(a3,b2,c3,d2){return b2===null||b2.tag!==6?(b2=Qg(c3,a3.mode,d2),b2.return=a3,b2):(b2=e(b2,c3),b2.return=a3,b2)}function k2(a3,b2,c3,d2){var f2=c3.type;return f2===ya?m(a3,b2,c3.props.children,d2,c3.key):b2!==null&&(b2.elementType===f2||typeof f2=="object"&&f2!==null&&f2.$$typeof===Ha&&Ng(f2)===b2.type)?(d2=e(b2,c3.props),d2.ref=Lg(a3,b2,c3),d2.return=a3,d2):(d2=Rg(c3.type,c3.key,c3.props,null,a3.mode,d2),d2.ref=Lg(a3,b2,c3),d2.return=a3,d2)}function l(a3,b2,c3,d2){return b2===null||b2.tag!==4||b2.stateNode.containerInfo!==c3.containerInfo||b2.stateNode.implementation!==c3.implementation?(b2=Sg(c3,a3.mode,d2),b2.return=a3,b2):(b2=e(b2,c3.children||[]),b2.return=a3,b2)}function m(a3,b2,c3,d2,f2){return b2===null||b2.tag!==7?(b2=Tg(c3,a3.mode,d2,f2),b2.return=a3,b2):(b2=e(b2,c3),b2.return=a3,b2)}function q(a3,b2,c3){if(typeof b2=="string"&&b2!==""||typeof b2=="number")return b2=Qg(""+b2,a3.mode,c3),b2.return=a3,b2;if(typeof b2=="object"&&b2!==null){switch(b2.$$typeof){case va:return c3=Rg(b2.type,b2.key,b2.props,null,a3.mode,c3),c3.ref=Lg(a3,null,b2),c3.return=a3,c3;case wa:return b2=Sg(b2,a3.mode,c3),b2.return=a3,b2;case Ha:var d2=b2._init;return q(a3,d2(b2._payload),c3)}if(eb(b2)||Ka(b2))return b2=Tg(b2,a3.mode,c3,null),b2.return=a3,b2;Mg(a3,b2)}return null}function r2(a3,b2,c3,d2){var e2=b2!==null?b2.key:null;if(typeof c3=="string"&&c3!==""||typeof c3=="number")return e2!==null?null:h(a3,b2,""+c3,d2);if(typeof c3=="object"&&c3!==null){switch(c3.$$typeof){case va:return c3.key===e2?k2(a3,b2,c3,d2):null;case wa:return c3.key===e2?l(a3,b2,c3,d2):null;case Ha:return e2=c3._init,r2(a3,b2,e2(c3._payload),d2)}if(eb(c3)||Ka(c3))return e2!==null?null:m(a3,b2,c3,d2,null);Mg(a3,c3)}return null}function y(a3,b2,c3,d2,e2){if(typeof d2=="string"&&d2!==""||typeof d2=="number")return a3=a3.get(c3)||null,h(b2,a3,""+d2,e2);if(typeof d2=="object"&&d2!==null){switch(d2.$$typeof){case va:return a3=a3.get(d2.key===null?c3:d2.key)||null,k2(b2,a3,d2,e2);case wa:return a3=a3.get(d2.key===null?c3:d2.key)||null,l(b2,a3,d2,e2);case Ha:var f2=d2._init;return y(a3,b2,c3,f2(d2._payload),e2)}if(eb(d2)||Ka(d2))return a3=a3.get(c3)||null,m(b2,a3,d2,e2,null);Mg(b2,d2)}return null}function n(e2,g2,h2,k3){for(var l2=null,m2=null,u=g2,w=g2=0,x=null;u!==null&&w<h2.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n2=r2(e2,u,h2[w],k3);if(n2===null){u===null&&(u=x);break}a2&&u&&n2.alternate===null&&b(e2,u),g2=f(n2,g2,w),m2===null?l2=n2:m2.sibling=n2,m2=n2,u=x}if(w===h2.length)return c2(e2,u),I&&tg(e2,w),l2;if(u===null){for(;w<h2.length;w++)u=q(e2,h2[w],k3),u!==null&&(g2=f(u,g2,w),m2===null?l2=u:m2.sibling=u,m2=u);return I&&tg(e2,w),l2}for(u=d(e2,u);w<h2.length;w++)x=y(u,e2,w,h2[w],k3),x!==null&&(a2&&x.alternate!==null&&u.delete(x.key===null?w:x.key),g2=f(x,g2,w),m2===null?l2=x:m2.sibling=x,m2=x);return a2&&u.forEach(function(a3){return b(e2,a3)}),I&&tg(e2,w),l2}function t(e2,g2,h2,k3){var l2=Ka(h2);if(typeof l2!="function")throw Error(p(150));if(h2=l2.call(h2),h2==null)throw Error(p(151));for(var u=l2=null,m2=g2,w=g2=0,x=null,n2=h2.next();m2!==null&&!n2.done;w++,n2=h2.next()){m2.index>w?(x=m2,m2=null):x=m2.sibling;var t2=r2(e2,m2,n2.value,k3);if(t2===null){m2===null&&(m2=x);break}a2&&m2&&t2.alternate===null&&b(e2,m2),g2=f(t2,g2,w),u===null?l2=t2:u.sibling=t2,u=t2,m2=x}if(n2.done)return c2(e2,m2),I&&tg(e2,w),l2;if(m2===null){for(;!n2.done;w++,n2=h2.next())n2=q(e2,n2.value,k3),n2!==null&&(g2=f(n2,g2,w),u===null?l2=n2:u.sibling=n2,u=n2);return I&&tg(e2,w),l2}for(m2=d(e2,m2);!n2.done;w++,n2=h2.next())n2=y(m2,e2,w,n2.value,k3),n2!==null&&(a2&&n2.alternate!==null&&m2.delete(n2.key===null?w:n2.key),g2=f(n2,g2,w),u===null?l2=n2:u.sibling=n2,u=n2);return a2&&m2.forEach(function(a3){return b(e2,a3)}),I&&tg(e2,w),l2}function J(a3,d2,f2,h2){if(typeof f2=="object"&&f2!==null&&f2.type===ya&&f2.key===null&&(f2=f2.props.children),typeof f2=="object"&&f2!==null){switch(f2.$$typeof){case va:a:{for(var k3=f2.key,l2=d2;l2!==null;){if(l2.key===k3){if(k3=f2.type,k3===ya){if(l2.tag===7){c2(a3,l2.sibling),d2=e(l2,f2.props.children),d2.return=a3,a3=d2;break a}}else if(l2.elementType===k3||typeof k3=="object"&&k3!==null&&k3.$$typeof===Ha&&Ng(k3)===l2.type){c2(a3,l2.sibling),d2=e(l2,f2.props),d2.ref=Lg(a3,l2,f2),d2.return=a3,a3=d2;break a}c2(a3,l2);break}else b(a3,l2);l2=l2.sibling}f2.type===ya?(d2=Tg(f2.props.children,a3.mode,h2,f2.key),d2.return=a3,a3=d2):(h2=Rg(f2.type,f2.key,f2.props,null,a3.mode,h2),h2.ref=Lg(a3,d2,f2),h2.return=a3,a3=h2)}return g(a3);case wa:a:{for(l2=f2.key;d2!==null;){if(d2.key===l2)if(d2.tag===4&&d2.stateNode.containerInfo===f2.containerInfo&&d2.stateNode.implementation===f2.implementation){c2(a3,d2.sibling),d2=e(d2,f2.children||[]),d2.return=a3,a3=d2;break a}else{c2(a3,d2);break}else b(a3,d2);d2=d2.sibling}d2=Sg(f2,a3.mode,h2),d2.return=a3,a3=d2}return g(a3);case Ha:return l2=f2._init,J(a3,d2,l2(f2._payload),h2)}if(eb(f2))return n(a3,d2,f2,h2);if(Ka(f2))return t(a3,d2,f2,h2);Mg(a3,f2)}return typeof f2=="string"&&f2!==""||typeof f2=="number"?(f2=""+f2,d2!==null&&d2.tag===6?(c2(a3,d2.sibling),d2=e(d2,f2),d2.return=a3,a3=d2):(c2(a3,d2),d2=Qg(f2,a3.mode,h2),d2.return=a3,a3=d2),g(a3)):c2(a3,d2)}return J}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(a2){var b=Wg.current;E(Wg),a2._currentValue=b}function bh(a2,b,c2){for(;a2!==null;){var d=a2.alternate;if((a2.childLanes&b)!==b?(a2.childLanes|=b,d!==null&&(d.childLanes|=b)):d!==null&&(d.childLanes&b)!==b&&(d.childLanes|=b),a2===c2)break;a2=a2.return}}function ch(a2,b){Xg=a2,Zg=Yg=null,a2=a2.dependencies,a2!==null&&a2.firstContext!==null&&(a2.lanes&b&&(dh=!0),a2.firstContext=null)}function eh(a2){var b=a2._currentValue;if(Zg!==a2)if(a2={context:a2,memoizedValue:b,next:null},Yg===null){if(Xg===null)throw Error(p(308));Yg=a2,Xg.dependencies={lanes:0,firstContext:a2}}else Yg=Yg.next=a2;return b}var fh=null;function gh(a2){fh===null?fh=[a2]:fh.push(a2)}function hh(a2,b,c2,d){var e=b.interleaved;return e===null?(c2.next=c2,gh(b)):(c2.next=e.next,e.next=c2),b.interleaved=c2,ih(a2,d)}function ih(a2,b){a2.lanes|=b;var c2=a2.alternate;for(c2!==null&&(c2.lanes|=b),c2=a2,a2=a2.return;a2!==null;)a2.childLanes|=b,c2=a2.alternate,c2!==null&&(c2.childLanes|=b),c2=a2,a2=a2.return;return c2.tag===3?c2.stateNode:null}var jh=!1;function kh(a2){a2.updateQueue={baseState:a2.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(a2,b){a2=a2.updateQueue,b.updateQueue===a2&&(b.updateQueue={baseState:a2.baseState,firstBaseUpdate:a2.firstBaseUpdate,lastBaseUpdate:a2.lastBaseUpdate,shared:a2.shared,effects:a2.effects})}function mh(a2,b){return{eventTime:a2,lane:b,tag:0,payload:null,callback:null,next:null}}function nh(a2,b,c2){var d=a2.updateQueue;if(d===null)return null;if(d=d.shared,K&2){var e=d.pending;return e===null?b.next=b:(b.next=e.next,e.next=b),d.pending=b,ih(a2,c2)}return e=d.interleaved,e===null?(b.next=b,gh(d)):(b.next=e.next,e.next=b),d.interleaved=b,ih(a2,c2)}function oh(a2,b,c2){if(b=b.updateQueue,b!==null&&(b=b.shared,(c2&4194240)!==0)){var d=b.lanes;d&=a2.pendingLanes,c2|=d,b.lanes=c2,Cc(a2,c2)}}function ph(a2,b){var c2=a2.updateQueue,d=a2.alternate;if(d!==null&&(d=d.updateQueue,c2===d)){var e=null,f=null;if(c2=c2.firstBaseUpdate,c2!==null){do{var g={eventTime:c2.eventTime,lane:c2.lane,tag:c2.tag,payload:c2.payload,callback:c2.callback,next:null};f===null?e=f=g:f=f.next=g,c2=c2.next}while(c2!==null);f===null?e=f=b:f=f.next=b}else e=f=b;c2={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects},a2.updateQueue=c2;return}a2=c2.lastBaseUpdate,a2===null?c2.firstBaseUpdate=b:a2.next=b,c2.lastBaseUpdate=b}function qh(a2,b,c2,d){var e=a2.updateQueue;jh=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(h!==null){e.shared.pending=null;var k2=h,l=k2.next;k2.next=null,g===null?f=l:g.next=l,g=k2;var m=a2.alternate;m!==null&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(h===null?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k2))}if(f!==null){var q=e.baseState;g=0,m=l=k2=null,h=f;do{var r2=h.lane,y=h.eventTime;if((d&r2)===r2){m!==null&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});a:{var n=a2,t=h;switch(r2=b,y=c2,t.tag){case 1:if(n=t.payload,typeof n=="function"){q=n.call(y,q,r2);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:if(n=t.payload,r2=typeof n=="function"?n.call(y,q,r2):n,r2==null)break a;q=A({},q,r2);break a;case 2:jh=!0}}h.callback!==null&&h.lane!==0&&(a2.flags|=64,r2=e.effects,r2===null?e.effects=[h]:r2.push(h))}else y={eventTime:y,lane:r2,tag:h.tag,payload:h.payload,callback:h.callback,next:null},m===null?(l=m=y,k2=q):m=m.next=y,g|=r2;if(h=h.next,h===null){if(h=e.shared.pending,h===null)break;r2=h,h=r2.next,r2.next=null,e.lastBaseUpdate=r2,e.shared.pending=null}}while(!0);if(m===null&&(k2=q),e.baseState=k2,e.firstBaseUpdate=l,e.lastBaseUpdate=m,b=e.shared.interleaved,b!==null){e=b;do g|=e.lane,e=e.next;while(e!==b)}else f===null&&(e.shared.lanes=0);rh|=g,a2.lanes=g,a2.memoizedState=q}}function sh(a2,b,c2){if(a2=b.effects,b.effects=null,a2!==null)for(b=0;b<a2.length;b++){var d=a2[b],e=d.callback;if(e!==null){if(d.callback=null,d=c2,typeof e!="function")throw Error(p(191,e));e.call(d)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(a2){if(a2===th)throw Error(p(174));return a2}function yh(a2,b){switch(G(wh,b),G(vh,a2),G(uh,th),a2=b.nodeType,a2){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,"");break;default:a2=a2===8?b.parentNode:b,b=a2.namespaceURI||null,a2=a2.tagName,b=lb(b,a2)}E(uh),G(uh,b)}function zh(){E(uh),E(vh),E(wh)}function Ah(a2){xh(wh.current);var b=xh(uh.current),c2=lb(b,a2.type);b!==c2&&(G(vh,a2),G(uh,c2))}function Bh(a2){vh.current===a2&&(E(uh),E(vh))}var L=Uf(0);function Ch(a2){for(var b=a2;b!==null;){if(b.tag===13){var c2=b.memoizedState;if(c2!==null&&(c2=c2.dehydrated,c2===null||c2.data==="$?"||c2.data==="$!"))return b}else if(b.tag===19&&b.memoizedProps.revealOrder!==void 0){if(b.flags&128)return b}else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===a2)break;for(;b.sibling===null;){if(b.return===null||b.return===a2)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}var Dh=[];function Eh(){for(var a2=0;a2<Dh.length;a2++)Dh[a2]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p(321))}function Mh(a2,b){if(b===null)return!1;for(var c2=0;c2<b.length&&c2<a2.length;c2++)if(!He(a2[c2],b[c2]))return!1;return!0}function Nh(a2,b,c2,d,e,f){if(Hh=f,M=b,b.memoizedState=null,b.updateQueue=null,b.lanes=0,Fh.current=a2===null||a2.memoizedState===null?Oh:Ph,a2=c2(d,e),Jh){f=0;do{if(Jh=!1,Kh=0,25<=f)throw Error(p(301));f+=1,O=N=null,b.updateQueue=null,Fh.current=Qh,a2=c2(d,e)}while(Jh)}if(Fh.current=Rh,b=N!==null&&N.next!==null,Hh=0,O=N=M=null,Ih=!1,b)throw Error(p(300));return a2}function Sh(){var a2=Kh!==0;return Kh=0,a2}function Th(){var a2={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O===null?M.memoizedState=O=a2:O=O.next=a2,O}function Uh(){if(N===null){var a2=M.alternate;a2=a2!==null?a2.memoizedState:null}else a2=N.next;var b=O===null?M.memoizedState:O.next;if(b!==null)O=b,N=a2;else{if(a2===null)throw Error(p(310));N=a2,a2={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},O===null?M.memoizedState=O=a2:O=O.next=a2}return O}function Vh(a2,b){return typeof b=="function"?b(a2):b}function Wh(a2){var b=Uh(),c2=b.queue;if(c2===null)throw Error(p(311));c2.lastRenderedReducer=a2;var d=N,e=d.baseQueue,f=c2.pending;if(f!==null){if(e!==null){var g=e.next;e.next=f.next,f.next=g}d.baseQueue=e=f,c2.pending=null}if(e!==null){f=e.next,d=d.baseState;var h=g=null,k2=null,l=f;do{var m=l.lane;if((Hh&m)===m)k2!==null&&(k2=k2.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a2(d,l.action);else{var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};k2===null?(h=k2=q,g=d):k2=k2.next=q,M.lanes|=m,rh|=m}l=l.next}while(l!==null&&l!==f);k2===null?g=d:k2.next=h,He(d,b.memoizedState)||(dh=!0),b.memoizedState=d,b.baseState=g,b.baseQueue=k2,c2.lastRenderedState=d}if(a2=c2.interleaved,a2!==null){e=a2;do f=e.lane,M.lanes|=f,rh|=f,e=e.next;while(e!==a2)}else e===null&&(c2.lanes=0);return[b.memoizedState,c2.dispatch]}function Xh(a2){var b=Uh(),c2=b.queue;if(c2===null)throw Error(p(311));c2.lastRenderedReducer=a2;var d=c2.dispatch,e=c2.pending,f=b.memoizedState;if(e!==null){c2.pending=null;var g=e=e.next;do f=a2(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(dh=!0),b.memoizedState=f,b.baseQueue===null&&(b.baseState=f),c2.lastRenderedState=f}return[f,d]}function Yh(){}function Zh(a2,b){var c2=M,d=Uh(),e=b(),f=!He(d.memoizedState,e);if(f&&(d.memoizedState=e,dh=!0),d=d.queue,$h(ai.bind(null,c2,d,a2),[a2]),d.getSnapshot!==b||f||O!==null&&O.memoizedState.tag&1){if(c2.flags|=2048,bi(9,ci.bind(null,c2,d,e,b),void 0,null),Q===null)throw Error(p(349));Hh&30||di(c2,b,e)}return e}function di(a2,b,c2){a2.flags|=16384,a2={getSnapshot:b,value:c2},b=M.updateQueue,b===null?(b={lastEffect:null,stores:null},M.updateQueue=b,b.stores=[a2]):(c2=b.stores,c2===null?b.stores=[a2]:c2.push(a2))}function ci(a2,b,c2,d){b.value=c2,b.getSnapshot=d,ei(b)&&fi(a2)}function ai(a2,b,c2){return c2(function(){ei(b)&&fi(a2)})}function ei(a2){var b=a2.getSnapshot;a2=a2.value;try{var c2=b();return!He(a2,c2)}catch{return!0}}function fi(a2){var b=ih(a2,1);b!==null&&gi(b,a2,1,-1)}function hi(a2){var b=Th();return typeof a2=="function"&&(a2=a2()),b.memoizedState=b.baseState=a2,a2={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:a2},b.queue=a2,a2=a2.dispatch=ii.bind(null,M,a2),[b.memoizedState,a2]}function bi(a2,b,c2,d){return a2={tag:a2,create:b,destroy:c2,deps:d,next:null},b=M.updateQueue,b===null?(b={lastEffect:null,stores:null},M.updateQueue=b,b.lastEffect=a2.next=a2):(c2=b.lastEffect,c2===null?b.lastEffect=a2.next=a2:(d=c2.next,c2.next=a2,a2.next=d,b.lastEffect=a2)),a2}function ji(){return Uh().memoizedState}function ki(a2,b,c2,d){var e=Th();M.flags|=a2,e.memoizedState=bi(1|b,c2,void 0,d===void 0?null:d)}function li(a2,b,c2,d){var e=Uh();d=d===void 0?null:d;var f=void 0;if(N!==null){var g=N.memoizedState;if(f=g.destroy,d!==null&&Mh(d,g.deps)){e.memoizedState=bi(b,c2,f,d);return}}M.flags|=a2,e.memoizedState=bi(1|b,c2,f,d)}function mi(a2,b){return ki(8390656,8,a2,b)}function $h(a2,b){return li(2048,8,a2,b)}function ni(a2,b){return li(4,2,a2,b)}function oi(a2,b){return li(4,4,a2,b)}function pi2(a2,b){if(typeof b=="function")return a2=a2(),b(a2),function(){b(null)};if(b!=null)return a2=a2(),b.current=a2,function(){b.current=null}}function qi(a2,b,c2){return c2=c2!=null?c2.concat([a2]):null,li(4,4,pi2.bind(null,b,a2),c2)}function ri(){}function si(a2,b){var c2=Uh();b=b===void 0?null:b;var d=c2.memoizedState;return d!==null&&b!==null&&Mh(b,d[1])?d[0]:(c2.memoizedState=[a2,b],a2)}function ti(a2,b){var c2=Uh();b=b===void 0?null:b;var d=c2.memoizedState;return d!==null&&b!==null&&Mh(b,d[1])?d[0]:(a2=a2(),c2.memoizedState=[a2,b],a2)}function ui(a2,b,c2){return Hh&21?(He(c2,b)||(c2=yc(),M.lanes|=c2,rh|=c2,a2.baseState=!0),b):(a2.baseState&&(a2.baseState=!1,dh=!0),a2.memoizedState=c2)}function vi(a2,b){var c2=C;C=c2!==0&&4>c2?c2:4,a2(!0);var d=Gh.transition;Gh.transition={};try{a2(!1),b()}finally{C=c2,Gh.transition=d}}function wi(){return Uh().memoizedState}function xi(a2,b,c2){var d=yi(a2);if(c2={lane:d,action:c2,hasEagerState:!1,eagerState:null,next:null},zi(a2))Ai(b,c2);else if(c2=hh(a2,b,c2,d),c2!==null){var e=R();gi(c2,a2,d,e),Bi(c2,b,d)}}function ii(a2,b,c2){var d=yi(a2),e={lane:d,action:c2,hasEagerState:!1,eagerState:null,next:null};if(zi(a2))Ai(b,e);else{var f=a2.alternate;if(a2.lanes===0&&(f===null||f.lanes===0)&&(f=b.lastRenderedReducer,f!==null))try{var g=b.lastRenderedState,h=f(g,c2);if(e.hasEagerState=!0,e.eagerState=h,He(h,g)){var k2=b.interleaved;k2===null?(e.next=e,gh(b)):(e.next=k2.next,k2.next=e),b.interleaved=e;return}}catch{}finally{}c2=hh(a2,b,e,d),c2!==null&&(e=R(),gi(c2,a2,d,e),Bi(c2,b,d))}}function zi(a2){var b=a2.alternate;return a2===M||b!==null&&b===M}function Ai(a2,b){Jh=Ih=!0;var c2=a2.pending;c2===null?b.next=b:(b.next=c2.next,c2.next=b),a2.pending=b}function Bi(a2,b,c2){if(c2&4194240){var d=b.lanes;d&=a2.pendingLanes,c2|=d,b.lanes=c2,Cc(a2,c2)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(a2,b){return Th().memoizedState=[a2,b===void 0?null:b],a2},useContext:eh,useEffect:mi,useImperativeHandle:function(a2,b,c2){return c2=c2!=null?c2.concat([a2]):null,ki(4194308,4,pi2.bind(null,b,a2),c2)},useLayoutEffect:function(a2,b){return ki(4194308,4,a2,b)},useInsertionEffect:function(a2,b){return ki(4,2,a2,b)},useMemo:function(a2,b){var c2=Th();return b=b===void 0?null:b,a2=a2(),c2.memoizedState=[a2,b],a2},useReducer:function(a2,b,c2){var d=Th();return b=c2!==void 0?c2(b):b,d.memoizedState=d.baseState=b,a2={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a2,lastRenderedState:b},d.queue=a2,a2=a2.dispatch=xi.bind(null,M,a2),[d.memoizedState,a2]},useRef:function(a2){var b=Th();return a2={current:a2},b.memoizedState=a2},useState:hi,useDebugValue:ri,useDeferredValue:function(a2){return Th().memoizedState=a2},useTransition:function(){var a2=hi(!1),b=a2[0];return a2=vi.bind(null,a2[1]),Th().memoizedState=a2,[b,a2]},useMutableSource:function(){},useSyncExternalStore:function(a2,b,c2){var d=M,e=Th();if(I){if(c2===void 0)throw Error(p(407));c2=c2()}else{if(c2=b(),Q===null)throw Error(p(349));Hh&30||di(d,b,c2)}e.memoizedState=c2;var f={value:c2,getSnapshot:b};return e.queue=f,mi(ai.bind(null,d,f,a2),[a2]),d.flags|=2048,bi(9,ci.bind(null,d,f,c2,b),void 0,null),c2},useId:function(){var a2=Th(),b=Q.identifierPrefix;if(I){var c2=sg,d=rg;c2=(d&~(1<<32-oc(d)-1)).toString(32)+c2,b=":"+b+"R"+c2,c2=Kh++,0<c2&&(b+="H"+c2.toString(32)),b+=":"}else c2=Lh++,b=":"+b+"r"+c2.toString(32)+":";return a2.memoizedState=b},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(a2){var b=Uh();return ui(b,N.memoizedState,a2)},useTransition:function(){var a2=Wh(Vh)[0],b=Uh().memoizedState;return[a2,b]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(a2){var b=Uh();return N===null?b.memoizedState=a2:ui(b,N.memoizedState,a2)},useTransition:function(){var a2=Xh(Vh)[0],b=Uh().memoizedState;return[a2,b]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(a2,b){if(a2&&a2.defaultProps){b=A({},b),a2=a2.defaultProps;for(var c2 in a2)b[c2]===void 0&&(b[c2]=a2[c2]);return b}return b}function Di(a2,b,c2,d){b=a2.memoizedState,c2=c2(d,b),c2=c2==null?b:A({},b,c2),a2.memoizedState=c2,a2.lanes===0&&(a2.updateQueue.baseState=c2)}var Ei={isMounted:function(a2){return(a2=a2._reactInternals)?Vb(a2)===a2:!1},enqueueSetState:function(a2,b,c2){a2=a2._reactInternals;var d=R(),e=yi(a2),f=mh(d,e);f.payload=b,c2!=null&&(f.callback=c2),b=nh(a2,f,e),b!==null&&(gi(b,a2,e,d),oh(b,a2,e))},enqueueReplaceState:function(a2,b,c2){a2=a2._reactInternals;var d=R(),e=yi(a2),f=mh(d,e);f.tag=1,f.payload=b,c2!=null&&(f.callback=c2),b=nh(a2,f,e),b!==null&&(gi(b,a2,e,d),oh(b,a2,e))},enqueueForceUpdate:function(a2,b){a2=a2._reactInternals;var c2=R(),d=yi(a2),e=mh(c2,d);e.tag=2,b!=null&&(e.callback=b),b=nh(a2,e,d),b!==null&&(gi(b,a2,d,c2),oh(b,a2,d))}};function Fi(a2,b,c2,d,e,f,g){return a2=a2.stateNode,typeof a2.shouldComponentUpdate=="function"?a2.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Ie(c2,d)||!Ie(e,f):!0}function Gi(a2,b,c2){var d=!1,e=Vf,f=b.contextType;return typeof f=="object"&&f!==null?f=eh(f):(e=Zf(b)?Xf:H.current,d=b.contextTypes,f=(d=d!=null)?Yf(a2,e):Vf),b=new b(c2,f),a2.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Ei,a2.stateNode=b,b._reactInternals=a2,d&&(a2=a2.stateNode,a2.__reactInternalMemoizedUnmaskedChildContext=e,a2.__reactInternalMemoizedMaskedChildContext=f),b}function Hi(a2,b,c2,d){a2=b.state,typeof b.componentWillReceiveProps=="function"&&b.componentWillReceiveProps(c2,d),typeof b.UNSAFE_componentWillReceiveProps=="function"&&b.UNSAFE_componentWillReceiveProps(c2,d),b.state!==a2&&Ei.enqueueReplaceState(b,b.state,null)}function Ii(a2,b,c2,d){var e=a2.stateNode;e.props=c2,e.state=a2.memoizedState,e.refs={},kh(a2);var f=b.contextType;typeof f=="object"&&f!==null?e.context=eh(f):(f=Zf(b)?Xf:H.current,e.context=Yf(a2,f)),e.state=a2.memoizedState,f=b.getDerivedStateFromProps,typeof f=="function"&&(Di(a2,b,f,c2),e.state=a2.memoizedState),typeof b.getDerivedStateFromProps=="function"||typeof e.getSnapshotBeforeUpdate=="function"||typeof e.UNSAFE_componentWillMount!="function"&&typeof e.componentWillMount!="function"||(b=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),b!==e.state&&Ei.enqueueReplaceState(e,e.state,null),qh(a2,c2,e,d),e.state=a2.memoizedState),typeof e.componentDidMount=="function"&&(a2.flags|=4194308)}function Ji(a2,b){try{var c2="",d=b;do c2+=Pa(d),d=d.return;while(d);var e=c2}catch(f){e=`
70
- Error generating stack: `+f.message+`
71
- `+f.stack}return{value:a2,source:b,stack:e,digest:null}}function Ki(a2,b,c2){return{value:a2,source:null,stack:c2??null,digest:b??null}}function Li(a2,b){try{console.error(b.value)}catch(c2){setTimeout(function(){throw c2})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(a2,b,c2){c2=mh(-1,c2),c2.tag=3,c2.payload={element:null};var d=b.value;return c2.callback=function(){Oi||(Oi=!0,Pi=d),Li(a2,b)},c2}function Qi(a2,b,c2){c2=mh(-1,c2),c2.tag=3;var d=a2.type.getDerivedStateFromError;if(typeof d=="function"){var e=b.value;c2.payload=function(){return d(e)},c2.callback=function(){Li(a2,b)}}var f=a2.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(c2.callback=function(){Li(a2,b),typeof d!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var c3=b.stack;this.componentDidCatch(b.value,{componentStack:c3!==null?c3:""})}),c2}function Si(a2,b,c2){var d=a2.pingCache;if(d===null){d=a2.pingCache=new Mi;var e=new Set;d.set(b,e)}else e=d.get(b),e===void 0&&(e=new Set,d.set(b,e));e.has(c2)||(e.add(c2),a2=Ti.bind(null,a2,b,c2),b.then(a2,a2))}function Ui(a2){do{var b;if((b=a2.tag===13)&&(b=a2.memoizedState,b=b!==null?b.dehydrated!==null:!0),b)return a2;a2=a2.return}while(a2!==null);return null}function Vi(a2,b,c2,d,e){return a2.mode&1?(a2.flags|=65536,a2.lanes=e,a2):(a2===b?a2.flags|=65536:(a2.flags|=128,c2.flags|=131072,c2.flags&=-52805,c2.tag===1&&(c2.alternate===null?c2.tag=17:(b=mh(-1,1),b.tag=2,nh(c2,b,1))),c2.lanes|=1),a2)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(a2,b,c2,d){b.child=a2===null?Vg(b,null,c2,d):Ug(b,a2.child,c2,d)}function Yi(a2,b,c2,d,e){c2=c2.render;var f=b.ref;return ch(b,e),d=Nh(a2,b,c2,d,f,e),c2=Sh(),a2!==null&&!dh?(b.updateQueue=a2.updateQueue,b.flags&=-2053,a2.lanes&=~e,Zi(a2,b,e)):(I&&c2&&vg(b),b.flags|=1,Xi(a2,b,d,e),b.child)}function $i(a2,b,c2,d,e){if(a2===null){var f=c2.type;return typeof f=="function"&&!aj(f)&&f.defaultProps===void 0&&c2.compare===null&&c2.defaultProps===void 0?(b.tag=15,b.type=f,bj(a2,b,f,d,e)):(a2=Rg(c2.type,null,d,b,b.mode,e),a2.ref=b.ref,a2.return=b,b.child=a2)}if(f=a2.child,!(a2.lanes&e)){var g=f.memoizedProps;if(c2=c2.compare,c2=c2!==null?c2:Ie,c2(g,d)&&a2.ref===b.ref)return Zi(a2,b,e)}return b.flags|=1,a2=Pg(f,d),a2.ref=b.ref,a2.return=b,b.child=a2}function bj(a2,b,c2,d,e){if(a2!==null){var f=a2.memoizedProps;if(Ie(f,d)&&a2.ref===b.ref)if(dh=!1,b.pendingProps=d=f,(a2.lanes&e)!==0)a2.flags&131072&&(dh=!0);else return b.lanes=a2.lanes,Zi(a2,b,e)}return cj(a2,b,c2,d,e)}function dj(a2,b,c2){var d=b.pendingProps,e=d.children,f=a2!==null?a2.memoizedState:null;if(d.mode==="hidden")if(!(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=c2;else{if(!(c2&1073741824))return a2=f!==null?f.baseLanes|c2:c2,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a2,cachePool:null,transitions:null},b.updateQueue=null,G(ej,fj),fj|=a2,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=f!==null?f.baseLanes:c2,G(ej,fj),fj|=d}else f!==null?(d=f.baseLanes|c2,b.memoizedState=null):d=c2,G(ej,fj),fj|=d;return Xi(a2,b,e,c2),b.child}function gj(a2,b){var c2=b.ref;(a2===null&&c2!==null||a2!==null&&a2.ref!==c2)&&(b.flags|=512,b.flags|=2097152)}function cj(a2,b,c2,d,e){var f=Zf(c2)?Xf:H.current;return f=Yf(b,f),ch(b,e),c2=Nh(a2,b,c2,d,f,e),d=Sh(),a2!==null&&!dh?(b.updateQueue=a2.updateQueue,b.flags&=-2053,a2.lanes&=~e,Zi(a2,b,e)):(I&&d&&vg(b),b.flags|=1,Xi(a2,b,c2,e),b.child)}function hj(a2,b,c2,d,e){if(Zf(c2)){var f=!0;cg(b)}else f=!1;if(ch(b,e),b.stateNode===null)ij(a2,b),Gi(b,c2,d),Ii(b,c2,d,e),d=!0;else if(a2===null){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k2=g.context,l=c2.contextType;typeof l=="object"&&l!==null?l=eh(l):(l=Zf(c2)?Xf:H.current,l=Yf(b,l));var m=c2.getDerivedStateFromProps,q=typeof m=="function"||typeof g.getSnapshotBeforeUpdate=="function";q||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(h!==d||k2!==l)&&Hi(b,g,d,l),jh=!1;var r2=b.memoizedState;g.state=r2,qh(b,d,g,e),k2=b.memoizedState,h!==d||r2!==k2||Wf.current||jh?(typeof m=="function"&&(Di(b,c2,m,d),k2=b.memoizedState),(h=jh||Fi(b,c2,h,d,r2,k2,l))?(q||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(b.flags|=4194308)):(typeof g.componentDidMount=="function"&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k2),g.props=d,g.state=k2,g.context=l,d=h):(typeof g.componentDidMount=="function"&&(b.flags|=4194308),d=!1)}else{g=b.stateNode,lh(a2,b),h=b.memoizedProps,l=b.type===b.elementType?h:Ci(b.type,h),g.props=l,q=b.pendingProps,r2=g.context,k2=c2.contextType,typeof k2=="object"&&k2!==null?k2=eh(k2):(k2=Zf(c2)?Xf:H.current,k2=Yf(b,k2));var y=c2.getDerivedStateFromProps;(m=typeof y=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(h!==q||r2!==k2)&&Hi(b,g,d,k2),jh=!1,r2=b.memoizedState,g.state=r2,qh(b,d,g,e);var n=b.memoizedState;h!==q||r2!==n||Wf.current||jh?(typeof y=="function"&&(Di(b,c2,y,d),n=b.memoizedState),(l=jh||Fi(b,c2,l,d,r2,n,k2)||!1)?(m||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(d,n,k2),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(d,n,k2)),typeof g.componentDidUpdate=="function"&&(b.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(b.flags|=1024)):(typeof g.componentDidUpdate!="function"||h===a2.memoizedProps&&r2===a2.memoizedState||(b.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||h===a2.memoizedProps&&r2===a2.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k2,d=l):(typeof g.componentDidUpdate!="function"||h===a2.memoizedProps&&r2===a2.memoizedState||(b.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||h===a2.memoizedProps&&r2===a2.memoizedState||(b.flags|=1024),d=!1)}return jj(a2,b,c2,d,f,e)}function jj(a2,b,c2,d,e,f){gj(a2,b);var g=(b.flags&128)!==0;if(!d&&!g)return e&&dg(b,c2,!1),Zi(a2,b,f);d=b.stateNode,Wi.current=b;var h=g&&typeof c2.getDerivedStateFromError!="function"?null:d.render();return b.flags|=1,a2!==null&&g?(b.child=Ug(b,a2.child,null,f),b.child=Ug(b,null,h,f)):Xi(a2,b,h,f),b.memoizedState=d.state,e&&dg(b,c2,!0),b.child}function kj(a2){var b=a2.stateNode;b.pendingContext?ag(a2,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(a2,b.context,!1),yh(a2,b.containerInfo)}function lj(a2,b,c2,d,e){return Ig(),Jg(e),b.flags|=256,Xi(a2,b,c2,d),b.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a2){return{baseLanes:a2,cachePool:null,transitions:null}}function oj(a2,b,c2){var d=b.pendingProps,e=L.current,f=!1,g=(b.flags&128)!==0,h;if((h=g)||(h=a2!==null&&a2.memoizedState===null?!1:(e&2)!==0),h?(f=!0,b.flags&=-129):(a2===null||a2.memoizedState!==null)&&(e|=1),G(L,e&1),a2===null)return Eg(b),a2=b.memoizedState,a2!==null&&(a2=a2.dehydrated,a2!==null)?(b.mode&1?a2.data==="$!"?b.lanes=8:b.lanes=1073741824:b.lanes=1,null):(g=d.children,a2=d.fallback,f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},!(d&1)&&f!==null?(f.childLanes=0,f.pendingProps=g):f=pj(g,d,0,null),a2=Tg(a2,d,c2,null),f.return=b,a2.return=b,f.sibling=a2,b.child=f,b.child.memoizedState=nj(c2),b.memoizedState=mj,a2):qj(b,g));if(e=a2.memoizedState,e!==null&&(h=e.dehydrated,h!==null))return rj(a2,b,g,d,h,e,c2);if(f){f=d.fallback,g=b.mode,e=a2.child,h=e.sibling;var k2={mode:"hidden",children:d.children};return!(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k2,b.deletions=null):(d=Pg(e,k2),d.subtreeFlags=e.subtreeFlags&14680064),h!==null?f=Pg(h,f):(f=Tg(f,g,c2,null),f.flags|=2),f.return=b,d.return=b,d.sibling=f,b.child=d,d=f,f=b.child,g=a2.child.memoizedState,g=g===null?nj(c2):{baseLanes:g.baseLanes|c2,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=a2.childLanes&~c2,b.memoizedState=mj,d}return f=a2.child,a2=f.sibling,d=Pg(f,{mode:"visible",children:d.children}),!(b.mode&1)&&(d.lanes=c2),d.return=b,d.sibling=null,a2!==null&&(c2=b.deletions,c2===null?(b.deletions=[a2],b.flags|=16):c2.push(a2)),b.child=d,b.memoizedState=null,d}function qj(a2,b){return b=pj({mode:"visible",children:b},a2.mode,0,null),b.return=a2,a2.child=b}function sj(a2,b,c2,d){return d!==null&&Jg(d),Ug(b,a2.child,null,c2),a2=qj(b,b.pendingProps.children),a2.flags|=2,b.memoizedState=null,a2}function rj(a2,b,c2,d,e,f,g){if(c2)return b.flags&256?(b.flags&=-257,d=Ki(Error(p(422))),sj(a2,b,g,d)):b.memoizedState!==null?(b.child=a2.child,b.flags|=128,null):(f=d.fallback,e=b.mode,d=pj({mode:"visible",children:d.children},e,0,null),f=Tg(f,e,g,null),f.flags|=2,d.return=b,f.return=b,d.sibling=f,b.child=d,b.mode&1&&Ug(b,a2.child,null,g),b.child.memoizedState=nj(g),b.memoizedState=mj,f);if(!(b.mode&1))return sj(a2,b,g,null);if(e.data==="$!"){if(d=e.nextSibling&&e.nextSibling.dataset,d)var h=d.dgst;return d=h,f=Error(p(419)),d=Ki(f,d,void 0),sj(a2,b,g,d)}if(h=(g&a2.childLanes)!==0,dh||h){if(d=Q,d!==null){switch(g&-g){case 4:e=2;break;case 16:e=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:e=32;break;case 536870912:e=268435456;break;default:e=0}e=e&(d.suspendedLanes|g)?0:e,e!==0&&e!==f.retryLane&&(f.retryLane=e,ih(a2,e),gi(d,a2,e,-1))}return tj(),d=Ki(Error(p(421))),sj(a2,b,g,d)}return e.data==="$?"?(b.flags|=128,b.child=a2.child,b=uj.bind(null,a2),e._reactRetry=b,null):(a2=f.treeContext,yg=Lf(e.nextSibling),xg=b,I=!0,zg=null,a2!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a2.id,sg=a2.overflow,qg=b),b=qj(b,d.children),b.flags|=4096,b)}function vj(a2,b,c2){a2.lanes|=b;var d=a2.alternate;d!==null&&(d.lanes|=b),bh(a2.return,b,c2)}function wj(a2,b,c2,d,e){var f=a2.memoizedState;f===null?a2.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c2,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c2,f.tailMode=e)}function xj(a2,b,c2){var d=b.pendingProps,e=d.revealOrder,f=d.tail;if(Xi(a2,b,d.children,c2),d=L.current,d&2)d=d&1|2,b.flags|=128;else{if(a2!==null&&a2.flags&128)a:for(a2=b.child;a2!==null;){if(a2.tag===13)a2.memoizedState!==null&&vj(a2,c2,b);else if(a2.tag===19)vj(a2,c2,b);else if(a2.child!==null){a2.child.return=a2,a2=a2.child;continue}if(a2===b)break a;for(;a2.sibling===null;){if(a2.return===null||a2.return===b)break a;a2=a2.return}a2.sibling.return=a2.return,a2=a2.sibling}d&=1}if(G(L,d),!(b.mode&1))b.memoizedState=null;else switch(e){case"forwards":for(c2=b.child,e=null;c2!==null;)a2=c2.alternate,a2!==null&&Ch(a2)===null&&(e=c2),c2=c2.sibling;c2=e,c2===null?(e=b.child,b.child=null):(e=c2.sibling,c2.sibling=null),wj(b,!1,e,c2,f);break;case"backwards":for(c2=null,e=b.child,b.child=null;e!==null;){if(a2=e.alternate,a2!==null&&Ch(a2)===null){b.child=e;break}a2=e.sibling,e.sibling=c2,c2=e,e=a2}wj(b,!0,c2,null,f);break;case"together":wj(b,!1,null,null,void 0);break;default:b.memoizedState=null}return b.child}function ij(a2,b){!(b.mode&1)&&a2!==null&&(a2.alternate=null,b.alternate=null,b.flags|=2)}function Zi(a2,b,c2){if(a2!==null&&(b.dependencies=a2.dependencies),rh|=b.lanes,!(c2&b.childLanes))return null;if(a2!==null&&b.child!==a2.child)throw Error(p(153));if(b.child!==null){for(a2=b.child,c2=Pg(a2,a2.pendingProps),b.child=c2,c2.return=b;a2.sibling!==null;)a2=a2.sibling,c2=c2.sibling=Pg(a2,a2.pendingProps),c2.return=b;c2.sibling=null}return b.child}function yj(a2,b,c2){switch(b.tag){case 3:kj(b),Ig();break;case 5:Ah(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:yh(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Wg,d._currentValue),d._currentValue=e;break;case 13:if(d=b.memoizedState,d!==null)return d.dehydrated!==null?(G(L,L.current&1),b.flags|=128,null):c2&b.child.childLanes?oj(a2,b,c2):(G(L,L.current&1),a2=Zi(a2,b,c2),a2!==null?a2.sibling:null);G(L,L.current&1);break;case 19:if(d=(c2&b.childLanes)!==0,a2.flags&128){if(d)return xj(a2,b,c2);b.flags|=128}if(e=b.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),G(L,L.current),d)break;return null;case 22:case 23:return b.lanes=0,dj(a2,b,c2)}return Zi(a2,b,c2)}var zj,Aj,Bj,Cj;zj=function(a2,b){for(var c2=b.child;c2!==null;){if(c2.tag===5||c2.tag===6)a2.appendChild(c2.stateNode);else if(c2.tag!==4&&c2.child!==null){c2.child.return=c2,c2=c2.child;continue}if(c2===b)break;for(;c2.sibling===null;){if(c2.return===null||c2.return===b)return;c2=c2.return}c2.sibling.return=c2.return,c2=c2.sibling}},Aj=function(){},Bj=function(a2,b,c2,d){var e=a2.memoizedProps;if(e!==d){a2=b.stateNode,xh(uh.current);var f=null;switch(c2){case"input":e=Ya(a2,e),d=Ya(a2,d),f=[];break;case"select":e=A({},e,{value:void 0}),d=A({},d,{value:void 0}),f=[];break;case"textarea":e=gb(a2,e),d=gb(a2,d),f=[];break;default:typeof e.onClick!="function"&&typeof d.onClick=="function"&&(a2.onclick=Bf)}ub(c2,d);var g;c2=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&e[l]!=null)if(l==="style"){var h=e[l];for(g in h)h.hasOwnProperty(g)&&(c2||(c2={}),c2[g]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k2=d[l];if(h=e!=null?e[l]:void 0,d.hasOwnProperty(l)&&k2!==h&&(k2!=null||h!=null))if(l==="style")if(h){for(g in h)!h.hasOwnProperty(g)||k2&&k2.hasOwnProperty(g)||(c2||(c2={}),c2[g]="");for(g in k2)k2.hasOwnProperty(g)&&h[g]!==k2[g]&&(c2||(c2={}),c2[g]=k2[g])}else c2||(f||(f=[]),f.push(l,c2)),c2=k2;else l==="dangerouslySetInnerHTML"?(k2=k2?k2.__html:void 0,h=h?h.__html:void 0,k2!=null&&h!==k2&&(f=f||[]).push(l,k2)):l==="children"?typeof k2!="string"&&typeof k2!="number"||(f=f||[]).push(l,""+k2):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ea.hasOwnProperty(l)?(k2!=null&&l==="onScroll"&&D("scroll",a2),f||h===k2||(f=[])):(f=f||[]).push(l,k2))}c2&&(f=f||[]).push("style",c2);var l=f;(b.updateQueue=l)&&(b.flags|=4)}},Cj=function(a2,b,c2,d){c2!==d&&(b.flags|=4)};function Dj(a2,b){if(!I)switch(a2.tailMode){case"hidden":b=a2.tail;for(var c2=null;b!==null;)b.alternate!==null&&(c2=b),b=b.sibling;c2===null?a2.tail=null:c2.sibling=null;break;case"collapsed":c2=a2.tail;for(var d=null;c2!==null;)c2.alternate!==null&&(d=c2),c2=c2.sibling;d===null?b||a2.tail===null?a2.tail=null:a2.tail.sibling=null:d.sibling=null}}function S(a2){var b=a2.alternate!==null&&a2.alternate.child===a2.child,c2=0,d=0;if(b)for(var e=a2.child;e!==null;)c2|=e.lanes|e.childLanes,d|=e.subtreeFlags&14680064,d|=e.flags&14680064,e.return=a2,e=e.sibling;else for(e=a2.child;e!==null;)c2|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a2,e=e.sibling;return a2.subtreeFlags|=d,a2.childLanes=c2,b}function Ej(a2,b,c2){var d=b.pendingProps;switch(wg(b),b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(b),null;case 1:return Zf(b.type)&&$f(),S(b),null;case 3:return d=b.stateNode,zh(),E(Wf),E(H),Eh(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(a2===null||a2.child===null)&&(Gg(b)?b.flags|=4:a2===null||a2.memoizedState.isDehydrated&&!(b.flags&256)||(b.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(a2,b),S(b),null;case 5:Bh(b);var e=xh(wh.current);if(c2=b.type,a2!==null&&b.stateNode!=null)Bj(a2,b,c2,d,e),a2.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!d){if(b.stateNode===null)throw Error(p(166));return S(b),null}if(a2=xh(uh.current),Gg(b)){d=b.stateNode,c2=b.type;var f=b.memoizedProps;switch(d[Of]=b,d[Pf]=f,a2=(b.mode&1)!==0,c2){case"dialog":D("cancel",d),D("close",d);break;case"iframe":case"object":case"embed":D("load",d);break;case"video":case"audio":for(e=0;e<lf.length;e++)D(lf[e],d);break;case"source":D("error",d);break;case"img":case"image":case"link":D("error",d),D("load",d);break;case"details":D("toggle",d);break;case"input":Za(d,f),D("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!f.multiple},D("invalid",d);break;case"textarea":hb(d,f),D("invalid",d)}ub(c2,f),e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];g==="children"?typeof h=="string"?d.textContent!==h&&(f.suppressHydrationWarning!==!0&&Af(d.textContent,h,a2),e=["children",h]):typeof h=="number"&&d.textContent!==""+h&&(f.suppressHydrationWarning!==!0&&Af(d.textContent,h,a2),e=["children",""+h]):ea.hasOwnProperty(g)&&h!=null&&g==="onScroll"&&D("scroll",d)}switch(c2){case"input":Va(d),db(d,f,!0);break;case"textarea":Va(d),jb(d);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(d.onclick=Bf)}d=e,b.updateQueue=d,d!==null&&(b.flags|=4)}else{g=e.nodeType===9?e:e.ownerDocument,a2==="http://www.w3.org/1999/xhtml"&&(a2=kb(c2)),a2==="http://www.w3.org/1999/xhtml"?c2==="script"?(a2=g.createElement("div"),a2.innerHTML="<script><\/script>",a2=a2.removeChild(a2.firstChild)):typeof d.is=="string"?a2=g.createElement(c2,{is:d.is}):(a2=g.createElement(c2),c2==="select"&&(g=a2,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a2=g.createElementNS(a2,c2),a2[Of]=b,a2[Pf]=d,zj(a2,b,!1,!1),b.stateNode=a2;a:{switch(g=vb(c2,d),c2){case"dialog":D("cancel",a2),D("close",a2),e=d;break;case"iframe":case"object":case"embed":D("load",a2),e=d;break;case"video":case"audio":for(e=0;e<lf.length;e++)D(lf[e],a2);e=d;break;case"source":D("error",a2),e=d;break;case"img":case"image":case"link":D("error",a2),D("load",a2),e=d;break;case"details":D("toggle",a2),e=d;break;case"input":Za(a2,d),e=Ya(a2,d),D("invalid",a2);break;case"option":e=d;break;case"select":a2._wrapperState={wasMultiple:!!d.multiple},e=A({},d,{value:void 0}),D("invalid",a2);break;case"textarea":hb(a2,d),e=gb(a2,d),D("invalid",a2);break;default:e=d}ub(c2,e),h=e;for(f in h)if(h.hasOwnProperty(f)){var k2=h[f];f==="style"?sb(a2,k2):f==="dangerouslySetInnerHTML"?(k2=k2?k2.__html:void 0,k2!=null&&nb(a2,k2)):f==="children"?typeof k2=="string"?(c2!=="textarea"||k2!=="")&&ob(a2,k2):typeof k2=="number"&&ob(a2,""+k2):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(ea.hasOwnProperty(f)?k2!=null&&f==="onScroll"&&D("scroll",a2):k2!=null&&ta(a2,f,k2,g))}switch(c2){case"input":Va(a2),db(a2,d,!1);break;case"textarea":Va(a2),jb(a2);break;case"option":d.value!=null&&a2.setAttribute("value",""+Sa(d.value));break;case"select":a2.multiple=!!d.multiple,f=d.value,f!=null?fb(a2,!!d.multiple,f,!1):d.defaultValue!=null&&fb(a2,!!d.multiple,d.defaultValue,!0);break;default:typeof e.onClick=="function"&&(a2.onclick=Bf)}switch(c2){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break a;case"img":d=!0;break a;default:d=!1}}d&&(b.flags|=4)}b.ref!==null&&(b.flags|=512,b.flags|=2097152)}return S(b),null;case 6:if(a2&&b.stateNode!=null)Cj(a2,b,a2.memoizedProps,d);else{if(typeof d!="string"&&b.stateNode===null)throw Error(p(166));if(c2=xh(wh.current),xh(uh.current),Gg(b)){if(d=b.stateNode,c2=b.memoizedProps,d[Of]=b,(f=d.nodeValue!==c2)&&(a2=xg,a2!==null))switch(a2.tag){case 3:Af(d.nodeValue,c2,(a2.mode&1)!==0);break;case 5:a2.memoizedProps.suppressHydrationWarning!==!0&&Af(d.nodeValue,c2,(a2.mode&1)!==0)}f&&(b.flags|=4)}else d=(c2.nodeType===9?c2:c2.ownerDocument).createTextNode(d),d[Of]=b,b.stateNode=d}return S(b),null;case 13:if(E(L),d=b.memoizedState,a2===null||a2.memoizedState!==null&&a2.memoizedState.dehydrated!==null){if(I&&yg!==null&&b.mode&1&&!(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),d!==null&&d.dehydrated!==null){if(a2===null){if(!f)throw Error(p(318));if(f=b.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(p(317));f[Of]=b}else Ig(),!(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S(b),f=!1}else zg!==null&&(Fj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}return b.flags&128?(b.lanes=c2,b):(d=d!==null,d!==(a2!==null&&a2.memoizedState!==null)&&d&&(b.child.flags|=8192,b.mode&1&&(a2===null||L.current&1?T===0&&(T=3):tj())),b.updateQueue!==null&&(b.flags|=4),S(b),null);case 4:return zh(),Aj(a2,b),a2===null&&sf(b.stateNode.containerInfo),S(b),null;case 10:return ah(b.type._context),S(b),null;case 17:return Zf(b.type)&&$f(),S(b),null;case 19:if(E(L),f=b.memoizedState,f===null)return S(b),null;if(d=(b.flags&128)!==0,g=f.rendering,g===null)if(d)Dj(f,!1);else{if(T!==0||a2!==null&&a2.flags&128)for(a2=b.child;a2!==null;){if(g=Ch(a2),g!==null){for(b.flags|=128,Dj(f,!1),d=g.updateQueue,d!==null&&(b.updateQueue=d,b.flags|=4),b.subtreeFlags=0,d=c2,c2=b.child;c2!==null;)f=c2,a2=d,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=a2,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a2=g.dependencies,f.dependencies=a2===null?null:{lanes:a2.lanes,firstContext:a2.firstContext}),c2=c2.sibling;return G(L,L.current&1|2),b.child}a2=a2.sibling}f.tail!==null&&B()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304)}else{if(!d)if(a2=Ch(g),a2!==null){if(b.flags|=128,d=!0,c2=a2.updateQueue,c2!==null&&(b.updateQueue=c2,b.flags|=4),Dj(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Gj&&c2!==1073741824&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c2=f.last,c2!==null?c2.sibling=g:b.child=g,f.last=g)}return f.tail!==null?(b=f.tail,f.rendering=b,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c2=L.current,G(L,d?c2&1|2:c2&1),b):(S(b),null);case 22:case 23:return Hj(),d=b.memoizedState!==null,a2!==null&&a2.memoizedState!==null!==d&&(b.flags|=8192),d&&b.mode&1?fj&1073741824&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag))}function Ij(a2,b){switch(wg(b),b.tag){case 1:return Zf(b.type)&&$f(),a2=b.flags,a2&65536?(b.flags=a2&-65537|128,b):null;case 3:return zh(),E(Wf),E(H),Eh(),a2=b.flags,a2&65536&&!(a2&128)?(b.flags=a2&-65537|128,b):null;case 5:return Bh(b),null;case 13:if(E(L),a2=b.memoizedState,a2!==null&&a2.dehydrated!==null){if(b.alternate===null)throw Error(p(340));Ig()}return a2=b.flags,a2&65536?(b.flags=a2&-65537|128,b):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(b.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(a2,b){var c2=a2.ref;if(c2!==null)if(typeof c2=="function")try{c2(null)}catch(d){W(a2,b,d)}else c2.current=null}function Mj(a2,b,c2){try{c2()}catch(d){W(a2,b,d)}}var Nj=!1;function Oj(a2,b){if(Cf=dd,a2=Me(),Ne(a2)){if("selectionStart"in a2)var c2={start:a2.selectionStart,end:a2.selectionEnd};else a:{c2=(c2=a2.ownerDocument)&&c2.defaultView||window;var d=c2.getSelection&&c2.getSelection();if(d&&d.rangeCount!==0){c2=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c2.nodeType,f.nodeType}catch{c2=null;break a}var g=0,h=-1,k2=-1,l=0,m=0,q=a2,r2=null;b:for(;;){for(var y;q!==c2||e!==0&&q.nodeType!==3||(h=g+e),q!==f||d!==0&&q.nodeType!==3||(k2=g+d),q.nodeType===3&&(g+=q.nodeValue.length),(y=q.firstChild)!==null;)r2=q,q=y;for(;;){if(q===a2)break b;if(r2===c2&&++l===e&&(h=g),r2===f&&++m===d&&(k2=g),(y=q.nextSibling)!==null)break;q=r2,r2=q.parentNode}q=y}c2=h===-1||k2===-1?null:{start:h,end:k2}}else c2=null}c2=c2||{start:0,end:0}}else c2=null;for(Df={focusedElem:a2,selectionRange:c2},dd=!1,V=b;V!==null;)if(b=V,a2=b.child,(b.subtreeFlags&1028)!==0&&a2!==null)a2.return=b,V=a2;else for(;V!==null;){b=V;try{var n=b.alternate;if(b.flags&1024)switch(b.tag){case 0:case 11:case 15:break;case 1:if(n!==null){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Ci(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;u.nodeType===1?u.textContent="":u.nodeType===9&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(F){W(b,b.return,F)}if(a2=b.sibling,a2!==null){a2.return=b.return,V=a2;break}V=b.return}return n=Nj,Nj=!1,n}function Pj(a2,b,c2){var d=b.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var e=d=d.next;do{if((e.tag&a2)===a2){var f=e.destroy;e.destroy=void 0,f!==void 0&&Mj(b,c2,f)}e=e.next}while(e!==d)}}function Qj(a2,b){if(b=b.updateQueue,b=b!==null?b.lastEffect:null,b!==null){var c2=b=b.next;do{if((c2.tag&a2)===a2){var d=c2.create;c2.destroy=d()}c2=c2.next}while(c2!==b)}}function Rj(a2){var b=a2.ref;if(b!==null){var c2=a2.stateNode;switch(a2.tag){case 5:a2=c2;break;default:a2=c2}typeof b=="function"?b(a2):b.current=a2}}function Sj(a2){var b=a2.alternate;b!==null&&(a2.alternate=null,Sj(b)),a2.child=null,a2.deletions=null,a2.sibling=null,a2.tag===5&&(b=a2.stateNode,b!==null&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf])),a2.stateNode=null,a2.return=null,a2.dependencies=null,a2.memoizedProps=null,a2.memoizedState=null,a2.pendingProps=null,a2.stateNode=null,a2.updateQueue=null}function Tj(a2){return a2.tag===5||a2.tag===3||a2.tag===4}function Uj(a2){a:for(;;){for(;a2.sibling===null;){if(a2.return===null||Tj(a2.return))return null;a2=a2.return}for(a2.sibling.return=a2.return,a2=a2.sibling;a2.tag!==5&&a2.tag!==6&&a2.tag!==18;){if(a2.flags&2||a2.child===null||a2.tag===4)continue a;a2.child.return=a2,a2=a2.child}if(!(a2.flags&2))return a2.stateNode}}function Vj(a2,b,c2){var d=a2.tag;if(d===5||d===6)a2=a2.stateNode,b?c2.nodeType===8?c2.parentNode.insertBefore(a2,b):c2.insertBefore(a2,b):(c2.nodeType===8?(b=c2.parentNode,b.insertBefore(a2,c2)):(b=c2,b.appendChild(a2)),c2=c2._reactRootContainer,c2!=null||b.onclick!==null||(b.onclick=Bf));else if(d!==4&&(a2=a2.child,a2!==null))for(Vj(a2,b,c2),a2=a2.sibling;a2!==null;)Vj(a2,b,c2),a2=a2.sibling}function Wj(a2,b,c2){var d=a2.tag;if(d===5||d===6)a2=a2.stateNode,b?c2.insertBefore(a2,b):c2.appendChild(a2);else if(d!==4&&(a2=a2.child,a2!==null))for(Wj(a2,b,c2),a2=a2.sibling;a2!==null;)Wj(a2,b,c2),a2=a2.sibling}var X=null,Xj=!1;function Yj(a2,b,c2){for(c2=c2.child;c2!==null;)Zj(a2,b,c2),c2=c2.sibling}function Zj(a2,b,c2){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,c2)}catch{}switch(c2.tag){case 5:U||Lj(c2,b);case 6:var d=X,e=Xj;X=null,Yj(a2,b,c2),X=d,Xj=e,X!==null&&(Xj?(a2=X,c2=c2.stateNode,a2.nodeType===8?a2.parentNode.removeChild(c2):a2.removeChild(c2)):X.removeChild(c2.stateNode));break;case 18:X!==null&&(Xj?(a2=X,c2=c2.stateNode,a2.nodeType===8?Kf(a2.parentNode,c2):a2.nodeType===1&&Kf(a2,c2),bd(a2)):Kf(X,c2.stateNode));break;case 4:d=X,e=Xj,X=c2.stateNode.containerInfo,Xj=!0,Yj(a2,b,c2),X=d,Xj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c2.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag,g!==void 0&&(f&2||f&4)&&Mj(c2,b,g),e=e.next}while(e!==d)}Yj(a2,b,c2);break;case 1:if(!U&&(Lj(c2,b),d=c2.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=c2.memoizedProps,d.state=c2.memoizedState,d.componentWillUnmount()}catch(h){W(c2,b,h)}Yj(a2,b,c2);break;case 21:Yj(a2,b,c2);break;case 22:c2.mode&1?(U=(d=U)||c2.memoizedState!==null,Yj(a2,b,c2),U=d):Yj(a2,b,c2);break;default:Yj(a2,b,c2)}}function ak(a2){var b=a2.updateQueue;if(b!==null){a2.updateQueue=null;var c2=a2.stateNode;c2===null&&(c2=a2.stateNode=new Kj),b.forEach(function(b2){var d=bk.bind(null,a2,b2);c2.has(b2)||(c2.add(b2),b2.then(d,d))})}}function ck(a2,b){var c2=b.deletions;if(c2!==null)for(var d=0;d<c2.length;d++){var e=c2[d];try{var f=a2,g=b,h=g;a:for(;h!==null;){switch(h.tag){case 5:X=h.stateNode,Xj=!1;break a;case 3:X=h.stateNode.containerInfo,Xj=!0;break a;case 4:X=h.stateNode.containerInfo,Xj=!0;break a}h=h.return}if(X===null)throw Error(p(160));Zj(f,g,e),X=null,Xj=!1;var k2=e.alternate;k2!==null&&(k2.return=null),e.return=null}catch(l){W(e,b,l)}}if(b.subtreeFlags&12854)for(b=b.child;b!==null;)dk(b,a2),b=b.sibling}function dk(a2,b){var c2=a2.alternate,d=a2.flags;switch(a2.tag){case 0:case 11:case 14:case 15:if(ck(b,a2),ek(a2),d&4){try{Pj(3,a2,a2.return),Qj(3,a2)}catch(t){W(a2,a2.return,t)}try{Pj(5,a2,a2.return)}catch(t){W(a2,a2.return,t)}}break;case 1:ck(b,a2),ek(a2),d&512&&c2!==null&&Lj(c2,c2.return);break;case 5:if(ck(b,a2),ek(a2),d&512&&c2!==null&&Lj(c2,c2.return),a2.flags&32){var e=a2.stateNode;try{ob(e,"")}catch(t){W(a2,a2.return,t)}}if(d&4&&(e=a2.stateNode,e!=null)){var f=a2.memoizedProps,g=c2!==null?c2.memoizedProps:f,h=a2.type,k2=a2.updateQueue;if(a2.updateQueue=null,k2!==null)try{h==="input"&&f.type==="radio"&&f.name!=null&&ab(e,f),vb(h,g);var l=vb(h,f);for(g=0;g<k2.length;g+=2){var m=k2[g],q=k2[g+1];m==="style"?sb(e,q):m==="dangerouslySetInnerHTML"?nb(e,q):m==="children"?ob(e,q):ta(e,m,q,l)}switch(h){case"input":bb(e,f);break;case"textarea":ib(e,f);break;case"select":var r2=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;y!=null?fb(e,!!f.multiple,y,!1):r2!==!!f.multiple&&(f.defaultValue!=null?fb(e,!!f.multiple,f.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:"",!1))}e[Pf]=f}catch(t){W(a2,a2.return,t)}}break;case 6:if(ck(b,a2),ek(a2),d&4){if(a2.stateNode===null)throw Error(p(162));e=a2.stateNode,f=a2.memoizedProps;try{e.nodeValue=f}catch(t){W(a2,a2.return,t)}}break;case 3:if(ck(b,a2),ek(a2),d&4&&c2!==null&&c2.memoizedState.isDehydrated)try{bd(b.containerInfo)}catch(t){W(a2,a2.return,t)}break;case 4:ck(b,a2),ek(a2);break;case 13:ck(b,a2),ek(a2),e=a2.child,e.flags&8192&&(f=e.memoizedState!==null,e.stateNode.isHidden=f,!f||e.alternate!==null&&e.alternate.memoizedState!==null||(fk=B())),d&4&&ak(a2);break;case 22:if(m=c2!==null&&c2.memoizedState!==null,a2.mode&1?(U=(l=U)||m,ck(b,a2),U=l):ck(b,a2),ek(a2),d&8192){if(l=a2.memoizedState!==null,(a2.stateNode.isHidden=l)&&!m&&a2.mode&1)for(V=a2,m=a2.child;m!==null;){for(q=V=m;V!==null;){switch(r2=V,y=r2.child,r2.tag){case 0:case 11:case 14:case 15:Pj(4,r2,r2.return);break;case 1:Lj(r2,r2.return);var n=r2.stateNode;if(typeof n.componentWillUnmount=="function"){d=r2,c2=r2.return;try{b=d,n.props=b.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount()}catch(t){W(d,c2,t)}}break;case 5:Lj(r2,r2.return);break;case 22:if(r2.memoizedState!==null){gk(q);continue}}y!==null?(y.return=r2,V=y):gk(q)}m=m.sibling}a:for(m=null,q=a2;;){if(q.tag===5){if(m===null){m=q;try{e=q.stateNode,l?(f=e.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(h=q.stateNode,k2=q.memoizedProps.style,g=k2!=null&&k2.hasOwnProperty("display")?k2.display:null,h.style.display=rb("display",g))}catch(t){W(a2,a2.return,t)}}}else if(q.tag===6){if(m===null)try{q.stateNode.nodeValue=l?"":q.memoizedProps}catch(t){W(a2,a2.return,t)}}else if((q.tag!==22&&q.tag!==23||q.memoizedState===null||q===a2)&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===a2)break a;for(;q.sibling===null;){if(q.return===null||q.return===a2)break a;m===q&&(m=null),q=q.return}m===q&&(m=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:ck(b,a2),ek(a2),d&4&&ak(a2);break;case 21:break;default:ck(b,a2),ek(a2)}}function ek(a2){var b=a2.flags;if(b&2){try{a:{for(var c2=a2.return;c2!==null;){if(Tj(c2)){var d=c2;break a}c2=c2.return}throw Error(p(160))}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob(e,""),d.flags&=-33);var f=Uj(a2);Wj(a2,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Uj(a2);Vj(a2,h,g);break;default:throw Error(p(161))}}catch(k2){W(a2,a2.return,k2)}a2.flags&=-3}b&4096&&(a2.flags&=-4097)}function hk(a2,b,c2){V=a2,ik(a2)}function ik(a2,b,c2){for(var d=(a2.mode&1)!==0;V!==null;){var e=V,f=e.child;if(e.tag===22&&d){var g=e.memoizedState!==null||Jj;if(!g){var h=e.alternate,k2=h!==null&&h.memoizedState!==null||U;h=Jj;var l=U;if(Jj=g,(U=k2)&&!l)for(V=e;V!==null;)g=V,k2=g.child,g.tag===22&&g.memoizedState!==null?jk(e):k2!==null?(k2.return=g,V=k2):jk(e);for(;f!==null;)V=f,ik(f),f=f.sibling;V=e,Jj=h,U=l}kk(a2)}else e.subtreeFlags&8772&&f!==null?(f.return=e,V=f):kk(a2)}}function kk(a2){for(;V!==null;){var b=V;if(b.flags&8772){var c2=b.alternate;try{if(b.flags&8772)switch(b.tag){case 0:case 11:case 15:U||Qj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U)if(c2===null)d.componentDidMount();else{var e=b.elementType===b.type?c2.memoizedProps:Ci(b.type,c2.memoizedProps);d.componentDidUpdate(e,c2.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var f=b.updateQueue;f!==null&&sh(b,f,d);break;case 3:var g=b.updateQueue;if(g!==null){if(c2=null,b.child!==null)switch(b.child.tag){case 5:c2=b.child.stateNode;break;case 1:c2=b.child.stateNode}sh(b,g,c2)}break;case 5:var h=b.stateNode;if(c2===null&&b.flags&4){c2=h;var k2=b.memoizedProps;switch(b.type){case"button":case"input":case"select":case"textarea":k2.autoFocus&&c2.focus();break;case"img":k2.src&&(c2.src=k2.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(b.memoizedState===null){var l=b.alternate;if(l!==null){var m=l.memoizedState;if(m!==null){var q=m.dehydrated;q!==null&&bd(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||b.flags&512&&Rj(b)}catch(r2){W(b,b.return,r2)}}if(b===a2){V=null;break}if(c2=b.sibling,c2!==null){c2.return=b.return,V=c2;break}V=b.return}}function gk(a2){for(;V!==null;){var b=V;if(b===a2){V=null;break}var c2=b.sibling;if(c2!==null){c2.return=b.return,V=c2;break}V=b.return}}function jk(a2){for(;V!==null;){var b=V;try{switch(b.tag){case 0:case 11:case 15:var c2=b.return;try{Qj(4,b)}catch(k2){W(b,c2,k2)}break;case 1:var d=b.stateNode;if(typeof d.componentDidMount=="function"){var e=b.return;try{d.componentDidMount()}catch(k2){W(b,e,k2)}}var f=b.return;try{Rj(b)}catch(k2){W(b,f,k2)}break;case 5:var g=b.return;try{Rj(b)}catch(k2){W(b,g,k2)}}}catch(k2){W(b,b.return,k2)}if(b===a2){V=null;break}var h=b.sibling;if(h!==null){h.return=b.return,V=h;break}V=b.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return K&6?B():Ak!==-1?Ak:Ak=B()}function yi(a2){return a2.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(a2=C,a2!==0||(a2=window.event,a2=a2===void 0?16:jd(a2.type)),a2):1}function gi(a2,b,c2,d){if(50<yk)throw yk=0,zk=null,Error(p(185));Ac(a2,c2,d),(!(K&2)||a2!==Q)&&(a2===Q&&(!(K&2)&&(qk|=c2),T===4&&Ck(a2,Z)),Dk(a2,d),c2===1&&K===0&&!(b.mode&1)&&(Gj=B()+500,fg&&jg()))}function Dk(a2,b){var c2=a2.callbackNode;wc(a2,b);var d=uc(a2,a2===Q?Z:0);if(d===0)c2!==null&&bc(c2),a2.callbackNode=null,a2.callbackPriority=0;else if(b=d&-d,a2.callbackPriority!==b){if(c2!=null&&bc(c2),b===1)a2.tag===0?ig(Ek.bind(null,a2)):hg(Ek.bind(null,a2)),Jf(function(){!(K&6)&&jg()}),c2=null;else{switch(Dc(d)){case 1:c2=fc;break;case 4:c2=gc;break;case 16:c2=hc;break;case 536870912:c2=jc;break;default:c2=hc}c2=Fk(c2,Gk.bind(null,a2))}a2.callbackPriority=b,a2.callbackNode=c2}}function Gk(a2,b){if(Ak=-1,Bk=0,K&6)throw Error(p(327));var c2=a2.callbackNode;if(Hk()&&a2.callbackNode!==c2)return null;var d=uc(a2,a2===Q?Z:0);if(d===0)return null;if(d&30||d&a2.expiredLanes||b)b=Ik(a2,d);else{b=d;var e=K;K|=2;var f=Jk();(Q!==a2||Z!==b)&&(uk=null,Gj=B()+500,Kk(a2,b));do try{Lk();break}catch(h){Mk(a2,h)}while(!0);$g(),mk.current=f,K=e,Y!==null?b=0:(Q=null,Z=0,b=T)}if(b!==0){if(b===2&&(e=xc(a2),e!==0&&(d=e,b=Nk(a2,e))),b===1)throw c2=pk,Kk(a2,0),Ck(a2,d),Dk(a2,B()),c2;if(b===6)Ck(a2,d);else{if(e=a2.current.alternate,!(d&30)&&!Ok(e)&&(b=Ik(a2,d),b===2&&(f=xc(a2),f!==0&&(d=f,b=Nk(a2,f))),b===1))throw c2=pk,Kk(a2,0),Ck(a2,d),Dk(a2,B()),c2;switch(a2.finishedWork=e,a2.finishedLanes=d,b){case 0:case 1:throw Error(p(345));case 2:Pk(a2,tk,uk);break;case 3:if(Ck(a2,d),(d&130023424)===d&&(b=fk+500-B(),10<b)){if(uc(a2,0)!==0)break;if(e=a2.suspendedLanes,(e&d)!==d){R(),a2.pingedLanes|=a2.suspendedLanes&e;break}a2.timeoutHandle=Ff(Pk.bind(null,a2,tk,uk),b);break}Pk(a2,tk,uk);break;case 4:if(Ck(a2,d),(d&4194240)===d)break;for(b=a2.eventTimes,e=-1;0<d;){var g=31-oc(d);f=1<<g,g=b[g],g>e&&(e=g),d&=~f}if(d=e,d=B()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*lk(d/1960))-d,10<d){a2.timeoutHandle=Ff(Pk.bind(null,a2,tk,uk),d);break}Pk(a2,tk,uk);break;case 5:Pk(a2,tk,uk);break;default:throw Error(p(329))}}}return Dk(a2,B()),a2.callbackNode===c2?Gk.bind(null,a2):null}function Nk(a2,b){var c2=sk;return a2.current.memoizedState.isDehydrated&&(Kk(a2,b).flags|=256),a2=Ik(a2,b),a2!==2&&(b=tk,tk=c2,b!==null&&Fj(b)),a2}function Fj(a2){tk===null?tk=a2:tk.push.apply(tk,a2)}function Ok(a2){for(var b=a2;;){if(b.flags&16384){var c2=b.updateQueue;if(c2!==null&&(c2=c2.stores,c2!==null))for(var d=0;d<c2.length;d++){var e=c2[d],f=e.getSnapshot;e=e.value;try{if(!He(f(),e))return!1}catch{return!1}}}if(c2=b.child,b.subtreeFlags&16384&&c2!==null)c2.return=b,b=c2;else{if(b===a2)break;for(;b.sibling===null;){if(b.return===null||b.return===a2)return!0;b=b.return}b.sibling.return=b.return,b=b.sibling}}return!0}function Ck(a2,b){for(b&=~rk,b&=~qk,a2.suspendedLanes|=b,a2.pingedLanes&=~b,a2=a2.expirationTimes;0<b;){var c2=31-oc(b),d=1<<c2;a2[c2]=-1,b&=~d}}function Ek(a2){if(K&6)throw Error(p(327));Hk();var b=uc(a2,0);if(!(b&1))return Dk(a2,B()),null;var c2=Ik(a2,b);if(a2.tag!==0&&c2===2){var d=xc(a2);d!==0&&(b=d,c2=Nk(a2,d))}if(c2===1)throw c2=pk,Kk(a2,0),Ck(a2,b),Dk(a2,B()),c2;if(c2===6)throw Error(p(345));return a2.finishedWork=a2.current.alternate,a2.finishedLanes=b,Pk(a2,tk,uk),Dk(a2,B()),null}function Qk(a2,b){var c2=K;K|=1;try{return a2(b)}finally{K=c2,K===0&&(Gj=B()+500,fg&&jg())}}function Rk(a2){wk!==null&&wk.tag===0&&!(K&6)&&Hk();var b=K;K|=1;var c2=ok.transition,d=C;try{if(ok.transition=null,C=1,a2)return a2()}finally{C=d,ok.transition=c2,K=b,!(K&6)&&jg()}}function Hj(){fj=ej.current,E(ej)}function Kk(a2,b){a2.finishedWork=null,a2.finishedLanes=0;var c2=a2.timeoutHandle;if(c2!==-1&&(a2.timeoutHandle=-1,Gf(c2)),Y!==null)for(c2=Y.return;c2!==null;){var d=c2;switch(wg(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&$f();break;case 3:zh(),E(Wf),E(H),Eh();break;case 5:Bh(d);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(d.type._context);break;case 22:case 23:Hj()}c2=c2.return}if(Q=a2,Y=a2=Pg(a2.current,null),Z=fj=b,T=0,pk=null,rk=qk=rh=0,tk=sk=null,fh!==null){for(b=0;b<fh.length;b++)if(c2=fh[b],d=c2.interleaved,d!==null){c2.interleaved=null;var e=d.next,f=c2.pending;if(f!==null){var g=f.next;f.next=e,d.next=g}c2.pending=d}fh=null}return a2}function Mk(a2,b){do{var c2=Y;try{if($g(),Fh.current=Rh,Ih){for(var d=M.memoizedState;d!==null;){var e=d.queue;e!==null&&(e.pending=null),d=d.next}Ih=!1}if(Hh=0,O=N=M=null,Jh=!1,Kh=0,nk.current=null,c2===null||c2.return===null){T=1,pk=b,Y=null;break}a:{var f=a2,g=c2.return,h=c2,k2=b;if(b=Z,h.flags|=32768,k2!==null&&typeof k2=="object"&&typeof k2.then=="function"){var l=k2,m=h,q=m.tag;if(!(m.mode&1)&&(q===0||q===11||q===15)){var r2=m.alternate;r2?(m.updateQueue=r2.updateQueue,m.memoizedState=r2.memoizedState,m.lanes=r2.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Ui(g);if(y!==null){y.flags&=-257,Vi(y,g,h,f,b),y.mode&1&&Si(f,l,b),b=y,k2=l;var n=b.updateQueue;if(n===null){var t=new Set;t.add(k2),b.updateQueue=t}else n.add(k2);break a}else{if(!(b&1)){Si(f,l,b),tj();break a}k2=Error(p(426))}}else if(I&&h.mode&1){var J=Ui(g);if(J!==null){!(J.flags&65536)&&(J.flags|=256),Vi(J,g,h,f,b),Jg(Ji(k2,h));break a}}f=k2=Ji(k2,h),T!==4&&(T=2),sk===null?sk=[f]:sk.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,b&=-b,f.lanes|=b;var x=Ni(f,k2,b);ph(f,x);break a;case 1:h=k2;var w=f.type,u=f.stateNode;if(!(f.flags&128)&&(typeof w.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ri===null||!Ri.has(u)))){f.flags|=65536,b&=-b,f.lanes|=b;var F=Qi(f,h,b);ph(f,F);break a}}f=f.return}while(f!==null)}Sk(c2)}catch(na){b=na,Y===c2&&c2!==null&&(Y=c2=c2.return);continue}break}while(!0)}function Jk(){var a2=mk.current;return mk.current=Rh,a2===null?Rh:a2}function tj(){(T===0||T===3||T===2)&&(T=4),Q===null||!(rh&268435455)&&!(qk&268435455)||Ck(Q,Z)}function Ik(a2,b){var c2=K;K|=2;var d=Jk();(Q!==a2||Z!==b)&&(uk=null,Kk(a2,b));do try{Tk();break}catch(e){Mk(a2,e)}while(!0);if($g(),K=c2,mk.current=d,Y!==null)throw Error(p(261));return Q=null,Z=0,T}function Tk(){for(;Y!==null;)Uk(Y)}function Lk(){for(;Y!==null&&!cc();)Uk(Y)}function Uk(a2){var b=Vk(a2.alternate,a2,fj);a2.memoizedProps=a2.pendingProps,b===null?Sk(a2):Y=b,nk.current=null}function Sk(a2){var b=a2;do{var c2=b.alternate;if(a2=b.return,b.flags&32768){if(c2=Ij(c2,b),c2!==null){c2.flags&=32767,Y=c2;return}if(a2!==null)a2.flags|=32768,a2.subtreeFlags=0,a2.deletions=null;else{T=6,Y=null;return}}else if(c2=Ej(c2,b,fj),c2!==null){Y=c2;return}if(b=b.sibling,b!==null){Y=b;return}Y=b=a2}while(b!==null);T===0&&(T=5)}function Pk(a2,b,c2){var d=C,e=ok.transition;try{ok.transition=null,C=1,Wk(a2,b,c2,d)}finally{ok.transition=e,C=d}return null}function Wk(a2,b,c2,d){do Hk();while(wk!==null);if(K&6)throw Error(p(327));c2=a2.finishedWork;var e=a2.finishedLanes;if(c2===null)return null;if(a2.finishedWork=null,a2.finishedLanes=0,c2===a2.current)throw Error(p(177));a2.callbackNode=null,a2.callbackPriority=0;var f=c2.lanes|c2.childLanes;if(Bc(a2,f),a2===Q&&(Y=Q=null,Z=0),!(c2.subtreeFlags&2064)&&!(c2.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),f=(c2.flags&15990)!==0,c2.subtreeFlags&15990||f){f=ok.transition,ok.transition=null;var g=C;C=1;var h=K;K|=4,nk.current=null,Oj(a2,c2),dk(c2,a2),Oe(Df),dd=!!Cf,Df=Cf=null,a2.current=c2,hk(c2),dc(),K=h,C=g,ok.transition=f}else a2.current=c2;if(vk&&(vk=!1,wk=a2,xk=e),f=a2.pendingLanes,f===0&&(Ri=null),mc(c2.stateNode),Dk(a2,B()),b!==null)for(d=a2.onRecoverableError,c2=0;c2<b.length;c2++)e=b[c2],d(e.value,{componentStack:e.stack,digest:e.digest});if(Oi)throw Oi=!1,a2=Pi,Pi=null,a2;return xk&1&&a2.tag!==0&&Hk(),f=a2.pendingLanes,f&1?a2===zk?yk++:(yk=0,zk=a2):yk=0,jg(),null}function Hk(){if(wk!==null){var a2=Dc(xk),b=ok.transition,c2=C;try{if(ok.transition=null,C=16>a2?16:a2,wk===null)var d=!1;else{if(a2=wk,wk=null,xk=0,K&6)throw Error(p(331));var e=K;for(K|=4,V=a2.current;V!==null;){var f=V,g=f.child;if(V.flags&16){var h=f.deletions;if(h!==null){for(var k2=0;k2<h.length;k2++){var l=h[k2];for(V=l;V!==null;){var m=V;switch(m.tag){case 0:case 11:case 15:Pj(8,m,f)}var q=m.child;if(q!==null)q.return=m,V=q;else for(;V!==null;){m=V;var r2=m.sibling,y=m.return;if(Sj(m),m===l){V=null;break}if(r2!==null){r2.return=y,V=r2;break}V=y}}}var n=f.alternate;if(n!==null){var t=n.child;if(t!==null){n.child=null;do{var J=t.sibling;t.sibling=null,t=J}while(t!==null)}}V=f}}if(f.subtreeFlags&2064&&g!==null)g.return=f,V=g;else b:for(;V!==null;){if(f=V,f.flags&2048)switch(f.tag){case 0:case 11:case 15:Pj(9,f,f.return)}var x=f.sibling;if(x!==null){x.return=f.return,V=x;break b}V=f.return}}var w=a2.current;for(V=w;V!==null;){g=V;var u=g.child;if(g.subtreeFlags&2064&&u!==null)u.return=g,V=u;else b:for(g=w;V!==null;){if(h=V,h.flags&2048)try{switch(h.tag){case 0:case 11:case 15:Qj(9,h)}}catch(na){W(h,h.return,na)}if(h===g){V=null;break b}var F=h.sibling;if(F!==null){F.return=h.return,V=F;break b}V=h.return}}if(K=e,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,a2)}catch{}d=!0}return d}finally{C=c2,ok.transition=b}}return!1}function Xk(a2,b,c2){b=Ji(c2,b),b=Ni(a2,b,1),a2=nh(a2,b,1),b=R(),a2!==null&&(Ac(a2,1,b),Dk(a2,b))}function W(a2,b,c2){if(a2.tag===3)Xk(a2,a2,c2);else for(;b!==null;){if(b.tag===3){Xk(b,a2,c2);break}else if(b.tag===1){var d=b.stateNode;if(typeof b.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ri===null||!Ri.has(d))){a2=Ji(c2,a2),a2=Qi(b,a2,1),b=nh(b,a2,1),a2=R(),b!==null&&(Ac(b,1,a2),Dk(b,a2));break}}b=b.return}}function Ti(a2,b,c2){var d=a2.pingCache;d!==null&&d.delete(b),b=R(),a2.pingedLanes|=a2.suspendedLanes&c2,Q===a2&&(Z&c2)===c2&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-fk?Kk(a2,0):rk|=c2),Dk(a2,b)}function Yk(a2,b){b===0&&(a2.mode&1?(b=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):b=1);var c2=R();a2=ih(a2,b),a2!==null&&(Ac(a2,b,c2),Dk(a2,c2))}function uj(a2){var b=a2.memoizedState,c2=0;b!==null&&(c2=b.retryLane),Yk(a2,c2)}function bk(a2,b){var c2=0;switch(a2.tag){case 13:var d=a2.stateNode,e=a2.memoizedState;e!==null&&(c2=e.retryLane);break;case 19:d=a2.stateNode;break;default:throw Error(p(314))}d!==null&&d.delete(b),Yk(a2,c2)}var Vk;Vk=function(a2,b,c2){if(a2!==null)if(a2.memoizedProps!==b.pendingProps||Wf.current)dh=!0;else{if(!(a2.lanes&c2)&&!(b.flags&128))return dh=!1,yj(a2,b,c2);dh=!!(a2.flags&131072)}else dh=!1,I&&b.flags&1048576&&ug(b,ng,b.index);switch(b.lanes=0,b.tag){case 2:var d=b.type;ij(a2,b),a2=b.pendingProps;var e=Yf(b,H.current);ch(b,c2),e=Nh(null,b,d,a2,e,c2);var f=Sh();return b.flags|=1,typeof e=="object"&&e!==null&&typeof e.render=="function"&&e.$$typeof===void 0?(b.tag=1,b.memoizedState=null,b.updateQueue=null,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,kh(b),e.updater=Ei,b.stateNode=e,e._reactInternals=b,Ii(b,d,a2,c2),b=jj(null,b,d,!0,f,c2)):(b.tag=0,I&&f&&vg(b),Xi(null,b,e,c2),b=b.child),b;case 16:d=b.elementType;a:{switch(ij(a2,b),a2=b.pendingProps,e=d._init,d=e(d._payload),b.type=d,e=b.tag=Zk(d),a2=Ci(d,a2),e){case 0:b=cj(null,b,d,a2,c2);break a;case 1:b=hj(null,b,d,a2,c2);break a;case 11:b=Yi(null,b,d,a2,c2);break a;case 14:b=$i(null,b,d,Ci(d.type,a2),c2);break a}throw Error(p(306,d,""))}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),cj(a2,b,d,e,c2);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),hj(a2,b,d,e,c2);case 3:a:{if(kj(b),a2===null)throw Error(p(387));d=b.pendingProps,f=b.memoizedState,e=f.element,lh(a2,b),qh(b,d,null,c2);var g=b.memoizedState;if(d=g.element,f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=f,b.memoizedState=f,b.flags&256){e=Ji(Error(p(423)),b),b=lj(a2,b,d,c2,e);break a}else if(d!==e){e=Ji(Error(p(424)),b),b=lj(a2,b,d,c2,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c2=Vg(b,null,d,c2),b.child=c2;c2;)c2.flags=c2.flags&-3|4096,c2=c2.sibling;else{if(Ig(),d===e){b=Zi(a2,b,c2);break a}Xi(a2,b,d,c2)}b=b.child}return b;case 5:return Ah(b),a2===null&&Eg(b),d=b.type,e=b.pendingProps,f=a2!==null?a2.memoizedProps:null,g=e.children,Ef(d,e)?g=null:f!==null&&Ef(d,f)&&(b.flags|=32),gj(a2,b),Xi(a2,b,g,c2),b.child;case 6:return a2===null&&Eg(b),null;case 13:return oj(a2,b,c2);case 4:return yh(b,b.stateNode.containerInfo),d=b.pendingProps,a2===null?b.child=Ug(b,null,d,c2):Xi(a2,b,d,c2),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),Yi(a2,b,d,e,c2);case 7:return Xi(a2,b,b.pendingProps,c2),b.child;case 8:return Xi(a2,b,b.pendingProps.children,c2),b.child;case 12:return Xi(a2,b,b.pendingProps.children,c2),b.child;case 10:a:{if(d=b.type._context,e=b.pendingProps,f=b.memoizedProps,g=e.value,G(Wg,d._currentValue),d._currentValue=g,f!==null)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a2,b,c2);break a}}else for(f=b.child,f!==null&&(f.return=b);f!==null;){var h=f.dependencies;if(h!==null){g=f.child;for(var k2=h.firstContext;k2!==null;){if(k2.context===d){if(f.tag===1){k2=mh(-1,c2&-c2),k2.tag=2;var l=f.updateQueue;if(l!==null){l=l.shared;var m=l.pending;m===null?k2.next=k2:(k2.next=m.next,m.next=k2),l.pending=k2}}f.lanes|=c2,k2=f.alternate,k2!==null&&(k2.lanes|=c2),bh(f.return,c2,b),h.lanes|=c2;break}k2=k2.next}}else if(f.tag===10)g=f.type===b.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(p(341));g.lanes|=c2,h=g.alternate,h!==null&&(h.lanes|=c2),bh(g,c2,b),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===b){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}Xi(a2,b,e.children,c2),b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c2),e=eh(e),d=d(e),b.flags|=1,Xi(a2,b,d,c2),b.child;case 14:return d=b.type,e=Ci(d,b.pendingProps),e=Ci(d.type,e),$i(a2,b,d,e,c2);case 15:return bj(a2,b,b.type,b.pendingProps,c2);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),ij(a2,b),b.tag=1,Zf(d)?(a2=!0,cg(b)):a2=!1,ch(b,c2),Gi(b,d,e),Ii(b,d,e,c2),jj(null,b,d,!0,a2,c2);case 19:return xj(a2,b,c2);case 22:return dj(a2,b,c2)}throw Error(p(156,b.tag))};function Fk(a2,b){return ac(a2,b)}function $k(a2,b,c2,d){this.tag=a2,this.key=c2,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=b,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a2,b,c2,d){return new $k(a2,b,c2,d)}function aj(a2){return a2=a2.prototype,!(!a2||!a2.isReactComponent)}function Zk(a2){if(typeof a2=="function")return aj(a2)?1:0;if(a2!=null){if(a2=a2.$$typeof,a2===Da)return 11;if(a2===Ga)return 14}return 2}function Pg(a2,b){var c2=a2.alternate;return c2===null?(c2=Bg(a2.tag,b,a2.key,a2.mode),c2.elementType=a2.elementType,c2.type=a2.type,c2.stateNode=a2.stateNode,c2.alternate=a2,a2.alternate=c2):(c2.pendingProps=b,c2.type=a2.type,c2.flags=0,c2.subtreeFlags=0,c2.deletions=null),c2.flags=a2.flags&14680064,c2.childLanes=a2.childLanes,c2.lanes=a2.lanes,c2.child=a2.child,c2.memoizedProps=a2.memoizedProps,c2.memoizedState=a2.memoizedState,c2.updateQueue=a2.updateQueue,b=a2.dependencies,c2.dependencies=b===null?null:{lanes:b.lanes,firstContext:b.firstContext},c2.sibling=a2.sibling,c2.index=a2.index,c2.ref=a2.ref,c2}function Rg(a2,b,c2,d,e,f){var g=2;if(d=a2,typeof a2=="function")aj(a2)&&(g=1);else if(typeof a2=="string")g=5;else a:switch(a2){case ya:return Tg(c2.children,e,f,b);case za:g=8,e|=8;break;case Aa:return a2=Bg(12,c2,b,e|2),a2.elementType=Aa,a2.lanes=f,a2;case Ea:return a2=Bg(13,c2,b,e),a2.elementType=Ea,a2.lanes=f,a2;case Fa:return a2=Bg(19,c2,b,e),a2.elementType=Fa,a2.lanes=f,a2;case Ia:return pj(c2,e,f,b);default:if(typeof a2=="object"&&a2!==null)switch(a2.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;break a;case Ga:g=14;break a;case Ha:g=16,d=null;break a}throw Error(p(130,a2==null?a2:typeof a2,""))}return b=Bg(g,c2,b,e),b.elementType=a2,b.type=d,b.lanes=f,b}function Tg(a2,b,c2,d){return a2=Bg(7,a2,d,b),a2.lanes=c2,a2}function pj(a2,b,c2,d){return a2=Bg(22,a2,d,b),a2.elementType=Ia,a2.lanes=c2,a2.stateNode={isHidden:!1},a2}function Qg(a2,b,c2){return a2=Bg(6,a2,null,b),a2.lanes=c2,a2}function Sg(a2,b,c2){return b=Bg(4,a2.children!==null?a2.children:[],a2.key,b),b.lanes=c2,b.stateNode={containerInfo:a2.containerInfo,pendingChildren:null,implementation:a2.implementation},b}function al(a2,b,c2,d,e){this.tag=b,this.containerInfo=a2,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=d,this.onRecoverableError=e,this.mutableSourceEagerHydrationData=null}function bl(a2,b,c2,d,e,f,g,h,k2){return a2=new al(a2,b,c2,h,k2),b===1?(b=1,f===!0&&(b|=8)):b=0,f=Bg(3,null,null,b),a2.current=f,f.stateNode=a2,f.memoizedState={element:d,isDehydrated:c2,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(f),a2}function cl(a2,b,c2){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:d==null?null:""+d,children:a2,containerInfo:b,implementation:c2}}function dl(a2){if(!a2)return Vf;a2=a2._reactInternals;a:{if(Vb(a2)!==a2||a2.tag!==1)throw Error(p(170));var b=a2;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return}while(b!==null);throw Error(p(171))}if(a2.tag===1){var c2=a2.type;if(Zf(c2))return bg(a2,c2,b)}return b}function el(a2,b,c2,d,e,f,g,h,k2){return a2=bl(c2,d,!0,a2,e,f,g,h,k2),a2.context=dl(null),c2=a2.current,d=R(),e=yi(c2),f=mh(d,e),f.callback=b??null,nh(c2,f,e),a2.current.lanes=e,Ac(a2,e,d),Dk(a2,d),a2}function fl(a2,b,c2,d){var e=b.current,f=R(),g=yi(e);return c2=dl(c2),b.context===null?b.context=c2:b.pendingContext=c2,b=mh(f,g),b.payload={element:a2},d=d===void 0?null:d,d!==null&&(b.callback=d),a2=nh(e,b,g),a2!==null&&(gi(a2,e,g,f),oh(a2,e,g)),g}function gl(a2){if(a2=a2.current,!a2.child)return null;switch(a2.child.tag){case 5:return a2.child.stateNode;default:return a2.child.stateNode}}function hl(a2,b){if(a2=a2.memoizedState,a2!==null&&a2.dehydrated!==null){var c2=a2.retryLane;a2.retryLane=c2!==0&&c2<b?c2:b}}function il(a2,b){hl(a2,b),(a2=a2.alternate)&&hl(a2,b)}var kl=typeof reportError=="function"?reportError:function(a2){console.error(a2)};function ll(a2){this._internalRoot=a2}ml.prototype.render=ll.prototype.render=function(a2){var b=this._internalRoot;if(b===null)throw Error(p(409));fl(a2,b,null,null)},ml.prototype.unmount=ll.prototype.unmount=function(){var a2=this._internalRoot;if(a2!==null){this._internalRoot=null;var b=a2.containerInfo;Rk(function(){fl(null,a2,null,null)}),b[uf]=null}};function ml(a2){this._internalRoot=a2}ml.prototype.unstable_scheduleHydration=function(a2){if(a2){var b=Hc();a2={blockedOn:null,target:a2,priority:b};for(var c2=0;c2<Qc.length&&b!==0&&b<Qc[c2].priority;c2++);Qc.splice(c2,0,a2),c2===0&&Vc(a2)}};function nl(a2){return!(!a2||a2.nodeType!==1&&a2.nodeType!==9&&a2.nodeType!==11)}function ol(a2){return!(!a2||a2.nodeType!==1&&a2.nodeType!==9&&a2.nodeType!==11&&(a2.nodeType!==8||a2.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(a2,b,c2,d,e){if(e){if(typeof d=="function"){var f=d;d=function(){var a3=gl(g);f.call(a3)}}var g=el(b,d,a2,0,null,!1,!1,"",pl);return a2._reactRootContainer=g,a2[uf]=g.current,sf(a2.nodeType===8?a2.parentNode:a2),Rk(),g}for(;e=a2.lastChild;)a2.removeChild(e);if(typeof d=="function"){var h=d;d=function(){var a3=gl(k2);h.call(a3)}}var k2=bl(a2,0,!1,null,null,!1,!1,"",pl);return a2._reactRootContainer=k2,a2[uf]=k2.current,sf(a2.nodeType===8?a2.parentNode:a2),Rk(function(){fl(b,k2,c2,d)}),k2}function rl(a2,b,c2,d,e){var f=c2._reactRootContainer;if(f){var g=f;if(typeof e=="function"){var h=e;e=function(){var a3=gl(g);h.call(a3)}}fl(b,g,a2,e)}else g=ql(c2,b,a2,e,d);return gl(g)}Ec=function(a2){switch(a2.tag){case 3:var b=a2.stateNode;if(b.current.memoizedState.isDehydrated){var c2=tc(b.pendingLanes);c2!==0&&(Cc(b,c2|1),Dk(b,B()),!(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var b2=ih(a2,1);if(b2!==null){var c3=R();gi(b2,a2,1,c3)}}),il(a2,1)}},Fc=function(a2){if(a2.tag===13){var b=ih(a2,134217728);if(b!==null){var c2=R();gi(b,a2,134217728,c2)}il(a2,134217728)}},Gc=function(a2){if(a2.tag===13){var b=yi(a2),c2=ih(a2,b);if(c2!==null){var d=R();gi(c2,a2,b,d)}il(a2,b)}},Hc=function(){return C},Ic=function(a2,b){var c2=C;try{return C=a2,b()}finally{C=c2}},yb=function(a2,b,c2){switch(b){case"input":if(bb(a2,c2),b=c2.name,c2.type==="radio"&&b!=null){for(c2=a2;c2.parentNode;)c2=c2.parentNode;for(c2=c2.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]'),b=0;b<c2.length;b++){var d=c2[b];if(d!==a2&&d.form===a2.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d),bb(d,e)}}}break;case"textarea":ib(a2,c2);break;case"select":b=c2.value,b!=null&&fb(a2,!!c2.multiple,b,!1)}},Gb=Qk,Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a2){return a2=Zb(a2),a2===null?null:a2.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl,reactDom_production_min.createPortal=function(a2,b){var c2=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(b))throw Error(p(200));return cl(a2,b,null,c2)},reactDom_production_min.createRoot=function(a2,b){if(!nl(a2))throw Error(p(299));var c2=!1,d="",e=kl;return b!=null&&(b.unstable_strictMode===!0&&(c2=!0),b.identifierPrefix!==void 0&&(d=b.identifierPrefix),b.onRecoverableError!==void 0&&(e=b.onRecoverableError)),b=bl(a2,1,!1,null,null,c2,!1,d,e),a2[uf]=b.current,sf(a2.nodeType===8?a2.parentNode:a2),new ll(b)},reactDom_production_min.findDOMNode=function(a2){if(a2==null)return null;if(a2.nodeType===1)return a2;var b=a2._reactInternals;if(b===void 0)throw typeof a2.render=="function"?Error(p(188)):(a2=Object.keys(a2).join(","),Error(p(268,a2)));return a2=Zb(b),a2=a2===null?null:a2.stateNode,a2},reactDom_production_min.flushSync=function(a2){return Rk(a2)},reactDom_production_min.hydrate=function(a2,b,c2){if(!ol(b))throw Error(p(200));return rl(null,a2,b,!0,c2)},reactDom_production_min.hydrateRoot=function(a2,b,c2){if(!nl(a2))throw Error(p(405));var d=c2!=null&&c2.hydratedSources||null,e=!1,f="",g=kl;if(c2!=null&&(c2.unstable_strictMode===!0&&(e=!0),c2.identifierPrefix!==void 0&&(f=c2.identifierPrefix),c2.onRecoverableError!==void 0&&(g=c2.onRecoverableError)),b=el(b,null,a2,1,c2??null,e,!1,f,g),a2[uf]=b.current,sf(a2),d)for(a2=0;a2<d.length;a2++)c2=d[a2],e=c2._getVersion,e=e(c2._source),b.mutableSourceEagerHydrationData==null?b.mutableSourceEagerHydrationData=[c2,e]:b.mutableSourceEagerHydrationData.push(c2,e);return new ml(b)},reactDom_production_min.render=function(a2,b,c2){if(!ol(b))throw Error(p(200));return rl(null,a2,b,!1,c2)},reactDom_production_min.unmountComponentAtNode=function(a2){if(!ol(a2))throw Error(p(40));return a2._reactRootContainer?(Rk(function(){rl(null,null,a2,!1,function(){a2._reactRootContainer=null,a2[uf]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=Qk,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(a2,b,c2,d){if(!ol(c2))throw Error(p(200));if(a2==null||a2._reactInternals===void 0)throw Error(p(38));return rl(a2,b,c2,!1,d)},reactDom_production_min.version="18.3.1-next-f1338f8080-20240426",reactDom_production_min}var reactDom_development={};/**
72
- * @license React
73
- * react-dom.development.js
74
- *
75
- * Copyright (c) Facebook, Inc. and its affiliates.
76
- *
77
- * This source code is licensed under the MIT license found in the
78
- * LICENSE file in the root directory of this source tree.
79
- */var hasRequiredReactDom_development;function requireReactDom_development(){return hasRequiredReactDom_development||(hasRequiredReactDom_development=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var React=requireReact(),Scheduler=requireScheduler(),ReactSharedInternals=React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,suppressWarning=!1;function setSuppressWarning(newSuppressWarning){suppressWarning=newSuppressWarning}function warn(format){if(!suppressWarning){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format,args)}}function error(format){if(!suppressWarning){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format,args)}}function printWarning(level,format,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var FunctionComponent=0,ClassComponent=1,IndeterminateComponent=2,HostRoot=3,HostPortal=4,HostComponent=5,HostText=6,Fragment=7,Mode=8,ContextConsumer=9,ContextProvider=10,ForwardRef=11,Profiler=12,SuspenseComponent=13,MemoComponent=14,SimpleMemoComponent=15,LazyComponent=16,IncompleteClassComponent=17,DehydratedFragment=18,SuspenseListComponent=19,ScopeComponent=21,OffscreenComponent=22,LegacyHiddenComponent=23,CacheComponent=24,TracingMarkerComponent=25,enableClientRenderFallbackOnTextMismatch=!0,enableNewReconciler=!1,enableLazyContextPropagation=!1,enableLegacyHidden=!1,enableCustomElementPropertySupport=!1,warnAboutStringRefs=!0,enableSchedulingProfiler=!0,enableProfilerTimer=!0,enableProfilerCommitHooks=!0,allNativeEvents=new Set,registrationNameDependencies={},possibleRegistrationNames={};function registerTwoPhaseEvent(registrationName,dependencies){registerDirectEvent(registrationName,dependencies),registerDirectEvent(registrationName+"Capture",dependencies)}function registerDirectEvent(registrationName,dependencies){registrationNameDependencies[registrationName]&&error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",registrationName),registrationNameDependencies[registrationName]=dependencies;{var lowerCasedName=registrationName.toLowerCase();possibleRegistrationNames[lowerCasedName]=registrationName,registrationName==="onDoubleClick"&&(possibleRegistrationNames.ondblclick=registrationName)}for(var i=0;i<dependencies.length;i++)allNativeEvents.add(dependencies[i])}var canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hasOwnProperty=Object.prototype.hasOwnProperty;function typeName(value){{var hasToStringTag=typeof Symbol=="function"&&Symbol.toStringTag,type=hasToStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object";return type}}function willCoercionThrow(value){try{return testStringCoercion(value),!1}catch{return!0}}function testStringCoercion(value){return""+value}function checkAttributeStringCoercion(value,attributeName){if(willCoercionThrow(value))return error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",attributeName,typeName(value)),testStringCoercion(value)}function checkKeyStringCoercion(value){if(willCoercionThrow(value))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value)),testStringCoercion(value)}function checkPropStringCoercion(value,propName){if(willCoercionThrow(value))return error("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",propName,typeName(value)),testStringCoercion(value)}function checkCSSPropertyStringCoercion(value,propName){if(willCoercionThrow(value))return error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",propName,typeName(value)),testStringCoercion(value)}function checkHtmlStringCoercion(value){if(willCoercionThrow(value))return error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value)),testStringCoercion(value)}function checkFormFieldValueStringCoercion(value){if(willCoercionThrow(value))return error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",typeName(value)),testStringCoercion(value)}var RESERVED=0,STRING=1,BOOLEANISH_STRING=2,BOOLEAN=3,OVERLOADED_BOOLEAN=4,NUMERIC=5,POSITIVE_NUMERIC=6,ATTRIBUTE_NAME_START_CHAR=":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",ATTRIBUTE_NAME_CHAR=ATTRIBUTE_NAME_START_CHAR+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",VALID_ATTRIBUTE_NAME_REGEX=new RegExp("^["+ATTRIBUTE_NAME_START_CHAR+"]["+ATTRIBUTE_NAME_CHAR+"]*$"),illegalAttributeNameCache={},validatedAttributeNameCache={};function isAttributeNameSafe(attributeName){return hasOwnProperty.call(validatedAttributeNameCache,attributeName)?!0:hasOwnProperty.call(illegalAttributeNameCache,attributeName)?!1:VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)?(validatedAttributeNameCache[attributeName]=!0,!0):(illegalAttributeNameCache[attributeName]=!0,error("Invalid attribute name: `%s`",attributeName),!1)}function shouldIgnoreAttribute(name,propertyInfo,isCustomComponentTag){return propertyInfo!==null?propertyInfo.type===RESERVED:isCustomComponentTag?!1:name.length>2&&(name[0]==="o"||name[0]==="O")&&(name[1]==="n"||name[1]==="N")}function shouldRemoveAttributeWithWarning(name,value,propertyInfo,isCustomComponentTag){if(propertyInfo!==null&&propertyInfo.type===RESERVED)return!1;switch(typeof value){case"function":case"symbol":return!0;case"boolean":{if(isCustomComponentTag)return!1;if(propertyInfo!==null)return!propertyInfo.acceptsBooleans;var prefix2=name.toLowerCase().slice(0,5);return prefix2!=="data-"&&prefix2!=="aria-"}default:return!1}}function shouldRemoveAttribute(name,value,propertyInfo,isCustomComponentTag){if(value===null||typeof value>"u"||shouldRemoveAttributeWithWarning(name,value,propertyInfo,isCustomComponentTag))return!0;if(isCustomComponentTag)return!1;if(propertyInfo!==null)switch(propertyInfo.type){case BOOLEAN:return!value;case OVERLOADED_BOOLEAN:return value===!1;case NUMERIC:return isNaN(value);case POSITIVE_NUMERIC:return isNaN(value)||value<1}return!1}function getPropertyInfo(name){return properties.hasOwnProperty(name)?properties[name]:null}function PropertyInfoRecord(name,type,mustUseProperty,attributeName,attributeNamespace,sanitizeURL2,removeEmptyString){this.acceptsBooleans=type===BOOLEANISH_STRING||type===BOOLEAN||type===OVERLOADED_BOOLEAN,this.attributeName=attributeName,this.attributeNamespace=attributeNamespace,this.mustUseProperty=mustUseProperty,this.propertyName=name,this.type=type,this.sanitizeURL=sanitizeURL2,this.removeEmptyString=removeEmptyString}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(name){properties[name]=new PropertyInfoRecord(name,RESERVED,!1,name,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(_ref){var name=_ref[0],attributeName=_ref[1];properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name,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"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!1,name.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!0,name,null,!1,!1)}),["capture","download"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,OVERLOADED_BOOLEAN,!1,name,null,!1,!1)}),["cols","rows","size","span"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,POSITIVE_NUMERIC,!1,name,null,!1,!1)}),["rowSpan","start"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,NUMERIC,!1,name.toLowerCase(),null,!1,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize=function(token){return token[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!1,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!0,!0)});var isJavaScriptProtocol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,didWarn=!1;function sanitizeURL(url){!didWarn&&isJavaScriptProtocol.test(url)&&(didWarn=!0,error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(url)))}function getValueForProperty(node,name,expected,propertyInfo){if(propertyInfo.mustUseProperty){var propertyName=propertyInfo.propertyName;return node[propertyName]}else{checkAttributeStringCoercion(expected,name),propertyInfo.sanitizeURL&&sanitizeURL(""+expected);var attributeName=propertyInfo.attributeName,stringValue=null;if(propertyInfo.type===OVERLOADED_BOOLEAN){if(node.hasAttribute(attributeName)){var value=node.getAttribute(attributeName);return value===""?!0:shouldRemoveAttribute(name,expected,propertyInfo,!1)?value:value===""+expected?expected:value}}else if(node.hasAttribute(attributeName)){if(shouldRemoveAttribute(name,expected,propertyInfo,!1))return node.getAttribute(attributeName);if(propertyInfo.type===BOOLEAN)return expected;stringValue=node.getAttribute(attributeName)}return shouldRemoveAttribute(name,expected,propertyInfo,!1)?stringValue===null?expected:stringValue:stringValue===""+expected?expected:stringValue}}function getValueForAttribute(node,name,expected,isCustomComponentTag){{if(!isAttributeNameSafe(name))return;if(!node.hasAttribute(name))return expected===void 0?void 0:null;var value=node.getAttribute(name);return checkAttributeStringCoercion(expected,name),value===""+expected?expected:value}}function setValueForProperty(node,name,value,isCustomComponentTag){var propertyInfo=getPropertyInfo(name);if(!shouldIgnoreAttribute(name,propertyInfo,isCustomComponentTag)){if(shouldRemoveAttribute(name,value,propertyInfo,isCustomComponentTag)&&(value=null),isCustomComponentTag||propertyInfo===null){if(isAttributeNameSafe(name)){var _attributeName=name;value===null?node.removeAttribute(_attributeName):(checkAttributeStringCoercion(value,name),node.setAttribute(_attributeName,""+value))}return}var mustUseProperty=propertyInfo.mustUseProperty;if(mustUseProperty){var propertyName=propertyInfo.propertyName;if(value===null){var type=propertyInfo.type;node[propertyName]=type===BOOLEAN?!1:""}else node[propertyName]=value;return}var attributeName=propertyInfo.attributeName,attributeNamespace=propertyInfo.attributeNamespace;if(value===null)node.removeAttribute(attributeName);else{var _type=propertyInfo.type,attributeValue;_type===BOOLEAN||_type===OVERLOADED_BOOLEAN&&value===!0?attributeValue="":(checkAttributeStringCoercion(value,attributeName),attributeValue=""+value,propertyInfo.sanitizeURL&&sanitizeURL(attributeValue.toString())),attributeNamespace?node.setAttributeNS(attributeNamespace,attributeName,attributeValue):node.setAttribute(attributeName,attributeValue)}}}var REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_SCOPE_TYPE=Symbol.for("react.scope"),REACT_DEBUG_TRACING_MODE_TYPE=Symbol.for("react.debug_trace_mode"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),REACT_LEGACY_HIDDEN_TYPE=Symbol.for("react.legacy_hidden"),REACT_CACHE_TYPE=Symbol.for("react.cache"),REACT_TRACING_MARKER_TYPE=Symbol.for("react.tracing_marker"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var assign=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x){var match=x.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return`
80
- `+prefix+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher.current,ReactCurrentDispatcher.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x){control=x}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x){control=x}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(`
81
- `),controlLines=control.stack.split(`
82
- `),s2=sampleLines.length-1,c2=controlLines.length-1;s2>=1&&c2>=0&&sampleLines[s2]!==controlLines[c2];)c2--;for(;s2>=1&&c2>=0;s2--,c2--)if(sampleLines[s2]!==controlLines[c2]){if(s2!==1||c2!==1)do if(s2--,c2--,c2<0||sampleLines[s2]!==controlLines[c2]){var _frame=`
83
- `+sampleLines[s2].replace(" at new "," at ");return fn.displayName&&_frame.includes("<anonymous>")&&(_frame=_frame.replace("<anonymous>",fn.displayName)),typeof fn=="function"&&componentFrameCache.set(fn,_frame),_frame}while(s2>=1&&c2>=0);break}}}finally{reentry=!1,ReactCurrentDispatcher.current=previousDispatcher,reenableLogs(),Error.prepareStackTrace=previousPrepareStackTrace}var name=fn?fn.displayName||fn.name:"",syntheticFrame=name?describeBuiltInComponentFrame(name):"";return typeof fn=="function"&&componentFrameCache.set(fn,syntheticFrame),syntheticFrame}function describeClassComponentFrame(ctor,source,ownerFn){return describeNativeComponentFrame(ctor,!0)}function describeFunctionComponentFrame(fn,source,ownerFn){return describeNativeComponentFrame(fn,!1)}function shouldConstruct(Component){var prototype=Component.prototype;return!!(prototype&&prototype.isReactComponent)}function describeUnknownElementTypeFrameInDEV(type,source,ownerFn){if(type==null)return"";if(typeof type=="function")return describeNativeComponentFrame(type,shouldConstruct(type));if(typeof type=="string")return describeBuiltInComponentFrame(type);switch(type){case REACT_SUSPENSE_TYPE:return describeBuiltInComponentFrame("Suspense");case REACT_SUSPENSE_LIST_TYPE:return describeBuiltInComponentFrame("SuspenseList")}if(typeof type=="object")switch(type.$$typeof){case REACT_FORWARD_REF_TYPE:return describeFunctionComponentFrame(type.render);case REACT_MEMO_TYPE:return describeUnknownElementTypeFrameInDEV(type.type,source,ownerFn);case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return describeUnknownElementTypeFrameInDEV(init(payload),source,ownerFn)}catch{}}}return""}function describeFiber(fiber){switch(fiber._debugOwner&&fiber._debugOwner.type,fiber._debugSource,fiber.tag){case HostComponent:return describeBuiltInComponentFrame(fiber.type);case LazyComponent:return describeBuiltInComponentFrame("Lazy");case SuspenseComponent:return describeBuiltInComponentFrame("Suspense");case SuspenseListComponent:return describeBuiltInComponentFrame("SuspenseList");case FunctionComponent:case IndeterminateComponent:case SimpleMemoComponent:return describeFunctionComponentFrame(fiber.type);case ForwardRef:return describeFunctionComponentFrame(fiber.type.render);case ClassComponent:return describeClassComponentFrame(fiber.type);default:return""}}function getStackByFiberInDevAndProd(workInProgress2){try{var info="",node=workInProgress2;do info+=describeFiber(node),node=node.return;while(node);return info}catch(x){return`
84
- Error generating stack: `+x.message+`
85
- `+x.stack}}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return getComponentNameFromType(init(payload))}catch{return null}}}return null}function getWrappedName$1(outerType,innerType,wrapperName){var functionName=innerType.displayName||innerType.name||"";return outerType.displayName||(functionName!==""?wrapperName+"("+functionName+")":wrapperName)}function getContextName$1(type){return type.displayName||"Context"}function getComponentNameFromFiber(fiber){var tag=fiber.tag,type=fiber.type;switch(tag){case CacheComponent:return"Cache";case ContextConsumer:var context=type;return getContextName$1(context)+".Consumer";case ContextProvider:var provider=type;return getContextName$1(provider._context)+".Provider";case DehydratedFragment:return"DehydratedFragment";case ForwardRef:return getWrappedName$1(type,type.render,"ForwardRef");case Fragment:return"Fragment";case HostComponent:return type;case HostPortal:return"Portal";case HostRoot:return"Root";case HostText:return"Text";case LazyComponent:return getComponentNameFromType(type);case Mode:return type===REACT_STRICT_MODE_TYPE?"StrictMode":"Mode";case OffscreenComponent:return"Offscreen";case Profiler:return"Profiler";case ScopeComponent:return"Scope";case SuspenseComponent:return"Suspense";case SuspenseListComponent:return"SuspenseList";case TracingMarkerComponent:return"TracingMarker";case ClassComponent:case FunctionComponent:case IncompleteClassComponent:case IndeterminateComponent:case MemoComponent:case SimpleMemoComponent:if(typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;break}return null}var ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame,current=null,isRendering=!1;function getCurrentFiberOwnerNameInDevOrNull(){{if(current===null)return null;var owner=current._debugOwner;if(owner!==null&&typeof owner<"u")return getComponentNameFromFiber(owner)}return null}function getCurrentFiberStackInDev(){return current===null?"":getStackByFiberInDevAndProd(current)}function resetCurrentFiber(){ReactDebugCurrentFrame.getCurrentStack=null,current=null,isRendering=!1}function setCurrentFiber(fiber){ReactDebugCurrentFrame.getCurrentStack=fiber===null?null:getCurrentFiberStackInDev,current=fiber,isRendering=!1}function getCurrentFiber(){return current}function setIsRendering(rendering){isRendering=rendering}function toString(value){return""+value}function getToStringValue(value){switch(typeof value){case"boolean":case"number":case"string":case"undefined":return value;case"object":return checkFormFieldValueStringCoercion(value),value;default:return""}}var hasReadOnlyValue={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function checkControlledValueProps(tagName,props){hasReadOnlyValue[props.type]||props.onChange||props.onInput||props.readOnly||props.disabled||props.value==null||error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),props.onChange||props.readOnly||props.disabled||props.checked==null||error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function isCheckable(elem){var type=elem.type,nodeName=elem.nodeName;return nodeName&&nodeName.toLowerCase()==="input"&&(type==="checkbox"||type==="radio")}function getTracker(node){return node._valueTracker}function detachTracker(node){node._valueTracker=null}function getValueFromNode(node){var value="";return node&&(isCheckable(node)?value=node.checked?"true":"false":value=node.value),value}function trackValueOnNode(node){var valueField=isCheckable(node)?"checked":"value",descriptor=Object.getOwnPropertyDescriptor(node.constructor.prototype,valueField);checkFormFieldValueStringCoercion(node[valueField]);var currentValue=""+node[valueField];if(!(node.hasOwnProperty(valueField)||typeof descriptor>"u"||typeof descriptor.get!="function"||typeof descriptor.set!="function")){var get2=descriptor.get,set2=descriptor.set;Object.defineProperty(node,valueField,{configurable:!0,get:function(){return get2.call(this)},set:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value,set2.call(this,value)}}),Object.defineProperty(node,valueField,{enumerable:descriptor.enumerable});var tracker={getValue:function(){return currentValue},setValue:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value},stopTracking:function(){detachTracker(node),delete node[valueField]}};return tracker}}function track(node){getTracker(node)||(node._valueTracker=trackValueOnNode(node))}function updateValueIfChanged(node){if(!node)return!1;var tracker=getTracker(node);if(!tracker)return!0;var lastValue=tracker.getValue(),nextValue=getValueFromNode(node);return nextValue!==lastValue?(tracker.setValue(nextValue),!0):!1}function getActiveElement(doc){if(doc=doc||(typeof document<"u"?document:void 0),typeof doc>"u")return null;try{return doc.activeElement||doc.body}catch{return doc.body}}var didWarnValueDefaultValue=!1,didWarnCheckedDefaultChecked=!1,didWarnControlledToUncontrolled=!1,didWarnUncontrolledToControlled=!1;function isControlled(props){var usesChecked=props.type==="checkbox"||props.type==="radio";return usesChecked?props.checked!=null:props.value!=null}function getHostProps(element,props){var node=element,checked=props.checked,hostProps=assign({},props,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:checked??node._wrapperState.initialChecked});return hostProps}function initWrapperState(element,props){checkControlledValueProps("input",props),props.checked!==void 0&&props.defaultChecked!==void 0&&!didWarnCheckedDefaultChecked&&(error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnCheckedDefaultChecked=!0),props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValueDefaultValue&&(error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnValueDefaultValue=!0);var node=element,defaultValue=props.defaultValue==null?"":props.defaultValue;node._wrapperState={initialChecked:props.checked!=null?props.checked:props.defaultChecked,initialValue:getToStringValue(props.value!=null?props.value:defaultValue),controlled:isControlled(props)}}function updateChecked(element,props){var node=element,checked=props.checked;checked!=null&&setValueForProperty(node,"checked",checked,!1)}function updateWrapper(element,props){var node=element;{var controlled=isControlled(props);!node._wrapperState.controlled&&controlled&&!didWarnUncontrolledToControlled&&(error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),didWarnUncontrolledToControlled=!0),node._wrapperState.controlled&&!controlled&&!didWarnControlledToUncontrolled&&(error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),didWarnControlledToUncontrolled=!0)}updateChecked(element,props);var value=getToStringValue(props.value),type=props.type;if(value!=null)type==="number"?(value===0&&node.value===""||node.value!=value)&&(node.value=toString(value)):node.value!==toString(value)&&(node.value=toString(value));else if(type==="submit"||type==="reset"){node.removeAttribute("value");return}props.hasOwnProperty("value")?setDefaultValue(node,props.type,value):props.hasOwnProperty("defaultValue")&&setDefaultValue(node,props.type,getToStringValue(props.defaultValue)),props.checked==null&&props.defaultChecked!=null&&(node.defaultChecked=!!props.defaultChecked)}function postMountWrapper(element,props,isHydrating2){var node=element;if(props.hasOwnProperty("value")||props.hasOwnProperty("defaultValue")){var type=props.type,isButton=type==="submit"||type==="reset";if(isButton&&(props.value===void 0||props.value===null))return;var initialValue=toString(node._wrapperState.initialValue);isHydrating2||initialValue!==node.value&&(node.value=initialValue),node.defaultValue=initialValue}var name=node.name;name!==""&&(node.name=""),node.defaultChecked=!node.defaultChecked,node.defaultChecked=!!node._wrapperState.initialChecked,name!==""&&(node.name=name)}function restoreControlledState(element,props){var node=element;updateWrapper(node,props),updateNamedCousins(node,props)}function updateNamedCousins(rootNode,props){var name=props.name;if(props.type==="radio"&&name!=null){for(var queryRoot=rootNode;queryRoot.parentNode;)queryRoot=queryRoot.parentNode;checkAttributeStringCoercion(name,"name");for(var group=queryRoot.querySelectorAll("input[name="+JSON.stringify(""+name)+'][type="radio"]'),i=0;i<group.length;i++){var otherNode=group[i];if(!(otherNode===rootNode||otherNode.form!==rootNode.form)){var otherProps=getFiberCurrentPropsFromNode(otherNode);if(!otherProps)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");updateValueIfChanged(otherNode),updateWrapper(otherNode,otherProps)}}}}function setDefaultValue(node,type,value){(type!=="number"||getActiveElement(node.ownerDocument)!==node)&&(value==null?node.defaultValue=toString(node._wrapperState.initialValue):node.defaultValue!==toString(value)&&(node.defaultValue=toString(value)))}var didWarnSelectedSetOnOption=!1,didWarnInvalidChild=!1,didWarnInvalidInnerHTML=!1;function validateProps(element,props){props.value==null&&(typeof props.children=="object"&&props.children!==null?React.Children.forEach(props.children,function(child){child!=null&&(typeof child=="string"||typeof child=="number"||didWarnInvalidChild||(didWarnInvalidChild=!0,error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):props.dangerouslySetInnerHTML!=null&&(didWarnInvalidInnerHTML||(didWarnInvalidInnerHTML=!0,error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),props.selected!=null&&!didWarnSelectedSetOnOption&&(error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),didWarnSelectedSetOnOption=!0)}function postMountWrapper$1(element,props){props.value!=null&&element.setAttribute("value",toString(getToStringValue(props.value)))}var isArrayImpl=Array.isArray;function isArray(a2){return isArrayImpl(a2)}var didWarnValueDefaultValue$1;didWarnValueDefaultValue$1=!1;function getDeclarationErrorAddendum(){var ownerName=getCurrentFiberOwnerNameInDevOrNull();return ownerName?`
86
-
87
- Check the render method of \``+ownerName+"`.":""}var valuePropNames=["value","defaultValue"];function checkSelectPropTypes(props){{checkControlledValueProps("select",props);for(var i=0;i<valuePropNames.length;i++){var propName=valuePropNames[i];if(props[propName]!=null){var propNameIsArray=isArray(props[propName]);props.multiple&&!propNameIsArray?error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",propName,getDeclarationErrorAddendum()):!props.multiple&&propNameIsArray&&error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",propName,getDeclarationErrorAddendum())}}}}function updateOptions(node,multiple,propValue,setDefaultSelected){var options2=node.options;if(multiple){for(var selectedValues=propValue,selectedValue={},i=0;i<selectedValues.length;i++)selectedValue["$"+selectedValues[i]]=!0;for(var _i=0;_i<options2.length;_i++){var selected=selectedValue.hasOwnProperty("$"+options2[_i].value);options2[_i].selected!==selected&&(options2[_i].selected=selected),selected&&setDefaultSelected&&(options2[_i].defaultSelected=!0)}}else{for(var _selectedValue=toString(getToStringValue(propValue)),defaultSelected=null,_i2=0;_i2<options2.length;_i2++){if(options2[_i2].value===_selectedValue){options2[_i2].selected=!0,setDefaultSelected&&(options2[_i2].defaultSelected=!0);return}defaultSelected===null&&!options2[_i2].disabled&&(defaultSelected=options2[_i2])}defaultSelected!==null&&(defaultSelected.selected=!0)}}function getHostProps$1(element,props){return assign({},props,{value:void 0})}function initWrapperState$1(element,props){var node=element;checkSelectPropTypes(props),node._wrapperState={wasMultiple:!!props.multiple},props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValueDefaultValue$1&&(error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),didWarnValueDefaultValue$1=!0)}function postMountWrapper$2(element,props){var node=element;node.multiple=!!props.multiple;var value=props.value;value!=null?updateOptions(node,!!props.multiple,value,!1):props.defaultValue!=null&&updateOptions(node,!!props.multiple,props.defaultValue,!0)}function postUpdateWrapper(element,props){var node=element,wasMultiple=node._wrapperState.wasMultiple;node._wrapperState.wasMultiple=!!props.multiple;var value=props.value;value!=null?updateOptions(node,!!props.multiple,value,!1):wasMultiple!==!!props.multiple&&(props.defaultValue!=null?updateOptions(node,!!props.multiple,props.defaultValue,!0):updateOptions(node,!!props.multiple,props.multiple?[]:"",!1))}function restoreControlledState$1(element,props){var node=element,value=props.value;value!=null&&updateOptions(node,!!props.multiple,value,!1)}var didWarnValDefaultVal=!1;function getHostProps$2(element,props){var node=element;if(props.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var hostProps=assign({},props,{value:void 0,defaultValue:void 0,children:toString(node._wrapperState.initialValue)});return hostProps}function initWrapperState$2(element,props){var node=element;checkControlledValueProps("textarea",props),props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValDefaultVal&&(error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component"),didWarnValDefaultVal=!0);var initialValue=props.value;if(initialValue==null){var children=props.children,defaultValue=props.defaultValue;if(children!=null){error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(defaultValue!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(isArray(children)){if(children.length>1)throw new Error("<textarea> can only have at most one child.");children=children[0]}defaultValue=children}}defaultValue==null&&(defaultValue=""),initialValue=defaultValue}node._wrapperState={initialValue:getToStringValue(initialValue)}}function updateWrapper$1(element,props){var node=element,value=getToStringValue(props.value),defaultValue=getToStringValue(props.defaultValue);if(value!=null){var newValue=toString(value);newValue!==node.value&&(node.value=newValue),props.defaultValue==null&&node.defaultValue!==newValue&&(node.defaultValue=newValue)}defaultValue!=null&&(node.defaultValue=toString(defaultValue))}function postMountWrapper$3(element,props){var node=element,textContent=node.textContent;textContent===node._wrapperState.initialValue&&textContent!==""&&textContent!==null&&(node.value=textContent)}function restoreControlledState$2(element,props){updateWrapper$1(element,props)}var HTML_NAMESPACE="http://www.w3.org/1999/xhtml",MATH_NAMESPACE="http://www.w3.org/1998/Math/MathML",SVG_NAMESPACE="http://www.w3.org/2000/svg";function getIntrinsicNamespace(type){switch(type){case"svg":return SVG_NAMESPACE;case"math":return MATH_NAMESPACE;default:return HTML_NAMESPACE}}function getChildNamespace(parentNamespace,type){return parentNamespace==null||parentNamespace===HTML_NAMESPACE?getIntrinsicNamespace(type):parentNamespace===SVG_NAMESPACE&&type==="foreignObject"?HTML_NAMESPACE:parentNamespace}var createMicrosoftUnsafeLocalFunction=function(func){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(arg0,arg1,arg2,arg3){MSApp.execUnsafeLocalFunction(function(){return func(arg0,arg1,arg2,arg3)})}:func},reusableSVGContainer,setInnerHTML=createMicrosoftUnsafeLocalFunction(function(node,html){if(node.namespaceURI===SVG_NAMESPACE&&!("innerHTML"in node)){reusableSVGContainer=reusableSVGContainer||document.createElement("div"),reusableSVGContainer.innerHTML="<svg>"+html.valueOf().toString()+"</svg>";for(var svgNode=reusableSVGContainer.firstChild;node.firstChild;)node.removeChild(node.firstChild);for(;svgNode.firstChild;)node.appendChild(svgNode.firstChild);return}node.innerHTML=html}),ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8,DOCUMENT_NODE=9,DOCUMENT_FRAGMENT_NODE=11,setTextContent=function(node,text){if(text){var firstChild=node.firstChild;if(firstChild&&firstChild===node.lastChild&&firstChild.nodeType===TEXT_NODE){firstChild.nodeValue=text;return}}node.textContent=text},shorthandToLonghand={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},isUnitlessNumber={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};function prefixKey(prefix2,key){return prefix2+key.charAt(0).toUpperCase()+key.substring(1)}var prefixes=["Webkit","ms","Moz","O"];Object.keys(isUnitlessNumber).forEach(function(prop){prefixes.forEach(function(prefix2){isUnitlessNumber[prefixKey(prefix2,prop)]=isUnitlessNumber[prop]})});function dangerousStyleValue(name,value,isCustomProperty){var isEmpty=value==null||typeof value=="boolean"||value==="";return isEmpty?"":!isCustomProperty&&typeof value=="number"&&value!==0&&!(isUnitlessNumber.hasOwnProperty(name)&&isUnitlessNumber[name])?value+"px":(checkCSSPropertyStringCoercion(value,name),(""+value).trim())}var uppercasePattern=/([A-Z])/g,msPattern=/^ms-/;function hyphenateStyleName(name){return name.replace(uppercasePattern,"-$1").toLowerCase().replace(msPattern,"-ms-")}var warnValidStyle=function(){};{var badVendoredStyleNamePattern=/^(?:webkit|moz|o)[A-Z]/,msPattern$1=/^-ms-/,hyphenPattern=/-(.)/g,badStyleValueWithSemicolonPattern=/;\s*$/,warnedStyleNames={},warnedStyleValues={},warnedForNaNValue=!1,warnedForInfinityValue=!1,camelize=function(string){return string.replace(hyphenPattern,function(_,character){return character.toUpperCase()})},warnHyphenatedStyleName=function(name){warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]||(warnedStyleNames[name]=!0,error("Unsupported style property %s. Did you mean %s?",name,camelize(name.replace(msPattern$1,"ms-"))))},warnBadVendoredStyleName=function(name){warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]||(warnedStyleNames[name]=!0,error("Unsupported vendor-prefixed style property %s. Did you mean %s?",name,name.charAt(0).toUpperCase()+name.slice(1)))},warnStyleValueWithSemicolon=function(name,value){warnedStyleValues.hasOwnProperty(value)&&warnedStyleValues[value]||(warnedStyleValues[value]=!0,error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,name,value.replace(badStyleValueWithSemicolonPattern,"")))},warnStyleValueIsNaN=function(name,value){warnedForNaNValue||(warnedForNaNValue=!0,error("`NaN` is an invalid value for the `%s` css style property.",name))},warnStyleValueIsInfinity=function(name,value){warnedForInfinityValue||(warnedForInfinityValue=!0,error("`Infinity` is an invalid value for the `%s` css style property.",name))};warnValidStyle=function(name,value){name.indexOf("-")>-1?warnHyphenatedStyleName(name):badVendoredStyleNamePattern.test(name)?warnBadVendoredStyleName(name):badStyleValueWithSemicolonPattern.test(value)&&warnStyleValueWithSemicolon(name,value),typeof value=="number"&&(isNaN(value)?warnStyleValueIsNaN(name,value):isFinite(value)||warnStyleValueIsInfinity(name,value))}}var warnValidStyle$1=warnValidStyle;function createDangerousStringForStyles(styles){{var serialized="",delimiter="";for(var styleName in styles)if(styles.hasOwnProperty(styleName)){var styleValue=styles[styleName];if(styleValue!=null){var isCustomProperty=styleName.indexOf("--")===0;serialized+=delimiter+(isCustomProperty?styleName:hyphenateStyleName(styleName))+":",serialized+=dangerousStyleValue(styleName,styleValue,isCustomProperty),delimiter=";"}}return serialized||null}}function setValueForStyles(node,styles){var style2=node.style;for(var styleName in styles)if(styles.hasOwnProperty(styleName)){var isCustomProperty=styleName.indexOf("--")===0;isCustomProperty||warnValidStyle$1(styleName,styles[styleName]);var styleValue=dangerousStyleValue(styleName,styles[styleName],isCustomProperty);styleName==="float"&&(styleName="cssFloat"),isCustomProperty?style2.setProperty(styleName,styleValue):style2[styleName]=styleValue}}function isValueEmpty(value){return value==null||typeof value=="boolean"||value===""}function expandShorthandMap(styles){var expanded={};for(var key in styles)for(var longhands=shorthandToLonghand[key]||[key],i=0;i<longhands.length;i++)expanded[longhands[i]]=key;return expanded}function validateShorthandPropertyCollisionInDev(styleUpdates,nextStyles){{if(!nextStyles)return;var expandedUpdates=expandShorthandMap(styleUpdates),expandedStyles=expandShorthandMap(nextStyles),warnedAbout={};for(var key in expandedUpdates){var originalKey=expandedUpdates[key],correctOriginalKey=expandedStyles[key];if(correctOriginalKey&&originalKey!==correctOriginalKey){var warningKey=originalKey+","+correctOriginalKey;if(warnedAbout[warningKey])continue;warnedAbout[warningKey]=!0,error("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",isValueEmpty(styleUpdates[originalKey])?"Removing":"Updating",originalKey,correctOriginalKey)}}}}var omittedCloseTags={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},voidElementTags=assign({menuitem:!0},omittedCloseTags),HTML="__html";function assertValidProps(tag,props){if(props){if(voidElementTags[tag]&&(props.children!=null||props.dangerouslySetInnerHTML!=null))throw new Error(tag+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(props.dangerouslySetInnerHTML!=null){if(props.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof props.dangerouslySetInnerHTML!="object"||!(HTML in props.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!props.suppressContentEditableWarning&&props.contentEditable&&props.children!=null&&error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),props.style!=null&&typeof props.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function isCustomComponent(tagName,props){if(tagName.indexOf("-")===-1)return typeof props.is=="string";switch(tagName){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 possibleStandardNames={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ariaProperties={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},warnedProperties={},rARIA=new RegExp("^(aria)-["+ATTRIBUTE_NAME_CHAR+"]*$"),rARIACamel=new RegExp("^(aria)[A-Z]["+ATTRIBUTE_NAME_CHAR+"]*$");function validateProperty(tagName,name){{if(hasOwnProperty.call(warnedProperties,name)&&warnedProperties[name])return!0;if(rARIACamel.test(name)){var ariaName="aria-"+name.slice(4).toLowerCase(),correctName=ariaProperties.hasOwnProperty(ariaName)?ariaName:null;if(correctName==null)return error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",name),warnedProperties[name]=!0,!0;if(name!==correctName)return error("Invalid ARIA attribute `%s`. Did you mean `%s`?",name,correctName),warnedProperties[name]=!0,!0}if(rARIA.test(name)){var lowerCasedName=name.toLowerCase(),standardName=ariaProperties.hasOwnProperty(lowerCasedName)?lowerCasedName:null;if(standardName==null)return warnedProperties[name]=!0,!1;if(name!==standardName)return error("Unknown ARIA attribute `%s`. Did you mean `%s`?",name,standardName),warnedProperties[name]=!0,!0}}return!0}function warnInvalidARIAProps(type,props){{var invalidProps=[];for(var key in props){var isValid=validateProperty(type,key);isValid||invalidProps.push(key)}var unknownPropString=invalidProps.map(function(prop){return"`"+prop+"`"}).join(", ");invalidProps.length===1?error("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",unknownPropString,type):invalidProps.length>1&&error("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",unknownPropString,type)}}function validateProperties(type,props){isCustomComponent(type,props)||warnInvalidARIAProps(type,props)}var didWarnValueNull=!1;function validateProperties$1(type,props){{if(type!=="input"&&type!=="textarea"&&type!=="select")return;props!=null&&props.value===null&&!didWarnValueNull&&(didWarnValueNull=!0,type==="select"&&props.multiple?error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",type):error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",type))}}var validateProperty$1=function(){};{var warnedProperties$1={},EVENT_NAME_REGEX=/^on./,INVALID_EVENT_NAME_REGEX=/^on[^A-Z]/,rARIA$1=new RegExp("^(aria)-["+ATTRIBUTE_NAME_CHAR+"]*$"),rARIACamel$1=new RegExp("^(aria)[A-Z]["+ATTRIBUTE_NAME_CHAR+"]*$");validateProperty$1=function(tagName,name,value,eventRegistry){if(hasOwnProperty.call(warnedProperties$1,name)&&warnedProperties$1[name])return!0;var lowerCasedName=name.toLowerCase();if(lowerCasedName==="onfocusin"||lowerCasedName==="onfocusout")return error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),warnedProperties$1[name]=!0,!0;if(eventRegistry!=null){var registrationNameDependencies2=eventRegistry.registrationNameDependencies,possibleRegistrationNames2=eventRegistry.possibleRegistrationNames;if(registrationNameDependencies2.hasOwnProperty(name))return!0;var registrationName=possibleRegistrationNames2.hasOwnProperty(lowerCasedName)?possibleRegistrationNames2[lowerCasedName]:null;if(registrationName!=null)return error("Invalid event handler property `%s`. Did you mean `%s`?",name,registrationName),warnedProperties$1[name]=!0,!0;if(EVENT_NAME_REGEX.test(name))return error("Unknown event handler property `%s`. It will be ignored.",name),warnedProperties$1[name]=!0,!0}else if(EVENT_NAME_REGEX.test(name))return INVALID_EVENT_NAME_REGEX.test(name)&&error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",name),warnedProperties$1[name]=!0,!0;if(rARIA$1.test(name)||rARIACamel$1.test(name))return!0;if(lowerCasedName==="innerhtml")return error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),warnedProperties$1[name]=!0,!0;if(lowerCasedName==="aria")return error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),warnedProperties$1[name]=!0,!0;if(lowerCasedName==="is"&&value!==null&&value!==void 0&&typeof value!="string")return error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof value),warnedProperties$1[name]=!0,!0;if(typeof value=="number"&&isNaN(value))return error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",name),warnedProperties$1[name]=!0,!0;var propertyInfo=getPropertyInfo(name),isReserved=propertyInfo!==null&&propertyInfo.type===RESERVED;if(possibleStandardNames.hasOwnProperty(lowerCasedName)){var standardName=possibleStandardNames[lowerCasedName];if(standardName!==name)return error("Invalid DOM property `%s`. Did you mean `%s`?",name,standardName),warnedProperties$1[name]=!0,!0}else if(!isReserved&&name!==lowerCasedName)return error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",name,lowerCasedName),warnedProperties$1[name]=!0,!0;return typeof value=="boolean"&&shouldRemoveAttributeWithWarning(name,value,propertyInfo,!1)?(value?error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',value,name,name,value,name):error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',value,name,name,value,name,name,name),warnedProperties$1[name]=!0,!0):isReserved?!0:shouldRemoveAttributeWithWarning(name,value,propertyInfo,!1)?(warnedProperties$1[name]=!0,!1):((value==="false"||value==="true")&&propertyInfo!==null&&propertyInfo.type===BOOLEAN&&(error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",value,name,value==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',name,value),warnedProperties$1[name]=!0),!0)}}var warnUnknownProperties=function(type,props,eventRegistry){{var unknownProps=[];for(var key in props){var isValid=validateProperty$1(type,key,props[key],eventRegistry);isValid||unknownProps.push(key)}var unknownPropString=unknownProps.map(function(prop){return"`"+prop+"`"}).join(", ");unknownProps.length===1?error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",unknownPropString,type):unknownProps.length>1&&error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",unknownPropString,type)}};function validateProperties$2(type,props,eventRegistry){isCustomComponent(type,props)||warnUnknownProperties(type,props,eventRegistry)}var IS_EVENT_HANDLE_NON_MANAGED_NODE=1,IS_NON_DELEGATED=2,IS_CAPTURE_PHASE=4,SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS=IS_EVENT_HANDLE_NON_MANAGED_NODE|IS_NON_DELEGATED|IS_CAPTURE_PHASE,currentReplayingEvent=null;function setReplayingEvent(event){currentReplayingEvent!==null&&error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),currentReplayingEvent=event}function resetReplayingEvent(){currentReplayingEvent===null&&error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),currentReplayingEvent=null}function isReplayingEvent(event){return event===currentReplayingEvent}function getEventTarget(nativeEvent){var target=nativeEvent.target||nativeEvent.srcElement||window;return target.correspondingUseElement&&(target=target.correspondingUseElement),target.nodeType===TEXT_NODE?target.parentNode:target}var restoreImpl=null,restoreTarget=null,restoreQueue=null;function restoreStateOfTarget(target){var internalInstance=getInstanceFromNode(target);if(internalInstance){if(typeof restoreImpl!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var stateNode=internalInstance.stateNode;if(stateNode){var _props=getFiberCurrentPropsFromNode(stateNode);restoreImpl(internalInstance.stateNode,internalInstance.type,_props)}}}function setRestoreImplementation(impl){restoreImpl=impl}function enqueueStateRestore(target){restoreTarget?restoreQueue?restoreQueue.push(target):restoreQueue=[target]:restoreTarget=target}function needsStateRestore(){return restoreTarget!==null||restoreQueue!==null}function restoreStateIfNeeded(){if(restoreTarget){var target=restoreTarget,queuedTargets=restoreQueue;if(restoreTarget=null,restoreQueue=null,restoreStateOfTarget(target),queuedTargets)for(var i=0;i<queuedTargets.length;i++)restoreStateOfTarget(queuedTargets[i])}}var batchedUpdatesImpl=function(fn,bookkeeping){return fn(bookkeeping)},flushSyncImpl=function(){},isInsideEventHandler=!1;function finishEventHandler(){var controlledComponentsHavePendingUpdates=needsStateRestore();controlledComponentsHavePendingUpdates&&(flushSyncImpl(),restoreStateIfNeeded())}function batchedUpdates(fn,a2,b){if(isInsideEventHandler)return fn(a2,b);isInsideEventHandler=!0;try{return batchedUpdatesImpl(fn,a2,b)}finally{isInsideEventHandler=!1,finishEventHandler()}}function setBatchingImplementation(_batchedUpdatesImpl,_discreteUpdatesImpl,_flushSyncImpl){batchedUpdatesImpl=_batchedUpdatesImpl,flushSyncImpl=_flushSyncImpl}function isInteractive(tag){return tag==="button"||tag==="input"||tag==="select"||tag==="textarea"}function shouldPreventMouseEvent(name,type,props){switch(name){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(props.disabled&&isInteractive(type));default:return!1}}function getListener(inst,registrationName){var stateNode=inst.stateNode;if(stateNode===null)return null;var props=getFiberCurrentPropsFromNode(stateNode);if(props===null)return null;var listener=props[registrationName];if(shouldPreventMouseEvent(registrationName,inst.type,props))return null;if(listener&&typeof listener!="function")throw new Error("Expected `"+registrationName+"` listener to be a function, instead got a value of `"+typeof listener+"` type.");return listener}var passiveBrowserEventsSupported=!1;if(canUseDOM)try{var options={};Object.defineProperty(options,"passive",{get:function(){passiveBrowserEventsSupported=!0}}),window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveBrowserEventsSupported=!1}function invokeGuardedCallbackProd(name,func,context,a2,b,c2,d,e,f){var funcArgs=Array.prototype.slice.call(arguments,3);try{func.apply(context,funcArgs)}catch(error2){this.onError(error2)}}var invokeGuardedCallbackImpl=invokeGuardedCallbackProd;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var fakeNode=document.createElement("react");invokeGuardedCallbackImpl=function(name,func,context,a2,b,c2,d,e,f){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var evt=document.createEvent("Event"),didCall=!1,didError=!0,windowEvent=window.event,windowEventDescriptor=Object.getOwnPropertyDescriptor(window,"event");function restoreAfterDispatch(){fakeNode.removeEventListener(evtType,callCallback2,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=windowEvent)}var funcArgs=Array.prototype.slice.call(arguments,3);function callCallback2(){didCall=!0,restoreAfterDispatch(),func.apply(context,funcArgs),didError=!1}var error2,didSetError=!1,isCrossOriginError=!1;function handleWindowError(event){if(error2=event.error,didSetError=!0,error2===null&&event.colno===0&&event.lineno===0&&(isCrossOriginError=!0),event.defaultPrevented&&error2!=null&&typeof error2=="object")try{error2._suppressLogging=!0}catch{}}var evtType="react-"+(name||"invokeguardedcallback");if(window.addEventListener("error",handleWindowError),fakeNode.addEventListener(evtType,callCallback2,!1),evt.initEvent(evtType,!1,!1),fakeNode.dispatchEvent(evt),windowEventDescriptor&&Object.defineProperty(window,"event",windowEventDescriptor),didCall&&didError&&(didSetError?isCrossOriginError&&(error2=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):error2=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(error2)),window.removeEventListener("error",handleWindowError),!didCall)return restoreAfterDispatch(),invokeGuardedCallbackProd.apply(this,arguments)}}var invokeGuardedCallbackImpl$1=invokeGuardedCallbackImpl,hasError=!1,caughtError=null,hasRethrowError=!1,rethrowError=null,reporter={onError:function(error2){hasError=!0,caughtError=error2}};function invokeGuardedCallback(name,func,context,a2,b,c2,d,e,f){hasError=!1,caughtError=null,invokeGuardedCallbackImpl$1.apply(reporter,arguments)}function invokeGuardedCallbackAndCatchFirstError(name,func,context,a2,b,c2,d,e,f){if(invokeGuardedCallback.apply(this,arguments),hasError){var error2=clearCaughtError();hasRethrowError||(hasRethrowError=!0,rethrowError=error2)}}function rethrowCaughtError(){if(hasRethrowError){var error2=rethrowError;throw hasRethrowError=!1,rethrowError=null,error2}}function hasCaughtError(){return hasError}function clearCaughtError(){if(hasError){var error2=caughtError;return hasError=!1,caughtError=null,error2}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function get(key){return key._reactInternals}function has(key){return key._reactInternals!==void 0}function set(key,value){key._reactInternals=value}var NoFlags=0,PerformedWork=1,Placement=2,Update=4,ChildDeletion=16,ContentReset=32,Callback=64,DidCapture=128,ForceClientRender=256,Ref=512,Snapshot=1024,Passive=2048,Hydrating=4096,Visibility=8192,StoreConsistency=16384,HostEffectMask=32767,Incomplete=32768,ShouldCapture=65536,ForceUpdateForLegacySuspense=131072,Forked=1048576,RefStatic=2097152,LayoutStatic=4194304,PassiveStatic=8388608,MountLayoutDev=16777216,MountPassiveDev=33554432,BeforeMutationMask=Update|Snapshot|0,MutationMask=Placement|Update|ChildDeletion|ContentReset|Ref|Hydrating|Visibility,LayoutMask=Update|Callback|Ref|Visibility,PassiveMask=Passive|ChildDeletion,StaticMask=LayoutStatic|PassiveStatic|RefStatic,ReactCurrentOwner=ReactSharedInternals.ReactCurrentOwner;function getNearestMountedFiber(fiber){var node=fiber,nearestMounted=fiber;if(fiber.alternate)for(;node.return;)node=node.return;else{var nextNode=node;do node=nextNode,(node.flags&(Placement|Hydrating))!==NoFlags&&(nearestMounted=node.return),nextNode=node.return;while(nextNode)}return node.tag===HostRoot?nearestMounted:null}function getSuspenseInstanceFromFiber(fiber){if(fiber.tag===SuspenseComponent){var suspenseState=fiber.memoizedState;if(suspenseState===null){var current2=fiber.alternate;current2!==null&&(suspenseState=current2.memoizedState)}if(suspenseState!==null)return suspenseState.dehydrated}return null}function getContainerFromFiber(fiber){return fiber.tag===HostRoot?fiber.stateNode.containerInfo:null}function isFiberMounted(fiber){return getNearestMountedFiber(fiber)===fiber}function isMounted(component){{var owner=ReactCurrentOwner.current;if(owner!==null&&owner.tag===ClassComponent){var ownerFiber=owner,instance=ownerFiber.stateNode;instance._warnedAboutRefsInRender||error("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",getComponentNameFromFiber(ownerFiber)||"A component"),instance._warnedAboutRefsInRender=!0}}var fiber=get(component);return fiber?getNearestMountedFiber(fiber)===fiber:!1}function assertIsMounted(fiber){if(getNearestMountedFiber(fiber)!==fiber)throw new Error("Unable to find node on an unmounted component.")}function findCurrentFiberUsingSlowPath(fiber){var alternate=fiber.alternate;if(!alternate){var nearestMounted=getNearestMountedFiber(fiber);if(nearestMounted===null)throw new Error("Unable to find node on an unmounted component.");return nearestMounted!==fiber?null:fiber}for(var a2=fiber,b=alternate;;){var parentA=a2.return;if(parentA===null)break;var parentB=parentA.alternate;if(parentB===null){var nextParent=parentA.return;if(nextParent!==null){a2=b=nextParent;continue}break}if(parentA.child===parentB.child){for(var child=parentA.child;child;){if(child===a2)return assertIsMounted(parentA),fiber;if(child===b)return assertIsMounted(parentA),alternate;child=child.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a2.return!==b.return)a2=parentA,b=parentB;else{for(var didFindChild=!1,_child=parentA.child;_child;){if(_child===a2){didFindChild=!0,a2=parentA,b=parentB;break}if(_child===b){didFindChild=!0,b=parentA,a2=parentB;break}_child=_child.sibling}if(!didFindChild){for(_child=parentB.child;_child;){if(_child===a2){didFindChild=!0,a2=parentB,b=parentA;break}if(_child===b){didFindChild=!0,b=parentB,a2=parentA;break}_child=_child.sibling}if(!didFindChild)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a2.alternate!==b)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a2.tag!==HostRoot)throw new Error("Unable to find node on an unmounted component.");return a2.stateNode.current===a2?fiber:alternate}function findCurrentHostFiber(parent){var currentParent=findCurrentFiberUsingSlowPath(parent);return currentParent!==null?findCurrentHostFiberImpl(currentParent):null}function findCurrentHostFiberImpl(node){if(node.tag===HostComponent||node.tag===HostText)return node;for(var child=node.child;child!==null;){var match=findCurrentHostFiberImpl(child);if(match!==null)return match;child=child.sibling}return null}function findCurrentHostFiberWithNoPortals(parent){var currentParent=findCurrentFiberUsingSlowPath(parent);return currentParent!==null?findCurrentHostFiberWithNoPortalsImpl(currentParent):null}function findCurrentHostFiberWithNoPortalsImpl(node){if(node.tag===HostComponent||node.tag===HostText)return node;for(var child=node.child;child!==null;){if(child.tag!==HostPortal){var match=findCurrentHostFiberWithNoPortalsImpl(child);if(match!==null)return match}child=child.sibling}return null}var scheduleCallback=Scheduler.unstable_scheduleCallback,cancelCallback=Scheduler.unstable_cancelCallback,shouldYield=Scheduler.unstable_shouldYield,requestPaint=Scheduler.unstable_requestPaint,now=Scheduler.unstable_now,getCurrentPriorityLevel=Scheduler.unstable_getCurrentPriorityLevel,ImmediatePriority=Scheduler.unstable_ImmediatePriority,UserBlockingPriority=Scheduler.unstable_UserBlockingPriority,NormalPriority=Scheduler.unstable_NormalPriority,LowPriority=Scheduler.unstable_LowPriority,IdlePriority=Scheduler.unstable_IdlePriority,unstable_yieldValue=Scheduler.unstable_yieldValue,unstable_setDisableYieldValue=Scheduler.unstable_setDisableYieldValue,rendererID=null,injectedHook=null,injectedProfilingHooks=null,hasLoggedError=!1,isDevToolsPresent=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function injectInternals(internals){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var hook=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(hook.isDisabled)return!0;if(!hook.supportsFiber)return error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{enableSchedulingProfiler&&(internals=assign({},internals,{getLaneLabelMap,injectProfilingHooks})),rendererID=hook.inject(internals),injectedHook=hook}catch(err){error("React instrumentation encountered an error: %s.",err)}return!!hook.checkDCE}function onScheduleRoot(root3,children){if(injectedHook&&typeof injectedHook.onScheduleFiberRoot=="function")try{injectedHook.onScheduleFiberRoot(rendererID,root3,children)}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function onCommitRoot(root3,eventPriority){if(injectedHook&&typeof injectedHook.onCommitFiberRoot=="function")try{var didError=(root3.current.flags&DidCapture)===DidCapture;if(enableProfilerTimer){var schedulerPriority;switch(eventPriority){case DiscreteEventPriority:schedulerPriority=ImmediatePriority;break;case ContinuousEventPriority:schedulerPriority=UserBlockingPriority;break;case DefaultEventPriority:schedulerPriority=NormalPriority;break;case IdleEventPriority:schedulerPriority=IdlePriority;break;default:schedulerPriority=NormalPriority;break}injectedHook.onCommitFiberRoot(rendererID,root3,schedulerPriority,didError)}}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function onPostCommitRoot(root3){if(injectedHook&&typeof injectedHook.onPostCommitFiberRoot=="function")try{injectedHook.onPostCommitFiberRoot(rendererID,root3)}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function onCommitUnmount(fiber){if(injectedHook&&typeof injectedHook.onCommitFiberUnmount=="function")try{injectedHook.onCommitFiberUnmount(rendererID,fiber)}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function setIsStrictModeForDevtools(newIsStrictMode){if(typeof unstable_yieldValue=="function"&&(unstable_setDisableYieldValue(newIsStrictMode),setSuppressWarning(newIsStrictMode)),injectedHook&&typeof injectedHook.setStrictMode=="function")try{injectedHook.setStrictMode(rendererID,newIsStrictMode)}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function injectProfilingHooks(profilingHooks){injectedProfilingHooks=profilingHooks}function getLaneLabelMap(){{for(var map=new Map,lane=1,index2=0;index2<TotalLanes;index2++){var label=getLabelForLane(lane);map.set(lane,label),lane*=2}return map}}function markCommitStarted(lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markCommitStarted=="function"&&injectedProfilingHooks.markCommitStarted(lanes)}function markCommitStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markCommitStopped=="function"&&injectedProfilingHooks.markCommitStopped()}function markComponentRenderStarted(fiber){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentRenderStarted=="function"&&injectedProfilingHooks.markComponentRenderStarted(fiber)}function markComponentRenderStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentRenderStopped=="function"&&injectedProfilingHooks.markComponentRenderStopped()}function markComponentPassiveEffectMountStarted(fiber){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted=="function"&&injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber)}function markComponentPassiveEffectMountStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped=="function"&&injectedProfilingHooks.markComponentPassiveEffectMountStopped()}function markComponentPassiveEffectUnmountStarted(fiber){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted=="function"&&injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber)}function markComponentPassiveEffectUnmountStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped=="function"&&injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()}function markComponentLayoutEffectMountStarted(fiber){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted=="function"&&injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber)}function markComponentLayoutEffectMountStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped=="function"&&injectedProfilingHooks.markComponentLayoutEffectMountStopped()}function markComponentLayoutEffectUnmountStarted(fiber){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted=="function"&&injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber)}function markComponentLayoutEffectUnmountStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped=="function"&&injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()}function markComponentErrored(fiber,thrownValue,lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentErrored=="function"&&injectedProfilingHooks.markComponentErrored(fiber,thrownValue,lanes)}function markComponentSuspended(fiber,wakeable,lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markComponentSuspended=="function"&&injectedProfilingHooks.markComponentSuspended(fiber,wakeable,lanes)}function markLayoutEffectsStarted(lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markLayoutEffectsStarted=="function"&&injectedProfilingHooks.markLayoutEffectsStarted(lanes)}function markLayoutEffectsStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markLayoutEffectsStopped=="function"&&injectedProfilingHooks.markLayoutEffectsStopped()}function markPassiveEffectsStarted(lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markPassiveEffectsStarted=="function"&&injectedProfilingHooks.markPassiveEffectsStarted(lanes)}function markPassiveEffectsStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markPassiveEffectsStopped=="function"&&injectedProfilingHooks.markPassiveEffectsStopped()}function markRenderStarted(lanes){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderStarted=="function"&&injectedProfilingHooks.markRenderStarted(lanes)}function markRenderYielded(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderYielded=="function"&&injectedProfilingHooks.markRenderYielded()}function markRenderStopped(){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderStopped=="function"&&injectedProfilingHooks.markRenderStopped()}function markRenderScheduled(lane){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markRenderScheduled=="function"&&injectedProfilingHooks.markRenderScheduled(lane)}function markForceUpdateScheduled(fiber,lane){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markForceUpdateScheduled=="function"&&injectedProfilingHooks.markForceUpdateScheduled(fiber,lane)}function markStateUpdateScheduled(fiber,lane){injectedProfilingHooks!==null&&typeof injectedProfilingHooks.markStateUpdateScheduled=="function"&&injectedProfilingHooks.markStateUpdateScheduled(fiber,lane)}var NoMode=0,ConcurrentMode=1,ProfileMode=2,StrictLegacyMode=8,StrictEffectsMode=16,clz32=Math.clz32?Math.clz32:clz32Fallback,log=Math.log,LN2=Math.LN2;function clz32Fallback(x){var asUint=x>>>0;return asUint===0?32:31-(log(asUint)/LN2|0)|0}var TotalLanes=31,NoLanes=0,NoLane=0,SyncLane=1,InputContinuousHydrationLane=2,InputContinuousLane=4,DefaultHydrationLane=8,DefaultLane=16,TransitionHydrationLane=32,TransitionLanes=4194240,TransitionLane1=64,TransitionLane2=128,TransitionLane3=256,TransitionLane4=512,TransitionLane5=1024,TransitionLane6=2048,TransitionLane7=4096,TransitionLane8=8192,TransitionLane9=16384,TransitionLane10=32768,TransitionLane11=65536,TransitionLane12=131072,TransitionLane13=262144,TransitionLane14=524288,TransitionLane15=1048576,TransitionLane16=2097152,RetryLanes=130023424,RetryLane1=4194304,RetryLane2=8388608,RetryLane3=16777216,RetryLane4=33554432,RetryLane5=67108864,SomeRetryLane=RetryLane1,SelectiveHydrationLane=134217728,NonIdleLanes=268435455,IdleHydrationLane=268435456,IdleLane=536870912,OffscreenLane=1073741824;function getLabelForLane(lane){{if(lane&SyncLane)return"Sync";if(lane&InputContinuousHydrationLane)return"InputContinuousHydration";if(lane&InputContinuousLane)return"InputContinuous";if(lane&DefaultHydrationLane)return"DefaultHydration";if(lane&DefaultLane)return"Default";if(lane&TransitionHydrationLane)return"TransitionHydration";if(lane&TransitionLanes)return"Transition";if(lane&RetryLanes)return"Retry";if(lane&SelectiveHydrationLane)return"SelectiveHydration";if(lane&IdleHydrationLane)return"IdleHydration";if(lane&IdleLane)return"Idle";if(lane&OffscreenLane)return"Offscreen"}}var NoTimestamp=-1,nextTransitionLane=TransitionLane1,nextRetryLane=RetryLane1;function getHighestPriorityLanes(lanes){switch(getHighestPriorityLane(lanes)){case SyncLane:return SyncLane;case InputContinuousHydrationLane:return InputContinuousHydrationLane;case InputContinuousLane:return InputContinuousLane;case DefaultHydrationLane:return DefaultHydrationLane;case DefaultLane:return DefaultLane;case TransitionHydrationLane:return TransitionHydrationLane;case TransitionLane1:case TransitionLane2:case TransitionLane3:case TransitionLane4:case TransitionLane5:case TransitionLane6:case TransitionLane7:case TransitionLane8:case TransitionLane9:case TransitionLane10:case TransitionLane11:case TransitionLane12:case TransitionLane13:case TransitionLane14:case TransitionLane15:case TransitionLane16:return lanes&TransitionLanes;case RetryLane1:case RetryLane2:case RetryLane3:case RetryLane4:case RetryLane5:return lanes&RetryLanes;case SelectiveHydrationLane:return SelectiveHydrationLane;case IdleHydrationLane:return IdleHydrationLane;case IdleLane:return IdleLane;case OffscreenLane:return OffscreenLane;default:return error("Should have found matching lanes. This is a bug in React."),lanes}}function getNextLanes(root3,wipLanes){var pendingLanes=root3.pendingLanes;if(pendingLanes===NoLanes)return NoLanes;var nextLanes=NoLanes,suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes,nonIdlePendingLanes=pendingLanes&NonIdleLanes;if(nonIdlePendingLanes!==NoLanes){var nonIdleUnblockedLanes=nonIdlePendingLanes&~suspendedLanes;if(nonIdleUnblockedLanes!==NoLanes)nextLanes=getHighestPriorityLanes(nonIdleUnblockedLanes);else{var nonIdlePingedLanes=nonIdlePendingLanes&pingedLanes;nonIdlePingedLanes!==NoLanes&&(nextLanes=getHighestPriorityLanes(nonIdlePingedLanes))}}else{var unblockedLanes=pendingLanes&~suspendedLanes;unblockedLanes!==NoLanes?nextLanes=getHighestPriorityLanes(unblockedLanes):pingedLanes!==NoLanes&&(nextLanes=getHighestPriorityLanes(pingedLanes))}if(nextLanes===NoLanes)return NoLanes;if(wipLanes!==NoLanes&&wipLanes!==nextLanes&&(wipLanes&suspendedLanes)===NoLanes){var nextLane=getHighestPriorityLane(nextLanes),wipLane=getHighestPriorityLane(wipLanes);if(nextLane>=wipLane||nextLane===DefaultLane&&(wipLane&TransitionLanes)!==NoLanes)return wipLanes}(nextLanes&InputContinuousLane)!==NoLanes&&(nextLanes|=pendingLanes&DefaultLane);var entangledLanes=root3.entangledLanes;if(entangledLanes!==NoLanes)for(var entanglements=root3.entanglements,lanes=nextLanes&entangledLanes;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;nextLanes|=entanglements[index2],lanes&=~lane}return nextLanes}function getMostRecentEventTime(root3,lanes){for(var eventTimes=root3.eventTimes,mostRecentEventTime=NoTimestamp;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2,eventTime=eventTimes[index2];eventTime>mostRecentEventTime&&(mostRecentEventTime=eventTime),lanes&=~lane}return mostRecentEventTime}function computeExpirationTime(lane,currentTime){switch(lane){case SyncLane:case InputContinuousHydrationLane:case InputContinuousLane:return currentTime+250;case DefaultHydrationLane:case DefaultLane:case TransitionHydrationLane:case TransitionLane1:case TransitionLane2:case TransitionLane3:case TransitionLane4:case TransitionLane5:case TransitionLane6:case TransitionLane7:case TransitionLane8:case TransitionLane9:case TransitionLane10:case TransitionLane11:case TransitionLane12:case TransitionLane13:case TransitionLane14:case TransitionLane15:case TransitionLane16:return currentTime+5e3;case RetryLane1:case RetryLane2:case RetryLane3:case RetryLane4:case RetryLane5:return NoTimestamp;case SelectiveHydrationLane:case IdleHydrationLane:case IdleLane:case OffscreenLane:return NoTimestamp;default:return error("Should have found matching lanes. This is a bug in React."),NoTimestamp}}function markStarvedLanesAsExpired(root3,currentTime){for(var pendingLanes=root3.pendingLanes,suspendedLanes=root3.suspendedLanes,pingedLanes=root3.pingedLanes,expirationTimes=root3.expirationTimes,lanes=pendingLanes;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2,expirationTime=expirationTimes[index2];expirationTime===NoTimestamp?((lane&suspendedLanes)===NoLanes||(lane&pingedLanes)!==NoLanes)&&(expirationTimes[index2]=computeExpirationTime(lane,currentTime)):expirationTime<=currentTime&&(root3.expiredLanes|=lane),lanes&=~lane}}function getHighestPriorityPendingLanes(root3){return getHighestPriorityLanes(root3.pendingLanes)}function getLanesToRetrySynchronouslyOnError(root3){var everythingButOffscreen=root3.pendingLanes&-1073741825;return everythingButOffscreen!==NoLanes?everythingButOffscreen:everythingButOffscreen&OffscreenLane?OffscreenLane:NoLanes}function includesSyncLane(lanes){return(lanes&SyncLane)!==NoLanes}function includesNonIdleWork(lanes){return(lanes&NonIdleLanes)!==NoLanes}function includesOnlyRetries(lanes){return(lanes&RetryLanes)===lanes}function includesOnlyNonUrgentLanes(lanes){var UrgentLanes=SyncLane|InputContinuousLane|DefaultLane;return(lanes&UrgentLanes)===NoLanes}function includesOnlyTransitions(lanes){return(lanes&TransitionLanes)===lanes}function includesBlockingLane(root3,lanes){var SyncDefaultLanes=InputContinuousHydrationLane|InputContinuousLane|DefaultHydrationLane|DefaultLane;return(lanes&SyncDefaultLanes)!==NoLanes}function includesExpiredLane(root3,lanes){return(lanes&root3.expiredLanes)!==NoLanes}function isTransitionLane(lane){return(lane&TransitionLanes)!==NoLanes}function claimNextTransitionLane(){var lane=nextTransitionLane;return nextTransitionLane<<=1,(nextTransitionLane&TransitionLanes)===NoLanes&&(nextTransitionLane=TransitionLane1),lane}function claimNextRetryLane(){var lane=nextRetryLane;return nextRetryLane<<=1,(nextRetryLane&RetryLanes)===NoLanes&&(nextRetryLane=RetryLane1),lane}function getHighestPriorityLane(lanes){return lanes&-lanes}function pickArbitraryLane(lanes){return getHighestPriorityLane(lanes)}function pickArbitraryLaneIndex(lanes){return 31-clz32(lanes)}function laneToIndex(lane){return pickArbitraryLaneIndex(lane)}function includesSomeLane(a2,b){return(a2&b)!==NoLanes}function isSubsetOfLanes(set2,subset){return(set2&subset)===subset}function mergeLanes(a2,b){return a2|b}function removeLanes(set2,subset){return set2&~subset}function intersectLanes(a2,b){return a2&b}function laneToLanes(lane){return lane}function higherPriorityLane(a2,b){return a2!==NoLane&&a2<b?a2:b}function createLaneMap(initial){for(var laneMap=[],i=0;i<TotalLanes;i++)laneMap.push(initial);return laneMap}function markRootUpdated(root3,updateLane,eventTime){root3.pendingLanes|=updateLane,updateLane!==IdleLane&&(root3.suspendedLanes=NoLanes,root3.pingedLanes=NoLanes);var eventTimes=root3.eventTimes,index2=laneToIndex(updateLane);eventTimes[index2]=eventTime}function markRootSuspended(root3,suspendedLanes){root3.suspendedLanes|=suspendedLanes,root3.pingedLanes&=~suspendedLanes;for(var expirationTimes=root3.expirationTimes,lanes=suspendedLanes;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;expirationTimes[index2]=NoTimestamp,lanes&=~lane}}function markRootPinged(root3,pingedLanes,eventTime){root3.pingedLanes|=root3.suspendedLanes&pingedLanes}function markRootFinished(root3,remainingLanes){var noLongerPendingLanes=root3.pendingLanes&~remainingLanes;root3.pendingLanes=remainingLanes,root3.suspendedLanes=NoLanes,root3.pingedLanes=NoLanes,root3.expiredLanes&=remainingLanes,root3.mutableReadLanes&=remainingLanes,root3.entangledLanes&=remainingLanes;for(var entanglements=root3.entanglements,eventTimes=root3.eventTimes,expirationTimes=root3.expirationTimes,lanes=noLongerPendingLanes;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;entanglements[index2]=NoLanes,eventTimes[index2]=NoTimestamp,expirationTimes[index2]=NoTimestamp,lanes&=~lane}}function markRootEntangled(root3,entangledLanes){for(var rootEntangledLanes=root3.entangledLanes|=entangledLanes,entanglements=root3.entanglements,lanes=rootEntangledLanes;lanes;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;lane&entangledLanes|entanglements[index2]&entangledLanes&&(entanglements[index2]|=entangledLanes),lanes&=~lane}}function getBumpedLaneForHydration(root3,renderLanes2){var renderLane=getHighestPriorityLane(renderLanes2),lane;switch(renderLane){case InputContinuousLane:lane=InputContinuousHydrationLane;break;case DefaultLane:lane=DefaultHydrationLane;break;case TransitionLane1:case TransitionLane2:case TransitionLane3:case TransitionLane4:case TransitionLane5:case TransitionLane6:case TransitionLane7:case TransitionLane8:case TransitionLane9:case TransitionLane10:case TransitionLane11:case TransitionLane12:case TransitionLane13:case TransitionLane14:case TransitionLane15:case TransitionLane16:case RetryLane1:case RetryLane2:case RetryLane3:case RetryLane4:case RetryLane5:lane=TransitionHydrationLane;break;case IdleLane:lane=IdleHydrationLane;break;default:lane=NoLane;break}return(lane&(root3.suspendedLanes|renderLanes2))!==NoLane?NoLane:lane}function addFiberToLanesMap(root3,fiber,lanes){if(isDevToolsPresent)for(var pendingUpdatersLaneMap=root3.pendingUpdatersLaneMap;lanes>0;){var index2=laneToIndex(lanes),lane=1<<index2,updaters=pendingUpdatersLaneMap[index2];updaters.add(fiber),lanes&=~lane}}function movePendingFibersToMemoized(root3,lanes){if(isDevToolsPresent)for(var pendingUpdatersLaneMap=root3.pendingUpdatersLaneMap,memoizedUpdaters=root3.memoizedUpdaters;lanes>0;){var index2=laneToIndex(lanes),lane=1<<index2,updaters=pendingUpdatersLaneMap[index2];updaters.size>0&&(updaters.forEach(function(fiber){var alternate=fiber.alternate;(alternate===null||!memoizedUpdaters.has(alternate))&&memoizedUpdaters.add(fiber)}),updaters.clear()),lanes&=~lane}}function getTransitionsForLanes(root3,lanes){return null}var DiscreteEventPriority=SyncLane,ContinuousEventPriority=InputContinuousLane,DefaultEventPriority=DefaultLane,IdleEventPriority=IdleLane,currentUpdatePriority=NoLane;function getCurrentUpdatePriority(){return currentUpdatePriority}function setCurrentUpdatePriority(newPriority){currentUpdatePriority=newPriority}function runWithPriority(priority,fn){var previousPriority=currentUpdatePriority;try{return currentUpdatePriority=priority,fn()}finally{currentUpdatePriority=previousPriority}}function higherEventPriority(a2,b){return a2!==0&&a2<b?a2:b}function lowerEventPriority(a2,b){return a2>b?a2:b}function isHigherEventPriority(a2,b){return a2!==0&&a2<b}function lanesToEventPriority(lanes){var lane=getHighestPriorityLane(lanes);return isHigherEventPriority(DiscreteEventPriority,lane)?isHigherEventPriority(ContinuousEventPriority,lane)?includesNonIdleWork(lane)?DefaultEventPriority:IdleEventPriority:ContinuousEventPriority:DiscreteEventPriority}function isRootDehydrated(root3){var currentState=root3.current.memoizedState;return currentState.isDehydrated}var _attemptSynchronousHydration;function setAttemptSynchronousHydration(fn){_attemptSynchronousHydration=fn}function attemptSynchronousHydration(fiber){_attemptSynchronousHydration(fiber)}var attemptContinuousHydration;function setAttemptContinuousHydration(fn){attemptContinuousHydration=fn}var attemptHydrationAtCurrentPriority;function setAttemptHydrationAtCurrentPriority(fn){attemptHydrationAtCurrentPriority=fn}var getCurrentUpdatePriority$1;function setGetCurrentUpdatePriority(fn){getCurrentUpdatePriority$1=fn}var attemptHydrationAtPriority;function setAttemptHydrationAtPriority(fn){attemptHydrationAtPriority=fn}var hasScheduledReplayAttempt=!1,queuedDiscreteEvents=[],queuedFocus=null,queuedDrag=null,queuedMouse=null,queuedPointers=new Map,queuedPointerCaptures=new Map,queuedExplicitHydrationTargets=[],discreteReplayableEvents=["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"];function isDiscreteEventThatRequiresHydration(eventType){return discreteReplayableEvents.indexOf(eventType)>-1}function createQueuedReplayableEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){return{blockedOn,domEventName,eventSystemFlags,nativeEvent,targetContainers:[targetContainer]}}function clearIfContinuousEvent(domEventName,nativeEvent){switch(domEventName){case"focusin":case"focusout":queuedFocus=null;break;case"dragenter":case"dragleave":queuedDrag=null;break;case"mouseover":case"mouseout":queuedMouse=null;break;case"pointerover":case"pointerout":{var pointerId=nativeEvent.pointerId;queuedPointers.delete(pointerId);break}case"gotpointercapture":case"lostpointercapture":{var _pointerId=nativeEvent.pointerId;queuedPointerCaptures.delete(_pointerId);break}}}function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent,blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){if(existingQueuedEvent===null||existingQueuedEvent.nativeEvent!==nativeEvent){var queuedEvent=createQueuedReplayableEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent);if(blockedOn!==null){var _fiber2=getInstanceFromNode(blockedOn);_fiber2!==null&&attemptContinuousHydration(_fiber2)}return queuedEvent}existingQueuedEvent.eventSystemFlags|=eventSystemFlags;var targetContainers=existingQueuedEvent.targetContainers;return targetContainer!==null&&targetContainers.indexOf(targetContainer)===-1&&targetContainers.push(targetContainer),existingQueuedEvent}function queueIfContinuousEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent){switch(domEventName){case"focusin":{var focusEvent=nativeEvent;return queuedFocus=accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus,blockedOn,domEventName,eventSystemFlags,targetContainer,focusEvent),!0}case"dragenter":{var dragEvent=nativeEvent;return queuedDrag=accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag,blockedOn,domEventName,eventSystemFlags,targetContainer,dragEvent),!0}case"mouseover":{var mouseEvent=nativeEvent;return queuedMouse=accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse,blockedOn,domEventName,eventSystemFlags,targetContainer,mouseEvent),!0}case"pointerover":{var pointerEvent=nativeEvent,pointerId=pointerEvent.pointerId;return queuedPointers.set(pointerId,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId)||null,blockedOn,domEventName,eventSystemFlags,targetContainer,pointerEvent)),!0}case"gotpointercapture":{var _pointerEvent=nativeEvent,_pointerId2=_pointerEvent.pointerId;return queuedPointerCaptures.set(_pointerId2,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2)||null,blockedOn,domEventName,eventSystemFlags,targetContainer,_pointerEvent)),!0}}return!1}function attemptExplicitHydrationTarget(queuedTarget){var targetInst=getClosestInstanceFromNode(queuedTarget.target);if(targetInst!==null){var nearestMounted=getNearestMountedFiber(targetInst);if(nearestMounted!==null){var tag=nearestMounted.tag;if(tag===SuspenseComponent){var instance=getSuspenseInstanceFromFiber(nearestMounted);if(instance!==null){queuedTarget.blockedOn=instance,attemptHydrationAtPriority(queuedTarget.priority,function(){attemptHydrationAtCurrentPriority(nearestMounted)});return}}else if(tag===HostRoot){var root3=nearestMounted.stateNode;if(isRootDehydrated(root3)){queuedTarget.blockedOn=getContainerFromFiber(nearestMounted);return}}}}queuedTarget.blockedOn=null}function queueExplicitHydrationTarget(target){for(var updatePriority=getCurrentUpdatePriority$1(),queuedTarget={blockedOn:null,target,priority:updatePriority},i=0;i<queuedExplicitHydrationTargets.length&&isHigherEventPriority(updatePriority,queuedExplicitHydrationTargets[i].priority);i++);queuedExplicitHydrationTargets.splice(i,0,queuedTarget),i===0&&attemptExplicitHydrationTarget(queuedTarget)}function attemptReplayContinuousQueuedEvent(queuedEvent){if(queuedEvent.blockedOn!==null)return!1;for(var targetContainers=queuedEvent.targetContainers;targetContainers.length>0;){var targetContainer=targetContainers[0],nextBlockedOn=findInstanceBlockingEvent(queuedEvent.domEventName,queuedEvent.eventSystemFlags,targetContainer,queuedEvent.nativeEvent);if(nextBlockedOn===null){var nativeEvent=queuedEvent.nativeEvent,nativeEventClone=new nativeEvent.constructor(nativeEvent.type,nativeEvent);setReplayingEvent(nativeEventClone),nativeEvent.target.dispatchEvent(nativeEventClone),resetReplayingEvent()}else{var _fiber3=getInstanceFromNode(nextBlockedOn);return _fiber3!==null&&attemptContinuousHydration(_fiber3),queuedEvent.blockedOn=nextBlockedOn,!1}targetContainers.shift()}return!0}function attemptReplayContinuousQueuedEventInMap(queuedEvent,key,map){attemptReplayContinuousQueuedEvent(queuedEvent)&&map.delete(key)}function replayUnblockedEvents(){hasScheduledReplayAttempt=!1,queuedFocus!==null&&attemptReplayContinuousQueuedEvent(queuedFocus)&&(queuedFocus=null),queuedDrag!==null&&attemptReplayContinuousQueuedEvent(queuedDrag)&&(queuedDrag=null),queuedMouse!==null&&attemptReplayContinuousQueuedEvent(queuedMouse)&&(queuedMouse=null),queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap),queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap)}function scheduleCallbackIfUnblocked(queuedEvent,unblocked){queuedEvent.blockedOn===unblocked&&(queuedEvent.blockedOn=null,hasScheduledReplayAttempt||(hasScheduledReplayAttempt=!0,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,replayUnblockedEvents)))}function retryIfBlockedOn(unblocked){if(queuedDiscreteEvents.length>0){scheduleCallbackIfUnblocked(queuedDiscreteEvents[0],unblocked);for(var i=1;i<queuedDiscreteEvents.length;i++){var queuedEvent=queuedDiscreteEvents[i];queuedEvent.blockedOn===unblocked&&(queuedEvent.blockedOn=null)}}queuedFocus!==null&&scheduleCallbackIfUnblocked(queuedFocus,unblocked),queuedDrag!==null&&scheduleCallbackIfUnblocked(queuedDrag,unblocked),queuedMouse!==null&&scheduleCallbackIfUnblocked(queuedMouse,unblocked);var unblock=function(queuedEvent2){return scheduleCallbackIfUnblocked(queuedEvent2,unblocked)};queuedPointers.forEach(unblock),queuedPointerCaptures.forEach(unblock);for(var _i=0;_i<queuedExplicitHydrationTargets.length;_i++){var queuedTarget=queuedExplicitHydrationTargets[_i];queuedTarget.blockedOn===unblocked&&(queuedTarget.blockedOn=null)}for(;queuedExplicitHydrationTargets.length>0;){var nextExplicitTarget=queuedExplicitHydrationTargets[0];if(nextExplicitTarget.blockedOn!==null)break;attemptExplicitHydrationTarget(nextExplicitTarget),nextExplicitTarget.blockedOn===null&&queuedExplicitHydrationTargets.shift()}}var ReactCurrentBatchConfig=ReactSharedInternals.ReactCurrentBatchConfig,_enabled=!0;function setEnabled(enabled){_enabled=!!enabled}function isEnabled(){return _enabled}function createEventListenerWrapperWithPriority(targetContainer,domEventName,eventSystemFlags){var eventPriority=getEventPriority(domEventName),listenerWrapper;switch(eventPriority){case DiscreteEventPriority:listenerWrapper=dispatchDiscreteEvent;break;case ContinuousEventPriority:listenerWrapper=dispatchContinuousEvent;break;case DefaultEventPriority:default:listenerWrapper=dispatchEvent;break}return listenerWrapper.bind(null,domEventName,eventSystemFlags,targetContainer)}function dispatchDiscreteEvent(domEventName,eventSystemFlags,container,nativeEvent){var previousPriority=getCurrentUpdatePriority(),prevTransition=ReactCurrentBatchConfig.transition;ReactCurrentBatchConfig.transition=null;try{setCurrentUpdatePriority(DiscreteEventPriority),dispatchEvent(domEventName,eventSystemFlags,container,nativeEvent)}finally{setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig.transition=prevTransition}}function dispatchContinuousEvent(domEventName,eventSystemFlags,container,nativeEvent){var previousPriority=getCurrentUpdatePriority(),prevTransition=ReactCurrentBatchConfig.transition;ReactCurrentBatchConfig.transition=null;try{setCurrentUpdatePriority(ContinuousEventPriority),dispatchEvent(domEventName,eventSystemFlags,container,nativeEvent)}finally{setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig.transition=prevTransition}}function dispatchEvent(domEventName,eventSystemFlags,targetContainer,nativeEvent){_enabled&&dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName,eventSystemFlags,targetContainer,nativeEvent)}function dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName,eventSystemFlags,targetContainer,nativeEvent){var blockedOn=findInstanceBlockingEvent(domEventName,eventSystemFlags,targetContainer,nativeEvent);if(blockedOn===null){dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,return_targetInst,targetContainer),clearIfContinuousEvent(domEventName,nativeEvent);return}if(queueIfContinuousEvent(blockedOn,domEventName,eventSystemFlags,targetContainer,nativeEvent)){nativeEvent.stopPropagation();return}if(clearIfContinuousEvent(domEventName,nativeEvent),eventSystemFlags&IS_CAPTURE_PHASE&&isDiscreteEventThatRequiresHydration(domEventName)){for(;blockedOn!==null;){var fiber=getInstanceFromNode(blockedOn);fiber!==null&&attemptSynchronousHydration(fiber);var nextBlockedOn=findInstanceBlockingEvent(domEventName,eventSystemFlags,targetContainer,nativeEvent);if(nextBlockedOn===null&&dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,return_targetInst,targetContainer),nextBlockedOn===blockedOn)break;blockedOn=nextBlockedOn}blockedOn!==null&&nativeEvent.stopPropagation();return}dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,null,targetContainer)}var return_targetInst=null;function findInstanceBlockingEvent(domEventName,eventSystemFlags,targetContainer,nativeEvent){return_targetInst=null;var nativeEventTarget=getEventTarget(nativeEvent),targetInst=getClosestInstanceFromNode(nativeEventTarget);if(targetInst!==null){var nearestMounted=getNearestMountedFiber(targetInst);if(nearestMounted===null)targetInst=null;else{var tag=nearestMounted.tag;if(tag===SuspenseComponent){var instance=getSuspenseInstanceFromFiber(nearestMounted);if(instance!==null)return instance;targetInst=null}else if(tag===HostRoot){var root3=nearestMounted.stateNode;if(isRootDehydrated(root3))return getContainerFromFiber(nearestMounted);targetInst=null}else nearestMounted!==targetInst&&(targetInst=null)}}return return_targetInst=targetInst,null}function getEventPriority(domEventName){switch(domEventName){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 DiscreteEventPriority;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 ContinuousEventPriority;case"message":{var schedulerPriority=getCurrentPriorityLevel();switch(schedulerPriority){case ImmediatePriority:return DiscreteEventPriority;case UserBlockingPriority:return ContinuousEventPriority;case NormalPriority:case LowPriority:return DefaultEventPriority;case IdlePriority:return IdleEventPriority;default:return DefaultEventPriority}}default:return DefaultEventPriority}}function addEventBubbleListener(target,eventType,listener){return target.addEventListener(eventType,listener,!1),listener}function addEventCaptureListener(target,eventType,listener){return target.addEventListener(eventType,listener,!0),listener}function addEventCaptureListenerWithPassiveFlag(target,eventType,listener,passive){return target.addEventListener(eventType,listener,{capture:!0,passive}),listener}function addEventBubbleListenerWithPassiveFlag(target,eventType,listener,passive){return target.addEventListener(eventType,listener,{passive}),listener}var root2=null,startText=null,fallbackText=null;function initialize(nativeEventTarget){return root2=nativeEventTarget,startText=getText(),!0}function reset(){root2=null,startText=null,fallbackText=null}function getData(){if(fallbackText)return fallbackText;var start,startValue=startText,startLength=startValue.length,end,endValue=getText(),endLength=endValue.length;for(start=0;start<startLength&&startValue[start]===endValue[start];start++);var minEnd=startLength-start;for(end=1;end<=minEnd&&startValue[startLength-end]===endValue[endLength-end];end++);var sliceTail=end>1?1-end:void 0;return fallbackText=endValue.slice(start,sliceTail),fallbackText}function getText(){return"value"in root2?root2.value:root2.textContent}function getEventCharCode(nativeEvent){var charCode,keyCode=nativeEvent.keyCode;return"charCode"in nativeEvent?(charCode=nativeEvent.charCode,charCode===0&&keyCode===13&&(charCode=13)):charCode=keyCode,charCode===10&&(charCode=13),charCode>=32||charCode===13?charCode:0}function functionThatReturnsTrue(){return!0}function functionThatReturnsFalse(){return!1}function createSyntheticEvent(Interface){function SyntheticBaseEvent(reactName,reactEventType,targetInst,nativeEvent,nativeEventTarget){this._reactName=reactName,this._targetInst=targetInst,this.type=reactEventType,this.nativeEvent=nativeEvent,this.target=nativeEventTarget,this.currentTarget=null;for(var _propName in Interface)if(Interface.hasOwnProperty(_propName)){var normalize=Interface[_propName];normalize?this[_propName]=normalize(nativeEvent):this[_propName]=nativeEvent[_propName]}var defaultPrevented=nativeEvent.defaultPrevented!=null?nativeEvent.defaultPrevented:nativeEvent.returnValue===!1;return defaultPrevented?this.isDefaultPrevented=functionThatReturnsTrue:this.isDefaultPrevented=functionThatReturnsFalse,this.isPropagationStopped=functionThatReturnsFalse,this}return assign(SyntheticBaseEvent.prototype,{preventDefault:function(){this.defaultPrevented=!0;var event=this.nativeEvent;event&&(event.preventDefault?event.preventDefault():typeof event.returnValue!="unknown"&&(event.returnValue=!1),this.isDefaultPrevented=functionThatReturnsTrue)},stopPropagation:function(){var event=this.nativeEvent;event&&(event.stopPropagation?event.stopPropagation():typeof event.cancelBubble!="unknown"&&(event.cancelBubble=!0),this.isPropagationStopped=functionThatReturnsTrue)},persist:function(){},isPersistent:functionThatReturnsTrue}),SyntheticBaseEvent}var EventInterface={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(event){return event.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},SyntheticEvent=createSyntheticEvent(EventInterface),UIEventInterface=assign({},EventInterface,{view:0,detail:0}),SyntheticUIEvent=createSyntheticEvent(UIEventInterface),lastMovementX,lastMovementY,lastMouseEvent;function updateMouseMovementPolyfillState(event){event!==lastMouseEvent&&(lastMouseEvent&&event.type==="mousemove"?(lastMovementX=event.screenX-lastMouseEvent.screenX,lastMovementY=event.screenY-lastMouseEvent.screenY):(lastMovementX=0,lastMovementY=0),lastMouseEvent=event)}var MouseEventInterface=assign({},UIEventInterface,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:getEventModifierState,button:0,buttons:0,relatedTarget:function(event){return event.relatedTarget===void 0?event.fromElement===event.srcElement?event.toElement:event.fromElement:event.relatedTarget},movementX:function(event){return"movementX"in event?event.movementX:(updateMouseMovementPolyfillState(event),lastMovementX)},movementY:function(event){return"movementY"in event?event.movementY:lastMovementY}}),SyntheticMouseEvent=createSyntheticEvent(MouseEventInterface),DragEventInterface=assign({},MouseEventInterface,{dataTransfer:0}),SyntheticDragEvent=createSyntheticEvent(DragEventInterface),FocusEventInterface=assign({},UIEventInterface,{relatedTarget:0}),SyntheticFocusEvent=createSyntheticEvent(FocusEventInterface),AnimationEventInterface=assign({},EventInterface,{animationName:0,elapsedTime:0,pseudoElement:0}),SyntheticAnimationEvent=createSyntheticEvent(AnimationEventInterface),ClipboardEventInterface=assign({},EventInterface,{clipboardData:function(event){return"clipboardData"in event?event.clipboardData:window.clipboardData}}),SyntheticClipboardEvent=createSyntheticEvent(ClipboardEventInterface),CompositionEventInterface=assign({},EventInterface,{data:0}),SyntheticCompositionEvent=createSyntheticEvent(CompositionEventInterface),SyntheticInputEvent=SyntheticCompositionEvent,normalizeKey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},translateToKey={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"};function getEventKey(nativeEvent){if(nativeEvent.key){var key=normalizeKey[nativeEvent.key]||nativeEvent.key;if(key!=="Unidentified")return key}if(nativeEvent.type==="keypress"){var charCode=getEventCharCode(nativeEvent);return charCode===13?"Enter":String.fromCharCode(charCode)}return nativeEvent.type==="keydown"||nativeEvent.type==="keyup"?translateToKey[nativeEvent.keyCode]||"Unidentified":""}var modifierKeyToProp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function modifierStateGetter(keyArg){var syntheticEvent=this,nativeEvent=syntheticEvent.nativeEvent;if(nativeEvent.getModifierState)return nativeEvent.getModifierState(keyArg);var keyProp=modifierKeyToProp[keyArg];return keyProp?!!nativeEvent[keyProp]:!1}function getEventModifierState(nativeEvent){return modifierStateGetter}var KeyboardEventInterface=assign({},UIEventInterface,{key:getEventKey,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:getEventModifierState,charCode:function(event){return event.type==="keypress"?getEventCharCode(event):0},keyCode:function(event){return event.type==="keydown"||event.type==="keyup"?event.keyCode:0},which:function(event){return event.type==="keypress"?getEventCharCode(event):event.type==="keydown"||event.type==="keyup"?event.keyCode:0}}),SyntheticKeyboardEvent=createSyntheticEvent(KeyboardEventInterface),PointerEventInterface=assign({},MouseEventInterface,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SyntheticPointerEvent=createSyntheticEvent(PointerEventInterface),TouchEventInterface=assign({},UIEventInterface,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:getEventModifierState}),SyntheticTouchEvent=createSyntheticEvent(TouchEventInterface),TransitionEventInterface=assign({},EventInterface,{propertyName:0,elapsedTime:0,pseudoElement:0}),SyntheticTransitionEvent=createSyntheticEvent(TransitionEventInterface),WheelEventInterface=assign({},MouseEventInterface,{deltaX:function(event){return"deltaX"in event?event.deltaX:"wheelDeltaX"in event?-event.wheelDeltaX:0},deltaY:function(event){return"deltaY"in event?event.deltaY:"wheelDeltaY"in event?-event.wheelDeltaY:"wheelDelta"in event?-event.wheelDelta:0},deltaZ:0,deltaMode:0}),SyntheticWheelEvent=createSyntheticEvent(WheelEventInterface),END_KEYCODES=[9,13,27,32],START_KEYCODE=229,canUseCompositionEvent=canUseDOM&&"CompositionEvent"in window,documentMode=null;canUseDOM&&"documentMode"in document&&(documentMode=document.documentMode);var canUseTextInputEvent=canUseDOM&&"TextEvent"in window&&!documentMode,useFallbackCompositionData=canUseDOM&&(!canUseCompositionEvent||documentMode&&documentMode>8&&documentMode<=11),SPACEBAR_CODE=32,SPACEBAR_CHAR=String.fromCharCode(SPACEBAR_CODE);function registerEvents(){registerTwoPhaseEvent("onBeforeInput",["compositionend","keypress","textInput","paste"]),registerTwoPhaseEvent("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),registerTwoPhaseEvent("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),registerTwoPhaseEvent("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var hasSpaceKeypress=!1;function isKeypressCommand(nativeEvent){return(nativeEvent.ctrlKey||nativeEvent.altKey||nativeEvent.metaKey)&&!(nativeEvent.ctrlKey&&nativeEvent.altKey)}function getCompositionEventType(domEventName){switch(domEventName){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function isFallbackCompositionStart(domEventName,nativeEvent){return domEventName==="keydown"&&nativeEvent.keyCode===START_KEYCODE}function isFallbackCompositionEnd(domEventName,nativeEvent){switch(domEventName){case"keyup":return END_KEYCODES.indexOf(nativeEvent.keyCode)!==-1;case"keydown":return nativeEvent.keyCode!==START_KEYCODE;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function getDataFromCustomEvent(nativeEvent){var detail=nativeEvent.detail;return typeof detail=="object"&&"data"in detail?detail.data:null}function isUsingKoreanIME(nativeEvent){return nativeEvent.locale==="ko"}var isComposing=!1;function extractCompositionEvent(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget){var eventType,fallbackData;if(canUseCompositionEvent?eventType=getCompositionEventType(domEventName):isComposing?isFallbackCompositionEnd(domEventName,nativeEvent)&&(eventType="onCompositionEnd"):isFallbackCompositionStart(domEventName,nativeEvent)&&(eventType="onCompositionStart"),!eventType)return null;useFallbackCompositionData&&!isUsingKoreanIME(nativeEvent)&&(!isComposing&&eventType==="onCompositionStart"?isComposing=initialize(nativeEventTarget):eventType==="onCompositionEnd"&&isComposing&&(fallbackData=getData()));var listeners=accumulateTwoPhaseListeners(targetInst,eventType);if(listeners.length>0){var event=new SyntheticCompositionEvent(eventType,domEventName,null,nativeEvent,nativeEventTarget);if(dispatchQueue.push({event,listeners}),fallbackData)event.data=fallbackData;else{var customData=getDataFromCustomEvent(nativeEvent);customData!==null&&(event.data=customData)}}}function getNativeBeforeInputChars(domEventName,nativeEvent){switch(domEventName){case"compositionend":return getDataFromCustomEvent(nativeEvent);case"keypress":var which=nativeEvent.which;return which!==SPACEBAR_CODE?null:(hasSpaceKeypress=!0,SPACEBAR_CHAR);case"textInput":var chars=nativeEvent.data;return chars===SPACEBAR_CHAR&&hasSpaceKeypress?null:chars;default:return null}}function getFallbackBeforeInputChars(domEventName,nativeEvent){if(isComposing){if(domEventName==="compositionend"||!canUseCompositionEvent&&isFallbackCompositionEnd(domEventName,nativeEvent)){var chars=getData();return reset(),isComposing=!1,chars}return null}switch(domEventName){case"paste":return null;case"keypress":if(!isKeypressCommand(nativeEvent)){if(nativeEvent.char&&nativeEvent.char.length>1)return nativeEvent.char;if(nativeEvent.which)return String.fromCharCode(nativeEvent.which)}return null;case"compositionend":return useFallbackCompositionData&&!isUsingKoreanIME(nativeEvent)?null:nativeEvent.data;default:return null}}function extractBeforeInputEvent(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget){var chars;if(canUseTextInputEvent?chars=getNativeBeforeInputChars(domEventName,nativeEvent):chars=getFallbackBeforeInputChars(domEventName,nativeEvent),!chars)return null;var listeners=accumulateTwoPhaseListeners(targetInst,"onBeforeInput");if(listeners.length>0){var event=new SyntheticInputEvent("onBeforeInput","beforeinput",null,nativeEvent,nativeEventTarget);dispatchQueue.push({event,listeners}),event.data=chars}}function extractEvents(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags,targetContainer){extractCompositionEvent(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget),extractBeforeInputEvent(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget)}var supportedInputTypes={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 isTextInputElement(elem){var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();return nodeName==="input"?!!supportedInputTypes[elem.type]:nodeName==="textarea"}/**
88
- * Checks if an event is supported in the current execution environment.
89
- *
90
- * NOTE: This will not work correctly for non-generic events such as `change`,
91
- * `reset`, `load`, `error`, and `select`.
92
- *
93
- * Borrows from Modernizr.
94
- *
95
- * @param {string} eventNameSuffix Event name, e.g. "click".
96
- * @return {boolean} True if the event is supported.
97
- * @internal
98
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
99
- */function isEventSupported(eventNameSuffix){if(!canUseDOM)return!1;var eventName="on"+eventNameSuffix,isSupported=eventName in document;if(!isSupported){var element=document.createElement("div");element.setAttribute(eventName,"return;"),isSupported=typeof element[eventName]=="function"}return isSupported}function registerEvents$1(){registerTwoPhaseEvent("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function createAndAccumulateChangeEvent(dispatchQueue,inst,nativeEvent,target){enqueueStateRestore(target);var listeners=accumulateTwoPhaseListeners(inst,"onChange");if(listeners.length>0){var event=new SyntheticEvent("onChange","change",null,nativeEvent,target);dispatchQueue.push({event,listeners})}}var activeElement=null,activeElementInst=null;function shouldUseChangeEvent(elem){var nodeName=elem.nodeName&&elem.nodeName.toLowerCase();return nodeName==="select"||nodeName==="input"&&elem.type==="file"}function manualDispatchChangeEvent(nativeEvent){var dispatchQueue=[];createAndAccumulateChangeEvent(dispatchQueue,activeElementInst,nativeEvent,getEventTarget(nativeEvent)),batchedUpdates(runEventInBatch,dispatchQueue)}function runEventInBatch(dispatchQueue){processDispatchQueue(dispatchQueue,0)}function getInstIfValueChanged(targetInst){var targetNode=getNodeFromInstance(targetInst);if(updateValueIfChanged(targetNode))return targetInst}function getTargetInstForChangeEvent(domEventName,targetInst){if(domEventName==="change")return targetInst}var isInputEventSupported=!1;canUseDOM&&(isInputEventSupported=isEventSupported("input")&&(!document.documentMode||document.documentMode>9));function startWatchingForValueChange(target,targetInst){activeElement=target,activeElementInst=targetInst,activeElement.attachEvent("onpropertychange",handlePropertyChange)}function stopWatchingForValueChange(){activeElement&&(activeElement.detachEvent("onpropertychange",handlePropertyChange),activeElement=null,activeElementInst=null)}function handlePropertyChange(nativeEvent){nativeEvent.propertyName==="value"&&getInstIfValueChanged(activeElementInst)&&manualDispatchChangeEvent(nativeEvent)}function handleEventsForInputEventPolyfill(domEventName,target,targetInst){domEventName==="focusin"?(stopWatchingForValueChange(),startWatchingForValueChange(target,targetInst)):domEventName==="focusout"&&stopWatchingForValueChange()}function getTargetInstForInputEventPolyfill(domEventName,targetInst){if(domEventName==="selectionchange"||domEventName==="keyup"||domEventName==="keydown")return getInstIfValueChanged(activeElementInst)}function shouldUseClickEvent(elem){var nodeName=elem.nodeName;return nodeName&&nodeName.toLowerCase()==="input"&&(elem.type==="checkbox"||elem.type==="radio")}function getTargetInstForClickEvent(domEventName,targetInst){if(domEventName==="click")return getInstIfValueChanged(targetInst)}function getTargetInstForInputOrChangeEvent(domEventName,targetInst){if(domEventName==="input"||domEventName==="change")return getInstIfValueChanged(targetInst)}function handleControlledInputBlur(node){var state=node._wrapperState;!state||!state.controlled||node.type!=="number"||setDefaultValue(node,"number",node.value)}function extractEvents$1(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags,targetContainer){var targetNode=targetInst?getNodeFromInstance(targetInst):window,getTargetInstFunc,handleEventFunc;if(shouldUseChangeEvent(targetNode)?getTargetInstFunc=getTargetInstForChangeEvent:isTextInputElement(targetNode)?isInputEventSupported?getTargetInstFunc=getTargetInstForInputOrChangeEvent:(getTargetInstFunc=getTargetInstForInputEventPolyfill,handleEventFunc=handleEventsForInputEventPolyfill):shouldUseClickEvent(targetNode)&&(getTargetInstFunc=getTargetInstForClickEvent),getTargetInstFunc){var inst=getTargetInstFunc(domEventName,targetInst);if(inst){createAndAccumulateChangeEvent(dispatchQueue,inst,nativeEvent,nativeEventTarget);return}}handleEventFunc&&handleEventFunc(domEventName,targetNode,targetInst),domEventName==="focusout"&&handleControlledInputBlur(targetNode)}function registerEvents$2(){registerDirectEvent("onMouseEnter",["mouseout","mouseover"]),registerDirectEvent("onMouseLeave",["mouseout","mouseover"]),registerDirectEvent("onPointerEnter",["pointerout","pointerover"]),registerDirectEvent("onPointerLeave",["pointerout","pointerover"])}function extractEvents$2(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags,targetContainer){var isOverEvent=domEventName==="mouseover"||domEventName==="pointerover",isOutEvent=domEventName==="mouseout"||domEventName==="pointerout";if(isOverEvent&&!isReplayingEvent(nativeEvent)){var related=nativeEvent.relatedTarget||nativeEvent.fromElement;if(related&&(getClosestInstanceFromNode(related)||isContainerMarkedAsRoot(related)))return}if(!(!isOutEvent&&!isOverEvent)){var win;if(nativeEventTarget.window===nativeEventTarget)win=nativeEventTarget;else{var doc=nativeEventTarget.ownerDocument;doc?win=doc.defaultView||doc.parentWindow:win=window}var from,to;if(isOutEvent){var _related=nativeEvent.relatedTarget||nativeEvent.toElement;if(from=targetInst,to=_related?getClosestInstanceFromNode(_related):null,to!==null){var nearestMounted=getNearestMountedFiber(to);(to!==nearestMounted||to.tag!==HostComponent&&to.tag!==HostText)&&(to=null)}}else from=null,to=targetInst;if(from!==to){var SyntheticEventCtor=SyntheticMouseEvent,leaveEventType="onMouseLeave",enterEventType="onMouseEnter",eventTypePrefix="mouse";(domEventName==="pointerout"||domEventName==="pointerover")&&(SyntheticEventCtor=SyntheticPointerEvent,leaveEventType="onPointerLeave",enterEventType="onPointerEnter",eventTypePrefix="pointer");var fromNode=from==null?win:getNodeFromInstance(from),toNode=to==null?win:getNodeFromInstance(to),leave=new SyntheticEventCtor(leaveEventType,eventTypePrefix+"leave",from,nativeEvent,nativeEventTarget);leave.target=fromNode,leave.relatedTarget=toNode;var enter=null,nativeTargetInst=getClosestInstanceFromNode(nativeEventTarget);if(nativeTargetInst===targetInst){var enterEvent=new SyntheticEventCtor(enterEventType,eventTypePrefix+"enter",to,nativeEvent,nativeEventTarget);enterEvent.target=toNode,enterEvent.relatedTarget=fromNode,enter=enterEvent}accumulateEnterLeaveTwoPhaseListeners(dispatchQueue,leave,enter,from,to)}}}function is(x,y){return x===y&&(x!==0||1/x===1/y)||x!==x&&y!==y}var objectIs=typeof Object.is=="function"?Object.is:is;function shallowEqual(objA,objB){if(objectIs(objA,objB))return!0;if(typeof objA!="object"||objA===null||typeof objB!="object"||objB===null)return!1;var keysA=Object.keys(objA),keysB=Object.keys(objB);if(keysA.length!==keysB.length)return!1;for(var i=0;i<keysA.length;i++){var currentKey=keysA[i];if(!hasOwnProperty.call(objB,currentKey)||!objectIs(objA[currentKey],objB[currentKey]))return!1}return!0}function getLeafNode(node){for(;node&&node.firstChild;)node=node.firstChild;return node}function getSiblingNode(node){for(;node;){if(node.nextSibling)return node.nextSibling;node=node.parentNode}}function getNodeForCharacterOffset(root3,offset){for(var node=getLeafNode(root3),nodeStart=0,nodeEnd=0;node;){if(node.nodeType===TEXT_NODE){if(nodeEnd=nodeStart+node.textContent.length,nodeStart<=offset&&nodeEnd>=offset)return{node,offset:offset-nodeStart};nodeStart=nodeEnd}node=getLeafNode(getSiblingNode(node))}}function getOffsets(outerNode){var ownerDocument=outerNode.ownerDocument,win=ownerDocument&&ownerDocument.defaultView||window,selection=win.getSelection&&win.getSelection();if(!selection||selection.rangeCount===0)return null;var anchorNode=selection.anchorNode,anchorOffset=selection.anchorOffset,focusNode=selection.focusNode,focusOffset=selection.focusOffset;try{anchorNode.nodeType,focusNode.nodeType}catch{return null}return getModernOffsetsFromPoints(outerNode,anchorNode,anchorOffset,focusNode,focusOffset)}function getModernOffsetsFromPoints(outerNode,anchorNode,anchorOffset,focusNode,focusOffset){var length=0,start=-1,end=-1,indexWithinAnchor=0,indexWithinFocus=0,node=outerNode,parentNode=null;outer:for(;;){for(var next=null;node===anchorNode&&(anchorOffset===0||node.nodeType===TEXT_NODE)&&(start=length+anchorOffset),node===focusNode&&(focusOffset===0||node.nodeType===TEXT_NODE)&&(end=length+focusOffset),node.nodeType===TEXT_NODE&&(length+=node.nodeValue.length),(next=node.firstChild)!==null;)parentNode=node,node=next;for(;;){if(node===outerNode)break outer;if(parentNode===anchorNode&&++indexWithinAnchor===anchorOffset&&(start=length),parentNode===focusNode&&++indexWithinFocus===focusOffset&&(end=length),(next=node.nextSibling)!==null)break;node=parentNode,parentNode=node.parentNode}node=next}return start===-1||end===-1?null:{start,end}}function setOffsets(node,offsets){var doc=node.ownerDocument||document,win=doc&&doc.defaultView||window;if(win.getSelection){var selection=win.getSelection(),length=node.textContent.length,start=Math.min(offsets.start,length),end=offsets.end===void 0?start:Math.min(offsets.end,length);if(!selection.extend&&start>end){var temp=end;end=start,start=temp}var startMarker=getNodeForCharacterOffset(node,start),endMarker=getNodeForCharacterOffset(node,end);if(startMarker&&endMarker){if(selection.rangeCount===1&&selection.anchorNode===startMarker.node&&selection.anchorOffset===startMarker.offset&&selection.focusNode===endMarker.node&&selection.focusOffset===endMarker.offset)return;var range=doc.createRange();range.setStart(startMarker.node,startMarker.offset),selection.removeAllRanges(),start>end?(selection.addRange(range),selection.extend(endMarker.node,endMarker.offset)):(range.setEnd(endMarker.node,endMarker.offset),selection.addRange(range))}}}function isTextNode(node){return node&&node.nodeType===TEXT_NODE}function containsNode(outerNode,innerNode){return!outerNode||!innerNode?!1:outerNode===innerNode?!0:isTextNode(outerNode)?!1:isTextNode(innerNode)?containsNode(outerNode,innerNode.parentNode):"contains"in outerNode?outerNode.contains(innerNode):outerNode.compareDocumentPosition?!!(outerNode.compareDocumentPosition(innerNode)&16):!1}function isInDocument(node){return node&&node.ownerDocument&&containsNode(node.ownerDocument.documentElement,node)}function isSameOriginFrame(iframe){try{return typeof iframe.contentWindow.location.href=="string"}catch{return!1}}function getActiveElementDeep(){for(var win=window,element=getActiveElement();element instanceof win.HTMLIFrameElement;){if(isSameOriginFrame(element))win=element.contentWindow;else return element;element=getActiveElement(win.document)}return element}function hasSelectionCapabilities(elem){var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();return nodeName&&(nodeName==="input"&&(elem.type==="text"||elem.type==="search"||elem.type==="tel"||elem.type==="url"||elem.type==="password")||nodeName==="textarea"||elem.contentEditable==="true")}function getSelectionInformation(){var focusedElem=getActiveElementDeep();return{focusedElem,selectionRange:hasSelectionCapabilities(focusedElem)?getSelection(focusedElem):null}}function restoreSelection(priorSelectionInformation){var curFocusedElem=getActiveElementDeep(),priorFocusedElem=priorSelectionInformation.focusedElem,priorSelectionRange=priorSelectionInformation.selectionRange;if(curFocusedElem!==priorFocusedElem&&isInDocument(priorFocusedElem)){priorSelectionRange!==null&&hasSelectionCapabilities(priorFocusedElem)&&setSelection(priorFocusedElem,priorSelectionRange);for(var ancestors=[],ancestor=priorFocusedElem;ancestor=ancestor.parentNode;)ancestor.nodeType===ELEMENT_NODE&&ancestors.push({element:ancestor,left:ancestor.scrollLeft,top:ancestor.scrollTop});typeof priorFocusedElem.focus=="function"&&priorFocusedElem.focus();for(var i=0;i<ancestors.length;i++){var info=ancestors[i];info.element.scrollLeft=info.left,info.element.scrollTop=info.top}}}function getSelection(input){var selection;return"selectionStart"in input?selection={start:input.selectionStart,end:input.selectionEnd}:selection=getOffsets(input),selection||{start:0,end:0}}function setSelection(input,offsets){var start=offsets.start,end=offsets.end;end===void 0&&(end=start),"selectionStart"in input?(input.selectionStart=start,input.selectionEnd=Math.min(end,input.value.length)):setOffsets(input,offsets)}var skipSelectionChangeEvent=canUseDOM&&"documentMode"in document&&document.documentMode<=11;function registerEvents$3(){registerTwoPhaseEvent("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var activeElement$1=null,activeElementInst$1=null,lastSelection=null,mouseDown=!1;function getSelection$1(node){if("selectionStart"in node&&hasSelectionCapabilities(node))return{start:node.selectionStart,end:node.selectionEnd};var win=node.ownerDocument&&node.ownerDocument.defaultView||window,selection=win.getSelection();return{anchorNode:selection.anchorNode,anchorOffset:selection.anchorOffset,focusNode:selection.focusNode,focusOffset:selection.focusOffset}}function getEventTargetDocument(eventTarget){return eventTarget.window===eventTarget?eventTarget.document:eventTarget.nodeType===DOCUMENT_NODE?eventTarget:eventTarget.ownerDocument}function constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget){var doc=getEventTargetDocument(nativeEventTarget);if(!(mouseDown||activeElement$1==null||activeElement$1!==getActiveElement(doc))){var currentSelection=getSelection$1(activeElement$1);if(!lastSelection||!shallowEqual(lastSelection,currentSelection)){lastSelection=currentSelection;var listeners=accumulateTwoPhaseListeners(activeElementInst$1,"onSelect");if(listeners.length>0){var event=new SyntheticEvent("onSelect","select",null,nativeEvent,nativeEventTarget);dispatchQueue.push({event,listeners}),event.target=activeElement$1}}}}function extractEvents$3(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags,targetContainer){var targetNode=targetInst?getNodeFromInstance(targetInst):window;switch(domEventName){case"focusin":(isTextInputElement(targetNode)||targetNode.contentEditable==="true")&&(activeElement$1=targetNode,activeElementInst$1=targetInst,lastSelection=null);break;case"focusout":activeElement$1=null,activeElementInst$1=null,lastSelection=null;break;case"mousedown":mouseDown=!0;break;case"contextmenu":case"mouseup":case"dragend":mouseDown=!1,constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget);break;case"selectionchange":if(skipSelectionChangeEvent)break;case"keydown":case"keyup":constructSelectEvent(dispatchQueue,nativeEvent,nativeEventTarget)}}function makePrefixMap(styleProp,eventName){var prefixes2={};return prefixes2[styleProp.toLowerCase()]=eventName.toLowerCase(),prefixes2["Webkit"+styleProp]="webkit"+eventName,prefixes2["Moz"+styleProp]="moz"+eventName,prefixes2}var vendorPrefixes={animationend:makePrefixMap("Animation","AnimationEnd"),animationiteration:makePrefixMap("Animation","AnimationIteration"),animationstart:makePrefixMap("Animation","AnimationStart"),transitionend:makePrefixMap("Transition","TransitionEnd")},prefixedEventNames={},style={};canUseDOM&&(style=document.createElement("div").style,"AnimationEvent"in window||(delete vendorPrefixes.animationend.animation,delete vendorPrefixes.animationiteration.animation,delete vendorPrefixes.animationstart.animation),"TransitionEvent"in window||delete vendorPrefixes.transitionend.transition);function getVendorPrefixedEventName(eventName){if(prefixedEventNames[eventName])return prefixedEventNames[eventName];if(!vendorPrefixes[eventName])return eventName;var prefixMap=vendorPrefixes[eventName];for(var styleProp in prefixMap)if(prefixMap.hasOwnProperty(styleProp)&&styleProp in style)return prefixedEventNames[eventName]=prefixMap[styleProp];return eventName}var ANIMATION_END=getVendorPrefixedEventName("animationend"),ANIMATION_ITERATION=getVendorPrefixedEventName("animationiteration"),ANIMATION_START=getVendorPrefixedEventName("animationstart"),TRANSITION_END=getVendorPrefixedEventName("transitionend"),topLevelEventsToReactNames=new Map,simpleEventPluginEvents=["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"];function registerSimpleEvent(domEventName,reactName){topLevelEventsToReactNames.set(domEventName,reactName),registerTwoPhaseEvent(reactName,[domEventName])}function registerSimpleEvents(){for(var i=0;i<simpleEventPluginEvents.length;i++){var eventName=simpleEventPluginEvents[i],domEventName=eventName.toLowerCase(),capitalizedEvent=eventName[0].toUpperCase()+eventName.slice(1);registerSimpleEvent(domEventName,"on"+capitalizedEvent)}registerSimpleEvent(ANIMATION_END,"onAnimationEnd"),registerSimpleEvent(ANIMATION_ITERATION,"onAnimationIteration"),registerSimpleEvent(ANIMATION_START,"onAnimationStart"),registerSimpleEvent("dblclick","onDoubleClick"),registerSimpleEvent("focusin","onFocus"),registerSimpleEvent("focusout","onBlur"),registerSimpleEvent(TRANSITION_END,"onTransitionEnd")}function extractEvents$4(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags,targetContainer){var reactName=topLevelEventsToReactNames.get(domEventName);if(reactName!==void 0){var SyntheticEventCtor=SyntheticEvent,reactEventType=domEventName;switch(domEventName){case"keypress":if(getEventCharCode(nativeEvent)===0)return;case"keydown":case"keyup":SyntheticEventCtor=SyntheticKeyboardEvent;break;case"focusin":reactEventType="focus",SyntheticEventCtor=SyntheticFocusEvent;break;case"focusout":reactEventType="blur",SyntheticEventCtor=SyntheticFocusEvent;break;case"beforeblur":case"afterblur":SyntheticEventCtor=SyntheticFocusEvent;break;case"click":if(nativeEvent.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":SyntheticEventCtor=SyntheticMouseEvent;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":SyntheticEventCtor=SyntheticDragEvent;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":SyntheticEventCtor=SyntheticTouchEvent;break;case ANIMATION_END:case ANIMATION_ITERATION:case ANIMATION_START:SyntheticEventCtor=SyntheticAnimationEvent;break;case TRANSITION_END:SyntheticEventCtor=SyntheticTransitionEvent;break;case"scroll":SyntheticEventCtor=SyntheticUIEvent;break;case"wheel":SyntheticEventCtor=SyntheticWheelEvent;break;case"copy":case"cut":case"paste":SyntheticEventCtor=SyntheticClipboardEvent;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":SyntheticEventCtor=SyntheticPointerEvent;break}var inCapturePhase=(eventSystemFlags&IS_CAPTURE_PHASE)!==0;{var accumulateTargetOnly=!inCapturePhase&&domEventName==="scroll",_listeners=accumulateSinglePhaseListeners(targetInst,reactName,nativeEvent.type,inCapturePhase,accumulateTargetOnly);if(_listeners.length>0){var _event=new SyntheticEventCtor(reactName,reactEventType,null,nativeEvent,nativeEventTarget);dispatchQueue.push({event:_event,listeners:_listeners})}}}}registerSimpleEvents(),registerEvents$2(),registerEvents$1(),registerEvents$3(),registerEvents();function extractEvents$5(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags,targetContainer){extractEvents$4(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags);var shouldProcessPolyfillPlugins=(eventSystemFlags&SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS)===0;shouldProcessPolyfillPlugins&&(extractEvents$2(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget),extractEvents$1(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget),extractEvents$3(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget),extractEvents(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget))}var mediaEventTypes=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],nonDelegatedEvents=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(mediaEventTypes));function executeDispatch(event,listener,currentTarget){var type=event.type||"unknown-event";event.currentTarget=currentTarget,invokeGuardedCallbackAndCatchFirstError(type,listener,void 0,event),event.currentTarget=null}function processDispatchQueueItemsInOrder(event,dispatchListeners,inCapturePhase){var previousInstance;if(inCapturePhase)for(var i=dispatchListeners.length-1;i>=0;i--){var _dispatchListeners$i=dispatchListeners[i],instance=_dispatchListeners$i.instance,currentTarget=_dispatchListeners$i.currentTarget,listener=_dispatchListeners$i.listener;if(instance!==previousInstance&&event.isPropagationStopped())return;executeDispatch(event,listener,currentTarget),previousInstance=instance}else for(var _i=0;_i<dispatchListeners.length;_i++){var _dispatchListeners$_i=dispatchListeners[_i],_instance=_dispatchListeners$_i.instance,_currentTarget=_dispatchListeners$_i.currentTarget,_listener=_dispatchListeners$_i.listener;if(_instance!==previousInstance&&event.isPropagationStopped())return;executeDispatch(event,_listener,_currentTarget),previousInstance=_instance}}function processDispatchQueue(dispatchQueue,eventSystemFlags){for(var inCapturePhase=(eventSystemFlags&IS_CAPTURE_PHASE)!==0,i=0;i<dispatchQueue.length;i++){var _dispatchQueue$i=dispatchQueue[i],event=_dispatchQueue$i.event,listeners=_dispatchQueue$i.listeners;processDispatchQueueItemsInOrder(event,listeners,inCapturePhase)}rethrowCaughtError()}function dispatchEventsForPlugins(domEventName,eventSystemFlags,nativeEvent,targetInst,targetContainer){var nativeEventTarget=getEventTarget(nativeEvent),dispatchQueue=[];extractEvents$5(dispatchQueue,domEventName,targetInst,nativeEvent,nativeEventTarget,eventSystemFlags),processDispatchQueue(dispatchQueue,eventSystemFlags)}function listenToNonDelegatedEvent(domEventName,targetElement){nonDelegatedEvents.has(domEventName)||error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',domEventName);var isCapturePhaseListener=!1,listenerSet=getEventListenerSet(targetElement),listenerSetKey=getListenerSetKey(domEventName);listenerSet.has(listenerSetKey)||(addTrappedEventListener(targetElement,domEventName,IS_NON_DELEGATED,isCapturePhaseListener),listenerSet.add(listenerSetKey))}function listenToNativeEvent(domEventName,isCapturePhaseListener,target){nonDelegatedEvents.has(domEventName)&&!isCapturePhaseListener&&error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',domEventName);var eventSystemFlags=0;isCapturePhaseListener&&(eventSystemFlags|=IS_CAPTURE_PHASE),addTrappedEventListener(target,domEventName,eventSystemFlags,isCapturePhaseListener)}var listeningMarker="_reactListening"+Math.random().toString(36).slice(2);function listenToAllSupportedEvents(rootContainerElement){if(!rootContainerElement[listeningMarker]){rootContainerElement[listeningMarker]=!0,allNativeEvents.forEach(function(domEventName){domEventName!=="selectionchange"&&(nonDelegatedEvents.has(domEventName)||listenToNativeEvent(domEventName,!1,rootContainerElement),listenToNativeEvent(domEventName,!0,rootContainerElement))});var ownerDocument=rootContainerElement.nodeType===DOCUMENT_NODE?rootContainerElement:rootContainerElement.ownerDocument;ownerDocument!==null&&(ownerDocument[listeningMarker]||(ownerDocument[listeningMarker]=!0,listenToNativeEvent("selectionchange",!1,ownerDocument)))}}function addTrappedEventListener(targetContainer,domEventName,eventSystemFlags,isCapturePhaseListener,isDeferredListenerForLegacyFBSupport){var listener=createEventListenerWrapperWithPriority(targetContainer,domEventName,eventSystemFlags),isPassiveListener=void 0;passiveBrowserEventsSupported&&(domEventName==="touchstart"||domEventName==="touchmove"||domEventName==="wheel")&&(isPassiveListener=!0),targetContainer=targetContainer,isCapturePhaseListener?isPassiveListener!==void 0?addEventCaptureListenerWithPassiveFlag(targetContainer,domEventName,listener,isPassiveListener):addEventCaptureListener(targetContainer,domEventName,listener):isPassiveListener!==void 0?addEventBubbleListenerWithPassiveFlag(targetContainer,domEventName,listener,isPassiveListener):addEventBubbleListener(targetContainer,domEventName,listener)}function isMatchingRootContainer(grandContainer,targetContainer){return grandContainer===targetContainer||grandContainer.nodeType===COMMENT_NODE&&grandContainer.parentNode===targetContainer}function dispatchEventForPluginEventSystem(domEventName,eventSystemFlags,nativeEvent,targetInst,targetContainer){var ancestorInst=targetInst;if(!(eventSystemFlags&IS_EVENT_HANDLE_NON_MANAGED_NODE)&&!(eventSystemFlags&IS_NON_DELEGATED)){var targetContainerNode=targetContainer;if(targetInst!==null){var node=targetInst;mainLoop:for(;;){if(node===null)return;var nodeTag=node.tag;if(nodeTag===HostRoot||nodeTag===HostPortal){var container=node.stateNode.containerInfo;if(isMatchingRootContainer(container,targetContainerNode))break;if(nodeTag===HostPortal)for(var grandNode=node.return;grandNode!==null;){var grandTag=grandNode.tag;if(grandTag===HostRoot||grandTag===HostPortal){var grandContainer=grandNode.stateNode.containerInfo;if(isMatchingRootContainer(grandContainer,targetContainerNode))return}grandNode=grandNode.return}for(;container!==null;){var parentNode=getClosestInstanceFromNode(container);if(parentNode===null)return;var parentTag=parentNode.tag;if(parentTag===HostComponent||parentTag===HostText){node=ancestorInst=parentNode;continue mainLoop}container=container.parentNode}}node=node.return}}}batchedUpdates(function(){return dispatchEventsForPlugins(domEventName,eventSystemFlags,nativeEvent,ancestorInst)})}function createDispatchListener(instance,listener,currentTarget){return{instance,listener,currentTarget}}function accumulateSinglePhaseListeners(targetFiber,reactName,nativeEventType,inCapturePhase,accumulateTargetOnly,nativeEvent){for(var captureName=reactName!==null?reactName+"Capture":null,reactEventName=inCapturePhase?captureName:reactName,listeners=[],instance=targetFiber,lastHostComponent=null;instance!==null;){var _instance2=instance,stateNode=_instance2.stateNode,tag=_instance2.tag;if(tag===HostComponent&&stateNode!==null&&(lastHostComponent=stateNode,reactEventName!==null)){var listener=getListener(instance,reactEventName);listener!=null&&listeners.push(createDispatchListener(instance,listener,lastHostComponent))}if(accumulateTargetOnly)break;instance=instance.return}return listeners}function accumulateTwoPhaseListeners(targetFiber,reactName){for(var captureName=reactName+"Capture",listeners=[],instance=targetFiber;instance!==null;){var _instance3=instance,stateNode=_instance3.stateNode,tag=_instance3.tag;if(tag===HostComponent&&stateNode!==null){var currentTarget=stateNode,captureListener=getListener(instance,captureName);captureListener!=null&&listeners.unshift(createDispatchListener(instance,captureListener,currentTarget));var bubbleListener=getListener(instance,reactName);bubbleListener!=null&&listeners.push(createDispatchListener(instance,bubbleListener,currentTarget))}instance=instance.return}return listeners}function getParent(inst){if(inst===null)return null;do inst=inst.return;while(inst&&inst.tag!==HostComponent);return inst||null}function getLowestCommonAncestor(instA,instB){for(var nodeA=instA,nodeB=instB,depthA=0,tempA=nodeA;tempA;tempA=getParent(tempA))depthA++;for(var depthB=0,tempB=nodeB;tempB;tempB=getParent(tempB))depthB++;for(;depthA-depthB>0;)nodeA=getParent(nodeA),depthA--;for(;depthB-depthA>0;)nodeB=getParent(nodeB),depthB--;for(var depth=depthA;depth--;){if(nodeA===nodeB||nodeB!==null&&nodeA===nodeB.alternate)return nodeA;nodeA=getParent(nodeA),nodeB=getParent(nodeB)}return null}function accumulateEnterLeaveListenersForEvent(dispatchQueue,event,target,common2,inCapturePhase){for(var registrationName=event._reactName,listeners=[],instance=target;instance!==null&&instance!==common2;){var _instance4=instance,alternate=_instance4.alternate,stateNode=_instance4.stateNode,tag=_instance4.tag;if(alternate!==null&&alternate===common2)break;if(tag===HostComponent&&stateNode!==null){var currentTarget=stateNode;if(inCapturePhase){var captureListener=getListener(instance,registrationName);captureListener!=null&&listeners.unshift(createDispatchListener(instance,captureListener,currentTarget))}else if(!inCapturePhase){var bubbleListener=getListener(instance,registrationName);bubbleListener!=null&&listeners.push(createDispatchListener(instance,bubbleListener,currentTarget))}}instance=instance.return}listeners.length!==0&&dispatchQueue.push({event,listeners})}function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue,leaveEvent,enterEvent,from,to){var common2=from&&to?getLowestCommonAncestor(from,to):null;from!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,leaveEvent,from,common2,!1),to!==null&&enterEvent!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,enterEvent,to,common2,!0)}function getListenerSetKey(domEventName,capture){return domEventName+"__bubble"}var didWarnInvalidHydration=!1,DANGEROUSLY_SET_INNER_HTML="dangerouslySetInnerHTML",SUPPRESS_CONTENT_EDITABLE_WARNING="suppressContentEditableWarning",SUPPRESS_HYDRATION_WARNING="suppressHydrationWarning",AUTOFOCUS="autoFocus",CHILDREN="children",STYLE="style",HTML$1="__html",warnedUnknownTags,validatePropertiesInDevelopment,warnForPropDifference,warnForExtraAttributes,warnForInvalidEventListener,canDiffStyleForHydrationWarning,normalizeHTML;warnedUnknownTags={dialog:!0,webview:!0},validatePropertiesInDevelopment=function(type,props){validateProperties(type,props),validateProperties$1(type,props),validateProperties$2(type,props,{registrationNameDependencies,possibleRegistrationNames})},canDiffStyleForHydrationWarning=canUseDOM&&!document.documentMode,warnForPropDifference=function(propName,serverValue,clientValue){if(!didWarnInvalidHydration){var normalizedClientValue=normalizeMarkupForTextOrAttribute(clientValue),normalizedServerValue=normalizeMarkupForTextOrAttribute(serverValue);normalizedServerValue!==normalizedClientValue&&(didWarnInvalidHydration=!0,error("Prop `%s` did not match. Server: %s Client: %s",propName,JSON.stringify(normalizedServerValue),JSON.stringify(normalizedClientValue)))}},warnForExtraAttributes=function(attributeNames){if(!didWarnInvalidHydration){didWarnInvalidHydration=!0;var names=[];attributeNames.forEach(function(name){names.push(name)}),error("Extra attributes from the server: %s",names)}},warnForInvalidEventListener=function(registrationName,listener){listener===!1?error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",registrationName,registrationName,registrationName):error("Expected `%s` listener to be a function, instead got a value of `%s` type.",registrationName,typeof listener)},normalizeHTML=function(parent,html){var testElement=parent.namespaceURI===HTML_NAMESPACE?parent.ownerDocument.createElement(parent.tagName):parent.ownerDocument.createElementNS(parent.namespaceURI,parent.tagName);return testElement.innerHTML=html,testElement.innerHTML};var NORMALIZE_NEWLINES_REGEX=/\r\n?/g,NORMALIZE_NULL_AND_REPLACEMENT_REGEX=/\u0000|\uFFFD/g;function normalizeMarkupForTextOrAttribute(markup){checkHtmlStringCoercion(markup);var markupString=typeof markup=="string"?markup:""+markup;return markupString.replace(NORMALIZE_NEWLINES_REGEX,`
100
- `).replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX,"")}function checkForUnmatchedText(serverText,clientText,isConcurrentMode,shouldWarnDev){var normalizedClientText=normalizeMarkupForTextOrAttribute(clientText),normalizedServerText=normalizeMarkupForTextOrAttribute(serverText);if(normalizedServerText!==normalizedClientText&&(shouldWarnDev&&(didWarnInvalidHydration||(didWarnInvalidHydration=!0,error('Text content did not match. Server: "%s" Client: "%s"',normalizedServerText,normalizedClientText))),isConcurrentMode&&enableClientRenderFallbackOnTextMismatch))throw new Error("Text content does not match server-rendered HTML.")}function getOwnerDocumentFromRootContainer(rootContainerElement){return rootContainerElement.nodeType===DOCUMENT_NODE?rootContainerElement:rootContainerElement.ownerDocument}function noop(){}function trapClickOnNonInteractiveElement(node){node.onclick=noop}function setInitialDOMProperties(tag,domElement,rootContainerElement,nextProps,isCustomComponentTag){for(var propKey in nextProps)if(nextProps.hasOwnProperty(propKey)){var nextProp=nextProps[propKey];if(propKey===STYLE)nextProp&&Object.freeze(nextProp),setValueForStyles(domElement,nextProp);else if(propKey===DANGEROUSLY_SET_INNER_HTML){var nextHtml=nextProp?nextProp[HTML$1]:void 0;nextHtml!=null&&setInnerHTML(domElement,nextHtml)}else if(propKey===CHILDREN)if(typeof nextProp=="string"){var canSetTextContent=tag!=="textarea"||nextProp!=="";canSetTextContent&&setTextContent(domElement,nextProp)}else typeof nextProp=="number"&&setTextContent(domElement,""+nextProp);else propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING||propKey===AUTOFOCUS||(registrationNameDependencies.hasOwnProperty(propKey)?nextProp!=null&&(typeof nextProp!="function"&&warnForInvalidEventListener(propKey,nextProp),propKey==="onScroll"&&listenToNonDelegatedEvent("scroll",domElement)):nextProp!=null&&setValueForProperty(domElement,propKey,nextProp,isCustomComponentTag))}}function updateDOMProperties(domElement,updatePayload,wasCustomComponentTag,isCustomComponentTag){for(var i=0;i<updatePayload.length;i+=2){var propKey=updatePayload[i],propValue=updatePayload[i+1];propKey===STYLE?setValueForStyles(domElement,propValue):propKey===DANGEROUSLY_SET_INNER_HTML?setInnerHTML(domElement,propValue):propKey===CHILDREN?setTextContent(domElement,propValue):setValueForProperty(domElement,propKey,propValue,isCustomComponentTag)}}function createElement(type,props,rootContainerElement,parentNamespace){var isCustomComponentTag,ownerDocument=getOwnerDocumentFromRootContainer(rootContainerElement),domElement,namespaceURI=parentNamespace;if(namespaceURI===HTML_NAMESPACE&&(namespaceURI=getIntrinsicNamespace(type)),namespaceURI===HTML_NAMESPACE){if(isCustomComponentTag=isCustomComponent(type,props),!isCustomComponentTag&&type!==type.toLowerCase()&&error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",type),type==="script"){var div=ownerDocument.createElement("div");div.innerHTML="<script><\/script>";var firstChild=div.firstChild;domElement=div.removeChild(firstChild)}else if(typeof props.is=="string")domElement=ownerDocument.createElement(type,{is:props.is});else if(domElement=ownerDocument.createElement(type),type==="select"){var node=domElement;props.multiple?node.multiple=!0:props.size&&(node.size=props.size)}}else domElement=ownerDocument.createElementNS(namespaceURI,type);return namespaceURI===HTML_NAMESPACE&&!isCustomComponentTag&&Object.prototype.toString.call(domElement)==="[object HTMLUnknownElement]"&&!hasOwnProperty.call(warnedUnknownTags,type)&&(warnedUnknownTags[type]=!0,error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",type)),domElement}function createTextNode(text,rootContainerElement){return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text)}function setInitialProperties(domElement,tag,rawProps,rootContainerElement){var isCustomComponentTag=isCustomComponent(tag,rawProps);validatePropertiesInDevelopment(tag,rawProps);var props;switch(tag){case"dialog":listenToNonDelegatedEvent("cancel",domElement),listenToNonDelegatedEvent("close",domElement),props=rawProps;break;case"iframe":case"object":case"embed":listenToNonDelegatedEvent("load",domElement),props=rawProps;break;case"video":case"audio":for(var i=0;i<mediaEventTypes.length;i++)listenToNonDelegatedEvent(mediaEventTypes[i],domElement);props=rawProps;break;case"source":listenToNonDelegatedEvent("error",domElement),props=rawProps;break;case"img":case"image":case"link":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement),props=rawProps;break;case"details":listenToNonDelegatedEvent("toggle",domElement),props=rawProps;break;case"input":initWrapperState(domElement,rawProps),props=getHostProps(domElement,rawProps),listenToNonDelegatedEvent("invalid",domElement);break;case"option":validateProps(domElement,rawProps),props=rawProps;break;case"select":initWrapperState$1(domElement,rawProps),props=getHostProps$1(domElement,rawProps),listenToNonDelegatedEvent("invalid",domElement);break;case"textarea":initWrapperState$2(domElement,rawProps),props=getHostProps$2(domElement,rawProps),listenToNonDelegatedEvent("invalid",domElement);break;default:props=rawProps}switch(assertValidProps(tag,props),setInitialDOMProperties(tag,domElement,rootContainerElement,props,isCustomComponentTag),tag){case"input":track(domElement),postMountWrapper(domElement,rawProps,!1);break;case"textarea":track(domElement),postMountWrapper$3(domElement);break;case"option":postMountWrapper$1(domElement,rawProps);break;case"select":postMountWrapper$2(domElement,rawProps);break;default:typeof props.onClick=="function"&&trapClickOnNonInteractiveElement(domElement);break}}function diffProperties(domElement,tag,lastRawProps,nextRawProps,rootContainerElement){validatePropertiesInDevelopment(tag,nextRawProps);var updatePayload=null,lastProps,nextProps;switch(tag){case"input":lastProps=getHostProps(domElement,lastRawProps),nextProps=getHostProps(domElement,nextRawProps),updatePayload=[];break;case"select":lastProps=getHostProps$1(domElement,lastRawProps),nextProps=getHostProps$1(domElement,nextRawProps),updatePayload=[];break;case"textarea":lastProps=getHostProps$2(domElement,lastRawProps),nextProps=getHostProps$2(domElement,nextRawProps),updatePayload=[];break;default:lastProps=lastRawProps,nextProps=nextRawProps,typeof lastProps.onClick!="function"&&typeof nextProps.onClick=="function"&&trapClickOnNonInteractiveElement(domElement);break}assertValidProps(tag,nextProps);var propKey,styleName,styleUpdates=null;for(propKey in lastProps)if(!(nextProps.hasOwnProperty(propKey)||!lastProps.hasOwnProperty(propKey)||lastProps[propKey]==null))if(propKey===STYLE){var lastStyle=lastProps[propKey];for(styleName in lastStyle)lastStyle.hasOwnProperty(styleName)&&(styleUpdates||(styleUpdates={}),styleUpdates[styleName]="")}else propKey===DANGEROUSLY_SET_INNER_HTML||propKey===CHILDREN||propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING||propKey===AUTOFOCUS||(registrationNameDependencies.hasOwnProperty(propKey)?updatePayload||(updatePayload=[]):(updatePayload=updatePayload||[]).push(propKey,null));for(propKey in nextProps){var nextProp=nextProps[propKey],lastProp=lastProps!=null?lastProps[propKey]:void 0;if(!(!nextProps.hasOwnProperty(propKey)||nextProp===lastProp||nextProp==null&&lastProp==null))if(propKey===STYLE)if(nextProp&&Object.freeze(nextProp),lastProp){for(styleName in lastProp)lastProp.hasOwnProperty(styleName)&&(!nextProp||!nextProp.hasOwnProperty(styleName))&&(styleUpdates||(styleUpdates={}),styleUpdates[styleName]="");for(styleName in nextProp)nextProp.hasOwnProperty(styleName)&&lastProp[styleName]!==nextProp[styleName]&&(styleUpdates||(styleUpdates={}),styleUpdates[styleName]=nextProp[styleName])}else styleUpdates||(updatePayload||(updatePayload=[]),updatePayload.push(propKey,styleUpdates)),styleUpdates=nextProp;else if(propKey===DANGEROUSLY_SET_INNER_HTML){var nextHtml=nextProp?nextProp[HTML$1]:void 0,lastHtml=lastProp?lastProp[HTML$1]:void 0;nextHtml!=null&&lastHtml!==nextHtml&&(updatePayload=updatePayload||[]).push(propKey,nextHtml)}else propKey===CHILDREN?(typeof nextProp=="string"||typeof nextProp=="number")&&(updatePayload=updatePayload||[]).push(propKey,""+nextProp):propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING||(registrationNameDependencies.hasOwnProperty(propKey)?(nextProp!=null&&(typeof nextProp!="function"&&warnForInvalidEventListener(propKey,nextProp),propKey==="onScroll"&&listenToNonDelegatedEvent("scroll",domElement)),!updatePayload&&lastProp!==nextProp&&(updatePayload=[])):(updatePayload=updatePayload||[]).push(propKey,nextProp))}return styleUpdates&&(validateShorthandPropertyCollisionInDev(styleUpdates,nextProps[STYLE]),(updatePayload=updatePayload||[]).push(STYLE,styleUpdates)),updatePayload}function updateProperties(domElement,updatePayload,tag,lastRawProps,nextRawProps){tag==="input"&&nextRawProps.type==="radio"&&nextRawProps.name!=null&&updateChecked(domElement,nextRawProps);var wasCustomComponentTag=isCustomComponent(tag,lastRawProps),isCustomComponentTag=isCustomComponent(tag,nextRawProps);switch(updateDOMProperties(domElement,updatePayload,wasCustomComponentTag,isCustomComponentTag),tag){case"input":updateWrapper(domElement,nextRawProps);break;case"textarea":updateWrapper$1(domElement,nextRawProps);break;case"select":postUpdateWrapper(domElement,nextRawProps);break}}function getPossibleStandardName(propName){{var lowerCasedName=propName.toLowerCase();return possibleStandardNames.hasOwnProperty(lowerCasedName)&&possibleStandardNames[lowerCasedName]||null}}function diffHydratedProperties(domElement,tag,rawProps,parentNamespace,rootContainerElement,isConcurrentMode,shouldWarnDev){var isCustomComponentTag,extraAttributeNames;switch(isCustomComponentTag=isCustomComponent(tag,rawProps),validatePropertiesInDevelopment(tag,rawProps),tag){case"dialog":listenToNonDelegatedEvent("cancel",domElement),listenToNonDelegatedEvent("close",domElement);break;case"iframe":case"object":case"embed":listenToNonDelegatedEvent("load",domElement);break;case"video":case"audio":for(var i=0;i<mediaEventTypes.length;i++)listenToNonDelegatedEvent(mediaEventTypes[i],domElement);break;case"source":listenToNonDelegatedEvent("error",domElement);break;case"img":case"image":case"link":listenToNonDelegatedEvent("error",domElement),listenToNonDelegatedEvent("load",domElement);break;case"details":listenToNonDelegatedEvent("toggle",domElement);break;case"input":initWrapperState(domElement,rawProps),listenToNonDelegatedEvent("invalid",domElement);break;case"option":validateProps(domElement,rawProps);break;case"select":initWrapperState$1(domElement,rawProps),listenToNonDelegatedEvent("invalid",domElement);break;case"textarea":initWrapperState$2(domElement,rawProps),listenToNonDelegatedEvent("invalid",domElement);break}assertValidProps(tag,rawProps);{extraAttributeNames=new Set;for(var attributes=domElement.attributes,_i=0;_i<attributes.length;_i++){var name=attributes[_i].name.toLowerCase();switch(name){case"value":break;case"checked":break;case"selected":break;default:extraAttributeNames.add(attributes[_i].name)}}}var updatePayload=null;for(var propKey in rawProps)if(rawProps.hasOwnProperty(propKey)){var nextProp=rawProps[propKey];if(propKey===CHILDREN)typeof nextProp=="string"?domElement.textContent!==nextProp&&(rawProps[SUPPRESS_HYDRATION_WARNING]!==!0&&checkForUnmatchedText(domElement.textContent,nextProp,isConcurrentMode,shouldWarnDev),updatePayload=[CHILDREN,nextProp]):typeof nextProp=="number"&&domElement.textContent!==""+nextProp&&(rawProps[SUPPRESS_HYDRATION_WARNING]!==!0&&checkForUnmatchedText(domElement.textContent,nextProp,isConcurrentMode,shouldWarnDev),updatePayload=[CHILDREN,""+nextProp]);else if(registrationNameDependencies.hasOwnProperty(propKey))nextProp!=null&&(typeof nextProp!="function"&&warnForInvalidEventListener(propKey,nextProp),propKey==="onScroll"&&listenToNonDelegatedEvent("scroll",domElement));else if(shouldWarnDev&&typeof isCustomComponentTag=="boolean"){var serverValue=void 0,propertyInfo=getPropertyInfo(propKey);if(rawProps[SUPPRESS_HYDRATION_WARNING]!==!0){if(!(propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING||propKey==="value"||propKey==="checked"||propKey==="selected")){if(propKey===DANGEROUSLY_SET_INNER_HTML){var serverHTML=domElement.innerHTML,nextHtml=nextProp?nextProp[HTML$1]:void 0;if(nextHtml!=null){var expectedHTML=normalizeHTML(domElement,nextHtml);expectedHTML!==serverHTML&&warnForPropDifference(propKey,serverHTML,expectedHTML)}}else if(propKey===STYLE){if(extraAttributeNames.delete(propKey),canDiffStyleForHydrationWarning){var expectedStyle=createDangerousStringForStyles(nextProp);serverValue=domElement.getAttribute("style"),expectedStyle!==serverValue&&warnForPropDifference(propKey,serverValue,expectedStyle)}}else if(isCustomComponentTag)extraAttributeNames.delete(propKey.toLowerCase()),serverValue=getValueForAttribute(domElement,propKey,nextProp),nextProp!==serverValue&&warnForPropDifference(propKey,serverValue,nextProp);else if(!shouldIgnoreAttribute(propKey,propertyInfo,isCustomComponentTag)&&!shouldRemoveAttribute(propKey,nextProp,propertyInfo,isCustomComponentTag)){var isMismatchDueToBadCasing=!1;if(propertyInfo!==null)extraAttributeNames.delete(propertyInfo.attributeName),serverValue=getValueForProperty(domElement,propKey,nextProp,propertyInfo);else{var ownNamespace=parentNamespace;if(ownNamespace===HTML_NAMESPACE&&(ownNamespace=getIntrinsicNamespace(tag)),ownNamespace===HTML_NAMESPACE)extraAttributeNames.delete(propKey.toLowerCase());else{var standardName=getPossibleStandardName(propKey);standardName!==null&&standardName!==propKey&&(isMismatchDueToBadCasing=!0,extraAttributeNames.delete(standardName)),extraAttributeNames.delete(propKey)}serverValue=getValueForAttribute(domElement,propKey,nextProp)}var dontWarnCustomElement=enableCustomElementPropertySupport;!dontWarnCustomElement&&nextProp!==serverValue&&!isMismatchDueToBadCasing&&warnForPropDifference(propKey,serverValue,nextProp)}}}}}switch(shouldWarnDev&&extraAttributeNames.size>0&&rawProps[SUPPRESS_HYDRATION_WARNING]!==!0&&warnForExtraAttributes(extraAttributeNames),tag){case"input":track(domElement),postMountWrapper(domElement,rawProps,!0);break;case"textarea":track(domElement),postMountWrapper$3(domElement);break;case"select":case"option":break;default:typeof rawProps.onClick=="function"&&trapClickOnNonInteractiveElement(domElement);break}return updatePayload}function diffHydratedText(textNode,text,isConcurrentMode){var isDifferent=textNode.nodeValue!==text;return isDifferent}function warnForDeletedHydratableElement(parentNode,child){{if(didWarnInvalidHydration)return;didWarnInvalidHydration=!0,error("Did not expect server HTML to contain a <%s> in <%s>.",child.nodeName.toLowerCase(),parentNode.nodeName.toLowerCase())}}function warnForDeletedHydratableText(parentNode,child){{if(didWarnInvalidHydration)return;didWarnInvalidHydration=!0,error('Did not expect server HTML to contain the text node "%s" in <%s>.',child.nodeValue,parentNode.nodeName.toLowerCase())}}function warnForInsertedHydratedElement(parentNode,tag,props){{if(didWarnInvalidHydration)return;didWarnInvalidHydration=!0,error("Expected server HTML to contain a matching <%s> in <%s>.",tag,parentNode.nodeName.toLowerCase())}}function warnForInsertedHydratedText(parentNode,text){{if(text===""||didWarnInvalidHydration)return;didWarnInvalidHydration=!0,error('Expected server HTML to contain a matching text node for "%s" in <%s>.',text,parentNode.nodeName.toLowerCase())}}function restoreControlledState$3(domElement,tag,props){switch(tag){case"input":restoreControlledState(domElement,props);return;case"textarea":restoreControlledState$2(domElement,props);return;case"select":restoreControlledState$1(domElement,props);return}}var validateDOMNesting=function(){},updatedAncestorInfo=function(){};{var specialTags=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],inScopeTags=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],buttonScopeTags=inScopeTags.concat(["button"]),impliedEndTags=["dd","dt","li","option","optgroup","p","rp","rt"],emptyAncestorInfo={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};updatedAncestorInfo=function(oldInfo,tag){var ancestorInfo=assign({},oldInfo||emptyAncestorInfo),info={tag};return inScopeTags.indexOf(tag)!==-1&&(ancestorInfo.aTagInScope=null,ancestorInfo.buttonTagInScope=null,ancestorInfo.nobrTagInScope=null),buttonScopeTags.indexOf(tag)!==-1&&(ancestorInfo.pTagInButtonScope=null),specialTags.indexOf(tag)!==-1&&tag!=="address"&&tag!=="div"&&tag!=="p"&&(ancestorInfo.listItemTagAutoclosing=null,ancestorInfo.dlItemTagAutoclosing=null),ancestorInfo.current=info,tag==="form"&&(ancestorInfo.formTag=info),tag==="a"&&(ancestorInfo.aTagInScope=info),tag==="button"&&(ancestorInfo.buttonTagInScope=info),tag==="nobr"&&(ancestorInfo.nobrTagInScope=info),tag==="p"&&(ancestorInfo.pTagInButtonScope=info),tag==="li"&&(ancestorInfo.listItemTagAutoclosing=info),(tag==="dd"||tag==="dt")&&(ancestorInfo.dlItemTagAutoclosing=info),ancestorInfo};var isTagValidWithParent=function(tag,parentTag){switch(parentTag){case"select":return tag==="option"||tag==="optgroup"||tag==="#text";case"optgroup":return tag==="option"||tag==="#text";case"option":return tag==="#text";case"tr":return tag==="th"||tag==="td"||tag==="style"||tag==="script"||tag==="template";case"tbody":case"thead":case"tfoot":return tag==="tr"||tag==="style"||tag==="script"||tag==="template";case"colgroup":return tag==="col"||tag==="template";case"table":return tag==="caption"||tag==="colgroup"||tag==="tbody"||tag==="tfoot"||tag==="thead"||tag==="style"||tag==="script"||tag==="template";case"head":return tag==="base"||tag==="basefont"||tag==="bgsound"||tag==="link"||tag==="meta"||tag==="title"||tag==="noscript"||tag==="noframes"||tag==="style"||tag==="script"||tag==="template";case"html":return tag==="head"||tag==="body"||tag==="frameset";case"frameset":return tag==="frame";case"#document":return tag==="html"}switch(tag){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return parentTag!=="h1"&&parentTag!=="h2"&&parentTag!=="h3"&&parentTag!=="h4"&&parentTag!=="h5"&&parentTag!=="h6";case"rp":case"rt":return impliedEndTags.indexOf(parentTag)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return parentTag==null}return!0},findInvalidAncestorForTag=function(tag,ancestorInfo){switch(tag){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return ancestorInfo.pTagInButtonScope;case"form":return ancestorInfo.formTag||ancestorInfo.pTagInButtonScope;case"li":return ancestorInfo.listItemTagAutoclosing;case"dd":case"dt":return ancestorInfo.dlItemTagAutoclosing;case"button":return ancestorInfo.buttonTagInScope;case"a":return ancestorInfo.aTagInScope;case"nobr":return ancestorInfo.nobrTagInScope}return null},didWarn$1={};validateDOMNesting=function(childTag,childText,ancestorInfo){ancestorInfo=ancestorInfo||emptyAncestorInfo;var parentInfo=ancestorInfo.current,parentTag=parentInfo&&parentInfo.tag;childText!=null&&(childTag!=null&&error("validateDOMNesting: when childText is passed, childTag should be null"),childTag="#text");var invalidParent=isTagValidWithParent(childTag,parentTag)?null:parentInfo,invalidAncestor=invalidParent?null:findInvalidAncestorForTag(childTag,ancestorInfo),invalidParentOrAncestor=invalidParent||invalidAncestor;if(invalidParentOrAncestor){var ancestorTag=invalidParentOrAncestor.tag,warnKey=!!invalidParent+"|"+childTag+"|"+ancestorTag;if(!didWarn$1[warnKey]){didWarn$1[warnKey]=!0;var tagDisplayName=childTag,whitespaceInfo="";if(childTag==="#text"?/\S/.test(childText)?tagDisplayName="Text nodes":(tagDisplayName="Whitespace text nodes",whitespaceInfo=" Make sure you don't have any extra whitespace between tags on each line of your source code."):tagDisplayName="<"+childTag+">",invalidParent){var info="";ancestorTag==="table"&&childTag==="tr"&&(info+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),error("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",tagDisplayName,ancestorTag,whitespaceInfo,info)}else error("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",tagDisplayName,ancestorTag)}}}}var SUPPRESS_HYDRATION_WARNING$1="suppressHydrationWarning",SUSPENSE_START_DATA="$",SUSPENSE_END_DATA="/$",SUSPENSE_PENDING_START_DATA="$?",SUSPENSE_FALLBACK_START_DATA="$!",STYLE$1="style",eventsEnabled=null,selectionInformation=null;function getRootHostContext(rootContainerInstance){var type,namespace,nodeType=rootContainerInstance.nodeType;switch(nodeType){case DOCUMENT_NODE:case DOCUMENT_FRAGMENT_NODE:{type=nodeType===DOCUMENT_NODE?"#document":"#fragment";var root3=rootContainerInstance.documentElement;namespace=root3?root3.namespaceURI:getChildNamespace(null,"");break}default:{var container=nodeType===COMMENT_NODE?rootContainerInstance.parentNode:rootContainerInstance,ownNamespace=container.namespaceURI||null;type=container.tagName,namespace=getChildNamespace(ownNamespace,type);break}}{var validatedTag=type.toLowerCase(),ancestorInfo=updatedAncestorInfo(null,validatedTag);return{namespace,ancestorInfo}}}function getChildHostContext(parentHostContext,type,rootContainerInstance){{var parentHostContextDev=parentHostContext,namespace=getChildNamespace(parentHostContextDev.namespace,type),ancestorInfo=updatedAncestorInfo(parentHostContextDev.ancestorInfo,type);return{namespace,ancestorInfo}}}function getPublicInstance(instance){return instance}function prepareForCommit(containerInfo){eventsEnabled=isEnabled(),selectionInformation=getSelectionInformation();var activeInstance=null;return setEnabled(!1),activeInstance}function resetAfterCommit(containerInfo){restoreSelection(selectionInformation),setEnabled(eventsEnabled),eventsEnabled=null,selectionInformation=null}function createInstance(type,props,rootContainerInstance,hostContext,internalInstanceHandle){var parentNamespace;{var hostContextDev=hostContext;if(validateDOMNesting(type,null,hostContextDev.ancestorInfo),typeof props.children=="string"||typeof props.children=="number"){var string=""+props.children,ownAncestorInfo=updatedAncestorInfo(hostContextDev.ancestorInfo,type);validateDOMNesting(null,string,ownAncestorInfo)}parentNamespace=hostContextDev.namespace}var domElement=createElement(type,props,rootContainerInstance,parentNamespace);return precacheFiberNode(internalInstanceHandle,domElement),updateFiberProps(domElement,props),domElement}function appendInitialChild(parentInstance,child){parentInstance.appendChild(child)}function finalizeInitialChildren(domElement,type,props,rootContainerInstance,hostContext){switch(setInitialProperties(domElement,type,props,rootContainerInstance),type){case"button":case"input":case"select":case"textarea":return!!props.autoFocus;case"img":return!0;default:return!1}}function prepareUpdate(domElement,type,oldProps,newProps,rootContainerInstance,hostContext){{var hostContextDev=hostContext;if(typeof newProps.children!=typeof oldProps.children&&(typeof newProps.children=="string"||typeof newProps.children=="number")){var string=""+newProps.children,ownAncestorInfo=updatedAncestorInfo(hostContextDev.ancestorInfo,type);validateDOMNesting(null,string,ownAncestorInfo)}}return diffProperties(domElement,type,oldProps,newProps)}function shouldSetTextContent(type,props){return type==="textarea"||type==="noscript"||typeof props.children=="string"||typeof props.children=="number"||typeof props.dangerouslySetInnerHTML=="object"&&props.dangerouslySetInnerHTML!==null&&props.dangerouslySetInnerHTML.__html!=null}function createTextInstance(text,rootContainerInstance,hostContext,internalInstanceHandle){{var hostContextDev=hostContext;validateDOMNesting(null,text,hostContextDev.ancestorInfo)}var textNode=createTextNode(text,rootContainerInstance);return precacheFiberNode(internalInstanceHandle,textNode),textNode}function getCurrentEventPriority(){var currentEvent=window.event;return currentEvent===void 0?DefaultEventPriority:getEventPriority(currentEvent.type)}var scheduleTimeout=typeof setTimeout=="function"?setTimeout:void 0,cancelTimeout=typeof clearTimeout=="function"?clearTimeout:void 0,noTimeout=-1,localPromise=typeof Promise=="function"?Promise:void 0,scheduleMicrotask=typeof queueMicrotask=="function"?queueMicrotask:typeof localPromise<"u"?function(callback){return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick)}:scheduleTimeout;function handleErrorInNextTick(error2){setTimeout(function(){throw error2})}function commitMount(domElement,type,newProps,internalInstanceHandle){switch(type){case"button":case"input":case"select":case"textarea":newProps.autoFocus&&domElement.focus();return;case"img":{newProps.src&&(domElement.src=newProps.src);return}}}function commitUpdate(domElement,updatePayload,type,oldProps,newProps,internalInstanceHandle){updateProperties(domElement,updatePayload,type,oldProps,newProps),updateFiberProps(domElement,newProps)}function resetTextContent(domElement){setTextContent(domElement,"")}function commitTextUpdate(textInstance,oldText,newText){textInstance.nodeValue=newText}function appendChild(parentInstance,child){parentInstance.appendChild(child)}function appendChildToContainer(container,child){var parentNode;container.nodeType===COMMENT_NODE?(parentNode=container.parentNode,parentNode.insertBefore(child,container)):(parentNode=container,parentNode.appendChild(child));var reactRootContainer=container._reactRootContainer;reactRootContainer==null&&parentNode.onclick===null&&trapClickOnNonInteractiveElement(parentNode)}function insertBefore(parentInstance,child,beforeChild){parentInstance.insertBefore(child,beforeChild)}function insertInContainerBefore(container,child,beforeChild){container.nodeType===COMMENT_NODE?container.parentNode.insertBefore(child,beforeChild):container.insertBefore(child,beforeChild)}function removeChild(parentInstance,child){parentInstance.removeChild(child)}function removeChildFromContainer(container,child){container.nodeType===COMMENT_NODE?container.parentNode.removeChild(child):container.removeChild(child)}function clearSuspenseBoundary(parentInstance,suspenseInstance){var node=suspenseInstance,depth=0;do{var nextNode=node.nextSibling;if(parentInstance.removeChild(node),nextNode&&nextNode.nodeType===COMMENT_NODE){var data=nextNode.data;if(data===SUSPENSE_END_DATA)if(depth===0){parentInstance.removeChild(nextNode),retryIfBlockedOn(suspenseInstance);return}else depth--;else(data===SUSPENSE_START_DATA||data===SUSPENSE_PENDING_START_DATA||data===SUSPENSE_FALLBACK_START_DATA)&&depth++}node=nextNode}while(node);retryIfBlockedOn(suspenseInstance)}function clearSuspenseBoundaryFromContainer(container,suspenseInstance){container.nodeType===COMMENT_NODE?clearSuspenseBoundary(container.parentNode,suspenseInstance):container.nodeType===ELEMENT_NODE&&clearSuspenseBoundary(container,suspenseInstance),retryIfBlockedOn(container)}function hideInstance(instance){instance=instance;var style2=instance.style;typeof style2.setProperty=="function"?style2.setProperty("display","none","important"):style2.display="none"}function hideTextInstance(textInstance){textInstance.nodeValue=""}function unhideInstance(instance,props){instance=instance;var styleProp=props[STYLE$1],display=styleProp!=null&&styleProp.hasOwnProperty("display")?styleProp.display:null;instance.style.display=dangerousStyleValue("display",display)}function unhideTextInstance(textInstance,text){textInstance.nodeValue=text}function clearContainer(container){container.nodeType===ELEMENT_NODE?container.textContent="":container.nodeType===DOCUMENT_NODE&&container.documentElement&&container.removeChild(container.documentElement)}function canHydrateInstance(instance,type,props){return instance.nodeType!==ELEMENT_NODE||type.toLowerCase()!==instance.nodeName.toLowerCase()?null:instance}function canHydrateTextInstance(instance,text){return text===""||instance.nodeType!==TEXT_NODE?null:instance}function canHydrateSuspenseInstance(instance){return instance.nodeType!==COMMENT_NODE?null:instance}function isSuspenseInstancePending(instance){return instance.data===SUSPENSE_PENDING_START_DATA}function isSuspenseInstanceFallback(instance){return instance.data===SUSPENSE_FALLBACK_START_DATA}function getSuspenseInstanceFallbackErrorDetails(instance){var dataset=instance.nextSibling&&instance.nextSibling.dataset,digest,message,stack;return dataset&&(digest=dataset.dgst,message=dataset.msg,stack=dataset.stck),{message,digest,stack}}function registerSuspenseInstanceRetry(instance,callback){instance._reactRetry=callback}function getNextHydratable(node){for(;node!=null;node=node.nextSibling){var nodeType=node.nodeType;if(nodeType===ELEMENT_NODE||nodeType===TEXT_NODE)break;if(nodeType===COMMENT_NODE){var nodeData=node.data;if(nodeData===SUSPENSE_START_DATA||nodeData===SUSPENSE_FALLBACK_START_DATA||nodeData===SUSPENSE_PENDING_START_DATA)break;if(nodeData===SUSPENSE_END_DATA)return null}}return node}function getNextHydratableSibling(instance){return getNextHydratable(instance.nextSibling)}function getFirstHydratableChild(parentInstance){return getNextHydratable(parentInstance.firstChild)}function getFirstHydratableChildWithinContainer(parentContainer){return getNextHydratable(parentContainer.firstChild)}function getFirstHydratableChildWithinSuspenseInstance(parentInstance){return getNextHydratable(parentInstance.nextSibling)}function hydrateInstance(instance,type,props,rootContainerInstance,hostContext,internalInstanceHandle,shouldWarnDev){precacheFiberNode(internalInstanceHandle,instance),updateFiberProps(instance,props);var parentNamespace;{var hostContextDev=hostContext;parentNamespace=hostContextDev.namespace}var isConcurrentMode=(internalInstanceHandle.mode&ConcurrentMode)!==NoMode;return diffHydratedProperties(instance,type,props,parentNamespace,rootContainerInstance,isConcurrentMode,shouldWarnDev)}function hydrateTextInstance(textInstance,text,internalInstanceHandle,shouldWarnDev){return precacheFiberNode(internalInstanceHandle,textInstance),internalInstanceHandle.mode&ConcurrentMode,diffHydratedText(textInstance,text)}function hydrateSuspenseInstance(suspenseInstance,internalInstanceHandle){precacheFiberNode(internalInstanceHandle,suspenseInstance)}function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance){for(var node=suspenseInstance.nextSibling,depth=0;node;){if(node.nodeType===COMMENT_NODE){var data=node.data;if(data===SUSPENSE_END_DATA){if(depth===0)return getNextHydratableSibling(node);depth--}else(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA)&&depth++}node=node.nextSibling}return null}function getParentSuspenseInstance(targetInstance){for(var node=targetInstance.previousSibling,depth=0;node;){if(node.nodeType===COMMENT_NODE){var data=node.data;if(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA){if(depth===0)return node;depth--}else data===SUSPENSE_END_DATA&&depth++}node=node.previousSibling}return null}function commitHydratedContainer(container){retryIfBlockedOn(container)}function commitHydratedSuspenseInstance(suspenseInstance){retryIfBlockedOn(suspenseInstance)}function shouldDeleteUnhydratedTailInstances(parentType){return parentType!=="head"&&parentType!=="body"}function didNotMatchHydratedContainerTextInstance(parentContainer,textInstance,text,isConcurrentMode){var shouldWarnDev=!0;checkForUnmatchedText(textInstance.nodeValue,text,isConcurrentMode,shouldWarnDev)}function didNotMatchHydratedTextInstance(parentType,parentProps,parentInstance,textInstance,text,isConcurrentMode){if(parentProps[SUPPRESS_HYDRATION_WARNING$1]!==!0){var shouldWarnDev=!0;checkForUnmatchedText(textInstance.nodeValue,text,isConcurrentMode,shouldWarnDev)}}function didNotHydrateInstanceWithinContainer(parentContainer,instance){instance.nodeType===ELEMENT_NODE?warnForDeletedHydratableElement(parentContainer,instance):instance.nodeType===COMMENT_NODE||warnForDeletedHydratableText(parentContainer,instance)}function didNotHydrateInstanceWithinSuspenseInstance(parentInstance,instance){{var parentNode=parentInstance.parentNode;parentNode!==null&&(instance.nodeType===ELEMENT_NODE?warnForDeletedHydratableElement(parentNode,instance):instance.nodeType===COMMENT_NODE||warnForDeletedHydratableText(parentNode,instance))}}function didNotHydrateInstance(parentType,parentProps,parentInstance,instance,isConcurrentMode){(isConcurrentMode||parentProps[SUPPRESS_HYDRATION_WARNING$1]!==!0)&&(instance.nodeType===ELEMENT_NODE?warnForDeletedHydratableElement(parentInstance,instance):instance.nodeType===COMMENT_NODE||warnForDeletedHydratableText(parentInstance,instance))}function didNotFindHydratableInstanceWithinContainer(parentContainer,type,props){warnForInsertedHydratedElement(parentContainer,type)}function didNotFindHydratableTextInstanceWithinContainer(parentContainer,text){warnForInsertedHydratedText(parentContainer,text)}function didNotFindHydratableInstanceWithinSuspenseInstance(parentInstance,type,props){{var parentNode=parentInstance.parentNode;parentNode!==null&&warnForInsertedHydratedElement(parentNode,type)}}function didNotFindHydratableTextInstanceWithinSuspenseInstance(parentInstance,text){{var parentNode=parentInstance.parentNode;parentNode!==null&&warnForInsertedHydratedText(parentNode,text)}}function didNotFindHydratableInstance(parentType,parentProps,parentInstance,type,props,isConcurrentMode){(isConcurrentMode||parentProps[SUPPRESS_HYDRATION_WARNING$1]!==!0)&&warnForInsertedHydratedElement(parentInstance,type)}function didNotFindHydratableTextInstance(parentType,parentProps,parentInstance,text,isConcurrentMode){(isConcurrentMode||parentProps[SUPPRESS_HYDRATION_WARNING$1]!==!0)&&warnForInsertedHydratedText(parentInstance,text)}function errorHydratingContainer(parentContainer){error("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",parentContainer.nodeName.toLowerCase())}function preparePortalMount(portalInstance){listenToAllSupportedEvents(portalInstance)}var randomKey=Math.random().toString(36).slice(2),internalInstanceKey="__reactFiber$"+randomKey,internalPropsKey="__reactProps$"+randomKey,internalContainerInstanceKey="__reactContainer$"+randomKey,internalEventHandlersKey="__reactEvents$"+randomKey,internalEventHandlerListenersKey="__reactListeners$"+randomKey,internalEventHandlesSetKey="__reactHandles$"+randomKey;function detachDeletedInstance(node){delete node[internalInstanceKey],delete node[internalPropsKey],delete node[internalEventHandlersKey],delete node[internalEventHandlerListenersKey],delete node[internalEventHandlesSetKey]}function precacheFiberNode(hostInst,node){node[internalInstanceKey]=hostInst}function markContainerAsRoot(hostRoot,node){node[internalContainerInstanceKey]=hostRoot}function unmarkContainerAsRoot(node){node[internalContainerInstanceKey]=null}function isContainerMarkedAsRoot(node){return!!node[internalContainerInstanceKey]}function getClosestInstanceFromNode(targetNode){var targetInst=targetNode[internalInstanceKey];if(targetInst)return targetInst;for(var parentNode=targetNode.parentNode;parentNode;){if(targetInst=parentNode[internalContainerInstanceKey]||parentNode[internalInstanceKey],targetInst){var alternate=targetInst.alternate;if(targetInst.child!==null||alternate!==null&&alternate.child!==null)for(var suspenseInstance=getParentSuspenseInstance(targetNode);suspenseInstance!==null;){var targetSuspenseInst=suspenseInstance[internalInstanceKey];if(targetSuspenseInst)return targetSuspenseInst;suspenseInstance=getParentSuspenseInstance(suspenseInstance)}return targetInst}targetNode=parentNode,parentNode=targetNode.parentNode}return null}function getInstanceFromNode(node){var inst=node[internalInstanceKey]||node[internalContainerInstanceKey];return inst&&(inst.tag===HostComponent||inst.tag===HostText||inst.tag===SuspenseComponent||inst.tag===HostRoot)?inst:null}function getNodeFromInstance(inst){if(inst.tag===HostComponent||inst.tag===HostText)return inst.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function getFiberCurrentPropsFromNode(node){return node[internalPropsKey]||null}function updateFiberProps(node,props){node[internalPropsKey]=props}function getEventListenerSet(node){var elementListenerSet=node[internalEventHandlersKey];return elementListenerSet===void 0&&(elementListenerSet=node[internalEventHandlersKey]=new Set),elementListenerSet}var loggedTypeFailures={},ReactDebugCurrentFrame$1=ReactSharedInternals.ReactDebugCurrentFrame;function setCurrentlyValidatingElement(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);ReactDebugCurrentFrame$1.setExtraStackFrame(stack)}else ReactDebugCurrentFrame$1.setExtraStackFrame(null)}function checkPropTypes(typeSpecs,values,location,componentName,element){{var has2=Function.call.bind(hasOwnProperty);for(var typeSpecName in typeSpecs)if(has2(typeSpecs,typeSpecName)){var error$1=void 0;try{if(typeof typeSpecs[typeSpecName]!="function"){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw err.name="Invariant Violation",err}error$1=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ex){error$1=ex}error$1&&!(error$1 instanceof Error)&&(setCurrentlyValidatingElement(element),error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",componentName||"React class",location,typeSpecName,typeof error$1),setCurrentlyValidatingElement(null)),error$1 instanceof Error&&!(error$1.message in loggedTypeFailures)&&(loggedTypeFailures[error$1.message]=!0,setCurrentlyValidatingElement(element),error("Failed %s type: %s",location,error$1.message),setCurrentlyValidatingElement(null))}}}var valueStack=[],fiberStack;fiberStack=[];var index=-1;function createCursor(defaultValue){return{current:defaultValue}}function pop(cursor,fiber){if(index<0){error("Unexpected pop.");return}fiber!==fiberStack[index]&&error("Unexpected Fiber popped."),cursor.current=valueStack[index],valueStack[index]=null,fiberStack[index]=null,index--}function push(cursor,value,fiber){index++,valueStack[index]=cursor.current,fiberStack[index]=fiber,cursor.current=value}var warnedAboutMissingGetChildContext;warnedAboutMissingGetChildContext={};var emptyContextObject={};Object.freeze(emptyContextObject);var contextStackCursor=createCursor(emptyContextObject),didPerformWorkStackCursor=createCursor(!1),previousContext=emptyContextObject;function getUnmaskedContext(workInProgress2,Component,didPushOwnContextIfProvider){return didPushOwnContextIfProvider&&isContextProvider(Component)?previousContext:contextStackCursor.current}function cacheContext(workInProgress2,unmaskedContext,maskedContext){{var instance=workInProgress2.stateNode;instance.__reactInternalMemoizedUnmaskedChildContext=unmaskedContext,instance.__reactInternalMemoizedMaskedChildContext=maskedContext}}function getMaskedContext(workInProgress2,unmaskedContext){{var type=workInProgress2.type,contextTypes=type.contextTypes;if(!contextTypes)return emptyContextObject;var instance=workInProgress2.stateNode;if(instance&&instance.__reactInternalMemoizedUnmaskedChildContext===unmaskedContext)return instance.__reactInternalMemoizedMaskedChildContext;var context={};for(var key in contextTypes)context[key]=unmaskedContext[key];{var name=getComponentNameFromFiber(workInProgress2)||"Unknown";checkPropTypes(contextTypes,context,"context",name)}return instance&&cacheContext(workInProgress2,unmaskedContext,context),context}}function hasContextChanged(){return didPerformWorkStackCursor.current}function isContextProvider(type){{var childContextTypes=type.childContextTypes;return childContextTypes!=null}}function popContext(fiber){pop(didPerformWorkStackCursor,fiber),pop(contextStackCursor,fiber)}function popTopLevelContextObject(fiber){pop(didPerformWorkStackCursor,fiber),pop(contextStackCursor,fiber)}function pushTopLevelContextObject(fiber,context,didChange){{if(contextStackCursor.current!==emptyContextObject)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");push(contextStackCursor,context,fiber),push(didPerformWorkStackCursor,didChange,fiber)}}function processChildContext(fiber,type,parentContext){{var instance=fiber.stateNode,childContextTypes=type.childContextTypes;if(typeof instance.getChildContext!="function"){{var componentName=getComponentNameFromFiber(fiber)||"Unknown";warnedAboutMissingGetChildContext[componentName]||(warnedAboutMissingGetChildContext[componentName]=!0,error("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",componentName,componentName))}return parentContext}var childContext=instance.getChildContext();for(var contextKey in childContext)if(!(contextKey in childContextTypes))throw new Error((getComponentNameFromFiber(fiber)||"Unknown")+'.getChildContext(): key "'+contextKey+'" is not defined in childContextTypes.');{var name=getComponentNameFromFiber(fiber)||"Unknown";checkPropTypes(childContextTypes,childContext,"child context",name)}return assign({},parentContext,childContext)}}function pushContextProvider(workInProgress2){{var instance=workInProgress2.stateNode,memoizedMergedChildContext=instance&&instance.__reactInternalMemoizedMergedChildContext||emptyContextObject;return previousContext=contextStackCursor.current,push(contextStackCursor,memoizedMergedChildContext,workInProgress2),push(didPerformWorkStackCursor,didPerformWorkStackCursor.current,workInProgress2),!0}}function invalidateContextProvider(workInProgress2,type,didChange){{var instance=workInProgress2.stateNode;if(!instance)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(didChange){var mergedContext=processChildContext(workInProgress2,type,previousContext);instance.__reactInternalMemoizedMergedChildContext=mergedContext,pop(didPerformWorkStackCursor,workInProgress2),pop(contextStackCursor,workInProgress2),push(contextStackCursor,mergedContext,workInProgress2),push(didPerformWorkStackCursor,didChange,workInProgress2)}else pop(didPerformWorkStackCursor,workInProgress2),push(didPerformWorkStackCursor,didChange,workInProgress2)}}function findCurrentUnmaskedContext(fiber){{if(!isFiberMounted(fiber)||fiber.tag!==ClassComponent)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var node=fiber;do{switch(node.tag){case HostRoot:return node.stateNode.context;case ClassComponent:{var Component=node.type;if(isContextProvider(Component))return node.stateNode.__reactInternalMemoizedMergedChildContext;break}}node=node.return}while(node!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var LegacyRoot=0,ConcurrentRoot=1,syncQueue=null,includesLegacySyncCallbacks=!1,isFlushingSyncQueue=!1;function scheduleSyncCallback(callback){syncQueue===null?syncQueue=[callback]:syncQueue.push(callback)}function scheduleLegacySyncCallback(callback){includesLegacySyncCallbacks=!0,scheduleSyncCallback(callback)}function flushSyncCallbacksOnlyInLegacyMode(){includesLegacySyncCallbacks&&flushSyncCallbacks()}function flushSyncCallbacks(){if(!isFlushingSyncQueue&&syncQueue!==null){isFlushingSyncQueue=!0;var i=0,previousUpdatePriority=getCurrentUpdatePriority();try{var isSync=!0,queue=syncQueue;for(setCurrentUpdatePriority(DiscreteEventPriority);i<queue.length;i++){var callback=queue[i];do callback=callback(isSync);while(callback!==null)}syncQueue=null,includesLegacySyncCallbacks=!1}catch(error2){throw syncQueue!==null&&(syncQueue=syncQueue.slice(i+1)),scheduleCallback(ImmediatePriority,flushSyncCallbacks),error2}finally{setCurrentUpdatePriority(previousUpdatePriority),isFlushingSyncQueue=!1}}return null}var forkStack=[],forkStackIndex=0,treeForkProvider=null,treeForkCount=0,idStack=[],idStackIndex=0,treeContextProvider=null,treeContextId=1,treeContextOverflow="";function isForkedChild(workInProgress2){return warnIfNotHydrating(),(workInProgress2.flags&Forked)!==NoFlags}function getForksAtLevel(workInProgress2){return warnIfNotHydrating(),treeForkCount}function getTreeId(){var overflow=treeContextOverflow,idWithLeadingBit=treeContextId,id=idWithLeadingBit&~getLeadingBit(idWithLeadingBit);return id.toString(32)+overflow}function pushTreeFork(workInProgress2,totalChildren){warnIfNotHydrating(),forkStack[forkStackIndex++]=treeForkCount,forkStack[forkStackIndex++]=treeForkProvider,treeForkProvider=workInProgress2,treeForkCount=totalChildren}function pushTreeId(workInProgress2,totalChildren,index2){warnIfNotHydrating(),idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextProvider=workInProgress2;var baseIdWithLeadingBit=treeContextId,baseOverflow=treeContextOverflow,baseLength=getBitLength(baseIdWithLeadingBit)-1,baseId=baseIdWithLeadingBit&~(1<<baseLength),slot=index2+1,length=getBitLength(totalChildren)+baseLength;if(length>30){var numberOfOverflowBits=baseLength-baseLength%5,newOverflowBits=(1<<numberOfOverflowBits)-1,newOverflow=(baseId&newOverflowBits).toString(32),restOfBaseId=baseId>>numberOfOverflowBits,restOfBaseLength=baseLength-numberOfOverflowBits,restOfLength=getBitLength(totalChildren)+restOfBaseLength,restOfNewBits=slot<<restOfBaseLength,id=restOfNewBits|restOfBaseId,overflow=newOverflow+baseOverflow;treeContextId=1<<restOfLength|id,treeContextOverflow=overflow}else{var newBits=slot<<baseLength,_id=newBits|baseId,_overflow=baseOverflow;treeContextId=1<<length|_id,treeContextOverflow=_overflow}}function pushMaterializedTreeId(workInProgress2){warnIfNotHydrating();var returnFiber=workInProgress2.return;if(returnFiber!==null){var numberOfForks=1,slotIndex=0;pushTreeFork(workInProgress2,numberOfForks),pushTreeId(workInProgress2,numberOfForks,slotIndex)}}function getBitLength(number){return 32-clz32(number)}function getLeadingBit(id){return 1<<getBitLength(id)-1}function popTreeContext(workInProgress2){for(;workInProgress2===treeForkProvider;)treeForkProvider=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null,treeForkCount=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null;for(;workInProgress2===treeContextProvider;)treeContextProvider=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextOverflow=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextId=idStack[--idStackIndex],idStack[idStackIndex]=null}function getSuspendedTreeContext(){return warnIfNotHydrating(),treeContextProvider!==null?{id:treeContextId,overflow:treeContextOverflow}:null}function restoreSuspendedTreeContext(workInProgress2,suspendedContext){warnIfNotHydrating(),idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextId=suspendedContext.id,treeContextOverflow=suspendedContext.overflow,treeContextProvider=workInProgress2}function warnIfNotHydrating(){getIsHydrating()||error("Expected to be hydrating. This is a bug in React. Please file an issue.")}var hydrationParentFiber=null,nextHydratableInstance=null,isHydrating=!1,didSuspendOrErrorDEV=!1,hydrationErrors=null;function warnIfHydrating(){isHydrating&&error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function markDidThrowWhileHydratingDEV(){didSuspendOrErrorDEV=!0}function didSuspendOrErrorWhileHydratingDEV(){return didSuspendOrErrorDEV}function enterHydrationState(fiber){var parentInstance=fiber.stateNode.containerInfo;return nextHydratableInstance=getFirstHydratableChildWithinContainer(parentInstance),hydrationParentFiber=fiber,isHydrating=!0,hydrationErrors=null,didSuspendOrErrorDEV=!1,!0}function reenterHydrationStateFromDehydratedSuspenseInstance(fiber,suspenseInstance,treeContext){return nextHydratableInstance=getFirstHydratableChildWithinSuspenseInstance(suspenseInstance),hydrationParentFiber=fiber,isHydrating=!0,hydrationErrors=null,didSuspendOrErrorDEV=!1,treeContext!==null&&restoreSuspendedTreeContext(fiber,treeContext),!0}function warnUnhydratedInstance(returnFiber,instance){switch(returnFiber.tag){case HostRoot:{didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo,instance);break}case HostComponent:{var isConcurrentMode=(returnFiber.mode&ConcurrentMode)!==NoMode;didNotHydrateInstance(returnFiber.type,returnFiber.memoizedProps,returnFiber.stateNode,instance,isConcurrentMode);break}case SuspenseComponent:{var suspenseState=returnFiber.memoizedState;suspenseState.dehydrated!==null&&didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated,instance);break}}}function deleteHydratableInstance(returnFiber,instance){warnUnhydratedInstance(returnFiber,instance);var childToDelete=createFiberFromHostInstanceForDeletion();childToDelete.stateNode=instance,childToDelete.return=returnFiber;var deletions=returnFiber.deletions;deletions===null?(returnFiber.deletions=[childToDelete],returnFiber.flags|=ChildDeletion):deletions.push(childToDelete)}function warnNonhydratedInstance(returnFiber,fiber){{if(didSuspendOrErrorDEV)return;switch(returnFiber.tag){case HostRoot:{var parentContainer=returnFiber.stateNode.containerInfo;switch(fiber.tag){case HostComponent:var type=fiber.type;fiber.pendingProps,didNotFindHydratableInstanceWithinContainer(parentContainer,type);break;case HostText:var text=fiber.pendingProps;didNotFindHydratableTextInstanceWithinContainer(parentContainer,text);break}break}case HostComponent:{var parentType=returnFiber.type,parentProps=returnFiber.memoizedProps,parentInstance=returnFiber.stateNode;switch(fiber.tag){case HostComponent:{var _type=fiber.type,_props=fiber.pendingProps,isConcurrentMode=(returnFiber.mode&ConcurrentMode)!==NoMode;didNotFindHydratableInstance(parentType,parentProps,parentInstance,_type,_props,isConcurrentMode);break}case HostText:{var _text=fiber.pendingProps,_isConcurrentMode=(returnFiber.mode&ConcurrentMode)!==NoMode;didNotFindHydratableTextInstance(parentType,parentProps,parentInstance,_text,_isConcurrentMode);break}}break}case SuspenseComponent:{var suspenseState=returnFiber.memoizedState,_parentInstance=suspenseState.dehydrated;if(_parentInstance!==null)switch(fiber.tag){case HostComponent:var _type2=fiber.type;fiber.pendingProps,didNotFindHydratableInstanceWithinSuspenseInstance(_parentInstance,_type2);break;case HostText:var _text2=fiber.pendingProps;didNotFindHydratableTextInstanceWithinSuspenseInstance(_parentInstance,_text2);break}break}default:return}}}function insertNonHydratedInstance(returnFiber,fiber){fiber.flags=fiber.flags&-4097|Placement,warnNonhydratedInstance(returnFiber,fiber)}function tryHydrate(fiber,nextInstance){switch(fiber.tag){case HostComponent:{var type=fiber.type;fiber.pendingProps;var instance=canHydrateInstance(nextInstance,type);return instance!==null?(fiber.stateNode=instance,hydrationParentFiber=fiber,nextHydratableInstance=getFirstHydratableChild(instance),!0):!1}case HostText:{var text=fiber.pendingProps,textInstance=canHydrateTextInstance(nextInstance,text);return textInstance!==null?(fiber.stateNode=textInstance,hydrationParentFiber=fiber,nextHydratableInstance=null,!0):!1}case SuspenseComponent:{var suspenseInstance=canHydrateSuspenseInstance(nextInstance);if(suspenseInstance!==null){var suspenseState={dehydrated:suspenseInstance,treeContext:getSuspendedTreeContext(),retryLane:OffscreenLane};fiber.memoizedState=suspenseState;var dehydratedFragment=createFiberFromDehydratedFragment(suspenseInstance);return dehydratedFragment.return=fiber,fiber.child=dehydratedFragment,hydrationParentFiber=fiber,nextHydratableInstance=null,!0}return!1}default:return!1}}function shouldClientRenderOnMismatch(fiber){return(fiber.mode&ConcurrentMode)!==NoMode&&(fiber.flags&DidCapture)===NoFlags}function throwOnHydrationMismatch(fiber){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tryToClaimNextHydratableInstance(fiber){if(isHydrating){var nextInstance=nextHydratableInstance;if(!nextInstance){shouldClientRenderOnMismatch(fiber)&&(warnNonhydratedInstance(hydrationParentFiber,fiber),throwOnHydrationMismatch()),insertNonHydratedInstance(hydrationParentFiber,fiber),isHydrating=!1,hydrationParentFiber=fiber;return}var firstAttemptedInstance=nextInstance;if(!tryHydrate(fiber,nextInstance)){shouldClientRenderOnMismatch(fiber)&&(warnNonhydratedInstance(hydrationParentFiber,fiber),throwOnHydrationMismatch()),nextInstance=getNextHydratableSibling(firstAttemptedInstance);var prevHydrationParentFiber=hydrationParentFiber;if(!nextInstance||!tryHydrate(fiber,nextInstance)){insertNonHydratedInstance(hydrationParentFiber,fiber),isHydrating=!1,hydrationParentFiber=fiber;return}deleteHydratableInstance(prevHydrationParentFiber,firstAttemptedInstance)}}}function prepareToHydrateHostInstance(fiber,rootContainerInstance,hostContext){var instance=fiber.stateNode,shouldWarnIfMismatchDev=!didSuspendOrErrorDEV,updatePayload=hydrateInstance(instance,fiber.type,fiber.memoizedProps,rootContainerInstance,hostContext,fiber,shouldWarnIfMismatchDev);return fiber.updateQueue=updatePayload,updatePayload!==null}function prepareToHydrateHostTextInstance(fiber){var textInstance=fiber.stateNode,textContent=fiber.memoizedProps,shouldUpdate=hydrateTextInstance(textInstance,textContent,fiber);if(shouldUpdate){var returnFiber=hydrationParentFiber;if(returnFiber!==null)switch(returnFiber.tag){case HostRoot:{var parentContainer=returnFiber.stateNode.containerInfo,isConcurrentMode=(returnFiber.mode&ConcurrentMode)!==NoMode;didNotMatchHydratedContainerTextInstance(parentContainer,textInstance,textContent,isConcurrentMode);break}case HostComponent:{var parentType=returnFiber.type,parentProps=returnFiber.memoizedProps,parentInstance=returnFiber.stateNode,_isConcurrentMode2=(returnFiber.mode&ConcurrentMode)!==NoMode;didNotMatchHydratedTextInstance(parentType,parentProps,parentInstance,textInstance,textContent,_isConcurrentMode2);break}}}return shouldUpdate}function prepareToHydrateHostSuspenseInstance(fiber){var suspenseState=fiber.memoizedState,suspenseInstance=suspenseState!==null?suspenseState.dehydrated:null;if(!suspenseInstance)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");hydrateSuspenseInstance(suspenseInstance,fiber)}function skipPastDehydratedSuspenseInstance(fiber){var suspenseState=fiber.memoizedState,suspenseInstance=suspenseState!==null?suspenseState.dehydrated:null;if(!suspenseInstance)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance)}function popToNextHostParent(fiber){for(var parent=fiber.return;parent!==null&&parent.tag!==HostComponent&&parent.tag!==HostRoot&&parent.tag!==SuspenseComponent;)parent=parent.return;hydrationParentFiber=parent}function popHydrationState(fiber){if(fiber!==hydrationParentFiber)return!1;if(!isHydrating)return popToNextHostParent(fiber),isHydrating=!0,!1;if(fiber.tag!==HostRoot&&(fiber.tag!==HostComponent||shouldDeleteUnhydratedTailInstances(fiber.type)&&!shouldSetTextContent(fiber.type,fiber.memoizedProps))){var nextInstance=nextHydratableInstance;if(nextInstance)if(shouldClientRenderOnMismatch(fiber))warnIfUnhydratedTailNodes(fiber),throwOnHydrationMismatch();else for(;nextInstance;)deleteHydratableInstance(fiber,nextInstance),nextInstance=getNextHydratableSibling(nextInstance)}return popToNextHostParent(fiber),fiber.tag===SuspenseComponent?nextHydratableInstance=skipPastDehydratedSuspenseInstance(fiber):nextHydratableInstance=hydrationParentFiber?getNextHydratableSibling(fiber.stateNode):null,!0}function hasUnhydratedTailNodes(){return isHydrating&&nextHydratableInstance!==null}function warnIfUnhydratedTailNodes(fiber){for(var nextInstance=nextHydratableInstance;nextInstance;)warnUnhydratedInstance(fiber,nextInstance),nextInstance=getNextHydratableSibling(nextInstance)}function resetHydrationState(){hydrationParentFiber=null,nextHydratableInstance=null,isHydrating=!1,didSuspendOrErrorDEV=!1}function upgradeHydrationErrorsToRecoverable(){hydrationErrors!==null&&(queueRecoverableErrors(hydrationErrors),hydrationErrors=null)}function getIsHydrating(){return isHydrating}function queueHydrationError(error2){hydrationErrors===null?hydrationErrors=[error2]:hydrationErrors.push(error2)}var ReactCurrentBatchConfig$1=ReactSharedInternals.ReactCurrentBatchConfig,NoTransition=null;function requestCurrentTransition(){return ReactCurrentBatchConfig$1.transition}var ReactStrictModeWarnings={recordUnsafeLifecycleWarnings:function(fiber,instance){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(fiber,instance){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var findStrictRoot=function(fiber){for(var maybeStrictRoot=null,node=fiber;node!==null;)node.mode&StrictLegacyMode&&(maybeStrictRoot=node),node=node.return;return maybeStrictRoot},setToSortedString=function(set2){var array=[];return set2.forEach(function(value){array.push(value)}),array.sort().join(", ")},pendingComponentWillMountWarnings=[],pendingUNSAFE_ComponentWillMountWarnings=[],pendingComponentWillReceivePropsWarnings=[],pendingUNSAFE_ComponentWillReceivePropsWarnings=[],pendingComponentWillUpdateWarnings=[],pendingUNSAFE_ComponentWillUpdateWarnings=[],didWarnAboutUnsafeLifecycles=new Set;ReactStrictModeWarnings.recordUnsafeLifecycleWarnings=function(fiber,instance){didWarnAboutUnsafeLifecycles.has(fiber.type)||(typeof instance.componentWillMount=="function"&&instance.componentWillMount.__suppressDeprecationWarning!==!0&&pendingComponentWillMountWarnings.push(fiber),fiber.mode&StrictLegacyMode&&typeof instance.UNSAFE_componentWillMount=="function"&&pendingUNSAFE_ComponentWillMountWarnings.push(fiber),typeof instance.componentWillReceiveProps=="function"&&instance.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&pendingComponentWillReceivePropsWarnings.push(fiber),fiber.mode&StrictLegacyMode&&typeof instance.UNSAFE_componentWillReceiveProps=="function"&&pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber),typeof instance.componentWillUpdate=="function"&&instance.componentWillUpdate.__suppressDeprecationWarning!==!0&&pendingComponentWillUpdateWarnings.push(fiber),fiber.mode&StrictLegacyMode&&typeof instance.UNSAFE_componentWillUpdate=="function"&&pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber))},ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings=function(){var componentWillMountUniqueNames=new Set;pendingComponentWillMountWarnings.length>0&&(pendingComponentWillMountWarnings.forEach(function(fiber){componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingComponentWillMountWarnings=[]);var UNSAFE_componentWillMountUniqueNames=new Set;pendingUNSAFE_ComponentWillMountWarnings.length>0&&(pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber){UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingUNSAFE_ComponentWillMountWarnings=[]);var componentWillReceivePropsUniqueNames=new Set;pendingComponentWillReceivePropsWarnings.length>0&&(pendingComponentWillReceivePropsWarnings.forEach(function(fiber){componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingComponentWillReceivePropsWarnings=[]);var UNSAFE_componentWillReceivePropsUniqueNames=new Set;pendingUNSAFE_ComponentWillReceivePropsWarnings.length>0&&(pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function(fiber){UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingUNSAFE_ComponentWillReceivePropsWarnings=[]);var componentWillUpdateUniqueNames=new Set;pendingComponentWillUpdateWarnings.length>0&&(pendingComponentWillUpdateWarnings.forEach(function(fiber){componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingComponentWillUpdateWarnings=[]);var UNSAFE_componentWillUpdateUniqueNames=new Set;if(pendingUNSAFE_ComponentWillUpdateWarnings.length>0&&(pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber){UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutUnsafeLifecycles.add(fiber.type)}),pendingUNSAFE_ComponentWillUpdateWarnings=[]),UNSAFE_componentWillMountUniqueNames.size>0){var sortedNames=setToSortedString(UNSAFE_componentWillMountUniqueNames);error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
101
-
102
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
103
-
104
- Please update the following components: %s`,sortedNames)}if(UNSAFE_componentWillReceivePropsUniqueNames.size>0){var _sortedNames=setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
105
-
106
- * Move data fetching code or side effects to componentDidUpdate.
107
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
108
-
109
- Please update the following components: %s`,_sortedNames)}if(UNSAFE_componentWillUpdateUniqueNames.size>0){var _sortedNames2=setToSortedString(UNSAFE_componentWillUpdateUniqueNames);error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
110
-
111
- * Move data fetching code or side effects to componentDidUpdate.
112
-
113
- Please update the following components: %s`,_sortedNames2)}if(componentWillMountUniqueNames.size>0){var _sortedNames3=setToSortedString(componentWillMountUniqueNames);warn(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
114
-
115
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
116
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
117
-
118
- Please update the following components: %s`,_sortedNames3)}if(componentWillReceivePropsUniqueNames.size>0){var _sortedNames4=setToSortedString(componentWillReceivePropsUniqueNames);warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
119
-
120
- * Move data fetching code or side effects to componentDidUpdate.
121
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
122
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
123
-
124
- Please update the following components: %s`,_sortedNames4)}if(componentWillUpdateUniqueNames.size>0){var _sortedNames5=setToSortedString(componentWillUpdateUniqueNames);warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
125
-
126
- * Move data fetching code or side effects to componentDidUpdate.
127
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
128
-
129
- Please update the following components: %s`,_sortedNames5)}};var pendingLegacyContextWarning=new Map,didWarnAboutLegacyContext=new Set;ReactStrictModeWarnings.recordLegacyContextWarning=function(fiber,instance){var strictRoot=findStrictRoot(fiber);if(strictRoot===null){error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!didWarnAboutLegacyContext.has(fiber.type)){var warningsForRoot=pendingLegacyContextWarning.get(strictRoot);(fiber.type.contextTypes!=null||fiber.type.childContextTypes!=null||instance!==null&&typeof instance.getChildContext=="function")&&(warningsForRoot===void 0&&(warningsForRoot=[],pendingLegacyContextWarning.set(strictRoot,warningsForRoot)),warningsForRoot.push(fiber))}},ReactStrictModeWarnings.flushLegacyContextWarning=function(){pendingLegacyContextWarning.forEach(function(fiberArray,strictRoot){if(fiberArray.length!==0){var firstFiber=fiberArray[0],uniqueNames=new Set;fiberArray.forEach(function(fiber){uniqueNames.add(getComponentNameFromFiber(fiber)||"Component"),didWarnAboutLegacyContext.add(fiber.type)});var sortedNames=setToSortedString(uniqueNames);try{setCurrentFiber(firstFiber),error(`Legacy context API has been detected within a strict-mode tree.
130
-
131
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
132
-
133
- Please update the following components: %s
134
-
135
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,sortedNames)}finally{resetCurrentFiber()}}})},ReactStrictModeWarnings.discardPendingWarnings=function(){pendingComponentWillMountWarnings=[],pendingUNSAFE_ComponentWillMountWarnings=[],pendingComponentWillReceivePropsWarnings=[],pendingUNSAFE_ComponentWillReceivePropsWarnings=[],pendingComponentWillUpdateWarnings=[],pendingUNSAFE_ComponentWillUpdateWarnings=[],pendingLegacyContextWarning=new Map}}var didWarnAboutMaps,didWarnAboutGenerators,didWarnAboutStringRefs,ownerHasKeyUseWarning,ownerHasFunctionTypeWarning,warnForMissingKey=function(child,returnFiber){};didWarnAboutMaps=!1,didWarnAboutGenerators=!1,didWarnAboutStringRefs={},ownerHasKeyUseWarning={},ownerHasFunctionTypeWarning={},warnForMissingKey=function(child,returnFiber){if(!(child===null||typeof child!="object")&&!(!child._store||child._store.validated||child.key!=null)){if(typeof child._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");child._store.validated=!0;var componentName=getComponentNameFromFiber(returnFiber)||"Component";ownerHasKeyUseWarning[componentName]||(ownerHasKeyUseWarning[componentName]=!0,error('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function isReactClass(type){return type.prototype&&type.prototype.isReactComponent}function coerceRef(returnFiber,current2,element){var mixedRef=element.ref;if(mixedRef!==null&&typeof mixedRef!="function"&&typeof mixedRef!="object"){if((returnFiber.mode&StrictLegacyMode||warnAboutStringRefs)&&!(element._owner&&element._self&&element._owner.stateNode!==element._self)&&!(element._owner&&element._owner.tag!==ClassComponent)&&!(typeof element.type=="function"&&!isReactClass(element.type))&&element._owner){var componentName=getComponentNameFromFiber(returnFiber)||"Component";didWarnAboutStringRefs[componentName]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',componentName,mixedRef),didWarnAboutStringRefs[componentName]=!0)}if(element._owner){var owner=element._owner,inst;if(owner){var ownerFiber=owner;if(ownerFiber.tag!==ClassComponent)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");inst=ownerFiber.stateNode}if(!inst)throw new Error("Missing owner for string ref "+mixedRef+". This error is likely caused by a bug in React. Please file an issue.");var resolvedInst=inst;checkPropStringCoercion(mixedRef,"ref");var stringRef=""+mixedRef;if(current2!==null&&current2.ref!==null&&typeof current2.ref=="function"&&current2.ref._stringRef===stringRef)return current2.ref;var ref=function(value){var refs=resolvedInst.refs;value===null?delete refs[stringRef]:refs[stringRef]=value};return ref._stringRef=stringRef,ref}else{if(typeof mixedRef!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!element._owner)throw new Error("Element ref was specified as a string ("+mixedRef+`) but no owner was set. This could happen for one of the following reasons:
136
- 1. You may be adding a ref to a function component
137
- 2. You may be adding a ref to a component that was not created inside a component's render method
138
- 3. You have multiple copies of React loaded
139
- See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return mixedRef}function throwOnInvalidObjectType(returnFiber,newChild){var childString=Object.prototype.toString.call(newChild);throw new Error("Objects are not valid as a React child (found: "+(childString==="[object Object]"?"object with keys {"+Object.keys(newChild).join(", ")+"}":childString)+"). If you meant to render a collection of children, use an array instead.")}function warnOnFunctionType(returnFiber){{var componentName=getComponentNameFromFiber(returnFiber)||"Component";if(ownerHasFunctionTypeWarning[componentName])return;ownerHasFunctionTypeWarning[componentName]=!0,error("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function resolveLazy(lazyType){var payload=lazyType._payload,init=lazyType._init;return init(payload)}function ChildReconciler(shouldTrackSideEffects){function deleteChild(returnFiber,childToDelete){if(shouldTrackSideEffects){var deletions=returnFiber.deletions;deletions===null?(returnFiber.deletions=[childToDelete],returnFiber.flags|=ChildDeletion):deletions.push(childToDelete)}}function deleteRemainingChildren(returnFiber,currentFirstChild){if(!shouldTrackSideEffects)return null;for(var childToDelete=currentFirstChild;childToDelete!==null;)deleteChild(returnFiber,childToDelete),childToDelete=childToDelete.sibling;return null}function mapRemainingChildren(returnFiber,currentFirstChild){for(var existingChildren=new Map,existingChild=currentFirstChild;existingChild!==null;)existingChild.key!==null?existingChildren.set(existingChild.key,existingChild):existingChildren.set(existingChild.index,existingChild),existingChild=existingChild.sibling;return existingChildren}function useFiber(fiber,pendingProps){var clone2=createWorkInProgress(fiber,pendingProps);return clone2.index=0,clone2.sibling=null,clone2}function placeChild(newFiber,lastPlacedIndex,newIndex){if(newFiber.index=newIndex,!shouldTrackSideEffects)return newFiber.flags|=Forked,lastPlacedIndex;var current2=newFiber.alternate;if(current2!==null){var oldIndex=current2.index;return oldIndex<lastPlacedIndex?(newFiber.flags|=Placement,lastPlacedIndex):oldIndex}else return newFiber.flags|=Placement,lastPlacedIndex}function placeSingleChild(newFiber){return shouldTrackSideEffects&&newFiber.alternate===null&&(newFiber.flags|=Placement),newFiber}function updateTextNode(returnFiber,current2,textContent,lanes){if(current2===null||current2.tag!==HostText){var created=createFiberFromText(textContent,returnFiber.mode,lanes);return created.return=returnFiber,created}else{var existing=useFiber(current2,textContent);return existing.return=returnFiber,existing}}function updateElement(returnFiber,current2,element,lanes){var elementType=element.type;if(elementType===REACT_FRAGMENT_TYPE)return updateFragment2(returnFiber,current2,element.props.children,lanes,element.key);if(current2!==null&&(current2.elementType===elementType||isCompatibleFamilyForHotReloading(current2,element)||typeof elementType=="object"&&elementType!==null&&elementType.$$typeof===REACT_LAZY_TYPE&&resolveLazy(elementType)===current2.type)){var existing=useFiber(current2,element.props);return existing.ref=coerceRef(returnFiber,current2,element),existing.return=returnFiber,existing._debugSource=element._source,existing._debugOwner=element._owner,existing}var created=createFiberFromElement(element,returnFiber.mode,lanes);return created.ref=coerceRef(returnFiber,current2,element),created.return=returnFiber,created}function updatePortal(returnFiber,current2,portal,lanes){if(current2===null||current2.tag!==HostPortal||current2.stateNode.containerInfo!==portal.containerInfo||current2.stateNode.implementation!==portal.implementation){var created=createFiberFromPortal(portal,returnFiber.mode,lanes);return created.return=returnFiber,created}else{var existing=useFiber(current2,portal.children||[]);return existing.return=returnFiber,existing}}function updateFragment2(returnFiber,current2,fragment,lanes,key){if(current2===null||current2.tag!==Fragment){var created=createFiberFromFragment(fragment,returnFiber.mode,lanes,key);return created.return=returnFiber,created}else{var existing=useFiber(current2,fragment);return existing.return=returnFiber,existing}}function createChild(returnFiber,newChild,lanes){if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"){var created=createFiberFromText(""+newChild,returnFiber.mode,lanes);return created.return=returnFiber,created}if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:{var _created=createFiberFromElement(newChild,returnFiber.mode,lanes);return _created.ref=coerceRef(returnFiber,null,newChild),_created.return=returnFiber,_created}case REACT_PORTAL_TYPE:{var _created2=createFiberFromPortal(newChild,returnFiber.mode,lanes);return _created2.return=returnFiber,_created2}case REACT_LAZY_TYPE:{var payload=newChild._payload,init=newChild._init;return createChild(returnFiber,init(payload),lanes)}}if(isArray(newChild)||getIteratorFn(newChild)){var _created3=createFiberFromFragment(newChild,returnFiber.mode,lanes,null);return _created3.return=returnFiber,_created3}throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="function"&&warnOnFunctionType(returnFiber),null}function updateSlot(returnFiber,oldFiber,newChild,lanes){var key=oldFiber!==null?oldFiber.key:null;if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number")return key!==null?null:updateTextNode(returnFiber,oldFiber,""+newChild,lanes);if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return newChild.key===key?updateElement(returnFiber,oldFiber,newChild,lanes):null;case REACT_PORTAL_TYPE:return newChild.key===key?updatePortal(returnFiber,oldFiber,newChild,lanes):null;case REACT_LAZY_TYPE:{var payload=newChild._payload,init=newChild._init;return updateSlot(returnFiber,oldFiber,init(payload),lanes)}}if(isArray(newChild)||getIteratorFn(newChild))return key!==null?null:updateFragment2(returnFiber,oldFiber,newChild,lanes,null);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="function"&&warnOnFunctionType(returnFiber),null}function updateFromMap(existingChildren,returnFiber,newIdx,newChild,lanes){if(typeof newChild=="string"&&newChild!==""||typeof newChild=="number"){var matchedFiber=existingChildren.get(newIdx)||null;return updateTextNode(returnFiber,matchedFiber,""+newChild,lanes)}if(typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:{var _matchedFiber=existingChildren.get(newChild.key===null?newIdx:newChild.key)||null;return updateElement(returnFiber,_matchedFiber,newChild,lanes)}case REACT_PORTAL_TYPE:{var _matchedFiber2=existingChildren.get(newChild.key===null?newIdx:newChild.key)||null;return updatePortal(returnFiber,_matchedFiber2,newChild,lanes)}case REACT_LAZY_TYPE:var payload=newChild._payload,init=newChild._init;return updateFromMap(existingChildren,returnFiber,newIdx,init(payload),lanes)}if(isArray(newChild)||getIteratorFn(newChild)){var _matchedFiber3=existingChildren.get(newIdx)||null;return updateFragment2(returnFiber,_matchedFiber3,newChild,lanes,null)}throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="function"&&warnOnFunctionType(returnFiber),null}function warnOnInvalidKey(child,knownKeys,returnFiber){{if(typeof child!="object"||child===null)return knownKeys;switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child,returnFiber);var key=child.key;if(typeof key!="string")break;if(knownKeys===null){knownKeys=new Set,knownKeys.add(key);break}if(!knownKeys.has(key)){knownKeys.add(key);break}error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",key);break;case REACT_LAZY_TYPE:var payload=child._payload,init=child._init;warnOnInvalidKey(init(payload),knownKeys,returnFiber);break}}return knownKeys}function reconcileChildrenArray(returnFiber,currentFirstChild,newChildren,lanes){for(var knownKeys=null,i=0;i<newChildren.length;i++){var child=newChildren[i];knownKeys=warnOnInvalidKey(child,knownKeys,returnFiber)}for(var resultingFirstChild=null,previousNewFiber=null,oldFiber=currentFirstChild,lastPlacedIndex=0,newIdx=0,nextOldFiber=null;oldFiber!==null&&newIdx<newChildren.length;newIdx++){oldFiber.index>newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,newChildren[newIdx],lanes);if(newFiber===null){oldFiber===null&&(oldFiber=nextOldFiber);break}shouldTrackSideEffects&&oldFiber&&newFiber.alternate===null&&deleteChild(returnFiber,oldFiber),lastPlacedIndex=placeChild(newFiber,lastPlacedIndex,newIdx),previousNewFiber===null?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber,previousNewFiber=newFiber,oldFiber=nextOldFiber}if(newIdx===newChildren.length){if(deleteRemainingChildren(returnFiber,oldFiber),getIsHydrating()){var numberOfForks=newIdx;pushTreeFork(returnFiber,numberOfForks)}return resultingFirstChild}if(oldFiber===null){for(;newIdx<newChildren.length;newIdx++){var _newFiber=createChild(returnFiber,newChildren[newIdx],lanes);_newFiber!==null&&(lastPlacedIndex=placeChild(_newFiber,lastPlacedIndex,newIdx),previousNewFiber===null?resultingFirstChild=_newFiber:previousNewFiber.sibling=_newFiber,previousNewFiber=_newFiber)}if(getIsHydrating()){var _numberOfForks=newIdx;pushTreeFork(returnFiber,_numberOfForks)}return resultingFirstChild}for(var existingChildren=mapRemainingChildren(returnFiber,oldFiber);newIdx<newChildren.length;newIdx++){var _newFiber2=updateFromMap(existingChildren,returnFiber,newIdx,newChildren[newIdx],lanes);_newFiber2!==null&&(shouldTrackSideEffects&&_newFiber2.alternate!==null&&existingChildren.delete(_newFiber2.key===null?newIdx:_newFiber2.key),lastPlacedIndex=placeChild(_newFiber2,lastPlacedIndex,newIdx),previousNewFiber===null?resultingFirstChild=_newFiber2:previousNewFiber.sibling=_newFiber2,previousNewFiber=_newFiber2)}if(shouldTrackSideEffects&&existingChildren.forEach(function(child2){return deleteChild(returnFiber,child2)}),getIsHydrating()){var _numberOfForks2=newIdx;pushTreeFork(returnFiber,_numberOfForks2)}return resultingFirstChild}function reconcileChildrenIterator(returnFiber,currentFirstChild,newChildrenIterable,lanes){var iteratorFn=getIteratorFn(newChildrenIterable);if(typeof iteratorFn!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&newChildrenIterable[Symbol.toStringTag]==="Generator"&&(didWarnAboutGenerators||error("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),didWarnAboutGenerators=!0),newChildrenIterable.entries===iteratorFn&&(didWarnAboutMaps||error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),didWarnAboutMaps=!0);var _newChildren=iteratorFn.call(newChildrenIterable);if(_newChildren)for(var knownKeys=null,_step=_newChildren.next();!_step.done;_step=_newChildren.next()){var child=_step.value;knownKeys=warnOnInvalidKey(child,knownKeys,returnFiber)}}var newChildren=iteratorFn.call(newChildrenIterable);if(newChildren==null)throw new Error("An iterable object provided no iterator.");for(var resultingFirstChild=null,previousNewFiber=null,oldFiber=currentFirstChild,lastPlacedIndex=0,newIdx=0,nextOldFiber=null,step=newChildren.next();oldFiber!==null&&!step.done;newIdx++,step=newChildren.next()){oldFiber.index>newIdx?(nextOldFiber=oldFiber,oldFiber=null):nextOldFiber=oldFiber.sibling;var newFiber=updateSlot(returnFiber,oldFiber,step.value,lanes);if(newFiber===null){oldFiber===null&&(oldFiber=nextOldFiber);break}shouldTrackSideEffects&&oldFiber&&newFiber.alternate===null&&deleteChild(returnFiber,oldFiber),lastPlacedIndex=placeChild(newFiber,lastPlacedIndex,newIdx),previousNewFiber===null?resultingFirstChild=newFiber:previousNewFiber.sibling=newFiber,previousNewFiber=newFiber,oldFiber=nextOldFiber}if(step.done){if(deleteRemainingChildren(returnFiber,oldFiber),getIsHydrating()){var numberOfForks=newIdx;pushTreeFork(returnFiber,numberOfForks)}return resultingFirstChild}if(oldFiber===null){for(;!step.done;newIdx++,step=newChildren.next()){var _newFiber3=createChild(returnFiber,step.value,lanes);_newFiber3!==null&&(lastPlacedIndex=placeChild(_newFiber3,lastPlacedIndex,newIdx),previousNewFiber===null?resultingFirstChild=_newFiber3:previousNewFiber.sibling=_newFiber3,previousNewFiber=_newFiber3)}if(getIsHydrating()){var _numberOfForks3=newIdx;pushTreeFork(returnFiber,_numberOfForks3)}return resultingFirstChild}for(var existingChildren=mapRemainingChildren(returnFiber,oldFiber);!step.done;newIdx++,step=newChildren.next()){var _newFiber4=updateFromMap(existingChildren,returnFiber,newIdx,step.value,lanes);_newFiber4!==null&&(shouldTrackSideEffects&&_newFiber4.alternate!==null&&existingChildren.delete(_newFiber4.key===null?newIdx:_newFiber4.key),lastPlacedIndex=placeChild(_newFiber4,lastPlacedIndex,newIdx),previousNewFiber===null?resultingFirstChild=_newFiber4:previousNewFiber.sibling=_newFiber4,previousNewFiber=_newFiber4)}if(shouldTrackSideEffects&&existingChildren.forEach(function(child2){return deleteChild(returnFiber,child2)}),getIsHydrating()){var _numberOfForks4=newIdx;pushTreeFork(returnFiber,_numberOfForks4)}return resultingFirstChild}function reconcileSingleTextNode(returnFiber,currentFirstChild,textContent,lanes){if(currentFirstChild!==null&&currentFirstChild.tag===HostText){deleteRemainingChildren(returnFiber,currentFirstChild.sibling);var existing=useFiber(currentFirstChild,textContent);return existing.return=returnFiber,existing}deleteRemainingChildren(returnFiber,currentFirstChild);var created=createFiberFromText(textContent,returnFiber.mode,lanes);return created.return=returnFiber,created}function reconcileSingleElement(returnFiber,currentFirstChild,element,lanes){for(var key=element.key,child=currentFirstChild;child!==null;){if(child.key===key){var elementType=element.type;if(elementType===REACT_FRAGMENT_TYPE){if(child.tag===Fragment){deleteRemainingChildren(returnFiber,child.sibling);var existing=useFiber(child,element.props.children);return existing.return=returnFiber,existing._debugSource=element._source,existing._debugOwner=element._owner,existing}}else if(child.elementType===elementType||isCompatibleFamilyForHotReloading(child,element)||typeof elementType=="object"&&elementType!==null&&elementType.$$typeof===REACT_LAZY_TYPE&&resolveLazy(elementType)===child.type){deleteRemainingChildren(returnFiber,child.sibling);var _existing=useFiber(child,element.props);return _existing.ref=coerceRef(returnFiber,child,element),_existing.return=returnFiber,_existing._debugSource=element._source,_existing._debugOwner=element._owner,_existing}deleteRemainingChildren(returnFiber,child);break}else deleteChild(returnFiber,child);child=child.sibling}if(element.type===REACT_FRAGMENT_TYPE){var created=createFiberFromFragment(element.props.children,returnFiber.mode,lanes,element.key);return created.return=returnFiber,created}else{var _created4=createFiberFromElement(element,returnFiber.mode,lanes);return _created4.ref=coerceRef(returnFiber,currentFirstChild,element),_created4.return=returnFiber,_created4}}function reconcileSinglePortal(returnFiber,currentFirstChild,portal,lanes){for(var key=portal.key,child=currentFirstChild;child!==null;){if(child.key===key)if(child.tag===HostPortal&&child.stateNode.containerInfo===portal.containerInfo&&child.stateNode.implementation===portal.implementation){deleteRemainingChildren(returnFiber,child.sibling);var existing=useFiber(child,portal.children||[]);return existing.return=returnFiber,existing}else{deleteRemainingChildren(returnFiber,child);break}else deleteChild(returnFiber,child);child=child.sibling}var created=createFiberFromPortal(portal,returnFiber.mode,lanes);return created.return=returnFiber,created}function reconcileChildFibers2(returnFiber,currentFirstChild,newChild,lanes){var isUnkeyedTopLevelFragment=typeof newChild=="object"&&newChild!==null&&newChild.type===REACT_FRAGMENT_TYPE&&newChild.key===null;if(isUnkeyedTopLevelFragment&&(newChild=newChild.props.children),typeof newChild=="object"&&newChild!==null){switch(newChild.$$typeof){case REACT_ELEMENT_TYPE:return placeSingleChild(reconcileSingleElement(returnFiber,currentFirstChild,newChild,lanes));case REACT_PORTAL_TYPE:return placeSingleChild(reconcileSinglePortal(returnFiber,currentFirstChild,newChild,lanes));case REACT_LAZY_TYPE:var payload=newChild._payload,init=newChild._init;return reconcileChildFibers2(returnFiber,currentFirstChild,init(payload),lanes)}if(isArray(newChild))return reconcileChildrenArray(returnFiber,currentFirstChild,newChild,lanes);if(getIteratorFn(newChild))return reconcileChildrenIterator(returnFiber,currentFirstChild,newChild,lanes);throwOnInvalidObjectType(returnFiber,newChild)}return typeof newChild=="string"&&newChild!==""||typeof newChild=="number"?placeSingleChild(reconcileSingleTextNode(returnFiber,currentFirstChild,""+newChild,lanes)):(typeof newChild=="function"&&warnOnFunctionType(returnFiber),deleteRemainingChildren(returnFiber,currentFirstChild))}return reconcileChildFibers2}var reconcileChildFibers=ChildReconciler(!0),mountChildFibers=ChildReconciler(!1);function cloneChildFibers(current2,workInProgress2){if(current2!==null&&workInProgress2.child!==current2.child)throw new Error("Resuming work not yet implemented.");if(workInProgress2.child!==null){var currentChild=workInProgress2.child,newChild=createWorkInProgress(currentChild,currentChild.pendingProps);for(workInProgress2.child=newChild,newChild.return=workInProgress2;currentChild.sibling!==null;)currentChild=currentChild.sibling,newChild=newChild.sibling=createWorkInProgress(currentChild,currentChild.pendingProps),newChild.return=workInProgress2;newChild.sibling=null}}function resetChildFibers(workInProgress2,lanes){for(var child=workInProgress2.child;child!==null;)resetWorkInProgress(child,lanes),child=child.sibling}var valueCursor=createCursor(null),rendererSigil;rendererSigil={};var currentlyRenderingFiber=null,lastContextDependency=null,lastFullyObservedContext=null,isDisallowedContextReadInDEV=!1;function resetContextDependencies(){currentlyRenderingFiber=null,lastContextDependency=null,lastFullyObservedContext=null,isDisallowedContextReadInDEV=!1}function enterDisallowedContextReadInDEV(){isDisallowedContextReadInDEV=!0}function exitDisallowedContextReadInDEV(){isDisallowedContextReadInDEV=!1}function pushProvider(providerFiber,context,nextValue){push(valueCursor,context._currentValue,providerFiber),context._currentValue=nextValue,context._currentRenderer!==void 0&&context._currentRenderer!==null&&context._currentRenderer!==rendererSigil&&error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),context._currentRenderer=rendererSigil}function popProvider(context,providerFiber){var currentValue=valueCursor.current;pop(valueCursor,providerFiber),context._currentValue=currentValue}function scheduleContextWorkOnParentPath(parent,renderLanes2,propagationRoot){for(var node=parent;node!==null;){var alternate=node.alternate;if(isSubsetOfLanes(node.childLanes,renderLanes2)?alternate!==null&&!isSubsetOfLanes(alternate.childLanes,renderLanes2)&&(alternate.childLanes=mergeLanes(alternate.childLanes,renderLanes2)):(node.childLanes=mergeLanes(node.childLanes,renderLanes2),alternate!==null&&(alternate.childLanes=mergeLanes(alternate.childLanes,renderLanes2))),node===propagationRoot)break;node=node.return}node!==propagationRoot&&error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function propagateContextChange(workInProgress2,context,renderLanes2){propagateContextChange_eager(workInProgress2,context,renderLanes2)}function propagateContextChange_eager(workInProgress2,context,renderLanes2){var fiber=workInProgress2.child;for(fiber!==null&&(fiber.return=workInProgress2);fiber!==null;){var nextFiber=void 0,list=fiber.dependencies;if(list!==null){nextFiber=fiber.child;for(var dependency=list.firstContext;dependency!==null;){if(dependency.context===context){if(fiber.tag===ClassComponent){var lane=pickArbitraryLane(renderLanes2),update=createUpdate(NoTimestamp,lane);update.tag=ForceUpdate;var updateQueue=fiber.updateQueue;if(updateQueue!==null){var sharedQueue=updateQueue.shared,pending=sharedQueue.pending;pending===null?update.next=update:(update.next=pending.next,pending.next=update),sharedQueue.pending=update}}fiber.lanes=mergeLanes(fiber.lanes,renderLanes2);var alternate=fiber.alternate;alternate!==null&&(alternate.lanes=mergeLanes(alternate.lanes,renderLanes2)),scheduleContextWorkOnParentPath(fiber.return,renderLanes2,workInProgress2),list.lanes=mergeLanes(list.lanes,renderLanes2);break}dependency=dependency.next}}else if(fiber.tag===ContextProvider)nextFiber=fiber.type===workInProgress2.type?null:fiber.child;else if(fiber.tag===DehydratedFragment){var parentSuspense=fiber.return;if(parentSuspense===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");parentSuspense.lanes=mergeLanes(parentSuspense.lanes,renderLanes2);var _alternate=parentSuspense.alternate;_alternate!==null&&(_alternate.lanes=mergeLanes(_alternate.lanes,renderLanes2)),scheduleContextWorkOnParentPath(parentSuspense,renderLanes2,workInProgress2),nextFiber=fiber.sibling}else nextFiber=fiber.child;if(nextFiber!==null)nextFiber.return=fiber;else for(nextFiber=fiber;nextFiber!==null;){if(nextFiber===workInProgress2){nextFiber=null;break}var sibling=nextFiber.sibling;if(sibling!==null){sibling.return=nextFiber.return,nextFiber=sibling;break}nextFiber=nextFiber.return}fiber=nextFiber}}function prepareToReadContext(workInProgress2,renderLanes2){currentlyRenderingFiber=workInProgress2,lastContextDependency=null,lastFullyObservedContext=null;var dependencies=workInProgress2.dependencies;if(dependencies!==null){var firstContext=dependencies.firstContext;firstContext!==null&&(includesSomeLane(dependencies.lanes,renderLanes2)&&markWorkInProgressReceivedUpdate(),dependencies.firstContext=null)}}function readContext(context){isDisallowedContextReadInDEV&&error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var value=context._currentValue;if(lastFullyObservedContext!==context){var contextItem={context,memoizedValue:value,next:null};if(lastContextDependency===null){if(currentlyRenderingFiber===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");lastContextDependency=contextItem,currentlyRenderingFiber.dependencies={lanes:NoLanes,firstContext:contextItem}}else lastContextDependency=lastContextDependency.next=contextItem}return value}var concurrentQueues=null;function pushConcurrentUpdateQueue(queue){concurrentQueues===null?concurrentQueues=[queue]:concurrentQueues.push(queue)}function finishQueueingConcurrentUpdates(){if(concurrentQueues!==null){for(var i=0;i<concurrentQueues.length;i++){var queue=concurrentQueues[i],lastInterleavedUpdate=queue.interleaved;if(lastInterleavedUpdate!==null){queue.interleaved=null;var firstInterleavedUpdate=lastInterleavedUpdate.next,lastPendingUpdate=queue.pending;if(lastPendingUpdate!==null){var firstPendingUpdate=lastPendingUpdate.next;lastPendingUpdate.next=firstInterleavedUpdate,lastInterleavedUpdate.next=firstPendingUpdate}queue.pending=lastInterleavedUpdate}}concurrentQueues=null}}function enqueueConcurrentHookUpdate(fiber,queue,update,lane){var interleaved=queue.interleaved;return interleaved===null?(update.next=update,pushConcurrentUpdateQueue(queue)):(update.next=interleaved.next,interleaved.next=update),queue.interleaved=update,markUpdateLaneFromFiberToRoot(fiber,lane)}function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber,queue,update,lane){var interleaved=queue.interleaved;interleaved===null?(update.next=update,pushConcurrentUpdateQueue(queue)):(update.next=interleaved.next,interleaved.next=update),queue.interleaved=update}function enqueueConcurrentClassUpdate(fiber,queue,update,lane){var interleaved=queue.interleaved;return interleaved===null?(update.next=update,pushConcurrentUpdateQueue(queue)):(update.next=interleaved.next,interleaved.next=update),queue.interleaved=update,markUpdateLaneFromFiberToRoot(fiber,lane)}function enqueueConcurrentRenderForLane(fiber,lane){return markUpdateLaneFromFiberToRoot(fiber,lane)}var unsafe_markUpdateLaneFromFiberToRoot=markUpdateLaneFromFiberToRoot;function markUpdateLaneFromFiberToRoot(sourceFiber,lane){sourceFiber.lanes=mergeLanes(sourceFiber.lanes,lane);var alternate=sourceFiber.alternate;alternate!==null&&(alternate.lanes=mergeLanes(alternate.lanes,lane)),alternate===null&&(sourceFiber.flags&(Placement|Hydrating))!==NoFlags&&warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);for(var node=sourceFiber,parent=sourceFiber.return;parent!==null;)parent.childLanes=mergeLanes(parent.childLanes,lane),alternate=parent.alternate,alternate!==null?alternate.childLanes=mergeLanes(alternate.childLanes,lane):(parent.flags&(Placement|Hydrating))!==NoFlags&&warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber),node=parent,parent=parent.return;if(node.tag===HostRoot){var root3=node.stateNode;return root3}else return null}var UpdateState=0,ReplaceState=1,ForceUpdate=2,CaptureUpdate=3,hasForceUpdate=!1,didWarnUpdateInsideUpdate,currentlyProcessingQueue;didWarnUpdateInsideUpdate=!1,currentlyProcessingQueue=null;function initializeUpdateQueue(fiber){var queue={baseState:fiber.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:NoLanes},effects:null};fiber.updateQueue=queue}function cloneUpdateQueue(current2,workInProgress2){var queue=workInProgress2.updateQueue,currentQueue=current2.updateQueue;if(queue===currentQueue){var clone2={baseState:currentQueue.baseState,firstBaseUpdate:currentQueue.firstBaseUpdate,lastBaseUpdate:currentQueue.lastBaseUpdate,shared:currentQueue.shared,effects:currentQueue.effects};workInProgress2.updateQueue=clone2}}function createUpdate(eventTime,lane){var update={eventTime,lane,tag:UpdateState,payload:null,callback:null,next:null};return update}function enqueueUpdate(fiber,update,lane){var updateQueue=fiber.updateQueue;if(updateQueue===null)return null;var sharedQueue=updateQueue.shared;if(currentlyProcessingQueue===sharedQueue&&!didWarnUpdateInsideUpdate&&(error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),didWarnUpdateInsideUpdate=!0),isUnsafeClassRenderPhaseUpdate()){var pending=sharedQueue.pending;return pending===null?update.next=update:(update.next=pending.next,pending.next=update),sharedQueue.pending=update,unsafe_markUpdateLaneFromFiberToRoot(fiber,lane)}else return enqueueConcurrentClassUpdate(fiber,sharedQueue,update,lane)}function entangleTransitions(root3,fiber,lane){var updateQueue=fiber.updateQueue;if(updateQueue!==null){var sharedQueue=updateQueue.shared;if(isTransitionLane(lane)){var queueLanes=sharedQueue.lanes;queueLanes=intersectLanes(queueLanes,root3.pendingLanes);var newQueueLanes=mergeLanes(queueLanes,lane);sharedQueue.lanes=newQueueLanes,markRootEntangled(root3,newQueueLanes)}}}function enqueueCapturedUpdate(workInProgress2,capturedUpdate){var queue=workInProgress2.updateQueue,current2=workInProgress2.alternate;if(current2!==null){var currentQueue=current2.updateQueue;if(queue===currentQueue){var newFirst=null,newLast=null,firstBaseUpdate=queue.firstBaseUpdate;if(firstBaseUpdate!==null){var update=firstBaseUpdate;do{var clone2={eventTime:update.eventTime,lane:update.lane,tag:update.tag,payload:update.payload,callback:update.callback,next:null};newLast===null?newFirst=newLast=clone2:(newLast.next=clone2,newLast=clone2),update=update.next}while(update!==null);newLast===null?newFirst=newLast=capturedUpdate:(newLast.next=capturedUpdate,newLast=capturedUpdate)}else newFirst=newLast=capturedUpdate;queue={baseState:currentQueue.baseState,firstBaseUpdate:newFirst,lastBaseUpdate:newLast,shared:currentQueue.shared,effects:currentQueue.effects},workInProgress2.updateQueue=queue;return}}var lastBaseUpdate=queue.lastBaseUpdate;lastBaseUpdate===null?queue.firstBaseUpdate=capturedUpdate:lastBaseUpdate.next=capturedUpdate,queue.lastBaseUpdate=capturedUpdate}function getStateFromUpdate(workInProgress2,queue,update,prevState,nextProps,instance){switch(update.tag){case ReplaceState:{var payload=update.payload;if(typeof payload=="function"){enterDisallowedContextReadInDEV();var nextState=payload.call(instance,prevState,nextProps);{if(workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{payload.call(instance,prevState,nextProps)}finally{setIsStrictModeForDevtools(!1)}}exitDisallowedContextReadInDEV()}return nextState}return payload}case CaptureUpdate:workInProgress2.flags=workInProgress2.flags&-65537|DidCapture;case UpdateState:{var _payload=update.payload,partialState;if(typeof _payload=="function"){enterDisallowedContextReadInDEV(),partialState=_payload.call(instance,prevState,nextProps);{if(workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{_payload.call(instance,prevState,nextProps)}finally{setIsStrictModeForDevtools(!1)}}exitDisallowedContextReadInDEV()}}else partialState=_payload;return partialState==null?prevState:assign({},prevState,partialState)}case ForceUpdate:return hasForceUpdate=!0,prevState}return prevState}function processUpdateQueue(workInProgress2,props,instance,renderLanes2){var queue=workInProgress2.updateQueue;hasForceUpdate=!1,currentlyProcessingQueue=queue.shared;var firstBaseUpdate=queue.firstBaseUpdate,lastBaseUpdate=queue.lastBaseUpdate,pendingQueue=queue.shared.pending;if(pendingQueue!==null){queue.shared.pending=null;var lastPendingUpdate=pendingQueue,firstPendingUpdate=lastPendingUpdate.next;lastPendingUpdate.next=null,lastBaseUpdate===null?firstBaseUpdate=firstPendingUpdate:lastBaseUpdate.next=firstPendingUpdate,lastBaseUpdate=lastPendingUpdate;var current2=workInProgress2.alternate;if(current2!==null){var currentQueue=current2.updateQueue,currentLastBaseUpdate=currentQueue.lastBaseUpdate;currentLastBaseUpdate!==lastBaseUpdate&&(currentLastBaseUpdate===null?currentQueue.firstBaseUpdate=firstPendingUpdate:currentLastBaseUpdate.next=firstPendingUpdate,currentQueue.lastBaseUpdate=lastPendingUpdate)}}if(firstBaseUpdate!==null){var newState=queue.baseState,newLanes=NoLanes,newBaseState=null,newFirstBaseUpdate=null,newLastBaseUpdate=null,update=firstBaseUpdate;do{var updateLane=update.lane,updateEventTime=update.eventTime;if(isSubsetOfLanes(renderLanes2,updateLane)){if(newLastBaseUpdate!==null){var _clone={eventTime:updateEventTime,lane:NoLane,tag:update.tag,payload:update.payload,callback:update.callback,next:null};newLastBaseUpdate=newLastBaseUpdate.next=_clone}newState=getStateFromUpdate(workInProgress2,queue,update,newState,props,instance);var callback=update.callback;if(callback!==null&&update.lane!==NoLane){workInProgress2.flags|=Callback;var effects=queue.effects;effects===null?queue.effects=[update]:effects.push(update)}}else{var clone2={eventTime:updateEventTime,lane:updateLane,tag:update.tag,payload:update.payload,callback:update.callback,next:null};newLastBaseUpdate===null?(newFirstBaseUpdate=newLastBaseUpdate=clone2,newBaseState=newState):newLastBaseUpdate=newLastBaseUpdate.next=clone2,newLanes=mergeLanes(newLanes,updateLane)}if(update=update.next,update===null){if(pendingQueue=queue.shared.pending,pendingQueue===null)break;var _lastPendingUpdate=pendingQueue,_firstPendingUpdate=_lastPendingUpdate.next;_lastPendingUpdate.next=null,update=_firstPendingUpdate,queue.lastBaseUpdate=_lastPendingUpdate,queue.shared.pending=null}}while(!0);newLastBaseUpdate===null&&(newBaseState=newState),queue.baseState=newBaseState,queue.firstBaseUpdate=newFirstBaseUpdate,queue.lastBaseUpdate=newLastBaseUpdate;var lastInterleaved=queue.shared.interleaved;if(lastInterleaved!==null){var interleaved=lastInterleaved;do newLanes=mergeLanes(newLanes,interleaved.lane),interleaved=interleaved.next;while(interleaved!==lastInterleaved)}else firstBaseUpdate===null&&(queue.shared.lanes=NoLanes);markSkippedUpdateLanes(newLanes),workInProgress2.lanes=newLanes,workInProgress2.memoizedState=newState}currentlyProcessingQueue=null}function callCallback(callback,context){if(typeof callback!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+callback));callback.call(context)}function resetHasForceUpdateBeforeProcessing(){hasForceUpdate=!1}function checkHasForceUpdateAfterProcessing(){return hasForceUpdate}function commitUpdateQueue(finishedWork,finishedQueue,instance){var effects=finishedQueue.effects;if(finishedQueue.effects=null,effects!==null)for(var i=0;i<effects.length;i++){var effect=effects[i],callback=effect.callback;callback!==null&&(effect.callback=null,callCallback(callback,instance))}}var NO_CONTEXT={},contextStackCursor$1=createCursor(NO_CONTEXT),contextFiberStackCursor=createCursor(NO_CONTEXT),rootInstanceStackCursor=createCursor(NO_CONTEXT);function requiredContext(c2){if(c2===NO_CONTEXT)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return c2}function getRootHostContainer(){var rootInstance=requiredContext(rootInstanceStackCursor.current);return rootInstance}function pushHostContainer(fiber,nextRootInstance){push(rootInstanceStackCursor,nextRootInstance,fiber),push(contextFiberStackCursor,fiber,fiber),push(contextStackCursor$1,NO_CONTEXT,fiber);var nextRootContext=getRootHostContext(nextRootInstance);pop(contextStackCursor$1,fiber),push(contextStackCursor$1,nextRootContext,fiber)}function popHostContainer(fiber){pop(contextStackCursor$1,fiber),pop(contextFiberStackCursor,fiber),pop(rootInstanceStackCursor,fiber)}function getHostContext(){var context=requiredContext(contextStackCursor$1.current);return context}function pushHostContext(fiber){requiredContext(rootInstanceStackCursor.current);var context=requiredContext(contextStackCursor$1.current),nextContext=getChildHostContext(context,fiber.type);context!==nextContext&&(push(contextFiberStackCursor,fiber,fiber),push(contextStackCursor$1,nextContext,fiber))}function popHostContext(fiber){contextFiberStackCursor.current===fiber&&(pop(contextStackCursor$1,fiber),pop(contextFiberStackCursor,fiber))}var DefaultSuspenseContext=0,SubtreeSuspenseContextMask=1,InvisibleParentSuspenseContext=1,ForceSuspenseFallback=2,suspenseStackCursor=createCursor(DefaultSuspenseContext);function hasSuspenseContext(parentContext,flag){return(parentContext&flag)!==0}function setDefaultShallowSuspenseContext(parentContext){return parentContext&SubtreeSuspenseContextMask}function setShallowSuspenseContext(parentContext,shallowContext){return parentContext&SubtreeSuspenseContextMask|shallowContext}function addSubtreeSuspenseContext(parentContext,subtreeContext){return parentContext|subtreeContext}function pushSuspenseContext(fiber,newContext){push(suspenseStackCursor,newContext,fiber)}function popSuspenseContext(fiber){pop(suspenseStackCursor,fiber)}function shouldCaptureSuspense(workInProgress2,hasInvisibleParent){var nextState=workInProgress2.memoizedState;return nextState!==null?nextState.dehydrated!==null:(workInProgress2.memoizedProps,!0)}function findFirstSuspended(row2){for(var node=row2;node!==null;){if(node.tag===SuspenseComponent){var state=node.memoizedState;if(state!==null){var dehydrated=state.dehydrated;if(dehydrated===null||isSuspenseInstancePending(dehydrated)||isSuspenseInstanceFallback(dehydrated))return node}}else if(node.tag===SuspenseListComponent&&node.memoizedProps.revealOrder!==void 0){var didSuspend=(node.flags&DidCapture)!==NoFlags;if(didSuspend)return node}else if(node.child!==null){node.child.return=node,node=node.child;continue}if(node===row2)return null;for(;node.sibling===null;){if(node.return===null||node.return===row2)return null;node=node.return}node.sibling.return=node.return,node=node.sibling}return null}var NoFlags$1=0,HasEffect=1,Insertion=2,Layout=4,Passive$1=8,workInProgressSources=[];function resetWorkInProgressVersions(){for(var i=0;i<workInProgressSources.length;i++){var mutableSource=workInProgressSources[i];mutableSource._workInProgressVersionPrimary=null}workInProgressSources.length=0}function registerMutableSourceForHydration(root3,mutableSource){var getVersion=mutableSource._getVersion,version=getVersion(mutableSource._source);root3.mutableSourceEagerHydrationData==null?root3.mutableSourceEagerHydrationData=[mutableSource,version]:root3.mutableSourceEagerHydrationData.push(mutableSource,version)}var ReactCurrentDispatcher$1=ReactSharedInternals.ReactCurrentDispatcher,ReactCurrentBatchConfig$2=ReactSharedInternals.ReactCurrentBatchConfig,didWarnAboutMismatchedHooksForComponent,didWarnUncachedGetSnapshot;didWarnAboutMismatchedHooksForComponent=new Set;var renderLanes=NoLanes,currentlyRenderingFiber$1=null,currentHook=null,workInProgressHook=null,didScheduleRenderPhaseUpdate=!1,didScheduleRenderPhaseUpdateDuringThisPass=!1,localIdCounter=0,globalClientIdCounter=0,RE_RENDER_LIMIT=25,currentHookNameInDev=null,hookTypesDev=null,hookTypesUpdateIndexDev=-1,ignorePreviousDependencies=!1;function mountHookTypesDev(){{var hookName=currentHookNameInDev;hookTypesDev===null?hookTypesDev=[hookName]:hookTypesDev.push(hookName)}}function updateHookTypesDev(){{var hookName=currentHookNameInDev;hookTypesDev!==null&&(hookTypesUpdateIndexDev++,hookTypesDev[hookTypesUpdateIndexDev]!==hookName&&warnOnHookMismatchInDev(hookName))}}function checkDepsAreArrayDev(deps){deps!=null&&!isArray(deps)&&error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",currentHookNameInDev,typeof deps)}function warnOnHookMismatchInDev(currentHookName){{var componentName=getComponentNameFromFiber(currentlyRenderingFiber$1);if(!didWarnAboutMismatchedHooksForComponent.has(componentName)&&(didWarnAboutMismatchedHooksForComponent.add(componentName),hookTypesDev!==null)){for(var table="",secondColumnStart=30,i=0;i<=hookTypesUpdateIndexDev;i++){for(var oldHookName=hookTypesDev[i],newHookName=i===hookTypesUpdateIndexDev?currentHookName:oldHookName,row2=i+1+". "+oldHookName;row2.length<secondColumnStart;)row2+=" ";row2+=newHookName+`
140
- `,table+=row2}error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
141
-
142
- Previous render Next render
143
- ------------------------------------------------------
144
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
145
- `,componentName,table)}}}function throwInvalidHookError(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
146
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
147
- 2. You might be breaking the Rules of Hooks
148
- 3. You might have more than one copy of React in the same app
149
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function areHookInputsEqual(nextDeps,prevDeps){if(ignorePreviousDependencies)return!1;if(prevDeps===null)return error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",currentHookNameInDev),!1;nextDeps.length!==prevDeps.length&&error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
150
-
151
- Previous: %s
152
- Incoming: %s`,currentHookNameInDev,"["+prevDeps.join(", ")+"]","["+nextDeps.join(", ")+"]");for(var i=0;i<prevDeps.length&&i<nextDeps.length;i++)if(!objectIs(nextDeps[i],prevDeps[i]))return!1;return!0}function renderWithHooks(current2,workInProgress2,Component,props,secondArg,nextRenderLanes){renderLanes=nextRenderLanes,currentlyRenderingFiber$1=workInProgress2,hookTypesDev=current2!==null?current2._debugHookTypes:null,hookTypesUpdateIndexDev=-1,ignorePreviousDependencies=current2!==null&&current2.type!==workInProgress2.type,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.lanes=NoLanes,current2!==null&&current2.memoizedState!==null?ReactCurrentDispatcher$1.current=HooksDispatcherOnUpdateInDEV:hookTypesDev!==null?ReactCurrentDispatcher$1.current=HooksDispatcherOnMountWithHookTypesInDEV:ReactCurrentDispatcher$1.current=HooksDispatcherOnMountInDEV;var children=Component(props,secondArg);if(didScheduleRenderPhaseUpdateDuringThisPass){var numberOfReRenders=0;do{if(didScheduleRenderPhaseUpdateDuringThisPass=!1,localIdCounter=0,numberOfReRenders>=RE_RENDER_LIMIT)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");numberOfReRenders+=1,ignorePreviousDependencies=!1,currentHook=null,workInProgressHook=null,workInProgress2.updateQueue=null,hookTypesUpdateIndexDev=-1,ReactCurrentDispatcher$1.current=HooksDispatcherOnRerenderInDEV,children=Component(props,secondArg)}while(didScheduleRenderPhaseUpdateDuringThisPass)}ReactCurrentDispatcher$1.current=ContextOnlyDispatcher,workInProgress2._debugHookTypes=hookTypesDev;var didRenderTooFewHooks=currentHook!==null&&currentHook.next!==null;if(renderLanes=NoLanes,currentlyRenderingFiber$1=null,currentHook=null,workInProgressHook=null,currentHookNameInDev=null,hookTypesDev=null,hookTypesUpdateIndexDev=-1,current2!==null&&(current2.flags&StaticMask)!==(workInProgress2.flags&StaticMask)&&(current2.mode&ConcurrentMode)!==NoMode&&error("Internal React error: Expected static flag was missing. Please notify the React team."),didScheduleRenderPhaseUpdate=!1,didRenderTooFewHooks)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return children}function checkDidRenderIdHook(){var didRenderIdHook=localIdCounter!==0;return localIdCounter=0,didRenderIdHook}function bailoutHooks(current2,workInProgress2,lanes){workInProgress2.updateQueue=current2.updateQueue,(workInProgress2.mode&StrictEffectsMode)!==NoMode?workInProgress2.flags&=-50333701:workInProgress2.flags&=-2053,current2.lanes=removeLanes(current2.lanes,lanes)}function resetHooksAfterThrow(){if(ReactCurrentDispatcher$1.current=ContextOnlyDispatcher,didScheduleRenderPhaseUpdate){for(var hook=currentlyRenderingFiber$1.memoizedState;hook!==null;){var queue=hook.queue;queue!==null&&(queue.pending=null),hook=hook.next}didScheduleRenderPhaseUpdate=!1}renderLanes=NoLanes,currentlyRenderingFiber$1=null,currentHook=null,workInProgressHook=null,hookTypesDev=null,hookTypesUpdateIndexDev=-1,currentHookNameInDev=null,isUpdatingOpaqueValueInRenderPhase=!1,didScheduleRenderPhaseUpdateDuringThisPass=!1,localIdCounter=0}function mountWorkInProgressHook(){var hook={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return workInProgressHook===null?currentlyRenderingFiber$1.memoizedState=workInProgressHook=hook:workInProgressHook=workInProgressHook.next=hook,workInProgressHook}function updateWorkInProgressHook(){var nextCurrentHook;if(currentHook===null){var current2=currentlyRenderingFiber$1.alternate;current2!==null?nextCurrentHook=current2.memoizedState:nextCurrentHook=null}else nextCurrentHook=currentHook.next;var nextWorkInProgressHook;if(workInProgressHook===null?nextWorkInProgressHook=currentlyRenderingFiber$1.memoizedState:nextWorkInProgressHook=workInProgressHook.next,nextWorkInProgressHook!==null)workInProgressHook=nextWorkInProgressHook,nextWorkInProgressHook=workInProgressHook.next,currentHook=nextCurrentHook;else{if(nextCurrentHook===null)throw new Error("Rendered more hooks than during the previous render.");currentHook=nextCurrentHook;var newHook={memoizedState:currentHook.memoizedState,baseState:currentHook.baseState,baseQueue:currentHook.baseQueue,queue:currentHook.queue,next:null};workInProgressHook===null?currentlyRenderingFiber$1.memoizedState=workInProgressHook=newHook:workInProgressHook=workInProgressHook.next=newHook}return workInProgressHook}function createFunctionComponentUpdateQueue(){return{lastEffect:null,stores:null}}function basicStateReducer(state,action){return typeof action=="function"?action(state):action}function mountReducer(reducer,initialArg,init){var hook=mountWorkInProgressHook(),initialState;init!==void 0?initialState=init(initialArg):initialState=initialArg,hook.memoizedState=hook.baseState=initialState;var queue={pending:null,interleaved:null,lanes:NoLanes,dispatch:null,lastRenderedReducer:reducer,lastRenderedState:initialState};hook.queue=queue;var dispatch=queue.dispatch=dispatchReducerAction.bind(null,currentlyRenderingFiber$1,queue);return[hook.memoizedState,dispatch]}function updateReducer(reducer,initialArg,init){var hook=updateWorkInProgressHook(),queue=hook.queue;if(queue===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");queue.lastRenderedReducer=reducer;var current2=currentHook,baseQueue=current2.baseQueue,pendingQueue=queue.pending;if(pendingQueue!==null){if(baseQueue!==null){var baseFirst=baseQueue.next,pendingFirst=pendingQueue.next;baseQueue.next=pendingFirst,pendingQueue.next=baseFirst}current2.baseQueue!==baseQueue&&error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),current2.baseQueue=baseQueue=pendingQueue,queue.pending=null}if(baseQueue!==null){var first=baseQueue.next,newState=current2.baseState,newBaseState=null,newBaseQueueFirst=null,newBaseQueueLast=null,update=first;do{var updateLane=update.lane;if(isSubsetOfLanes(renderLanes,updateLane)){if(newBaseQueueLast!==null){var _clone={lane:NoLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null};newBaseQueueLast=newBaseQueueLast.next=_clone}if(update.hasEagerState)newState=update.eagerState;else{var action=update.action;newState=reducer(newState,action)}}else{var clone2={lane:updateLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null};newBaseQueueLast===null?(newBaseQueueFirst=newBaseQueueLast=clone2,newBaseState=newState):newBaseQueueLast=newBaseQueueLast.next=clone2,currentlyRenderingFiber$1.lanes=mergeLanes(currentlyRenderingFiber$1.lanes,updateLane),markSkippedUpdateLanes(updateLane)}update=update.next}while(update!==null&&update!==first);newBaseQueueLast===null?newBaseState=newState:newBaseQueueLast.next=newBaseQueueFirst,objectIs(newState,hook.memoizedState)||markWorkInProgressReceivedUpdate(),hook.memoizedState=newState,hook.baseState=newBaseState,hook.baseQueue=newBaseQueueLast,queue.lastRenderedState=newState}var lastInterleaved=queue.interleaved;if(lastInterleaved!==null){var interleaved=lastInterleaved;do{var interleavedLane=interleaved.lane;currentlyRenderingFiber$1.lanes=mergeLanes(currentlyRenderingFiber$1.lanes,interleavedLane),markSkippedUpdateLanes(interleavedLane),interleaved=interleaved.next}while(interleaved!==lastInterleaved)}else baseQueue===null&&(queue.lanes=NoLanes);var dispatch=queue.dispatch;return[hook.memoizedState,dispatch]}function rerenderReducer(reducer,initialArg,init){var hook=updateWorkInProgressHook(),queue=hook.queue;if(queue===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");queue.lastRenderedReducer=reducer;var dispatch=queue.dispatch,lastRenderPhaseUpdate=queue.pending,newState=hook.memoizedState;if(lastRenderPhaseUpdate!==null){queue.pending=null;var firstRenderPhaseUpdate=lastRenderPhaseUpdate.next,update=firstRenderPhaseUpdate;do{var action=update.action;newState=reducer(newState,action),update=update.next}while(update!==firstRenderPhaseUpdate);objectIs(newState,hook.memoizedState)||markWorkInProgressReceivedUpdate(),hook.memoizedState=newState,hook.baseQueue===null&&(hook.baseState=newState),queue.lastRenderedState=newState}return[newState,dispatch]}function mountMutableSource(source,getSnapshot,subscribe){}function updateMutableSource(source,getSnapshot,subscribe){}function mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var fiber=currentlyRenderingFiber$1,hook=mountWorkInProgressHook(),nextSnapshot,isHydrating2=getIsHydrating();if(isHydrating2){if(getServerSnapshot===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");nextSnapshot=getServerSnapshot(),didWarnUncachedGetSnapshot||nextSnapshot!==getServerSnapshot()&&(error("The result of getServerSnapshot should be cached to avoid an infinite loop"),didWarnUncachedGetSnapshot=!0)}else{if(nextSnapshot=getSnapshot(),!didWarnUncachedGetSnapshot){var cachedSnapshot=getSnapshot();objectIs(nextSnapshot,cachedSnapshot)||(error("The result of getSnapshot should be cached to avoid an infinite loop"),didWarnUncachedGetSnapshot=!0)}var root3=getWorkInProgressRoot();if(root3===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");includesBlockingLane(root3,renderLanes)||pushStoreConsistencyCheck(fiber,getSnapshot,nextSnapshot)}hook.memoizedState=nextSnapshot;var inst={value:nextSnapshot,getSnapshot};return hook.queue=inst,mountEffect(subscribeToStore.bind(null,fiber,inst,subscribe),[subscribe]),fiber.flags|=Passive,pushEffect(HasEffect|Passive$1,updateStoreInstance.bind(null,fiber,inst,nextSnapshot,getSnapshot),void 0,null),nextSnapshot}function updateSyncExternalStore(subscribe,getSnapshot,getServerSnapshot){var fiber=currentlyRenderingFiber$1,hook=updateWorkInProgressHook(),nextSnapshot=getSnapshot();if(!didWarnUncachedGetSnapshot){var cachedSnapshot=getSnapshot();objectIs(nextSnapshot,cachedSnapshot)||(error("The result of getSnapshot should be cached to avoid an infinite loop"),didWarnUncachedGetSnapshot=!0)}var prevSnapshot=hook.memoizedState,snapshotChanged=!objectIs(prevSnapshot,nextSnapshot);snapshotChanged&&(hook.memoizedState=nextSnapshot,markWorkInProgressReceivedUpdate());var inst=hook.queue;if(updateEffect(subscribeToStore.bind(null,fiber,inst,subscribe),[subscribe]),inst.getSnapshot!==getSnapshot||snapshotChanged||workInProgressHook!==null&&workInProgressHook.memoizedState.tag&HasEffect){fiber.flags|=Passive,pushEffect(HasEffect|Passive$1,updateStoreInstance.bind(null,fiber,inst,nextSnapshot,getSnapshot),void 0,null);var root3=getWorkInProgressRoot();if(root3===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");includesBlockingLane(root3,renderLanes)||pushStoreConsistencyCheck(fiber,getSnapshot,nextSnapshot)}return nextSnapshot}function pushStoreConsistencyCheck(fiber,getSnapshot,renderedSnapshot){fiber.flags|=StoreConsistency;var check={getSnapshot,value:renderedSnapshot},componentUpdateQueue=currentlyRenderingFiber$1.updateQueue;if(componentUpdateQueue===null)componentUpdateQueue=createFunctionComponentUpdateQueue(),currentlyRenderingFiber$1.updateQueue=componentUpdateQueue,componentUpdateQueue.stores=[check];else{var stores=componentUpdateQueue.stores;stores===null?componentUpdateQueue.stores=[check]:stores.push(check)}}function updateStoreInstance(fiber,inst,nextSnapshot,getSnapshot){inst.value=nextSnapshot,inst.getSnapshot=getSnapshot,checkIfSnapshotChanged(inst)&&forceStoreRerender(fiber)}function subscribeToStore(fiber,inst,subscribe){var handleStoreChange=function(){checkIfSnapshotChanged(inst)&&forceStoreRerender(fiber)};return subscribe(handleStoreChange)}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot,prevValue=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(prevValue,nextValue)}catch{return!0}}function forceStoreRerender(fiber){var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)}function mountState(initialState){var hook=mountWorkInProgressHook();typeof initialState=="function"&&(initialState=initialState()),hook.memoizedState=hook.baseState=initialState;var queue={pending:null,interleaved:null,lanes:NoLanes,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:initialState};hook.queue=queue;var dispatch=queue.dispatch=dispatchSetState.bind(null,currentlyRenderingFiber$1,queue);return[hook.memoizedState,dispatch]}function updateState(initialState){return updateReducer(basicStateReducer)}function rerenderState(initialState){return rerenderReducer(basicStateReducer)}function pushEffect(tag,create2,destroy,deps){var effect={tag,create:create2,destroy,deps,next:null},componentUpdateQueue=currentlyRenderingFiber$1.updateQueue;if(componentUpdateQueue===null)componentUpdateQueue=createFunctionComponentUpdateQueue(),currentlyRenderingFiber$1.updateQueue=componentUpdateQueue,componentUpdateQueue.lastEffect=effect.next=effect;else{var lastEffect=componentUpdateQueue.lastEffect;if(lastEffect===null)componentUpdateQueue.lastEffect=effect.next=effect;else{var firstEffect=lastEffect.next;lastEffect.next=effect,effect.next=firstEffect,componentUpdateQueue.lastEffect=effect}}return effect}function mountRef(initialValue){var hook=mountWorkInProgressHook();{var _ref2={current:initialValue};return hook.memoizedState=_ref2,_ref2}}function updateRef(initialValue){var hook=updateWorkInProgressHook();return hook.memoizedState}function mountEffectImpl(fiberFlags,hookFlags,create2,deps){var hook=mountWorkInProgressHook(),nextDeps=deps===void 0?null:deps;currentlyRenderingFiber$1.flags|=fiberFlags,hook.memoizedState=pushEffect(HasEffect|hookFlags,create2,void 0,nextDeps)}function updateEffectImpl(fiberFlags,hookFlags,create2,deps){var hook=updateWorkInProgressHook(),nextDeps=deps===void 0?null:deps,destroy=void 0;if(currentHook!==null){var prevEffect=currentHook.memoizedState;if(destroy=prevEffect.destroy,nextDeps!==null){var prevDeps=prevEffect.deps;if(areHookInputsEqual(nextDeps,prevDeps)){hook.memoizedState=pushEffect(hookFlags,create2,destroy,nextDeps);return}}}currentlyRenderingFiber$1.flags|=fiberFlags,hook.memoizedState=pushEffect(HasEffect|hookFlags,create2,destroy,nextDeps)}function mountEffect(create2,deps){return(currentlyRenderingFiber$1.mode&StrictEffectsMode)!==NoMode?mountEffectImpl(MountPassiveDev|Passive|PassiveStatic,Passive$1,create2,deps):mountEffectImpl(Passive|PassiveStatic,Passive$1,create2,deps)}function updateEffect(create2,deps){return updateEffectImpl(Passive,Passive$1,create2,deps)}function mountInsertionEffect(create2,deps){return mountEffectImpl(Update,Insertion,create2,deps)}function updateInsertionEffect(create2,deps){return updateEffectImpl(Update,Insertion,create2,deps)}function mountLayoutEffect(create2,deps){var fiberFlags=Update;return fiberFlags|=LayoutStatic,(currentlyRenderingFiber$1.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=MountLayoutDev),mountEffectImpl(fiberFlags,Layout,create2,deps)}function updateLayoutEffect(create2,deps){return updateEffectImpl(Update,Layout,create2,deps)}function imperativeHandleEffect(create2,ref){if(typeof ref=="function"){var refCallback=ref,_inst=create2();return refCallback(_inst),function(){refCallback(null)}}else if(ref!=null){var refObject=ref;refObject.hasOwnProperty("current")||error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(refObject).join(", ")+"}");var _inst2=create2();return refObject.current=_inst2,function(){refObject.current=null}}}function mountImperativeHandle(ref,create2,deps){typeof create2!="function"&&error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",create2!==null?typeof create2:"null");var effectDeps=deps!=null?deps.concat([ref]):null,fiberFlags=Update;return fiberFlags|=LayoutStatic,(currentlyRenderingFiber$1.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=MountLayoutDev),mountEffectImpl(fiberFlags,Layout,imperativeHandleEffect.bind(null,create2,ref),effectDeps)}function updateImperativeHandle(ref,create2,deps){typeof create2!="function"&&error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",create2!==null?typeof create2:"null");var effectDeps=deps!=null?deps.concat([ref]):null;return updateEffectImpl(Update,Layout,imperativeHandleEffect.bind(null,create2,ref),effectDeps)}function mountDebugValue(value,formatterFn){}var updateDebugValue=mountDebugValue;function mountCallback(callback,deps){var hook=mountWorkInProgressHook(),nextDeps=deps===void 0?null:deps;return hook.memoizedState=[callback,nextDeps],callback}function updateCallback(callback,deps){var hook=updateWorkInProgressHook(),nextDeps=deps===void 0?null:deps,prevState=hook.memoizedState;if(prevState!==null&&nextDeps!==null){var prevDeps=prevState[1];if(areHookInputsEqual(nextDeps,prevDeps))return prevState[0]}return hook.memoizedState=[callback,nextDeps],callback}function mountMemo(nextCreate,deps){var hook=mountWorkInProgressHook(),nextDeps=deps===void 0?null:deps,nextValue=nextCreate();return hook.memoizedState=[nextValue,nextDeps],nextValue}function updateMemo(nextCreate,deps){var hook=updateWorkInProgressHook(),nextDeps=deps===void 0?null:deps,prevState=hook.memoizedState;if(prevState!==null&&nextDeps!==null){var prevDeps=prevState[1];if(areHookInputsEqual(nextDeps,prevDeps))return prevState[0]}var nextValue=nextCreate();return hook.memoizedState=[nextValue,nextDeps],nextValue}function mountDeferredValue(value){var hook=mountWorkInProgressHook();return hook.memoizedState=value,value}function updateDeferredValue(value){var hook=updateWorkInProgressHook(),resolvedCurrentHook=currentHook,prevValue=resolvedCurrentHook.memoizedState;return updateDeferredValueImpl(hook,prevValue,value)}function rerenderDeferredValue(value){var hook=updateWorkInProgressHook();if(currentHook===null)return hook.memoizedState=value,value;var prevValue=currentHook.memoizedState;return updateDeferredValueImpl(hook,prevValue,value)}function updateDeferredValueImpl(hook,prevValue,value){var shouldDeferValue=!includesOnlyNonUrgentLanes(renderLanes);if(shouldDeferValue){if(!objectIs(value,prevValue)){var deferredLane=claimNextTransitionLane();currentlyRenderingFiber$1.lanes=mergeLanes(currentlyRenderingFiber$1.lanes,deferredLane),markSkippedUpdateLanes(deferredLane),hook.baseState=!0}return prevValue}else return hook.baseState&&(hook.baseState=!1,markWorkInProgressReceivedUpdate()),hook.memoizedState=value,value}function startTransition(setPending,callback,options2){var previousPriority=getCurrentUpdatePriority();setCurrentUpdatePriority(higherEventPriority(previousPriority,ContinuousEventPriority)),setPending(!0);var prevTransition=ReactCurrentBatchConfig$2.transition;ReactCurrentBatchConfig$2.transition={};var currentTransition=ReactCurrentBatchConfig$2.transition;ReactCurrentBatchConfig$2.transition._updatedFibers=new Set;try{setPending(!1),callback()}finally{if(setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig$2.transition=prevTransition,prevTransition===null&&currentTransition._updatedFibers){var updatedFibersCount=currentTransition._updatedFibers.size;updatedFibersCount>10&&warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),currentTransition._updatedFibers.clear()}}}function mountTransition(){var _mountState=mountState(!1),isPending=_mountState[0],setPending=_mountState[1],start=startTransition.bind(null,setPending),hook=mountWorkInProgressHook();return hook.memoizedState=start,[isPending,start]}function updateTransition(){var _updateState=updateState(),isPending=_updateState[0],hook=updateWorkInProgressHook(),start=hook.memoizedState;return[isPending,start]}function rerenderTransition(){var _rerenderState=rerenderState(),isPending=_rerenderState[0],hook=updateWorkInProgressHook(),start=hook.memoizedState;return[isPending,start]}var isUpdatingOpaqueValueInRenderPhase=!1;function getIsUpdatingOpaqueValueInRenderPhaseInDEV(){return isUpdatingOpaqueValueInRenderPhase}function mountId(){var hook=mountWorkInProgressHook(),root3=getWorkInProgressRoot(),identifierPrefix=root3.identifierPrefix,id;if(getIsHydrating()){var treeId=getTreeId();id=":"+identifierPrefix+"R"+treeId;var localId=localIdCounter++;localId>0&&(id+="H"+localId.toString(32)),id+=":"}else{var globalClientId=globalClientIdCounter++;id=":"+identifierPrefix+"r"+globalClientId.toString(32)+":"}return hook.memoizedState=id,id}function updateId(){var hook=updateWorkInProgressHook(),id=hook.memoizedState;return id}function dispatchReducerAction(fiber,queue,action){typeof arguments[3]=="function"&&error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var lane=requestUpdateLane(fiber),update={lane,action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber))enqueueRenderPhaseUpdate(queue,update);else{var root3=enqueueConcurrentHookUpdate(fiber,queue,update,lane);if(root3!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root3,fiber,lane,eventTime),entangleTransitionUpdate(root3,queue,lane)}}markUpdateInDevTools(fiber,lane)}function dispatchSetState(fiber,queue,action){typeof arguments[3]=="function"&&error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var lane=requestUpdateLane(fiber),update={lane,action,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(fiber))enqueueRenderPhaseUpdate(queue,update);else{var alternate=fiber.alternate;if(fiber.lanes===NoLanes&&(alternate===null||alternate.lanes===NoLanes)){var lastRenderedReducer=queue.lastRenderedReducer;if(lastRenderedReducer!==null){var prevDispatcher;prevDispatcher=ReactCurrentDispatcher$1.current,ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{var currentState=queue.lastRenderedState,eagerState=lastRenderedReducer(currentState,action);if(update.hasEagerState=!0,update.eagerState=eagerState,objectIs(eagerState,currentState)){enqueueConcurrentHookUpdateAndEagerlyBailout(fiber,queue,update,lane);return}}catch{}finally{ReactCurrentDispatcher$1.current=prevDispatcher}}}var root3=enqueueConcurrentHookUpdate(fiber,queue,update,lane);if(root3!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root3,fiber,lane,eventTime),entangleTransitionUpdate(root3,queue,lane)}}markUpdateInDevTools(fiber,lane)}function isRenderPhaseUpdate(fiber){var alternate=fiber.alternate;return fiber===currentlyRenderingFiber$1||alternate!==null&&alternate===currentlyRenderingFiber$1}function enqueueRenderPhaseUpdate(queue,update){didScheduleRenderPhaseUpdateDuringThisPass=didScheduleRenderPhaseUpdate=!0;var pending=queue.pending;pending===null?update.next=update:(update.next=pending.next,pending.next=update),queue.pending=update}function entangleTransitionUpdate(root3,queue,lane){if(isTransitionLane(lane)){var queueLanes=queue.lanes;queueLanes=intersectLanes(queueLanes,root3.pendingLanes);var newQueueLanes=mergeLanes(queueLanes,lane);queue.lanes=newQueueLanes,markRootEntangled(root3,newQueueLanes)}}function markUpdateInDevTools(fiber,lane,action){markStateUpdateScheduled(fiber,lane)}var ContextOnlyDispatcher={readContext,useCallback:throwInvalidHookError,useContext:throwInvalidHookError,useEffect:throwInvalidHookError,useImperativeHandle:throwInvalidHookError,useInsertionEffect:throwInvalidHookError,useLayoutEffect:throwInvalidHookError,useMemo:throwInvalidHookError,useReducer:throwInvalidHookError,useRef:throwInvalidHookError,useState:throwInvalidHookError,useDebugValue:throwInvalidHookError,useDeferredValue:throwInvalidHookError,useTransition:throwInvalidHookError,useMutableSource:throwInvalidHookError,useSyncExternalStore:throwInvalidHookError,useId:throwInvalidHookError,unstable_isNewReconciler:enableNewReconciler},HooksDispatcherOnMountInDEV=null,HooksDispatcherOnMountWithHookTypesInDEV=null,HooksDispatcherOnUpdateInDEV=null,HooksDispatcherOnRerenderInDEV=null,InvalidNestedHooksDispatcherOnMountInDEV=null,InvalidNestedHooksDispatcherOnUpdateInDEV=null,InvalidNestedHooksDispatcherOnRerenderInDEV=null;{var warnInvalidContextAccess=function(){error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},warnInvalidHookAccess=function(){error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};HooksDispatcherOnMountInDEV={readContext:function(context){return readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",mountHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",mountHookTypesDev(),checkDepsAreArrayDev(deps);var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",mountHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",mountHookTypesDev(),mountRef(initialValue)},useState:function(initialState){currentHookNameInDev="useState",mountHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",mountHookTypesDev(),void 0},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",mountHookTypesDev(),mountDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",mountHookTypesDev(),mountTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",mountHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",mountHookTypesDev(),mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",mountHookTypesDev(),mountId()},unstable_isNewReconciler:enableNewReconciler},HooksDispatcherOnMountWithHookTypesInDEV={readContext:function(context){return readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",updateHookTypesDev(),mountCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",updateHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",updateHookTypesDev(),mountEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),mountImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),mountInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),mountLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",updateHookTypesDev(),mountRef(initialValue)},useState:function(initialState){currentHookNameInDev="useState",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",updateHookTypesDev(),void 0},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",updateHookTypesDev(),mountDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",updateHookTypesDev(),mountTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",updateHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",updateHookTypesDev(),mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",updateHookTypesDev(),mountId()},unstable_isNewReconciler:enableNewReconciler},HooksDispatcherOnUpdateInDEV={readContext:function(context){return readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",updateHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",updateHookTypesDev(),updateEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),updateInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),updateLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",updateHookTypesDev(),updateRef()},useState:function(initialState){currentHookNameInDev="useState",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",updateHookTypesDev(),updateDebugValue()},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",updateHookTypesDev(),updateDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",updateHookTypesDev(),updateTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",updateHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot)},useId:function(){return currentHookNameInDev="useId",updateHookTypesDev(),updateId()},unstable_isNewReconciler:enableNewReconciler},HooksDispatcherOnRerenderInDEV={readContext:function(context){return readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",updateHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",updateHookTypesDev(),updateEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),updateInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),updateLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return updateMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return rerenderReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",updateHookTypesDev(),updateRef()},useState:function(initialState){currentHookNameInDev="useState",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return rerenderState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",updateHookTypesDev(),updateDebugValue()},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",updateHookTypesDev(),rerenderDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",updateHookTypesDev(),rerenderTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",updateHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot)},useId:function(){return currentHookNameInDev="useId",updateHookTypesDev(),updateId()},unstable_isNewReconciler:enableNewReconciler},InvalidNestedHooksDispatcherOnMountInDEV={readContext:function(context){return warnInvalidContextAccess(),readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",warnInvalidHookAccess(),mountHookTypesDev(),mountCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",warnInvalidHookAccess(),mountHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),mountHookTypesDev(),mountImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",warnInvalidHookAccess(),mountHookTypesDev(),mountRef(initialValue)},useState:function(initialState){currentHookNameInDev="useState",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",warnInvalidHookAccess(),mountHookTypesDev(),void 0},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",warnInvalidHookAccess(),mountHookTypesDev(),mountDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",warnInvalidHookAccess(),mountHookTypesDev(),mountTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",warnInvalidHookAccess(),mountHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",warnInvalidHookAccess(),mountHookTypesDev(),mountSyncExternalStore(subscribe,getSnapshot,getServerSnapshot)},useId:function(){return currentHookNameInDev="useId",warnInvalidHookAccess(),mountHookTypesDev(),mountId()},unstable_isNewReconciler:enableNewReconciler},InvalidNestedHooksDispatcherOnUpdateInDEV={readContext:function(context){return warnInvalidContextAccess(),readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",warnInvalidHookAccess(),updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",warnInvalidHookAccess(),updateHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",warnInvalidHookAccess(),updateHookTypesDev(),updateRef()},useState:function(initialState){currentHookNameInDev="useState",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",warnInvalidHookAccess(),updateHookTypesDev(),updateDebugValue()},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",warnInvalidHookAccess(),updateHookTypesDev(),updateDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",warnInvalidHookAccess(),updateHookTypesDev(),updateTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",warnInvalidHookAccess(),updateHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",warnInvalidHookAccess(),updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot)},useId:function(){return currentHookNameInDev="useId",warnInvalidHookAccess(),updateHookTypesDev(),updateId()},unstable_isNewReconciler:enableNewReconciler},InvalidNestedHooksDispatcherOnRerenderInDEV={readContext:function(context){return warnInvalidContextAccess(),readContext(context)},useCallback:function(callback,deps){return currentHookNameInDev="useCallback",warnInvalidHookAccess(),updateHookTypesDev(),updateCallback(callback,deps)},useContext:function(context){return currentHookNameInDev="useContext",warnInvalidHookAccess(),updateHookTypesDev(),readContext(context)},useEffect:function(create2,deps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffect(create2,deps)},useImperativeHandle:function(ref,create2,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),updateHookTypesDev(),updateImperativeHandle(ref,create2,deps)},useInsertionEffect:function(create2,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateInsertionEffect(create2,deps)},useLayoutEffect:function(create2,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateLayoutEffect(create2,deps)},useMemo:function(create2,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create2,deps)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useReducer:function(reducer,initialArg,init){currentHookNameInDev="useReducer",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return rerenderReducer(reducer,initialArg,init)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useRef:function(initialValue){return currentHookNameInDev="useRef",warnInvalidHookAccess(),updateHookTypesDev(),updateRef()},useState:function(initialState){currentHookNameInDev="useState",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return rerenderState(initialState)}finally{ReactCurrentDispatcher$1.current=prevDispatcher}},useDebugValue:function(value,formatterFn){return currentHookNameInDev="useDebugValue",warnInvalidHookAccess(),updateHookTypesDev(),updateDebugValue()},useDeferredValue:function(value){return currentHookNameInDev="useDeferredValue",warnInvalidHookAccess(),updateHookTypesDev(),rerenderDeferredValue(value)},useTransition:function(){return currentHookNameInDev="useTransition",warnInvalidHookAccess(),updateHookTypesDev(),rerenderTransition()},useMutableSource:function(source,getSnapshot,subscribe){return currentHookNameInDev="useMutableSource",warnInvalidHookAccess(),updateHookTypesDev(),void 0},useSyncExternalStore:function(subscribe,getSnapshot,getServerSnapshot){return currentHookNameInDev="useSyncExternalStore",warnInvalidHookAccess(),updateHookTypesDev(),updateSyncExternalStore(subscribe,getSnapshot)},useId:function(){return currentHookNameInDev="useId",warnInvalidHookAccess(),updateHookTypesDev(),updateId()},unstable_isNewReconciler:enableNewReconciler}}var now$1=Scheduler.unstable_now,commitTime=0,layoutEffectStartTime=-1,profilerStartTime=-1,passiveEffectStartTime=-1,currentUpdateIsNested=!1,nestedUpdateScheduled=!1;function isCurrentUpdateNested(){return currentUpdateIsNested}function markNestedUpdateScheduled(){nestedUpdateScheduled=!0}function resetNestedUpdateFlag(){currentUpdateIsNested=!1,nestedUpdateScheduled=!1}function syncNestedUpdateFlag(){currentUpdateIsNested=nestedUpdateScheduled,nestedUpdateScheduled=!1}function getCommitTime(){return commitTime}function recordCommitTime(){commitTime=now$1()}function startProfilerTimer(fiber){profilerStartTime=now$1(),fiber.actualStartTime<0&&(fiber.actualStartTime=now$1())}function stopProfilerTimerIfRunning(fiber){profilerStartTime=-1}function stopProfilerTimerIfRunningAndRecordDelta(fiber,overrideBaseTime){if(profilerStartTime>=0){var elapsedTime=now$1()-profilerStartTime;fiber.actualDuration+=elapsedTime,overrideBaseTime&&(fiber.selfBaseDuration=elapsedTime),profilerStartTime=-1}}function recordLayoutEffectDuration(fiber){if(layoutEffectStartTime>=0){var elapsedTime=now$1()-layoutEffectStartTime;layoutEffectStartTime=-1;for(var parentFiber=fiber.return;parentFiber!==null;){switch(parentFiber.tag){case HostRoot:var root3=parentFiber.stateNode;root3.effectDuration+=elapsedTime;return;case Profiler:var parentStateNode=parentFiber.stateNode;parentStateNode.effectDuration+=elapsedTime;return}parentFiber=parentFiber.return}}}function recordPassiveEffectDuration(fiber){if(passiveEffectStartTime>=0){var elapsedTime=now$1()-passiveEffectStartTime;passiveEffectStartTime=-1;for(var parentFiber=fiber.return;parentFiber!==null;){switch(parentFiber.tag){case HostRoot:var root3=parentFiber.stateNode;root3!==null&&(root3.passiveEffectDuration+=elapsedTime);return;case Profiler:var parentStateNode=parentFiber.stateNode;parentStateNode!==null&&(parentStateNode.passiveEffectDuration+=elapsedTime);return}parentFiber=parentFiber.return}}}function startLayoutEffectTimer(){layoutEffectStartTime=now$1()}function startPassiveEffectTimer(){passiveEffectStartTime=now$1()}function transferActualDuration(fiber){for(var child=fiber.child;child;)fiber.actualDuration+=child.actualDuration,child=child.sibling}function resolveDefaultProps(Component,baseProps){if(Component&&Component.defaultProps){var props=assign({},baseProps),defaultProps=Component.defaultProps;for(var propName in defaultProps)props[propName]===void 0&&(props[propName]=defaultProps[propName]);return props}return baseProps}var fakeInternalInstance={},didWarnAboutStateAssignmentForComponent,didWarnAboutUninitializedState,didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate,didWarnAboutLegacyLifecyclesAndDerivedState,didWarnAboutUndefinedDerivedState,warnOnUndefinedDerivedState,warnOnInvalidCallback,didWarnAboutDirectlyAssigningPropsToState,didWarnAboutContextTypeAndContextTypes,didWarnAboutInvalidateContextType,didWarnAboutLegacyContext$1;{didWarnAboutStateAssignmentForComponent=new Set,didWarnAboutUninitializedState=new Set,didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate=new Set,didWarnAboutLegacyLifecyclesAndDerivedState=new Set,didWarnAboutDirectlyAssigningPropsToState=new Set,didWarnAboutUndefinedDerivedState=new Set,didWarnAboutContextTypeAndContextTypes=new Set,didWarnAboutInvalidateContextType=new Set,didWarnAboutLegacyContext$1=new Set;var didWarnOnInvalidCallback=new Set;warnOnInvalidCallback=function(callback,callerName){if(!(callback===null||typeof callback=="function")){var key=callerName+"_"+callback;didWarnOnInvalidCallback.has(key)||(didWarnOnInvalidCallback.add(key),error("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",callerName,callback))}},warnOnUndefinedDerivedState=function(type,partialState){if(partialState===void 0){var componentName=getComponentNameFromType(type)||"Component";didWarnAboutUndefinedDerivedState.has(componentName)||(didWarnAboutUndefinedDerivedState.add(componentName),error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",componentName))}},Object.defineProperty(fakeInternalInstance,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(fakeInternalInstance)}function applyDerivedStateFromProps(workInProgress2,ctor,getDerivedStateFromProps,nextProps){var prevState=workInProgress2.memoizedState,partialState=getDerivedStateFromProps(nextProps,prevState);{if(workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{partialState=getDerivedStateFromProps(nextProps,prevState)}finally{setIsStrictModeForDevtools(!1)}}warnOnUndefinedDerivedState(ctor,partialState)}var memoizedState=partialState==null?prevState:assign({},prevState,partialState);if(workInProgress2.memoizedState=memoizedState,workInProgress2.lanes===NoLanes){var updateQueue=workInProgress2.updateQueue;updateQueue.baseState=memoizedState}}var classComponentUpdater={isMounted,enqueueSetState:function(inst,payload,callback){var fiber=get(inst),eventTime=requestEventTime(),lane=requestUpdateLane(fiber),update=createUpdate(eventTime,lane);update.payload=payload,callback!=null&&(warnOnInvalidCallback(callback,"setState"),update.callback=callback);var root3=enqueueUpdate(fiber,update,lane);root3!==null&&(scheduleUpdateOnFiber(root3,fiber,lane,eventTime),entangleTransitions(root3,fiber,lane)),markStateUpdateScheduled(fiber,lane)},enqueueReplaceState:function(inst,payload,callback){var fiber=get(inst),eventTime=requestEventTime(),lane=requestUpdateLane(fiber),update=createUpdate(eventTime,lane);update.tag=ReplaceState,update.payload=payload,callback!=null&&(warnOnInvalidCallback(callback,"replaceState"),update.callback=callback);var root3=enqueueUpdate(fiber,update,lane);root3!==null&&(scheduleUpdateOnFiber(root3,fiber,lane,eventTime),entangleTransitions(root3,fiber,lane)),markStateUpdateScheduled(fiber,lane)},enqueueForceUpdate:function(inst,callback){var fiber=get(inst),eventTime=requestEventTime(),lane=requestUpdateLane(fiber),update=createUpdate(eventTime,lane);update.tag=ForceUpdate,callback!=null&&(warnOnInvalidCallback(callback,"forceUpdate"),update.callback=callback);var root3=enqueueUpdate(fiber,update,lane);root3!==null&&(scheduleUpdateOnFiber(root3,fiber,lane,eventTime),entangleTransitions(root3,fiber,lane)),markForceUpdateScheduled(fiber,lane)}};function checkShouldComponentUpdate(workInProgress2,ctor,oldProps,newProps,oldState,newState,nextContext){var instance=workInProgress2.stateNode;if(typeof instance.shouldComponentUpdate=="function"){var shouldUpdate=instance.shouldComponentUpdate(newProps,newState,nextContext);{if(workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{shouldUpdate=instance.shouldComponentUpdate(newProps,newState,nextContext)}finally{setIsStrictModeForDevtools(!1)}}shouldUpdate===void 0&&error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",getComponentNameFromType(ctor)||"Component")}return shouldUpdate}return ctor.prototype&&ctor.prototype.isPureReactComponent?!shallowEqual(oldProps,newProps)||!shallowEqual(oldState,newState):!0}function checkClassInstance(workInProgress2,ctor,newProps){var instance=workInProgress2.stateNode;{var name=getComponentNameFromType(ctor)||"Component",renderPresent=instance.render;renderPresent||(ctor.prototype&&typeof ctor.prototype.render=="function"?error("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",name):error("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",name)),instance.getInitialState&&!instance.getInitialState.isReactClassApproved&&!instance.state&&error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",name),instance.getDefaultProps&&!instance.getDefaultProps.isReactClassApproved&&error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",name),instance.propTypes&&error("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",name),instance.contextType&&error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",name),ctor.childContextTypes&&!didWarnAboutLegacyContext$1.has(ctor)&&(workInProgress2.mode&StrictLegacyMode)===NoMode&&(didWarnAboutLegacyContext$1.add(ctor),error(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
153
-
154
- .Learn more about this warning here: https://reactjs.org/link/legacy-context`,name)),ctor.contextTypes&&!didWarnAboutLegacyContext$1.has(ctor)&&(workInProgress2.mode&StrictLegacyMode)===NoMode&&(didWarnAboutLegacyContext$1.add(ctor),error(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
155
-
156
- Learn more about this warning here: https://reactjs.org/link/legacy-context`,name)),instance.contextTypes&&error("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",name),ctor.contextType&&ctor.contextTypes&&!didWarnAboutContextTypeAndContextTypes.has(ctor)&&(didWarnAboutContextTypeAndContextTypes.add(ctor),error("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",name)),typeof instance.componentShouldUpdate=="function"&&error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",name),ctor.prototype&&ctor.prototype.isPureReactComponent&&typeof instance.shouldComponentUpdate<"u"&&error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",getComponentNameFromType(ctor)||"A pure component"),typeof instance.componentDidUnmount=="function"&&error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",name),typeof instance.componentDidReceiveProps=="function"&&error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",name),typeof instance.componentWillRecieveProps=="function"&&error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",name),typeof instance.UNSAFE_componentWillRecieveProps=="function"&&error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",name);var hasMutatedProps=instance.props!==newProps;instance.props!==void 0&&hasMutatedProps&&error("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",name,name),instance.defaultProps&&error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",name,name),typeof instance.getSnapshotBeforeUpdate=="function"&&typeof instance.componentDidUpdate!="function"&&!didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)&&(didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor),error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",getComponentNameFromType(ctor))),typeof instance.getDerivedStateFromProps=="function"&&error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",name),typeof instance.getDerivedStateFromError=="function"&&error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",name),typeof ctor.getSnapshotBeforeUpdate=="function"&&error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",name);var _state=instance.state;_state&&(typeof _state!="object"||isArray(_state))&&error("%s.state: must be set to an object or null",name),typeof instance.getChildContext=="function"&&typeof ctor.childContextTypes!="object"&&error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",name)}}function adoptClassInstance(workInProgress2,instance){instance.updater=classComponentUpdater,workInProgress2.stateNode=instance,set(instance,workInProgress2),instance._reactInternalInstance=fakeInternalInstance}function constructClassInstance(workInProgress2,ctor,props){var isLegacyContextConsumer=!1,unmaskedContext=emptyContextObject,context=emptyContextObject,contextType=ctor.contextType;if("contextType"in ctor){var isValid=contextType===null||contextType!==void 0&&contextType.$$typeof===REACT_CONTEXT_TYPE&&contextType._context===void 0;if(!isValid&&!didWarnAboutInvalidateContextType.has(ctor)){didWarnAboutInvalidateContextType.add(ctor);var addendum="";contextType===void 0?addendum=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof contextType!="object"?addendum=" However, it is set to a "+typeof contextType+".":contextType.$$typeof===REACT_PROVIDER_TYPE?addendum=" Did you accidentally pass the Context.Provider instead?":contextType._context!==void 0?addendum=" Did you accidentally pass the Context.Consumer instead?":addendum=" However, it is set to an object with keys {"+Object.keys(contextType).join(", ")+"}.",error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",getComponentNameFromType(ctor)||"Component",addendum)}}if(typeof contextType=="object"&&contextType!==null)context=readContext(contextType);else{unmaskedContext=getUnmaskedContext(workInProgress2,ctor,!0);var contextTypes=ctor.contextTypes;isLegacyContextConsumer=contextTypes!=null,context=isLegacyContextConsumer?getMaskedContext(workInProgress2,unmaskedContext):emptyContextObject}var instance=new ctor(props,context);if(workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{instance=new ctor(props,context)}finally{setIsStrictModeForDevtools(!1)}}var state=workInProgress2.memoizedState=instance.state!==null&&instance.state!==void 0?instance.state:null;adoptClassInstance(workInProgress2,instance);{if(typeof ctor.getDerivedStateFromProps=="function"&&state===null){var componentName=getComponentNameFromType(ctor)||"Component";didWarnAboutUninitializedState.has(componentName)||(didWarnAboutUninitializedState.add(componentName),error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",componentName,instance.state===null?"null":"undefined",componentName))}if(typeof ctor.getDerivedStateFromProps=="function"||typeof instance.getSnapshotBeforeUpdate=="function"){var foundWillMountName=null,foundWillReceivePropsName=null,foundWillUpdateName=null;if(typeof instance.componentWillMount=="function"&&instance.componentWillMount.__suppressDeprecationWarning!==!0?foundWillMountName="componentWillMount":typeof instance.UNSAFE_componentWillMount=="function"&&(foundWillMountName="UNSAFE_componentWillMount"),typeof instance.componentWillReceiveProps=="function"&&instance.componentWillReceiveProps.__suppressDeprecationWarning!==!0?foundWillReceivePropsName="componentWillReceiveProps":typeof instance.UNSAFE_componentWillReceiveProps=="function"&&(foundWillReceivePropsName="UNSAFE_componentWillReceiveProps"),typeof instance.componentWillUpdate=="function"&&instance.componentWillUpdate.__suppressDeprecationWarning!==!0?foundWillUpdateName="componentWillUpdate":typeof instance.UNSAFE_componentWillUpdate=="function"&&(foundWillUpdateName="UNSAFE_componentWillUpdate"),foundWillMountName!==null||foundWillReceivePropsName!==null||foundWillUpdateName!==null){var _componentName=getComponentNameFromType(ctor)||"Component",newApiName=typeof ctor.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)||(didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName),error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
157
-
158
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
159
-
160
- The above lifecycles should be removed. Learn more about this warning here:
161
- https://reactjs.org/link/unsafe-component-lifecycles`,_componentName,newApiName,foundWillMountName!==null?`
162
- `+foundWillMountName:"",foundWillReceivePropsName!==null?`
163
- `+foundWillReceivePropsName:"",foundWillUpdateName!==null?`
164
- `+foundWillUpdateName:""))}}}return isLegacyContextConsumer&&cacheContext(workInProgress2,unmaskedContext,context),instance}function callComponentWillMount(workInProgress2,instance){var oldState=instance.state;typeof instance.componentWillMount=="function"&&instance.componentWillMount(),typeof instance.UNSAFE_componentWillMount=="function"&&instance.UNSAFE_componentWillMount(),oldState!==instance.state&&(error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",getComponentNameFromFiber(workInProgress2)||"Component"),classComponentUpdater.enqueueReplaceState(instance,instance.state,null))}function callComponentWillReceiveProps(workInProgress2,instance,newProps,nextContext){var oldState=instance.state;if(typeof instance.componentWillReceiveProps=="function"&&instance.componentWillReceiveProps(newProps,nextContext),typeof instance.UNSAFE_componentWillReceiveProps=="function"&&instance.UNSAFE_componentWillReceiveProps(newProps,nextContext),instance.state!==oldState){{var componentName=getComponentNameFromFiber(workInProgress2)||"Component";didWarnAboutStateAssignmentForComponent.has(componentName)||(didWarnAboutStateAssignmentForComponent.add(componentName),error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",componentName))}classComponentUpdater.enqueueReplaceState(instance,instance.state,null)}}function mountClassInstance(workInProgress2,ctor,newProps,renderLanes2){checkClassInstance(workInProgress2,ctor,newProps);var instance=workInProgress2.stateNode;instance.props=newProps,instance.state=workInProgress2.memoizedState,instance.refs={},initializeUpdateQueue(workInProgress2);var contextType=ctor.contextType;if(typeof contextType=="object"&&contextType!==null)instance.context=readContext(contextType);else{var unmaskedContext=getUnmaskedContext(workInProgress2,ctor,!0);instance.context=getMaskedContext(workInProgress2,unmaskedContext)}{if(instance.state===newProps){var componentName=getComponentNameFromType(ctor)||"Component";didWarnAboutDirectlyAssigningPropsToState.has(componentName)||(didWarnAboutDirectlyAssigningPropsToState.add(componentName),error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",componentName))}workInProgress2.mode&StrictLegacyMode&&ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2,instance),ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress2,instance)}instance.state=workInProgress2.memoizedState;var getDerivedStateFromProps=ctor.getDerivedStateFromProps;if(typeof getDerivedStateFromProps=="function"&&(applyDerivedStateFromProps(workInProgress2,ctor,getDerivedStateFromProps,newProps),instance.state=workInProgress2.memoizedState),typeof ctor.getDerivedStateFromProps!="function"&&typeof instance.getSnapshotBeforeUpdate!="function"&&(typeof instance.UNSAFE_componentWillMount=="function"||typeof instance.componentWillMount=="function")&&(callComponentWillMount(workInProgress2,instance),processUpdateQueue(workInProgress2,newProps,instance,renderLanes2),instance.state=workInProgress2.memoizedState),typeof instance.componentDidMount=="function"){var fiberFlags=Update;fiberFlags|=LayoutStatic,(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=MountLayoutDev),workInProgress2.flags|=fiberFlags}}function resumeMountClassInstance(workInProgress2,ctor,newProps,renderLanes2){var instance=workInProgress2.stateNode,oldProps=workInProgress2.memoizedProps;instance.props=oldProps;var oldContext=instance.context,contextType=ctor.contextType,nextContext=emptyContextObject;if(typeof contextType=="object"&&contextType!==null)nextContext=readContext(contextType);else{var nextLegacyUnmaskedContext=getUnmaskedContext(workInProgress2,ctor,!0);nextContext=getMaskedContext(workInProgress2,nextLegacyUnmaskedContext)}var getDerivedStateFromProps=ctor.getDerivedStateFromProps,hasNewLifecycles=typeof getDerivedStateFromProps=="function"||typeof instance.getSnapshotBeforeUpdate=="function";!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillReceiveProps=="function"||typeof instance.componentWillReceiveProps=="function")&&(oldProps!==newProps||oldContext!==nextContext)&&callComponentWillReceiveProps(workInProgress2,instance,newProps,nextContext),resetHasForceUpdateBeforeProcessing();var oldState=workInProgress2.memoizedState,newState=instance.state=oldState;if(processUpdateQueue(workInProgress2,newProps,instance,renderLanes2),newState=workInProgress2.memoizedState,oldProps===newProps&&oldState===newState&&!hasContextChanged()&&!checkHasForceUpdateAfterProcessing()){if(typeof instance.componentDidMount=="function"){var fiberFlags=Update;fiberFlags|=LayoutStatic,(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=MountLayoutDev),workInProgress2.flags|=fiberFlags}return!1}typeof getDerivedStateFromProps=="function"&&(applyDerivedStateFromProps(workInProgress2,ctor,getDerivedStateFromProps,newProps),newState=workInProgress2.memoizedState);var shouldUpdate=checkHasForceUpdateAfterProcessing()||checkShouldComponentUpdate(workInProgress2,ctor,oldProps,newProps,oldState,newState,nextContext);if(shouldUpdate){if(!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillMount=="function"||typeof instance.componentWillMount=="function")&&(typeof instance.componentWillMount=="function"&&instance.componentWillMount(),typeof instance.UNSAFE_componentWillMount=="function"&&instance.UNSAFE_componentWillMount()),typeof instance.componentDidMount=="function"){var _fiberFlags=Update;_fiberFlags|=LayoutStatic,(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(_fiberFlags|=MountLayoutDev),workInProgress2.flags|=_fiberFlags}}else{if(typeof instance.componentDidMount=="function"){var _fiberFlags2=Update;_fiberFlags2|=LayoutStatic,(workInProgress2.mode&StrictEffectsMode)!==NoMode&&(_fiberFlags2|=MountLayoutDev),workInProgress2.flags|=_fiberFlags2}workInProgress2.memoizedProps=newProps,workInProgress2.memoizedState=newState}return instance.props=newProps,instance.state=newState,instance.context=nextContext,shouldUpdate}function updateClassInstance(current2,workInProgress2,ctor,newProps,renderLanes2){var instance=workInProgress2.stateNode;cloneUpdateQueue(current2,workInProgress2);var unresolvedOldProps=workInProgress2.memoizedProps,oldProps=workInProgress2.type===workInProgress2.elementType?unresolvedOldProps:resolveDefaultProps(workInProgress2.type,unresolvedOldProps);instance.props=oldProps;var unresolvedNewProps=workInProgress2.pendingProps,oldContext=instance.context,contextType=ctor.contextType,nextContext=emptyContextObject;if(typeof contextType=="object"&&contextType!==null)nextContext=readContext(contextType);else{var nextUnmaskedContext=getUnmaskedContext(workInProgress2,ctor,!0);nextContext=getMaskedContext(workInProgress2,nextUnmaskedContext)}var getDerivedStateFromProps=ctor.getDerivedStateFromProps,hasNewLifecycles=typeof getDerivedStateFromProps=="function"||typeof instance.getSnapshotBeforeUpdate=="function";!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillReceiveProps=="function"||typeof instance.componentWillReceiveProps=="function")&&(unresolvedOldProps!==unresolvedNewProps||oldContext!==nextContext)&&callComponentWillReceiveProps(workInProgress2,instance,newProps,nextContext),resetHasForceUpdateBeforeProcessing();var oldState=workInProgress2.memoizedState,newState=instance.state=oldState;if(processUpdateQueue(workInProgress2,newProps,instance,renderLanes2),newState=workInProgress2.memoizedState,unresolvedOldProps===unresolvedNewProps&&oldState===newState&&!hasContextChanged()&&!checkHasForceUpdateAfterProcessing())return typeof instance.componentDidUpdate=="function"&&(unresolvedOldProps!==current2.memoizedProps||oldState!==current2.memoizedState)&&(workInProgress2.flags|=Update),typeof instance.getSnapshotBeforeUpdate=="function"&&(unresolvedOldProps!==current2.memoizedProps||oldState!==current2.memoizedState)&&(workInProgress2.flags|=Snapshot),!1;typeof getDerivedStateFromProps=="function"&&(applyDerivedStateFromProps(workInProgress2,ctor,getDerivedStateFromProps,newProps),newState=workInProgress2.memoizedState);var shouldUpdate=checkHasForceUpdateAfterProcessing()||checkShouldComponentUpdate(workInProgress2,ctor,oldProps,newProps,oldState,newState,nextContext)||enableLazyContextPropagation;return shouldUpdate?(!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillUpdate=="function"||typeof instance.componentWillUpdate=="function")&&(typeof instance.componentWillUpdate=="function"&&instance.componentWillUpdate(newProps,newState,nextContext),typeof instance.UNSAFE_componentWillUpdate=="function"&&instance.UNSAFE_componentWillUpdate(newProps,newState,nextContext)),typeof instance.componentDidUpdate=="function"&&(workInProgress2.flags|=Update),typeof instance.getSnapshotBeforeUpdate=="function"&&(workInProgress2.flags|=Snapshot)):(typeof instance.componentDidUpdate=="function"&&(unresolvedOldProps!==current2.memoizedProps||oldState!==current2.memoizedState)&&(workInProgress2.flags|=Update),typeof instance.getSnapshotBeforeUpdate=="function"&&(unresolvedOldProps!==current2.memoizedProps||oldState!==current2.memoizedState)&&(workInProgress2.flags|=Snapshot),workInProgress2.memoizedProps=newProps,workInProgress2.memoizedState=newState),instance.props=newProps,instance.state=newState,instance.context=nextContext,shouldUpdate}function createCapturedValueAtFiber(value,source){return{value,source,stack:getStackByFiberInDevAndProd(source),digest:null}}function createCapturedValue(value,digest,stack){return{value,source:null,stack:stack??null,digest:digest??null}}function showErrorDialog(boundary,errorInfo){return!0}function logCapturedError(boundary,errorInfo){try{var logError=showErrorDialog(boundary,errorInfo);if(logError===!1)return;var error2=errorInfo.value,source=errorInfo.source,stack=errorInfo.stack,componentStack=stack!==null?stack:"";if(error2!=null&&error2._suppressLogging){if(boundary.tag===ClassComponent)return;console.error(error2)}var componentName=source?getComponentNameFromFiber(source):null,componentNameMessage=componentName?"The above error occurred in the <"+componentName+"> component:":"The above error occurred in one of your React components:",errorBoundaryMessage;if(boundary.tag===HostRoot)errorBoundaryMessage=`Consider adding an error boundary to your tree to customize error handling behavior.
165
- Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var errorBoundaryName=getComponentNameFromFiber(boundary)||"Anonymous";errorBoundaryMessage="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+errorBoundaryName+".")}var combinedMessage=componentNameMessage+`
166
- `+componentStack+`
167
-
168
- `+(""+errorBoundaryMessage);console.error(combinedMessage)}catch(e){setTimeout(function(){throw e})}}var PossiblyWeakMap$1=typeof WeakMap=="function"?WeakMap:Map;function createRootErrorUpdate(fiber,errorInfo,lane){var update=createUpdate(NoTimestamp,lane);update.tag=CaptureUpdate,update.payload={element:null};var error2=errorInfo.value;return update.callback=function(){onUncaughtError(error2),logCapturedError(fiber,errorInfo)},update}function createClassErrorUpdate(fiber,errorInfo,lane){var update=createUpdate(NoTimestamp,lane);update.tag=CaptureUpdate;var getDerivedStateFromError=fiber.type.getDerivedStateFromError;if(typeof getDerivedStateFromError=="function"){var error$1=errorInfo.value;update.payload=function(){return getDerivedStateFromError(error$1)},update.callback=function(){markFailedErrorBoundaryForHotReloading(fiber),logCapturedError(fiber,errorInfo)}}var inst=fiber.stateNode;return inst!==null&&typeof inst.componentDidCatch=="function"&&(update.callback=function(){markFailedErrorBoundaryForHotReloading(fiber),logCapturedError(fiber,errorInfo),typeof getDerivedStateFromError!="function"&&markLegacyErrorBoundaryAsFailed(this);var error$12=errorInfo.value,stack=errorInfo.stack;this.componentDidCatch(error$12,{componentStack:stack!==null?stack:""}),typeof getDerivedStateFromError!="function"&&(includesSomeLane(fiber.lanes,SyncLane)||error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",getComponentNameFromFiber(fiber)||"Unknown"))}),update}function attachPingListener(root3,wakeable,lanes){var pingCache=root3.pingCache,threadIDs;if(pingCache===null?(pingCache=root3.pingCache=new PossiblyWeakMap$1,threadIDs=new Set,pingCache.set(wakeable,threadIDs)):(threadIDs=pingCache.get(wakeable),threadIDs===void 0&&(threadIDs=new Set,pingCache.set(wakeable,threadIDs))),!threadIDs.has(lanes)){threadIDs.add(lanes);var ping=pingSuspendedRoot.bind(null,root3,wakeable,lanes);isDevToolsPresent&&restorePendingUpdaters(root3,lanes),wakeable.then(ping,ping)}}function attachRetryListener(suspenseBoundary,root3,wakeable,lanes){var wakeables=suspenseBoundary.updateQueue;if(wakeables===null){var updateQueue=new Set;updateQueue.add(wakeable),suspenseBoundary.updateQueue=updateQueue}else wakeables.add(wakeable)}function resetSuspendedComponent(sourceFiber,rootRenderLanes){var tag=sourceFiber.tag;if((sourceFiber.mode&ConcurrentMode)===NoMode&&(tag===FunctionComponent||tag===ForwardRef||tag===SimpleMemoComponent)){var currentSource=sourceFiber.alternate;currentSource?(sourceFiber.updateQueue=currentSource.updateQueue,sourceFiber.memoizedState=currentSource.memoizedState,sourceFiber.lanes=currentSource.lanes):(sourceFiber.updateQueue=null,sourceFiber.memoizedState=null)}}function getNearestSuspenseBoundaryToCapture(returnFiber){var node=returnFiber;do{if(node.tag===SuspenseComponent&&shouldCaptureSuspense(node))return node;node=node.return}while(node!==null);return null}function markSuspenseBoundaryShouldCapture(suspenseBoundary,returnFiber,sourceFiber,root3,rootRenderLanes){if((suspenseBoundary.mode&ConcurrentMode)===NoMode){if(suspenseBoundary===returnFiber)suspenseBoundary.flags|=ShouldCapture;else{if(suspenseBoundary.flags|=DidCapture,sourceFiber.flags|=ForceUpdateForLegacySuspense,sourceFiber.flags&=-52805,sourceFiber.tag===ClassComponent){var currentSourceFiber=sourceFiber.alternate;if(currentSourceFiber===null)sourceFiber.tag=IncompleteClassComponent;else{var update=createUpdate(NoTimestamp,SyncLane);update.tag=ForceUpdate,enqueueUpdate(sourceFiber,update,SyncLane)}}sourceFiber.lanes=mergeLanes(sourceFiber.lanes,SyncLane)}return suspenseBoundary}return suspenseBoundary.flags|=ShouldCapture,suspenseBoundary.lanes=rootRenderLanes,suspenseBoundary}function throwException(root3,returnFiber,sourceFiber,value,rootRenderLanes){if(sourceFiber.flags|=Incomplete,isDevToolsPresent&&restorePendingUpdaters(root3,rootRenderLanes),value!==null&&typeof value=="object"&&typeof value.then=="function"){var wakeable=value;resetSuspendedComponent(sourceFiber),getIsHydrating()&&sourceFiber.mode&ConcurrentMode&&markDidThrowWhileHydratingDEV();var suspenseBoundary=getNearestSuspenseBoundaryToCapture(returnFiber);if(suspenseBoundary!==null){suspenseBoundary.flags&=-257,markSuspenseBoundaryShouldCapture(suspenseBoundary,returnFiber,sourceFiber,root3,rootRenderLanes),suspenseBoundary.mode&ConcurrentMode&&attachPingListener(root3,wakeable,rootRenderLanes),attachRetryListener(suspenseBoundary,root3,wakeable);return}else{if(!includesSyncLane(rootRenderLanes)){attachPingListener(root3,wakeable,rootRenderLanes),renderDidSuspendDelayIfPossible();return}var uncaughtSuspenseError=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");value=uncaughtSuspenseError}}else if(getIsHydrating()&&sourceFiber.mode&ConcurrentMode){markDidThrowWhileHydratingDEV();var _suspenseBoundary=getNearestSuspenseBoundaryToCapture(returnFiber);if(_suspenseBoundary!==null){(_suspenseBoundary.flags&ShouldCapture)===NoFlags&&(_suspenseBoundary.flags|=ForceClientRender),markSuspenseBoundaryShouldCapture(_suspenseBoundary,returnFiber,sourceFiber,root3,rootRenderLanes),queueHydrationError(createCapturedValueAtFiber(value,sourceFiber));return}}value=createCapturedValueAtFiber(value,sourceFiber),renderDidError(value);var workInProgress2=returnFiber;do{switch(workInProgress2.tag){case HostRoot:{var _errorInfo=value;workInProgress2.flags|=ShouldCapture;var lane=pickArbitraryLane(rootRenderLanes);workInProgress2.lanes=mergeLanes(workInProgress2.lanes,lane);var update=createRootErrorUpdate(workInProgress2,_errorInfo,lane);enqueueCapturedUpdate(workInProgress2,update);return}case ClassComponent:var errorInfo=value,ctor=workInProgress2.type,instance=workInProgress2.stateNode;if((workInProgress2.flags&DidCapture)===NoFlags&&(typeof ctor.getDerivedStateFromError=="function"||instance!==null&&typeof instance.componentDidCatch=="function"&&!isAlreadyFailedLegacyErrorBoundary(instance))){workInProgress2.flags|=ShouldCapture;var _lane=pickArbitraryLane(rootRenderLanes);workInProgress2.lanes=mergeLanes(workInProgress2.lanes,_lane);var _update=createClassErrorUpdate(workInProgress2,errorInfo,_lane);enqueueCapturedUpdate(workInProgress2,_update);return}break}workInProgress2=workInProgress2.return}while(workInProgress2!==null)}function getSuspendedCache(){return null}var ReactCurrentOwner$1=ReactSharedInternals.ReactCurrentOwner,didReceiveUpdate=!1,didWarnAboutBadClass,didWarnAboutModulePatternComponent,didWarnAboutContextTypeOnFunctionComponent,didWarnAboutGetDerivedStateOnFunctionComponent,didWarnAboutFunctionRefs,didWarnAboutReassigningProps,didWarnAboutRevealOrder,didWarnAboutTailOptions,didWarnAboutDefaultPropsOnFunctionComponent;didWarnAboutBadClass={},didWarnAboutModulePatternComponent={},didWarnAboutContextTypeOnFunctionComponent={},didWarnAboutGetDerivedStateOnFunctionComponent={},didWarnAboutFunctionRefs={},didWarnAboutReassigningProps=!1,didWarnAboutRevealOrder={},didWarnAboutTailOptions={},didWarnAboutDefaultPropsOnFunctionComponent={};function reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2){current2===null?workInProgress2.child=mountChildFibers(workInProgress2,null,nextChildren,renderLanes2):workInProgress2.child=reconcileChildFibers(workInProgress2,current2.child,nextChildren,renderLanes2)}function forceUnmountCurrentAndReconcile(current2,workInProgress2,nextChildren,renderLanes2){workInProgress2.child=reconcileChildFibers(workInProgress2,current2.child,null,renderLanes2),workInProgress2.child=reconcileChildFibers(workInProgress2,null,nextChildren,renderLanes2)}function updateForwardRef(current2,workInProgress2,Component,nextProps,renderLanes2){if(workInProgress2.type!==workInProgress2.elementType){var innerPropTypes=Component.propTypes;innerPropTypes&&checkPropTypes(innerPropTypes,nextProps,"prop",getComponentNameFromType(Component))}var render2=Component.render,ref=workInProgress2.ref,nextChildren,hasId;prepareToReadContext(workInProgress2,renderLanes2),markComponentRenderStarted(workInProgress2);{if(ReactCurrentOwner$1.current=workInProgress2,setIsRendering(!0),nextChildren=renderWithHooks(current2,workInProgress2,render2,nextProps,ref,renderLanes2),hasId=checkDidRenderIdHook(),workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{nextChildren=renderWithHooks(current2,workInProgress2,render2,nextProps,ref,renderLanes2),hasId=checkDidRenderIdHook()}finally{setIsStrictModeForDevtools(!1)}}setIsRendering(!1)}return markComponentRenderStopped(),current2!==null&&!didReceiveUpdate?(bailoutHooks(current2,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)):(getIsHydrating()&&hasId&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=PerformedWork,reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child)}function updateMemoComponent(current2,workInProgress2,Component,nextProps,renderLanes2){if(current2===null){var type=Component.type;if(isSimpleFunctionComponent(type)&&Component.compare===null&&Component.defaultProps===void 0){var resolvedType=type;return resolvedType=resolveFunctionForHotReloading(type),workInProgress2.tag=SimpleMemoComponent,workInProgress2.type=resolvedType,validateFunctionComponentInDev(workInProgress2,type),updateSimpleMemoComponent(current2,workInProgress2,resolvedType,nextProps,renderLanes2)}{var innerPropTypes=type.propTypes;if(innerPropTypes&&checkPropTypes(innerPropTypes,nextProps,"prop",getComponentNameFromType(type)),Component.defaultProps!==void 0){var componentName=getComponentNameFromType(type)||"Unknown";didWarnAboutDefaultPropsOnFunctionComponent[componentName]||(error("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",componentName),didWarnAboutDefaultPropsOnFunctionComponent[componentName]=!0)}}var child=createFiberFromTypeAndProps(Component.type,null,nextProps,workInProgress2,workInProgress2.mode,renderLanes2);return child.ref=workInProgress2.ref,child.return=workInProgress2,workInProgress2.child=child,child}{var _type=Component.type,_innerPropTypes=_type.propTypes;_innerPropTypes&&checkPropTypes(_innerPropTypes,nextProps,"prop",getComponentNameFromType(_type))}var currentChild=current2.child,hasScheduledUpdateOrContext=checkScheduledUpdateOrContext(current2,renderLanes2);if(!hasScheduledUpdateOrContext){var prevProps=currentChild.memoizedProps,compare=Component.compare;if(compare=compare!==null?compare:shallowEqual,compare(prevProps,nextProps)&&current2.ref===workInProgress2.ref)return bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}workInProgress2.flags|=PerformedWork;var newChild=createWorkInProgress(currentChild,nextProps);return newChild.ref=workInProgress2.ref,newChild.return=workInProgress2,workInProgress2.child=newChild,newChild}function updateSimpleMemoComponent(current2,workInProgress2,Component,nextProps,renderLanes2){if(workInProgress2.type!==workInProgress2.elementType){var outerMemoType=workInProgress2.elementType;if(outerMemoType.$$typeof===REACT_LAZY_TYPE){var lazyComponent=outerMemoType,payload=lazyComponent._payload,init=lazyComponent._init;try{outerMemoType=init(payload)}catch{outerMemoType=null}var outerPropTypes=outerMemoType&&outerMemoType.propTypes;outerPropTypes&&checkPropTypes(outerPropTypes,nextProps,"prop",getComponentNameFromType(outerMemoType))}}if(current2!==null){var prevProps=current2.memoizedProps;if(shallowEqual(prevProps,nextProps)&&current2.ref===workInProgress2.ref&&workInProgress2.type===current2.type)if(didReceiveUpdate=!1,workInProgress2.pendingProps=nextProps=prevProps,checkScheduledUpdateOrContext(current2,renderLanes2))(current2.flags&ForceUpdateForLegacySuspense)!==NoFlags&&(didReceiveUpdate=!0);else return workInProgress2.lanes=current2.lanes,bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}return updateFunctionComponent(current2,workInProgress2,Component,nextProps,renderLanes2)}function updateOffscreenComponent(current2,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,nextChildren=nextProps.children,prevState=current2!==null?current2.memoizedState:null;if(nextProps.mode==="hidden"||enableLegacyHidden)if((workInProgress2.mode&ConcurrentMode)===NoMode){var nextState={baseLanes:NoLanes,cachePool:null,transitions:null};workInProgress2.memoizedState=nextState,pushRenderLanes(workInProgress2,renderLanes2)}else if(includesSomeLane(renderLanes2,OffscreenLane)){var _nextState2={baseLanes:NoLanes,cachePool:null,transitions:null};workInProgress2.memoizedState=_nextState2;var subtreeRenderLanes2=prevState!==null?prevState.baseLanes:renderLanes2;pushRenderLanes(workInProgress2,subtreeRenderLanes2)}else{var spawnedCachePool=null,nextBaseLanes;if(prevState!==null){var prevBaseLanes=prevState.baseLanes;nextBaseLanes=mergeLanes(prevBaseLanes,renderLanes2)}else nextBaseLanes=renderLanes2;workInProgress2.lanes=workInProgress2.childLanes=OffscreenLane;var _nextState={baseLanes:nextBaseLanes,cachePool:spawnedCachePool,transitions:null};return workInProgress2.memoizedState=_nextState,workInProgress2.updateQueue=null,pushRenderLanes(workInProgress2,nextBaseLanes),null}else{var _subtreeRenderLanes;prevState!==null?(_subtreeRenderLanes=mergeLanes(prevState.baseLanes,renderLanes2),workInProgress2.memoizedState=null):_subtreeRenderLanes=renderLanes2,pushRenderLanes(workInProgress2,_subtreeRenderLanes)}return reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function updateFragment(current2,workInProgress2,renderLanes2){var nextChildren=workInProgress2.pendingProps;return reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function updateMode(current2,workInProgress2,renderLanes2){var nextChildren=workInProgress2.pendingProps.children;return reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function updateProfiler(current2,workInProgress2,renderLanes2){{workInProgress2.flags|=Update;{var stateNode=workInProgress2.stateNode;stateNode.effectDuration=0,stateNode.passiveEffectDuration=0}}var nextProps=workInProgress2.pendingProps,nextChildren=nextProps.children;return reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function markRef(current2,workInProgress2){var ref=workInProgress2.ref;(current2===null&&ref!==null||current2!==null&&current2.ref!==ref)&&(workInProgress2.flags|=Ref,workInProgress2.flags|=RefStatic)}function updateFunctionComponent(current2,workInProgress2,Component,nextProps,renderLanes2){if(workInProgress2.type!==workInProgress2.elementType){var innerPropTypes=Component.propTypes;innerPropTypes&&checkPropTypes(innerPropTypes,nextProps,"prop",getComponentNameFromType(Component))}var context;{var unmaskedContext=getUnmaskedContext(workInProgress2,Component,!0);context=getMaskedContext(workInProgress2,unmaskedContext)}var nextChildren,hasId;prepareToReadContext(workInProgress2,renderLanes2),markComponentRenderStarted(workInProgress2);{if(ReactCurrentOwner$1.current=workInProgress2,setIsRendering(!0),nextChildren=renderWithHooks(current2,workInProgress2,Component,nextProps,context,renderLanes2),hasId=checkDidRenderIdHook(),workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{nextChildren=renderWithHooks(current2,workInProgress2,Component,nextProps,context,renderLanes2),hasId=checkDidRenderIdHook()}finally{setIsStrictModeForDevtools(!1)}}setIsRendering(!1)}return markComponentRenderStopped(),current2!==null&&!didReceiveUpdate?(bailoutHooks(current2,workInProgress2,renderLanes2),bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)):(getIsHydrating()&&hasId&&pushMaterializedTreeId(workInProgress2),workInProgress2.flags|=PerformedWork,reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child)}function updateClassComponent(current2,workInProgress2,Component,nextProps,renderLanes2){{switch(shouldError(workInProgress2)){case!1:{var _instance=workInProgress2.stateNode,ctor=workInProgress2.type,tempInstance=new ctor(workInProgress2.memoizedProps,_instance.context),state=tempInstance.state;_instance.updater.enqueueSetState(_instance,state,null);break}case!0:{workInProgress2.flags|=DidCapture,workInProgress2.flags|=ShouldCapture;var error$1=new Error("Simulated error coming from DevTools"),lane=pickArbitraryLane(renderLanes2);workInProgress2.lanes=mergeLanes(workInProgress2.lanes,lane);var update=createClassErrorUpdate(workInProgress2,createCapturedValueAtFiber(error$1,workInProgress2),lane);enqueueCapturedUpdate(workInProgress2,update);break}}if(workInProgress2.type!==workInProgress2.elementType){var innerPropTypes=Component.propTypes;innerPropTypes&&checkPropTypes(innerPropTypes,nextProps,"prop",getComponentNameFromType(Component))}}var hasContext;isContextProvider(Component)?(hasContext=!0,pushContextProvider(workInProgress2)):hasContext=!1,prepareToReadContext(workInProgress2,renderLanes2);var instance=workInProgress2.stateNode,shouldUpdate;instance===null?(resetSuspendedCurrentOnMountInLegacyMode(current2,workInProgress2),constructClassInstance(workInProgress2,Component,nextProps),mountClassInstance(workInProgress2,Component,nextProps,renderLanes2),shouldUpdate=!0):current2===null?shouldUpdate=resumeMountClassInstance(workInProgress2,Component,nextProps,renderLanes2):shouldUpdate=updateClassInstance(current2,workInProgress2,Component,nextProps,renderLanes2);var nextUnitOfWork=finishClassComponent(current2,workInProgress2,Component,shouldUpdate,hasContext,renderLanes2);{var inst=workInProgress2.stateNode;shouldUpdate&&inst.props!==nextProps&&(didWarnAboutReassigningProps||error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",getComponentNameFromFiber(workInProgress2)||"a component"),didWarnAboutReassigningProps=!0)}return nextUnitOfWork}function finishClassComponent(current2,workInProgress2,Component,shouldUpdate,hasContext,renderLanes2){markRef(current2,workInProgress2);var didCaptureError=(workInProgress2.flags&DidCapture)!==NoFlags;if(!shouldUpdate&&!didCaptureError)return hasContext&&invalidateContextProvider(workInProgress2,Component,!1),bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2);var instance=workInProgress2.stateNode;ReactCurrentOwner$1.current=workInProgress2;var nextChildren;if(didCaptureError&&typeof Component.getDerivedStateFromError!="function")nextChildren=null,stopProfilerTimerIfRunning();else{markComponentRenderStarted(workInProgress2);{if(setIsRendering(!0),nextChildren=instance.render(),workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{instance.render()}finally{setIsStrictModeForDevtools(!1)}}setIsRendering(!1)}markComponentRenderStopped()}return workInProgress2.flags|=PerformedWork,current2!==null&&didCaptureError?forceUnmountCurrentAndReconcile(current2,workInProgress2,nextChildren,renderLanes2):reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.memoizedState=instance.state,hasContext&&invalidateContextProvider(workInProgress2,Component,!0),workInProgress2.child}function pushHostRootContext(workInProgress2){var root3=workInProgress2.stateNode;root3.pendingContext?pushTopLevelContextObject(workInProgress2,root3.pendingContext,root3.pendingContext!==root3.context):root3.context&&pushTopLevelContextObject(workInProgress2,root3.context,!1),pushHostContainer(workInProgress2,root3.containerInfo)}function updateHostRoot(current2,workInProgress2,renderLanes2){if(pushHostRootContext(workInProgress2),current2===null)throw new Error("Should have a current fiber. This is a bug in React.");var nextProps=workInProgress2.pendingProps,prevState=workInProgress2.memoizedState,prevChildren=prevState.element;cloneUpdateQueue(current2,workInProgress2),processUpdateQueue(workInProgress2,nextProps,null,renderLanes2);var nextState=workInProgress2.memoizedState;workInProgress2.stateNode;var nextChildren=nextState.element;if(prevState.isDehydrated){var overrideState={element:nextChildren,isDehydrated:!1,cache:nextState.cache,pendingSuspenseBoundaries:nextState.pendingSuspenseBoundaries,transitions:nextState.transitions},updateQueue=workInProgress2.updateQueue;if(updateQueue.baseState=overrideState,workInProgress2.memoizedState=overrideState,workInProgress2.flags&ForceClientRender){var recoverableError=createCapturedValueAtFiber(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),workInProgress2);return mountHostRootWithoutHydrating(current2,workInProgress2,nextChildren,renderLanes2,recoverableError)}else if(nextChildren!==prevChildren){var _recoverableError=createCapturedValueAtFiber(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),workInProgress2);return mountHostRootWithoutHydrating(current2,workInProgress2,nextChildren,renderLanes2,_recoverableError)}else{enterHydrationState(workInProgress2);var child=mountChildFibers(workInProgress2,null,nextChildren,renderLanes2);workInProgress2.child=child;for(var node=child;node;)node.flags=node.flags&-3|Hydrating,node=node.sibling}}else{if(resetHydrationState(),nextChildren===prevChildren)return bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2);reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2)}return workInProgress2.child}function mountHostRootWithoutHydrating(current2,workInProgress2,nextChildren,renderLanes2,recoverableError){return resetHydrationState(),queueHydrationError(recoverableError),workInProgress2.flags|=ForceClientRender,reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function updateHostComponent(current2,workInProgress2,renderLanes2){pushHostContext(workInProgress2),current2===null&&tryToClaimNextHydratableInstance(workInProgress2);var type=workInProgress2.type,nextProps=workInProgress2.pendingProps,prevProps=current2!==null?current2.memoizedProps:null,nextChildren=nextProps.children,isDirectTextChild=shouldSetTextContent(type,nextProps);return isDirectTextChild?nextChildren=null:prevProps!==null&&shouldSetTextContent(type,prevProps)&&(workInProgress2.flags|=ContentReset),markRef(current2,workInProgress2),reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}function updateHostText(current2,workInProgress2){return current2===null&&tryToClaimNextHydratableInstance(workInProgress2),null}function mountLazyComponent(_current,workInProgress2,elementType,renderLanes2){resetSuspendedCurrentOnMountInLegacyMode(_current,workInProgress2);var props=workInProgress2.pendingProps,lazyComponent=elementType,payload=lazyComponent._payload,init=lazyComponent._init,Component=init(payload);workInProgress2.type=Component;var resolvedTag=workInProgress2.tag=resolveLazyComponentTag(Component),resolvedProps=resolveDefaultProps(Component,props),child;switch(resolvedTag){case FunctionComponent:return validateFunctionComponentInDev(workInProgress2,Component),workInProgress2.type=Component=resolveFunctionForHotReloading(Component),child=updateFunctionComponent(null,workInProgress2,Component,resolvedProps,renderLanes2),child;case ClassComponent:return workInProgress2.type=Component=resolveClassForHotReloading(Component),child=updateClassComponent(null,workInProgress2,Component,resolvedProps,renderLanes2),child;case ForwardRef:return workInProgress2.type=Component=resolveForwardRefForHotReloading(Component),child=updateForwardRef(null,workInProgress2,Component,resolvedProps,renderLanes2),child;case MemoComponent:{if(workInProgress2.type!==workInProgress2.elementType){var outerPropTypes=Component.propTypes;outerPropTypes&&checkPropTypes(outerPropTypes,resolvedProps,"prop",getComponentNameFromType(Component))}return child=updateMemoComponent(null,workInProgress2,Component,resolveDefaultProps(Component.type,resolvedProps),renderLanes2),child}}var hint="";throw Component!==null&&typeof Component=="object"&&Component.$$typeof===REACT_LAZY_TYPE&&(hint=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+Component+". "+("Lazy element type must resolve to a class or function."+hint))}function mountIncompleteClassComponent(_current,workInProgress2,Component,nextProps,renderLanes2){resetSuspendedCurrentOnMountInLegacyMode(_current,workInProgress2),workInProgress2.tag=ClassComponent;var hasContext;return isContextProvider(Component)?(hasContext=!0,pushContextProvider(workInProgress2)):hasContext=!1,prepareToReadContext(workInProgress2,renderLanes2),constructClassInstance(workInProgress2,Component,nextProps),mountClassInstance(workInProgress2,Component,nextProps,renderLanes2),finishClassComponent(null,workInProgress2,Component,!0,hasContext,renderLanes2)}function mountIndeterminateComponent(_current,workInProgress2,Component,renderLanes2){resetSuspendedCurrentOnMountInLegacyMode(_current,workInProgress2);var props=workInProgress2.pendingProps,context;{var unmaskedContext=getUnmaskedContext(workInProgress2,Component,!1);context=getMaskedContext(workInProgress2,unmaskedContext)}prepareToReadContext(workInProgress2,renderLanes2);var value,hasId;markComponentRenderStarted(workInProgress2);{if(Component.prototype&&typeof Component.prototype.render=="function"){var componentName=getComponentNameFromType(Component)||"Unknown";didWarnAboutBadClass[componentName]||(error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",componentName,componentName),didWarnAboutBadClass[componentName]=!0)}workInProgress2.mode&StrictLegacyMode&&ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2,null),setIsRendering(!0),ReactCurrentOwner$1.current=workInProgress2,value=renderWithHooks(null,workInProgress2,Component,props,context,renderLanes2),hasId=checkDidRenderIdHook(),setIsRendering(!1)}if(markComponentRenderStopped(),workInProgress2.flags|=PerformedWork,typeof value=="object"&&value!==null&&typeof value.render=="function"&&value.$$typeof===void 0){var _componentName=getComponentNameFromType(Component)||"Unknown";didWarnAboutModulePatternComponent[_componentName]||(error("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",_componentName,_componentName,_componentName),didWarnAboutModulePatternComponent[_componentName]=!0)}if(typeof value=="object"&&value!==null&&typeof value.render=="function"&&value.$$typeof===void 0){{var _componentName2=getComponentNameFromType(Component)||"Unknown";didWarnAboutModulePatternComponent[_componentName2]||(error("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",_componentName2,_componentName2,_componentName2),didWarnAboutModulePatternComponent[_componentName2]=!0)}workInProgress2.tag=ClassComponent,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null;var hasContext=!1;return isContextProvider(Component)?(hasContext=!0,pushContextProvider(workInProgress2)):hasContext=!1,workInProgress2.memoizedState=value.state!==null&&value.state!==void 0?value.state:null,initializeUpdateQueue(workInProgress2),adoptClassInstance(workInProgress2,value),mountClassInstance(workInProgress2,Component,props,renderLanes2),finishClassComponent(null,workInProgress2,Component,!0,hasContext,renderLanes2)}else{if(workInProgress2.tag=FunctionComponent,workInProgress2.mode&StrictLegacyMode){setIsStrictModeForDevtools(!0);try{value=renderWithHooks(null,workInProgress2,Component,props,context,renderLanes2),hasId=checkDidRenderIdHook()}finally{setIsStrictModeForDevtools(!1)}}return getIsHydrating()&&hasId&&pushMaterializedTreeId(workInProgress2),reconcileChildren(null,workInProgress2,value,renderLanes2),validateFunctionComponentInDev(workInProgress2,Component),workInProgress2.child}}function validateFunctionComponentInDev(workInProgress2,Component){{if(Component&&Component.childContextTypes&&error("%s(...): childContextTypes cannot be defined on a function component.",Component.displayName||Component.name||"Component"),workInProgress2.ref!==null){var info="",ownerName=getCurrentFiberOwnerNameInDevOrNull();ownerName&&(info+=`
169
-
170
- Check the render method of \``+ownerName+"`.");var warningKey=ownerName||"",debugSource=workInProgress2._debugSource;debugSource&&(warningKey=debugSource.fileName+":"+debugSource.lineNumber),didWarnAboutFunctionRefs[warningKey]||(didWarnAboutFunctionRefs[warningKey]=!0,error("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",info))}if(Component.defaultProps!==void 0){var componentName=getComponentNameFromType(Component)||"Unknown";didWarnAboutDefaultPropsOnFunctionComponent[componentName]||(error("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",componentName),didWarnAboutDefaultPropsOnFunctionComponent[componentName]=!0)}if(typeof Component.getDerivedStateFromProps=="function"){var _componentName3=getComponentNameFromType(Component)||"Unknown";didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]||(error("%s: Function components do not support getDerivedStateFromProps.",_componentName3),didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]=!0)}if(typeof Component.contextType=="object"&&Component.contextType!==null){var _componentName4=getComponentNameFromType(Component)||"Unknown";didWarnAboutContextTypeOnFunctionComponent[_componentName4]||(error("%s: Function components do not support contextType.",_componentName4),didWarnAboutContextTypeOnFunctionComponent[_componentName4]=!0)}}}var SUSPENDED_MARKER={dehydrated:null,treeContext:null,retryLane:NoLane};function mountSuspenseOffscreenState(renderLanes2){return{baseLanes:renderLanes2,cachePool:getSuspendedCache(),transitions:null}}function updateSuspenseOffscreenState(prevOffscreenState,renderLanes2){var cachePool=null;return{baseLanes:mergeLanes(prevOffscreenState.baseLanes,renderLanes2),cachePool,transitions:prevOffscreenState.transitions}}function shouldRemainOnFallback(suspenseContext,current2,workInProgress2,renderLanes2){if(current2!==null){var suspenseState=current2.memoizedState;if(suspenseState===null)return!1}return hasSuspenseContext(suspenseContext,ForceSuspenseFallback)}function getRemainingWorkInPrimaryTree(current2,renderLanes2){return removeLanes(current2.childLanes,renderLanes2)}function updateSuspenseComponent(current2,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps;shouldSuspend(workInProgress2)&&(workInProgress2.flags|=DidCapture);var suspenseContext=suspenseStackCursor.current,showFallback=!1,didSuspend=(workInProgress2.flags&DidCapture)!==NoFlags;if(didSuspend||shouldRemainOnFallback(suspenseContext,current2)?(showFallback=!0,workInProgress2.flags&=-129):(current2===null||current2.memoizedState!==null)&&(suspenseContext=addSubtreeSuspenseContext(suspenseContext,InvisibleParentSuspenseContext)),suspenseContext=setDefaultShallowSuspenseContext(suspenseContext),pushSuspenseContext(workInProgress2,suspenseContext),current2===null){tryToClaimNextHydratableInstance(workInProgress2);var suspenseState=workInProgress2.memoizedState;if(suspenseState!==null){var dehydrated=suspenseState.dehydrated;if(dehydrated!==null)return mountDehydratedSuspenseComponent(workInProgress2,dehydrated)}var nextPrimaryChildren=nextProps.children,nextFallbackChildren=nextProps.fallback;if(showFallback){var fallbackFragment=mountSuspenseFallbackChildren(workInProgress2,nextPrimaryChildren,nextFallbackChildren,renderLanes2),primaryChildFragment=workInProgress2.child;return primaryChildFragment.memoizedState=mountSuspenseOffscreenState(renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,fallbackFragment}else return mountSuspensePrimaryChildren(workInProgress2,nextPrimaryChildren)}else{var prevState=current2.memoizedState;if(prevState!==null){var _dehydrated=prevState.dehydrated;if(_dehydrated!==null)return updateDehydratedSuspenseComponent(current2,workInProgress2,didSuspend,nextProps,_dehydrated,prevState,renderLanes2)}if(showFallback){var _nextFallbackChildren=nextProps.fallback,_nextPrimaryChildren=nextProps.children,fallbackChildFragment=updateSuspenseFallbackChildren(current2,workInProgress2,_nextPrimaryChildren,_nextFallbackChildren,renderLanes2),_primaryChildFragment2=workInProgress2.child,prevOffscreenState=current2.child.memoizedState;return _primaryChildFragment2.memoizedState=prevOffscreenState===null?mountSuspenseOffscreenState(renderLanes2):updateSuspenseOffscreenState(prevOffscreenState,renderLanes2),_primaryChildFragment2.childLanes=getRemainingWorkInPrimaryTree(current2,renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,fallbackChildFragment}else{var _nextPrimaryChildren2=nextProps.children,_primaryChildFragment3=updateSuspensePrimaryChildren(current2,workInProgress2,_nextPrimaryChildren2,renderLanes2);return workInProgress2.memoizedState=null,_primaryChildFragment3}}}function mountSuspensePrimaryChildren(workInProgress2,primaryChildren,renderLanes2){var mode=workInProgress2.mode,primaryChildProps={mode:"visible",children:primaryChildren},primaryChildFragment=mountWorkInProgressOffscreenFiber(primaryChildProps,mode);return primaryChildFragment.return=workInProgress2,workInProgress2.child=primaryChildFragment,primaryChildFragment}function mountSuspenseFallbackChildren(workInProgress2,primaryChildren,fallbackChildren,renderLanes2){var mode=workInProgress2.mode,progressedPrimaryFragment=workInProgress2.child,primaryChildProps={mode:"hidden",children:primaryChildren},primaryChildFragment,fallbackChildFragment;return(mode&ConcurrentMode)===NoMode&&progressedPrimaryFragment!==null?(primaryChildFragment=progressedPrimaryFragment,primaryChildFragment.childLanes=NoLanes,primaryChildFragment.pendingProps=primaryChildProps,workInProgress2.mode&ProfileMode&&(primaryChildFragment.actualDuration=0,primaryChildFragment.actualStartTime=-1,primaryChildFragment.selfBaseDuration=0,primaryChildFragment.treeBaseDuration=0),fallbackChildFragment=createFiberFromFragment(fallbackChildren,mode,renderLanes2,null)):(primaryChildFragment=mountWorkInProgressOffscreenFiber(primaryChildProps,mode),fallbackChildFragment=createFiberFromFragment(fallbackChildren,mode,renderLanes2,null)),primaryChildFragment.return=workInProgress2,fallbackChildFragment.return=workInProgress2,primaryChildFragment.sibling=fallbackChildFragment,workInProgress2.child=primaryChildFragment,fallbackChildFragment}function mountWorkInProgressOffscreenFiber(offscreenProps,mode,renderLanes2){return createFiberFromOffscreen(offscreenProps,mode,NoLanes,null)}function updateWorkInProgressOffscreenFiber(current2,offscreenProps){return createWorkInProgress(current2,offscreenProps)}function updateSuspensePrimaryChildren(current2,workInProgress2,primaryChildren,renderLanes2){var currentPrimaryChildFragment=current2.child,currentFallbackChildFragment=currentPrimaryChildFragment.sibling,primaryChildFragment=updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment,{mode:"visible",children:primaryChildren});if((workInProgress2.mode&ConcurrentMode)===NoMode&&(primaryChildFragment.lanes=renderLanes2),primaryChildFragment.return=workInProgress2,primaryChildFragment.sibling=null,currentFallbackChildFragment!==null){var deletions=workInProgress2.deletions;deletions===null?(workInProgress2.deletions=[currentFallbackChildFragment],workInProgress2.flags|=ChildDeletion):deletions.push(currentFallbackChildFragment)}return workInProgress2.child=primaryChildFragment,primaryChildFragment}function updateSuspenseFallbackChildren(current2,workInProgress2,primaryChildren,fallbackChildren,renderLanes2){var mode=workInProgress2.mode,currentPrimaryChildFragment=current2.child,currentFallbackChildFragment=currentPrimaryChildFragment.sibling,primaryChildProps={mode:"hidden",children:primaryChildren},primaryChildFragment;if((mode&ConcurrentMode)===NoMode&&workInProgress2.child!==currentPrimaryChildFragment){var progressedPrimaryFragment=workInProgress2.child;primaryChildFragment=progressedPrimaryFragment,primaryChildFragment.childLanes=NoLanes,primaryChildFragment.pendingProps=primaryChildProps,workInProgress2.mode&ProfileMode&&(primaryChildFragment.actualDuration=0,primaryChildFragment.actualStartTime=-1,primaryChildFragment.selfBaseDuration=currentPrimaryChildFragment.selfBaseDuration,primaryChildFragment.treeBaseDuration=currentPrimaryChildFragment.treeBaseDuration),workInProgress2.deletions=null}else primaryChildFragment=updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment,primaryChildProps),primaryChildFragment.subtreeFlags=currentPrimaryChildFragment.subtreeFlags&StaticMask;var fallbackChildFragment;return currentFallbackChildFragment!==null?fallbackChildFragment=createWorkInProgress(currentFallbackChildFragment,fallbackChildren):(fallbackChildFragment=createFiberFromFragment(fallbackChildren,mode,renderLanes2,null),fallbackChildFragment.flags|=Placement),fallbackChildFragment.return=workInProgress2,primaryChildFragment.return=workInProgress2,primaryChildFragment.sibling=fallbackChildFragment,workInProgress2.child=primaryChildFragment,fallbackChildFragment}function retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2,recoverableError){recoverableError!==null&&queueHydrationError(recoverableError),reconcileChildFibers(workInProgress2,current2.child,null,renderLanes2);var nextProps=workInProgress2.pendingProps,primaryChildren=nextProps.children,primaryChildFragment=mountSuspensePrimaryChildren(workInProgress2,primaryChildren);return primaryChildFragment.flags|=Placement,workInProgress2.memoizedState=null,primaryChildFragment}function mountSuspenseFallbackAfterRetryWithoutHydrating(current2,workInProgress2,primaryChildren,fallbackChildren,renderLanes2){var fiberMode=workInProgress2.mode,primaryChildProps={mode:"visible",children:primaryChildren},primaryChildFragment=mountWorkInProgressOffscreenFiber(primaryChildProps,fiberMode),fallbackChildFragment=createFiberFromFragment(fallbackChildren,fiberMode,renderLanes2,null);return fallbackChildFragment.flags|=Placement,primaryChildFragment.return=workInProgress2,fallbackChildFragment.return=workInProgress2,primaryChildFragment.sibling=fallbackChildFragment,workInProgress2.child=primaryChildFragment,(workInProgress2.mode&ConcurrentMode)!==NoMode&&reconcileChildFibers(workInProgress2,current2.child,null,renderLanes2),fallbackChildFragment}function mountDehydratedSuspenseComponent(workInProgress2,suspenseInstance,renderLanes2){return(workInProgress2.mode&ConcurrentMode)===NoMode?(error("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),workInProgress2.lanes=SyncLane):isSuspenseInstanceFallback(suspenseInstance)?workInProgress2.lanes=DefaultHydrationLane:workInProgress2.lanes=OffscreenLane,null}function updateDehydratedSuspenseComponent(current2,workInProgress2,didSuspend,nextProps,suspenseInstance,suspenseState,renderLanes2){if(didSuspend)if(workInProgress2.flags&ForceClientRender){workInProgress2.flags&=-257;var _capturedValue2=createCapturedValue(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2,_capturedValue2)}else{if(workInProgress2.memoizedState!==null)return workInProgress2.child=current2.child,workInProgress2.flags|=DidCapture,null;var nextPrimaryChildren=nextProps.children,nextFallbackChildren=nextProps.fallback,fallbackChildFragment=mountSuspenseFallbackAfterRetryWithoutHydrating(current2,workInProgress2,nextPrimaryChildren,nextFallbackChildren,renderLanes2),_primaryChildFragment4=workInProgress2.child;return _primaryChildFragment4.memoizedState=mountSuspenseOffscreenState(renderLanes2),workInProgress2.memoizedState=SUSPENDED_MARKER,fallbackChildFragment}else{if(warnIfHydrating(),(workInProgress2.mode&ConcurrentMode)===NoMode)return retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2,null);if(isSuspenseInstanceFallback(suspenseInstance)){var digest,message,stack;{var _getSuspenseInstanceF=getSuspenseInstanceFallbackErrorDetails(suspenseInstance);digest=_getSuspenseInstanceF.digest,message=_getSuspenseInstanceF.message,stack=_getSuspenseInstanceF.stack}var error2;message?error2=new Error(message):error2=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var capturedValue=createCapturedValue(error2,digest,stack);return retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2,capturedValue)}var hasContextChanged2=includesSomeLane(renderLanes2,current2.childLanes);if(didReceiveUpdate||hasContextChanged2){var root3=getWorkInProgressRoot();if(root3!==null){var attemptHydrationAtLane=getBumpedLaneForHydration(root3,renderLanes2);if(attemptHydrationAtLane!==NoLane&&attemptHydrationAtLane!==suspenseState.retryLane){suspenseState.retryLane=attemptHydrationAtLane;var eventTime=NoTimestamp;enqueueConcurrentRenderForLane(current2,attemptHydrationAtLane),scheduleUpdateOnFiber(root3,current2,attemptHydrationAtLane,eventTime)}}renderDidSuspendDelayIfPossible();var _capturedValue=createCapturedValue(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return retrySuspenseComponentWithoutHydrating(current2,workInProgress2,renderLanes2,_capturedValue)}else if(isSuspenseInstancePending(suspenseInstance)){workInProgress2.flags|=DidCapture,workInProgress2.child=current2.child;var retry=retryDehydratedSuspenseBoundary.bind(null,current2);return registerSuspenseInstanceRetry(suspenseInstance,retry),null}else{reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress2,suspenseInstance,suspenseState.treeContext);var primaryChildren=nextProps.children,primaryChildFragment=mountSuspensePrimaryChildren(workInProgress2,primaryChildren);return primaryChildFragment.flags|=Hydrating,primaryChildFragment}}}function scheduleSuspenseWorkOnFiber(fiber,renderLanes2,propagationRoot){fiber.lanes=mergeLanes(fiber.lanes,renderLanes2);var alternate=fiber.alternate;alternate!==null&&(alternate.lanes=mergeLanes(alternate.lanes,renderLanes2)),scheduleContextWorkOnParentPath(fiber.return,renderLanes2,propagationRoot)}function propagateSuspenseContextChange(workInProgress2,firstChild,renderLanes2){for(var node=firstChild;node!==null;){if(node.tag===SuspenseComponent){var state=node.memoizedState;state!==null&&scheduleSuspenseWorkOnFiber(node,renderLanes2,workInProgress2)}else if(node.tag===SuspenseListComponent)scheduleSuspenseWorkOnFiber(node,renderLanes2,workInProgress2);else if(node.child!==null){node.child.return=node,node=node.child;continue}if(node===workInProgress2)return;for(;node.sibling===null;){if(node.return===null||node.return===workInProgress2)return;node=node.return}node.sibling.return=node.return,node=node.sibling}}function findLastContentRow(firstChild){for(var row2=firstChild,lastContentRow=null;row2!==null;){var currentRow=row2.alternate;currentRow!==null&&findFirstSuspended(currentRow)===null&&(lastContentRow=row2),row2=row2.sibling}return lastContentRow}function validateRevealOrder(revealOrder){if(revealOrder!==void 0&&revealOrder!=="forwards"&&revealOrder!=="backwards"&&revealOrder!=="together"&&!didWarnAboutRevealOrder[revealOrder])if(didWarnAboutRevealOrder[revealOrder]=!0,typeof revealOrder=="string")switch(revealOrder.toLowerCase()){case"together":case"forwards":case"backwards":{error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',revealOrder,revealOrder.toLowerCase());break}case"forward":case"backward":{error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',revealOrder,revealOrder.toLowerCase());break}default:error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',revealOrder);break}else error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',revealOrder)}function validateTailOptions(tailMode,revealOrder){tailMode!==void 0&&!didWarnAboutTailOptions[tailMode]&&(tailMode!=="collapsed"&&tailMode!=="hidden"?(didWarnAboutTailOptions[tailMode]=!0,error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',tailMode)):revealOrder!=="forwards"&&revealOrder!=="backwards"&&(didWarnAboutTailOptions[tailMode]=!0,error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',tailMode)))}function validateSuspenseListNestedChild(childSlot,index2){{var isAnArray=isArray(childSlot),isIterable=!isAnArray&&typeof getIteratorFn(childSlot)=="function";if(isAnArray||isIterable){var type=isAnArray?"array":"iterable";return error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",type,index2,type),!1}}return!0}function validateSuspenseListChildren(children,revealOrder){if((revealOrder==="forwards"||revealOrder==="backwards")&&children!==void 0&&children!==null&&children!==!1)if(isArray(children)){for(var i=0;i<children.length;i++)if(!validateSuspenseListNestedChild(children[i],i))return}else{var iteratorFn=getIteratorFn(children);if(typeof iteratorFn=="function"){var childrenIterator=iteratorFn.call(children);if(childrenIterator)for(var step=childrenIterator.next(),_i=0;!step.done;step=childrenIterator.next()){if(!validateSuspenseListNestedChild(step.value,_i))return;_i++}}else error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',revealOrder)}}function initSuspenseListRenderState(workInProgress2,isBackwards,tail,lastContentRow,tailMode){var renderState=workInProgress2.memoizedState;renderState===null?workInProgress2.memoizedState={isBackwards,rendering:null,renderingStartTime:0,last:lastContentRow,tail,tailMode}:(renderState.isBackwards=isBackwards,renderState.rendering=null,renderState.renderingStartTime=0,renderState.last=lastContentRow,renderState.tail=tail,renderState.tailMode=tailMode)}function updateSuspenseListComponent(current2,workInProgress2,renderLanes2){var nextProps=workInProgress2.pendingProps,revealOrder=nextProps.revealOrder,tailMode=nextProps.tail,newChildren=nextProps.children;validateRevealOrder(revealOrder),validateTailOptions(tailMode,revealOrder),validateSuspenseListChildren(newChildren,revealOrder),reconcileChildren(current2,workInProgress2,newChildren,renderLanes2);var suspenseContext=suspenseStackCursor.current,shouldForceFallback=hasSuspenseContext(suspenseContext,ForceSuspenseFallback);if(shouldForceFallback)suspenseContext=setShallowSuspenseContext(suspenseContext,ForceSuspenseFallback),workInProgress2.flags|=DidCapture;else{var didSuspendBefore=current2!==null&&(current2.flags&DidCapture)!==NoFlags;didSuspendBefore&&propagateSuspenseContextChange(workInProgress2,workInProgress2.child,renderLanes2),suspenseContext=setDefaultShallowSuspenseContext(suspenseContext)}if(pushSuspenseContext(workInProgress2,suspenseContext),(workInProgress2.mode&ConcurrentMode)===NoMode)workInProgress2.memoizedState=null;else switch(revealOrder){case"forwards":{var lastContentRow=findLastContentRow(workInProgress2.child),tail;lastContentRow===null?(tail=workInProgress2.child,workInProgress2.child=null):(tail=lastContentRow.sibling,lastContentRow.sibling=null),initSuspenseListRenderState(workInProgress2,!1,tail,lastContentRow,tailMode);break}case"backwards":{var _tail=null,row2=workInProgress2.child;for(workInProgress2.child=null;row2!==null;){var currentRow=row2.alternate;if(currentRow!==null&&findFirstSuspended(currentRow)===null){workInProgress2.child=row2;break}var nextRow=row2.sibling;row2.sibling=_tail,_tail=row2,row2=nextRow}initSuspenseListRenderState(workInProgress2,!0,_tail,null,tailMode);break}case"together":{initSuspenseListRenderState(workInProgress2,!1,null,null,void 0);break}default:workInProgress2.memoizedState=null}return workInProgress2.child}function updatePortalComponent(current2,workInProgress2,renderLanes2){pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo);var nextChildren=workInProgress2.pendingProps;return current2===null?workInProgress2.child=reconcileChildFibers(workInProgress2,null,nextChildren,renderLanes2):reconcileChildren(current2,workInProgress2,nextChildren,renderLanes2),workInProgress2.child}var hasWarnedAboutUsingNoValuePropOnContextProvider=!1;function updateContextProvider(current2,workInProgress2,renderLanes2){var providerType=workInProgress2.type,context=providerType._context,newProps=workInProgress2.pendingProps,oldProps=workInProgress2.memoizedProps,newValue=newProps.value;{"value"in newProps||hasWarnedAboutUsingNoValuePropOnContextProvider||(hasWarnedAboutUsingNoValuePropOnContextProvider=!0,error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var providerPropTypes=workInProgress2.type.propTypes;providerPropTypes&&checkPropTypes(providerPropTypes,newProps,"prop","Context.Provider")}if(pushProvider(workInProgress2,context,newValue),oldProps!==null){var oldValue=oldProps.value;if(objectIs(oldValue,newValue)){if(oldProps.children===newProps.children&&!hasContextChanged())return bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}else propagateContextChange(workInProgress2,context,renderLanes2)}var newChildren=newProps.children;return reconcileChildren(current2,workInProgress2,newChildren,renderLanes2),workInProgress2.child}var hasWarnedAboutUsingContextAsConsumer=!1;function updateContextConsumer(current2,workInProgress2,renderLanes2){var context=workInProgress2.type;context._context===void 0?context!==context.Consumer&&(hasWarnedAboutUsingContextAsConsumer||(hasWarnedAboutUsingContextAsConsumer=!0,error("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):context=context._context;var newProps=workInProgress2.pendingProps,render2=newProps.children;typeof render2!="function"&&error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),prepareToReadContext(workInProgress2,renderLanes2);var newValue=readContext(context);markComponentRenderStarted(workInProgress2);var newChildren;return ReactCurrentOwner$1.current=workInProgress2,setIsRendering(!0),newChildren=render2(newValue),setIsRendering(!1),markComponentRenderStopped(),workInProgress2.flags|=PerformedWork,reconcileChildren(current2,workInProgress2,newChildren,renderLanes2),workInProgress2.child}function markWorkInProgressReceivedUpdate(){didReceiveUpdate=!0}function resetSuspendedCurrentOnMountInLegacyMode(current2,workInProgress2){(workInProgress2.mode&ConcurrentMode)===NoMode&&current2!==null&&(current2.alternate=null,workInProgress2.alternate=null,workInProgress2.flags|=Placement)}function bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2){return current2!==null&&(workInProgress2.dependencies=current2.dependencies),stopProfilerTimerIfRunning(),markSkippedUpdateLanes(workInProgress2.lanes),includesSomeLane(renderLanes2,workInProgress2.childLanes)?(cloneChildFibers(current2,workInProgress2),workInProgress2.child):null}function remountFiber(current2,oldWorkInProgress,newWorkInProgress){{var returnFiber=oldWorkInProgress.return;if(returnFiber===null)throw new Error("Cannot swap the root fiber.");if(current2.alternate=null,oldWorkInProgress.alternate=null,newWorkInProgress.index=oldWorkInProgress.index,newWorkInProgress.sibling=oldWorkInProgress.sibling,newWorkInProgress.return=oldWorkInProgress.return,newWorkInProgress.ref=oldWorkInProgress.ref,oldWorkInProgress===returnFiber.child)returnFiber.child=newWorkInProgress;else{var prevSibling=returnFiber.child;if(prevSibling===null)throw new Error("Expected parent to have a child.");for(;prevSibling.sibling!==oldWorkInProgress;)if(prevSibling=prevSibling.sibling,prevSibling===null)throw new Error("Expected to find the previous sibling.");prevSibling.sibling=newWorkInProgress}var deletions=returnFiber.deletions;return deletions===null?(returnFiber.deletions=[current2],returnFiber.flags|=ChildDeletion):deletions.push(current2),newWorkInProgress.flags|=Placement,newWorkInProgress}}function checkScheduledUpdateOrContext(current2,renderLanes2){var updateLanes=current2.lanes;return!!includesSomeLane(updateLanes,renderLanes2)}function attemptEarlyBailoutIfNoScheduledUpdate(current2,workInProgress2,renderLanes2){switch(workInProgress2.tag){case HostRoot:pushHostRootContext(workInProgress2),workInProgress2.stateNode,resetHydrationState();break;case HostComponent:pushHostContext(workInProgress2);break;case ClassComponent:{var Component=workInProgress2.type;isContextProvider(Component)&&pushContextProvider(workInProgress2);break}case HostPortal:pushHostContainer(workInProgress2,workInProgress2.stateNode.containerInfo);break;case ContextProvider:{var newValue=workInProgress2.memoizedProps.value,context=workInProgress2.type._context;pushProvider(workInProgress2,context,newValue);break}case Profiler:{var hasChildWork=includesSomeLane(renderLanes2,workInProgress2.childLanes);hasChildWork&&(workInProgress2.flags|=Update);{var stateNode=workInProgress2.stateNode;stateNode.effectDuration=0,stateNode.passiveEffectDuration=0}}break;case SuspenseComponent:{var state=workInProgress2.memoizedState;if(state!==null){if(state.dehydrated!==null)return pushSuspenseContext(workInProgress2,setDefaultShallowSuspenseContext(suspenseStackCursor.current)),workInProgress2.flags|=DidCapture,null;var primaryChildFragment=workInProgress2.child,primaryChildLanes=primaryChildFragment.childLanes;if(includesSomeLane(renderLanes2,primaryChildLanes))return updateSuspenseComponent(current2,workInProgress2,renderLanes2);pushSuspenseContext(workInProgress2,setDefaultShallowSuspenseContext(suspenseStackCursor.current));var child=bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2);return child!==null?child.sibling:null}else pushSuspenseContext(workInProgress2,setDefaultShallowSuspenseContext(suspenseStackCursor.current));break}case SuspenseListComponent:{var didSuspendBefore=(current2.flags&DidCapture)!==NoFlags,_hasChildWork=includesSomeLane(renderLanes2,workInProgress2.childLanes);if(didSuspendBefore){if(_hasChildWork)return updateSuspenseListComponent(current2,workInProgress2,renderLanes2);workInProgress2.flags|=DidCapture}var renderState=workInProgress2.memoizedState;if(renderState!==null&&(renderState.rendering=null,renderState.tail=null,renderState.lastEffect=null),pushSuspenseContext(workInProgress2,suspenseStackCursor.current),_hasChildWork)break;return null}case OffscreenComponent:case LegacyHiddenComponent:return workInProgress2.lanes=NoLanes,updateOffscreenComponent(current2,workInProgress2,renderLanes2)}return bailoutOnAlreadyFinishedWork(current2,workInProgress2,renderLanes2)}function beginWork(current2,workInProgress2,renderLanes2){if(workInProgress2._debugNeedsRemount&&current2!==null)return remountFiber(current2,workInProgress2,createFiberFromTypeAndProps(workInProgress2.type,workInProgress2.key,workInProgress2.pendingProps,workInProgress2._debugOwner||null,workInProgress2.mode,workInProgress2.lanes));if(current2!==null){var oldProps=current2.memoizedProps,newProps=workInProgress2.pendingProps;if(oldProps!==newProps||hasContextChanged()||workInProgress2.type!==current2.type)didReceiveUpdate=!0;else{var hasScheduledUpdateOrContext=checkScheduledUpdateOrContext(current2,renderLanes2);if(!hasScheduledUpdateOrContext&&(workInProgress2.flags&DidCapture)===NoFlags)return didReceiveUpdate=!1,attemptEarlyBailoutIfNoScheduledUpdate(current2,workInProgress2,renderLanes2);(current2.flags&ForceUpdateForLegacySuspense)!==NoFlags?didReceiveUpdate=!0:didReceiveUpdate=!1}}else if(didReceiveUpdate=!1,getIsHydrating()&&isForkedChild(workInProgress2)){var slotIndex=workInProgress2.index,numberOfForks=getForksAtLevel();pushTreeId(workInProgress2,numberOfForks,slotIndex)}switch(workInProgress2.lanes=NoLanes,workInProgress2.tag){case IndeterminateComponent:return mountIndeterminateComponent(current2,workInProgress2,workInProgress2.type,renderLanes2);case LazyComponent:{var elementType=workInProgress2.elementType;return mountLazyComponent(current2,workInProgress2,elementType,renderLanes2)}case FunctionComponent:{var Component=workInProgress2.type,unresolvedProps=workInProgress2.pendingProps,resolvedProps=workInProgress2.elementType===Component?unresolvedProps:resolveDefaultProps(Component,unresolvedProps);return updateFunctionComponent(current2,workInProgress2,Component,resolvedProps,renderLanes2)}case ClassComponent:{var _Component=workInProgress2.type,_unresolvedProps=workInProgress2.pendingProps,_resolvedProps=workInProgress2.elementType===_Component?_unresolvedProps:resolveDefaultProps(_Component,_unresolvedProps);return updateClassComponent(current2,workInProgress2,_Component,_resolvedProps,renderLanes2)}case HostRoot:return updateHostRoot(current2,workInProgress2,renderLanes2);case HostComponent:return updateHostComponent(current2,workInProgress2,renderLanes2);case HostText:return updateHostText(current2,workInProgress2);case SuspenseComponent:return updateSuspenseComponent(current2,workInProgress2,renderLanes2);case HostPortal:return updatePortalComponent(current2,workInProgress2,renderLanes2);case ForwardRef:{var type=workInProgress2.type,_unresolvedProps2=workInProgress2.pendingProps,_resolvedProps2=workInProgress2.elementType===type?_unresolvedProps2:resolveDefaultProps(type,_unresolvedProps2);return updateForwardRef(current2,workInProgress2,type,_resolvedProps2,renderLanes2)}case Fragment:return updateFragment(current2,workInProgress2,renderLanes2);case Mode:return updateMode(current2,workInProgress2,renderLanes2);case Profiler:return updateProfiler(current2,workInProgress2,renderLanes2);case ContextProvider:return updateContextProvider(current2,workInProgress2,renderLanes2);case ContextConsumer:return updateContextConsumer(current2,workInProgress2,renderLanes2);case MemoComponent:{var _type2=workInProgress2.type,_unresolvedProps3=workInProgress2.pendingProps,_resolvedProps3=resolveDefaultProps(_type2,_unresolvedProps3);if(workInProgress2.type!==workInProgress2.elementType){var outerPropTypes=_type2.propTypes;outerPropTypes&&checkPropTypes(outerPropTypes,_resolvedProps3,"prop",getComponentNameFromType(_type2))}return _resolvedProps3=resolveDefaultProps(_type2.type,_resolvedProps3),updateMemoComponent(current2,workInProgress2,_type2,_resolvedProps3,renderLanes2)}case SimpleMemoComponent:return updateSimpleMemoComponent(current2,workInProgress2,workInProgress2.type,workInProgress2.pendingProps,renderLanes2);case IncompleteClassComponent:{var _Component2=workInProgress2.type,_unresolvedProps4=workInProgress2.pendingProps,_resolvedProps4=workInProgress2.elementType===_Component2?_unresolvedProps4:resolveDefaultProps(_Component2,_unresolvedProps4);return mountIncompleteClassComponent(current2,workInProgress2,_Component2,_resolvedProps4,renderLanes2)}case SuspenseListComponent:return updateSuspenseListComponent(current2,workInProgress2,renderLanes2);case ScopeComponent:break;case OffscreenComponent:return updateOffscreenComponent(current2,workInProgress2,renderLanes2)}throw new Error("Unknown unit of work tag ("+workInProgress2.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function markUpdate(workInProgress2){workInProgress2.flags|=Update}function markRef$1(workInProgress2){workInProgress2.flags|=Ref,workInProgress2.flags|=RefStatic}var appendAllChildren,updateHostContainer,updateHostComponent$1,updateHostText$1;appendAllChildren=function(parent,workInProgress2,needsVisibilityToggle,isHidden){for(var node=workInProgress2.child;node!==null;){if(node.tag===HostComponent||node.tag===HostText)appendInitialChild(parent,node.stateNode);else if(node.tag!==HostPortal){if(node.child!==null){node.child.return=node,node=node.child;continue}}if(node===workInProgress2)return;for(;node.sibling===null;){if(node.return===null||node.return===workInProgress2)return;node=node.return}node.sibling.return=node.return,node=node.sibling}},updateHostContainer=function(current2,workInProgress2){},updateHostComponent$1=function(current2,workInProgress2,type,newProps,rootContainerInstance){var oldProps=current2.memoizedProps;if(oldProps!==newProps){var instance=workInProgress2.stateNode,currentHostContext=getHostContext(),updatePayload=prepareUpdate(instance,type,oldProps,newProps,rootContainerInstance,currentHostContext);workInProgress2.updateQueue=updatePayload,updatePayload&&markUpdate(workInProgress2)}},updateHostText$1=function(current2,workInProgress2,oldText,newText){oldText!==newText&&markUpdate(workInProgress2)};function cutOffTailIfNeeded(renderState,hasRenderedATailFallback){if(!getIsHydrating())switch(renderState.tailMode){case"hidden":{for(var tailNode=renderState.tail,lastTailNode=null;tailNode!==null;)tailNode.alternate!==null&&(lastTailNode=tailNode),tailNode=tailNode.sibling;lastTailNode===null?renderState.tail=null:lastTailNode.sibling=null;break}case"collapsed":{for(var _tailNode=renderState.tail,_lastTailNode=null;_tailNode!==null;)_tailNode.alternate!==null&&(_lastTailNode=_tailNode),_tailNode=_tailNode.sibling;_lastTailNode===null?!hasRenderedATailFallback&&renderState.tail!==null?renderState.tail.sibling=null:renderState.tail=null:_lastTailNode.sibling=null;break}}}function bubbleProperties(completedWork){var didBailout=completedWork.alternate!==null&&completedWork.alternate.child===completedWork.child,newChildLanes=NoLanes,subtreeFlags=NoFlags;if(didBailout){if((completedWork.mode&ProfileMode)!==NoMode){for(var _treeBaseDuration=completedWork.selfBaseDuration,_child2=completedWork.child;_child2!==null;)newChildLanes=mergeLanes(newChildLanes,mergeLanes(_child2.lanes,_child2.childLanes)),subtreeFlags|=_child2.subtreeFlags&StaticMask,subtreeFlags|=_child2.flags&StaticMask,_treeBaseDuration+=_child2.treeBaseDuration,_child2=_child2.sibling;completedWork.treeBaseDuration=_treeBaseDuration}else for(var _child3=completedWork.child;_child3!==null;)newChildLanes=mergeLanes(newChildLanes,mergeLanes(_child3.lanes,_child3.childLanes)),subtreeFlags|=_child3.subtreeFlags&StaticMask,subtreeFlags|=_child3.flags&StaticMask,_child3.return=completedWork,_child3=_child3.sibling;completedWork.subtreeFlags|=subtreeFlags}else{if((completedWork.mode&ProfileMode)!==NoMode){for(var actualDuration=completedWork.actualDuration,treeBaseDuration=completedWork.selfBaseDuration,child=completedWork.child;child!==null;)newChildLanes=mergeLanes(newChildLanes,mergeLanes(child.lanes,child.childLanes)),subtreeFlags|=child.subtreeFlags,subtreeFlags|=child.flags,actualDuration+=child.actualDuration,treeBaseDuration+=child.treeBaseDuration,child=child.sibling;completedWork.actualDuration=actualDuration,completedWork.treeBaseDuration=treeBaseDuration}else for(var _child=completedWork.child;_child!==null;)newChildLanes=mergeLanes(newChildLanes,mergeLanes(_child.lanes,_child.childLanes)),subtreeFlags|=_child.subtreeFlags,subtreeFlags|=_child.flags,_child.return=completedWork,_child=_child.sibling;completedWork.subtreeFlags|=subtreeFlags}return completedWork.childLanes=newChildLanes,didBailout}function completeDehydratedSuspenseBoundary(current2,workInProgress2,nextState){if(hasUnhydratedTailNodes()&&(workInProgress2.mode&ConcurrentMode)!==NoMode&&(workInProgress2.flags&DidCapture)===NoFlags)return warnIfUnhydratedTailNodes(workInProgress2),resetHydrationState(),workInProgress2.flags|=ForceClientRender|Incomplete|ShouldCapture,!1;var wasHydrated=popHydrationState(workInProgress2);if(nextState!==null&&nextState.dehydrated!==null)if(current2===null){if(!wasHydrated)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(prepareToHydrateHostSuspenseInstance(workInProgress2),bubbleProperties(workInProgress2),(workInProgress2.mode&ProfileMode)!==NoMode){var isTimedOutSuspense=nextState!==null;if(isTimedOutSuspense){var primaryChildFragment=workInProgress2.child;primaryChildFragment!==null&&(workInProgress2.treeBaseDuration-=primaryChildFragment.treeBaseDuration)}}return!1}else{if(resetHydrationState(),(workInProgress2.flags&DidCapture)===NoFlags&&(workInProgress2.memoizedState=null),workInProgress2.flags|=Update,bubbleProperties(workInProgress2),(workInProgress2.mode&ProfileMode)!==NoMode){var _isTimedOutSuspense=nextState!==null;if(_isTimedOutSuspense){var _primaryChildFragment=workInProgress2.child;_primaryChildFragment!==null&&(workInProgress2.treeBaseDuration-=_primaryChildFragment.treeBaseDuration)}}return!1}else return upgradeHydrationErrorsToRecoverable(),!0}function completeWork(current2,workInProgress2,renderLanes2){var newProps=workInProgress2.pendingProps;switch(popTreeContext(workInProgress2),workInProgress2.tag){case IndeterminateComponent:case LazyComponent:case SimpleMemoComponent:case FunctionComponent:case ForwardRef:case Fragment:case Mode:case Profiler:case ContextConsumer:case MemoComponent:return bubbleProperties(workInProgress2),null;case ClassComponent:{var Component=workInProgress2.type;return isContextProvider(Component)&&popContext(workInProgress2),bubbleProperties(workInProgress2),null}case HostRoot:{var fiberRoot=workInProgress2.stateNode;if(popHostContainer(workInProgress2),popTopLevelContextObject(workInProgress2),resetWorkInProgressVersions(),fiberRoot.pendingContext&&(fiberRoot.context=fiberRoot.pendingContext,fiberRoot.pendingContext=null),current2===null||current2.child===null){var wasHydrated=popHydrationState(workInProgress2);if(wasHydrated)markUpdate(workInProgress2);else if(current2!==null){var prevState=current2.memoizedState;(!prevState.isDehydrated||(workInProgress2.flags&ForceClientRender)!==NoFlags)&&(workInProgress2.flags|=Snapshot,upgradeHydrationErrorsToRecoverable())}}return updateHostContainer(current2,workInProgress2),bubbleProperties(workInProgress2),null}case HostComponent:{popHostContext(workInProgress2);var rootContainerInstance=getRootHostContainer(),type=workInProgress2.type;if(current2!==null&&workInProgress2.stateNode!=null)updateHostComponent$1(current2,workInProgress2,type,newProps,rootContainerInstance),current2.ref!==workInProgress2.ref&&markRef$1(workInProgress2);else{if(!newProps){if(workInProgress2.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return bubbleProperties(workInProgress2),null}var currentHostContext=getHostContext(),_wasHydrated=popHydrationState(workInProgress2);if(_wasHydrated)prepareToHydrateHostInstance(workInProgress2,rootContainerInstance,currentHostContext)&&markUpdate(workInProgress2);else{var instance=createInstance(type,newProps,rootContainerInstance,currentHostContext,workInProgress2);appendAllChildren(instance,workInProgress2,!1,!1),workInProgress2.stateNode=instance,finalizeInitialChildren(instance,type,newProps,rootContainerInstance)&&markUpdate(workInProgress2)}workInProgress2.ref!==null&&markRef$1(workInProgress2)}return bubbleProperties(workInProgress2),null}case HostText:{var newText=newProps;if(current2&&workInProgress2.stateNode!=null){var oldText=current2.memoizedProps;updateHostText$1(current2,workInProgress2,oldText,newText)}else{if(typeof newText!="string"&&workInProgress2.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var _rootContainerInstance=getRootHostContainer(),_currentHostContext=getHostContext(),_wasHydrated2=popHydrationState(workInProgress2);_wasHydrated2?prepareToHydrateHostTextInstance(workInProgress2)&&markUpdate(workInProgress2):workInProgress2.stateNode=createTextInstance(newText,_rootContainerInstance,_currentHostContext,workInProgress2)}return bubbleProperties(workInProgress2),null}case SuspenseComponent:{popSuspenseContext(workInProgress2);var nextState=workInProgress2.memoizedState;if(current2===null||current2.memoizedState!==null&&current2.memoizedState.dehydrated!==null){var fallthroughToNormalSuspensePath=completeDehydratedSuspenseBoundary(current2,workInProgress2,nextState);if(!fallthroughToNormalSuspensePath)return workInProgress2.flags&ShouldCapture?workInProgress2:null}if((workInProgress2.flags&DidCapture)!==NoFlags)return workInProgress2.lanes=renderLanes2,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2;var nextDidTimeout=nextState!==null,prevDidTimeout=current2!==null&&current2.memoizedState!==null;if(nextDidTimeout!==prevDidTimeout&&nextDidTimeout){var _offscreenFiber2=workInProgress2.child;if(_offscreenFiber2.flags|=Visibility,(workInProgress2.mode&ConcurrentMode)!==NoMode){var hasInvisibleChildContext=current2===null&&(workInProgress2.memoizedProps.unstable_avoidThisFallback!==!0||!0);hasInvisibleChildContext||hasSuspenseContext(suspenseStackCursor.current,InvisibleParentSuspenseContext)?renderDidSuspend():renderDidSuspendDelayIfPossible()}}var wakeables=workInProgress2.updateQueue;if(wakeables!==null&&(workInProgress2.flags|=Update),bubbleProperties(workInProgress2),(workInProgress2.mode&ProfileMode)!==NoMode&&nextDidTimeout){var primaryChildFragment=workInProgress2.child;primaryChildFragment!==null&&(workInProgress2.treeBaseDuration-=primaryChildFragment.treeBaseDuration)}return null}case HostPortal:return popHostContainer(workInProgress2),updateHostContainer(current2,workInProgress2),current2===null&&preparePortalMount(workInProgress2.stateNode.containerInfo),bubbleProperties(workInProgress2),null;case ContextProvider:var context=workInProgress2.type._context;return popProvider(context,workInProgress2),bubbleProperties(workInProgress2),null;case IncompleteClassComponent:{var _Component=workInProgress2.type;return isContextProvider(_Component)&&popContext(workInProgress2),bubbleProperties(workInProgress2),null}case SuspenseListComponent:{popSuspenseContext(workInProgress2);var renderState=workInProgress2.memoizedState;if(renderState===null)return bubbleProperties(workInProgress2),null;var didSuspendAlready=(workInProgress2.flags&DidCapture)!==NoFlags,renderedTail=renderState.rendering;if(renderedTail===null)if(didSuspendAlready)cutOffTailIfNeeded(renderState,!1);else{var cannotBeSuspended=renderHasNotSuspendedYet()&&(current2===null||(current2.flags&DidCapture)===NoFlags);if(!cannotBeSuspended)for(var row2=workInProgress2.child;row2!==null;){var suspended=findFirstSuspended(row2);if(suspended!==null){didSuspendAlready=!0,workInProgress2.flags|=DidCapture,cutOffTailIfNeeded(renderState,!1);var newThenables=suspended.updateQueue;return newThenables!==null&&(workInProgress2.updateQueue=newThenables,workInProgress2.flags|=Update),workInProgress2.subtreeFlags=NoFlags,resetChildFibers(workInProgress2,renderLanes2),pushSuspenseContext(workInProgress2,setShallowSuspenseContext(suspenseStackCursor.current,ForceSuspenseFallback)),workInProgress2.child}row2=row2.sibling}renderState.tail!==null&&now()>getRenderTargetTime()&&(workInProgress2.flags|=DidCapture,didSuspendAlready=!0,cutOffTailIfNeeded(renderState,!1),workInProgress2.lanes=SomeRetryLane)}else{if(!didSuspendAlready){var _suspended=findFirstSuspended(renderedTail);if(_suspended!==null){workInProgress2.flags|=DidCapture,didSuspendAlready=!0;var _newThenables=_suspended.updateQueue;if(_newThenables!==null&&(workInProgress2.updateQueue=_newThenables,workInProgress2.flags|=Update),cutOffTailIfNeeded(renderState,!0),renderState.tail===null&&renderState.tailMode==="hidden"&&!renderedTail.alternate&&!getIsHydrating())return bubbleProperties(workInProgress2),null}else now()*2-renderState.renderingStartTime>getRenderTargetTime()&&renderLanes2!==OffscreenLane&&(workInProgress2.flags|=DidCapture,didSuspendAlready=!0,cutOffTailIfNeeded(renderState,!1),workInProgress2.lanes=SomeRetryLane)}if(renderState.isBackwards)renderedTail.sibling=workInProgress2.child,workInProgress2.child=renderedTail;else{var previousSibling=renderState.last;previousSibling!==null?previousSibling.sibling=renderedTail:workInProgress2.child=renderedTail,renderState.last=renderedTail}}if(renderState.tail!==null){var next=renderState.tail;renderState.rendering=next,renderState.tail=next.sibling,renderState.renderingStartTime=now(),next.sibling=null;var suspenseContext=suspenseStackCursor.current;return didSuspendAlready?suspenseContext=setShallowSuspenseContext(suspenseContext,ForceSuspenseFallback):suspenseContext=setDefaultShallowSuspenseContext(suspenseContext),pushSuspenseContext(workInProgress2,suspenseContext),next}return bubbleProperties(workInProgress2),null}case ScopeComponent:break;case OffscreenComponent:case LegacyHiddenComponent:{popRenderLanes(workInProgress2);var _nextState=workInProgress2.memoizedState,nextIsHidden=_nextState!==null;if(current2!==null){var _prevState=current2.memoizedState,prevIsHidden=_prevState!==null;prevIsHidden!==nextIsHidden&&(workInProgress2.flags|=Visibility)}return!nextIsHidden||(workInProgress2.mode&ConcurrentMode)===NoMode?bubbleProperties(workInProgress2):includesSomeLane(subtreeRenderLanes,OffscreenLane)&&(bubbleProperties(workInProgress2),workInProgress2.subtreeFlags&(Placement|Update)&&(workInProgress2.flags|=Visibility)),null}case CacheComponent:return null;case TracingMarkerComponent:return null}throw new Error("Unknown unit of work tag ("+workInProgress2.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function unwindWork(current2,workInProgress2,renderLanes2){switch(popTreeContext(workInProgress2),workInProgress2.tag){case ClassComponent:{var Component=workInProgress2.type;isContextProvider(Component)&&popContext(workInProgress2);var flags=workInProgress2.flags;return flags&ShouldCapture?(workInProgress2.flags=flags&-65537|DidCapture,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):null}case HostRoot:{workInProgress2.stateNode,popHostContainer(workInProgress2),popTopLevelContextObject(workInProgress2),resetWorkInProgressVersions();var _flags=workInProgress2.flags;return(_flags&ShouldCapture)!==NoFlags&&(_flags&DidCapture)===NoFlags?(workInProgress2.flags=_flags&-65537|DidCapture,workInProgress2):null}case HostComponent:return popHostContext(workInProgress2),null;case SuspenseComponent:{popSuspenseContext(workInProgress2);var suspenseState=workInProgress2.memoizedState;if(suspenseState!==null&&suspenseState.dehydrated!==null){if(workInProgress2.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");resetHydrationState()}var _flags2=workInProgress2.flags;return _flags2&ShouldCapture?(workInProgress2.flags=_flags2&-65537|DidCapture,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):null}case SuspenseListComponent:return popSuspenseContext(workInProgress2),null;case HostPortal:return popHostContainer(workInProgress2),null;case ContextProvider:var context=workInProgress2.type._context;return popProvider(context,workInProgress2),null;case OffscreenComponent:case LegacyHiddenComponent:return popRenderLanes(workInProgress2),null;case CacheComponent:return null;default:return null}}function unwindInterruptedWork(current2,interruptedWork,renderLanes2){switch(popTreeContext(interruptedWork),interruptedWork.tag){case ClassComponent:{var childContextTypes=interruptedWork.type.childContextTypes;childContextTypes!=null&&popContext(interruptedWork);break}case HostRoot:{interruptedWork.stateNode,popHostContainer(interruptedWork),popTopLevelContextObject(interruptedWork),resetWorkInProgressVersions();break}case HostComponent:{popHostContext(interruptedWork);break}case HostPortal:popHostContainer(interruptedWork);break;case SuspenseComponent:popSuspenseContext(interruptedWork);break;case SuspenseListComponent:popSuspenseContext(interruptedWork);break;case ContextProvider:var context=interruptedWork.type._context;popProvider(context,interruptedWork);break;case OffscreenComponent:case LegacyHiddenComponent:popRenderLanes(interruptedWork);break}}var didWarnAboutUndefinedSnapshotBeforeUpdate=null;didWarnAboutUndefinedSnapshotBeforeUpdate=new Set;var offscreenSubtreeIsHidden=!1,offscreenSubtreeWasHidden=!1,PossiblyWeakSet=typeof WeakSet=="function"?WeakSet:Set,nextEffect=null,inProgressLanes=null,inProgressRoot=null;function reportUncaughtErrorInDEV(error2){invokeGuardedCallback(null,function(){throw error2}),clearCaughtError()}var callComponentWillUnmountWithTimer=function(current2,instance){if(instance.props=current2.memoizedProps,instance.state=current2.memoizedState,current2.mode&ProfileMode)try{startLayoutEffectTimer(),instance.componentWillUnmount()}finally{recordLayoutEffectDuration(current2)}else instance.componentWillUnmount()};function safelyCallCommitHookLayoutEffectListMount(current2,nearestMountedAncestor){try{commitHookEffectListMount(Layout,current2)}catch(error2){captureCommitPhaseError(current2,nearestMountedAncestor,error2)}}function safelyCallComponentWillUnmount(current2,nearestMountedAncestor,instance){try{callComponentWillUnmountWithTimer(current2,instance)}catch(error2){captureCommitPhaseError(current2,nearestMountedAncestor,error2)}}function safelyCallComponentDidMount(current2,nearestMountedAncestor,instance){try{instance.componentDidMount()}catch(error2){captureCommitPhaseError(current2,nearestMountedAncestor,error2)}}function safelyAttachRef(current2,nearestMountedAncestor){try{commitAttachRef(current2)}catch(error2){captureCommitPhaseError(current2,nearestMountedAncestor,error2)}}function safelyDetachRef(current2,nearestMountedAncestor){var ref=current2.ref;if(ref!==null)if(typeof ref=="function"){var retVal;try{if(enableProfilerTimer&&enableProfilerCommitHooks&&current2.mode&ProfileMode)try{startLayoutEffectTimer(),retVal=ref(null)}finally{recordLayoutEffectDuration(current2)}else retVal=ref(null)}catch(error2){captureCommitPhaseError(current2,nearestMountedAncestor,error2)}typeof retVal=="function"&&error("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",getComponentNameFromFiber(current2))}else ref.current=null}function safelyCallDestroy(current2,nearestMountedAncestor,destroy){try{destroy()}catch(error2){captureCommitPhaseError(current2,nearestMountedAncestor,error2)}}var shouldFireAfterActiveInstanceBlur=!1;function commitBeforeMutationEffects(root3,firstChild){prepareForCommit(root3.containerInfo),nextEffect=firstChild,commitBeforeMutationEffects_begin();var shouldFire=shouldFireAfterActiveInstanceBlur;return shouldFireAfterActiveInstanceBlur=!1,shouldFire}function commitBeforeMutationEffects_begin(){for(;nextEffect!==null;){var fiber=nextEffect,child=fiber.child;(fiber.subtreeFlags&BeforeMutationMask)!==NoFlags&&child!==null?(child.return=fiber,nextEffect=child):commitBeforeMutationEffects_complete()}}function commitBeforeMutationEffects_complete(){for(;nextEffect!==null;){var fiber=nextEffect;setCurrentFiber(fiber);try{commitBeforeMutationEffectsOnFiber(fiber)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}resetCurrentFiber();var sibling=fiber.sibling;if(sibling!==null){sibling.return=fiber.return,nextEffect=sibling;return}nextEffect=fiber.return}}function commitBeforeMutationEffectsOnFiber(finishedWork){var current2=finishedWork.alternate,flags=finishedWork.flags;if((flags&Snapshot)!==NoFlags){switch(setCurrentFiber(finishedWork),finishedWork.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:break;case ClassComponent:{if(current2!==null){var prevProps=current2.memoizedProps,prevState=current2.memoizedState,instance=finishedWork.stateNode;finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps&&(instance.props!==finishedWork.memoizedProps&&error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance"),instance.state!==finishedWork.memoizedState&&error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance"));var snapshot=instance.getSnapshotBeforeUpdate(finishedWork.elementType===finishedWork.type?prevProps:resolveDefaultProps(finishedWork.type,prevProps),prevState);{var didWarnSet=didWarnAboutUndefinedSnapshotBeforeUpdate;snapshot===void 0&&!didWarnSet.has(finishedWork.type)&&(didWarnSet.add(finishedWork.type),error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",getComponentNameFromFiber(finishedWork)))}instance.__reactInternalSnapshotBeforeUpdate=snapshot}break}case HostRoot:{{var root3=finishedWork.stateNode;clearContainer(root3.containerInfo)}break}case HostComponent:case HostText:case HostPortal:case IncompleteClassComponent:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}resetCurrentFiber()}}function commitHookEffectListUnmount(flags,finishedWork,nearestMountedAncestor){var updateQueue=finishedWork.updateQueue,lastEffect=updateQueue!==null?updateQueue.lastEffect:null;if(lastEffect!==null){var firstEffect=lastEffect.next,effect=firstEffect;do{if((effect.tag&flags)===flags){var destroy=effect.destroy;effect.destroy=void 0,destroy!==void 0&&((flags&Passive$1)!==NoFlags$1?markComponentPassiveEffectUnmountStarted(finishedWork):(flags&Layout)!==NoFlags$1&&markComponentLayoutEffectUnmountStarted(finishedWork),(flags&Insertion)!==NoFlags$1&&setIsRunningInsertionEffect(!0),safelyCallDestroy(finishedWork,nearestMountedAncestor,destroy),(flags&Insertion)!==NoFlags$1&&setIsRunningInsertionEffect(!1),(flags&Passive$1)!==NoFlags$1?markComponentPassiveEffectUnmountStopped():(flags&Layout)!==NoFlags$1&&markComponentLayoutEffectUnmountStopped())}effect=effect.next}while(effect!==firstEffect)}}function commitHookEffectListMount(flags,finishedWork){var updateQueue=finishedWork.updateQueue,lastEffect=updateQueue!==null?updateQueue.lastEffect:null;if(lastEffect!==null){var firstEffect=lastEffect.next,effect=firstEffect;do{if((effect.tag&flags)===flags){(flags&Passive$1)!==NoFlags$1?markComponentPassiveEffectMountStarted(finishedWork):(flags&Layout)!==NoFlags$1&&markComponentLayoutEffectMountStarted(finishedWork);var create2=effect.create;(flags&Insertion)!==NoFlags$1&&setIsRunningInsertionEffect(!0),effect.destroy=create2(),(flags&Insertion)!==NoFlags$1&&setIsRunningInsertionEffect(!1),(flags&Passive$1)!==NoFlags$1?markComponentPassiveEffectMountStopped():(flags&Layout)!==NoFlags$1&&markComponentLayoutEffectMountStopped();{var destroy=effect.destroy;if(destroy!==void 0&&typeof destroy!="function"){var hookName=void 0;(effect.tag&Layout)!==NoFlags?hookName="useLayoutEffect":(effect.tag&Insertion)!==NoFlags?hookName="useInsertionEffect":hookName="useEffect";var addendum=void 0;destroy===null?addendum=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof destroy.then=="function"?addendum=`
171
-
172
- It looks like you wrote `+hookName+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
173
-
174
- `+hookName+`(() => {
175
- async function fetchData() {
176
- // You can await here
177
- const response = await MyAPI.getData(someId);
178
- // ...
179
- }
180
- fetchData();
181
- }, [someId]); // Or [] if effect doesn't need props or state
182
-
183
- Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:addendum=" You returned: "+destroy,error("%s must not return anything besides a function, which is used for clean-up.%s",hookName,addendum)}}}effect=effect.next}while(effect!==firstEffect)}}function commitPassiveEffectDurations(finishedRoot,finishedWork){if((finishedWork.flags&Update)!==NoFlags)switch(finishedWork.tag){case Profiler:{var passiveEffectDuration=finishedWork.stateNode.passiveEffectDuration,_finishedWork$memoize=finishedWork.memoizedProps,id=_finishedWork$memoize.id,onPostCommit=_finishedWork$memoize.onPostCommit,commitTime2=getCommitTime(),phase=finishedWork.alternate===null?"mount":"update";isCurrentUpdateNested()&&(phase="nested-update"),typeof onPostCommit=="function"&&onPostCommit(id,phase,passiveEffectDuration,commitTime2);var parentFiber=finishedWork.return;outer:for(;parentFiber!==null;){switch(parentFiber.tag){case HostRoot:var root3=parentFiber.stateNode;root3.passiveEffectDuration+=passiveEffectDuration;break outer;case Profiler:var parentStateNode=parentFiber.stateNode;parentStateNode.passiveEffectDuration+=passiveEffectDuration;break outer}parentFiber=parentFiber.return}break}}}function commitLayoutEffectOnFiber(finishedRoot,current2,finishedWork,committedLanes){if((finishedWork.flags&LayoutMask)!==NoFlags)switch(finishedWork.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{if(!offscreenSubtreeWasHidden)if(finishedWork.mode&ProfileMode)try{startLayoutEffectTimer(),commitHookEffectListMount(Layout|HasEffect,finishedWork)}finally{recordLayoutEffectDuration(finishedWork)}else commitHookEffectListMount(Layout|HasEffect,finishedWork);break}case ClassComponent:{var instance=finishedWork.stateNode;if(finishedWork.flags&Update&&!offscreenSubtreeWasHidden)if(current2===null)if(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps&&(instance.props!==finishedWork.memoizedProps&&error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance"),instance.state!==finishedWork.memoizedState&&error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance")),finishedWork.mode&ProfileMode)try{startLayoutEffectTimer(),instance.componentDidMount()}finally{recordLayoutEffectDuration(finishedWork)}else instance.componentDidMount();else{var prevProps=finishedWork.elementType===finishedWork.type?current2.memoizedProps:resolveDefaultProps(finishedWork.type,current2.memoizedProps),prevState=current2.memoizedState;if(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps&&(instance.props!==finishedWork.memoizedProps&&error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance"),instance.state!==finishedWork.memoizedState&&error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance")),finishedWork.mode&ProfileMode)try{startLayoutEffectTimer(),instance.componentDidUpdate(prevProps,prevState,instance.__reactInternalSnapshotBeforeUpdate)}finally{recordLayoutEffectDuration(finishedWork)}else instance.componentDidUpdate(prevProps,prevState,instance.__reactInternalSnapshotBeforeUpdate)}var updateQueue=finishedWork.updateQueue;updateQueue!==null&&(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps&&(instance.props!==finishedWork.memoizedProps&&error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance"),instance.state!==finishedWork.memoizedState&&error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",getComponentNameFromFiber(finishedWork)||"instance")),commitUpdateQueue(finishedWork,updateQueue,instance));break}case HostRoot:{var _updateQueue=finishedWork.updateQueue;if(_updateQueue!==null){var _instance=null;if(finishedWork.child!==null)switch(finishedWork.child.tag){case HostComponent:_instance=finishedWork.child.stateNode;break;case ClassComponent:_instance=finishedWork.child.stateNode;break}commitUpdateQueue(finishedWork,_updateQueue,_instance)}break}case HostComponent:{var _instance2=finishedWork.stateNode;if(current2===null&&finishedWork.flags&Update){var type=finishedWork.type,props=finishedWork.memoizedProps;commitMount(_instance2,type,props)}break}case HostText:break;case HostPortal:break;case Profiler:{{var _finishedWork$memoize2=finishedWork.memoizedProps,onCommit=_finishedWork$memoize2.onCommit,onRender=_finishedWork$memoize2.onRender,effectDuration=finishedWork.stateNode.effectDuration,commitTime2=getCommitTime(),phase=current2===null?"mount":"update";isCurrentUpdateNested()&&(phase="nested-update"),typeof onRender=="function"&&onRender(finishedWork.memoizedProps.id,phase,finishedWork.actualDuration,finishedWork.treeBaseDuration,finishedWork.actualStartTime,commitTime2);{typeof onCommit=="function"&&onCommit(finishedWork.memoizedProps.id,phase,effectDuration,commitTime2),enqueuePendingPassiveProfilerEffect(finishedWork);var parentFiber=finishedWork.return;outer:for(;parentFiber!==null;){switch(parentFiber.tag){case HostRoot:var root3=parentFiber.stateNode;root3.effectDuration+=effectDuration;break outer;case Profiler:var parentStateNode=parentFiber.stateNode;parentStateNode.effectDuration+=effectDuration;break outer}parentFiber=parentFiber.return}}}break}case SuspenseComponent:{commitSuspenseHydrationCallbacks(finishedRoot,finishedWork);break}case SuspenseListComponent:case IncompleteClassComponent:case ScopeComponent:case OffscreenComponent:case LegacyHiddenComponent:case TracingMarkerComponent:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}offscreenSubtreeWasHidden||finishedWork.flags&Ref&&commitAttachRef(finishedWork)}function reappearLayoutEffectsOnFiber(node){switch(node.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{if(node.mode&ProfileMode)try{startLayoutEffectTimer(),safelyCallCommitHookLayoutEffectListMount(node,node.return)}finally{recordLayoutEffectDuration(node)}else safelyCallCommitHookLayoutEffectListMount(node,node.return);break}case ClassComponent:{var instance=node.stateNode;typeof instance.componentDidMount=="function"&&safelyCallComponentDidMount(node,node.return,instance),safelyAttachRef(node,node.return);break}case HostComponent:{safelyAttachRef(node,node.return);break}}}function hideOrUnhideAllChildren(finishedWork,isHidden){for(var hostSubtreeRoot=null,node=finishedWork;;){if(node.tag===HostComponent){if(hostSubtreeRoot===null){hostSubtreeRoot=node;try{var instance=node.stateNode;isHidden?hideInstance(instance):unhideInstance(node.stateNode,node.memoizedProps)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}}else if(node.tag===HostText){if(hostSubtreeRoot===null)try{var _instance3=node.stateNode;isHidden?hideTextInstance(_instance3):unhideTextInstance(_instance3,node.memoizedProps)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}else if(!((node.tag===OffscreenComponent||node.tag===LegacyHiddenComponent)&&node.memoizedState!==null&&node!==finishedWork)){if(node.child!==null){node.child.return=node,node=node.child;continue}}if(node===finishedWork)return;for(;node.sibling===null;){if(node.return===null||node.return===finishedWork)return;hostSubtreeRoot===node&&(hostSubtreeRoot=null),node=node.return}hostSubtreeRoot===node&&(hostSubtreeRoot=null),node.sibling.return=node.return,node=node.sibling}}function commitAttachRef(finishedWork){var ref=finishedWork.ref;if(ref!==null){var instance=finishedWork.stateNode,instanceToUse;switch(finishedWork.tag){case HostComponent:instanceToUse=instance;break;default:instanceToUse=instance}if(typeof ref=="function"){var retVal;if(finishedWork.mode&ProfileMode)try{startLayoutEffectTimer(),retVal=ref(instanceToUse)}finally{recordLayoutEffectDuration(finishedWork)}else retVal=ref(instanceToUse);typeof retVal=="function"&&error("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",getComponentNameFromFiber(finishedWork))}else ref.hasOwnProperty("current")||error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",getComponentNameFromFiber(finishedWork)),ref.current=instanceToUse}}function detachFiberMutation(fiber){var alternate=fiber.alternate;alternate!==null&&(alternate.return=null),fiber.return=null}function detachFiberAfterEffects(fiber){var alternate=fiber.alternate;alternate!==null&&(fiber.alternate=null,detachFiberAfterEffects(alternate));{if(fiber.child=null,fiber.deletions=null,fiber.sibling=null,fiber.tag===HostComponent){var hostInstance=fiber.stateNode;hostInstance!==null&&detachDeletedInstance(hostInstance)}fiber.stateNode=null,fiber._debugOwner=null,fiber.return=null,fiber.dependencies=null,fiber.memoizedProps=null,fiber.memoizedState=null,fiber.pendingProps=null,fiber.stateNode=null,fiber.updateQueue=null}}function getHostParentFiber(fiber){for(var parent=fiber.return;parent!==null;){if(isHostParent(parent))return parent;parent=parent.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function isHostParent(fiber){return fiber.tag===HostComponent||fiber.tag===HostRoot||fiber.tag===HostPortal}function getHostSibling(fiber){var node=fiber;siblings:for(;;){for(;node.sibling===null;){if(node.return===null||isHostParent(node.return))return null;node=node.return}for(node.sibling.return=node.return,node=node.sibling;node.tag!==HostComponent&&node.tag!==HostText&&node.tag!==DehydratedFragment;){if(node.flags&Placement||node.child===null||node.tag===HostPortal)continue siblings;node.child.return=node,node=node.child}if(!(node.flags&Placement))return node.stateNode}}function commitPlacement(finishedWork){var parentFiber=getHostParentFiber(finishedWork);switch(parentFiber.tag){case HostComponent:{var parent=parentFiber.stateNode;parentFiber.flags&ContentReset&&(resetTextContent(parent),parentFiber.flags&=-33);var before=getHostSibling(finishedWork);insertOrAppendPlacementNode(finishedWork,before,parent);break}case HostRoot:case HostPortal:{var _parent=parentFiber.stateNode.containerInfo,_before=getHostSibling(finishedWork);insertOrAppendPlacementNodeIntoContainer(finishedWork,_before,_parent);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function insertOrAppendPlacementNodeIntoContainer(node,before,parent){var tag=node.tag,isHost=tag===HostComponent||tag===HostText;if(isHost){var stateNode=node.stateNode;before?insertInContainerBefore(parent,stateNode,before):appendChildToContainer(parent,stateNode)}else if(tag!==HostPortal){var child=node.child;if(child!==null){insertOrAppendPlacementNodeIntoContainer(child,before,parent);for(var sibling=child.sibling;sibling!==null;)insertOrAppendPlacementNodeIntoContainer(sibling,before,parent),sibling=sibling.sibling}}}function insertOrAppendPlacementNode(node,before,parent){var tag=node.tag,isHost=tag===HostComponent||tag===HostText;if(isHost){var stateNode=node.stateNode;before?insertBefore(parent,stateNode,before):appendChild(parent,stateNode)}else if(tag!==HostPortal){var child=node.child;if(child!==null){insertOrAppendPlacementNode(child,before,parent);for(var sibling=child.sibling;sibling!==null;)insertOrAppendPlacementNode(sibling,before,parent),sibling=sibling.sibling}}}var hostParent=null,hostParentIsContainer=!1;function commitDeletionEffects(root3,returnFiber,deletedFiber){{var parent=returnFiber;findParent:for(;parent!==null;){switch(parent.tag){case HostComponent:{hostParent=parent.stateNode,hostParentIsContainer=!1;break findParent}case HostRoot:{hostParent=parent.stateNode.containerInfo,hostParentIsContainer=!0;break findParent}case HostPortal:{hostParent=parent.stateNode.containerInfo,hostParentIsContainer=!0;break findParent}}parent=parent.return}if(hostParent===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");commitDeletionEffectsOnFiber(root3,returnFiber,deletedFiber),hostParent=null,hostParentIsContainer=!1}detachFiberMutation(deletedFiber)}function recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,parent){for(var child=parent.child;child!==null;)commitDeletionEffectsOnFiber(finishedRoot,nearestMountedAncestor,child),child=child.sibling}function commitDeletionEffectsOnFiber(finishedRoot,nearestMountedAncestor,deletedFiber){switch(onCommitUnmount(deletedFiber),deletedFiber.tag){case HostComponent:offscreenSubtreeWasHidden||safelyDetachRef(deletedFiber,nearestMountedAncestor);case HostText:{{var prevHostParent=hostParent,prevHostParentIsContainer=hostParentIsContainer;hostParent=null,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),hostParent=prevHostParent,hostParentIsContainer=prevHostParentIsContainer,hostParent!==null&&(hostParentIsContainer?removeChildFromContainer(hostParent,deletedFiber.stateNode):removeChild(hostParent,deletedFiber.stateNode))}return}case DehydratedFragment:{hostParent!==null&&(hostParentIsContainer?clearSuspenseBoundaryFromContainer(hostParent,deletedFiber.stateNode):clearSuspenseBoundary(hostParent,deletedFiber.stateNode));return}case HostPortal:{{var _prevHostParent=hostParent,_prevHostParentIsContainer=hostParentIsContainer;hostParent=deletedFiber.stateNode.containerInfo,hostParentIsContainer=!0,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),hostParent=_prevHostParent,hostParentIsContainer=_prevHostParentIsContainer}return}case FunctionComponent:case ForwardRef:case MemoComponent:case SimpleMemoComponent:{if(!offscreenSubtreeWasHidden){var updateQueue=deletedFiber.updateQueue;if(updateQueue!==null){var lastEffect=updateQueue.lastEffect;if(lastEffect!==null){var firstEffect=lastEffect.next,effect=firstEffect;do{var _effect=effect,destroy=_effect.destroy,tag=_effect.tag;destroy!==void 0&&((tag&Insertion)!==NoFlags$1?safelyCallDestroy(deletedFiber,nearestMountedAncestor,destroy):(tag&Layout)!==NoFlags$1&&(markComponentLayoutEffectUnmountStarted(deletedFiber),deletedFiber.mode&ProfileMode?(startLayoutEffectTimer(),safelyCallDestroy(deletedFiber,nearestMountedAncestor,destroy),recordLayoutEffectDuration(deletedFiber)):safelyCallDestroy(deletedFiber,nearestMountedAncestor,destroy),markComponentLayoutEffectUnmountStopped())),effect=effect.next}while(effect!==firstEffect)}}}recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);return}case ClassComponent:{if(!offscreenSubtreeWasHidden){safelyDetachRef(deletedFiber,nearestMountedAncestor);var instance=deletedFiber.stateNode;typeof instance.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(deletedFiber,nearestMountedAncestor,instance)}recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);return}case ScopeComponent:{recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);return}case OffscreenComponent:{if(deletedFiber.mode&ConcurrentMode){var prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden||deletedFiber.memoizedState!==null,recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber),offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden}else recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);break}default:{recursivelyTraverseDeletionEffects(finishedRoot,nearestMountedAncestor,deletedFiber);return}}}function commitSuspenseCallback(finishedWork){finishedWork.memoizedState}function commitSuspenseHydrationCallbacks(finishedRoot,finishedWork){var newState=finishedWork.memoizedState;if(newState===null){var current2=finishedWork.alternate;if(current2!==null){var prevState=current2.memoizedState;if(prevState!==null){var suspenseInstance=prevState.dehydrated;suspenseInstance!==null&&commitHydratedSuspenseInstance(suspenseInstance)}}}}function attachSuspenseRetryListeners(finishedWork){var wakeables=finishedWork.updateQueue;if(wakeables!==null){finishedWork.updateQueue=null;var retryCache=finishedWork.stateNode;retryCache===null&&(retryCache=finishedWork.stateNode=new PossiblyWeakSet),wakeables.forEach(function(wakeable){var retry=resolveRetryWakeable.bind(null,finishedWork,wakeable);if(!retryCache.has(wakeable)){if(retryCache.add(wakeable),isDevToolsPresent)if(inProgressLanes!==null&&inProgressRoot!==null)restorePendingUpdaters(inProgressRoot,inProgressLanes);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");wakeable.then(retry,retry)}})}}function commitMutationEffects(root3,finishedWork,committedLanes){inProgressLanes=committedLanes,inProgressRoot=root3,setCurrentFiber(finishedWork),commitMutationEffectsOnFiber(finishedWork,root3),setCurrentFiber(finishedWork),inProgressLanes=null,inProgressRoot=null}function recursivelyTraverseMutationEffects(root3,parentFiber,lanes){var deletions=parentFiber.deletions;if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i];try{commitDeletionEffects(root3,parentFiber,childToDelete)}catch(error2){captureCommitPhaseError(childToDelete,parentFiber,error2)}}var prevDebugFiber=getCurrentFiber();if(parentFiber.subtreeFlags&MutationMask)for(var child=parentFiber.child;child!==null;)setCurrentFiber(child),commitMutationEffectsOnFiber(child,root3),child=child.sibling;setCurrentFiber(prevDebugFiber)}function commitMutationEffectsOnFiber(finishedWork,root3,lanes){var current2=finishedWork.alternate,flags=finishedWork.flags;switch(finishedWork.tag){case FunctionComponent:case ForwardRef:case MemoComponent:case SimpleMemoComponent:{if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&Update){try{commitHookEffectListUnmount(Insertion|HasEffect,finishedWork,finishedWork.return),commitHookEffectListMount(Insertion|HasEffect,finishedWork)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}if(finishedWork.mode&ProfileMode){try{startLayoutEffectTimer(),commitHookEffectListUnmount(Layout|HasEffect,finishedWork,finishedWork.return)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}recordLayoutEffectDuration(finishedWork)}else try{commitHookEffectListUnmount(Layout|HasEffect,finishedWork,finishedWork.return)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}return}case ClassComponent:{recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&Ref&&current2!==null&&safelyDetachRef(current2,current2.return);return}case HostComponent:{recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&Ref&&current2!==null&&safelyDetachRef(current2,current2.return);{if(finishedWork.flags&ContentReset){var instance=finishedWork.stateNode;try{resetTextContent(instance)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}if(flags&Update){var _instance4=finishedWork.stateNode;if(_instance4!=null){var newProps=finishedWork.memoizedProps,oldProps=current2!==null?current2.memoizedProps:newProps,type=finishedWork.type,updatePayload=finishedWork.updateQueue;if(finishedWork.updateQueue=null,updatePayload!==null)try{commitUpdate(_instance4,updatePayload,type,oldProps,newProps,finishedWork)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}}}return}case HostText:{if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&Update){if(finishedWork.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var textInstance=finishedWork.stateNode,newText=finishedWork.memoizedProps,oldText=current2!==null?current2.memoizedProps:newText;try{commitTextUpdate(textInstance,oldText,newText)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}return}case HostRoot:{if(recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&Update&&current2!==null){var prevRootState=current2.memoizedState;if(prevRootState.isDehydrated)try{commitHydratedContainer(root3.containerInfo)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}return}case HostPortal:{recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork);return}case SuspenseComponent:{recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork);var offscreenFiber=finishedWork.child;if(offscreenFiber.flags&Visibility){var offscreenInstance=offscreenFiber.stateNode,newState=offscreenFiber.memoizedState,isHidden=newState!==null;if(offscreenInstance.isHidden=isHidden,isHidden){var wasHidden=offscreenFiber.alternate!==null&&offscreenFiber.alternate.memoizedState!==null;wasHidden||markCommitTimeOfFallback()}}if(flags&Update){try{commitSuspenseCallback(finishedWork)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}attachSuspenseRetryListeners(finishedWork)}return}case OffscreenComponent:{var _wasHidden=current2!==null&&current2.memoizedState!==null;if(finishedWork.mode&ConcurrentMode){var prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden||_wasHidden,recursivelyTraverseMutationEffects(root3,finishedWork),offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden}else recursivelyTraverseMutationEffects(root3,finishedWork);if(commitReconciliationEffects(finishedWork),flags&Visibility){var _offscreenInstance=finishedWork.stateNode,_newState=finishedWork.memoizedState,_isHidden=_newState!==null,offscreenBoundary=finishedWork;if(_offscreenInstance.isHidden=_isHidden,_isHidden&&!_wasHidden&&(offscreenBoundary.mode&ConcurrentMode)!==NoMode){nextEffect=offscreenBoundary;for(var offscreenChild=offscreenBoundary.child;offscreenChild!==null;)nextEffect=offscreenChild,disappearLayoutEffects_begin(offscreenChild),offscreenChild=offscreenChild.sibling}hideOrUnhideAllChildren(offscreenBoundary,_isHidden)}return}case SuspenseListComponent:{recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork),flags&Update&&attachSuspenseRetryListeners(finishedWork);return}case ScopeComponent:return;default:{recursivelyTraverseMutationEffects(root3,finishedWork),commitReconciliationEffects(finishedWork);return}}}function commitReconciliationEffects(finishedWork){var flags=finishedWork.flags;if(flags&Placement){try{commitPlacement(finishedWork)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}finishedWork.flags&=-3}flags&Hydrating&&(finishedWork.flags&=-4097)}function commitLayoutEffects(finishedWork,root3,committedLanes){inProgressLanes=committedLanes,inProgressRoot=root3,nextEffect=finishedWork,commitLayoutEffects_begin(finishedWork,root3,committedLanes),inProgressLanes=null,inProgressRoot=null}function commitLayoutEffects_begin(subtreeRoot,root3,committedLanes){for(var isModernRoot=(subtreeRoot.mode&ConcurrentMode)!==NoMode;nextEffect!==null;){var fiber=nextEffect,firstChild=fiber.child;if(fiber.tag===OffscreenComponent&&isModernRoot){var isHidden=fiber.memoizedState!==null,newOffscreenSubtreeIsHidden=isHidden||offscreenSubtreeIsHidden;if(newOffscreenSubtreeIsHidden){commitLayoutMountEffects_complete(subtreeRoot,root3,committedLanes);continue}else{var current2=fiber.alternate,wasHidden=current2!==null&&current2.memoizedState!==null,newOffscreenSubtreeWasHidden=wasHidden||offscreenSubtreeWasHidden,prevOffscreenSubtreeIsHidden=offscreenSubtreeIsHidden,prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;offscreenSubtreeIsHidden=newOffscreenSubtreeIsHidden,offscreenSubtreeWasHidden=newOffscreenSubtreeWasHidden,offscreenSubtreeWasHidden&&!prevOffscreenSubtreeWasHidden&&(nextEffect=fiber,reappearLayoutEffects_begin(fiber));for(var child=firstChild;child!==null;)nextEffect=child,commitLayoutEffects_begin(child,root3,committedLanes),child=child.sibling;nextEffect=fiber,offscreenSubtreeIsHidden=prevOffscreenSubtreeIsHidden,offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden,commitLayoutMountEffects_complete(subtreeRoot,root3,committedLanes);continue}}(fiber.subtreeFlags&LayoutMask)!==NoFlags&&firstChild!==null?(firstChild.return=fiber,nextEffect=firstChild):commitLayoutMountEffects_complete(subtreeRoot,root3,committedLanes)}}function commitLayoutMountEffects_complete(subtreeRoot,root3,committedLanes){for(;nextEffect!==null;){var fiber=nextEffect;if((fiber.flags&LayoutMask)!==NoFlags){var current2=fiber.alternate;setCurrentFiber(fiber);try{commitLayoutEffectOnFiber(root3,current2,fiber,committedLanes)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}resetCurrentFiber()}if(fiber===subtreeRoot){nextEffect=null;return}var sibling=fiber.sibling;if(sibling!==null){sibling.return=fiber.return,nextEffect=sibling;return}nextEffect=fiber.return}}function disappearLayoutEffects_begin(subtreeRoot){for(;nextEffect!==null;){var fiber=nextEffect,firstChild=fiber.child;switch(fiber.tag){case FunctionComponent:case ForwardRef:case MemoComponent:case SimpleMemoComponent:{if(fiber.mode&ProfileMode)try{startLayoutEffectTimer(),commitHookEffectListUnmount(Layout,fiber,fiber.return)}finally{recordLayoutEffectDuration(fiber)}else commitHookEffectListUnmount(Layout,fiber,fiber.return);break}case ClassComponent:{safelyDetachRef(fiber,fiber.return);var instance=fiber.stateNode;typeof instance.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(fiber,fiber.return,instance);break}case HostComponent:{safelyDetachRef(fiber,fiber.return);break}case OffscreenComponent:{var isHidden=fiber.memoizedState!==null;if(isHidden){disappearLayoutEffects_complete(subtreeRoot);continue}break}}firstChild!==null?(firstChild.return=fiber,nextEffect=firstChild):disappearLayoutEffects_complete(subtreeRoot)}}function disappearLayoutEffects_complete(subtreeRoot){for(;nextEffect!==null;){var fiber=nextEffect;if(fiber===subtreeRoot){nextEffect=null;return}var sibling=fiber.sibling;if(sibling!==null){sibling.return=fiber.return,nextEffect=sibling;return}nextEffect=fiber.return}}function reappearLayoutEffects_begin(subtreeRoot){for(;nextEffect!==null;){var fiber=nextEffect,firstChild=fiber.child;if(fiber.tag===OffscreenComponent){var isHidden=fiber.memoizedState!==null;if(isHidden){reappearLayoutEffects_complete(subtreeRoot);continue}}firstChild!==null?(firstChild.return=fiber,nextEffect=firstChild):reappearLayoutEffects_complete(subtreeRoot)}}function reappearLayoutEffects_complete(subtreeRoot){for(;nextEffect!==null;){var fiber=nextEffect;setCurrentFiber(fiber);try{reappearLayoutEffectsOnFiber(fiber)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}if(resetCurrentFiber(),fiber===subtreeRoot){nextEffect=null;return}var sibling=fiber.sibling;if(sibling!==null){sibling.return=fiber.return,nextEffect=sibling;return}nextEffect=fiber.return}}function commitPassiveMountEffects(root3,finishedWork,committedLanes,committedTransitions){nextEffect=finishedWork,commitPassiveMountEffects_begin(finishedWork,root3,committedLanes,committedTransitions)}function commitPassiveMountEffects_begin(subtreeRoot,root3,committedLanes,committedTransitions){for(;nextEffect!==null;){var fiber=nextEffect,firstChild=fiber.child;(fiber.subtreeFlags&PassiveMask)!==NoFlags&&firstChild!==null?(firstChild.return=fiber,nextEffect=firstChild):commitPassiveMountEffects_complete(subtreeRoot,root3,committedLanes,committedTransitions)}}function commitPassiveMountEffects_complete(subtreeRoot,root3,committedLanes,committedTransitions){for(;nextEffect!==null;){var fiber=nextEffect;if((fiber.flags&Passive)!==NoFlags){setCurrentFiber(fiber);try{commitPassiveMountOnFiber(root3,fiber,committedLanes,committedTransitions)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}resetCurrentFiber()}if(fiber===subtreeRoot){nextEffect=null;return}var sibling=fiber.sibling;if(sibling!==null){sibling.return=fiber.return,nextEffect=sibling;return}nextEffect=fiber.return}}function commitPassiveMountOnFiber(finishedRoot,finishedWork,committedLanes,committedTransitions){switch(finishedWork.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{if(finishedWork.mode&ProfileMode){startPassiveEffectTimer();try{commitHookEffectListMount(Passive$1|HasEffect,finishedWork)}finally{recordPassiveEffectDuration(finishedWork)}}else commitHookEffectListMount(Passive$1|HasEffect,finishedWork);break}}}function commitPassiveUnmountEffects(firstChild){nextEffect=firstChild,commitPassiveUnmountEffects_begin()}function commitPassiveUnmountEffects_begin(){for(;nextEffect!==null;){var fiber=nextEffect,child=fiber.child;if((nextEffect.flags&ChildDeletion)!==NoFlags){var deletions=fiber.deletions;if(deletions!==null){for(var i=0;i<deletions.length;i++){var fiberToDelete=deletions[i];nextEffect=fiberToDelete,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete,fiber)}{var previousFiber=fiber.alternate;if(previousFiber!==null){var detachedChild=previousFiber.child;if(detachedChild!==null){previousFiber.child=null;do{var detachedSibling=detachedChild.sibling;detachedChild.sibling=null,detachedChild=detachedSibling}while(detachedChild!==null)}}}nextEffect=fiber}}(fiber.subtreeFlags&PassiveMask)!==NoFlags&&child!==null?(child.return=fiber,nextEffect=child):commitPassiveUnmountEffects_complete()}}function commitPassiveUnmountEffects_complete(){for(;nextEffect!==null;){var fiber=nextEffect;(fiber.flags&Passive)!==NoFlags&&(setCurrentFiber(fiber),commitPassiveUnmountOnFiber(fiber),resetCurrentFiber());var sibling=fiber.sibling;if(sibling!==null){sibling.return=fiber.return,nextEffect=sibling;return}nextEffect=fiber.return}}function commitPassiveUnmountOnFiber(finishedWork){switch(finishedWork.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{finishedWork.mode&ProfileMode?(startPassiveEffectTimer(),commitHookEffectListUnmount(Passive$1|HasEffect,finishedWork,finishedWork.return),recordPassiveEffectDuration(finishedWork)):commitHookEffectListUnmount(Passive$1|HasEffect,finishedWork,finishedWork.return);break}}}function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot,nearestMountedAncestor){for(;nextEffect!==null;){var fiber=nextEffect;setCurrentFiber(fiber),commitPassiveUnmountInsideDeletedTreeOnFiber(fiber,nearestMountedAncestor),resetCurrentFiber();var child=fiber.child;child!==null?(child.return=fiber,nextEffect=child):commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot)}}function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot){for(;nextEffect!==null;){var fiber=nextEffect,sibling=fiber.sibling,returnFiber=fiber.return;if(detachFiberAfterEffects(fiber),fiber===deletedSubtreeRoot){nextEffect=null;return}if(sibling!==null){sibling.return=returnFiber,nextEffect=sibling;return}nextEffect=returnFiber}}function commitPassiveUnmountInsideDeletedTreeOnFiber(current2,nearestMountedAncestor){switch(current2.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{current2.mode&ProfileMode?(startPassiveEffectTimer(),commitHookEffectListUnmount(Passive$1,current2,nearestMountedAncestor),recordPassiveEffectDuration(current2)):commitHookEffectListUnmount(Passive$1,current2,nearestMountedAncestor);break}}}function invokeLayoutEffectMountInDEV(fiber){switch(fiber.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{try{commitHookEffectListMount(Layout|HasEffect,fiber)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}break}case ClassComponent:{var instance=fiber.stateNode;try{instance.componentDidMount()}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}break}}}function invokePassiveEffectMountInDEV(fiber){switch(fiber.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{try{commitHookEffectListMount(Passive$1|HasEffect,fiber)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}break}}}function invokeLayoutEffectUnmountInDEV(fiber){switch(fiber.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{try{commitHookEffectListUnmount(Layout|HasEffect,fiber,fiber.return)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}break}case ClassComponent:{var instance=fiber.stateNode;typeof instance.componentWillUnmount=="function"&&safelyCallComponentWillUnmount(fiber,fiber.return,instance);break}}}function invokePassiveEffectUnmountInDEV(fiber){switch(fiber.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:try{commitHookEffectListUnmount(Passive$1|HasEffect,fiber,fiber.return)}catch(error2){captureCommitPhaseError(fiber,fiber.return,error2)}}}if(typeof Symbol=="function"&&Symbol.for){var symbolFor=Symbol.for;symbolFor("selector.component"),symbolFor("selector.has_pseudo_class"),symbolFor("selector.role"),symbolFor("selector.test_id"),symbolFor("selector.text")}var commitHooks=[];function onCommitRoot$1(){commitHooks.forEach(function(commitHook){return commitHook()})}var ReactCurrentActQueue=ReactSharedInternals.ReactCurrentActQueue;function isLegacyActEnvironment(fiber){{var isReactActEnvironmentGlobal=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,jestIsDefined=typeof jest<"u";return jestIsDefined&&isReactActEnvironmentGlobal!==!1}}function isConcurrentActEnvironment(){{var isReactActEnvironmentGlobal=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!isReactActEnvironmentGlobal&&ReactCurrentActQueue.current!==null&&error("The current testing environment is not configured to support act(...)"),isReactActEnvironmentGlobal}}var ceil=Math.ceil,ReactCurrentDispatcher$2=ReactSharedInternals.ReactCurrentDispatcher,ReactCurrentOwner$2=ReactSharedInternals.ReactCurrentOwner,ReactCurrentBatchConfig$3=ReactSharedInternals.ReactCurrentBatchConfig,ReactCurrentActQueue$1=ReactSharedInternals.ReactCurrentActQueue,NoContext=0,BatchedContext=1,RenderContext=2,CommitContext=4,RootInProgress=0,RootFatalErrored=1,RootErrored=2,RootSuspended=3,RootSuspendedWithDelay=4,RootCompleted=5,RootDidNotComplete=6,executionContext=NoContext,workInProgressRoot=null,workInProgress=null,workInProgressRootRenderLanes=NoLanes,subtreeRenderLanes=NoLanes,subtreeRenderLanesCursor=createCursor(NoLanes),workInProgressRootExitStatus=RootInProgress,workInProgressRootFatalError=null,workInProgressRootSkippedLanes=NoLanes,workInProgressRootInterleavedUpdatedLanes=NoLanes,workInProgressRootPingedLanes=NoLanes,workInProgressRootConcurrentErrors=null,workInProgressRootRecoverableErrors=null,globalMostRecentFallbackTime=0,FALLBACK_THROTTLE_MS=500,workInProgressRootRenderTargetTime=1/0,RENDER_TIMEOUT_MS=500,workInProgressTransitions=null;function resetRenderTimer(){workInProgressRootRenderTargetTime=now()+RENDER_TIMEOUT_MS}function getRenderTargetTime(){return workInProgressRootRenderTargetTime}var hasUncaughtError=!1,firstUncaughtError=null,legacyErrorBoundariesThatAlreadyFailed=null,rootDoesHavePassiveEffects=!1,rootWithPendingPassiveEffects=null,pendingPassiveEffectsLanes=NoLanes,pendingPassiveProfilerEffects=[],pendingPassiveTransitions=null,NESTED_UPDATE_LIMIT=50,nestedUpdateCount=0,rootWithNestedUpdates=null,isFlushingPassiveEffects=!1,didScheduleUpdateDuringPassiveEffects=!1,NESTED_PASSIVE_UPDATE_LIMIT=50,nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null,currentEventTime=NoTimestamp,currentEventTransitionLane=NoLanes,isRunningInsertionEffect=!1;function getWorkInProgressRoot(){return workInProgressRoot}function requestEventTime(){return(executionContext&(RenderContext|CommitContext))!==NoContext?now():(currentEventTime!==NoTimestamp||(currentEventTime=now()),currentEventTime)}function requestUpdateLane(fiber){var mode=fiber.mode;if((mode&ConcurrentMode)===NoMode)return SyncLane;if((executionContext&RenderContext)!==NoContext&&workInProgressRootRenderLanes!==NoLanes)return pickArbitraryLane(workInProgressRootRenderLanes);var isTransition=requestCurrentTransition()!==NoTransition;if(isTransition){if(ReactCurrentBatchConfig$3.transition!==null){var transition=ReactCurrentBatchConfig$3.transition;transition._updatedFibers||(transition._updatedFibers=new Set),transition._updatedFibers.add(fiber)}return currentEventTransitionLane===NoLane&&(currentEventTransitionLane=claimNextTransitionLane()),currentEventTransitionLane}var updateLane=getCurrentUpdatePriority();if(updateLane!==NoLane)return updateLane;var eventLane=getCurrentEventPriority();return eventLane}function requestRetryLane(fiber){var mode=fiber.mode;return(mode&ConcurrentMode)===NoMode?SyncLane:claimNextRetryLane()}function scheduleUpdateOnFiber(root3,fiber,lane,eventTime){checkForNestedUpdates(),isRunningInsertionEffect&&error("useInsertionEffect must not schedule updates."),isFlushingPassiveEffects&&(didScheduleUpdateDuringPassiveEffects=!0),markRootUpdated(root3,lane,eventTime),(executionContext&RenderContext)!==NoLanes&&root3===workInProgressRoot?warnAboutRenderPhaseUpdatesInDEV(fiber):(isDevToolsPresent&&addFiberToLanesMap(root3,fiber,lane),warnIfUpdatesNotWrappedWithActDEV(fiber),root3===workInProgressRoot&&((executionContext&RenderContext)===NoContext&&(workInProgressRootInterleavedUpdatedLanes=mergeLanes(workInProgressRootInterleavedUpdatedLanes,lane)),workInProgressRootExitStatus===RootSuspendedWithDelay&&markRootSuspended$1(root3,workInProgressRootRenderLanes)),ensureRootIsScheduled(root3,eventTime),lane===SyncLane&&executionContext===NoContext&&(fiber.mode&ConcurrentMode)===NoMode&&!ReactCurrentActQueue$1.isBatchingLegacy&&(resetRenderTimer(),flushSyncCallbacksOnlyInLegacyMode()))}function scheduleInitialHydrationOnRoot(root3,lane,eventTime){var current2=root3.current;current2.lanes=lane,markRootUpdated(root3,lane,eventTime),ensureRootIsScheduled(root3,eventTime)}function isUnsafeClassRenderPhaseUpdate(fiber){return(executionContext&RenderContext)!==NoContext}function ensureRootIsScheduled(root3,currentTime){var existingCallbackNode=root3.callbackNode;markStarvedLanesAsExpired(root3,currentTime);var nextLanes=getNextLanes(root3,root3===workInProgressRoot?workInProgressRootRenderLanes:NoLanes);if(nextLanes===NoLanes){existingCallbackNode!==null&&cancelCallback$1(existingCallbackNode),root3.callbackNode=null,root3.callbackPriority=NoLane;return}var newCallbackPriority=getHighestPriorityLane(nextLanes),existingCallbackPriority=root3.callbackPriority;if(existingCallbackPriority===newCallbackPriority&&!(ReactCurrentActQueue$1.current!==null&&existingCallbackNode!==fakeActCallbackNode)){existingCallbackNode==null&&existingCallbackPriority!==SyncLane&&error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}existingCallbackNode!=null&&cancelCallback$1(existingCallbackNode);var newCallbackNode;if(newCallbackPriority===SyncLane)root3.tag===LegacyRoot?(ReactCurrentActQueue$1.isBatchingLegacy!==null&&(ReactCurrentActQueue$1.didScheduleLegacyUpdate=!0),scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null,root3))):scheduleSyncCallback(performSyncWorkOnRoot.bind(null,root3)),ReactCurrentActQueue$1.current!==null?ReactCurrentActQueue$1.current.push(flushSyncCallbacks):scheduleMicrotask(function(){(executionContext&(RenderContext|CommitContext))===NoContext&&flushSyncCallbacks()}),newCallbackNode=null;else{var schedulerPriorityLevel;switch(lanesToEventPriority(nextLanes)){case DiscreteEventPriority:schedulerPriorityLevel=ImmediatePriority;break;case ContinuousEventPriority:schedulerPriorityLevel=UserBlockingPriority;break;case DefaultEventPriority:schedulerPriorityLevel=NormalPriority;break;case IdleEventPriority:schedulerPriorityLevel=IdlePriority;break;default:schedulerPriorityLevel=NormalPriority;break}newCallbackNode=scheduleCallback$1(schedulerPriorityLevel,performConcurrentWorkOnRoot.bind(null,root3))}root3.callbackPriority=newCallbackPriority,root3.callbackNode=newCallbackNode}function performConcurrentWorkOnRoot(root3,didTimeout){if(resetNestedUpdateFlag(),currentEventTime=NoTimestamp,currentEventTransitionLane=NoLanes,(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Should not already be working.");var originalCallbackNode=root3.callbackNode,didFlushPassiveEffects=flushPassiveEffects();if(didFlushPassiveEffects&&root3.callbackNode!==originalCallbackNode)return null;var lanes=getNextLanes(root3,root3===workInProgressRoot?workInProgressRootRenderLanes:NoLanes);if(lanes===NoLanes)return null;var shouldTimeSlice=!includesBlockingLane(root3,lanes)&&!includesExpiredLane(root3,lanes)&&!didTimeout,exitStatus=shouldTimeSlice?renderRootConcurrent(root3,lanes):renderRootSync(root3,lanes);if(exitStatus!==RootInProgress){if(exitStatus===RootErrored){var errorRetryLanes=getLanesToRetrySynchronouslyOnError(root3);errorRetryLanes!==NoLanes&&(lanes=errorRetryLanes,exitStatus=recoverFromConcurrentError(root3,errorRetryLanes))}if(exitStatus===RootFatalErrored){var fatalError=workInProgressRootFatalError;throw prepareFreshStack(root3,NoLanes),markRootSuspended$1(root3,lanes),ensureRootIsScheduled(root3,now()),fatalError}if(exitStatus===RootDidNotComplete)markRootSuspended$1(root3,lanes);else{var renderWasConcurrent=!includesBlockingLane(root3,lanes),finishedWork=root3.current.alternate;if(renderWasConcurrent&&!isRenderConsistentWithExternalStores(finishedWork)){if(exitStatus=renderRootSync(root3,lanes),exitStatus===RootErrored){var _errorRetryLanes=getLanesToRetrySynchronouslyOnError(root3);_errorRetryLanes!==NoLanes&&(lanes=_errorRetryLanes,exitStatus=recoverFromConcurrentError(root3,_errorRetryLanes))}if(exitStatus===RootFatalErrored){var _fatalError=workInProgressRootFatalError;throw prepareFreshStack(root3,NoLanes),markRootSuspended$1(root3,lanes),ensureRootIsScheduled(root3,now()),_fatalError}}root3.finishedWork=finishedWork,root3.finishedLanes=lanes,finishConcurrentRender(root3,exitStatus,lanes)}}return ensureRootIsScheduled(root3,now()),root3.callbackNode===originalCallbackNode?performConcurrentWorkOnRoot.bind(null,root3):null}function recoverFromConcurrentError(root3,errorRetryLanes){var errorsFromFirstAttempt=workInProgressRootConcurrentErrors;if(isRootDehydrated(root3)){var rootWorkInProgress=prepareFreshStack(root3,errorRetryLanes);rootWorkInProgress.flags|=ForceClientRender,errorHydratingContainer(root3.containerInfo)}var exitStatus=renderRootSync(root3,errorRetryLanes);if(exitStatus!==RootErrored){var errorsFromSecondAttempt=workInProgressRootRecoverableErrors;workInProgressRootRecoverableErrors=errorsFromFirstAttempt,errorsFromSecondAttempt!==null&&queueRecoverableErrors(errorsFromSecondAttempt)}return exitStatus}function queueRecoverableErrors(errors){workInProgressRootRecoverableErrors===null?workInProgressRootRecoverableErrors=errors:workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors,errors)}function finishConcurrentRender(root3,exitStatus,lanes){switch(exitStatus){case RootInProgress:case RootFatalErrored:throw new Error("Root did not complete. This is a bug in React.");case RootErrored:{commitRoot(root3,workInProgressRootRecoverableErrors,workInProgressTransitions);break}case RootSuspended:{if(markRootSuspended$1(root3,lanes),includesOnlyRetries(lanes)&&!shouldForceFlushFallbacksInDEV()){var msUntilTimeout=globalMostRecentFallbackTime+FALLBACK_THROTTLE_MS-now();if(msUntilTimeout>10){var nextLanes=getNextLanes(root3,NoLanes);if(nextLanes!==NoLanes)break;var suspendedLanes=root3.suspendedLanes;if(!isSubsetOfLanes(suspendedLanes,lanes)){requestEventTime(),markRootPinged(root3,suspendedLanes);break}root3.timeoutHandle=scheduleTimeout(commitRoot.bind(null,root3,workInProgressRootRecoverableErrors,workInProgressTransitions),msUntilTimeout);break}}commitRoot(root3,workInProgressRootRecoverableErrors,workInProgressTransitions);break}case RootSuspendedWithDelay:{if(markRootSuspended$1(root3,lanes),includesOnlyTransitions(lanes))break;if(!shouldForceFlushFallbacksInDEV()){var mostRecentEventTime=getMostRecentEventTime(root3,lanes),eventTimeMs=mostRecentEventTime,timeElapsedMs=now()-eventTimeMs,_msUntilTimeout=jnd(timeElapsedMs)-timeElapsedMs;if(_msUntilTimeout>10){root3.timeoutHandle=scheduleTimeout(commitRoot.bind(null,root3,workInProgressRootRecoverableErrors,workInProgressTransitions),_msUntilTimeout);break}}commitRoot(root3,workInProgressRootRecoverableErrors,workInProgressTransitions);break}case RootCompleted:{commitRoot(root3,workInProgressRootRecoverableErrors,workInProgressTransitions);break}default:throw new Error("Unknown root exit status.")}}function isRenderConsistentWithExternalStores(finishedWork){for(var node=finishedWork;;){if(node.flags&StoreConsistency){var updateQueue=node.updateQueue;if(updateQueue!==null){var checks=updateQueue.stores;if(checks!==null)for(var i=0;i<checks.length;i++){var check=checks[i],getSnapshot=check.getSnapshot,renderedValue=check.value;try{if(!objectIs(getSnapshot(),renderedValue))return!1}catch{return!1}}}}var child=node.child;if(node.subtreeFlags&StoreConsistency&&child!==null){child.return=node,node=child;continue}if(node===finishedWork)return!0;for(;node.sibling===null;){if(node.return===null||node.return===finishedWork)return!0;node=node.return}node.sibling.return=node.return,node=node.sibling}return!0}function markRootSuspended$1(root3,suspendedLanes){suspendedLanes=removeLanes(suspendedLanes,workInProgressRootPingedLanes),suspendedLanes=removeLanes(suspendedLanes,workInProgressRootInterleavedUpdatedLanes),markRootSuspended(root3,suspendedLanes)}function performSyncWorkOnRoot(root3){if(syncNestedUpdateFlag(),(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Should not already be working.");flushPassiveEffects();var lanes=getNextLanes(root3,NoLanes);if(!includesSomeLane(lanes,SyncLane))return ensureRootIsScheduled(root3,now()),null;var exitStatus=renderRootSync(root3,lanes);if(root3.tag!==LegacyRoot&&exitStatus===RootErrored){var errorRetryLanes=getLanesToRetrySynchronouslyOnError(root3);errorRetryLanes!==NoLanes&&(lanes=errorRetryLanes,exitStatus=recoverFromConcurrentError(root3,errorRetryLanes))}if(exitStatus===RootFatalErrored){var fatalError=workInProgressRootFatalError;throw prepareFreshStack(root3,NoLanes),markRootSuspended$1(root3,lanes),ensureRootIsScheduled(root3,now()),fatalError}if(exitStatus===RootDidNotComplete)throw new Error("Root did not complete. This is a bug in React.");var finishedWork=root3.current.alternate;return root3.finishedWork=finishedWork,root3.finishedLanes=lanes,commitRoot(root3,workInProgressRootRecoverableErrors,workInProgressTransitions),ensureRootIsScheduled(root3,now()),null}function flushRoot(root3,lanes){lanes!==NoLanes&&(markRootEntangled(root3,mergeLanes(lanes,SyncLane)),ensureRootIsScheduled(root3,now()),(executionContext&(RenderContext|CommitContext))===NoContext&&(resetRenderTimer(),flushSyncCallbacks()))}function batchedUpdates$1(fn,a2){var prevExecutionContext=executionContext;executionContext|=BatchedContext;try{return fn(a2)}finally{executionContext=prevExecutionContext,executionContext===NoContext&&!ReactCurrentActQueue$1.isBatchingLegacy&&(resetRenderTimer(),flushSyncCallbacksOnlyInLegacyMode())}}function discreteUpdates(fn,a2,b,c2,d){var previousPriority=getCurrentUpdatePriority(),prevTransition=ReactCurrentBatchConfig$3.transition;try{return ReactCurrentBatchConfig$3.transition=null,setCurrentUpdatePriority(DiscreteEventPriority),fn(a2,b,c2,d)}finally{setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig$3.transition=prevTransition,executionContext===NoContext&&resetRenderTimer()}}function flushSync(fn){rootWithPendingPassiveEffects!==null&&rootWithPendingPassiveEffects.tag===LegacyRoot&&(executionContext&(RenderContext|CommitContext))===NoContext&&flushPassiveEffects();var prevExecutionContext=executionContext;executionContext|=BatchedContext;var prevTransition=ReactCurrentBatchConfig$3.transition,previousPriority=getCurrentUpdatePriority();try{return ReactCurrentBatchConfig$3.transition=null,setCurrentUpdatePriority(DiscreteEventPriority),fn?fn():void 0}finally{setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig$3.transition=prevTransition,executionContext=prevExecutionContext,(executionContext&(RenderContext|CommitContext))===NoContext&&flushSyncCallbacks()}}function isAlreadyRendering(){return(executionContext&(RenderContext|CommitContext))!==NoContext}function pushRenderLanes(fiber,lanes){push(subtreeRenderLanesCursor,subtreeRenderLanes,fiber),subtreeRenderLanes=mergeLanes(subtreeRenderLanes,lanes)}function popRenderLanes(fiber){subtreeRenderLanes=subtreeRenderLanesCursor.current,pop(subtreeRenderLanesCursor,fiber)}function prepareFreshStack(root3,lanes){root3.finishedWork=null,root3.finishedLanes=NoLanes;var timeoutHandle=root3.timeoutHandle;if(timeoutHandle!==noTimeout&&(root3.timeoutHandle=noTimeout,cancelTimeout(timeoutHandle)),workInProgress!==null)for(var interruptedWork=workInProgress.return;interruptedWork!==null;){var current2=interruptedWork.alternate;unwindInterruptedWork(current2,interruptedWork),interruptedWork=interruptedWork.return}workInProgressRoot=root3;var rootWorkInProgress=createWorkInProgress(root3.current,null);return workInProgress=rootWorkInProgress,workInProgressRootRenderLanes=subtreeRenderLanes=lanes,workInProgressRootExitStatus=RootInProgress,workInProgressRootFatalError=null,workInProgressRootSkippedLanes=NoLanes,workInProgressRootInterleavedUpdatedLanes=NoLanes,workInProgressRootPingedLanes=NoLanes,workInProgressRootConcurrentErrors=null,workInProgressRootRecoverableErrors=null,finishQueueingConcurrentUpdates(),ReactStrictModeWarnings.discardPendingWarnings(),rootWorkInProgress}function handleError(root3,thrownValue){do{var erroredWork=workInProgress;try{if(resetContextDependencies(),resetHooksAfterThrow(),resetCurrentFiber(),ReactCurrentOwner$2.current=null,erroredWork===null||erroredWork.return===null){workInProgressRootExitStatus=RootFatalErrored,workInProgressRootFatalError=thrownValue,workInProgress=null;return}if(enableProfilerTimer&&erroredWork.mode&ProfileMode&&stopProfilerTimerIfRunningAndRecordDelta(erroredWork,!0),enableSchedulingProfiler)if(markComponentRenderStopped(),thrownValue!==null&&typeof thrownValue=="object"&&typeof thrownValue.then=="function"){var wakeable=thrownValue;markComponentSuspended(erroredWork,wakeable,workInProgressRootRenderLanes)}else markComponentErrored(erroredWork,thrownValue,workInProgressRootRenderLanes);throwException(root3,erroredWork.return,erroredWork,thrownValue,workInProgressRootRenderLanes),completeUnitOfWork(erroredWork)}catch(yetAnotherThrownValue){thrownValue=yetAnotherThrownValue,workInProgress===erroredWork&&erroredWork!==null?(erroredWork=erroredWork.return,workInProgress=erroredWork):erroredWork=workInProgress;continue}return}while(!0)}function pushDispatcher(){var prevDispatcher=ReactCurrentDispatcher$2.current;return ReactCurrentDispatcher$2.current=ContextOnlyDispatcher,prevDispatcher===null?ContextOnlyDispatcher:prevDispatcher}function popDispatcher(prevDispatcher){ReactCurrentDispatcher$2.current=prevDispatcher}function markCommitTimeOfFallback(){globalMostRecentFallbackTime=now()}function markSkippedUpdateLanes(lane){workInProgressRootSkippedLanes=mergeLanes(lane,workInProgressRootSkippedLanes)}function renderDidSuspend(){workInProgressRootExitStatus===RootInProgress&&(workInProgressRootExitStatus=RootSuspended)}function renderDidSuspendDelayIfPossible(){(workInProgressRootExitStatus===RootInProgress||workInProgressRootExitStatus===RootSuspended||workInProgressRootExitStatus===RootErrored)&&(workInProgressRootExitStatus=RootSuspendedWithDelay),workInProgressRoot!==null&&(includesNonIdleWork(workInProgressRootSkippedLanes)||includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))&&markRootSuspended$1(workInProgressRoot,workInProgressRootRenderLanes)}function renderDidError(error2){workInProgressRootExitStatus!==RootSuspendedWithDelay&&(workInProgressRootExitStatus=RootErrored),workInProgressRootConcurrentErrors===null?workInProgressRootConcurrentErrors=[error2]:workInProgressRootConcurrentErrors.push(error2)}function renderHasNotSuspendedYet(){return workInProgressRootExitStatus===RootInProgress}function renderRootSync(root3,lanes){var prevExecutionContext=executionContext;executionContext|=RenderContext;var prevDispatcher=pushDispatcher();if(workInProgressRoot!==root3||workInProgressRootRenderLanes!==lanes){if(isDevToolsPresent){var memoizedUpdaters=root3.memoizedUpdaters;memoizedUpdaters.size>0&&(restorePendingUpdaters(root3,workInProgressRootRenderLanes),memoizedUpdaters.clear()),movePendingFibersToMemoized(root3,lanes)}workInProgressTransitions=getTransitionsForLanes(),prepareFreshStack(root3,lanes)}markRenderStarted(lanes);do try{workLoopSync();break}catch(thrownValue){handleError(root3,thrownValue)}while(!0);if(resetContextDependencies(),executionContext=prevExecutionContext,popDispatcher(prevDispatcher),workInProgress!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return markRenderStopped(),workInProgressRoot=null,workInProgressRootRenderLanes=NoLanes,workInProgressRootExitStatus}function workLoopSync(){for(;workInProgress!==null;)performUnitOfWork(workInProgress)}function renderRootConcurrent(root3,lanes){var prevExecutionContext=executionContext;executionContext|=RenderContext;var prevDispatcher=pushDispatcher();if(workInProgressRoot!==root3||workInProgressRootRenderLanes!==lanes){if(isDevToolsPresent){var memoizedUpdaters=root3.memoizedUpdaters;memoizedUpdaters.size>0&&(restorePendingUpdaters(root3,workInProgressRootRenderLanes),memoizedUpdaters.clear()),movePendingFibersToMemoized(root3,lanes)}workInProgressTransitions=getTransitionsForLanes(),resetRenderTimer(),prepareFreshStack(root3,lanes)}markRenderStarted(lanes);do try{workLoopConcurrent();break}catch(thrownValue){handleError(root3,thrownValue)}while(!0);return resetContextDependencies(),popDispatcher(prevDispatcher),executionContext=prevExecutionContext,workInProgress!==null?(markRenderYielded(),RootInProgress):(markRenderStopped(),workInProgressRoot=null,workInProgressRootRenderLanes=NoLanes,workInProgressRootExitStatus)}function workLoopConcurrent(){for(;workInProgress!==null&&!shouldYield();)performUnitOfWork(workInProgress)}function performUnitOfWork(unitOfWork){var current2=unitOfWork.alternate;setCurrentFiber(unitOfWork);var next;(unitOfWork.mode&ProfileMode)!==NoMode?(startProfilerTimer(unitOfWork),next=beginWork$1(current2,unitOfWork,subtreeRenderLanes),stopProfilerTimerIfRunningAndRecordDelta(unitOfWork,!0)):next=beginWork$1(current2,unitOfWork,subtreeRenderLanes),resetCurrentFiber(),unitOfWork.memoizedProps=unitOfWork.pendingProps,next===null?completeUnitOfWork(unitOfWork):workInProgress=next,ReactCurrentOwner$2.current=null}function completeUnitOfWork(unitOfWork){var completedWork=unitOfWork;do{var current2=completedWork.alternate,returnFiber=completedWork.return;if((completedWork.flags&Incomplete)===NoFlags){setCurrentFiber(completedWork);var next=void 0;if((completedWork.mode&ProfileMode)===NoMode?next=completeWork(current2,completedWork,subtreeRenderLanes):(startProfilerTimer(completedWork),next=completeWork(current2,completedWork,subtreeRenderLanes),stopProfilerTimerIfRunningAndRecordDelta(completedWork,!1)),resetCurrentFiber(),next!==null){workInProgress=next;return}}else{var _next=unwindWork(current2,completedWork);if(_next!==null){_next.flags&=HostEffectMask,workInProgress=_next;return}if((completedWork.mode&ProfileMode)!==NoMode){stopProfilerTimerIfRunningAndRecordDelta(completedWork,!1);for(var actualDuration=completedWork.actualDuration,child=completedWork.child;child!==null;)actualDuration+=child.actualDuration,child=child.sibling;completedWork.actualDuration=actualDuration}if(returnFiber!==null)returnFiber.flags|=Incomplete,returnFiber.subtreeFlags=NoFlags,returnFiber.deletions=null;else{workInProgressRootExitStatus=RootDidNotComplete,workInProgress=null;return}}var siblingFiber=completedWork.sibling;if(siblingFiber!==null){workInProgress=siblingFiber;return}completedWork=returnFiber,workInProgress=completedWork}while(completedWork!==null);workInProgressRootExitStatus===RootInProgress&&(workInProgressRootExitStatus=RootCompleted)}function commitRoot(root3,recoverableErrors,transitions){var previousUpdateLanePriority=getCurrentUpdatePriority(),prevTransition=ReactCurrentBatchConfig$3.transition;try{ReactCurrentBatchConfig$3.transition=null,setCurrentUpdatePriority(DiscreteEventPriority),commitRootImpl(root3,recoverableErrors,transitions,previousUpdateLanePriority)}finally{ReactCurrentBatchConfig$3.transition=prevTransition,setCurrentUpdatePriority(previousUpdateLanePriority)}return null}function commitRootImpl(root3,recoverableErrors,transitions,renderPriorityLevel){do flushPassiveEffects();while(rootWithPendingPassiveEffects!==null);if(flushRenderPhaseStrictModeWarningsInDEV(),(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Should not already be working.");var finishedWork=root3.finishedWork,lanes=root3.finishedLanes;if(markCommitStarted(lanes),finishedWork===null)return markCommitStopped(),null;if(lanes===NoLanes&&error("root.finishedLanes should not be empty during a commit. This is a bug in React."),root3.finishedWork=null,root3.finishedLanes=NoLanes,finishedWork===root3.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");root3.callbackNode=null,root3.callbackPriority=NoLane;var remainingLanes=mergeLanes(finishedWork.lanes,finishedWork.childLanes);markRootFinished(root3,remainingLanes),root3===workInProgressRoot&&(workInProgressRoot=null,workInProgress=null,workInProgressRootRenderLanes=NoLanes),((finishedWork.subtreeFlags&PassiveMask)!==NoFlags||(finishedWork.flags&PassiveMask)!==NoFlags)&&(rootDoesHavePassiveEffects||(rootDoesHavePassiveEffects=!0,pendingPassiveTransitions=transitions,scheduleCallback$1(NormalPriority,function(){return flushPassiveEffects(),null})));var subtreeHasEffects=(finishedWork.subtreeFlags&(BeforeMutationMask|MutationMask|LayoutMask|PassiveMask))!==NoFlags,rootHasEffect=(finishedWork.flags&(BeforeMutationMask|MutationMask|LayoutMask|PassiveMask))!==NoFlags;if(subtreeHasEffects||rootHasEffect){var prevTransition=ReactCurrentBatchConfig$3.transition;ReactCurrentBatchConfig$3.transition=null;var previousPriority=getCurrentUpdatePriority();setCurrentUpdatePriority(DiscreteEventPriority);var prevExecutionContext=executionContext;executionContext|=CommitContext,ReactCurrentOwner$2.current=null,commitBeforeMutationEffects(root3,finishedWork),recordCommitTime(),commitMutationEffects(root3,finishedWork,lanes),resetAfterCommit(root3.containerInfo),root3.current=finishedWork,markLayoutEffectsStarted(lanes),commitLayoutEffects(finishedWork,root3,lanes),markLayoutEffectsStopped(),requestPaint(),executionContext=prevExecutionContext,setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig$3.transition=prevTransition}else root3.current=finishedWork,recordCommitTime();var rootDidHavePassiveEffects=rootDoesHavePassiveEffects;if(rootDoesHavePassiveEffects?(rootDoesHavePassiveEffects=!1,rootWithPendingPassiveEffects=root3,pendingPassiveEffectsLanes=lanes):(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null),remainingLanes=root3.pendingLanes,remainingLanes===NoLanes&&(legacyErrorBoundariesThatAlreadyFailed=null),rootDidHavePassiveEffects||commitDoubleInvokeEffectsInDEV(root3.current,!1),onCommitRoot(finishedWork.stateNode,renderPriorityLevel),isDevToolsPresent&&root3.memoizedUpdaters.clear(),onCommitRoot$1(),ensureRootIsScheduled(root3,now()),recoverableErrors!==null)for(var onRecoverableError=root3.onRecoverableError,i=0;i<recoverableErrors.length;i++){var recoverableError=recoverableErrors[i],componentStack=recoverableError.stack,digest=recoverableError.digest;onRecoverableError(recoverableError.value,{componentStack,digest})}if(hasUncaughtError){hasUncaughtError=!1;var error$1=firstUncaughtError;throw firstUncaughtError=null,error$1}return includesSomeLane(pendingPassiveEffectsLanes,SyncLane)&&root3.tag!==LegacyRoot&&flushPassiveEffects(),remainingLanes=root3.pendingLanes,includesSomeLane(remainingLanes,SyncLane)?(markNestedUpdateScheduled(),root3===rootWithNestedUpdates?nestedUpdateCount++:(nestedUpdateCount=0,rootWithNestedUpdates=root3)):nestedUpdateCount=0,flushSyncCallbacks(),markCommitStopped(),null}function flushPassiveEffects(){if(rootWithPendingPassiveEffects!==null){var renderPriority=lanesToEventPriority(pendingPassiveEffectsLanes),priority=lowerEventPriority(DefaultEventPriority,renderPriority),prevTransition=ReactCurrentBatchConfig$3.transition,previousPriority=getCurrentUpdatePriority();try{return ReactCurrentBatchConfig$3.transition=null,setCurrentUpdatePriority(priority),flushPassiveEffectsImpl()}finally{setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig$3.transition=prevTransition}}return!1}function enqueuePendingPassiveProfilerEffect(fiber){pendingPassiveProfilerEffects.push(fiber),rootDoesHavePassiveEffects||(rootDoesHavePassiveEffects=!0,scheduleCallback$1(NormalPriority,function(){return flushPassiveEffects(),null}))}function flushPassiveEffectsImpl(){if(rootWithPendingPassiveEffects===null)return!1;var transitions=pendingPassiveTransitions;pendingPassiveTransitions=null;var root3=rootWithPendingPassiveEffects,lanes=pendingPassiveEffectsLanes;if(rootWithPendingPassiveEffects=null,pendingPassiveEffectsLanes=NoLanes,(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Cannot flush passive effects while already rendering.");isFlushingPassiveEffects=!0,didScheduleUpdateDuringPassiveEffects=!1,markPassiveEffectsStarted(lanes);var prevExecutionContext=executionContext;executionContext|=CommitContext,commitPassiveUnmountEffects(root3.current),commitPassiveMountEffects(root3,root3.current,lanes,transitions);{var profilerEffects=pendingPassiveProfilerEffects;pendingPassiveProfilerEffects=[];for(var i=0;i<profilerEffects.length;i++){var _fiber=profilerEffects[i];commitPassiveEffectDurations(root3,_fiber)}}markPassiveEffectsStopped(),commitDoubleInvokeEffectsInDEV(root3.current,!0),executionContext=prevExecutionContext,flushSyncCallbacks(),didScheduleUpdateDuringPassiveEffects?root3===rootWithPassiveNestedUpdates?nestedPassiveUpdateCount++:(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=root3):nestedPassiveUpdateCount=0,isFlushingPassiveEffects=!1,didScheduleUpdateDuringPassiveEffects=!1,onPostCommitRoot(root3);{var stateNode=root3.current.stateNode;stateNode.effectDuration=0,stateNode.passiveEffectDuration=0}return!0}function isAlreadyFailedLegacyErrorBoundary(instance){return legacyErrorBoundariesThatAlreadyFailed!==null&&legacyErrorBoundariesThatAlreadyFailed.has(instance)}function markLegacyErrorBoundaryAsFailed(instance){legacyErrorBoundariesThatAlreadyFailed===null?legacyErrorBoundariesThatAlreadyFailed=new Set([instance]):legacyErrorBoundariesThatAlreadyFailed.add(instance)}function prepareToThrowUncaughtError(error2){hasUncaughtError||(hasUncaughtError=!0,firstUncaughtError=error2)}var onUncaughtError=prepareToThrowUncaughtError;function captureCommitPhaseErrorOnRoot(rootFiber,sourceFiber,error2){var errorInfo=createCapturedValueAtFiber(error2,sourceFiber),update=createRootErrorUpdate(rootFiber,errorInfo,SyncLane),root3=enqueueUpdate(rootFiber,update,SyncLane),eventTime=requestEventTime();root3!==null&&(markRootUpdated(root3,SyncLane,eventTime),ensureRootIsScheduled(root3,eventTime))}function captureCommitPhaseError(sourceFiber,nearestMountedAncestor,error$1){if(reportUncaughtErrorInDEV(error$1),setIsRunningInsertionEffect(!1),sourceFiber.tag===HostRoot){captureCommitPhaseErrorOnRoot(sourceFiber,sourceFiber,error$1);return}var fiber=null;for(fiber=nearestMountedAncestor;fiber!==null;){if(fiber.tag===HostRoot){captureCommitPhaseErrorOnRoot(fiber,sourceFiber,error$1);return}else if(fiber.tag===ClassComponent){var ctor=fiber.type,instance=fiber.stateNode;if(typeof ctor.getDerivedStateFromError=="function"||typeof instance.componentDidCatch=="function"&&!isAlreadyFailedLegacyErrorBoundary(instance)){var errorInfo=createCapturedValueAtFiber(error$1,sourceFiber),update=createClassErrorUpdate(fiber,errorInfo,SyncLane),root3=enqueueUpdate(fiber,update,SyncLane),eventTime=requestEventTime();root3!==null&&(markRootUpdated(root3,SyncLane,eventTime),ensureRootIsScheduled(root3,eventTime));return}}fiber=fiber.return}error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
184
-
185
- Error message:
186
-
187
- %s`,error$1)}function pingSuspendedRoot(root3,wakeable,pingedLanes){var pingCache=root3.pingCache;pingCache!==null&&pingCache.delete(wakeable);var eventTime=requestEventTime();markRootPinged(root3,pingedLanes),warnIfSuspenseResolutionNotWrappedWithActDEV(root3),workInProgressRoot===root3&&isSubsetOfLanes(workInProgressRootRenderLanes,pingedLanes)&&(workInProgressRootExitStatus===RootSuspendedWithDelay||workInProgressRootExitStatus===RootSuspended&&includesOnlyRetries(workInProgressRootRenderLanes)&&now()-globalMostRecentFallbackTime<FALLBACK_THROTTLE_MS?prepareFreshStack(root3,NoLanes):workInProgressRootPingedLanes=mergeLanes(workInProgressRootPingedLanes,pingedLanes)),ensureRootIsScheduled(root3,eventTime)}function retryTimedOutBoundary(boundaryFiber,retryLane){retryLane===NoLane&&(retryLane=requestRetryLane(boundaryFiber));var eventTime=requestEventTime(),root3=enqueueConcurrentRenderForLane(boundaryFiber,retryLane);root3!==null&&(markRootUpdated(root3,retryLane,eventTime),ensureRootIsScheduled(root3,eventTime))}function retryDehydratedSuspenseBoundary(boundaryFiber){var suspenseState=boundaryFiber.memoizedState,retryLane=NoLane;suspenseState!==null&&(retryLane=suspenseState.retryLane),retryTimedOutBoundary(boundaryFiber,retryLane)}function resolveRetryWakeable(boundaryFiber,wakeable){var retryLane=NoLane,retryCache;switch(boundaryFiber.tag){case SuspenseComponent:retryCache=boundaryFiber.stateNode;var suspenseState=boundaryFiber.memoizedState;suspenseState!==null&&(retryLane=suspenseState.retryLane);break;case SuspenseListComponent:retryCache=boundaryFiber.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}retryCache!==null&&retryCache.delete(wakeable),retryTimedOutBoundary(boundaryFiber,retryLane)}function jnd(timeElapsed){return timeElapsed<120?120:timeElapsed<480?480:timeElapsed<1080?1080:timeElapsed<1920?1920:timeElapsed<3e3?3e3:timeElapsed<4320?4320:ceil(timeElapsed/1960)*1960}function checkForNestedUpdates(){if(nestedUpdateCount>NESTED_UPDATE_LIMIT)throw nestedUpdateCount=0,rootWithNestedUpdates=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");nestedPassiveUpdateCount>NESTED_PASSIVE_UPDATE_LIMIT&&(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null,error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function flushRenderPhaseStrictModeWarningsInDEV(){ReactStrictModeWarnings.flushLegacyContextWarning(),ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings()}function commitDoubleInvokeEffectsInDEV(fiber,hasPassiveEffects){setCurrentFiber(fiber),invokeEffectsInDev(fiber,MountLayoutDev,invokeLayoutEffectUnmountInDEV),hasPassiveEffects&&invokeEffectsInDev(fiber,MountPassiveDev,invokePassiveEffectUnmountInDEV),invokeEffectsInDev(fiber,MountLayoutDev,invokeLayoutEffectMountInDEV),hasPassiveEffects&&invokeEffectsInDev(fiber,MountPassiveDev,invokePassiveEffectMountInDEV),resetCurrentFiber()}function invokeEffectsInDev(firstChild,fiberFlags,invokeEffectFn){for(var current2=firstChild,subtreeRoot=null;current2!==null;){var primarySubtreeFlag=current2.subtreeFlags&fiberFlags;current2!==subtreeRoot&&current2.child!==null&&primarySubtreeFlag!==NoFlags?current2=current2.child:((current2.flags&fiberFlags)!==NoFlags&&invokeEffectFn(current2),current2.sibling!==null?current2=current2.sibling:current2=subtreeRoot=current2.return)}}var didWarnStateUpdateForNotYetMountedComponent=null;function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber){{if((executionContext&RenderContext)!==NoContext||!(fiber.mode&ConcurrentMode))return;var tag=fiber.tag;if(tag!==IndeterminateComponent&&tag!==HostRoot&&tag!==ClassComponent&&tag!==FunctionComponent&&tag!==ForwardRef&&tag!==MemoComponent&&tag!==SimpleMemoComponent)return;var componentName=getComponentNameFromFiber(fiber)||"ReactComponent";if(didWarnStateUpdateForNotYetMountedComponent!==null){if(didWarnStateUpdateForNotYetMountedComponent.has(componentName))return;didWarnStateUpdateForNotYetMountedComponent.add(componentName)}else didWarnStateUpdateForNotYetMountedComponent=new Set([componentName]);var previousFiber=current;try{setCurrentFiber(fiber),error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{previousFiber?setCurrentFiber(fiber):resetCurrentFiber()}}}var beginWork$1;{var dummyFiber=null;beginWork$1=function(current2,unitOfWork,lanes){var originalWorkInProgressCopy=assignFiberPropertiesInDEV(dummyFiber,unitOfWork);try{return beginWork(current2,unitOfWork,lanes)}catch(originalError){if(didSuspendOrErrorWhileHydratingDEV()||originalError!==null&&typeof originalError=="object"&&typeof originalError.then=="function")throw originalError;if(resetContextDependencies(),resetHooksAfterThrow(),unwindInterruptedWork(current2,unitOfWork),assignFiberPropertiesInDEV(unitOfWork,originalWorkInProgressCopy),unitOfWork.mode&ProfileMode&&startProfilerTimer(unitOfWork),invokeGuardedCallback(null,beginWork,null,current2,unitOfWork,lanes),hasCaughtError()){var replayError=clearCaughtError();typeof replayError=="object"&&replayError!==null&&replayError._suppressLogging&&typeof originalError=="object"&&originalError!==null&&!originalError._suppressLogging&&(originalError._suppressLogging=!0)}throw originalError}}}var didWarnAboutUpdateInRender=!1,didWarnAboutUpdateInRenderForAnotherComponent;didWarnAboutUpdateInRenderForAnotherComponent=new Set;function warnAboutRenderPhaseUpdatesInDEV(fiber){if(isRendering&&!getIsUpdatingOpaqueValueInRenderPhaseInDEV())switch(fiber.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{var renderingComponentName=workInProgress&&getComponentNameFromFiber(workInProgress)||"Unknown",dedupeKey=renderingComponentName;if(!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)){didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);var setStateComponentName=getComponentNameFromFiber(fiber)||"Unknown";error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",setStateComponentName,renderingComponentName,renderingComponentName)}break}case ClassComponent:{didWarnAboutUpdateInRender||(error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),didWarnAboutUpdateInRender=!0);break}}}function restorePendingUpdaters(root3,lanes){if(isDevToolsPresent){var memoizedUpdaters=root3.memoizedUpdaters;memoizedUpdaters.forEach(function(schedulingFiber){addFiberToLanesMap(root3,schedulingFiber,lanes)})}}var fakeActCallbackNode={};function scheduleCallback$1(priorityLevel,callback){{var actQueue=ReactCurrentActQueue$1.current;return actQueue!==null?(actQueue.push(callback),fakeActCallbackNode):scheduleCallback(priorityLevel,callback)}}function cancelCallback$1(callbackNode){if(callbackNode!==fakeActCallbackNode)return cancelCallback(callbackNode)}function shouldForceFlushFallbacksInDEV(){return ReactCurrentActQueue$1.current!==null}function warnIfUpdatesNotWrappedWithActDEV(fiber){{if(fiber.mode&ConcurrentMode){if(!isConcurrentActEnvironment())return}else if(!isLegacyActEnvironment()||executionContext!==NoContext||fiber.tag!==FunctionComponent&&fiber.tag!==ForwardRef&&fiber.tag!==SimpleMemoComponent)return;if(ReactCurrentActQueue$1.current===null){var previousFiber=current;try{setCurrentFiber(fiber),error(`An update to %s inside a test was not wrapped in act(...).
188
-
189
- When testing, code that causes React state updates should be wrapped into act(...):
190
-
191
- act(() => {
192
- /* fire events that update state */
193
- });
194
- /* assert on the output */
195
-
196
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,getComponentNameFromFiber(fiber))}finally{previousFiber?setCurrentFiber(fiber):resetCurrentFiber()}}}}function warnIfSuspenseResolutionNotWrappedWithActDEV(root3){root3.tag!==LegacyRoot&&isConcurrentActEnvironment()&&ReactCurrentActQueue$1.current===null&&error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
197
-
198
- When testing, code that resolves suspended data should be wrapped into act(...):
199
-
200
- act(() => {
201
- /* finish loading suspended data */
202
- });
203
- /* assert on the output */
204
-
205
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function setIsRunningInsertionEffect(isRunning){isRunningInsertionEffect=isRunning}var resolveFamily=null,failedBoundaries=null,setRefreshHandler=function(handler){resolveFamily=handler};function resolveFunctionForHotReloading(type){{if(resolveFamily===null)return type;var family=resolveFamily(type);return family===void 0?type:family.current}}function resolveClassForHotReloading(type){return resolveFunctionForHotReloading(type)}function resolveForwardRefForHotReloading(type){{if(resolveFamily===null)return type;var family=resolveFamily(type);if(family===void 0){if(type!=null&&typeof type.render=="function"){var currentRender=resolveFunctionForHotReloading(type.render);if(type.render!==currentRender){var syntheticType={$$typeof:REACT_FORWARD_REF_TYPE,render:currentRender};return type.displayName!==void 0&&(syntheticType.displayName=type.displayName),syntheticType}}return type}return family.current}}function isCompatibleFamilyForHotReloading(fiber,element){{if(resolveFamily===null)return!1;var prevType=fiber.elementType,nextType=element.type,needsCompareFamilies=!1,$$typeofNextType=typeof nextType=="object"&&nextType!==null?nextType.$$typeof:null;switch(fiber.tag){case ClassComponent:{typeof nextType=="function"&&(needsCompareFamilies=!0);break}case FunctionComponent:{(typeof nextType=="function"||$$typeofNextType===REACT_LAZY_TYPE)&&(needsCompareFamilies=!0);break}case ForwardRef:{($$typeofNextType===REACT_FORWARD_REF_TYPE||$$typeofNextType===REACT_LAZY_TYPE)&&(needsCompareFamilies=!0);break}case MemoComponent:case SimpleMemoComponent:{($$typeofNextType===REACT_MEMO_TYPE||$$typeofNextType===REACT_LAZY_TYPE)&&(needsCompareFamilies=!0);break}default:return!1}if(needsCompareFamilies){var prevFamily=resolveFamily(prevType);if(prevFamily!==void 0&&prevFamily===resolveFamily(nextType))return!0}return!1}}function markFailedErrorBoundaryForHotReloading(fiber){{if(resolveFamily===null||typeof WeakSet!="function")return;failedBoundaries===null&&(failedBoundaries=new WeakSet),failedBoundaries.add(fiber)}}var scheduleRefresh=function(root3,update){{if(resolveFamily===null)return;var staleFamilies=update.staleFamilies,updatedFamilies=update.updatedFamilies;flushPassiveEffects(),flushSync(function(){scheduleFibersWithFamiliesRecursively(root3.current,updatedFamilies,staleFamilies)})}},scheduleRoot=function(root3,element){{if(root3.context!==emptyContextObject)return;flushPassiveEffects(),flushSync(function(){updateContainer(element,root3,null,null)})}};function scheduleFibersWithFamiliesRecursively(fiber,updatedFamilies,staleFamilies){{var alternate=fiber.alternate,child=fiber.child,sibling=fiber.sibling,tag=fiber.tag,type=fiber.type,candidateType=null;switch(tag){case FunctionComponent:case SimpleMemoComponent:case ClassComponent:candidateType=type;break;case ForwardRef:candidateType=type.render;break}if(resolveFamily===null)throw new Error("Expected resolveFamily to be set during hot reload.");var needsRender=!1,needsRemount=!1;if(candidateType!==null){var family=resolveFamily(candidateType);family!==void 0&&(staleFamilies.has(family)?needsRemount=!0:updatedFamilies.has(family)&&(tag===ClassComponent?needsRemount=!0:needsRender=!0))}if(failedBoundaries!==null&&(failedBoundaries.has(fiber)||alternate!==null&&failedBoundaries.has(alternate))&&(needsRemount=!0),needsRemount&&(fiber._debugNeedsRemount=!0),needsRemount||needsRender){var _root=enqueueConcurrentRenderForLane(fiber,SyncLane);_root!==null&&scheduleUpdateOnFiber(_root,fiber,SyncLane,NoTimestamp)}child!==null&&!needsRemount&&scheduleFibersWithFamiliesRecursively(child,updatedFamilies,staleFamilies),sibling!==null&&scheduleFibersWithFamiliesRecursively(sibling,updatedFamilies,staleFamilies)}}var findHostInstancesForRefresh=function(root3,families){{var hostInstances=new Set,types=new Set(families.map(function(family){return family.current}));return findHostInstancesForMatchingFibersRecursively(root3.current,types,hostInstances),hostInstances}};function findHostInstancesForMatchingFibersRecursively(fiber,types,hostInstances){{var child=fiber.child,sibling=fiber.sibling,tag=fiber.tag,type=fiber.type,candidateType=null;switch(tag){case FunctionComponent:case SimpleMemoComponent:case ClassComponent:candidateType=type;break;case ForwardRef:candidateType=type.render;break}var didMatch=!1;candidateType!==null&&types.has(candidateType)&&(didMatch=!0),didMatch?findHostInstancesForFiberShallowly(fiber,hostInstances):child!==null&&findHostInstancesForMatchingFibersRecursively(child,types,hostInstances),sibling!==null&&findHostInstancesForMatchingFibersRecursively(sibling,types,hostInstances)}}function findHostInstancesForFiberShallowly(fiber,hostInstances){{var foundHostInstances=findChildHostInstancesForFiberShallowly(fiber,hostInstances);if(foundHostInstances)return;for(var node=fiber;;){switch(node.tag){case HostComponent:hostInstances.add(node.stateNode);return;case HostPortal:hostInstances.add(node.stateNode.containerInfo);return;case HostRoot:hostInstances.add(node.stateNode.containerInfo);return}if(node.return===null)throw new Error("Expected to reach root first.");node=node.return}}}function findChildHostInstancesForFiberShallowly(fiber,hostInstances){for(var node=fiber,foundHostInstances=!1;;){if(node.tag===HostComponent)foundHostInstances=!0,hostInstances.add(node.stateNode);else if(node.child!==null){node.child.return=node,node=node.child;continue}if(node===fiber)return foundHostInstances;for(;node.sibling===null;){if(node.return===null||node.return===fiber)return foundHostInstances;node=node.return}node.sibling.return=node.return,node=node.sibling}return!1}var hasBadMapPolyfill;{hasBadMapPolyfill=!1;try{var nonExtensibleObject=Object.preventExtensions({})}catch{hasBadMapPolyfill=!0}}function FiberNode(tag,pendingProps,key,mode){this.tag=tag,this.key=key,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=pendingProps,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=mode,this.flags=NoFlags,this.subtreeFlags=NoFlags,this.deletions=null,this.lanes=NoLanes,this.childLanes=NoLanes,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!hasBadMapPolyfill&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var createFiber=function(tag,pendingProps,key,mode){return new FiberNode(tag,pendingProps,key,mode)};function shouldConstruct$1(Component){var prototype=Component.prototype;return!!(prototype&&prototype.isReactComponent)}function isSimpleFunctionComponent(type){return typeof type=="function"&&!shouldConstruct$1(type)&&type.defaultProps===void 0}function resolveLazyComponentTag(Component){if(typeof Component=="function")return shouldConstruct$1(Component)?ClassComponent:FunctionComponent;if(Component!=null){var $$typeof=Component.$$typeof;if($$typeof===REACT_FORWARD_REF_TYPE)return ForwardRef;if($$typeof===REACT_MEMO_TYPE)return MemoComponent}return IndeterminateComponent}function createWorkInProgress(current2,pendingProps){var workInProgress2=current2.alternate;workInProgress2===null?(workInProgress2=createFiber(current2.tag,pendingProps,current2.key,current2.mode),workInProgress2.elementType=current2.elementType,workInProgress2.type=current2.type,workInProgress2.stateNode=current2.stateNode,workInProgress2._debugSource=current2._debugSource,workInProgress2._debugOwner=current2._debugOwner,workInProgress2._debugHookTypes=current2._debugHookTypes,workInProgress2.alternate=current2,current2.alternate=workInProgress2):(workInProgress2.pendingProps=pendingProps,workInProgress2.type=current2.type,workInProgress2.flags=NoFlags,workInProgress2.subtreeFlags=NoFlags,workInProgress2.deletions=null,workInProgress2.actualDuration=0,workInProgress2.actualStartTime=-1),workInProgress2.flags=current2.flags&StaticMask,workInProgress2.childLanes=current2.childLanes,workInProgress2.lanes=current2.lanes,workInProgress2.child=current2.child,workInProgress2.memoizedProps=current2.memoizedProps,workInProgress2.memoizedState=current2.memoizedState,workInProgress2.updateQueue=current2.updateQueue;var currentDependencies=current2.dependencies;switch(workInProgress2.dependencies=currentDependencies===null?null:{lanes:currentDependencies.lanes,firstContext:currentDependencies.firstContext},workInProgress2.sibling=current2.sibling,workInProgress2.index=current2.index,workInProgress2.ref=current2.ref,workInProgress2.selfBaseDuration=current2.selfBaseDuration,workInProgress2.treeBaseDuration=current2.treeBaseDuration,workInProgress2._debugNeedsRemount=current2._debugNeedsRemount,workInProgress2.tag){case IndeterminateComponent:case FunctionComponent:case SimpleMemoComponent:workInProgress2.type=resolveFunctionForHotReloading(current2.type);break;case ClassComponent:workInProgress2.type=resolveClassForHotReloading(current2.type);break;case ForwardRef:workInProgress2.type=resolveForwardRefForHotReloading(current2.type);break}return workInProgress2}function resetWorkInProgress(workInProgress2,renderLanes2){workInProgress2.flags&=StaticMask|Placement;var current2=workInProgress2.alternate;if(current2===null)workInProgress2.childLanes=NoLanes,workInProgress2.lanes=renderLanes2,workInProgress2.child=null,workInProgress2.subtreeFlags=NoFlags,workInProgress2.memoizedProps=null,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.dependencies=null,workInProgress2.stateNode=null,workInProgress2.selfBaseDuration=0,workInProgress2.treeBaseDuration=0;else{workInProgress2.childLanes=current2.childLanes,workInProgress2.lanes=current2.lanes,workInProgress2.child=current2.child,workInProgress2.subtreeFlags=NoFlags,workInProgress2.deletions=null,workInProgress2.memoizedProps=current2.memoizedProps,workInProgress2.memoizedState=current2.memoizedState,workInProgress2.updateQueue=current2.updateQueue,workInProgress2.type=current2.type;var currentDependencies=current2.dependencies;workInProgress2.dependencies=currentDependencies===null?null:{lanes:currentDependencies.lanes,firstContext:currentDependencies.firstContext},workInProgress2.selfBaseDuration=current2.selfBaseDuration,workInProgress2.treeBaseDuration=current2.treeBaseDuration}return workInProgress2}function createHostRootFiber(tag,isStrictMode,concurrentUpdatesByDefaultOverride){var mode;return tag===ConcurrentRoot?(mode=ConcurrentMode,isStrictMode===!0&&(mode|=StrictLegacyMode,mode|=StrictEffectsMode)):mode=NoMode,isDevToolsPresent&&(mode|=ProfileMode),createFiber(HostRoot,null,null,mode)}function createFiberFromTypeAndProps(type,key,pendingProps,owner,mode,lanes){var fiberTag=IndeterminateComponent,resolvedType=type;if(typeof type=="function")shouldConstruct$1(type)?(fiberTag=ClassComponent,resolvedType=resolveClassForHotReloading(resolvedType)):resolvedType=resolveFunctionForHotReloading(resolvedType);else if(typeof type=="string")fiberTag=HostComponent;else getTag:switch(type){case REACT_FRAGMENT_TYPE:return createFiberFromFragment(pendingProps.children,mode,lanes,key);case REACT_STRICT_MODE_TYPE:fiberTag=Mode,mode|=StrictLegacyMode,(mode&ConcurrentMode)!==NoMode&&(mode|=StrictEffectsMode);break;case REACT_PROFILER_TYPE:return createFiberFromProfiler(pendingProps,mode,lanes,key);case REACT_SUSPENSE_TYPE:return createFiberFromSuspense(pendingProps,mode,lanes,key);case REACT_SUSPENSE_LIST_TYPE:return createFiberFromSuspenseList(pendingProps,mode,lanes,key);case REACT_OFFSCREEN_TYPE:return createFiberFromOffscreen(pendingProps,mode,lanes,key);case REACT_LEGACY_HIDDEN_TYPE:case REACT_SCOPE_TYPE:case REACT_CACHE_TYPE:case REACT_TRACING_MARKER_TYPE:case REACT_DEBUG_TRACING_MODE_TYPE:default:{if(typeof type=="object"&&type!==null)switch(type.$$typeof){case REACT_PROVIDER_TYPE:fiberTag=ContextProvider;break getTag;case REACT_CONTEXT_TYPE:fiberTag=ContextConsumer;break getTag;case REACT_FORWARD_REF_TYPE:fiberTag=ForwardRef,resolvedType=resolveForwardRefForHotReloading(resolvedType);break getTag;case REACT_MEMO_TYPE:fiberTag=MemoComponent;break getTag;case REACT_LAZY_TYPE:fiberTag=LazyComponent,resolvedType=null;break getTag}var info="";{(type===void 0||typeof type=="object"&&type!==null&&Object.keys(type).length===0)&&(info+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ownerName=owner?getComponentNameFromFiber(owner):null;ownerName&&(info+=`
206
-
207
- Check the render method of \``+ownerName+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(type==null?type:typeof type)+"."+info))}}var fiber=createFiber(fiberTag,pendingProps,key,mode);return fiber.elementType=type,fiber.type=resolvedType,fiber.lanes=lanes,fiber._debugOwner=owner,fiber}function createFiberFromElement(element,mode,lanes){var owner=null;owner=element._owner;var type=element.type,key=element.key,pendingProps=element.props,fiber=createFiberFromTypeAndProps(type,key,pendingProps,owner,mode,lanes);return fiber._debugSource=element._source,fiber._debugOwner=element._owner,fiber}function createFiberFromFragment(elements,mode,lanes,key){var fiber=createFiber(Fragment,elements,key,mode);return fiber.lanes=lanes,fiber}function createFiberFromProfiler(pendingProps,mode,lanes,key){typeof pendingProps.id!="string"&&error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof pendingProps.id);var fiber=createFiber(Profiler,pendingProps,key,mode|ProfileMode);return fiber.elementType=REACT_PROFILER_TYPE,fiber.lanes=lanes,fiber.stateNode={effectDuration:0,passiveEffectDuration:0},fiber}function createFiberFromSuspense(pendingProps,mode,lanes,key){var fiber=createFiber(SuspenseComponent,pendingProps,key,mode);return fiber.elementType=REACT_SUSPENSE_TYPE,fiber.lanes=lanes,fiber}function createFiberFromSuspenseList(pendingProps,mode,lanes,key){var fiber=createFiber(SuspenseListComponent,pendingProps,key,mode);return fiber.elementType=REACT_SUSPENSE_LIST_TYPE,fiber.lanes=lanes,fiber}function createFiberFromOffscreen(pendingProps,mode,lanes,key){var fiber=createFiber(OffscreenComponent,pendingProps,key,mode);fiber.elementType=REACT_OFFSCREEN_TYPE,fiber.lanes=lanes;var primaryChildInstance={isHidden:!1};return fiber.stateNode=primaryChildInstance,fiber}function createFiberFromText(content,mode,lanes){var fiber=createFiber(HostText,content,null,mode);return fiber.lanes=lanes,fiber}function createFiberFromHostInstanceForDeletion(){var fiber=createFiber(HostComponent,null,null,NoMode);return fiber.elementType="DELETED",fiber}function createFiberFromDehydratedFragment(dehydratedNode){var fiber=createFiber(DehydratedFragment,null,null,NoMode);return fiber.stateNode=dehydratedNode,fiber}function createFiberFromPortal(portal,mode,lanes){var pendingProps=portal.children!==null?portal.children:[],fiber=createFiber(HostPortal,pendingProps,portal.key,mode);return fiber.lanes=lanes,fiber.stateNode={containerInfo:portal.containerInfo,pendingChildren:null,implementation:portal.implementation},fiber}function assignFiberPropertiesInDEV(target,source){return target===null&&(target=createFiber(IndeterminateComponent,null,null,NoMode)),target.tag=source.tag,target.key=source.key,target.elementType=source.elementType,target.type=source.type,target.stateNode=source.stateNode,target.return=source.return,target.child=source.child,target.sibling=source.sibling,target.index=source.index,target.ref=source.ref,target.pendingProps=source.pendingProps,target.memoizedProps=source.memoizedProps,target.updateQueue=source.updateQueue,target.memoizedState=source.memoizedState,target.dependencies=source.dependencies,target.mode=source.mode,target.flags=source.flags,target.subtreeFlags=source.subtreeFlags,target.deletions=source.deletions,target.lanes=source.lanes,target.childLanes=source.childLanes,target.alternate=source.alternate,target.actualDuration=source.actualDuration,target.actualStartTime=source.actualStartTime,target.selfBaseDuration=source.selfBaseDuration,target.treeBaseDuration=source.treeBaseDuration,target._debugSource=source._debugSource,target._debugOwner=source._debugOwner,target._debugNeedsRemount=source._debugNeedsRemount,target._debugHookTypes=source._debugHookTypes,target}function FiberRootNode(containerInfo,tag,hydrate2,identifierPrefix,onRecoverableError){this.tag=tag,this.containerInfo=containerInfo,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=noTimeout,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=NoLane,this.eventTimes=createLaneMap(NoLanes),this.expirationTimes=createLaneMap(NoTimestamp),this.pendingLanes=NoLanes,this.suspendedLanes=NoLanes,this.pingedLanes=NoLanes,this.expiredLanes=NoLanes,this.mutableReadLanes=NoLanes,this.finishedLanes=NoLanes,this.entangledLanes=NoLanes,this.entanglements=createLaneMap(NoLanes),this.identifierPrefix=identifierPrefix,this.onRecoverableError=onRecoverableError,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var pendingUpdatersLaneMap=this.pendingUpdatersLaneMap=[],_i=0;_i<TotalLanes;_i++)pendingUpdatersLaneMap.push(new Set)}switch(tag){case ConcurrentRoot:this._debugRootType=hydrate2?"hydrateRoot()":"createRoot()";break;case LegacyRoot:this._debugRootType=hydrate2?"hydrate()":"render()";break}}function createFiberRoot(containerInfo,tag,hydrate2,initialChildren,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError,transitionCallbacks){var root3=new FiberRootNode(containerInfo,tag,hydrate2,identifierPrefix,onRecoverableError),uninitializedFiber=createHostRootFiber(tag,isStrictMode);root3.current=uninitializedFiber,uninitializedFiber.stateNode=root3;{var _initialState={element:initialChildren,isDehydrated:hydrate2,cache:null,transitions:null,pendingSuspenseBoundaries:null};uninitializedFiber.memoizedState=_initialState}return initializeUpdateQueue(uninitializedFiber),root3}var ReactVersion="18.3.1";function createPortal(children,containerInfo,implementation){var key=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return checkKeyStringCoercion(key),{$$typeof:REACT_PORTAL_TYPE,key:key==null?null:""+key,children,containerInfo,implementation}}var didWarnAboutNestedUpdates,didWarnAboutFindNodeInStrictMode;didWarnAboutNestedUpdates=!1,didWarnAboutFindNodeInStrictMode={};function getContextForSubtree(parentComponent){if(!parentComponent)return emptyContextObject;var fiber=get(parentComponent),parentContext=findCurrentUnmaskedContext(fiber);if(fiber.tag===ClassComponent){var Component=fiber.type;if(isContextProvider(Component))return processChildContext(fiber,Component,parentContext)}return parentContext}function findHostInstanceWithWarning(component,methodName){{var fiber=get(component);if(fiber===void 0){if(typeof component.render=="function")throw new Error("Unable to find node on an unmounted component.");var keys=Object.keys(component).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+keys)}var hostFiber=findCurrentHostFiber(fiber);if(hostFiber===null)return null;if(hostFiber.mode&StrictLegacyMode){var componentName=getComponentNameFromFiber(fiber)||"Component";if(!didWarnAboutFindNodeInStrictMode[componentName]){didWarnAboutFindNodeInStrictMode[componentName]=!0;var previousFiber=current;try{setCurrentFiber(hostFiber),fiber.mode&StrictLegacyMode?error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",methodName,methodName,componentName):error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",methodName,methodName,componentName)}finally{previousFiber?setCurrentFiber(previousFiber):resetCurrentFiber()}}}return hostFiber.stateNode}}function createContainer(containerInfo,tag,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError,transitionCallbacks){var hydrate2=!1,initialChildren=null;return createFiberRoot(containerInfo,tag,hydrate2,initialChildren,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError)}function createHydrationContainer(initialChildren,callback,containerInfo,tag,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError,transitionCallbacks){var hydrate2=!0,root3=createFiberRoot(containerInfo,tag,hydrate2,initialChildren,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);root3.context=getContextForSubtree(null);var current2=root3.current,eventTime=requestEventTime(),lane=requestUpdateLane(current2),update=createUpdate(eventTime,lane);return update.callback=callback??null,enqueueUpdate(current2,update,lane),scheduleInitialHydrationOnRoot(root3,lane,eventTime),root3}function updateContainer(element,container,parentComponent,callback){onScheduleRoot(container,element);var current$1=container.current,eventTime=requestEventTime(),lane=requestUpdateLane(current$1);markRenderScheduled(lane);var context=getContextForSubtree(parentComponent);container.context===null?container.context=context:container.pendingContext=context,isRendering&&current!==null&&!didWarnAboutNestedUpdates&&(didWarnAboutNestedUpdates=!0,error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
208
-
209
- Check the render method of %s.`,getComponentNameFromFiber(current)||"Unknown"));var update=createUpdate(eventTime,lane);update.payload={element},callback=callback===void 0?null:callback,callback!==null&&(typeof callback!="function"&&error("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",callback),update.callback=callback);var root3=enqueueUpdate(current$1,update,lane);return root3!==null&&(scheduleUpdateOnFiber(root3,current$1,lane,eventTime),entangleTransitions(root3,current$1,lane)),lane}function getPublicRootInstance(container){var containerFiber=container.current;if(!containerFiber.child)return null;switch(containerFiber.child.tag){case HostComponent:return containerFiber.child.stateNode;default:return containerFiber.child.stateNode}}function attemptSynchronousHydration$1(fiber){switch(fiber.tag){case HostRoot:{var root3=fiber.stateNode;if(isRootDehydrated(root3)){var lanes=getHighestPriorityPendingLanes(root3);flushRoot(root3,lanes)}break}case SuspenseComponent:{flushSync(function(){var root4=enqueueConcurrentRenderForLane(fiber,SyncLane);if(root4!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root4,fiber,SyncLane,eventTime)}});var retryLane=SyncLane;markRetryLaneIfNotHydrated(fiber,retryLane);break}}}function markRetryLaneImpl(fiber,retryLane){var suspenseState=fiber.memoizedState;suspenseState!==null&&suspenseState.dehydrated!==null&&(suspenseState.retryLane=higherPriorityLane(suspenseState.retryLane,retryLane))}function markRetryLaneIfNotHydrated(fiber,retryLane){markRetryLaneImpl(fiber,retryLane);var alternate=fiber.alternate;alternate&&markRetryLaneImpl(alternate,retryLane)}function attemptContinuousHydration$1(fiber){if(fiber.tag===SuspenseComponent){var lane=SelectiveHydrationLane,root3=enqueueConcurrentRenderForLane(fiber,lane);if(root3!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root3,fiber,lane,eventTime)}markRetryLaneIfNotHydrated(fiber,lane)}}function attemptHydrationAtCurrentPriority$1(fiber){if(fiber.tag===SuspenseComponent){var lane=requestUpdateLane(fiber),root3=enqueueConcurrentRenderForLane(fiber,lane);if(root3!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root3,fiber,lane,eventTime)}markRetryLaneIfNotHydrated(fiber,lane)}}function findHostInstanceWithNoPortals(fiber){var hostFiber=findCurrentHostFiberWithNoPortals(fiber);return hostFiber===null?null:hostFiber.stateNode}var shouldErrorImpl=function(fiber){return null};function shouldError(fiber){return shouldErrorImpl(fiber)}var shouldSuspendImpl=function(fiber){return!1};function shouldSuspend(fiber){return shouldSuspendImpl(fiber)}var overrideHookState=null,overrideHookStateDeletePath=null,overrideHookStateRenamePath=null,overrideProps=null,overridePropsDeletePath=null,overridePropsRenamePath=null,scheduleUpdate=null,setErrorHandler=null,setSuspenseHandler=null;{var copyWithDeleteImpl=function(obj,path2,index2){var key=path2[index2],updated=isArray(obj)?obj.slice():assign({},obj);return index2+1===path2.length?(isArray(updated)?updated.splice(key,1):delete updated[key],updated):(updated[key]=copyWithDeleteImpl(obj[key],path2,index2+1),updated)},copyWithDelete=function(obj,path2){return copyWithDeleteImpl(obj,path2,0)},copyWithRenameImpl=function(obj,oldPath,newPath,index2){var oldKey=oldPath[index2],updated=isArray(obj)?obj.slice():assign({},obj);if(index2+1===oldPath.length){var newKey=newPath[index2];updated[newKey]=updated[oldKey],isArray(updated)?updated.splice(oldKey,1):delete updated[oldKey]}else updated[oldKey]=copyWithRenameImpl(obj[oldKey],oldPath,newPath,index2+1);return updated},copyWithRename=function(obj,oldPath,newPath){if(oldPath.length!==newPath.length){warn("copyWithRename() expects paths of the same length");return}else for(var i=0;i<newPath.length-1;i++)if(oldPath[i]!==newPath[i]){warn("copyWithRename() expects paths to be the same except for the deepest key");return}return copyWithRenameImpl(obj,oldPath,newPath,0)},copyWithSetImpl=function(obj,path2,index2,value){if(index2>=path2.length)return value;var key=path2[index2],updated=isArray(obj)?obj.slice():assign({},obj);return updated[key]=copyWithSetImpl(obj[key],path2,index2+1,value),updated},copyWithSet=function(obj,path2,value){return copyWithSetImpl(obj,path2,0,value)},findHook=function(fiber,id){for(var currentHook2=fiber.memoizedState;currentHook2!==null&&id>0;)currentHook2=currentHook2.next,id--;return currentHook2};overrideHookState=function(fiber,id,path2,value){var hook=findHook(fiber,id);if(hook!==null){var newState=copyWithSet(hook.memoizedState,path2,value);hook.memoizedState=newState,hook.baseState=newState,fiber.memoizedProps=assign({},fiber.memoizedProps);var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)}},overrideHookStateDeletePath=function(fiber,id,path2){var hook=findHook(fiber,id);if(hook!==null){var newState=copyWithDelete(hook.memoizedState,path2);hook.memoizedState=newState,hook.baseState=newState,fiber.memoizedProps=assign({},fiber.memoizedProps);var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)}},overrideHookStateRenamePath=function(fiber,id,oldPath,newPath){var hook=findHook(fiber,id);if(hook!==null){var newState=copyWithRename(hook.memoizedState,oldPath,newPath);hook.memoizedState=newState,hook.baseState=newState,fiber.memoizedProps=assign({},fiber.memoizedProps);var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)}},overrideProps=function(fiber,path2,value){fiber.pendingProps=copyWithSet(fiber.memoizedProps,path2,value),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps);var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)},overridePropsDeletePath=function(fiber,path2){fiber.pendingProps=copyWithDelete(fiber.memoizedProps,path2),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps);var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)},overridePropsRenamePath=function(fiber,oldPath,newPath){fiber.pendingProps=copyWithRename(fiber.memoizedProps,oldPath,newPath),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps);var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)},scheduleUpdate=function(fiber){var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);root3!==null&&scheduleUpdateOnFiber(root3,fiber,SyncLane,NoTimestamp)},setErrorHandler=function(newShouldErrorImpl){shouldErrorImpl=newShouldErrorImpl},setSuspenseHandler=function(newShouldSuspendImpl){shouldSuspendImpl=newShouldSuspendImpl}}function findHostInstanceByFiber(fiber){var hostFiber=findCurrentHostFiber(fiber);return hostFiber===null?null:hostFiber.stateNode}function emptyFindFiberByHostInstance(instance){return null}function getCurrentFiberForDevTools(){return current}function injectIntoDevTools(devToolsConfig){var findFiberByHostInstance=devToolsConfig.findFiberByHostInstance,ReactCurrentDispatcher2=ReactSharedInternals.ReactCurrentDispatcher;return injectInternals({bundleType:devToolsConfig.bundleType,version:devToolsConfig.version,rendererPackageName:devToolsConfig.rendererPackageName,rendererConfig:devToolsConfig.rendererConfig,overrideHookState,overrideHookStateDeletePath,overrideHookStateRenamePath,overrideProps,overridePropsDeletePath,overridePropsRenamePath,setErrorHandler,setSuspenseHandler,scheduleUpdate,currentDispatcherRef:ReactCurrentDispatcher2,findHostInstanceByFiber,findFiberByHostInstance:findFiberByHostInstance||emptyFindFiberByHostInstance,findHostInstancesForRefresh,scheduleRefresh,scheduleRoot,setRefreshHandler,getCurrentFiber:getCurrentFiberForDevTools,reconcilerVersion:ReactVersion})}var defaultOnRecoverableError=typeof reportError=="function"?reportError:function(error2){console.error(error2)};function ReactDOMRoot(internalRoot){this._internalRoot=internalRoot}ReactDOMHydrationRoot.prototype.render=ReactDOMRoot.prototype.render=function(children){var root3=this._internalRoot;if(root3===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?error("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):isValidContainer(arguments[1])?error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&error("You passed a second argument to root.render(...) but it only accepts one argument.");var container=root3.containerInfo;if(container.nodeType!==COMMENT_NODE){var hostInstance=findHostInstanceWithNoPortals(root3.current);hostInstance&&hostInstance.parentNode!==container&&error("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}updateContainer(children,root3,null,null)},ReactDOMHydrationRoot.prototype.unmount=ReactDOMRoot.prototype.unmount=function(){typeof arguments[0]=="function"&&error("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var root3=this._internalRoot;if(root3!==null){this._internalRoot=null;var container=root3.containerInfo;isAlreadyRendering()&&error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),flushSync(function(){updateContainer(null,root3,null,null)}),unmarkContainerAsRoot(container)}};function createRoot(container,options2){if(!isValidContainer(container))throw new Error("createRoot(...): Target container is not a DOM element.");warnIfReactDOMContainerInDEV(container);var isStrictMode=!1,concurrentUpdatesByDefaultOverride=!1,identifierPrefix="",onRecoverableError=defaultOnRecoverableError;options2!=null&&(options2.hydrate?warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof options2=="object"&&options2!==null&&options2.$$typeof===REACT_ELEMENT_TYPE&&error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
210
-
211
- let root = createRoot(domContainer);
212
- root.render(<App />);`),options2.unstable_strictMode===!0&&(isStrictMode=!0),options2.identifierPrefix!==void 0&&(identifierPrefix=options2.identifierPrefix),options2.onRecoverableError!==void 0&&(onRecoverableError=options2.onRecoverableError),options2.transitionCallbacks!==void 0&&options2.transitionCallbacks);var root3=createContainer(container,ConcurrentRoot,null,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);markContainerAsRoot(root3.current,container);var rootContainerElement=container.nodeType===COMMENT_NODE?container.parentNode:container;return listenToAllSupportedEvents(rootContainerElement),new ReactDOMRoot(root3)}function ReactDOMHydrationRoot(internalRoot){this._internalRoot=internalRoot}function scheduleHydration(target){target&&queueExplicitHydrationTarget(target)}ReactDOMHydrationRoot.prototype.unstable_scheduleHydration=scheduleHydration;function hydrateRoot(container,initialChildren,options2){if(!isValidContainer(container))throw new Error("hydrateRoot(...): Target container is not a DOM element.");warnIfReactDOMContainerInDEV(container),initialChildren===void 0&&error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var hydrationCallbacks=options2??null,mutableSources=options2!=null&&options2.hydratedSources||null,isStrictMode=!1,concurrentUpdatesByDefaultOverride=!1,identifierPrefix="",onRecoverableError=defaultOnRecoverableError;options2!=null&&(options2.unstable_strictMode===!0&&(isStrictMode=!0),options2.identifierPrefix!==void 0&&(identifierPrefix=options2.identifierPrefix),options2.onRecoverableError!==void 0&&(onRecoverableError=options2.onRecoverableError));var root3=createHydrationContainer(initialChildren,null,container,ConcurrentRoot,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);if(markContainerAsRoot(root3.current,container),listenToAllSupportedEvents(container),mutableSources)for(var i=0;i<mutableSources.length;i++){var mutableSource=mutableSources[i];registerMutableSourceForHydration(root3,mutableSource)}return new ReactDOMHydrationRoot(root3)}function isValidContainer(node){return!!(node&&(node.nodeType===ELEMENT_NODE||node.nodeType===DOCUMENT_NODE||node.nodeType===DOCUMENT_FRAGMENT_NODE))}function isValidContainerLegacy(node){return!!(node&&(node.nodeType===ELEMENT_NODE||node.nodeType===DOCUMENT_NODE||node.nodeType===DOCUMENT_FRAGMENT_NODE||node.nodeType===COMMENT_NODE&&node.nodeValue===" react-mount-point-unstable "))}function warnIfReactDOMContainerInDEV(container){container.nodeType===ELEMENT_NODE&&container.tagName&&container.tagName.toUpperCase()==="BODY"&&error("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),isContainerMarkedAsRoot(container)&&(container._reactRootContainer?error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var ReactCurrentOwner$3=ReactSharedInternals.ReactCurrentOwner,topLevelUpdateWarnings;topLevelUpdateWarnings=function(container){if(container._reactRootContainer&&container.nodeType!==COMMENT_NODE){var hostInstance=findHostInstanceWithNoPortals(container._reactRootContainer.current);hostInstance&&hostInstance.parentNode!==container&&error("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var isRootRenderedBySomeReact=!!container._reactRootContainer,rootEl=getReactRootElementInContainer(container),hasNonRootReactChild=!!(rootEl&&getInstanceFromNode(rootEl));hasNonRootReactChild&&!isRootRenderedBySomeReact&&error("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),container.nodeType===ELEMENT_NODE&&container.tagName&&container.tagName.toUpperCase()==="BODY"&&error("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function getReactRootElementInContainer(container){return container?container.nodeType===DOCUMENT_NODE?container.documentElement:container.firstChild:null}function noopOnRecoverableError(){}function legacyCreateRootFromDOMContainer(container,initialChildren,parentComponent,callback,isHydrationContainer){if(isHydrationContainer){if(typeof callback=="function"){var originalCallback=callback;callback=function(){var instance=getPublicRootInstance(root3);originalCallback.call(instance)}}var root3=createHydrationContainer(initialChildren,callback,container,LegacyRoot,null,!1,!1,"",noopOnRecoverableError);container._reactRootContainer=root3,markContainerAsRoot(root3.current,container);var rootContainerElement=container.nodeType===COMMENT_NODE?container.parentNode:container;return listenToAllSupportedEvents(rootContainerElement),flushSync(),root3}else{for(var rootSibling;rootSibling=container.lastChild;)container.removeChild(rootSibling);if(typeof callback=="function"){var _originalCallback=callback;callback=function(){var instance=getPublicRootInstance(_root);_originalCallback.call(instance)}}var _root=createContainer(container,LegacyRoot,null,!1,!1,"",noopOnRecoverableError);container._reactRootContainer=_root,markContainerAsRoot(_root.current,container);var _rootContainerElement=container.nodeType===COMMENT_NODE?container.parentNode:container;return listenToAllSupportedEvents(_rootContainerElement),flushSync(function(){updateContainer(initialChildren,_root,parentComponent,callback)}),_root}}function warnOnInvalidCallback$1(callback,callerName){callback!==null&&typeof callback!="function"&&error("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",callerName,callback)}function legacyRenderSubtreeIntoContainer(parentComponent,children,container,forceHydrate,callback){topLevelUpdateWarnings(container),warnOnInvalidCallback$1(callback===void 0?null:callback,"render");var maybeRoot=container._reactRootContainer,root3;if(!maybeRoot)root3=legacyCreateRootFromDOMContainer(container,children,parentComponent,callback,forceHydrate);else{if(root3=maybeRoot,typeof callback=="function"){var originalCallback=callback;callback=function(){var instance=getPublicRootInstance(root3);originalCallback.call(instance)}}updateContainer(children,root3,parentComponent,callback)}return getPublicRootInstance(root3)}var didWarnAboutFindDOMNode=!1;function findDOMNode(componentOrElement){{didWarnAboutFindDOMNode||(didWarnAboutFindDOMNode=!0,error("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var owner=ReactCurrentOwner$3.current;if(owner!==null&&owner.stateNode!==null){var warnedAboutRefsInRender=owner.stateNode._warnedAboutRefsInRender;warnedAboutRefsInRender||error("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",getComponentNameFromType(owner.type)||"A component"),owner.stateNode._warnedAboutRefsInRender=!0}}return componentOrElement==null?null:componentOrElement.nodeType===ELEMENT_NODE?componentOrElement:findHostInstanceWithWarning(componentOrElement,"findDOMNode")}function hydrate(element,container,callback){if(error("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!isValidContainerLegacy(container))throw new Error("Target container is not a DOM element.");{var isModernRoot=isContainerMarkedAsRoot(container)&&container._reactRootContainer===void 0;isModernRoot&&error("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return legacyRenderSubtreeIntoContainer(null,element,container,!0,callback)}function render(element,container,callback){if(error("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!isValidContainerLegacy(container))throw new Error("Target container is not a DOM element.");{var isModernRoot=isContainerMarkedAsRoot(container)&&container._reactRootContainer===void 0;isModernRoot&&error("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return legacyRenderSubtreeIntoContainer(null,element,container,!1,callback)}function unstable_renderSubtreeIntoContainer(parentComponent,element,containerNode,callback){if(error("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!isValidContainerLegacy(containerNode))throw new Error("Target container is not a DOM element.");if(parentComponent==null||!has(parentComponent))throw new Error("parentComponent must be a valid React Component");return legacyRenderSubtreeIntoContainer(parentComponent,element,containerNode,!1,callback)}var didWarnAboutUnmountComponentAtNode=!1;function unmountComponentAtNode(container){if(didWarnAboutUnmountComponentAtNode||(didWarnAboutUnmountComponentAtNode=!0,error("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!isValidContainerLegacy(container))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var isModernRoot=isContainerMarkedAsRoot(container)&&container._reactRootContainer===void 0;isModernRoot&&error("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(container._reactRootContainer){{var rootEl=getReactRootElementInContainer(container),renderedByDifferentReact=rootEl&&!getInstanceFromNode(rootEl);renderedByDifferentReact&&error("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return flushSync(function(){legacyRenderSubtreeIntoContainer(null,null,container,!1,function(){container._reactRootContainer=null,unmarkContainerAsRoot(container)})}),!0}else{{var _rootEl=getReactRootElementInContainer(container),hasNonRootReactChild=!!(_rootEl&&getInstanceFromNode(_rootEl)),isContainerReactRoot=container.nodeType===ELEMENT_NODE&&isValidContainerLegacy(container.parentNode)&&!!container.parentNode._reactRootContainer;hasNonRootReactChild&&error("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",isContainerReactRoot?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}setAttemptSynchronousHydration(attemptSynchronousHydration$1),setAttemptContinuousHydration(attemptContinuousHydration$1),setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1),setGetCurrentUpdatePriority(getCurrentUpdatePriority),setAttemptHydrationAtPriority(runWithPriority),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),setRestoreImplementation(restoreControlledState$3),setBatchingImplementation(batchedUpdates$1,discreteUpdates,flushSync);function createPortal$1(children,container){var key=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!isValidContainer(container))throw new Error("Target container is not a DOM element.");return createPortal(children,container,null,key)}function renderSubtreeIntoContainer(parentComponent,element,containerNode,callback){return unstable_renderSubtreeIntoContainer(parentComponent,element,containerNode,callback)}var Internals={usingClientEntryPoint:!1,Events:[getInstanceFromNode,getNodeFromInstance,getFiberCurrentPropsFromNode,enqueueStateRestore,restoreStateIfNeeded,batchedUpdates$1]};function createRoot$1(container,options2){return Internals.usingClientEntryPoint||error('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),createRoot(container,options2)}function hydrateRoot$1(container,initialChildren,options2){return Internals.usingClientEntryPoint||error('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),hydrateRoot(container,initialChildren,options2)}function flushSync$1(fn){return isAlreadyRendering()&&error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),flushSync(fn)}var foundDevTools=injectIntoDevTools({findFiberByHostInstance:getClosestInstanceFromNode,bundleType:1,version:ReactVersion,rendererPackageName:"react-dom"});if(!foundDevTools&&canUseDOM&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var protocol=window.location.protocol;/^(https?|file):$/.test(protocol)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(protocol==="file:"?`
213
- You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}reactDom_development.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Internals,reactDom_development.createPortal=createPortal$1,reactDom_development.createRoot=createRoot$1,reactDom_development.findDOMNode=findDOMNode,reactDom_development.flushSync=flushSync$1,reactDom_development.hydrate=hydrate,reactDom_development.hydrateRoot=hydrateRoot$1,reactDom_development.render=render,reactDom_development.unmountComponentAtNode=unmountComponentAtNode,reactDom_development.unstable_batchedUpdates=batchedUpdates$1,reactDom_development.unstable_renderSubtreeIntoContainer=renderSubtreeIntoContainer,reactDom_development.version=ReactVersion,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),reactDom_development}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(err){console.error(err)}}}return process.env.NODE_ENV==="production"?(checkDCE(),reactDom.exports=requireReactDom_production_min()):reactDom.exports=requireReactDom_development(),reactDom.exports}var reactDomExports=requireReactDom();const require$$0=getDefaultExportFromCjs$1(reactDomExports);(function(){try{if(typeof document<"u"){var r2=document.createElement("style");r2.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.mlln6zg7-0-0-beta-47{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.cj343x07-0-0-beta-47{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);align-content:center;background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.cj343x07-0-0-beta-47[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.csofj7r7-0-0-beta-47{position:sticky;z-index:1}.csofj7r7-0-0-beta-47:nth-last-child(1 of.csofj7r7-0-0-beta-47){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.CheckboxInput{.c1bn88vv7-0-0-beta-47{display:block;margin:auto;inline-size:20px;block-size:20px}.c1bn88vv7-0-0-beta-47:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.c1bn88vv7-0-0-beta-47:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.g1s9ylgp7-0-0-beta-47{outline:none}}@layer rdg.GroupCellCaret{.cz54e4y7-0-0-beta-47{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz54e4y7-0-0-beta-47>path{transition:d .1s}}@layer rdg.DragHandle{.c1w9bbhr7-0-0-beta-47{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.c1w9bbhr7-0-0-beta-47:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.c1creorc7-0-0-beta-47{z-index:1;position:sticky}}@layer rdg.EditCell{.cis5rrm7-0-0-beta-47{padding:0}}@layer rdg.SortableHeaderCell{.h44jtk67-0-0-beta-47{display:flex}}@layer rdg.SortableHeaderCellName{.hcgkhxz7-0-0-beta-47{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.HeaderCell{.c6l2wv17-0-0-beta-47{cursor:pointer}}@layer rdg.HeaderCell{.c1kqdw7y7-0-0-beta-47{touch-action:none}}@layer rdg.HeaderCell{.r1y6ywlx7-0-0-beta-47{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1bezg5o7-0-0-beta-47{opacity:.5}.c1vc96037-0-0-beta-47{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1upfr807-0-0-beta-47{display:contents;background-color:var(--rdg-background-color)}.r1upfr807-0-0-beta-47:hover{background-color:var(--rdg-row-hover-background-color)}.r1upfr807-0-0-beta-47[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1upfr807-0-0-beta-47[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.r190mhd37-0-0-beta-47{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r139qu9m7-0-0-beta-47:before{content:"";display:inline-block;block-size:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h10tskcx7-0-0-beta-47{display:contents;background-color:var(--rdg-header-background-color);font-weight:700}.h10tskcx7-0-0-beta-47>.cj343x07-0-0-beta-47{z-index:2;position:sticky}.h10tskcx7-0-0-beta-47>.csofj7r7-0-0-beta-47{z-index:3}}@layer rdg.Cell{.c6ra8a37-0-0-beta-47{background-color:#ccf}}@layer rdg.Cell{.cq910m07-0-0-beta-47{background-color:#ccf}.cq910m07-0-0-beta-47.c6ra8a37-0-0-beta-47{background-color:#99f}}@layer rdg.SortIcon{.a3ejtar7-0-0-beta-47{fill:currentColor}.a3ejtar7-0-0-beta-47>path{transition:d .1s}}@layer rdg.Defaults{.rnvodz57-0-0-beta-47 *,.rnvodz57-0-0-beta-47 *:before,.rnvodz57-0-0-beta-47 *:after{box-sizing:inherit}}@layer rdg.Root{.rnvodz57-0-0-beta-47{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-selection-color: #66afe9;--rdg-font-size: 14px;--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3);display:grid;color-scheme:var(--rdg-color-scheme, light dark);accent-color:light-dark(hsl(207deg 100% 29%),hsl(207deg 100% 79%));contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.rnvodz57-0-0-beta-47:dir(rtl){--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, .3)}.rnvodz57-0-0-beta-47:before{content:"";grid-column:1/-1;grid-row:1/-1}.rnvodz57-0-0-beta-47.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%)}.rnvodz57-0-0-beta-47.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.rnvodz57-0-0-beta-47:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%)}}.rnvodz57-0-0-beta-47>:nth-last-child(1 of.rdg-top-summary-row)>.cj343x07-0-0-beta-47{border-block-end:2px solid var(--rdg-summary-border-color)}.rnvodz57-0-0-beta-47>:nth-child(1 of.rdg-bottom-summary-row)>.cj343x07-0-0-beta-47{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.Root{.vlqv91k7-0-0-beta-47{-webkit-user-select:none;user-select:none}.vlqv91k7-0-0-beta-47 .r1upfr807-0-0-beta-47{cursor:move}}@layer rdg.FocusSink{.f1lsfrzw7-0-0-beta-47{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.f1cte0lg7-0-0-beta-47{z-index:3}}@layer rdg.SummaryCell{.s8wc6fl7-0-0-beta-47{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.skuhp557-0-0-beta-47>.cj343x07-0-0-beta-47{position:sticky}}@layer rdg.SummaryRow{.tf8l5ub7-0-0-beta-47>.cj343x07-0-0-beta-47{z-index:2}.tf8l5ub7-0-0-beta-47>.csofj7r7-0-0-beta-47{z-index:3}}@layer rdg.GroupedRow{.g1yxluv37-0-0-beta-47:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.g1yxluv37-0-0-beta-47>.cj343x07-0-0-beta-47:not(:last-child,.csofj7r7-0-0-beta-47),.g1yxluv37-0-0-beta-47>:nth-last-child(n+2 of.csofj7r7-0-0-beta-47){border-inline-end:none}}@layer rdg.TextEditor{.t7vyx3i7-0-0-beta-47{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.t7vyx3i7-0-0-beta-47:focus{border-color:var(--rdg-selection-color);outline:none}.t7vyx3i7-0-0-beta-47::placeholder{color:#999;opacity:1}}.dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;inline-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color)}')),document.head.appendChild(r2)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var __defProp$1=Object.defineProperty,__defNormalProp$1=(obj,key,value)=>key in obj?__defProp$1(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField$1=(obj,key,value)=>__defNormalProp$1(obj,typeof key!="symbol"?key+"":key,value),client={},hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var m=require$$0;if(process.env.NODE_ENV==="production")client.createRoot=m.createRoot,client.hydrateRoot=m.hydrateRoot;else{var i=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;client.createRoot=function(c2,o){i.usingClientEntryPoint=!0;try{return m.createRoot(c2,o)}finally{i.usingClientEntryPoint=!1}},client.hydrateRoot=function(c2,h,o){i.usingClientEntryPoint=!0;try{return m.hydrateRoot(c2,h,o)}finally{i.usingClientEntryPoint=!1}}}return client}var clientExports=requireClient(),jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/**
214
- * @license React
215
- * react-jsx-runtime.production.min.js
216
- *
217
- * Copyright (c) Facebook, Inc. and its affiliates.
218
- *
219
- * This source code is licensed under the MIT license found in the
220
- * LICENSE file in the root directory of this source tree.
221
- */var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var f=require$$0$1,k2=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c2,a2,g){var b,d={},e=null,h=null;g!==void 0&&(e=""+g),a2.key!==void 0&&(e=""+a2.key),a2.ref!==void 0&&(h=a2.ref);for(b in a2)m.call(a2,b)&&!p.hasOwnProperty(b)&&(d[b]=a2[b]);if(c2&&c2.defaultProps)for(b in a2=c2.defaultProps,a2)d[b]===void 0&&(d[b]=a2[b]);return{$$typeof:k2,type:c2,key:e,ref:h,props:d,_owner:n.current}}return reactJsxRuntime_production_min.Fragment=l,reactJsxRuntime_production_min.jsx=q,reactJsxRuntime_production_min.jsxs=q,reactJsxRuntime_production_min}var reactJsxRuntime_development={};/**
222
- * @license React
223
- * react-jsx-runtime.development.js
224
- *
225
- * Copyright (c) Facebook, Inc. and its affiliates.
226
- *
227
- * This source code is licensed under the MIT license found in the
228
- * LICENSE file in the root directory of this source tree.
229
- */var hasRequiredReactJsxRuntime_development;function requireReactJsxRuntime_development(){return hasRequiredReactJsxRuntime_development||(hasRequiredReactJsxRuntime_development=1,process.env.NODE_ENV!=="production"&&function(){var React=require$$0$1,REACT_ELEMENT_TYPE=Symbol.for("react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_OFFSCREEN_TYPE=Symbol.for("react.offscreen"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var ReactSharedInternals=React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function error(format2){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format2,args)}}function printWarning(level,format2,args){{var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format2+="%s",args=args.concat([stack]));var argsWithFormat=args.map(function(item){return String(item)});argsWithFormat.unshift("Warning: "+format2),Function.prototype.apply.call(console[level],console,argsWithFormat)}}var enableScopeAPI=!1,enableCacheElement=!1,enableTransitionTracing=!1,enableLegacyHidden=!1,enableDebugTracing=!1,REACT_MODULE_REFERENCE;REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");function isValidElementType(type){return!!(typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||enableLegacyHidden||type===REACT_OFFSCREEN_TYPE||enableScopeAPI||enableCacheElement||enableTransitionTracing||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==void 0))}function getWrappedName(outerType,innerType,wrapperName){var displayName=outerType.displayName;if(displayName)return displayName;var functionName=innerType.displayName||innerType.name||"";return functionName!==""?wrapperName+"("+functionName+")":wrapperName}function getContextName(type){return type.displayName||"Context"}function getComponentNameFromType(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:var context=type;return getContextName(context)+".Consumer";case REACT_PROVIDER_TYPE:var provider=type;return getContextName(provider._context)+".Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:var outerName=type.displayName||null;return outerName!==null?outerName:getComponentNameFromType(type.type)||"Memo";case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return getComponentNameFromType(init(payload))}catch{return null}}}return null}var assign=Object.assign,disabledDepth=0,prevLog,prevInfo,prevWarn,prevError,prevGroup,prevGroupCollapsed,prevGroupEnd;function disabledLog(){}disabledLog.__reactDisabledLog=!0;function disableLogs(){{if(disabledDepth===0){prevLog=console.log,prevInfo=console.info,prevWarn=console.warn,prevError=console.error,prevGroup=console.group,prevGroupCollapsed=console.groupCollapsed,prevGroupEnd=console.groupEnd;var props={configurable:!0,enumerable:!0,value:disabledLog,writable:!0};Object.defineProperties(console,{info:props,log:props,warn:props,error:props,group:props,groupCollapsed:props,groupEnd:props})}disabledDepth++}}function reenableLogs(){{if(disabledDepth--,disabledDepth===0){var props={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:assign({},props,{value:prevLog}),info:assign({},props,{value:prevInfo}),warn:assign({},props,{value:prevWarn}),error:assign({},props,{value:prevError}),group:assign({},props,{value:prevGroup}),groupCollapsed:assign({},props,{value:prevGroupCollapsed}),groupEnd:assign({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix===void 0)try{throw Error()}catch(x){var match=x.stack.trim().match(/\n( *(at )?)/);prefix=match&&match[1]||""}return`
230
- `+prefix+name}}var reentry=!1,componentFrameCache;{var PossiblyWeakMap=typeof WeakMap=="function"?WeakMap:Map;componentFrameCache=new PossiblyWeakMap}function describeNativeComponentFrame(fn,construct){if(!fn||reentry)return"";{var frame=componentFrameCache.get(fn);if(frame!==void 0)return frame}var control;reentry=!0;var previousPrepareStackTrace=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var previousDispatcher;previousDispatcher=ReactCurrentDispatcher.current,ReactCurrentDispatcher.current=null,disableLogs();try{if(construct){var Fake=function(){throw Error()};if(Object.defineProperty(Fake.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fake,[])}catch(x){control=x}Reflect.construct(fn,[],Fake)}else{try{Fake.call()}catch(x){control=x}fn.call(Fake.prototype)}}else{try{throw Error()}catch(x){control=x}fn()}}catch(sample){if(sample&&control&&typeof sample.stack=="string"){for(var sampleLines=sample.stack.split(`
231
- `),controlLines=control.stack.split(`
232
- `),s2=sampleLines.length-1,c2=controlLines.length-1;s2>=1&&c2>=0&&sampleLines[s2]!==controlLines[c2];)c2--;for(;s2>=1&&c2>=0;s2--,c2--)if(sampleLines[s2]!==controlLines[c2]){if(s2!==1||c2!==1)do if(s2--,c2--,c2<0||sampleLines[s2]!==controlLines[c2]){var _frame=`
233
- `+sampleLines[s2].replace(" at new "," at ");return fn.displayName&&_frame.includes("<anonymous>")&&(_frame=_frame.replace("<anonymous>",fn.displayName)),typeof fn=="function"&&componentFrameCache.set(fn,_frame),_frame}while(s2>=1&&c2>=0);break}}}finally{reentry=!1,ReactCurrentDispatcher.current=previousDispatcher,reenableLogs(),Error.prepareStackTrace=previousPrepareStackTrace}var name=fn?fn.displayName||fn.name:"",syntheticFrame=name?describeBuiltInComponentFrame(name):"";return typeof fn=="function"&&componentFrameCache.set(fn,syntheticFrame),syntheticFrame}function describeFunctionComponentFrame(fn,source,ownerFn){return describeNativeComponentFrame(fn,!1)}function shouldConstruct(Component){var prototype=Component.prototype;return!!(prototype&&prototype.isReactComponent)}function describeUnknownElementTypeFrameInDEV(type,source,ownerFn){if(type==null)return"";if(typeof type=="function")return describeNativeComponentFrame(type,shouldConstruct(type));if(typeof type=="string")return describeBuiltInComponentFrame(type);switch(type){case REACT_SUSPENSE_TYPE:return describeBuiltInComponentFrame("Suspense");case REACT_SUSPENSE_LIST_TYPE:return describeBuiltInComponentFrame("SuspenseList")}if(typeof type=="object")switch(type.$$typeof){case REACT_FORWARD_REF_TYPE:return describeFunctionComponentFrame(type.render);case REACT_MEMO_TYPE:return describeUnknownElementTypeFrameInDEV(type.type,source,ownerFn);case REACT_LAZY_TYPE:{var lazyComponent=type,payload=lazyComponent._payload,init=lazyComponent._init;try{return describeUnknownElementTypeFrameInDEV(init(payload),source,ownerFn)}catch{}}}return""}var hasOwnProperty=Object.prototype.hasOwnProperty,loggedTypeFailures={},ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame;function setCurrentlyValidatingElement(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);ReactDebugCurrentFrame.setExtraStackFrame(stack)}else ReactDebugCurrentFrame.setExtraStackFrame(null)}function checkPropTypes(typeSpecs,values,location,componentName,element){{var has=Function.call.bind(hasOwnProperty);for(var typeSpecName in typeSpecs)if(has(typeSpecs,typeSpecName)){var error$1=void 0;try{if(typeof typeSpecs[typeSpecName]!="function"){var err=Error((componentName||"React class")+": "+location+" type `"+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof typeSpecs[typeSpecName]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw err.name="Invariant Violation",err}error$1=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ex){error$1=ex}error$1&&!(error$1 instanceof Error)&&(setCurrentlyValidatingElement(element),error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",componentName||"React class",location,typeSpecName,typeof error$1),setCurrentlyValidatingElement(null)),error$1 instanceof Error&&!(error$1.message in loggedTypeFailures)&&(loggedTypeFailures[error$1.message]=!0,setCurrentlyValidatingElement(element),error("Failed %s type: %s",location,error$1.message),setCurrentlyValidatingElement(null))}}}var isArrayImpl=Array.isArray;function isArray(a2){return isArrayImpl(a2)}function typeName(value){{var hasToStringTag=typeof Symbol=="function"&&Symbol.toStringTag,type=hasToStringTag&&value[Symbol.toStringTag]||value.constructor.name||"Object";return type}}function willCoercionThrow(value){try{return testStringCoercion(value),!1}catch{return!0}}function testStringCoercion(value){return""+value}function checkKeyStringCoercion(value){if(willCoercionThrow(value))return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",typeName(value)),testStringCoercion(value)}var ReactCurrentOwner=ReactSharedInternals.ReactCurrentOwner,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown;function hasValidRef(config){if(hasOwnProperty.call(config,"ref")){var getter=Object.getOwnPropertyDescriptor(config,"ref").get;if(getter&&getter.isReactWarning)return!1}return config.ref!==void 0}function hasValidKey(config){if(hasOwnProperty.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function warnIfStringRefCannotBeAutoConverted(config,self2){typeof config.ref=="string"&&ReactCurrentOwner.current}function defineKeyPropWarningGetter(props,displayName){{var warnAboutAccessingKey=function(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}}function defineRefPropWarningGetter(props,displayName){{var warnAboutAccessingRef=function(){specialPropRefWarningShown||(specialPropRefWarningShown=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",displayName))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(props,"ref",{get:warnAboutAccessingRef,configurable:!0})}}var ReactElement=function(type,key,ref,self2,source,owner,props){var element={$$typeof:REACT_ELEMENT_TYPE,type,key,ref,props,_owner:owner};return element._store={},Object.defineProperty(element._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(element,"_self",{configurable:!1,enumerable:!1,writable:!1,value:self2}),Object.defineProperty(element,"_source",{configurable:!1,enumerable:!1,writable:!1,value:source}),Object.freeze&&(Object.freeze(element.props),Object.freeze(element)),element};function jsxDEV(type,config,maybeKey,source,self2){{var propName,props={},key=null,ref=null;maybeKey!==void 0&&(checkKeyStringCoercion(maybeKey),key=""+maybeKey),hasValidKey(config)&&(checkKeyStringCoercion(config.key),key=""+config.key),hasValidRef(config)&&(ref=config.ref,warnIfStringRefCannotBeAutoConverted(config));for(propName in config)hasOwnProperty.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(props[propName]=config[propName]);if(type&&type.defaultProps){var defaultProps=type.defaultProps;for(propName in defaultProps)props[propName]===void 0&&(props[propName]=defaultProps[propName])}if(key||ref){var displayName=typeof type=="function"?type.displayName||type.name||"Unknown":type;key&&defineKeyPropWarningGetter(props,displayName),ref&&defineRefPropWarningGetter(props,displayName)}return ReactElement(type,key,ref,self2,source,ReactCurrentOwner.current,props)}}var ReactCurrentOwner$1=ReactSharedInternals.ReactCurrentOwner,ReactDebugCurrentFrame$1=ReactSharedInternals.ReactDebugCurrentFrame;function setCurrentlyValidatingElement$1(element){if(element){var owner=element._owner,stack=describeUnknownElementTypeFrameInDEV(element.type,element._source,owner?owner.type:null);ReactDebugCurrentFrame$1.setExtraStackFrame(stack)}else ReactDebugCurrentFrame$1.setExtraStackFrame(null)}var propTypesMisspellWarningShown;propTypesMisspellWarningShown=!1;function isValidElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function getDeclarationErrorAddendum(){{if(ReactCurrentOwner$1.current){var name=getComponentNameFromType(ReactCurrentOwner$1.current.type);if(name)return`
234
-
235
- Check the render method of \``+name+"`."}return""}}function getSourceInfoErrorAddendum(source){return""}var ownerHasKeyUseWarning={};function getCurrentComponentErrorInfo(parentType){{var info=getDeclarationErrorAddendum();if(!info){var parentName=typeof parentType=="string"?parentType:parentType.displayName||parentType.name;parentName&&(info=`
236
-
237
- Check the top-level render call using <`+parentName+">.")}return info}}function validateExplicitKey(element,parentType){{if(!element._store||element._store.validated||element.key!=null)return;element._store.validated=!0;var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);if(ownerHasKeyUseWarning[currentComponentErrorInfo])return;ownerHasKeyUseWarning[currentComponentErrorInfo]=!0;var childOwner="";element&&element._owner&&element._owner!==ReactCurrentOwner$1.current&&(childOwner=" It was passed a child from "+getComponentNameFromType(element._owner.type)+"."),setCurrentlyValidatingElement$1(element),error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',currentComponentErrorInfo,childOwner),setCurrentlyValidatingElement$1(null)}}function validateChildKeys(node,parentType){{if(typeof node!="object")return;if(isArray(node))for(var i=0;i<node.length;i++){var child=node[i];isValidElement(child)&&validateExplicitKey(child,parentType)}else if(isValidElement(node))node._store&&(node._store.validated=!0);else if(node){var iteratorFn=getIteratorFn(node);if(typeof iteratorFn=="function"&&iteratorFn!==node.entries)for(var iterator=iteratorFn.call(node),step;!(step=iterator.next()).done;)isValidElement(step.value)&&validateExplicitKey(step.value,parentType)}}}function validatePropTypes(element){{var type=element.type;if(type==null||typeof type=="string")return;var propTypes;if(typeof type=="function")propTypes=type.propTypes;else if(typeof type=="object"&&(type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MEMO_TYPE))propTypes=type.propTypes;else return;if(propTypes){var name=getComponentNameFromType(type);checkPropTypes(propTypes,element.props,"prop",name,element)}else if(type.PropTypes!==void 0&&!propTypesMisspellWarningShown){propTypesMisspellWarningShown=!0;var _name=getComponentNameFromType(type);error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_name||"Unknown")}typeof type.getDefaultProps=="function"&&!type.getDefaultProps.isReactClassApproved&&error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function validateFragmentProps(fragment){{for(var keys=Object.keys(fragment.props),i=0;i<keys.length;i++){var key=keys[i];if(key!=="children"&&key!=="key"){setCurrentlyValidatingElement$1(fragment),error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",key),setCurrentlyValidatingElement$1(null);break}}fragment.ref!==null&&(setCurrentlyValidatingElement$1(fragment),error("Invalid attribute `ref` supplied to `React.Fragment`."),setCurrentlyValidatingElement$1(null))}}var didWarnAboutKeySpread={};function jsxWithValidation(type,props,key,isStaticChildren,source,self2){{var validType=isValidElementType(type);if(!validType){var info="";(type===void 0||typeof type=="object"&&type!==null&&Object.keys(type).length===0)&&(info+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var sourceInfo=getSourceInfoErrorAddendum();sourceInfo?info+=sourceInfo:info+=getDeclarationErrorAddendum();var typeString;type===null?typeString="null":isArray(type)?typeString="array":type!==void 0&&type.$$typeof===REACT_ELEMENT_TYPE?(typeString="<"+(getComponentNameFromType(type.type)||"Unknown")+" />",info=" Did you accidentally export a JSX literal instead of a component?"):typeString=typeof type,error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",typeString,info)}var element=jsxDEV(type,props,key,source,self2);if(element==null)return element;if(validType){var children=props.children;if(children!==void 0)if(isStaticChildren)if(isArray(children)){for(var i=0;i<children.length;i++)validateChildKeys(children[i],type);Object.freeze&&Object.freeze(children)}else error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else validateChildKeys(children,type)}if(hasOwnProperty.call(props,"key")){var componentName=getComponentNameFromType(type),keys=Object.keys(props).filter(function(k2){return k2!=="key"}),beforeExample=keys.length>0?"{key: someKey, "+keys.join(": ..., ")+": ...}":"{key: someKey}";if(!didWarnAboutKeySpread[componentName+beforeExample]){var afterExample=keys.length>0?"{"+keys.join(": ..., ")+": ...}":"{}";error(`A props object containing a "key" prop is being spread into JSX:
238
- let props = %s;
239
- <%s {...props} />
240
- React keys must be passed directly to JSX without using spread:
241
- let props = %s;
242
- <%s key={someKey} {...props} />`,beforeExample,componentName,afterExample,componentName),didWarnAboutKeySpread[componentName+beforeExample]=!0}}return type===REACT_FRAGMENT_TYPE?validateFragmentProps(element):validatePropTypes(element),element}}function jsxWithValidationStatic(type,props,key){return jsxWithValidation(type,props,key,!0)}function jsxWithValidationDynamic(type,props,key){return jsxWithValidation(type,props,key,!1)}var jsx=jsxWithValidationDynamic,jsxs=jsxWithValidationStatic;reactJsxRuntime_development.Fragment=REACT_FRAGMENT_TYPE,reactJsxRuntime_development.jsx=jsx,reactJsxRuntime_development.jsxs=jsxs}()),reactJsxRuntime_development}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,process.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production_min():jsxRuntime.exports=requireReactJsxRuntime_development()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();function r(e){var t,f,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}function getColSpan(column,lastFrozenColumnIndex,args){const colSpan=typeof column.colSpan=="function"?column.colSpan(args):1;if(Number.isInteger(colSpan)&&colSpan>1&&(!column.frozen||column.idx+colSpan-1<=lastFrozenColumnIndex))return colSpan}function stopPropagation(event){event.stopPropagation()}function scrollIntoView(element){element==null||element.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(event){let defaultPrevented=!1;const cellEvent={...event,preventGridDefault(){defaultPrevented=!0},isGridDefaultPrevented(){return defaultPrevented}};return Object.setPrototypeOf(cellEvent,Object.getPrototypeOf(event)),cellEvent}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function isDefaultCellInput(event){return isCtrlKeyHeldDown(event)&&event.keyCode!==86?!1:!nonInputKeys.has(event.key)}function onEditorNavigation({key,target}){var _a;return key==="Tab"&&(target instanceof HTMLInputElement||target instanceof HTMLTextAreaElement||target instanceof HTMLSelectElement)?((_a=target.closest(".rdg-editor-container"))==null?void 0:_a.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="mlln6zg7-0-0-beta-47";function renderMeasuringCells(viewportColumns){return viewportColumns.map(({key,idx,minWidth,maxWidth})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:idx+1,minWidth,maxWidth},"data-measuring-cell-key":key},key))}function isSelectedCellEditable({selectedPosition,columns,rows}){const column=columns[selectedPosition.idx],row2=rows[selectedPosition.rowIdx];return isCellEditableUtil(column,row2)}function isCellEditableUtil(column,row2){return column.renderEditCell!=null&&(typeof column.editable=="function"?column.editable(row2):column.editable)!==!1}function getSelectedCellColSpan({rows,topSummaryRows,bottomSummaryRows,rowIdx,mainHeaderRowIdx,lastFrozenColumnIndex,column}){const topSummaryRowsCount=(topSummaryRows==null?void 0:topSummaryRows.length)??0;if(rowIdx===mainHeaderRowIdx)return getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"});if(topSummaryRows&&rowIdx>mainHeaderRowIdx&&rowIdx<=topSummaryRowsCount+mainHeaderRowIdx)return getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:topSummaryRows[rowIdx+topSummaryRowsCount]});if(rowIdx>=0&&rowIdx<rows.length){const row2=rows[rowIdx];return getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2})}if(bottomSummaryRows)return getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:bottomSummaryRows[rowIdx-rows.length]})}function getNextSelectedCellPosition({moveUp,moveNext,cellNavigationMode,columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,minRowIdx,mainHeaderRowIdx,maxRowIdx,currentPosition:{idx:currentIdx,rowIdx:currentRowIdx},nextPosition,lastFrozenColumnIndex,isCellWithinBounds}){let{idx:nextIdx,rowIdx:nextRowIdx}=nextPosition;const columnsCount=columns.length,setColSpan=moveNext2=>{for(const column of colSpanColumns){const colIdx=column.idx;if(colIdx>nextIdx)break;const colSpan=getSelectedCellColSpan({rows,topSummaryRows,bottomSummaryRows,rowIdx:nextRowIdx,mainHeaderRowIdx,lastFrozenColumnIndex,column});if(colSpan&&nextIdx>colIdx&&nextIdx<colSpan+colIdx){nextIdx=colIdx+(moveNext2?colSpan:0);break}}},getParentRowIdx=parent=>parent.level+mainHeaderRowIdx,setHeaderGroupColAndRowSpan=()=>{if(moveNext){let parent=columns[nextIdx].parent;for(;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);if(nextRowIdx===parentRowIdx){nextIdx=parent.idx+parent.colSpan;break}parent=parent.parent}}else if(moveUp){let parent=columns[nextIdx].parent,found=!1;for(;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);if(nextRowIdx>=parentRowIdx){nextIdx=parent.idx,nextRowIdx=parentRowIdx,found=!0;break}parent=parent.parent}found||(nextIdx=currentIdx,nextRowIdx=currentRowIdx)}};if(isCellWithinBounds(nextPosition)&&(setColSpan(moveNext),nextRowIdx<mainHeaderRowIdx&&setHeaderGroupColAndRowSpan()),cellNavigationMode==="CHANGE_ROW"&&(nextIdx===columnsCount?nextRowIdx===maxRowIdx||(nextIdx=0,nextRowIdx+=1):nextIdx===-1&&(nextRowIdx===minRowIdx||(nextRowIdx-=1,nextIdx=columnsCount-1),setColSpan(!1))),nextRowIdx<mainHeaderRowIdx){let parent=columns[nextIdx].parent;const nextParentRowIdx=nextRowIdx;for(nextRowIdx=mainHeaderRowIdx;parent!==void 0;){const parentRowIdx=getParentRowIdx(parent);parentRowIdx>=nextParentRowIdx&&(nextRowIdx=parentRowIdx,nextIdx=parent.idx),parent=parent.parent}}return{idx:nextIdx,rowIdx:nextRowIdx}}function canExitGrid({maxColIdx,minRowIdx,maxRowIdx,selectedPosition:{rowIdx,idx},shiftKey}){return shiftKey?idx===0&&rowIdx===minRowIdx:idx===maxColIdx&&rowIdx===maxRowIdx}const cell="cj343x07-0-0-beta-47",cellClassname=`rdg-cell ${cell}`,cellFrozen="csofj7r7-0-0-beta-47",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`;function getRowStyle(rowIdx){return{"--rdg-grid-row-start":rowIdx}}function getHeaderCellStyle(column,rowIdx,rowSpan){const gridRowEnd=rowIdx+1,paddingBlockStart=`calc(${rowSpan-1} * var(--rdg-header-row-height))`;return column.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd,paddingBlockStart}:{insetBlockStart:`calc(${rowIdx-rowSpan} * var(--rdg-header-row-height))`,gridRowStart:gridRowEnd-rowSpan,gridRowEnd,paddingBlockStart}}function getCellStyle(column,colSpan=1){const index=column.idx+1;return{gridColumnStart:index,gridColumnEnd:index+colSpan,insetInlineStart:column.frozen?`var(--rdg-frozen-left-${column.idx})`:void 0}}function getCellClassname(column,...extraClasses){return clsx(cellClassname,...extraClasses,column.frozen&&cellFrozenClassname)}const{min,max,floor,sign,abs}=Math;function assertIsValidKeyGetter(keyGetter){if(typeof keyGetter!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(width,{minWidth,maxWidth}){return width=max(width,minWidth),typeof maxWidth=="number"&&maxWidth>=minWidth?min(width,maxWidth):width}function getHeaderCellRowSpan(column,rowIdx){return column.parent===void 0?rowIdx:column.level-column.parent.level}const checkbox="c1bn88vv7-0-0-beta-47",checkboxClassname=`rdg-checkbox-input ${checkbox}`;function renderCheckbox({onChange,indeterminate,...props}){function handleChange(e){onChange(e.target.checked,e.nativeEvent.shiftKey)}return jsxRuntimeExports.jsx("input",{ref:el=>{el&&(el.indeterminate=indeterminate===!0)},type:"checkbox",className:checkboxClassname,onChange:handleChange,...props})}function renderValue(props){try{return props.row[props.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}function SelectCellFormatter({value,tabIndex,indeterminate,disabled,onChange,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy}){const renderCheckbox2=useDefaultRenderers().renderCheckbox;return renderCheckbox2({"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,tabIndex,indeterminate,disabled,checked:value,onChange})}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider;function useRowSelection(){const rowSelectionContext=reactExports.useContext(RowSelectionContext),rowSelectionChangeContext=reactExports.useContext(RowSelectionChangeContext);if(rowSelectionContext===void 0||rowSelectionChangeContext===void 0)throw new Error("useRowSelection must be used within DataGrid cells");return{isRowSelectionDisabled:rowSelectionContext.isRowSelectionDisabled,isRowSelected:rowSelectionContext.isRowSelected,onRowSelectionChange:rowSelectionChangeContext}}const HeaderRowSelectionContext=reactExports.createContext(void 0),HeaderRowSelectionProvider=HeaderRowSelectionContext.Provider,HeaderRowSelectionChangeContext=reactExports.createContext(void 0),HeaderRowSelectionChangeProvider=HeaderRowSelectionChangeContext.Provider;function useHeaderRowSelection(){const headerRowSelectionContext=reactExports.useContext(HeaderRowSelectionContext),headerRowSelectionChangeContext=reactExports.useContext(HeaderRowSelectionChangeContext);if(headerRowSelectionContext===void 0||headerRowSelectionChangeContext===void 0)throw new Error("useHeaderRowSelection must be used within DataGrid cells");return{isIndeterminate:headerRowSelectionContext.isIndeterminate,isRowSelected:headerRowSelectionContext.isRowSelected,onRowSelectionChange:headerRowSelectionChangeContext}}const SELECT_COLUMN_KEY="rdg-select-column";function HeaderRenderer(props){const{isIndeterminate,isRowSelected,onRowSelectionChange}=useHeaderRowSelection();return jsxRuntimeExports.jsx(SelectCellFormatter,{"aria-label":"Select All",tabIndex:props.tabIndex,indeterminate:isIndeterminate,value:isRowSelected,onChange:checked=>{onRowSelectionChange({checked:isIndeterminate?!1:checked})}})}function SelectFormatter(props){const{isRowSelectionDisabled,isRowSelected,onRowSelectionChange}=useRowSelection();return jsxRuntimeExports.jsx(SelectCellFormatter,{"aria-label":"Select",tabIndex:props.tabIndex,disabled:isRowSelectionDisabled,value:isRowSelected,onChange:(checked,isShiftClick)=>{onRowSelectionChange({row:props.row,checked,isShiftClick})}})}function SelectGroupFormatter(props){const{isRowSelected,onRowSelectionChange}=useRowSelection();return jsxRuntimeExports.jsx(SelectCellFormatter,{"aria-label":"Select Group",tabIndex:props.tabIndex,value:isRowSelected,onChange:checked=>{onRowSelectionChange({row:props.row,checked,isShiftClick:!1})}})}const SelectColumn={key:SELECT_COLUMN_KEY,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(props){return jsxRuntimeExports.jsx(HeaderRenderer,{...props})},renderCell(props){return jsxRuntimeExports.jsx(SelectFormatter,{...props})},renderGroupCell(props){return jsxRuntimeExports.jsx(SelectGroupFormatter,{...props})}},DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns,defaultColumnOptions,getColumnWidth,viewportWidth,scrollLeft,enableVirtualization}){const defaultWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.width)??DEFAULT_COLUMN_WIDTH,defaultMinWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,defaultMaxWidth=(defaultColumnOptions==null?void 0:defaultColumnOptions.maxWidth)??void 0,defaultCellRenderer=(defaultColumnOptions==null?void 0:defaultColumnOptions.renderCell)??renderValue,defaultSortable=(defaultColumnOptions==null?void 0:defaultColumnOptions.sortable)??!1,defaultResizable=(defaultColumnOptions==null?void 0:defaultColumnOptions.resizable)??!1,defaultDraggable=(defaultColumnOptions==null?void 0:defaultColumnOptions.draggable)??!1,{columns,colSpanColumns,lastFrozenColumnIndex,headerRowsCount}=reactExports.useMemo(()=>{let lastFrozenColumnIndex2=-1,headerRowsCount2=1;const columns2=[];collectColumns(rawColumns,1);function collectColumns(rawColumns2,level,parent){for(const rawColumn of rawColumns2){if("children"in rawColumn){const calculatedColumnParent={name:rawColumn.name,parent,idx:-1,colSpan:0,level:0,headerCellClass:rawColumn.headerCellClass};collectColumns(rawColumn.children,level+1,calculatedColumnParent);continue}const frozen=rawColumn.frozen??!1,column={...rawColumn,parent,idx:0,level:0,frozen,width:rawColumn.width??defaultWidth,minWidth:rawColumn.minWidth??defaultMinWidth,maxWidth:rawColumn.maxWidth??defaultMaxWidth,sortable:rawColumn.sortable??defaultSortable,resizable:rawColumn.resizable??defaultResizable,draggable:rawColumn.draggable??defaultDraggable,renderCell:rawColumn.renderCell??defaultCellRenderer};columns2.push(column),frozen&&lastFrozenColumnIndex2++,level>headerRowsCount2&&(headerRowsCount2=level)}}columns2.sort(({key:aKey,frozen:frozenA},{key:bKey,frozen:frozenB})=>aKey===SELECT_COLUMN_KEY?-1:bKey===SELECT_COLUMN_KEY?1:frozenA?frozenB?0:-1:frozenB?1:0);const colSpanColumns2=[];return columns2.forEach((column,idx)=>{column.idx=idx,updateColumnParent(column,idx,0),column.colSpan!=null&&colSpanColumns2.push(column)}),{columns:columns2,colSpanColumns:colSpanColumns2,lastFrozenColumnIndex:lastFrozenColumnIndex2,headerRowsCount:headerRowsCount2}},[rawColumns,defaultWidth,defaultMinWidth,defaultMaxWidth,defaultCellRenderer,defaultResizable,defaultSortable,defaultDraggable]),{templateColumns,layoutCssVars,totalFrozenColumnWidth,columnMetrics}=reactExports.useMemo(()=>{const columnMetrics2=new Map;let left=0,totalFrozenColumnWidth2=0;const templateColumns2=[];for(const column of columns){let width=getColumnWidth(column);typeof width=="number"?width=clampColumnWidth(width,column):width=column.minWidth,templateColumns2.push(`${width}px`),columnMetrics2.set(column,{width,left}),left+=width}if(lastFrozenColumnIndex!==-1){const columnMetric=columnMetrics2.get(columns[lastFrozenColumnIndex]);totalFrozenColumnWidth2=columnMetric.left+columnMetric.width}const layoutCssVars2={};for(let i=0;i<=lastFrozenColumnIndex;i++){const column=columns[i];layoutCssVars2[`--rdg-frozen-left-${column.idx}`]=`${columnMetrics2.get(column).left}px`}return{templateColumns:templateColumns2,layoutCssVars:layoutCssVars2,totalFrozenColumnWidth:totalFrozenColumnWidth2,columnMetrics:columnMetrics2}},[getColumnWidth,columns,lastFrozenColumnIndex]),[colOverscanStartIdx,colOverscanEndIdx]=reactExports.useMemo(()=>{if(!enableVirtualization)return[0,columns.length-1];const viewportLeft=scrollLeft+totalFrozenColumnWidth,viewportRight=scrollLeft+viewportWidth,lastColIdx=columns.length-1,firstUnfrozenColumnIdx=min(lastFrozenColumnIndex+1,lastColIdx);if(viewportLeft>=viewportRight)return[firstUnfrozenColumnIdx,firstUnfrozenColumnIdx];let colVisibleStartIdx=firstUnfrozenColumnIdx;for(;colVisibleStartIdx<lastColIdx;){const{left,width}=columnMetrics.get(columns[colVisibleStartIdx]);if(left+width>viewportLeft)break;colVisibleStartIdx++}let colVisibleEndIdx=colVisibleStartIdx;for(;colVisibleEndIdx<lastColIdx;){const{left,width}=columnMetrics.get(columns[colVisibleEndIdx]);if(left+width>=viewportRight)break;colVisibleEndIdx++}const colOverscanStartIdx2=max(firstUnfrozenColumnIdx,colVisibleStartIdx-1),colOverscanEndIdx2=min(lastColIdx,colVisibleEndIdx+1);return[colOverscanStartIdx2,colOverscanEndIdx2]},[columnMetrics,columns,lastFrozenColumnIndex,scrollLeft,totalFrozenColumnWidth,viewportWidth,enableVirtualization]);return{columns,colSpanColumns,colOverscanStartIdx,colOverscanEndIdx,templateColumns,layoutCssVars,headerRowsCount,lastFrozenColumnIndex,totalFrozenColumnWidth}}function updateColumnParent(column,index,level){if(level<column.level&&(column.level=level),column.parent!==void 0){const{parent}=column;parent.idx===-1&&(parent.idx=index),parent.colSpan+=1,updateColumnParent(parent,index,level-1)}}const useLayoutEffect=typeof window>"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(columns,viewportColumns,templateColumns,gridRef,gridWidth,resizedColumnWidths,measuredColumnWidths,setResizedColumnWidths,setMeasuredColumnWidths,onColumnResize){const prevGridWidthRef=reactExports.useRef(gridWidth),columnsCanFlex=columns.length===viewportColumns.length,ignorePreviouslyMeasuredColumns=columnsCanFlex&&gridWidth!==prevGridWidthRef.current,newTemplateColumns=[...templateColumns],columnsToMeasure=[];for(const{key,idx,width}of viewportColumns)typeof width=="string"&&(ignorePreviouslyMeasuredColumns||!measuredColumnWidths.has(key))&&!resizedColumnWidths.has(key)&&(newTemplateColumns[idx]=width,columnsToMeasure.push(key));const gridTemplateColumns=newTemplateColumns.join(" ");useLayoutEffect(()=>{prevGridWidthRef.current=gridWidth,updateMeasuredWidths(columnsToMeasure)});function updateMeasuredWidths(columnsToMeasure2){columnsToMeasure2.length!==0&&setMeasuredColumnWidths(measuredColumnWidths2=>{const newMeasuredColumnWidths=new Map(measuredColumnWidths2);let hasChanges=!1;for(const key of columnsToMeasure2){const measuredWidth=measureColumnWidth(gridRef,key);hasChanges||(hasChanges=measuredWidth!==measuredColumnWidths2.get(key)),measuredWidth===void 0?newMeasuredColumnWidths.delete(key):newMeasuredColumnWidths.set(key,measuredWidth)}return hasChanges?newMeasuredColumnWidths:measuredColumnWidths2})}function handleColumnResize(column,nextWidth){const{key:resizingKey}=column,newTemplateColumns2=[...templateColumns],columnsToMeasure2=[];for(const{key,idx,width}of viewportColumns)if(resizingKey===key){const width2=typeof nextWidth=="number"?`${nextWidth}px`:nextWidth;newTemplateColumns2[idx]=width2}else columnsCanFlex&&typeof width=="string"&&!resizedColumnWidths.has(key)&&(newTemplateColumns2[idx]=width,columnsToMeasure2.push(key));gridRef.current.style.gridTemplateColumns=newTemplateColumns2.join(" ");const measuredWidth=typeof nextWidth=="number"?nextWidth:measureColumnWidth(gridRef,resizingKey);reactDomExports.flushSync(()=>{setResizedColumnWidths(resizedColumnWidths2=>{const newResizedColumnWidths=new Map(resizedColumnWidths2);return newResizedColumnWidths.set(resizingKey,measuredWidth),newResizedColumnWidths}),updateMeasuredWidths(columnsToMeasure2)}),onColumnResize==null||onColumnResize(column.idx,measuredWidth)}return{gridTemplateColumns,handleColumnResize}}function measureColumnWidth(gridRef,key){var _a;const selector=`[data-measuring-cell-key="${CSS.escape(key)}"]`,measuringCell=(_a=gridRef.current)==null?void 0:_a.querySelector(selector);return measuringCell==null?void 0:measuringCell.getBoundingClientRect().width}function useGridDimensions(){const gridRef=reactExports.useRef(null),[inlineSize,setInlineSize]=reactExports.useState(1),[blockSize,setBlockSize]=reactExports.useState(1),[horizontalScrollbarHeight,setHorizontalScrollbarHeight]=reactExports.useState(0);return useLayoutEffect(()=>{const{ResizeObserver}=window;if(ResizeObserver==null)return;const{clientWidth,clientHeight,offsetWidth,offsetHeight}=gridRef.current,{width,height}=gridRef.current.getBoundingClientRect(),initialHorizontalScrollbarHeight=offsetHeight-clientHeight,initialWidth=width-offsetWidth+clientWidth,initialHeight=height-initialHorizontalScrollbarHeight;setInlineSize(initialWidth),setBlockSize(initialHeight),setHorizontalScrollbarHeight(initialHorizontalScrollbarHeight);const resizeObserver=new ResizeObserver(entries=>{const size=entries[0].contentBoxSize[0],{clientHeight:clientHeight2,offsetHeight:offsetHeight2}=gridRef.current;reactDomExports.flushSync(()=>{setInlineSize(size.inlineSize),setBlockSize(size.blockSize),setHorizontalScrollbarHeight(offsetHeight2-clientHeight2)})});return resizeObserver.observe(gridRef.current),()=>{resizeObserver.disconnect()}},[]),[gridRef,inlineSize,blockSize,horizontalScrollbarHeight]}function useLatestFunc(fn){const ref=reactExports.useRef(fn);reactExports.useEffect(()=>{ref.current=fn});const callbackFn=reactExports.useCallback((...args)=>{ref.current(...args)},[]);return fn&&callbackFn}function useRovingTabIndex(isSelected){const[isChildFocused,setIsChildFocused]=reactExports.useState(!1);isChildFocused&&!isSelected&&setIsChildFocused(!1);function onFocus(event){event.target!==event.currentTarget&&setIsChildFocused(!0)}return{tabIndex:isSelected&&!isChildFocused?0:-1,childTabIndex:isSelected?0:-1,onFocus:isSelected?onFocus:void 0}}function useViewportColumns({columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,colOverscanStartIdx,colOverscanEndIdx,lastFrozenColumnIndex,rowOverscanStartIdx,rowOverscanEndIdx}){const startIdx=reactExports.useMemo(()=>{if(colOverscanStartIdx===0)return 0;let startIdx2=colOverscanStartIdx;const updateStartIdx=(colIdx,colSpan)=>colSpan!==void 0&&colIdx+colSpan>colOverscanStartIdx?(startIdx2=colIdx,!0):!1;for(const column of colSpanColumns){const colIdx=column.idx;if(colIdx>=startIdx2||updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"})))break;for(let rowIdx=rowOverscanStartIdx;rowIdx<=rowOverscanEndIdx;rowIdx++){const row2=rows[rowIdx];if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2})))break}if(topSummaryRows!=null){for(const row2 of topSummaryRows)if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row2})))break}if(bottomSummaryRows!=null){for(const row2 of bottomSummaryRows)if(updateStartIdx(colIdx,getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row2})))break}}return startIdx2},[rowOverscanStartIdx,rowOverscanEndIdx,rows,topSummaryRows,bottomSummaryRows,colOverscanStartIdx,lastFrozenColumnIndex,colSpanColumns]);return reactExports.useMemo(()=>{const viewportColumns=[];for(let colIdx=0;colIdx<=colOverscanEndIdx;colIdx++){const column=columns[colIdx];colIdx<startIdx&&!column.frozen||viewportColumns.push(column)}return viewportColumns},[startIdx,colOverscanEndIdx,columns])}function useViewportRows({rows,rowHeight,clientHeight,scrollTop,enableVirtualization}){const{totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}=reactExports.useMemo(()=>{if(typeof rowHeight=="number")return{totalRowHeight:rowHeight*rows.length,gridTemplateRows:` repeat(${rows.length}, ${rowHeight}px)`,getRowTop:rowIdx=>rowIdx*rowHeight,getRowHeight:()=>rowHeight,findRowIdx:offset=>floor(offset/rowHeight)};let totalRowHeight2=0,gridTemplateRows2=" ";const rowPositions=rows.map(row2=>{const currentRowHeight=rowHeight(row2),position={top:totalRowHeight2,height:currentRowHeight};return gridTemplateRows2+=`${currentRowHeight}px `,totalRowHeight2+=currentRowHeight,position}),validateRowIdx=rowIdx=>max(0,min(rows.length-1,rowIdx));return{totalRowHeight:totalRowHeight2,gridTemplateRows:gridTemplateRows2,getRowTop:rowIdx=>rowPositions[validateRowIdx(rowIdx)].top,getRowHeight:rowIdx=>rowPositions[validateRowIdx(rowIdx)].height,findRowIdx(offset){let start=0,end=rowPositions.length-1;for(;start<=end;){const middle=start+floor((end-start)/2),currentOffset=rowPositions[middle].top;if(currentOffset===offset)return middle;if(currentOffset<offset?start=middle+1:currentOffset>offset&&(end=middle-1),start>end)return end}return 0}}},[rowHeight,rows]);let rowOverscanStartIdx=0,rowOverscanEndIdx=rows.length-1;if(enableVirtualization){const rowVisibleStartIdx=findRowIdx(scrollTop),rowVisibleEndIdx=findRowIdx(scrollTop+clientHeight);rowOverscanStartIdx=max(0,rowVisibleStartIdx-4),rowOverscanEndIdx=min(rows.length-1,rowVisibleEndIdx+4)}return{rowOverscanStartIdx,rowOverscanEndIdx,totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}}const cellDragHandle="c1w9bbhr7-0-0-beta-47",cellDragHandleFrozenClassname="c1creorc7-0-0-beta-47",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart,rows,column,columnWidth,maxColIdx,isLastRow,selectedPosition,latestDraggedOverRowIdx,isCellEditable,onRowsChange,onFill,onClick,setDragging,setDraggedOverRowIdx}){const{idx,rowIdx}=selectedPosition;function handleMouseDown(event){if(event.preventDefault(),event.buttons!==1)return;setDragging(!0),window.addEventListener("mouseover",onMouseOver),window.addEventListener("mouseup",onMouseUp);function onMouseOver(event2){event2.buttons!==1&&onMouseUp()}function onMouseUp(){window.removeEventListener("mouseover",onMouseOver),window.removeEventListener("mouseup",onMouseUp),setDragging(!1),handleDragEnd()}}function handleDragEnd(){const overRowIdx=latestDraggedOverRowIdx.current;if(overRowIdx===void 0)return;const startRowIndex=rowIdx<overRowIdx?rowIdx+1:overRowIdx,endRowIndex=rowIdx<overRowIdx?overRowIdx+1:rowIdx;updateRows(startRowIndex,endRowIndex),setDraggedOverRowIdx(void 0)}function handleDoubleClick(event){event.stopPropagation(),updateRows(rowIdx+1,rows.length)}function updateRows(startRowIdx,endRowIdx){const sourceRow=rows[rowIdx],updatedRows=[...rows],indexes=[];for(let i=startRowIdx;i<endRowIdx;i++)if(isCellEditable({rowIdx:i,idx})){const updatedRow=onFill({columnKey:column.key,sourceRow,targetRow:rows[i]});updatedRow!==rows[i]&&(updatedRows[i]=updatedRow,indexes.push(i))}indexes.length>0&&(onRowsChange==null||onRowsChange(updatedRows,{indexes,column}))}function getStyle(){var _a;const colSpan=((_a=column.colSpan)==null?void 0:_a.call(column,{type:"ROW",row:rows[rowIdx]}))??1,{insetInlineStart,...style}=getCellStyle(column,colSpan),marginEnd="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",isLastColumn=column.idx+colSpan-1===maxColIdx;return{...style,gridRowStart,marginInlineEnd:isLastColumn?void 0:marginEnd,marginBlockEnd:isLastRow?void 0:marginEnd,insetInlineStart:insetInlineStart?`calc(${insetInlineStart} + ${columnWidth}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return jsxRuntimeExports.jsx("div",{style:getStyle(),className:clsx(cellDragHandleClassname,column.frozen&&cellDragHandleFrozenClassname),onClick,onMouseDown:handleMouseDown,onDoubleClick:handleDoubleClick})}const cellEditing="cis5rrm7-0-0-beta-47";function EditCell({column,colSpan,row:row2,rowIdx,onRowChange,closeEditor,onKeyDown,navigate}){var _a,_b,_c;const frameRequestRef=reactExports.useRef(void 0),commitOnOutsideClick=((_a=column.editorOptions)==null?void 0:_a.commitOnOutsideClick)!==!1,commitOnOutsideMouseDown=useLatestFunc(()=>{onClose(!0,!1)});reactExports.useEffect(()=>{if(!commitOnOutsideClick)return;function onWindowCaptureMouseDown(){frameRequestRef.current=requestAnimationFrame(commitOnOutsideMouseDown)}return addEventListener("mousedown",onWindowCaptureMouseDown,{capture:!0}),()=>{removeEventListener("mousedown",onWindowCaptureMouseDown,{capture:!0}),cancelFrameRequest()}},[commitOnOutsideClick,commitOnOutsideMouseDown]);function cancelFrameRequest(){cancelAnimationFrame(frameRequestRef.current)}function handleKeyDown(event){if(onKeyDown){const cellEvent=createCellEvent(event);if(onKeyDown({mode:"EDIT",row:row2,column,rowIdx,navigate(){navigate(event)},onClose},cellEvent),cellEvent.isGridDefaultPrevented())return}event.key==="Escape"?onClose():event.key==="Enter"?onClose(!0):onEditorNavigation(event)&&navigate(event)}function onClose(commitChanges=!1,shouldFocusCell=!0){commitChanges?onRowChange(row2,!0,shouldFocusCell):closeEditor(shouldFocusCell)}function onEditorRowChange(row3,commitChangesAndFocus=!1){onRowChange(row3,commitChangesAndFocus,commitChangesAndFocus)}const{cellClass}=column,className=getCellClassname(column,"rdg-editor-container",typeof cellClass=="function"?cellClass(row2):cellClass,!((_b=column.editorOptions)!=null&&_b.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":!0,className,style:getCellStyle(column,colSpan),onKeyDown:handleKeyDown,onMouseDownCapture:cancelFrameRequest,children:column.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[column.renderEditCell({column,row:row2,rowIdx,onRowChange:onEditorRowChange,onClose}),((_c=column.editorOptions)==null?void 0:_c.displayCellContent)&&column.renderCell({column,row:row2,rowIdx,isCellEditable:!0,tabIndex:-1,onRowChange:onEditorRowChange})]})})}function GroupedColumnHeaderCell({column,rowIdx,isCellSelected,selectCell}){const{tabIndex,onFocus}=useRovingTabIndex(isCellSelected),{colSpan}=column,rowSpan=getHeaderCellRowSpan(column,rowIdx),index=column.idx+1;function onClick(){selectCell({idx:column.idx,rowIdx})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":index,"aria-colspan":colSpan,"aria-rowspan":rowSpan,"aria-selected":isCellSelected,tabIndex,className:clsx(cellClassname,column.headerCellClass),style:{...getHeaderCellStyle(column,rowIdx,rowSpan),gridColumnStart:index,gridColumnEnd:index+colSpan},onFocus,onClick,children:column.name})}const headerSortCellClassname="h44jtk67-0-0-beta-47",headerSortName="hcgkhxz7-0-0-beta-47",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column,sortDirection,priority}){return column.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection,priority,children:column.name}):column.name}function SortableHeaderCell({sortDirection,priority,children}){const renderSortStatus2=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children}),jsxRuntimeExports.jsx("span",{children:renderSortStatus2({sortDirection,priority})})]})}const cellSortableClassname="c6l2wv17-0-0-beta-47",cellResizable="c1kqdw7y7-0-0-beta-47",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r1y6ywlx7-0-0-beta-47",cellDraggableClassname="rdg-cell-draggable",cellDragging="c1bezg5o7-0-0-beta-47",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1vc96037-0-0-beta-47",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column,colSpan,rowIdx,isCellSelected,onColumnResize,onColumnsReorder,sortColumns,onSortColumnsChange,selectCell,shouldFocusGrid,direction,dragDropKey}){const[isDragging,setIsDragging]=reactExports.useState(!1),[isOver,setIsOver]=reactExports.useState(!1),isRtl=direction==="rtl",rowSpan=getHeaderCellRowSpan(column,rowIdx),{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),sortIndex=sortColumns==null?void 0:sortColumns.findIndex(sort=>sort.columnKey===column.key),sortColumn=sortIndex!==void 0&&sortIndex>-1?sortColumns[sortIndex]:void 0,sortDirection=sortColumn==null?void 0:sortColumn.direction,priority=sortColumn!==void 0&&sortColumns.length>1?sortIndex+1:void 0,ariaSort=sortDirection&&!priority?sortDirection==="ASC"?"ascending":"descending":void 0,{sortable,resizable,draggable}=column,className=getCellClassname(column,column.headerCellClass,sortable&&cellSortableClassname,resizable&&cellResizableClassname,draggable&&cellDraggableClassname,isDragging&&cellDraggingClassname,isOver&&cellOverClassname),renderHeaderCell$1=column.renderHeaderCell??renderHeaderCell;function onPointerDown(event){if(event.pointerType==="mouse"&&event.buttons!==1)return;event.preventDefault();const{currentTarget,pointerId}=event,headerCell=currentTarget.parentElement,{right,left}=headerCell.getBoundingClientRect(),offset=isRtl?event.clientX-left:right-event.clientX;let hasDoubleClicked=!1;function onPointerMove(event2){const{width,right:right2,left:left2}=headerCell.getBoundingClientRect();let newWidth=isRtl?right2+offset-event2.clientX:event2.clientX+offset-left2;newWidth=clampColumnWidth(newWidth,column),width>0&&newWidth!==width&&onColumnResize(column,newWidth)}function onDoubleClick(){hasDoubleClicked=!0,onColumnResize(column,"max-content")}function onLostPointerCapture(event2){hasDoubleClicked||onPointerMove(event2),currentTarget.removeEventListener("pointermove",onPointerMove),currentTarget.removeEventListener("dblclick",onDoubleClick),currentTarget.removeEventListener("lostpointercapture",onLostPointerCapture)}currentTarget.setPointerCapture(pointerId),currentTarget.addEventListener("pointermove",onPointerMove),currentTarget.addEventListener("dblclick",onDoubleClick),currentTarget.addEventListener("lostpointercapture",onLostPointerCapture)}function onSort(ctrlClick){if(onSortColumnsChange==null)return;const{sortDescendingFirst}=column;if(sortColumn===void 0){const nextSort={columnKey:column.key,direction:sortDescendingFirst?"DESC":"ASC"};onSortColumnsChange(sortColumns&&ctrlClick?[...sortColumns,nextSort]:[nextSort])}else{let nextSortColumn;if((sortDescendingFirst===!0&&sortDirection==="DESC"||sortDescendingFirst!==!0&&sortDirection==="ASC")&&(nextSortColumn={columnKey:column.key,direction:sortDirection==="ASC"?"DESC":"ASC"}),ctrlClick){const nextSortColumns=[...sortColumns];nextSortColumn?nextSortColumns[sortIndex]=nextSortColumn:nextSortColumns.splice(sortIndex,1),onSortColumnsChange(nextSortColumns)}else onSortColumnsChange(nextSortColumn?[nextSortColumn]:[])}}function onClick(event){selectCell({idx:column.idx,rowIdx}),sortable&&onSort(event.ctrlKey||event.metaKey)}function handleFocus(event){onFocus==null||onFocus(event),shouldFocusGrid&&selectCell({idx:0,rowIdx})}function onKeyDown(event){(event.key===" "||event.key==="Enter")&&(event.preventDefault(),onSort(event.ctrlKey||event.metaKey))}function onDragStart(event){event.dataTransfer.setData(dragDropKey,column.key),event.dataTransfer.dropEffect="move",setIsDragging(!0)}function onDragEnd(){setIsDragging(!1)}function onDragOver(event){event.preventDefault(),event.dataTransfer.dropEffect="move"}function onDrop(event){if(setIsOver(!1),event.dataTransfer.types.includes(dragDropKey.toLowerCase())){const sourceKey=event.dataTransfer.getData(dragDropKey.toLowerCase());sourceKey!==column.key&&(event.preventDefault(),onColumnsReorder==null||onColumnsReorder(sourceKey,column.key))}}function onDragEnter(event){isEventPertinent(event)&&setIsOver(!0)}function onDragLeave(event){isEventPertinent(event)&&setIsOver(!1)}let draggableProps;return draggable&&(draggableProps={draggable:!0,onDragStart,onDragEnd,onDragOver,onDragEnter,onDragLeave,onDrop}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-rowspan":rowSpan,"aria-selected":isCellSelected,"aria-sort":ariaSort,tabIndex:shouldFocusGrid?0:tabIndex,className,style:{...getHeaderCellStyle(column,rowIdx,rowSpan),...getCellStyle(column,colSpan)},onFocus:handleFocus,onClick,onKeyDown:sortable?onKeyDown:void 0,...draggableProps,children:[renderHeaderCell$1({column,sortDirection,priority,tabIndex:childTabIndex}),resizable&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onPointerDown})]})}function isEventPertinent(event){const relatedTarget=event.relatedTarget;return!event.currentTarget.contains(relatedTarget)}const row="r1upfr807-0-0-beta-47",rowClassname=`rdg-row ${row}`,rowSelected="r190mhd37-0-0-beta-47",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r139qu9m7-0-0-beta-47",topSummaryRowClassname="rdg-top-summary-row",bottomSummaryRowClassname="rdg-bottom-summary-row",headerRow="h10tskcx7-0-0-beta-47",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx,columns,onColumnResize,onColumnsReorder,sortColumns,onSortColumnsChange,lastFrozenColumnIndex,selectedCellIdx,selectCell,shouldFocusGrid,direction}){const dragDropKey=reactExports.useId(),cells=[];for(let index=0;index<columns.length;index++){const column=columns[index],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"HEADER"});colSpan!==void 0&&(index+=colSpan-1),cells.push(jsxRuntimeExports.jsx(HeaderCell,{column,colSpan,rowIdx,isCellSelected:selectedCellIdx===column.idx,onColumnResize,onColumnsReorder,onSortColumnsChange,sortColumns,selectCell,shouldFocusGrid:shouldFocusGrid&&index===0,direction,dragDropKey},column.key))}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":rowIdx,className:clsx(headerRowClassname,selectedCellIdx===-1&&rowSelectedClassname),children:cells})}const HeaderRow$1=reactExports.memo(HeaderRow);function GroupedColumnHeaderRow({rowIdx,level,columns,selectedCellIdx,selectCell}){const cells=[],renderedParents=new Set;for(const column of columns){let{parent}=column;if(parent!==void 0){for(;parent.level>level&&parent.parent!==void 0;)parent=parent.parent;if(parent.level===level&&!renderedParents.has(parent)){renderedParents.add(parent);const{idx}=parent;cells.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:parent,rowIdx,isCellSelected:selectedCellIdx===idx,selectCell},idx))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":rowIdx,className:headerRowClassname,children:cells})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="c6ra8a37-0-0-beta-47",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="cq910m07-0-0-beta-47",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell$1({column,colSpan,isCellSelected,isCopied,isDraggedOver,row:row2,rowIdx,onClick,onDoubleClick,onContextMenu,onRowChange,selectCell,...props}){const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),{cellClass}=column,className=getCellClassname(column,typeof cellClass=="function"?cellClass(row2):cellClass,isCopied&&cellCopiedClassname,isDraggedOver&&cellDraggedOverClassname),isEditable=isCellEditableUtil(column,row2);function selectCellWrapper(openEditor){selectCell({rowIdx,idx:column.idx},openEditor)}function handleClick(event){if(onClick){const cellEvent=createCellEvent(event);if(onClick({row:row2,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper()}function handleContextMenu(event){if(onContextMenu){const cellEvent=createCellEvent(event);if(onContextMenu({row:row2,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper()}function handleDoubleClick(event){if(onDoubleClick){const cellEvent=createCellEvent(event);if(onDoubleClick({row:row2,column,selectCell:selectCellWrapper},cellEvent),cellEvent.isGridDefaultPrevented())return}selectCellWrapper(!0)}function handleRowChange(newRow){onRowChange(column,newRow)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":isCellSelected,"aria-readonly":!isEditable||void 0,tabIndex,className,style:getCellStyle(column,colSpan),onClick:handleClick,onDoubleClick:handleDoubleClick,onContextMenu:handleContextMenu,onFocus,...props,children:column.renderCell({column,row:row2,rowIdx,isCellEditable:isEditable,tabIndex:childTabIndex,onRowChange:handleRowChange})})}const Cell$1$1=reactExports.memo(Cell$1);function Row({className,rowIdx,gridRowStart,selectedCellIdx,isRowSelectionDisabled,isRowSelected,copiedCellIdx,draggedOverCellIdx,lastFrozenColumnIndex,row:row2,viewportColumns,selectedCellEditor,onCellClick,onCellDoubleClick,onCellContextMenu,rowClass,setDraggedOverRowIdx,onMouseEnter,onRowChange,selectCell,...props},ref){const handleRowChange=useLatestFunc((column,newRow)=>{onRowChange(column,rowIdx,newRow)});function handleDragEnter(event){setDraggedOverRowIdx==null||setDraggedOverRowIdx(rowIdx),onMouseEnter==null||onMouseEnter(event)}className=clsx(rowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,rowClass==null?void 0:rowClass(row2,rowIdx),className,selectedCellIdx===-1&&rowSelectedClassname);const cells=[];for(let index=0;index<viewportColumns.length;index++){const column=viewportColumns[index],{idx}=column,colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2});colSpan!==void 0&&(index+=colSpan-1);const isCellSelected=selectedCellIdx===idx;isCellSelected&&selectedCellEditor?cells.push(selectedCellEditor):cells.push(jsxRuntimeExports.jsx(Cell$1$1,{column,colSpan,row:row2,rowIdx,isCopied:copiedCellIdx===idx,isDraggedOver:draggedOverCellIdx===idx,isCellSelected,onClick:onCellClick,onDoubleClick:onCellDoubleClick,onContextMenu:onCellContextMenu,onRowChange:handleRowChange,selectCell},column.key))}const selectionValue=reactExports.useMemo(()=>({isRowSelected,isRowSelectionDisabled}),[isRowSelectionDisabled,isRowSelected]);return jsxRuntimeExports.jsx(RowSelectionProvider,{value:selectionValue,children:jsxRuntimeExports.jsx("div",{role:"row",ref,className,onMouseEnter:handleDragEnter,style:getRowStyle(gridRowStart),...props,children:cells})})}const RowComponent=reactExports.memo(reactExports.forwardRef(Row));function defaultRenderRow(key,props){return jsxRuntimeExports.jsx(RowComponent,{...props},key)}function ScrollToCell({scrollToPosition:{idx,rowIdx},gridElement,setScrollToCellPosition}){const ref=reactExports.useRef(null);return useLayoutEffect(()=>{scrollIntoView(ref.current)}),useLayoutEffect(()=>{function removeScrollToCell(){setScrollToCellPosition(null)}const observer=new IntersectionObserver(removeScrollToCell,{root:gridElement,threshold:1});return observer.observe(ref.current),()=>{observer.disconnect()}},[gridElement,setScrollToCellPosition]),jsxRuntimeExports.jsx("div",{ref,style:{gridColumn:idx===void 0?"1/-1":idx+1,gridRow:rowIdx===void 0?"1/-1":rowIdx+2}})}const arrow="a3ejtar7-0-0-beta-47",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection,priority}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection}),renderSortPriority({priority})]})}function renderSortIcon({sortDirection}){return sortDirection===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:sortDirection==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority}){return priority}const root="rnvodz57-0-0-beta-47",rootClassname=`rdg ${root}`,viewportDragging="vlqv91k7-0-0-beta-47",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="f1lsfrzw7-0-0-beta-47",focusSinkHeaderAndSummaryClassname="f1cte0lg7-0-0-beta-47",summaryCellClassname="s8wc6fl7-0-0-beta-47";function SummaryCell({column,colSpan,row:row2,rowIdx,isCellSelected,selectCell}){var _a;const{tabIndex,childTabIndex,onFocus}=useRovingTabIndex(isCellSelected),{summaryCellClass}=column,className=getCellClassname(column,summaryCellClassname,typeof summaryCellClass=="function"?summaryCellClass(row2):summaryCellClass);function onClick(){selectCell({rowIdx,idx:column.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":column.idx+1,"aria-colspan":colSpan,"aria-selected":isCellSelected,tabIndex,className,style:getCellStyle(column,colSpan),onClick,onFocus,children:(_a=column.renderSummaryCell)==null?void 0:_a.call(column,{column,row:row2,tabIndex:childTabIndex})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="skuhp557-0-0-beta-47",topSummaryRow="tf8l5ub7-0-0-beta-47",summaryRowClassname=`rdg-summary-row ${summaryRow}`;function SummaryRow({rowIdx,gridRowStart,row:row2,viewportColumns,top,bottom,lastFrozenColumnIndex,selectedCellIdx,isTop,selectCell,"aria-rowindex":ariaRowIndex}){const cells=[];for(let index=0;index<viewportColumns.length;index++){const column=viewportColumns[index],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"SUMMARY",row:row2});colSpan!==void 0&&(index+=colSpan-1);const isCellSelected=selectedCellIdx===column.idx;cells.push(jsxRuntimeExports.jsx(SummaryCell$1,{column,colSpan,row:row2,rowIdx,isCellSelected,selectCell},column.key))}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":ariaRowIndex,className:clsx(rowClassname,`rdg-row-${rowIdx%2===0?"even":"odd"}`,summaryRowClassname,isTop?`${topSummaryRowClassname} ${topSummaryRow}`:bottomSummaryRowClassname,selectedCellIdx===-1&&rowSelectedClassname),style:{...getRowStyle(gridRowStart),"--rdg-summary-row-top":top!==void 0?`${top}px`:void 0,"--rdg-summary-row-bottom":bottom!==void 0?`${bottom}px`:void 0},children:cells})}const SummaryRow$1=reactExports.memo(SummaryRow);function DataGrid(props,ref){const{columns:rawColumns,rows,topSummaryRows,bottomSummaryRows,rowKeyGetter,onRowsChange,rowHeight:rawRowHeight,headerRowHeight:rawHeaderRowHeight,summaryRowHeight:rawSummaryRowHeight,selectedRows,isRowSelectionDisabled,onSelectedRowsChange,sortColumns,onSortColumnsChange,defaultColumnOptions,onCellClick,onCellDoubleClick,onCellContextMenu,onCellKeyDown,onSelectedCellChange,onScroll,onColumnResize,onColumnsReorder,onFill,onCopy,onPaste,enableVirtualization:rawEnableVirtualization,renderers,className,style,rowClass,direction:rawDirection,role:rawRole,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,"aria-describedby":ariaDescribedBy,"aria-rowcount":rawAriaRowCount,"data-testid":testId}=props,defaultRenderers=useDefaultRenderers(),role=rawRole??"grid",rowHeight=rawRowHeight??35,headerRowHeight=rawHeaderRowHeight??(typeof rowHeight=="number"?rowHeight:35),summaryRowHeight=rawSummaryRowHeight??(typeof rowHeight=="number"?rowHeight:35),renderRow=(renderers==null?void 0:renderers.renderRow)??(defaultRenderers==null?void 0:defaultRenderers.renderRow)??defaultRenderRow,renderSortStatus$1=(renderers==null?void 0:renderers.renderSortStatus)??(defaultRenderers==null?void 0:defaultRenderers.renderSortStatus)??renderSortStatus,renderCheckbox$1=(renderers==null?void 0:renderers.renderCheckbox)??(defaultRenderers==null?void 0:defaultRenderers.renderCheckbox)??renderCheckbox,noRowsFallback=(renderers==null?void 0:renderers.noRowsFallback)??(defaultRenderers==null?void 0:defaultRenderers.noRowsFallback),enableVirtualization=rawEnableVirtualization??!0,direction=rawDirection??"ltr",[scrollTop,setScrollTop]=reactExports.useState(0),[scrollLeft,setScrollLeft]=reactExports.useState(0),[resizedColumnWidths,setResizedColumnWidths]=reactExports.useState(()=>new Map),[measuredColumnWidths,setMeasuredColumnWidths]=reactExports.useState(()=>new Map),[copiedCell,setCopiedCell]=reactExports.useState(null),[isDragging,setDragging]=reactExports.useState(!1),[draggedOverRowIdx,setOverRowIdx]=reactExports.useState(void 0),[scrollToPosition,setScrollToPosition]=reactExports.useState(null),getColumnWidth=reactExports.useCallback(column=>resizedColumnWidths.get(column.key)??measuredColumnWidths.get(column.key)??column.width,[measuredColumnWidths,resizedColumnWidths]),[gridRef,gridWidth,gridHeight,horizontalScrollbarHeight]=useGridDimensions(),{columns,colSpanColumns,lastFrozenColumnIndex,headerRowsCount,colOverscanStartIdx,colOverscanEndIdx,templateColumns,layoutCssVars,totalFrozenColumnWidth}=useCalculatedColumns({rawColumns,defaultColumnOptions,getColumnWidth,scrollLeft,viewportWidth:gridWidth,enableVirtualization}),topSummaryRowsCount=(topSummaryRows==null?void 0:topSummaryRows.length)??0,bottomSummaryRowsCount=(bottomSummaryRows==null?void 0:bottomSummaryRows.length)??0,summaryRowsCount=topSummaryRowsCount+bottomSummaryRowsCount,headerAndTopSummaryRowsCount=headerRowsCount+topSummaryRowsCount,groupedColumnHeaderRowsCount=headerRowsCount-1,minRowIdx=-headerAndTopSummaryRowsCount,mainHeaderRowIdx=minRowIdx+groupedColumnHeaderRowsCount,maxRowIdx=rows.length+bottomSummaryRowsCount-1,[selectedPosition,setSelectedPosition]=reactExports.useState(()=>({idx:-1,rowIdx:minRowIdx-1,mode:"SELECT"})),prevSelectedPosition=reactExports.useRef(selectedPosition),latestDraggedOverRowIdx=reactExports.useRef(draggedOverRowIdx),lastSelectedRowIdx=reactExports.useRef(-1),focusSinkRef=reactExports.useRef(null),shouldFocusCellRef=reactExports.useRef(!1),isTreeGrid=role==="treegrid",headerRowsHeight=headerRowsCount*headerRowHeight,summaryRowsHeight=summaryRowsCount*summaryRowHeight,clientHeight=gridHeight-headerRowsHeight-summaryRowsHeight,isSelectable=selectedRows!=null&&onSelectedRowsChange!=null,isRtl=direction==="rtl",leftKey=isRtl?"ArrowRight":"ArrowLeft",rightKey=isRtl?"ArrowLeft":"ArrowRight",ariaRowCount=rawAriaRowCount??headerRowsCount+rows.length+summaryRowsCount,defaultGridComponents=reactExports.useMemo(()=>({renderCheckbox:renderCheckbox$1,renderSortStatus:renderSortStatus$1}),[renderCheckbox$1,renderSortStatus$1]),headerSelectionValue=reactExports.useMemo(()=>{let hasSelectedRow=!1,hasUnselectedRow=!1;if(rowKeyGetter!=null&&selectedRows!=null&&selectedRows.size>0){for(const row2 of rows)if(selectedRows.has(rowKeyGetter(row2))?hasSelectedRow=!0:hasUnselectedRow=!0,hasSelectedRow&&hasUnselectedRow)break}return{isRowSelected:hasSelectedRow&&!hasUnselectedRow,isIndeterminate:hasSelectedRow&&hasUnselectedRow}},[rows,selectedRows,rowKeyGetter]),{rowOverscanStartIdx,rowOverscanEndIdx,totalRowHeight,gridTemplateRows,getRowTop,getRowHeight,findRowIdx}=useViewportRows({rows,rowHeight,clientHeight,scrollTop,enableVirtualization}),viewportColumns=useViewportColumns({columns,colSpanColumns,colOverscanStartIdx,colOverscanEndIdx,lastFrozenColumnIndex,rowOverscanStartIdx,rowOverscanEndIdx,rows,topSummaryRows,bottomSummaryRows}),{gridTemplateColumns,handleColumnResize}=useColumnWidths(columns,viewportColumns,templateColumns,gridRef,gridWidth,resizedColumnWidths,measuredColumnWidths,setResizedColumnWidths,setMeasuredColumnWidths,onColumnResize),minColIdx=isTreeGrid?-1:0,maxColIdx=columns.length-1,selectedCellIsWithinSelectionBounds=isCellWithinSelectionBounds(selectedPosition),selectedCellIsWithinViewportBounds=isCellWithinViewportBounds(selectedPosition),scrollHeight=headerRowHeight+totalRowHeight+summaryRowsHeight+horizontalScrollbarHeight,handleColumnResizeLatest=useLatestFunc(handleColumnResize),onColumnsReorderLastest=useLatestFunc(onColumnsReorder),onSortColumnsChangeLatest=useLatestFunc(onSortColumnsChange),onCellClickLatest=useLatestFunc(onCellClick),onCellDoubleClickLatest=useLatestFunc(onCellDoubleClick),onCellContextMenuLatest=useLatestFunc(onCellContextMenu),selectHeaderRowLatest=useLatestFunc(selectHeaderRow),selectRowLatest=useLatestFunc(selectRow),handleFormatterRowChangeLatest=useLatestFunc(updateRow),selectCellLatest=useLatestFunc(selectCell),selectHeaderCellLatest=useLatestFunc(({idx,rowIdx})=>{selectCell({rowIdx:minRowIdx+rowIdx-1,idx})});useLayoutEffect(()=>{if(!selectedCellIsWithinSelectionBounds||isSamePosition(selectedPosition,prevSelectedPosition.current)){prevSelectedPosition.current=selectedPosition;return}prevSelectedPosition.current=selectedPosition,selectedPosition.idx===-1&&(focusSinkRef.current.focus({preventScroll:!0}),scrollIntoView(focusSinkRef.current))}),useLayoutEffect(()=>{shouldFocusCellRef.current&&(shouldFocusCellRef.current=!1,focusCellOrCellContent())}),reactExports.useImperativeHandle(ref,()=>({element:gridRef.current,scrollToCell({idx,rowIdx}){const scrollToIdx=idx!==void 0&&idx>lastFrozenColumnIndex&&idx<columns.length?idx:void 0,scrollToRowIdx=rowIdx!==void 0&&isRowIdxWithinViewportBounds(rowIdx)?rowIdx:void 0;(scrollToIdx!==void 0||scrollToRowIdx!==void 0)&&setScrollToPosition({idx:scrollToIdx,rowIdx:scrollToRowIdx})},selectCell}));const setDraggedOverRowIdx=reactExports.useCallback(rowIdx=>{setOverRowIdx(rowIdx),latestDraggedOverRowIdx.current=rowIdx},[]);function selectHeaderRow(args){if(!onSelectedRowsChange)return;assertIsValidKeyGetter(rowKeyGetter);const newSelectedRows=new Set(selectedRows);for(const row2 of rows){if((isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row2))===!0)continue;const rowKey=rowKeyGetter(row2);args.checked?newSelectedRows.add(rowKey):newSelectedRows.delete(rowKey)}onSelectedRowsChange(newSelectedRows)}function selectRow(args){if(!onSelectedRowsChange)return;assertIsValidKeyGetter(rowKeyGetter);const{row:row2,checked,isShiftClick}=args;if((isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row2))===!0)return;const newSelectedRows=new Set(selectedRows),rowKey=rowKeyGetter(row2),previousRowIdx=lastSelectedRowIdx.current,rowIdx=rows.indexOf(row2);if(lastSelectedRowIdx.current=rowIdx,checked?newSelectedRows.add(rowKey):newSelectedRows.delete(rowKey),isShiftClick&&previousRowIdx!==-1&&previousRowIdx!==rowIdx&&previousRowIdx<rows.length){const step=sign(rowIdx-previousRowIdx);for(let i=previousRowIdx+step;i!==rowIdx;i+=step){const row3=rows[i];(isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row3))!==!0&&(checked?newSelectedRows.add(rowKeyGetter(row3)):newSelectedRows.delete(rowKeyGetter(row3)))}}onSelectedRowsChange(newSelectedRows)}function handleKeyDown(event){var _a;const{idx,rowIdx,mode}=selectedPosition;if(mode==="EDIT")return;if(onCellKeyDown&&isRowIdxWithinViewportBounds(rowIdx)){const row2=rows[rowIdx],cellEvent=createCellEvent(event);if(onCellKeyDown({mode:"SELECT",row:row2,column:columns[idx],rowIdx,selectCell},cellEvent),cellEvent.isGridDefaultPrevented())return}if(!(event.target instanceof Element))return;const isCellEvent=event.target.closest(".rdg-cell")!==null,isRowEvent=isTreeGrid&&event.target===focusSinkRef.current;if(!isCellEvent&&!isRowEvent)return;const{keyCode}=event;if(selectedCellIsWithinViewportBounds&&(onPaste!=null||onCopy!=null)&&isCtrlKeyHeldDown(event)){if(keyCode===67){if(((_a=window.getSelection())==null?void 0:_a.isCollapsed)===!1)return;handleCopy();return}if(keyCode===86){handlePaste();return}}switch(event.key){case"Escape":setCopiedCell(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":navigate(event);break;default:handleCellInput(event);break}}function handleScroll(event){const{scrollTop:scrollTop2,scrollLeft:scrollLeft2}=event.currentTarget;reactDomExports.flushSync(()=>{setScrollTop(scrollTop2),setScrollLeft(abs(scrollLeft2))}),onScroll==null||onScroll(event)}function updateRow(column,rowIdx,row2){if(typeof onRowsChange!="function"||row2===rows[rowIdx])return;const updatedRows=[...rows];updatedRows[rowIdx]=row2,onRowsChange(updatedRows,{indexes:[rowIdx],column})}function commitEditorChanges(){selectedPosition.mode==="EDIT"&&updateRow(columns[selectedPosition.idx],selectedPosition.rowIdx,selectedPosition.row)}function handleCopy(){const{idx,rowIdx}=selectedPosition,sourceRow=rows[rowIdx],sourceColumnKey=columns[idx].key;setCopiedCell({row:sourceRow,columnKey:sourceColumnKey}),onCopy==null||onCopy({sourceRow,sourceColumnKey})}function handlePaste(){if(!onPaste||!onRowsChange||copiedCell===null||!isCellEditable(selectedPosition))return;const{idx,rowIdx}=selectedPosition,targetColumn=columns[idx],targetRow=rows[rowIdx],updatedTargetRow=onPaste({sourceRow:copiedCell.row,sourceColumnKey:copiedCell.columnKey,targetRow,targetColumnKey:targetColumn.key});updateRow(targetColumn,rowIdx,updatedTargetRow)}function handleCellInput(event){if(!selectedCellIsWithinViewportBounds)return;const row2=rows[selectedPosition.rowIdx],{key,shiftKey}=event;if(isSelectable&&shiftKey&&key===" "){assertIsValidKeyGetter(rowKeyGetter);const rowKey=rowKeyGetter(row2);selectRow({row:row2,checked:!selectedRows.has(rowKey),isShiftClick:!1}),event.preventDefault();return}isCellEditable(selectedPosition)&&isDefaultCellInput(event)&&setSelectedPosition(({idx,rowIdx})=>({idx,rowIdx,mode:"EDIT",row:row2,originalRow:row2}))}function isColIdxWithinSelectionBounds(idx){return idx>=minColIdx&&idx<=maxColIdx}function isRowIdxWithinViewportBounds(rowIdx){return rowIdx>=0&&rowIdx<rows.length}function isCellWithinSelectionBounds({idx,rowIdx}){return rowIdx>=minRowIdx&&rowIdx<=maxRowIdx&&isColIdxWithinSelectionBounds(idx)}function isCellWithinEditBounds({idx,rowIdx}){return isRowIdxWithinViewportBounds(rowIdx)&&idx>=0&&idx<=maxColIdx}function isCellWithinViewportBounds({idx,rowIdx}){return isRowIdxWithinViewportBounds(rowIdx)&&isColIdxWithinSelectionBounds(idx)}function isCellEditable(position){return isCellWithinEditBounds(position)&&isSelectedCellEditable({columns,rows,selectedPosition:position})}function selectCell(position,enableEditor){if(!isCellWithinSelectionBounds(position))return;commitEditorChanges();const row2=rows[position.rowIdx],samePosition=isSamePosition(selectedPosition,position);enableEditor&&isCellEditable(position)?setSelectedPosition({...position,mode:"EDIT",row:row2,originalRow:row2}):samePosition?scrollIntoView(getCellToScroll(gridRef.current)):(shouldFocusCellRef.current=!0,setSelectedPosition({...position,mode:"SELECT"})),onSelectedCellChange&&!samePosition&&onSelectedCellChange({rowIdx:position.rowIdx,row:row2,column:columns[position.idx]})}function getNextPosition(key,ctrlKey,shiftKey){const{idx,rowIdx}=selectedPosition,isRowSelected=selectedCellIsWithinSelectionBounds&&idx===-1;switch(key){case"ArrowUp":return{idx,rowIdx:rowIdx-1};case"ArrowDown":return{idx,rowIdx:rowIdx+1};case leftKey:return{idx:idx-1,rowIdx};case rightKey:return{idx:idx+1,rowIdx};case"Tab":return{idx:idx+(shiftKey?-1:1),rowIdx};case"Home":return isRowSelected?{idx,rowIdx:minRowIdx}:{idx:0,rowIdx:ctrlKey?minRowIdx:rowIdx};case"End":return isRowSelected?{idx,rowIdx:maxRowIdx}:{idx:maxColIdx,rowIdx:ctrlKey?maxRowIdx:rowIdx};case"PageUp":{if(selectedPosition.rowIdx===minRowIdx)return selectedPosition;const nextRowY=getRowTop(rowIdx)+getRowHeight(rowIdx)-clientHeight;return{idx,rowIdx:nextRowY>0?findRowIdx(nextRowY):0}}case"PageDown":{if(selectedPosition.rowIdx>=rows.length)return selectedPosition;const nextRowY=getRowTop(rowIdx)+clientHeight;return{idx,rowIdx:nextRowY<totalRowHeight?findRowIdx(nextRowY):rows.length-1}}default:return selectedPosition}}function navigate(event){const{key,shiftKey}=event;let cellNavigationMode="NONE";if(key==="Tab"){if(canExitGrid({shiftKey,maxColIdx,minRowIdx,maxRowIdx,selectedPosition})){commitEditorChanges();return}cellNavigationMode="CHANGE_ROW"}event.preventDefault();const ctrlKey=isCtrlKeyHeldDown(event),nextPosition=getNextPosition(key,ctrlKey,shiftKey);if(isSamePosition(selectedPosition,nextPosition))return;const nextSelectedCellPosition=getNextSelectedCellPosition({moveUp:key==="ArrowUp",moveNext:key===rightKey||key==="Tab"&&!shiftKey,columns,colSpanColumns,rows,topSummaryRows,bottomSummaryRows,minRowIdx,mainHeaderRowIdx,maxRowIdx,lastFrozenColumnIndex,cellNavigationMode,currentPosition:selectedPosition,nextPosition,isCellWithinBounds:isCellWithinSelectionBounds});selectCell(nextSelectedCellPosition)}function getDraggedOverCellIdx(currentRowIdx){if(draggedOverRowIdx===void 0)return;const{rowIdx}=selectedPosition;return(rowIdx<draggedOverRowIdx?rowIdx<currentRowIdx&&currentRowIdx<=draggedOverRowIdx:rowIdx>currentRowIdx&&currentRowIdx>=draggedOverRowIdx)?selectedPosition.idx:void 0}function focusCellOrCellContent(){const cell2=getCellToScroll(gridRef.current);cell2!==null&&(scrollIntoView(cell2),(cell2.querySelector('[tabindex="0"]')??cell2).focus({preventScroll:!0}))}function renderDragHandle(){if(onFill==null||selectedPosition.mode==="EDIT"||!isCellWithinViewportBounds(selectedPosition))return;const{idx,rowIdx}=selectedPosition,column=columns[idx];if(column.renderEditCell==null||column.editable===!1)return;const columnWidth=getColumnWidth(column);return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:headerAndTopSummaryRowsCount+rowIdx+1,rows,column,columnWidth,maxColIdx,isLastRow:rowIdx===maxRowIdx,selectedPosition,isCellEditable,latestDraggedOverRowIdx,onRowsChange,onClick:focusCellOrCellContent,onFill,setDragging,setDraggedOverRowIdx})}function getCellEditor(rowIdx){if(selectedPosition.rowIdx!==rowIdx||selectedPosition.mode==="SELECT")return;const{idx,row:row2}=selectedPosition,column=columns[idx],colSpan=getColSpan(column,lastFrozenColumnIndex,{type:"ROW",row:row2}),closeEditor=shouldFocusCell=>{shouldFocusCellRef.current=shouldFocusCell,setSelectedPosition(({idx:idx2,rowIdx:rowIdx2})=>({idx:idx2,rowIdx:rowIdx2,mode:"SELECT"}))},onRowChange=(row3,commitChanges,shouldFocusCell)=>{commitChanges?reactDomExports.flushSync(()=>{updateRow(column,selectedPosition.rowIdx,row3),closeEditor(shouldFocusCell)}):setSelectedPosition(position=>({...position,row:row3}))};return rows[selectedPosition.rowIdx]!==selectedPosition.originalRow&&closeEditor(!1),jsxRuntimeExports.jsx(EditCell,{column,colSpan,row:row2,rowIdx,onRowChange,closeEditor,onKeyDown:onCellKeyDown,navigate},column.key)}function getRowViewportColumns(rowIdx){const selectedColumn=selectedPosition.idx===-1?void 0:columns[selectedPosition.idx];return selectedColumn!==void 0&&selectedPosition.rowIdx===rowIdx&&!viewportColumns.includes(selectedColumn)?selectedPosition.idx>colOverscanEndIdx?[...viewportColumns,selectedColumn]:[...viewportColumns.slice(0,lastFrozenColumnIndex+1),selectedColumn,...viewportColumns.slice(lastFrozenColumnIndex+1)]:viewportColumns}function getViewportRows(){const rowElements=[],{idx:selectedIdx,rowIdx:selectedRowIdx}=selectedPosition,startRowIdx=selectedCellIsWithinViewportBounds&&selectedRowIdx<rowOverscanStartIdx?rowOverscanStartIdx-1:rowOverscanStartIdx,endRowIdx=selectedCellIsWithinViewportBounds&&selectedRowIdx>rowOverscanEndIdx?rowOverscanEndIdx+1:rowOverscanEndIdx;for(let viewportRowIdx=startRowIdx;viewportRowIdx<=endRowIdx;viewportRowIdx++){const isRowOutsideViewport=viewportRowIdx===rowOverscanStartIdx-1||viewportRowIdx===rowOverscanEndIdx+1,rowIdx=isRowOutsideViewport?selectedRowIdx:viewportRowIdx;let rowColumns=viewportColumns;const selectedColumn=selectedIdx===-1?void 0:columns[selectedIdx];selectedColumn!==void 0&&(isRowOutsideViewport?rowColumns=[selectedColumn]:rowColumns=getRowViewportColumns(rowIdx));const row2=rows[rowIdx],gridRowStart=headerAndTopSummaryRowsCount+rowIdx+1;let key=rowIdx,isRowSelected=!1;typeof rowKeyGetter=="function"&&(key=rowKeyGetter(row2),isRowSelected=(selectedRows==null?void 0:selectedRows.has(key))??!1),rowElements.push(renderRow(key,{"aria-rowindex":headerAndTopSummaryRowsCount+rowIdx+1,"aria-selected":isSelectable?isRowSelected:void 0,rowIdx,row:row2,viewportColumns:rowColumns,isRowSelectionDisabled:(isRowSelectionDisabled==null?void 0:isRowSelectionDisabled(row2))??!1,isRowSelected,onCellClick:onCellClickLatest,onCellDoubleClick:onCellDoubleClickLatest,onCellContextMenu:onCellContextMenuLatest,rowClass,gridRowStart,copiedCellIdx:copiedCell!==null&&copiedCell.row===row2?columns.findIndex(c2=>c2.key===copiedCell.columnKey):void 0,selectedCellIdx:selectedRowIdx===rowIdx?selectedIdx:void 0,draggedOverCellIdx:getDraggedOverCellIdx(rowIdx),setDraggedOverRowIdx:isDragging?setDraggedOverRowIdx:void 0,lastFrozenColumnIndex,onRowChange:handleFormatterRowChangeLatest,selectCell:selectCellLatest,selectedCellEditor:getCellEditor(rowIdx)}))}return rowElements}(selectedPosition.idx>maxColIdx||selectedPosition.rowIdx>maxRowIdx)&&(setSelectedPosition({idx:-1,rowIdx:minRowIdx-1,mode:"SELECT"}),setDraggedOverRowIdx(void 0));let templateRows=`repeat(${headerRowsCount}, ${headerRowHeight}px)`;topSummaryRowsCount>0&&(templateRows+=` repeat(${topSummaryRowsCount}, ${summaryRowHeight}px)`),rows.length>0&&(templateRows+=gridTemplateRows),bottomSummaryRowsCount>0&&(templateRows+=` repeat(${bottomSummaryRowsCount}, ${summaryRowHeight}px)`);const isGroupRowFocused=selectedPosition.idx===-1&&selectedPosition.rowIdx!==minRowIdx-1;return jsxRuntimeExports.jsxs("div",{role,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,"aria-describedby":ariaDescribedBy,"aria-multiselectable":isSelectable?!0:void 0,"aria-colcount":columns.length,"aria-rowcount":ariaRowCount,className:clsx(rootClassname,className,isDragging&&viewportDraggingClassname),style:{...style,scrollPaddingInlineStart:selectedPosition.idx>lastFrozenColumnIndex||(scrollToPosition==null?void 0:scrollToPosition.idx)!==void 0?`${totalFrozenColumnWidth}px`:void 0,scrollPaddingBlock:isRowIdxWithinViewportBounds(selectedPosition.rowIdx)||(scrollToPosition==null?void 0:scrollToPosition.rowIdx)!==void 0?`${headerRowsHeight+topSummaryRowsCount*summaryRowHeight}px ${bottomSummaryRowsCount*summaryRowHeight}px`:void 0,gridTemplateColumns,gridTemplateRows:templateRows,"--rdg-header-row-height":`${headerRowHeight}px`,"--rdg-scroll-height":`${scrollHeight}px`,...layoutCssVars},dir:direction,ref:gridRef,onScroll:handleScroll,onKeyDown:handleKeyDown,"data-testid":testId,children:[jsxRuntimeExports.jsxs(DataGridDefaultRenderersProvider,{value:defaultGridComponents,children:[jsxRuntimeExports.jsx(HeaderRowSelectionChangeProvider,{value:selectHeaderRowLatest,children:jsxRuntimeExports.jsxs(HeaderRowSelectionProvider,{value:headerSelectionValue,children:[Array.from({length:groupedColumnHeaderRowsCount},(_,index)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:index+1,level:-groupedColumnHeaderRowsCount+index,columns:getRowViewportColumns(minRowIdx+index),selectedCellIdx:selectedPosition.rowIdx===minRowIdx+index?selectedPosition.idx:void 0,selectCell:selectHeaderCellLatest},index)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:headerRowsCount,columns:getRowViewportColumns(mainHeaderRowIdx),onColumnResize:handleColumnResizeLatest,onColumnsReorder:onColumnsReorderLastest,sortColumns,onSortColumnsChange:onSortColumnsChangeLatest,lastFrozenColumnIndex,selectedCellIdx:selectedPosition.rowIdx===mainHeaderRowIdx?selectedPosition.idx:void 0,selectCell:selectHeaderCellLatest,shouldFocusGrid:!selectedCellIsWithinSelectionBounds,direction})]})}),rows.length===0&&noRowsFallback?noRowsFallback:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[topSummaryRows==null?void 0:topSummaryRows.map((row2,rowIdx)=>{const gridRowStart=headerRowsCount+1+rowIdx,summaryRowIdx=mainHeaderRowIdx+1+rowIdx,isSummaryRowSelected=selectedPosition.rowIdx===summaryRowIdx,top=headerRowsHeight+summaryRowHeight*rowIdx;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":gridRowStart,rowIdx:summaryRowIdx,gridRowStart,row:row2,top,bottom:void 0,viewportColumns:getRowViewportColumns(summaryRowIdx),lastFrozenColumnIndex,selectedCellIdx:isSummaryRowSelected?selectedPosition.idx:void 0,isTop:!0,selectCell:selectCellLatest},rowIdx)}),jsxRuntimeExports.jsx(RowSelectionChangeProvider,{value:selectRowLatest,children:getViewportRows()}),bottomSummaryRows==null?void 0:bottomSummaryRows.map((row2,rowIdx)=>{const gridRowStart=headerAndTopSummaryRowsCount+rows.length+rowIdx+1,summaryRowIdx=rows.length+rowIdx,isSummaryRowSelected=selectedPosition.rowIdx===summaryRowIdx,top=clientHeight>totalRowHeight?gridHeight-summaryRowHeight*(bottomSummaryRows.length-rowIdx):void 0,bottom=top===void 0?summaryRowHeight*(bottomSummaryRows.length-1-rowIdx):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":ariaRowCount-bottomSummaryRowsCount+rowIdx+1,rowIdx:summaryRowIdx,gridRowStart,row:row2,top,bottom,viewportColumns:getRowViewportColumns(summaryRowIdx),lastFrozenColumnIndex,selectedCellIdx:isSummaryRowSelected?selectedPosition.idx:void 0,isTop:!1,selectCell:selectCellLatest},rowIdx)})]})]}),renderDragHandle(),renderMeasuringCells(viewportColumns),isTreeGrid&&jsxRuntimeExports.jsx("div",{ref:focusSinkRef,tabIndex:isGroupRowFocused?0:-1,className:clsx(focusSinkClassname,isGroupRowFocused&&[rowSelected,lastFrozenColumnIndex!==-1&&rowSelectedWithFrozenCell],!isRowIdxWithinViewportBounds(selectedPosition.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:selectedPosition.rowIdx+headerAndTopSummaryRowsCount+1}}),scrollToPosition!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition,setScrollToCellPosition:setScrollToPosition,gridElement:gridRef.current})]})}function getCellToScroll(gridEl){return gridEl.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(p1,p2){return p1.idx===p2.idx&&p1.rowIdx===p2.rowIdx}const DataGrid$1=reactExports.forwardRef(DataGrid);function useData(widget){const columns=require$$0$1.useMemo(()=>widget.columns(),[widget,widget.dataChecksum()]),data=require$$0$1.useMemo(()=>widget.data(),[widget,widget.dataChecksum()]);return[columns,data]}function copyAndSort(items,attribute,descending){const key=attribute;return[...items].sort((a2,b)=>a2[key]<b[key]?descending?1:-1:a2[key]>b[key]?descending?-1:1:0)}const EmptyRowsRenderer=({message})=>jsxRuntimeExports.jsx("div",{style:{textAlign:"center",gridColumn:"1/-1"},children:message}),ReactTable=({table,sort})=>{const[columns,data]=useData(table),multiSelect=table.multiSelect(),columnTypes=table.columnTypes(),columnPatterns=table.columnPatterns(),columnFormats=table.columnFormats(),[listColumns,setListColumns]=reactExports.useState([]),[sortColumn,setSortColumn]=reactExports.useState(),[rows,setRows]=reactExports.useState([]),[selectedRows,setSelectedRows]=reactExports.useState(new Set);reactExports.useEffect(()=>{setListColumns([...multiSelect?[SelectColumn]:[],...columns.map(column=>{const type=columnTypes[column]??"string";let formatter,__hpcc_pattern,__hpcc_format;switch(type){case"time":__hpcc_pattern=columnPatterns[column]!==void 0?common.timeParse(columnPatterns[column]):void 0,__hpcc_format=columnFormats[column]!==void 0?common.timeFormat(columnFormats[column]):void 0;break;case"number":formatter=props=>jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:props.row[props.column.key]});default:__hpcc_format=columnFormats[column]!==void 0?common.format(columnFormats[column]):void 0}return{key:column,name:column,resizable:!0,sortable:!0,minWidth:80,renderCell:formatter,__hpcc_pattern,__hpcc_format}})])},[columnFormats,columnPatterns,columnTypes,columns,multiSelect]);const onSortColumnsChange=reactExports.useCallback(sortColumns=>{const futureSortColumn=sortColumns.slice(-1)[0],sorted=futureSortColumn!==void 0,isSortedDescending=(futureSortColumn==null?void 0:futureSortColumn.direction)==="DESC";setSortColumn(futureSortColumn),setRows(copyAndSort(rows,sorted?futureSortColumn.columnKey:"key",sorted?isSortedDescending:!1))},[rows]),rowKeyGetter=reactExports.useCallback(row2=>row2.key,[]),onSelectedRowsChange=reactExports.useCallback(selectedRows2=>{setSelectedRows(selectedRows2)},[]),onCellClick=reactExports.useCallback((row2,column)=>{table.onRowClickCallback(row2,column.key)},[table]);return reactExports.useEffect(()=>{let items=data.map((row2,index)=>{const retVal={key:index};return listColumns.forEach((column,index2)=>{let val=row2[index2];column.__hpcc_pattern&&column.__hpcc_format?val=column.__hpcc_format(column.__hpcc_pattern(val)):column.__hpcc_pattern?val=column.__hpcc_pattern(val).toString():column.__hpcc_format&&(val=column.__hpcc_format(val)),retVal[column.key]=val}),retVal});sort!=null&&sort.attribute&&(items=copyAndSort(items,sort.attribute,sort.descending)),setRows(items)},[listColumns,data,sort]),jsxRuntimeExports.jsx(DataGrid$1,{columns:listColumns,headerRowHeight:24,rows,rowKeyGetter,rowHeight:20,renderers:{noRowsFallback:jsxRuntimeExports.jsx(EmptyRowsRenderer,{message:table.noDataMessage()})},className:table.darkMode()?"rdg-dark":"rdg-light",sortColumns:sortColumn?[sortColumn]:[],onSortColumnsChange,selectedRows,onSelectedRowsChange:multiSelect?onSelectedRowsChange:void 0,onCellClick:multiSelect?void 0:(args,event)=>onCellClick(args.row,args.column),"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})};class Table extends common.HTMLWidget{constructor(){super(),__publicField$1(this,"_div"),__publicField$1(this,"_root"),__publicField$1(this,"_component"),__publicField$1(this,"_prevRow"),__publicField$1(this,"_prevColumn")}columnType(column,type){return arguments.length===1?this.columnTypes()[column]:(this.columnTypes({...this.columnTypes(),[column]:type}),this)}columnPattern(column,pattern){return arguments.length===1?this.columnPatterns()[column]:(this.columnPatterns({...this.columnPatterns(),[column]:pattern}),this)}columnFormat(column,format2){return arguments.length===1?this.columnFormats()[column]:(this.columnFormats({...this.columnFormats(),[column]:format2}),this)}onRowClickCallback(row2,column){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(row2)&&this.click(this._prevRow,this._prevColumn??"",!1),row2&&this.click(row2,column,!0),this._prevRow=row2,this._prevColumn=column}enter(domNode,element){super.enter(domNode,element),this._div=element.append("div").style("display","grid"),this._root=clientExports.createRoot(this._div.node(),{identifierPrefix:this.id()}),this._component=reactExports.createElement(ReactTable,{table:this})}update(domNode,element){super.update(domNode,element),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),this._root.render(this._component)}exit(domNode,element){this._div.remove(),super.exit(domNode,element)}click(row2,col,sel){}}Table.prototype._class+=" dgrid2_Table",Table.prototype.publish("noDataMessage","...empty...","string","No Data Message"),Table.prototype.publish("darkMode",!1,"boolean","Dark Mode"),Table.prototype.publish("multiSelect",!1,"boolean","Multiple Selection"),Table.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"'),Table.prototype.publish("columnPatterns",{},"object","Column Patterns"),Table.prototype.publish("columnFormats",{},"object","Column Formats"),function(){try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{position:relative;overflow:hidden;pointer-events:all}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0px;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{display:block;width:100%}.layout_Accordion>.collapsible-title{font-size:13px;color:#fff;padding:4px 8px;height:26px;-webkit-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);-moz-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;left:0;top:0}.layout_Accordion>.collapsible-icon{position:absolute;top:0;right:0;width:24px;height:24px;color:#fff}.layout_Surface{box-sizing:border-box;margin:0;border:1px solid #e5e5e5;overflow:hidden;height:100%;width:100%}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{margin:0;padding:2px;background-color:#e5e5e5}.layout_Surface .html-button-container{position:absolute;right:0;top:3px}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px);font-size:100px}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{top:calc(50% - 72px);left:calc(50% - 45px);content:""}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;position:absolute;top:0;left:0;padding:0;z-index:1000;border-width:0px;border-style:solid;pointer-events:none}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{width:6px;height:6px;background-color:#444;opacity:.3;position:absolute;visibility:hidden}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border-radius:5px;border:1px solid #e5e5e5;display:inline-block;overflow:hidden}.layout_Border .cell h2{margin:0;padding-top:4px;-webkit-margin:0px;text-align:center}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{position:fixed;box-sizing:border-box;border:2px dashed #7f8c8d;border-radius:0;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Border .grid-drop-target.drop-target-over{border:2px dashed #179BD7;background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px,#119bd71a 12px)}.layout_Border2{display:flex;flex-direction:column}.layout_Border2>.body{margin:0;padding:0;display:flex;flex-flow:row}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header{display:block}.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow-y:scroll;overflow-x:hidden}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{position:fixed;background-color:#000;opacity:.5;z-index:10000}.layout_Modal-content{position:fixed;background-color:#fff;z-index:10100}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{overflow:hidden;border-style:solid;flex-grow:1}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{position:absolute;border-style:solid;border-width:1px;background:#f5f5f5}.layout_Grid>.lane{position:absolute;border-style:none;opacity:.25;border-radius:0;pointer-events:none}.layout_Grid>.ddCell.draggable{border-style:solid;border-width:1px;background-color:#f8f8ff;border-radius:0;cursor:move}.layout_Grid>.ddCell.draggable>.resizeHandle{bottom:0;right:0;width:8px;height:8px;border-style:none;position:absolute;cursor:nwse-resize}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{bottom:2px;right:2px;width:4px;height:4px;border-style:solid;border-left-width:0px;border-top-width:0px;border-right-width:2px;border-bottom-width:2px;border-color:#a9a9a9;background-color:none;position:absolute}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{border-style:solid;border-width:1px;border-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Grid>.resizing{border-style:solid;border-width:1px;border-color:gray;background-color:orange;border-radius:0;position:absolute;opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px,orange 8px)}.layout_Grid>.ddCell.draggable .common_Widget.selected{border-style:solid;border-width:1px;border-color:red;background-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px,#6400001a 8px)}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{position:relative;top:1px;display:inline-block;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;background-color:transparent;margin-right:4px;padding:2px 2px 4px;background-color:#ccc}.layout_Tabbed .tab-button.active{background-color:#fff;z-index:999}.layout_Tabbed .on_bottom .tab-button{border-bottom:1px solid #ddd;border-top:none;top:-1px}.layout_Toolbar{height:100%;background-color:#ddd;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-title{display:inline-block;position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);margin-left:4px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-child{position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);float:right;margin-left:4px;margin-right:4px;line-height:16px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();var __defProp2=Object.defineProperty,__defNormalProp2=(obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField2=(obj,key,value)=>__defNormalProp2(obj,typeof key!="symbol"?key+"":key,value);function _mergeNamespaces$1(n,m){for(var i=0;i<m.length;i++){const e=m[i];if(typeof e!="string"&&!Array.isArray(e)){for(const k2 in e)if(k2!=="default"&&!(k2 in n)){const d=Object.getOwnPropertyDescriptor(e,k2);d&&Object.defineProperty(n,k2,d.get?d:{enumerable:!0,get:()=>e[k2]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}class AbsoluteSurface extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);let xPos=0,yPos=0,width=this.clientWidth(),height=this.clientHeight();switch(this.units()){case"pixels":xPos=this.widgetX(),yPos=this.widgetY(),width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth()),height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight());break;case"percent":xPos=this.widgetX()*width/100,yPos=this.widgetY()*height/100,width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth())*width/100,height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight())*height/100;break}element.style("opacity",this.opacity());const widgets=element.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(d){return d._id});widgets.enter().append("div").attr("class","placeholder").each(function(d){d.target(this)}).merge(widgets).style("left",xPos+"px").style("top",yPos+"px").style("width",width+"px").style("bottom",height+"px").each(function(d){d.resize({width,height})}),widgets.exit().each(function(d){d.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}}AbsoluteSurface.prototype._class+=" layout_AbsoluteSurface",AbsoluteSurface.prototype.publish("units","percent","set","Units",["pixels","percent"]),AbsoluteSurface.prototype.publish("widgetX",0,"number","Widget XPos"),AbsoluteSurface.prototype.publish("widgetY",0,"number","Widget YPos"),AbsoluteSurface.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),AbsoluteSurface.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),AbsoluteSurface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),AbsoluteSurface.prototype.publish("opacity",1,"number","Opacity");class Accordion extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_isClosed"),__publicField2(this,"titleSpan"),__publicField2(this,"iconDiv"),__publicField2(this,"ul"),__publicField2(this,"icon"),this._tag="div",this._isClosed=!1}pushListItem(widget,prepend=!1,protect=!1){const contentArr=this.content();return widget._protected=protect,prepend?contentArr.unshift(widget):contentArr.push(widget),this.content(contentArr),this}clearListItems(){const arr=[];for(const i in this.content())this.content()[i]._protected&&arr.push(this.content()[i]);return this.content(arr),this}collapseClick(element){element.classed("closed")?(this._isClosed=!1,element.classed("open",!0),element.classed("closed",!1)):(this._isClosed=!0,element.classed("open",!1),element.classed("closed",!0))}enter(domNode,element){super.enter(domNode,element);const context=this;this._isClosed=this.defaultCollapsed(),element.classed(this._isClosed?"closed":"open",!0),this.titleSpan=element.append("span").classed("collapsible-title",!0),this.iconDiv=element.append("div").classed("collapsible-icon",!0),this.ul=element.append("ul"),this.icon=new common.FAChar().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){context.collapseClick(element),context.render()}),this.titleSpan.on("click",function(){context.collapseClick(element),context.render()})}update(domNode,element){super.update(domNode,element);const context=this,this_id="";this.titleSpan.text(context.title().length>0?context.title()+this_id:"Accordion ["+context._id+"]"+this_id);const rows=this.ul.selectAll("#"+context._id+" > ul > li").data(this.content(),function(d){return d._id});rows.enter().append(function(widget){const li=document.createElement("li");if(widget._target===null){const wSize=widget.size();if(wSize.width===0||wSize.height===0){const cSize=context.size();widget.size({width:cSize.width,height:cSize.width})}widget.target(li)}else return widget._target;return li}),rows.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(domNode,element){super.exit(domNode,element)}}Accordion.prototype._class+=" layout_Accordion",Accordion.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),Accordion.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),Accordion.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),Accordion.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),Accordion.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),Accordion.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),Accordion.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});class Surface extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),this._tag="div",this._surfaceButtons=[]}widgetSize(titleDiv,widgetDiv){let width=this.clientWidth(),height=this.clientHeight();return this.title()&&(height-=this.calcHeight(titleDiv)),height-=this.calcFrameHeight(widgetDiv),width-=this.calcFrameWidth(widgetDiv),{width,height}}enter(domNode,element){super.enter(domNode,element)}update(domNode,element2){super.update(domNode,element2);const context=this;element2.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());const titles=element2.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);titles.enter().insert("h3","div").attr("class","surfaceTitle").merge(titles).text(function(d){return d}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),titles.exit().remove();const surfaceButtons=element2.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());surfaceButtons.enter().append("button").classed("surface-button",!0).each(function(button,idx){const el=context._surfaceButtons[idx]=common.select(this).attr("class","surface-button"+(button.class?" "+button.class:"")).attr("id",button.id).style("padding",button.padding).style("width",button.width).style("height",button.height).style("cursor","pointer");button.font==="FontAwesome"?el.style("background","transparent").style("border","none").on("click",function(d){context.click(d)}).append("i").attr("class","fa").text(function(){return button.label}):el.text(function(){return button.label}).on("click",function(d){context.click(d)})}),surfaceButtons.exit().each(function(_d,idx){const element=common.select(this);delete context._surfaceButtons[idx],element.remove()});const widgets=element2.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(d){return d._id});widgets.enter().append("div").attr("class","surfaceWidget").each(function(d){common.select(context.element().node().parentElement).classed("content-icon content-icon-"+d.classID().split("_")[1],!0),d.target(this)}).merge(widgets).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(d){const widgetSize=context.widgetSize(element2.select("h3"),common.select(this));widgetSize.width<0&&(widgetSize.width=0),widgetSize.height<0&&(widgetSize.height=0),d.resize({width:widgetSize.width,height:widgetSize.height})}),widgets.exit().each(function(d){d.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Surface.prototype._class+=" layout_Surface",Surface.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Surface.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),Surface.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),Surface.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),Surface.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),Surface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});class Cell extends Surface{constructor(){super(),__publicField2(this,"_indicateTheseIds"),this._indicateTheseIds=[]}indicateTheseIds(_){return arguments.length?(this._indicateTheseIds=_,this):this._indicateTheseIds}enter(domNode,element){super.enter(domNode,element);const context=this;element.classed("layout_Surface",!0).on("mouseenter",function(){context.onMouseEnter()}).on("mouseleave",function(){context.onMouseLeave()})}update(domNode,element){super.update(domNode,element)}onMouseEnter(){const arr=this.indicateTheseIds(),opacity=this.indicatorOpacity(),indicatorBorderColor=this.indicatorBorderColor(),indicatorGlowColor=this.indicatorGlowColor();for(let i=0;i<arr.length;i++){const otherElement=common.select("#"+arr[i]),otherWidget=otherElement.datum();otherElement&&otherWidget&&otherElement.append("div").attr("class","update-indicator").style("width",otherWidget.width()+"px").style("height",otherWidget.height()+"px").style("opacity",opacity).style("border-color",indicatorBorderColor).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("-moz-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor)}}onMouseLeave(){const arr=this.indicateTheseIds();for(let i=0;i<arr.length;i++)common.selectAll("#"+arr[i]+" > div.update-indicator").remove()}}Cell.prototype._class+=" layout_Cell",Cell.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),Cell.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),Cell.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),Cell.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),Cell.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});class Border extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_colCount"),__publicField2(this,"_rowCount"),__publicField2(this,"_colSize"),__publicField2(this,"_rowSize"),__publicField2(this,"_shrinkWrapBoxes"),__publicField2(this,"_watch"),__publicField2(this,"_offsetX"),__publicField2(this,"_offsetY"),__publicField2(this,"_dragCell"),__publicField2(this,"_dragCellSize"),__publicField2(this,"_dragCellStartSize"),__publicField2(this,"_handleTop"),__publicField2(this,"_handleLeft"),__publicField2(this,"_dragPrevX"),__publicField2(this,"_dragPrevY"),__publicField2(this,"_cellSizes"),__publicField2(this,"contentDiv"),__publicField2(this,"_scrollBarWidth"),__publicField2(this,"_borderHandles"),__publicField2(this,"_sectionTypeArr"),__publicField2(this,"lazyPostUpdate",common.Utility.debounce(function(){this.postUpdate()},100)),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(widget){if(this._watch===void 0&&(this._watch={}),this._watch[widget.id()]&&(this._watch[widget.id()].remove(),delete this._watch[widget.id()]),widget){const context=this;this._watch[widget.id()]=widget.monitor(function(paramId,newVal,oldVal){oldVal!==newVal&&context.lazyPostUpdate()})}}applyLayoutType(){const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell2,i){cell2._fixedLeft=layoutObj[this.sectionTypes()[i]].left,cell2._fixedTop=layoutObj[this.sectionTypes()[i]].top,cell2._fixedWidth=layoutObj[this.sectionTypes()[i]].width,cell2._fixedHeight=layoutObj[this.sectionTypes()[i]].height,cell2._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[i])},this)}cellSpecificDragHandles(sectionType){switch(sectionType){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(layoutType){const retObj={},context=this;let topSize,topPerc,bottomSize,bottomPerc,leftSize,leftPerc,rightSize,rightPerc;const bcRect=this.target().getBoundingClientRect();bcRect.top,bcRect.left,bcRect.bottom,bcRect.right,this.target()instanceof SVGElement?(parseFloat(this.target().getAttribute("width")),parseFloat(this.target().getAttribute("height"))):(bcRect.width,bcRect.height),this.sectionTypes().indexOf("top")!==-1&&(topSize=this.topSize(),topPerc=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(topSize=this._shrinkWrapBoxes.top.height+this.gutter(),topPerc=0)),this.sectionTypes().indexOf("bottom")!==-1&&(bottomSize=this.bottomSize(),bottomPerc=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(bottomSize=this._shrinkWrapBoxes.bottom.height+this.gutter(),bottomPerc=0)),this.sectionTypes().indexOf("left")!==-1&&(leftSize=this.leftSize(),leftPerc=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(leftSize=this._shrinkWrapBoxes.left.width+this.gutter(),leftPerc=0)),this.sectionTypes().indexOf("right")!==-1&&(rightSize=this.rightSize(),rightPerc=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(rightSize=this._shrinkWrapBoxes.right.width+this.gutter(),rightPerc=0));const t=_sectionPlacementObject({width:{px:0,"%":100},height:{px:topSize,"%":topPerc},top:{px:0,"%":0},left:{px:0,"%":0}}),b=_sectionPlacementObject({width:{px:0,"%":100},height:{px:bottomSize,"%":bottomPerc},top:{px:0,"%":100},left:{px:0,"%":0}});b.top-=b.height;const l=_sectionPlacementObject({width:{px:leftSize,"%":leftPerc},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:0,"%":0}}),r2=_sectionPlacementObject({width:{px:rightSize,"%":rightPerc},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:0,"%":100}});r2.left-=r2.width;const c2=_sectionPlacementObject({width:{px:-r2.width-l.width,"%":100},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:l.width,"%":0}});return retObj.top=t,retObj.bottom=b,retObj.right=r2,retObj.left=l,retObj.center=c2,retObj;function _sectionPlacementObject(obj){return obj.width.px=typeof obj.width.px<"u"?obj.width.px:0,obj.width["%"]=typeof obj.width["%"]<"u"?obj.width["%"]:0,obj.height.px=typeof obj.height.px<"u"?obj.height.px:0,obj.height["%"]=typeof obj.height["%"]<"u"?obj.height["%"]:0,{width:obj.width.px+obj.width["%"]/100*context.width(),height:obj.height.px+obj.height["%"]/100*context.height(),top:obj.top.px+obj.top["%"]/100*context.height()+context.gutter()/2,left:obj.left.px+obj.left["%"]/100*context.width()+context.gutter()/2}}}clearContent(sectionType){if(!sectionType)this.content().forEach(function(contentWidget){return contentWidget.target(null),!1}),common.select("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{const idx=this.sectionTypes().indexOf(sectionType);idx>=0&&(this._watch&&this.content()[idx]&&delete this._watch[this.content()[idx].id()],this.content()[idx].target(null),common.select("#"+this.id()+" > div.borderHandle_"+sectionType).classed("borderHandleDisabled",!0),this.content().splice(idx,1),this.sectionTypes().splice(idx,1))}}hasContent(sectionType,widget,title){return this.sectionTypes().indexOf(sectionType)>=0}setContent(sectionType,widget,title){if(this.clearContent(sectionType),title=typeof title<"u"?title:"",widget){const cell2=new Cell().surfaceBorderWidth(0).widget(widget).title(title);this.watchWidget(widget),this.content().push(cell2),this.sectionTypes().push(sectionType)}return this}getCell(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx]:null}getContent(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(handle){const event=common.d3Event();event.sourceEvent.stopPropagation();const context=this;this._dragCell=handle,this._dragCellStartSize=this[handle+"Size"](),this[handle+"ShrinkWrap"]()&&(this[handle+"Percentage"](0),this[handle+"ShrinkWrap"](!1));const handleElm=common.select("#"+context.id()+" > div.borderHandle_"+handle);context._handleTop=parseFloat(handleElm.style("top").split("px")[0]),context._handleLeft=parseFloat(handleElm.style("left").split("px")[0]),this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}dragTick(handle){const context=this,event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":case"bottom":_moveHandles(handle,yDelta);break;case"right":case"left":_moveHandles(handle,xDelta);break}function _moveHandles(handle2,delta){if(delta===0)return;const handles=common.selectAll("#"+context.id()+" > div.borderHandle"),grabbedHandle=common.select("#"+context.id()+" > div.borderHandle_"+handle2);grabbedHandle.classed("borderHandle_top")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.topHeight=context._handleTop-delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_right")?(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.rightWidth=context._cellSizes.width-context._handleLeft+delta):grabbedHandle.classed("borderHandle_bottom")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.bottomHeight=context._cellSizes.height-context._handleTop+delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_left")&&(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.leftWidth=context._handleLeft-delta),handles.each(function(){const handle3=common.select(this);handle3.classed("borderHandle_top")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.topHeight-3+"px")):handle3.classed("borderHandle_right")?(handle3.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"),handle3.style("height",context._cellSizes.rightHeight+"px")):handle3.classed("borderHandle_bottom")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle3.classed("borderHandle_left")&&(handle3.style("left",context._cellSizes.leftWidth+"px"),handle3.style("height",context._cellSizes.leftHeight+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"))})}}dragEnd(handle){if(handle){const event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":yDelta!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-yDelta:this.topSize()-yDelta));break;case"right":xDelta!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+xDelta:this.rightSize()+xDelta));break;case"bottom":yDelta!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+yDelta:this.bottomSize()+yDelta));break;case"left":xDelta!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-xDelta:this.leftSize()-xDelta));break}this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}this.render()}size(_){const retVal=common.HTMLWidget.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),retVal}enter(domNode,element){super.enter(domNode,element);const context=this;element.style("position","relative"),this.contentDiv=element.append("div").classed("border-content",!0),this._scrollBarWidth=common.Platform.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],element.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(handle){common.select(this).classed("borderHandle_"+handle,!0).classed("borderHandleDisabled",context.getContent(handle)===null)})}update(domNode,element){super.update(domNode,element),this._sectionTypeArr=this.sectionTypes();const context=this;element.classed("design-mode",this.designMode()),this.setLayoutOffsets();const rows=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(d){return d._id}),rowsUpdate=rows.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(d,i){common.select(this).classed("border-cell border-cell-"+context._sectionTypeArr[i],!0),d.target(this),common.select("#"+context.id()+" > div.borderHandle_"+context._sectionTypeArr[i]).classed("borderHandleDisabled",!1)}).merge(rows);rowsUpdate.each(function(d,idx){const sectionType=context.sectionTypes()[idx];typeof context[sectionType+"ShrinkWrap"]<"u"&&context[sectionType+"ShrinkWrap"]()?(d.render(),context._shrinkWrapBoxes[sectionType]=d.widget().getBBox(!0)):delete context._shrinkWrapBoxes[sectionType]});const drag$1=common.drag().on("start",function(d,i){context.dragStart.call(context,d,i)}).on("drag",function(d,i){context.dragTick.call(context,d,i)}).on("end",function(d,i){context.dragEnd.call(context,d,i)});this.designMode()?element.selectAll("#"+this.id()+" > div.borderHandle").call(drag$1):element.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell2,i){cell2._fixedLeft=layoutObj[this.sectionTypes()[i]].left,cell2._fixedTop=layoutObj[this.sectionTypes()[i]].top,cell2._fixedWidth=layoutObj[this.sectionTypes()[i]].width,cell2._fixedHeight=layoutObj[this.sectionTypes()[i]].height,cell2._dragHandles=[]},this),rowsUpdate.style("left",function(d){return d._fixedLeft+"px"}).style("top",function(d){return d._fixedTop+"px"}).style("width",function(d){return d._fixedWidth-context.gutter()+"px"}).style("height",function(d){return d._fixedHeight-context.gutter()+"px"}).each(function(d){d._placeholderElement.attr("draggable",context.designMode()).selectAll(".dragHandle").attr("draggable",context.designMode()),d.surfacePadding(context.surfacePadding()).resize()}),rows.exit().each(function(d){d.target(null)}).remove(),this.getCellSizes(),element.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const handle=common.select(this);handle.classed("borderHandle_top")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.topHeight-3+"px")):handle.classed("borderHandle_right")?(handle.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"),handle.style("height",context._cellSizes.rightHeight+"px")):handle.classed("borderHandle_bottom")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle.classed("borderHandle_left")&&(handle.style("left",context._cellSizes.leftWidth+"px"),handle.style("height",context._cellSizes.leftHeight+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"))})}getCellSizes(){const context=this;context._cellSizes={};const contentRect=this.element().node().getBoundingClientRect();context._cellSizes.width=contentRect.width,context._cellSizes.height=contentRect.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const cell2=common.select(this);if(typeof cell2.node=="function"){const rect=cell2.node().getBoundingClientRect();cell2.classed("border-cell-top")?context._cellSizes.topHeight=rect.height:cell2.classed("border-cell-left")?(context._cellSizes.leftWidth=rect.width,context._cellSizes.leftHeight=rect.height):cell2.classed("border-cell-right")?(context._cellSizes.rightWidth=rect.width,context._cellSizes.rightHeight=rect.height):cell2.classed("border-cell-bottom")&&(context._cellSizes.bottomHeight=rect.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(size){context._cellSizes[size]=context._cellSizes[size]===void 0?0:context._cellSizes[size]})}postUpdate(domNode,element){const context=this;this.content().forEach(function(n){if(n._element.node()!==null&&n.widget()){const prevBox=n.widget().getBBox(!1,!0),currBox=n.widget().getBBox(!0,!0);(prevBox.width!==currBox.width||prevBox.height!==currBox.height)&&context.lazyRender()}})}exit(domNode,element){this.content().forEach(w=>w.target(null)),super.exit(domNode,element)}}Border.prototype._class+=" layout_Border",Border.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Border.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),Border.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),Border.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),Border.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),Border.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),Border.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),Border.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),Border.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});class WidgetDiv{constructor(div){__publicField2(this,"_div"),__publicField2(this,"_overlay",!1),__publicField2(this,"_overflowX","visible"),__publicField2(this,"_overflowY","visible"),__publicField2(this,"_widget"),this._div=div}overlay(_){return arguments.length?(this._overlay=_,this):this._overlay}overflowX(_){return arguments.length?(this._overflowX=_,this._div.style("overflow-x",_),this):this._overflowX}overflowY(_){return arguments.length?(this._overflowY=_,this._div.style("overflow-y",_),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(_){return arguments.length?(this._widget!==_&&(this._widget&&this._widget.target(null),this._widget=_,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(size){return this._widget&&(this._div.style("width",`${size.width}px`).style("height",`${size.height}px`),this._widget.resize(size)),this}async render(getBBox,availableHeight,availableWidth){let overflowX=this.overflowX();!this.overlay()&&overflowX==="visible"&&(overflowX=null);let overflowY=this.overflowY();return!this.overlay()&&overflowY==="visible"&&(overflowY=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",overflowX).style("overflow-y",overflowY),this._widget?this._widget.renderPromise().then(w=>{if(getBBox&&this._widget.visible()){const retVal=this._widget.getBBox();return retVal.width+=8,availableHeight!==void 0&&retVal.height>availableHeight&&(retVal.width+=common.Platform.getScrollbarWidth()),availableWidth!==void 0&&retVal.width>availableWidth&&(retVal.height+=common.Platform.getScrollbarWidth()),this.overlay()?retVal.height=0:retVal.height+=4,retVal}return getBBox?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(getBBox?{x:0,y:0,width:0,height:0}:void 0)}}class Border2 extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_bodyElement"),__publicField2(this,"_topWA"),__publicField2(this,"_leftWA"),__publicField2(this,"_centerWA"),__publicField2(this,"_rightWA"),__publicField2(this,"_bottomWA"),__publicField2(this,"_topPrevOverflow"),__publicField2(this,"_leftPrevOverflow"),__publicField2(this,"_rightPrevOverflow"),__publicField2(this,"_bottomPrevOverflow"),this._tag="div"}enter(domNode,element){super.enter(domNode,element);const topElement=element.append("header");this._bodyElement=element.append("div").attr("class","body");const centerElement=this._bodyElement.append("div").attr("class","center"),leftElement=this._bodyElement.append("div").attr("class","lhs"),rightElement=this._bodyElement.append("div").attr("class","rhs"),bottomElement=element.append("div").attr("class","footer");this._topWA=new WidgetDiv(topElement),this._centerWA=new WidgetDiv(centerElement),this._leftWA=new WidgetDiv(leftElement),this._rightWA=new WidgetDiv(rightElement),this._bottomWA=new WidgetDiv(bottomElement)}update(domNode,element){super.update(domNode,element),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(w){w&&w.target(null)}exit(domNode,element){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(domNode,element)}swap(sectionA,sectionB){const a2=this[sectionA](),b=this[sectionB]();return this.targetNull(a2),this.targetNull(b),this[`_${sectionA}WA`].widget(null),this[`_${sectionB}WA`].widget(null),this[sectionA](b),this[sectionB](a2),this}render(callback){return super.render(w=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async topBBox=>{const bottomBBox=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),availableHeight=this.height()-(topBBox.height+bottomBBox.height),leftBBox=await this._leftWA.widget(this.left()).render(!0,availableHeight),rightBBox=await this._rightWA.widget(this.right()).render(!0,availableHeight);this.bottomHeight_exists()&&(bottomBBox.height=this.bottomHeight());const bodyWidth=this.width()-(leftBBox.width+rightBBox.width),bodyHeight=this.height()-(topBBox.height+bottomBBox.height),centerOverflowX=this.centerOverflowX(),centerOverflowY=this.centerOverflowY(),scrollCenterX=["auto","scroll"].indexOf(centerOverflowX)!==-1,scrollCenterY=["auto","scroll"].indexOf(centerOverflowY)!==-1;(scrollCenterX||scrollCenterY)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bodyElement.style("height",`${bodyHeight}px`);const promises=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:topBBox.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:leftBBox.width,height:bodyHeight}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:rightBBox.width,height:bodyHeight}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:bottomBBox.height}).render()];Promise.all(promises).then(promises2=>{callback&&callback(this)})}):callback&&callback(this)})}}Border2.prototype._class+=" layout_Border2",Border2.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),Border2.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),Border2.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),Border2.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),Border2.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),Border2.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),Border2.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),Border2.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),Border2.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),Border2.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),Border2.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});class Carousel extends common.HTMLWidget{constructor(){super(...arguments),__publicField2(this,"_prevActive",0),__publicField2(this,"_root")}activeWidget(){return this.widgets()[this.active()]}enter(domNode,element){super.enter(domNode,element),this._root=element.append("div").attr("id",`${this.id()}_root`)}update(domNode,element){super.update(domNode,element);const active=this.active(),width=this.width();this._root.style("width",`${width}px`).style("height",`${this.height()}px`);const widgetElements=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),d=>d.id()),update=widgetElements.enter().append("div").attr("class","carouselItem").each(function(w){w.target(this)}).merge(widgetElements).style("left",(d,i)=>`${(i-this._prevActive)*width}px`).style("width",`${width}px`);this._prevActive!==active&&(update.style("display",(d,i)=>i===this._prevActive||i===active?null:"none").transition().duration(this.transitionDuration()).style("left",(d,i)=>`${(i-active)*width}px`).on("end",function(d,i){common.select(this).style("display",()=>i===active?null:"none")}),this._prevActive=active),widgetElements.exit().each(function(w){w.target(null)}).remove()}exit(domNode,element){this.widgets().forEach(w=>w.target(null)),super.exit(domNode,element)}render(callback){return super.render(w=>{if(!this.visible()||this.isDOMHidden())callback&&callback(w);else{const aw=this.activeWidget();aw&&aw.resize(this.size()).render(w2=>{callback&&callback(w)})}})}}Carousel.prototype._class+=" layout_Carousel",Carousel.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),Carousel.prototype.publish("active",0,"number","Active widget"),Carousel.prototype.publish("transitionDuration",500,"number","Transition duration");var pi$1=Math.PI,tau$1=2*pi$1,epsilon=1e-6,tauEpsilon=tau$1-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(x,y){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+y)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,y){this._+="L"+(this._x1=+x)+","+(this._y1=+y)},quadraticCurveTo:function(x1,y1,x,y){this._+="Q"+ +x1+","+ +y1+","+(this._x1=+x)+","+(this._y1=+y)},bezierCurveTo:function(x1,y1,x2,y2,x,y){this._+="C"+ +x1+","+ +y1+","+ +x2+","+ +y2+","+(this._x1=+x)+","+(this._y1=+y)},arcTo:function(x1,y1,x2,y2,r2){x1=+x1,y1=+y1,x2=+x2,y2=+y2,r2=+r2;var x0=this._x1,y0=this._y1,x21=x2-x1,y21=y2-y1,x01=x0-x1,y01=y0-y1,l01_2=x01*x01+y01*y01;if(r2<0)throw new Error("negative radius: "+r2);if(this._x1===null)this._+="M"+(this._x1=x1)+","+(this._y1=y1);else if(l01_2>epsilon)if(!(Math.abs(y01*x21-y21*x01)>epsilon)||!r2)this._+="L"+(this._x1=x1)+","+(this._y1=y1);else{var x20=x2-x0,y20=y2-y0,l21_2=x21*x21+y21*y21,l20_2=x20*x20+y20*y20,l21=Math.sqrt(l21_2),l01=Math.sqrt(l01_2),l=r2*Math.tan((pi$1-Math.acos((l21_2+l01_2-l20_2)/(2*l21*l01)))/2),t01=l/l01,t21=l/l21;Math.abs(t01-1)>epsilon&&(this._+="L"+(x1+t01*x01)+","+(y1+t01*y01)),this._+="A"+r2+","+r2+",0,0,"+ +(y01*x20>x01*y20)+","+(this._x1=x1+t21*x21)+","+(this._y1=y1+t21*y21)}},arc:function(x,y,r2,a0,a1,ccw){x=+x,y=+y,r2=+r2,ccw=!!ccw;var dx=r2*Math.cos(a0),dy=r2*Math.sin(a0),x0=x+dx,y0=y+dy,cw=1^ccw,da=ccw?a0-a1:a1-a0;if(r2<0)throw new Error("negative radius: "+r2);this._x1===null?this._+="M"+x0+","+y0:(Math.abs(this._x1-x0)>epsilon||Math.abs(this._y1-y0)>epsilon)&&(this._+="L"+x0+","+y0),r2&&(da<0&&(da=da%tau$1+tau$1),da>tauEpsilon?this._+="A"+r2+","+r2+",0,1,"+cw+","+(x-dx)+","+(y-dy)+"A"+r2+","+r2+",0,1,"+cw+","+(this._x1=x0)+","+(this._y1=y0):da>epsilon&&(this._+="A"+r2+","+r2+",0,"+ +(da>=pi$1)+","+cw+","+(this._x1=x+r2*Math.cos(a1))+","+(this._y1=y+r2*Math.sin(a1))))},rect:function(x,y,w,h){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+y)+"h"+ +w+"v"+ +h+"h"+-w+"Z"},toString:function(){return this._}};function constant(x){return function(){return x}}var pi=Math.PI,tau=2*pi;const d3SymbolCircle={draw:function(context,size){var r2=Math.sqrt(size/pi);context.moveTo(r2,0),context.arc(0,0,r2,0,tau)}},d3SymbolCross={draw:function(context,size){var r2=Math.sqrt(size/5)/2;context.moveTo(-3*r2,-r2),context.lineTo(-r2,-r2),context.lineTo(-r2,-3*r2),context.lineTo(r2,-3*r2),context.lineTo(r2,-r2),context.lineTo(3*r2,-r2),context.lineTo(3*r2,r2),context.lineTo(r2,r2),context.lineTo(r2,3*r2),context.lineTo(-r2,3*r2),context.lineTo(-r2,r2),context.lineTo(-3*r2,r2),context.closePath()}};var tan30=Math.sqrt(1/3),tan30_2=tan30*2;const d3SymbolDiamond={draw:function(context,size){var y=Math.sqrt(size/tan30_2),x=y*tan30;context.moveTo(0,-y),context.lineTo(x,0),context.lineTo(0,y),context.lineTo(-x,0),context.closePath()}};var ka=.8908130915292852,kr=Math.sin(pi/10)/Math.sin(7*pi/10),kx=Math.sin(tau/10)*kr,ky=-Math.cos(tau/10)*kr;const d3SymbolStar={draw:function(context,size){var r2=Math.sqrt(size*ka),x=kx*r2,y=ky*r2;context.moveTo(0,-r2),context.lineTo(x,y);for(var i=1;i<5;++i){var a2=tau*i/5,c2=Math.cos(a2),s2=Math.sin(a2);context.lineTo(s2*r2,-c2*r2),context.lineTo(c2*x-s2*y,s2*x+c2*y)}context.closePath()}},d3SymbolSquare={draw:function(context,size){var w=Math.sqrt(size),x=-w/2;context.rect(x,x,w,w)}};var sqrt3=Math.sqrt(3);const d3SymbolTriangle={draw:function(context,size){var y=-Math.sqrt(size/(sqrt3*3));context.moveTo(0,y*2),context.lineTo(-sqrt3*y,-y),context.lineTo(sqrt3*y,-y),context.closePath()}};var c=-.5,s=Math.sqrt(3)/2,k=1/Math.sqrt(12),a=(k/2+1)*3;const d3SymbolWye={draw:function(context,size){var r2=Math.sqrt(size/a),x0=r2/2,y0=r2*k,x1=x0,y1=r2*k+r2,x2=-x1,y2=y1;context.moveTo(x0,y0),context.lineTo(x1,y1),context.lineTo(x2,y2),context.lineTo(c*x0-s*y0,s*x0+c*y0),context.lineTo(c*x1-s*y1,s*x1+c*y1),context.lineTo(c*x2-s*y2,s*x2+c*y2),context.lineTo(c*x0+s*y0,c*y0-s*x0),context.lineTo(c*x1+s*y1,c*y1-s*x1),context.lineTo(c*x2+s*y2,c*y2-s*x2),context.closePath()}};function d3Symbol(){var type=constant(d3SymbolCircle),size=constant(64),context=null;function symbol(){var buffer;if(context||(context=buffer=path()),type.apply(this,arguments).draw(context,+size.apply(this,arguments)),buffer)return context=null,buffer+""||null}return symbol.type=function(_){return arguments.length?(type=typeof _=="function"?_:constant(_),symbol):type},symbol.size=function(_){return arguments.length?(size=typeof _=="function"?_:constant(+_),symbol):size},symbol.context=function(_){return arguments.length?(context=_??null,symbol):context},symbol}var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol=="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},d3_identity=function(d){return d},d3_reverse=function(arr){for(var mirror=[],i=0,l=arr.length;i<l;i++)mirror[i]=arr[l-i-1];return mirror},d3_textWrapping=function(text,width){text.each(function(){var text2=common.select(this),words=text2.text().split(/\s+/).reverse(),word,line=[],lineHeight=1.2;text2.attr("y");for(var dy=parseFloat(text2.attr("dy"))||0,tspan=text2.text(null).append("tspan").attr("x",0).attr("dy",dy+"em");word=words.pop();)line.push(word),tspan.text(line.join(" ")),tspan.node().getComputedTextLength()>width&&line.length>1&&(line.pop(),tspan.text(line.join(" ")),line=[word],tspan=text2.append("tspan").attr("x",0).attr("dy",lineHeight+dy+"em").text(word))})},d3_mergeLabels=function(){var gen=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],labels=arguments[1],domain=arguments[2],range=arguments[3],labelDelimiter=arguments[4];if((typeof labels>"u"?"undefined":_typeof(labels))==="object"){if(labels.length===0)return gen;for(var i=labels.length;i<gen.length;i++)labels.push(gen[i]);return labels}else if(typeof labels=="function"){for(var customLabels=[],genLength=gen.length,_i=0;_i<genLength;_i++)customLabels.push(labels({i:_i,genLength,generatedLabels:gen,domain,range,labelDelimiter}));return customLabels}return gen},d3_linearLegend=function(scale,cells,labelFormat){var data=[];if(cells.length>1)data=cells;else for(var domain=scale.domain(),increment=(domain[domain.length-1]-domain[0])/(cells-1),i=0;i<cells;i++)data.push(domain[0]+i*increment);var labels=data.map(labelFormat);return{data,labels,feature:function(d){return scale(d)}}},d3_quantLegend=function(scale,labelFormat,labelDelimiter){var labels=scale.range().map(function(d){var invert=scale.invertExtent(d);return labelFormat(invert[0])+" "+labelDelimiter+" "+labelFormat(invert[1])});return{data:scale.range(),labels,feature:d3_identity}},d3_ordinalLegend=function(scale){return{data:scale.domain(),labels:scale.domain(),feature:function(d){return scale(d)}}},d3_cellOver=function(cellDispatcher,d,obj){cellDispatcher.call("cellover",obj,d)},d3_cellOut=function(cellDispatcher,d,obj){cellDispatcher.call("cellout",obj,d)},d3_cellClick=function(cellDispatcher,d,obj){cellDispatcher.call("cellclick",obj,d)},helper={d3_drawShapes:function(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2){shape==="rect"?shapes.attr("height",shapeHeight).attr("width",shapeWidth):shape==="circle"?shapes.attr("r",shapeRadius):shape==="line"?shapes.attr("x1",0).attr("x2",shapeWidth).attr("y1",0).attr("y2",0):shape==="path"&&shapes.attr("d",path2)},d3_addText:function(svg,enter,labels,classPrefix,labelWidth){enter.append("text").attr("class",classPrefix+"label");var text=svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").data(labels).text(d3_identity);return labelWidth&&svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").call(d3_textWrapping,labelWidth),text},d3_calcType:function(scale,ascending,cells,labels,labelFormat,labelDelimiter){var type=scale.invertExtent?d3_quantLegend(scale,labelFormat,labelDelimiter):scale.ticks?d3_linearLegend(scale,cells,labelFormat):d3_ordinalLegend(scale),range=scale.range&&scale.range()||scale.domain();return type.labels=d3_mergeLabels(type.labels,labels,scale.domain(),range,labelDelimiter),ascending&&(type.labels=d3_reverse(type.labels),type.data=d3_reverse(type.data)),type},d3_filterCells:function(type,cellFilter){var filterCells=type.data.map(function(d,i){return{data:d,label:type.labels[i]}}).filter(cellFilter),dataValues=filterCells.map(function(d){return d.data}),labelValues=filterCells.map(function(d){return d.label});return type.data=type.data.filter(function(d){return dataValues.indexOf(d)!==-1}),type.labels=type.labels.filter(function(d){return labelValues.indexOf(d)!==-1}),type},d3_placement:function(orient,cell2,cellTrans,text,textTrans,labelAlign){cell2.attr("transform",cellTrans),text.attr("transform",textTrans),orient==="horizontal"&&text.style("text-anchor",labelAlign)},d3_addEvents:function(cells,dispatcher){cells.on("mouseover.legend",function(d){d3_cellOver(dispatcher,d,this)}).on("mouseout.legend",function(d){d3_cellOut(dispatcher,d,this)}).on("click.legend",function(d){d3_cellClick(dispatcher,d,this)})},d3_title:function(svg,title,classPrefix,titleWidth){if(title!==""){var titleText=svg.selectAll("text."+classPrefix+"legendTitle");titleText.data([title]).enter().append("text").attr("class",classPrefix+"legendTitle"),svg.selectAll("text."+classPrefix+"legendTitle").text(title),titleWidth&&svg.selectAll("text."+classPrefix+"legendTitle").call(d3_textWrapping,titleWidth);var cellsSvg=svg.select("."+classPrefix+"legendCells"),yOffset=svg.select("."+classPrefix+"legendTitle").nodes().map(function(d){return d.getBBox().height})[0],xOffset=-cellsSvg.nodes().map(function(d){return d.getBBox().x})[0];cellsSvg.attr("transform","translate("+xOffset+","+yOffset+")")}},d3_defaultLocale:{format:common.format,formatPrefix:common.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function color(){var scale=common.scaleLinear(),shape="rect",shapeWidth=15,shapeHeight=15,shapeRadius=10,shapePadding=2,cells=[5],cellFilter=void 0,labels=[],classPrefix="",useClass=!1,title="",locale=helper.d3_defaultLocale,specifier=helper.d3_defaultFormatSpecifier,labelOffset=10,labelAlign="middle",labelDelimiter=helper.d3_defaultDelimiter,labelWrap=void 0,orient="vertical",ascending=!1,path2=void 0,titleWidth=void 0,legendDispatcher=common.dispatch("cellover","cellout","cellclick");function legend(svg){var type=helper.d3_calcType(scale,ascending,cells,labels,locale.format(specifier),labelDelimiter),legendG=svg.selectAll("g").data([scale]);legendG.enter().append("g").attr("class",classPrefix+"legendCells"),cellFilter&&helper.d3_filterCells(type,cellFilter);var cell2=svg.select("."+classPrefix+"legendCells").selectAll("."+classPrefix+"cell").data(type.data),cellEnter=cell2.enter().append("g").attr("class",classPrefix+"cell");cellEnter.append(shape).attr("class",classPrefix+"swatch");var shapes=svg.selectAll("g."+classPrefix+"cell "+shape+"."+classPrefix+"swatch").data(type.data);helper.d3_addEvents(cellEnter,legendDispatcher),cell2.exit().transition().style("opacity",0).remove(),shapes.exit().transition().style("opacity",0).remove(),shapes=shapes.merge(shapes),helper.d3_drawShapes(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2);var text=helper.d3_addText(svg,cellEnter,type.labels,classPrefix,labelWrap);cell2=cellEnter.merge(cell2);var textSize=text.nodes().map(function(d){return d.getBBox()}),shapeSize=shapes.nodes().map(function(d){return d.getBBox()});useClass?shapes.attr("class",function(d){return classPrefix+"swatch "+type.feature(d)}):shape=="line"?shapes.style("stroke",type.feature):shapes.style("fill",type.feature);var cellTrans=void 0,textTrans=void 0,textAlign=labelAlign=="start"?0:labelAlign=="middle"?.5:1;orient==="vertical"?function(){var cellSize=textSize.map(function(d,i){return Math.max(d.height,shapeSize[i].height)});cellTrans=function(d,i){var height=common.sum(cellSize.slice(0,i));return"translate(0, "+(height+i*shapePadding)+")"},textTrans=function(d,i){return"translate( "+(shapeSize[i].width+shapeSize[i].x+labelOffset)+", "+(shapeSize[i].y+shapeSize[i].height/2+5)+")"}}():orient==="horizontal"&&(cellTrans=function(d,i){return"translate("+i*(shapeSize[i].width+shapePadding)+",0)"},textTrans=function(d,i){return"translate("+(shapeSize[i].width*textAlign+shapeSize[i].x)+`,
243
- `+(shapeSize[i].height+shapeSize[i].y+labelOffset+8)+")"}),helper.d3_placement(orient,cell2,cellTrans,text,textTrans,labelAlign),helper.d3_title(svg,title,classPrefix,titleWidth),cell2.transition().style("opacity",1)}return legend.scale=function(_){return arguments.length?(scale=_,legend):scale},legend.cells=function(_){return arguments.length?((_.length>1||_>=2)&&(cells=_),legend):cells},legend.cellFilter=function(_){return arguments.length?(cellFilter=_,legend):cellFilter},legend.shape=function(_,d){return arguments.length?((_=="rect"||_=="circle"||_=="line"||_=="path"&&typeof d=="string")&&(shape=_,path2=d),legend):shape},legend.shapeWidth=function(_){return arguments.length?(shapeWidth=+_,legend):shapeWidth},legend.shapeHeight=function(_){return arguments.length?(shapeHeight=+_,legend):shapeHeight},legend.shapeRadius=function(_){return arguments.length?(shapeRadius=+_,legend):shapeRadius},legend.shapePadding=function(_){return arguments.length?(shapePadding=+_,legend):shapePadding},legend.labels=function(_){return arguments.length?(labels=_,legend):labels},legend.labelAlign=function(_){return arguments.length?((_=="start"||_=="end"||_=="middle")&&(labelAlign=_),legend):labelAlign},legend.locale=function(_){return arguments.length?(locale=common.formatLocale(_),legend):locale},legend.labelFormat=function(_){return arguments.length?(specifier=common.formatSpecifier(_),legend):legend.locale().format(specifier)},legend.labelOffset=function(_){return arguments.length?(labelOffset=+_,legend):labelOffset},legend.labelDelimiter=function(_){return arguments.length?(labelDelimiter=_,legend):labelDelimiter},legend.labelWrap=function(_){return arguments.length?(labelWrap=_,legend):labelWrap},legend.useClass=function(_){return arguments.length?((_===!0||_===!1)&&(useClass=_),legend):useClass},legend.orient=function(_){return arguments.length?(_=_.toLowerCase(),(_=="horizontal"||_=="vertical")&&(orient=_),legend):orient},legend.ascending=function(_){return arguments.length?(ascending=!!_,legend):ascending},legend.classPrefix=function(_){return arguments.length?(classPrefix=_,legend):classPrefix},legend.title=function(_){return arguments.length?(title=_,legend):title},legend.titleWidth=function(_){return arguments.length?(titleWidth=_,legend):titleWidth},legend.textWrap=function(_){return arguments.length?(textWrap=_,legend):textWrap},legend.on=function(){var value=legendDispatcher.on.apply(legendDispatcher,arguments);return value===legendDispatcher?legend:value},legend}class Legend extends common.SVGWidget{constructor(owner){super(),__publicField2(this,"_owner"),__publicField2(this,"_targetWidget"),__publicField2(this,"_targetWidgetMonitor"),__publicField2(this,"_legendOrdinal"),__publicField2(this,"_disabled",[]),__publicField2(this,"_symbolTypeMap",{circle:d3SymbolCircle,cross:d3SymbolCross,diamond:d3SymbolDiamond,square:d3SymbolSquare,star:d3SymbolStar,triangle:d3SymbolTriangle,wye:d3SymbolWye}),__publicField2(this,"_g"),__publicField2(this,"_containerSize"),this._owner=owner,this._drawStartPos="origin";const context=this;this._legendOrdinal=color().shape("path",d3Symbol().type(d3SymbolCircle).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(d){context.onClick(d,this)}).on("cellover",d=>{context.onOver(d,this)}).on("cellout",d=>{context.onOut(d,this)})}isDisabled(d){return typeof d>"u"?!1:typeof d=="string"?d.indexOf("__")===0||this._disabled.indexOf(d)>=0:d instanceof common.Database.Field?d.id().indexOf("__")===0||this._disabled.indexOf(d.id())>=0:this._disabled.indexOf(d)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(d=>!this.isDisabled(d))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(d=>!this.isDisabled(d))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(row2=>!this.isDisabled(row2[0]));case"ND":const disabledCols={};let anyDisabled=!1;return this.columns().forEach((col,idx)=>{const disabled=this.isDisabled(col);disabledCols[idx]=disabled,disabled&&(anyDisabled=!0)}),anyDisabled?this.data().map(row2=>row2.filter((cell2,idx)=>!disabledCols[idx])):this.data()}return this.data()}isRainbow(){const widget=this.getWidget();return widget&&widget._palette&&widget._palette.type()==="rainbow"}targetWidget(_){if(!arguments.length)return this._targetWidget;if(this._targetWidget=_,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){const context=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(key,newProp,oldProp,source){switch(key){case"chart":case"columns":case"data":case"paletteID":context.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){const widget=this.getWidget();if(widget&&widget._palette)switch(widget._palette.type()){case"ordinal":return common.Palette.ordinal(widget._palette.id());case"rainbow":return common.Palette.rainbow(widget._palette.id())}return common.Palette.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){const widget=this.getWidget();if(widget&&widget.fillColor)return widget._palette&&widget.paletteID&&widget._palette.name!==widget.paletteID()&&(widget._palette=widget._palette.switch(widget.paletteID())),(row2,col,sel)=>widget.fillColor(row2,col,sel);const palette=common.Palette.ordinal(widget&&widget.paletteID&&widget.paletteID()||"default");return(row2,col,sel)=>palette(col)}fillColor(row2,col,sel){return this.fillColorFunc()(row2,col,sel)}enter(domNode,element){super.enter(domNode,element),this._g=element.append("g").attr("class","legendOrdinal")}calcMetaData(){let dataArr=[],total=0,maxLabelWidth=0;const colLength=this.columns().length;if(this._targetWidget){const columns=this.columns();switch(this.getPaletteType()){case"ordinal":const fillColor=this.fillColorFunc();let val=0;switch(this.dataFamily()){case"2D":dataArr=this.data().map(function(n,i){val=this.data()[i].slice(1,colLength).reduce((acc,n2)=>acc+n2,0);const disabled=this.isDisabled(n[0]);disabled||(total+=val);const label=n[0]+(!disabled&&this.showSeriesTotal()?` (${val})`:""),textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(n,n[0],!1),n[0],label]},this);break;case"ND":dataArr=this.columns().filter(col=>col.indexOf("__")!==0).filter(function(n,i){return i>0}).map(function(n,i){val=this.data().reduce((acc,n2)=>acc+n2[i+1],0);const disabled=this.isDisabled(columns[i+1]),label=n+(!disabled&&this.showSeriesTotal()?` (${val})`:"");disabled||(total+=val);const textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(void 0,n,!1),n,label]},this);break;default:dataArr=this.columns().map(function(n){return[fillColor(void 0,n,!1),n]},this);break}break;case"rainbow":const palette=this.getPalette(),format$1=common.format(this.rainbowFormat()),widget=this.getWidget(),steps=this.rainbowBins(),weightMin=widget._dataMinWeight,weightMax=widget._dataMaxWeight,stepWeightDiff=(weightMax-weightMin)/(steps-1);dataArr.push([palette(weightMin,weightMin,weightMax),format$1(weightMin)]);for(let x=1;x<steps-1;++x){let mid=stepWeightDiff*x;Math.floor(mid)>parseInt(dataArr[0][1])&&(mid=Math.floor(mid)),dataArr.push([palette(mid,weightMin,weightMax),format$1(mid)])}dataArr.push([palette(weightMax,weightMin,weightMax),format$1(weightMax)]);break}}return{dataArr,total,maxLabelWidth}}update(domNode,element){super.update(domNode,element);const{dataArr,maxLabelWidth,total}=this.calcMetaData(),radius=this.shapeRadius(),size=this.radiusToSymbolSize(radius),strokeWidth=1;let shapePadding=this.itemPadding();this.orientation()==="horizontal"&&(shapePadding+=maxLabelWidth-radius*2);const ordinal=common.scaleOrdinal().domain(dataArr.map(row2=>row2[1])).range(dataArr.map(row2=>row2[0]));this._legendOrdinal.shape("path",d3Symbol().type(this._symbolTypeMap[this.symbolType()]).size(size)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(shapePadding).scale(ordinal).labels(d=>dataArr[d.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(element,dataArr);const legendCellsBbox=this._g.select(".legendCells").node().getBBox();let offsetX=Math.abs(legendCellsBbox.x),offsetY=Math.abs(legendCellsBbox.y)+strokeWidth;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?offsetX+=strokeWidth:this.labelAlign()==="end"&&(offsetX-=strokeWidth),this.width()>legendCellsBbox.width){const extraWidth=this.width()-legendCellsBbox.width;offsetX+=extraWidth/2}}else if(this.orientation()==="vertical"&&(offsetX+=strokeWidth,this._containerSize.height>legendCellsBbox.height)){const extraHeight=this.height()-legendCellsBbox.height;offsetY+=extraHeight/2}this._g.attr("transform",`translate(${offsetX}, ${offsetY})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const legendTotal=this._g.selectAll(".legendTotal").data(dataArr.length&&this.showLegendTotal()?[total]:[]),totalText=`Total: ${total}`,totalOffsetX=-offsetX,totalOffsetY=legendCellsBbox.height+this.itemPadding()+strokeWidth;this.enableOverflowScroll(!1),this.enableOverflow(!0),legendTotal.enter().append("text").classed("legendTotal",!0).merge(legendTotal).attr("transform",`translate(${totalOffsetX}, ${totalOffsetY})`).text(totalText),legendTotal.exit().remove()}updateDisabled(element,dataArr){element.style("cursor","pointer").selectAll("path.swatch").filter((d,i)=>i<dataArr.length).style("stroke",(d,i)=>dataArr[i][0]).style("fill",(d,i)=>this._disabled.indexOf(d)<0?dataArr[i][0]:"white")}postUpdate(domNode,element){let w;this._boundingBox&&(w=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(domNode,element),w!==void 0&&(this._boundingBox.width=w),this._parentRelativeDiv.style("overflow","hidden")}exit(domNode,element){super.exit(domNode,element)}radiusToSymbolSize(radius){const circleSize=Math.pow(radius,2)*Math.PI;switch(this.symbolType()){case"star":return circleSize*.45;case"triangle":return circleSize*.65;case"cross":case"diamond":case"wye":return circleSize*.75;case"circle":return circleSize;case"square":return circleSize*1.3}}onClick(d,domNode){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":const disabledIdx=this._disabled.indexOf(d);disabledIdx<0?this._disabled.push(d):this._disabled.splice(disabledIdx,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(d,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(d)<0&&this._owner.highlightColumn(d);break}break}}onOut(d,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(rowData,rowIdx){}onMouseOver(rowData,rowIdx){}resize(_size){let retVal;if(this.fitToContent()){this._containerSize=_size;const bbox=this.getBBox();_size.width>bbox.width&&(bbox.width=_size.width),_size.height>bbox.height&&(bbox.height=_size.height),retVal=super.resize.apply(this,[{...bbox}])}else retVal=super.resize.apply(this,arguments);return retVal}}Legend.prototype._class+=" layout_Legend",Legend.prototype.publish("title","","string","Title"),Legend.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),Legend.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),Legend.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),Legend.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),Legend.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w=>!w.isRainbow()}),Legend.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w=>!w.isRainbow()}),Legend.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),Legend.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),Legend.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),Legend.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),Legend.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),Legend.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:w=>w.orientation()==="vertical"});class Modal extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_widget"),__publicField2(this,"_relativeTarget"),__publicField2(this,"_fade"),__publicField2(this,"_modal"),__publicField2(this,"_modalHeader"),__publicField2(this,"_modalBody"),__publicField2(this,"_modalHeaderAnnotations"),__publicField2(this,"_modalHeaderCloseButton"),__publicField2(this,"_close"),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let relativeTarget;return this.relativeTargetId()&&(relativeTarget=document.getElementById(this.relativeTargetId()),relativeTarget)?relativeTarget:!relativeTarget&&(relativeTarget=this.locateAncestor("layout_Grid"),relativeTarget&&relativeTarget.element)?relativeTarget.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());const modalRect=this._modal.node().getBoundingClientRect(),headerRect=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",modalRect.height-headerRect.height+"px").style("width",modalRect.width),modalRect}setFadePosition(rect){this._fade.style("top",rect.top+"px").style("left",rect.left+"px").style("width",rect.width+"px").style("height",rect.height+"px")}setModalPosition(rect){const modalRect=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${rect.top}px)`).style("left",`calc(${this.fixedLeft()} + ${rect.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",rect.top+rect.height/2-modalRect.height/2+"px").style("left",rect.left+rect.width/2-modalRect.width/2+"px");else if(this.minHeight()||this.minWidth()){const contentRect=this._modal.node().getBoundingClientRect();this._modal.style("top",rect.top+rect.height/2-contentRect.height/2+"px").style("left",rect.left+rect.width/2-contentRect.width/2+"px")}}resize(size){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(width,height){const headerRect=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",width+"px").style("height",height+headerRect.height+"px").style("min-width",width+"px").style("min-height",height+headerRect.height+"px"),this._modalHeader.style("width",width+"px"),this._modalBody.style("width",width+"px").style("height",height+"px"),this.minWidth(width+"px").minHeight(height+headerRect.height+"px").resize({height:height+headerRect.height,width})}enter(domNode,element){super.enter(domNode,element),this._fade=element.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());const header_h=this.titleFontSize()*2;this._modal=element.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",header_h+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${header_h}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",n=>{this.enableClickFadeToClose()&&this.closeModal()})}update(domNode,element){super.update(domNode,element),element.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();const rect=this._relativeTarget.getBoundingClientRect();this.setFadePosition(rect),this.setModalPosition(rect),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(domNode,element){this._widget&&this._widget.target(null),super.exit(domNode,element)}formattedTitle(){const title=this.title_exists()?this.title().trim():"";return title.length>0&&title.slice(0,1)==="("&&title.slice(-1)===")"?title.slice(1,-1):this.title()}}Modal.prototype._class+=" layout_Modal",Modal.prototype.publish("title",null,"string","title"),Modal.prototype.publish("widget",null,"widget","widget"),Modal.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),Modal.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),Modal.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),Modal.prototype.publish("show",!0,"boolean","show"),Modal.prototype.publish("showFade",!0,"boolean","showFade"),Modal.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),Modal.prototype.publish("minWidth","400px","string","minWidth"),Modal.prototype.publish("minHeight","400px","string","minHeight"),Modal.prototype.publish("maxWidth","800px","string","maxWidth"),Modal.prototype.publish("maxHeight","800px","string","maxHeight"),Modal.prototype.publish("fixedWidth",null,"string","fixedWidth"),Modal.prototype.publish("fixedHeight",null,"string","fixedHeight"),Modal.prototype.publish("fixedTop",null,"string","fixedTop"),Modal.prototype.publish("fixedLeft",null,"string","fixedLeft"),Modal.prototype.publish("overflowX","hidden","string","overflowX"),Modal.prototype.publish("overflowY","scroll","string","overflowY");class ChartPanel extends Border2{constructor(){super(),__publicField2(this,"_legend",new Legend(this).enableOverflow(!0)),__publicField2(this,"_progressBar",new common.ProgressBar),__publicField2(this,"_autoScale",!1),__publicField2(this,"_resolutions",{tiny:{width:100,height:100},small:{width:300,height:300}}),__publicField2(this,"_modal",new Modal),__publicField2(this,"_highlight"),__publicField2(this,"_scale"),__publicField2(this,"_orig_size"),__publicField2(this,"_toggleInfo",new common.ToggleButton().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new common.Text().text(this.description())).show(!0).render();const origCloseFunc=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=origCloseFunc}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{})),__publicField2(this,"_toggleData",new common.ToggleButton().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()})),__publicField2(this,"_buttonDownload",new common.Button().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()})),__publicField2(this,"_buttonDownloadImage",new common.Button().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()})),__publicField2(this,"_toggleLegend",new common.ToggleButton().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{const selected=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(selected):this.legendPosition()==="right"&&this.showRight(selected),this.legendVisible(selected),this.render()})),__publicField2(this,"_spacer",new common.Spacer),__publicField2(this,"_titleBar",new common.TitleBar().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend])),__publicField2(this,"_carousel",new Carousel),__publicField2(this,"_table",new Table),__publicField2(this,"_widget"),__publicField2(this,"_hideLegendToggleList",["dgrid_Table"]),__publicField2(this,"_prevdataVisible"),__publicField2(this,"_prevlegendVisible"),__publicField2(this,"_prevLegendPosition"),__publicField2(this,"_prevChartDataFamily"),__publicField2(this,"_prevChart"),__publicField2(this,"_prevButtons"),this._tag="div"}fields(_){return arguments.length?(super.fields(_),this._legend.fields(_),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(_,asDefault){return arguments.length?(super.columns(_,asDefault),this._legend.columns(_,asDefault),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(_){return arguments.length?(super.data(_),this._legend.data(_),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(_){return arguments.length?(this._highlight=_,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(_){return arguments.length?(this._titleBar.buttons(_),this):this._titleBar.buttons()}downloadCSV(){const namePrefix=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",nameSuffix=this.downloadTimestampSuffix()?"_"+common.Utility.timestamp():"";return common.Utility.downloadString("CSV",this._widget.export("CSV"),namePrefix+nameSuffix),this}downloadPNG(){const widget=this.widget();return widget instanceof common.SVGWidget&&(this.legendVisible()?widget.downloadPNG(this.title(),void 0,this._legend):widget.downloadPNG(this.title())),this}highlightColumn(column){if(column){const cssTag=`series-${this.cssTag(column)}`;this._centerWA.element().selectAll(".series").each(function(){const element=common.select(this),highlight=element.classed(cssTag);element.classed("highlight",highlight).classed("lowlight",!highlight)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(domNode,element){super.enter(domNode,element),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(domNode,element),this.setOrigSize()}preUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(element){const scale_x=this._orig_size.width/this._resolutions.small.width,scale_y=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(scale_x,scale_y);const x_is_smaller=this._scale===scale_x;this.size({width:x_is_smaller?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:x_is_smaller?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),element.select("div.title-icon").style("position","static"),element.selectAll("lhs").style("display","none"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.style("transform",`scale(${this._scale})`)}preUpdateRegular(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.select("div.title-icon").style("position","static"),element.style("transform","translate(0px,0px) scale(1)")}update(domNode,element){if(super.update(domNode,element),this._table&&this.widget_exists()&&this.widget().class().indexOf("chart_XYAxis")>=0){const chart=this.widget();this._table.columns().forEach((column,idx)=>{switch(idx===0?chart.xAxisType():chart.yAxisType()){case"linear":case"log":case"pow":this._table.columnType(column,"number");break;case"time":this._table.columnType(column,"time");break;case"ordinal":default:this._table.columnType(column,"string")}this._table.columnPattern(column,idx===0?chart.xAxisTypeTimePattern():chart.yAxisTypeTimePattern()),this._table.columnFormat(column,idx===0?chart.xAxisTickFormat():chart.yAxisTickFormat())})}}preUpdate(domNode,element){switch(super.preUpdate(domNode,element),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(element);break;case"small":this.preUpdateSmall(element);break;case"regular":this.preUpdateRegular(element);break}const chart=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(chart._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(element.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(chart.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==chart){this._prevChart=chart;const widgetIconBar=chart?chart._titleBar||chart._iconBar:void 0;if(widgetIconBar&&widgetIconBar instanceof common.IconBar){this._prevButtons=this._prevButtons||[...this.buttons()];const buttons=[...widgetIconBar.buttons(),new common.Spacer,...this._prevButtons];widgetIconBar.buttons([]).render(),this.buttons(buttons)}else this._prevButtons&&this.buttons(this._prevButtons)}const hiddenButtons=[];this.dataButtonVisible()||hiddenButtons.push(this._toggleData),this.downloadButtonVisible()||hiddenButtons.push(this._buttonDownload),this.downloadImageButtonVisible()||hiddenButtons.push(this._buttonDownloadImage),this.legendButtonVisible()||hiddenButtons.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof common.SVGWidget),this._titleBar.hiddenButtons(hiddenButtons).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(domNode,element){switch(super.postUpdate(domNode,element),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(element);break;case"small":this.postUpdateSmall(element);break;case"regular":this.postUpdateRegular(element);break}}postUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),element.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),element.style("transform","translate(0px,0px) scale(1)");const iconDiv=element.selectAll("div.title-icon"),_node=iconDiv.node(),containerRect=element.node().parentElement.getBoundingClientRect();if(_node){const rect=iconDiv.node().getBoundingClientRect(),icon_top=containerRect.height/2;iconDiv.style("position","absolute").style("left",`calc(50% - ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`),element.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`)}}postUpdateSmall(element){element.selectAll("lhs").style("display","none"),element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden");const rect=element.node().getBoundingClientRect(),parentRect=element.node().parentElement.getBoundingClientRect();element.style("transform",`translate(${parentRect.x-rect.x}px, ${parentRect.y-rect.y}px) scale(${this._scale})`)}postUpdateRegular(element){element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden")}exit(domNode,element){this._progressBar.exit(domNode,element),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(domNode,element)}click(row2,column,selected){}dblclick(row2,column,selected){}vertex_click(row2,col,sel,more){more&&more.vertex}vertex_dblclick(row2,col,sel,more){more&&more.vertex}edge_click(row2,col,sel,more){more&&more.edge}edge_dblclick(row2,col,sel,more){more&&more.edge}}ChartPanel.prototype._class+=" layout_ChartPanel",ChartPanel.prototype.publishReset(),ChartPanel.prototype.publishProxy("title","_titleBar"),ChartPanel.prototype.publish("titleVisible",!0,"boolean"),ChartPanel.prototype.publish("titleOverlay",!1,"boolean"),ChartPanel.prototype.publishProxy("titleIcon","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFont","_titleBar"),ChartPanel.prototype.publishProxy("titleFont","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFontSize","_titleBar"),ChartPanel.prototype.publishProxy("titleFontSize","_titleBar"),ChartPanel.prototype.publishProxy("description","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFont","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFontSize","_titleBar"),ChartPanel.prototype.publish("dataVisible",!1,"boolean","Show data table"),ChartPanel.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),ChartPanel.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),ChartPanel.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),ChartPanel.prototype.publish("downloadTitle","","string","File name when downloaded"),ChartPanel.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),ChartPanel.prototype.publish("legendVisible",!1,"boolean","Show legend"),ChartPanel.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),ChartPanel.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),ChartPanel.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),ChartPanel.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),ChartPanel.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),ChartPanel.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),ChartPanel.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),ChartPanel.prototype.publishProxy("legend_symbolType","_legend","symbolType"),ChartPanel.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),ChartPanel.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),ChartPanel.prototype.publish("enableAutoscaling",!1,"boolean"),ChartPanel.prototype.publish("highlightSize",4,"number"),ChartPanel.prototype.publish("highlightColor","#e67e22","html-color"),ChartPanel.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),ChartPanel.prototype.publishProxy("progress_decay","_progressBar","decay"),ChartPanel.prototype.publishProxy("progress_size","_progressBar","size"),ChartPanel.prototype.publishProxy("progress_color","_progressBar","color"),ChartPanel.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),ChartPanel.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),ChartPanel.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),ChartPanel.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),ChartPanel.prototype.widget=function(_){if(!arguments.length)return this._widget;this._carousel.widgets([_,this._table]),this._widget=_,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());const context=this,tmpAny=this._widget;return tmpAny.click=function(){context.click.apply(context,arguments)},tmpAny.dblclick=function(){context.dblclick.apply(context,arguments)},tmpAny.vertex_click=function(){context.vertex_click.apply(context,arguments)},tmpAny.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},tmpAny.edge_click=function(){context.edge_click.apply(context,arguments)},tmpAny.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)},this};class FlexGrid extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),common.select(domNode.parentNode).style("height","100%").style("width","100%")}update(domNode,element){super.update(domNode,element);const context=this,cachedSizes=[];this.updateFlexParent(element);const listItems=element.selectAll(".FlexGrid-list-item").data(this.widgets(),w=>w.id());listItems.enter().append("div").classed("FlexGrid-list-item",!0).each(function(w){w.target(this)}).merge(listItems).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(n,i)=>{const flexBasis=this.widgetsFlexBasis()[i];return typeof flexBasis<"u"?flexBasis:this.flexBasis()}).style("flex-grow",(n,i)=>{const flexGrow=this.widgetsFlexGrow()[i];return typeof flexGrow<"u"?flexGrow:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){const rect=this.getBoundingClientRect();cachedSizes.push([rect.width,rect.height])}).each(function(w,i){this.firstChild.style.display="block",w.resize({width:cachedSizes[i][0]-2*context.borderWidth(),height:cachedSizes[i][1]-2*context.borderWidth()})}),listItems.exit().remove()}exit(domNode,element){super.exit(domNode,element)}updateFlexParent(element){element.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}}FlexGrid.prototype._class+=" layout_FlexGrid",FlexGrid.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),FlexGrid.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),FlexGrid.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),FlexGrid.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),FlexGrid.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:w=>w.flexWrap()!=="nowrap"}),FlexGrid.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),FlexGrid.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),FlexGrid.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),FlexGrid.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),FlexGrid.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),FlexGrid.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),FlexGrid.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),FlexGrid.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),FlexGrid.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),FlexGrid.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),FlexGrid.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var gridList$2={exports:{}},gridList$1=gridList$2.exports,hasRequiredGridList;function requireGridList(){return hasRequiredGridList||(hasRequiredGridList=1,function(module2,exports3){(function(root2,factory){module2.exports=factory()})(gridList$1,function(){var GridList2=function(items,options){this._options=options;for(var k2 in this.defaults)this._options.hasOwnProperty(k2)||(this._options[k2]=this.defaults[k2]);this.items=items,this._adjustSizeOfItems(),this.generateGrid()};GridList2.cloneItems=function(items,_items){var i,k2;for(_items===void 0&&(_items=[]),i=0;i<items.length;i++){_items[i]||(_items[i]={});for(k2 in items[i])_items[i][k2]=items[i][k2]}return _items},GridList2.prototype={defaults:{lanes:5,direction:"horizontal"},toString:function(){var widthOfGrid=this.grid.length,output=`
2
+ (function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common"),require("@hpcc-js/dgrid"),require("@hpcc-js/api"),require("@hpcc-js/form"),require("@hpcc-js/other")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/dgrid","@hpcc-js/api","@hpcc-js/form","@hpcc-js/other"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global["@hpcc-js/composite"]={},global["@hpcc-js/common"],global["@hpcc-js/dgrid"],global["@hpcc-js/api"],global["@hpcc-js/form"],global["@hpcc-js/other"]))})(this,function(exports2,common,dgrid,api,form,other){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);const PKG_NAME="@hpcc-js/composite",PKG_VERSION="3.1.1",BUILD_VERSION="3.2.1";(function(){try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{position:relative;overflow:hidden;pointer-events:all}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0px;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{display:block;width:100%}.layout_Accordion>.collapsible-title{font-size:13px;color:#fff;padding:4px 8px;height:26px;-webkit-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);-moz-box-shadow:inset 0px -1px 1px 0px rgba(0,0,0,.2);box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;left:0;top:0}.layout_Accordion>.collapsible-icon{position:absolute;top:0;right:0;width:24px;height:24px;color:#fff}.layout_Surface{box-sizing:border-box;margin:0;border:1px solid #e5e5e5;overflow:hidden;height:100%;width:100%}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{margin:0;padding:2px;background-color:#e5e5e5}.layout_Surface .html-button-container{position:absolute;right:0;top:3px}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px);font-size:100px}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{top:calc(50% - 72px);left:calc(50% - 45px);content:""}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;position:absolute;top:0;left:0;padding:0;z-index:1000;border-width:0px;border-style:solid;pointer-events:none}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{width:6px;height:6px;background-color:#444;opacity:.3;position:absolute;visibility:hidden}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border-radius:5px;border:1px solid #e5e5e5;display:inline-block;overflow:hidden}.layout_Border .cell h2{margin:0;padding-top:4px;-webkit-margin:0px;text-align:center}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{position:fixed;box-sizing:border-box;border:2px dashed #7f8c8d;border-radius:0;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Border .grid-drop-target.drop-target-over{border:2px dashed #179BD7;background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px,#119bd71a 12px)}.layout_Border2{display:flex;flex-direction:column}.layout_Border2>.body{margin:0;padding:0;display:flex;flex-flow:row}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header{display:block}.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow-y:scroll;overflow-x:hidden}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{position:fixed;background-color:#000;opacity:.5;z-index:10000}.layout_Modal-content{position:fixed;background-color:#fff;z-index:10100}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{overflow:hidden;border-style:solid;flex-grow:1}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{position:absolute;border-style:solid;border-width:1px;background:#f5f5f5}.layout_Grid>.lane{position:absolute;border-style:none;opacity:.25;border-radius:0;pointer-events:none}.layout_Grid>.ddCell.draggable{border-style:solid;border-width:1px;background-color:#f8f8ff;border-radius:0;cursor:move}.layout_Grid>.ddCell.draggable>.resizeHandle{bottom:0;right:0;width:8px;height:8px;border-style:none;position:absolute;cursor:nwse-resize}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{bottom:2px;right:2px;width:4px;height:4px;border-style:solid;border-left-width:0px;border-top-width:0px;border-right-width:2px;border-bottom-width:2px;border-color:#a9a9a9;background-color:none;position:absolute}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{border-style:solid;border-width:1px;border-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px,#6464641a 8px)}.layout_Grid>.resizing{border-style:solid;border-width:1px;border-color:gray;background-color:orange;border-radius:0;position:absolute;opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px,orange 8px)}.layout_Grid>.ddCell.draggable .common_Widget.selected{border-style:solid;border-width:1px;border-color:red;background-color:gray;border-radius:0;position:absolute;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px,#6400001a 8px)}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{position:relative;top:1px;display:inline-block;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;background-color:transparent;margin-right:4px;padding:2px 2px 4px;background-color:#ccc}.layout_Tabbed .tab-button.active{background-color:#fff;z-index:999}.layout_Tabbed .on_bottom .tab-button{border-bottom:1px solid #ddd;border-top:none;top:-1px}.layout_Toolbar{height:100%;background-color:#ddd;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-title{display:inline-block;position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);margin-left:4px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.layout_Toolbar .toolbar-child{position:relative;top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);float:right;margin-left:4px;margin-right:4px;line-height:16px}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var __defProp2=Object.defineProperty,__defNormalProp2=(obj,key,value)=>key in obj?__defProp2(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField2=(obj,key,value)=>__defNormalProp2(obj,typeof key!="symbol"?key+"":key,value);function _mergeNamespaces$1(n,m){for(var i=0;i<m.length;i++){const e=m[i];if(typeof e!="string"&&!Array.isArray(e)){for(const k2 in e)if(k2!=="default"&&!(k2 in n)){const d=Object.getOwnPropertyDescriptor(e,k2);d&&Object.defineProperty(n,k2,d.get?d:{enumerable:!0,get:()=>e[k2]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}class AbsoluteSurface extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);let xPos=0,yPos=0,width=this.clientWidth(),height=this.clientHeight();switch(this.units()){case"pixels":xPos=this.widgetX(),yPos=this.widgetY(),width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth()),height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight());break;case"percent":xPos=this.widgetX()*width/100,yPos=this.widgetY()*height/100,width=this.widgetWidth()===""?width-xPos:Number(this.widgetWidth())*width/100,height=this.widgetHeight()===""?height-yPos:Number(this.widgetHeight())*height/100;break}element.style("opacity",this.opacity());const widgets=element.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(d){return d._id});widgets.enter().append("div").attr("class","placeholder").each(function(d){d.target(this)}).merge(widgets).style("left",xPos+"px").style("top",yPos+"px").style("width",width+"px").style("bottom",height+"px").each(function(d){d.resize({width,height})}),widgets.exit().each(function(d){d.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}}AbsoluteSurface.prototype._class+=" layout_AbsoluteSurface",AbsoluteSurface.prototype.publish("units","percent","set","Units",["pixels","percent"]),AbsoluteSurface.prototype.publish("widgetX",0,"number","Widget XPos"),AbsoluteSurface.prototype.publish("widgetY",0,"number","Widget YPos"),AbsoluteSurface.prototype.publish("widgetWidth","100","string","Widget Width, omit for full"),AbsoluteSurface.prototype.publish("widgetHeight","100","string","Widget Height, omit for full"),AbsoluteSurface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]}),AbsoluteSurface.prototype.publish("opacity",1,"number","Opacity");class Accordion extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_isClosed"),__publicField2(this,"titleSpan"),__publicField2(this,"iconDiv"),__publicField2(this,"ul"),__publicField2(this,"icon"),this._tag="div",this._isClosed=!1}pushListItem(widget,prepend=!1,protect=!1){const contentArr=this.content();return widget._protected=protect,prepend?contentArr.unshift(widget):contentArr.push(widget),this.content(contentArr),this}clearListItems(){const arr=[];for(const i in this.content())this.content()[i]._protected&&arr.push(this.content()[i]);return this.content(arr),this}collapseClick(element){element.classed("closed")?(this._isClosed=!1,element.classed("open",!0),element.classed("closed",!1)):(this._isClosed=!0,element.classed("open",!1),element.classed("closed",!0))}enter(domNode,element){super.enter(domNode,element);const context=this;this._isClosed=this.defaultCollapsed(),element.classed(this._isClosed?"closed":"open",!0),this.titleSpan=element.append("span").classed("collapsible-title",!0),this.iconDiv=element.append("div").classed("collapsible-icon",!0),this.ul=element.append("ul"),this.icon=new common.FAChar().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){context.collapseClick(element),context.render()}),this.titleSpan.on("click",function(){context.collapseClick(element),context.render()})}update(domNode,element){super.update(domNode,element);const context=this,this_id="";this.titleSpan.text(context.title().length>0?context.title()+this_id:"Accordion ["+context._id+"]"+this_id);const rows=this.ul.selectAll("#"+context._id+" > ul > li").data(this.content(),function(d){return d._id});rows.enter().append(function(widget){const li=document.createElement("li");if(widget._target===null){const wSize=widget.size();if(wSize.width===0||wSize.height===0){const cSize=context.size();widget.size({width:cSize.width,height:cSize.width})}widget.target(li)}else return widget._target;return li}),rows.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(domNode,element){super.exit(domNode,element)}}Accordion.prototype._class+=" layout_Accordion",Accordion.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]}),Accordion.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]}),Accordion.prototype.publish("openIcon","","string","Icon to display when list is open",null,{tags:["Private"]}),Accordion.prototype.publish("closedIcon","","string","Icon to display when list is closed",null,{tags:["Private"]}),Accordion.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]}),Accordion.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]}),Accordion.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});class Surface extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),this._tag="div",this._surfaceButtons=[]}widgetSize(titleDiv,widgetDiv){let width=this.clientWidth(),height=this.clientHeight();return this.title()&&(height-=this.calcHeight(titleDiv)),height-=this.calcFrameHeight(widgetDiv),width-=this.calcFrameWidth(widgetDiv),{width,height}}enter(domNode,element){super.enter(domNode,element)}update(domNode,element2){super.update(domNode,element2);const context=this;element2.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());const titles=element2.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);titles.enter().insert("h3","div").attr("class","surfaceTitle").merge(titles).text(function(d){return d}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),titles.exit().remove();const surfaceButtons=element2.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());surfaceButtons.enter().append("button").classed("surface-button",!0).each(function(button,idx){const el=context._surfaceButtons[idx]=common.select(this).attr("class","surface-button"+(button.class?" "+button.class:"")).attr("id",button.id).style("padding",button.padding).style("width",button.width).style("height",button.height).style("cursor","pointer");button.font==="FontAwesome"?el.style("background","transparent").style("border","none").on("click",function(d){context.click(d)}).append("i").attr("class","fa").text(function(){return button.label}):el.text(function(){return button.label}).on("click",function(d){context.click(d)})}),surfaceButtons.exit().each(function(_d,idx){const element=common.select(this);delete context._surfaceButtons[idx],element.remove()});const widgets=element2.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(d){return d._id});widgets.enter().append("div").attr("class","surfaceWidget").each(function(d){common.select(context.element().node().parentElement).classed("content-icon content-icon-"+d.classID().split("_")[1],!0),d.target(this)}).merge(widgets).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(d){const widgetSize=context.widgetSize(element2.select("h3"),common.select(this));widgetSize.width<0&&(widgetSize.width=0),widgetSize.height<0&&(widgetSize.height=0),d.resize({width:widgetSize.width,height:widgetSize.height})}),widgets.exit().each(function(d){d.target(null)}).remove()}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Surface.prototype._class+=" layout_Surface",Surface.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Surface.prototype.publish("altText",null,"string","Alt text",null,{optional:!0}),Surface.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:w=>!w.title()}),Surface.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow"),Surface.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]}),Surface.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]}),Surface.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]}),Surface.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]}),Surface.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});class Cell extends Surface{constructor(){super(),__publicField2(this,"_indicateTheseIds"),this._indicateTheseIds=[]}indicateTheseIds(_){return arguments.length?(this._indicateTheseIds=_,this):this._indicateTheseIds}enter(domNode,element){super.enter(domNode,element);const context=this;element.classed("layout_Surface",!0).on("mouseenter",function(){context.onMouseEnter()}).on("mouseleave",function(){context.onMouseLeave()})}update(domNode,element){super.update(domNode,element)}onMouseEnter(){const arr=this.indicateTheseIds(),opacity=this.indicatorOpacity(),indicatorBorderColor=this.indicatorBorderColor(),indicatorGlowColor=this.indicatorGlowColor();for(let i=0;i<arr.length;i++){const otherElement=common.select("#"+arr[i]),otherWidget=otherElement.datum();otherElement&&otherWidget&&otherElement.append("div").attr("class","update-indicator").style("width",otherWidget.width()+"px").style("height",otherWidget.height()+"px").style("opacity",opacity).style("border-color",indicatorBorderColor).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("-moz-box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor).style("box-shadow","inset 0px 0px 30px 0px "+indicatorGlowColor)}}onMouseLeave(){const arr=this.indicateTheseIds();for(let i=0;i<arr.length;i++)common.selectAll("#"+arr[i]+" > div.update-indicator").remove()}}Cell.prototype._class+=" layout_Cell",Cell.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]}),Cell.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]}),Cell.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]}),Cell.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]}),Cell.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]}),Cell.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});class Border extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_colCount"),__publicField2(this,"_rowCount"),__publicField2(this,"_colSize"),__publicField2(this,"_rowSize"),__publicField2(this,"_shrinkWrapBoxes"),__publicField2(this,"_watch"),__publicField2(this,"_offsetX"),__publicField2(this,"_offsetY"),__publicField2(this,"_dragCell"),__publicField2(this,"_dragCellSize"),__publicField2(this,"_dragCellStartSize"),__publicField2(this,"_handleTop"),__publicField2(this,"_handleLeft"),__publicField2(this,"_dragPrevX"),__publicField2(this,"_dragPrevY"),__publicField2(this,"_cellSizes"),__publicField2(this,"contentDiv"),__publicField2(this,"_scrollBarWidth"),__publicField2(this,"_borderHandles"),__publicField2(this,"_sectionTypeArr"),__publicField2(this,"lazyPostUpdate",common.Utility.debounce(function(){this.postUpdate()},100)),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(widget){if(this._watch===void 0&&(this._watch={}),this._watch[widget.id()]&&(this._watch[widget.id()].remove(),delete this._watch[widget.id()]),widget){const context=this;this._watch[widget.id()]=widget.monitor(function(paramId,newVal,oldVal){oldVal!==newVal&&context.lazyPostUpdate()})}}applyLayoutType(){const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell,i){cell._fixedLeft=layoutObj[this.sectionTypes()[i]].left,cell._fixedTop=layoutObj[this.sectionTypes()[i]].top,cell._fixedWidth=layoutObj[this.sectionTypes()[i]].width,cell._fixedHeight=layoutObj[this.sectionTypes()[i]].height,cell._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[i])},this)}cellSpecificDragHandles(sectionType){switch(sectionType){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(layoutType){const retObj={},context=this;let topSize,topPerc,bottomSize,bottomPerc,leftSize,leftPerc,rightSize,rightPerc;const bcRect=this.target().getBoundingClientRect();bcRect.top,bcRect.left,bcRect.bottom,bcRect.right,this.target()instanceof SVGElement?(parseFloat(this.target().getAttribute("width")),parseFloat(this.target().getAttribute("height"))):(bcRect.width,bcRect.height),this.sectionTypes().indexOf("top")!==-1&&(topSize=this.topSize(),topPerc=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(topSize=this._shrinkWrapBoxes.top.height+this.gutter(),topPerc=0)),this.sectionTypes().indexOf("bottom")!==-1&&(bottomSize=this.bottomSize(),bottomPerc=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(bottomSize=this._shrinkWrapBoxes.bottom.height+this.gutter(),bottomPerc=0)),this.sectionTypes().indexOf("left")!==-1&&(leftSize=this.leftSize(),leftPerc=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(leftSize=this._shrinkWrapBoxes.left.width+this.gutter(),leftPerc=0)),this.sectionTypes().indexOf("right")!==-1&&(rightSize=this.rightSize(),rightPerc=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(rightSize=this._shrinkWrapBoxes.right.width+this.gutter(),rightPerc=0));const t=_sectionPlacementObject({width:{px:0,"%":100},height:{px:topSize,"%":topPerc},top:{px:0,"%":0},left:{px:0,"%":0}}),b=_sectionPlacementObject({width:{px:0,"%":100},height:{px:bottomSize,"%":bottomPerc},top:{px:0,"%":100},left:{px:0,"%":0}});b.top-=b.height;const l=_sectionPlacementObject({width:{px:leftSize,"%":leftPerc},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:0,"%":0}}),r=_sectionPlacementObject({width:{px:rightSize,"%":rightPerc},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:0,"%":100}});r.left-=r.width;const c2=_sectionPlacementObject({width:{px:-r.width-l.width,"%":100},height:{px:-t.height-b.height,"%":100},top:{px:t.height,"%":0},left:{px:l.width,"%":0}});return retObj.top=t,retObj.bottom=b,retObj.right=r,retObj.left=l,retObj.center=c2,retObj;function _sectionPlacementObject(obj){return obj.width.px=typeof obj.width.px<"u"?obj.width.px:0,obj.width["%"]=typeof obj.width["%"]<"u"?obj.width["%"]:0,obj.height.px=typeof obj.height.px<"u"?obj.height.px:0,obj.height["%"]=typeof obj.height["%"]<"u"?obj.height["%"]:0,{width:obj.width.px+obj.width["%"]/100*context.width(),height:obj.height.px+obj.height["%"]/100*context.height(),top:obj.top.px+obj.top["%"]/100*context.height()+context.gutter()/2,left:obj.left.px+obj.left["%"]/100*context.width()+context.gutter()/2}}}clearContent(sectionType){if(!sectionType)this.content().forEach(function(contentWidget){return contentWidget.target(null),!1}),common.select("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{const idx=this.sectionTypes().indexOf(sectionType);idx>=0&&(this._watch&&this.content()[idx]&&delete this._watch[this.content()[idx].id()],this.content()[idx].target(null),common.select("#"+this.id()+" > div.borderHandle_"+sectionType).classed("borderHandleDisabled",!0),this.content().splice(idx,1),this.sectionTypes().splice(idx,1))}}hasContent(sectionType,widget,title){return this.sectionTypes().indexOf(sectionType)>=0}setContent(sectionType,widget,title){if(this.clearContent(sectionType),title=typeof title<"u"?title:"",widget){const cell=new Cell().surfaceBorderWidth(0).widget(widget).title(title);this.watchWidget(widget),this.content().push(cell),this.sectionTypes().push(sectionType)}return this}getCell(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx]:null}getContent(id){const idx=this.sectionTypes().indexOf(id);return idx>=0?this.content()[idx].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(handle){const event=common.d3Event();event.sourceEvent.stopPropagation();const context=this;this._dragCell=handle,this._dragCellStartSize=this[handle+"Size"](),this[handle+"ShrinkWrap"]()&&(this[handle+"Percentage"](0),this[handle+"ShrinkWrap"](!1));const handleElm=common.select("#"+context.id()+" > div.borderHandle_"+handle);context._handleTop=parseFloat(handleElm.style("top").split("px")[0]),context._handleLeft=parseFloat(handleElm.style("left").split("px")[0]),this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}dragTick(handle){const context=this,event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":case"bottom":_moveHandles(handle,yDelta);break;case"right":case"left":_moveHandles(handle,xDelta);break}function _moveHandles(handle2,delta){if(delta===0)return;const handles=common.selectAll("#"+context.id()+" > div.borderHandle"),grabbedHandle=common.select("#"+context.id()+" > div.borderHandle_"+handle2);grabbedHandle.classed("borderHandle_top")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.topHeight=context._handleTop-delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_right")?(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.rightWidth=context._cellSizes.width-context._handleLeft+delta):grabbedHandle.classed("borderHandle_bottom")?(grabbedHandle.style("top",context._handleTop-delta+"px"),context._cellSizes.bottomHeight=context._cellSizes.height-context._handleTop+delta,context._cellSizes.leftHeight=context._cellSizes.height,context._cellSizes.leftHeight-=context._cellSizes.bottomHeight,context._cellSizes.leftHeight-=context._cellSizes.topHeight,context._cellSizes.rightHeight=context._cellSizes.leftHeight):grabbedHandle.classed("borderHandle_left")&&(grabbedHandle.style("left",context._handleLeft-delta+"px"),context._cellSizes.leftWidth=context._handleLeft-delta),handles.each(function(){const handle3=common.select(this);handle3.classed("borderHandle_top")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.topHeight-3+"px")):handle3.classed("borderHandle_right")?(handle3.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"),handle3.style("height",context._cellSizes.rightHeight+"px")):handle3.classed("borderHandle_bottom")?(handle3.style("width",context._cellSizes.width+"px"),handle3.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle3.classed("borderHandle_left")&&(handle3.style("left",context._cellSizes.leftWidth+"px"),handle3.style("height",context._cellSizes.leftHeight+"px"),handle3.style("top",context._cellSizes.topHeight+3+"px"))})}}dragEnd(handle){if(handle){const event=common.d3Event(),xDelta=this._dragPrevX-event.sourceEvent.clientX,yDelta=this._dragPrevY-event.sourceEvent.clientY;switch(handle){case"top":yDelta!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-yDelta:this.topSize()-yDelta));break;case"right":xDelta!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+xDelta:this.rightSize()+xDelta));break;case"bottom":yDelta!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+yDelta:this.bottomSize()+yDelta));break;case"left":xDelta!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-xDelta:this.leftSize()-xDelta));break}this._dragPrevX=event.sourceEvent.clientX,this._dragPrevY=event.sourceEvent.clientY}this.render()}size(_){const retVal=common.HTMLWidget.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),retVal}enter(domNode,element){super.enter(domNode,element);const context=this;element.style("position","relative"),this.contentDiv=element.append("div").classed("border-content",!0),this._scrollBarWidth=common.Platform.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],element.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(handle){common.select(this).classed("borderHandle_"+handle,!0).classed("borderHandleDisabled",context.getContent(handle)===null)})}update(domNode,element){super.update(domNode,element),this._sectionTypeArr=this.sectionTypes();const context=this;element.classed("design-mode",this.designMode()),this.setLayoutOffsets();const rows=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(d){return d._id}),rowsUpdate=rows.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(d,i){common.select(this).classed("border-cell border-cell-"+context._sectionTypeArr[i],!0),d.target(this),common.select("#"+context.id()+" > div.borderHandle_"+context._sectionTypeArr[i]).classed("borderHandleDisabled",!1)}).merge(rows);rowsUpdate.each(function(d,idx){const sectionType=context.sectionTypes()[idx];typeof context[sectionType+"ShrinkWrap"]<"u"&&context[sectionType+"ShrinkWrap"]()?(d.render(),context._shrinkWrapBoxes[sectionType]=d.widget().getBBox(!0)):delete context._shrinkWrapBoxes[sectionType]});const drag$1=common.drag().on("start",function(d,i){context.dragStart.call(context,d,i)}).on("drag",function(d,i){context.dragTick.call(context,d,i)}).on("end",function(d,i){context.dragEnd.call(context,d,i)});this.designMode()?element.selectAll("#"+this.id()+" > div.borderHandle").call(drag$1):element.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);const layoutObj=this.borderLayoutObject();this.content().forEach(function(cell,i){cell._fixedLeft=layoutObj[this.sectionTypes()[i]].left,cell._fixedTop=layoutObj[this.sectionTypes()[i]].top,cell._fixedWidth=layoutObj[this.sectionTypes()[i]].width,cell._fixedHeight=layoutObj[this.sectionTypes()[i]].height,cell._dragHandles=[]},this),rowsUpdate.style("left",function(d){return d._fixedLeft+"px"}).style("top",function(d){return d._fixedTop+"px"}).style("width",function(d){return d._fixedWidth-context.gutter()+"px"}).style("height",function(d){return d._fixedHeight-context.gutter()+"px"}).each(function(d){d._placeholderElement.attr("draggable",context.designMode()).selectAll(".dragHandle").attr("draggable",context.designMode()),d.surfacePadding(context.surfacePadding()).resize()}),rows.exit().each(function(d){d.target(null)}).remove(),this.getCellSizes(),element.selectAll("#"+this.id()+" > div.borderHandle").each(function(){const handle=common.select(this);handle.classed("borderHandle_top")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.topHeight-3+"px")):handle.classed("borderHandle_right")?(handle.style("left",context._cellSizes.width-context._cellSizes.rightWidth+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"),handle.style("height",context._cellSizes.rightHeight+"px")):handle.classed("borderHandle_bottom")?(handle.style("width",context._cellSizes.width+"px"),handle.style("top",context._cellSizes.height-context._cellSizes.bottomHeight-3+"px")):handle.classed("borderHandle_left")&&(handle.style("left",context._cellSizes.leftWidth+"px"),handle.style("height",context._cellSizes.leftHeight+"px"),handle.style("top",context._cellSizes.topHeight+3+"px"))})}getCellSizes(){const context=this;context._cellSizes={};const contentRect=this.element().node().getBoundingClientRect();context._cellSizes.width=contentRect.width,context._cellSizes.height=contentRect.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){const cell=common.select(this);if(typeof cell.node=="function"){const rect=cell.node().getBoundingClientRect();cell.classed("border-cell-top")?context._cellSizes.topHeight=rect.height:cell.classed("border-cell-left")?(context._cellSizes.leftWidth=rect.width,context._cellSizes.leftHeight=rect.height):cell.classed("border-cell-right")?(context._cellSizes.rightWidth=rect.width,context._cellSizes.rightHeight=rect.height):cell.classed("border-cell-bottom")&&(context._cellSizes.bottomHeight=rect.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(size){context._cellSizes[size]=context._cellSizes[size]===void 0?0:context._cellSizes[size]})}postUpdate(domNode,element){const context=this;this.content().forEach(function(n){if(n._element.node()!==null&&n.widget()){const prevBox=n.widget().getBBox(!1,!0),currBox=n.widget().getBBox(!0,!0);(prevBox.width!==currBox.width||prevBox.height!==currBox.height)&&context.lazyRender()}})}exit(domNode,element){this.content().forEach(w=>w.target(null)),super.exit(domNode,element)}}Border.prototype._class+=" layout_Border",Border.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Border.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]}),Border.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]}),Border.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]}),Border.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]}),Border.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]}),Border.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]}),Border.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]}),Border.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]}),Border.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]}),Border.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});class WidgetDiv{constructor(div){__publicField2(this,"_div"),__publicField2(this,"_overlay",!1),__publicField2(this,"_overflowX","visible"),__publicField2(this,"_overflowY","visible"),__publicField2(this,"_widget"),this._div=div}overlay(_){return arguments.length?(this._overlay=_,this):this._overlay}overflowX(_){return arguments.length?(this._overflowX=_,this._div.style("overflow-x",_),this):this._overflowX}overflowY(_){return arguments.length?(this._overflowY=_,this._div.style("overflow-y",_),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(_){return arguments.length?(this._widget!==_&&(this._widget&&this._widget.target(null),this._widget=_,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(size){return this._widget&&(this._div.style("width",`${size.width}px`).style("height",`${size.height}px`),this._widget.resize(size)),this}async render(getBBox,availableHeight,availableWidth){let overflowX=this.overflowX();!this.overlay()&&overflowX==="visible"&&(overflowX=null);let overflowY=this.overflowY();return!this.overlay()&&overflowY==="visible"&&(overflowY=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",overflowX).style("overflow-y",overflowY),this._widget?this._widget.renderPromise().then(w=>{if(getBBox&&this._widget.visible()){const retVal=this._widget.getBBox();return retVal.width+=8,availableHeight!==void 0&&retVal.height>availableHeight&&(retVal.width+=common.Platform.getScrollbarWidth()),availableWidth!==void 0&&retVal.width>availableWidth&&(retVal.height+=common.Platform.getScrollbarWidth()),this.overlay()?retVal.height=0:retVal.height+=4,retVal}return getBBox?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(getBBox?{x:0,y:0,width:0,height:0}:void 0)}}class Border2 extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_bodyElement"),__publicField2(this,"_topWA"),__publicField2(this,"_leftWA"),__publicField2(this,"_centerWA"),__publicField2(this,"_rightWA"),__publicField2(this,"_bottomWA"),__publicField2(this,"_topPrevOverflow"),__publicField2(this,"_leftPrevOverflow"),__publicField2(this,"_rightPrevOverflow"),__publicField2(this,"_bottomPrevOverflow"),this._tag="div"}enter(domNode,element){super.enter(domNode,element);const topElement=element.append("header");this._bodyElement=element.append("div").attr("class","body");const centerElement=this._bodyElement.append("div").attr("class","center"),leftElement=this._bodyElement.append("div").attr("class","lhs"),rightElement=this._bodyElement.append("div").attr("class","rhs"),bottomElement=element.append("div").attr("class","footer");this._topWA=new WidgetDiv(topElement),this._centerWA=new WidgetDiv(centerElement),this._leftWA=new WidgetDiv(leftElement),this._rightWA=new WidgetDiv(rightElement),this._bottomWA=new WidgetDiv(bottomElement)}update(domNode,element){super.update(domNode,element),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(w){w&&w.target(null)}exit(domNode,element){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(domNode,element)}swap(sectionA,sectionB){const a2=this[sectionA](),b=this[sectionB]();return this.targetNull(a2),this.targetNull(b),this[`_${sectionA}WA`].widget(null),this[`_${sectionB}WA`].widget(null),this[sectionA](b),this[sectionB](a2),this}render(callback){return super.render(w=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async topBBox=>{const bottomBBox=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),availableHeight=this.height()-(topBBox.height+bottomBBox.height),leftBBox=await this._leftWA.widget(this.left()).render(!0,availableHeight),rightBBox=await this._rightWA.widget(this.right()).render(!0,availableHeight);this.bottomHeight_exists()&&(bottomBBox.height=this.bottomHeight());const bodyWidth=this.width()-(leftBBox.width+rightBBox.width),bodyHeight=this.height()-(topBBox.height+bottomBBox.height),centerOverflowX=this.centerOverflowX(),centerOverflowY=this.centerOverflowY(),scrollCenterX=["auto","scroll"].indexOf(centerOverflowX)!==-1,scrollCenterY=["auto","scroll"].indexOf(centerOverflowY)!==-1;(scrollCenterX||scrollCenterY)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bodyElement.style("height",`${bodyHeight}px`);const promises=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:topBBox.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:leftBBox.width,height:bodyHeight}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:rightBBox.width,height:bodyHeight}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:bodyWidth,height:bodyHeight}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:bottomBBox.height}).render()];Promise.all(promises).then(promises2=>{callback&&callback(this)})}):callback&&callback(this)})}}Border2.prototype._class+=" layout_Border2",Border2.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display"),Border2.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display"),Border2.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display"),Border2.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display"),Border2.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]),Border2.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1}),Border2.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget"),Border2.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1}),Border2.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1}),Border2.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1}),Border2.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1}),Border2.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});class Carousel extends common.HTMLWidget{constructor(){super(...arguments),__publicField2(this,"_prevActive",0),__publicField2(this,"_root")}activeWidget(){return this.widgets()[this.active()]}enter(domNode,element){super.enter(domNode,element),this._root=element.append("div").attr("id",`${this.id()}_root`)}update(domNode,element){super.update(domNode,element);const active=this.active(),width=this.width();this._root.style("width",`${width}px`).style("height",`${this.height()}px`);const widgetElements=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),d=>d.id()),update=widgetElements.enter().append("div").attr("class","carouselItem").each(function(w){w.target(this)}).merge(widgetElements).style("left",(d,i)=>`${(i-this._prevActive)*width}px`).style("width",`${width}px`);this._prevActive!==active&&(update.style("display",(d,i)=>i===this._prevActive||i===active?null:"none").transition().duration(this.transitionDuration()).style("left",(d,i)=>`${(i-active)*width}px`).on("end",function(d,i){common.select(this).style("display",()=>i===active?null:"none")}),this._prevActive=active),widgetElements.exit().each(function(w){w.target(null)}).remove()}exit(domNode,element){this.widgets().forEach(w=>w.target(null)),super.exit(domNode,element)}render(callback){return super.render(w=>{if(!this.visible()||this.isDOMHidden())callback&&callback(w);else{const aw=this.activeWidget();aw&&aw.resize(this.size()).render(w2=>{callback&&callback(w)})}})}}Carousel.prototype._class+=" layout_Carousel",Carousel.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1}),Carousel.prototype.publish("active",0,"number","Active widget"),Carousel.prototype.publish("transitionDuration",500,"number","Transition duration");var pi$1=Math.PI,tau$1=2*pi$1,epsilon=1e-6,tauEpsilon=tau$1-epsilon;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(x,y){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+y)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,y){this._+="L"+(this._x1=+x)+","+(this._y1=+y)},quadraticCurveTo:function(x1,y1,x,y){this._+="Q"+ +x1+","+ +y1+","+(this._x1=+x)+","+(this._y1=+y)},bezierCurveTo:function(x1,y1,x2,y2,x,y){this._+="C"+ +x1+","+ +y1+","+ +x2+","+ +y2+","+(this._x1=+x)+","+(this._y1=+y)},arcTo:function(x1,y1,x2,y2,r){x1=+x1,y1=+y1,x2=+x2,y2=+y2,r=+r;var x0=this._x1,y0=this._y1,x21=x2-x1,y21=y2-y1,x01=x0-x1,y01=y0-y1,l01_2=x01*x01+y01*y01;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null)this._+="M"+(this._x1=x1)+","+(this._y1=y1);else if(l01_2>epsilon)if(!(Math.abs(y01*x21-y21*x01)>epsilon)||!r)this._+="L"+(this._x1=x1)+","+(this._y1=y1);else{var x20=x2-x0,y20=y2-y0,l21_2=x21*x21+y21*y21,l20_2=x20*x20+y20*y20,l21=Math.sqrt(l21_2),l01=Math.sqrt(l01_2),l=r*Math.tan((pi$1-Math.acos((l21_2+l01_2-l20_2)/(2*l21*l01)))/2),t01=l/l01,t21=l/l21;Math.abs(t01-1)>epsilon&&(this._+="L"+(x1+t01*x01)+","+(y1+t01*y01)),this._+="A"+r+","+r+",0,0,"+ +(y01*x20>x01*y20)+","+(this._x1=x1+t21*x21)+","+(this._y1=y1+t21*y21)}},arc:function(x,y,r,a0,a1,ccw){x=+x,y=+y,r=+r,ccw=!!ccw;var dx=r*Math.cos(a0),dy=r*Math.sin(a0),x0=x+dx,y0=y+dy,cw=1^ccw,da=ccw?a0-a1:a1-a0;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+x0+","+y0:(Math.abs(this._x1-x0)>epsilon||Math.abs(this._y1-y0)>epsilon)&&(this._+="L"+x0+","+y0),r&&(da<0&&(da=da%tau$1+tau$1),da>tauEpsilon?this._+="A"+r+","+r+",0,1,"+cw+","+(x-dx)+","+(y-dy)+"A"+r+","+r+",0,1,"+cw+","+(this._x1=x0)+","+(this._y1=y0):da>epsilon&&(this._+="A"+r+","+r+",0,"+ +(da>=pi$1)+","+cw+","+(this._x1=x+r*Math.cos(a1))+","+(this._y1=y+r*Math.sin(a1))))},rect:function(x,y,w,h){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+y)+"h"+ +w+"v"+ +h+"h"+-w+"Z"},toString:function(){return this._}};function constant(x){return function(){return x}}var pi=Math.PI,tau=2*pi;const d3SymbolCircle={draw:function(context,size){var r=Math.sqrt(size/pi);context.moveTo(r,0),context.arc(0,0,r,0,tau)}},d3SymbolCross={draw:function(context,size){var r=Math.sqrt(size/5)/2;context.moveTo(-3*r,-r),context.lineTo(-r,-r),context.lineTo(-r,-3*r),context.lineTo(r,-3*r),context.lineTo(r,-r),context.lineTo(3*r,-r),context.lineTo(3*r,r),context.lineTo(r,r),context.lineTo(r,3*r),context.lineTo(-r,3*r),context.lineTo(-r,r),context.lineTo(-3*r,r),context.closePath()}};var tan30=Math.sqrt(1/3),tan30_2=tan30*2;const d3SymbolDiamond={draw:function(context,size){var y=Math.sqrt(size/tan30_2),x=y*tan30;context.moveTo(0,-y),context.lineTo(x,0),context.lineTo(0,y),context.lineTo(-x,0),context.closePath()}};var ka=.8908130915292852,kr=Math.sin(pi/10)/Math.sin(7*pi/10),kx=Math.sin(tau/10)*kr,ky=-Math.cos(tau/10)*kr;const d3SymbolStar={draw:function(context,size){var r=Math.sqrt(size*ka),x=kx*r,y=ky*r;context.moveTo(0,-r),context.lineTo(x,y);for(var i=1;i<5;++i){var a2=tau*i/5,c2=Math.cos(a2),s2=Math.sin(a2);context.lineTo(s2*r,-c2*r),context.lineTo(c2*x-s2*y,s2*x+c2*y)}context.closePath()}},d3SymbolSquare={draw:function(context,size){var w=Math.sqrt(size),x=-w/2;context.rect(x,x,w,w)}};var sqrt3=Math.sqrt(3);const d3SymbolTriangle={draw:function(context,size){var y=-Math.sqrt(size/(sqrt3*3));context.moveTo(0,y*2),context.lineTo(-sqrt3*y,-y),context.lineTo(sqrt3*y,-y),context.closePath()}};var c=-.5,s=Math.sqrt(3)/2,k=1/Math.sqrt(12),a=(k/2+1)*3;const d3SymbolWye={draw:function(context,size){var r=Math.sqrt(size/a),x0=r/2,y0=r*k,x1=x0,y1=r*k+r,x2=-x1,y2=y1;context.moveTo(x0,y0),context.lineTo(x1,y1),context.lineTo(x2,y2),context.lineTo(c*x0-s*y0,s*x0+c*y0),context.lineTo(c*x1-s*y1,s*x1+c*y1),context.lineTo(c*x2-s*y2,s*x2+c*y2),context.lineTo(c*x0+s*y0,c*y0-s*x0),context.lineTo(c*x1+s*y1,c*y1-s*x1),context.lineTo(c*x2+s*y2,c*y2-s*x2),context.closePath()}};function d3Symbol(){var type=constant(d3SymbolCircle),size=constant(64),context=null;function symbol(){var buffer;if(context||(context=buffer=path()),type.apply(this,arguments).draw(context,+size.apply(this,arguments)),buffer)return context=null,buffer+""||null}return symbol.type=function(_){return arguments.length?(type=typeof _=="function"?_:constant(_),symbol):type},symbol.size=function(_){return arguments.length?(size=typeof _=="function"?_:constant(+_),symbol):size},symbol.context=function(_){return arguments.length?(context=_??null,symbol):context},symbol}var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol=="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},d3_identity=function(d){return d},d3_reverse=function(arr){for(var mirror=[],i=0,l=arr.length;i<l;i++)mirror[i]=arr[l-i-1];return mirror},d3_textWrapping=function(text,width){text.each(function(){var text2=common.select(this),words=text2.text().split(/\s+/).reverse(),word,line=[],lineHeight=1.2;text2.attr("y");for(var dy=parseFloat(text2.attr("dy"))||0,tspan=text2.text(null).append("tspan").attr("x",0).attr("dy",dy+"em");word=words.pop();)line.push(word),tspan.text(line.join(" ")),tspan.node().getComputedTextLength()>width&&line.length>1&&(line.pop(),tspan.text(line.join(" ")),line=[word],tspan=text2.append("tspan").attr("x",0).attr("dy",lineHeight+dy+"em").text(word))})},d3_mergeLabels=function(){var gen=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],labels=arguments[1],domain=arguments[2],range=arguments[3],labelDelimiter=arguments[4];if((typeof labels>"u"?"undefined":_typeof(labels))==="object"){if(labels.length===0)return gen;for(var i=labels.length;i<gen.length;i++)labels.push(gen[i]);return labels}else if(typeof labels=="function"){for(var customLabels=[],genLength=gen.length,_i=0;_i<genLength;_i++)customLabels.push(labels({i:_i,genLength,generatedLabels:gen,domain,range,labelDelimiter}));return customLabels}return gen},d3_linearLegend=function(scale,cells,labelFormat){var data=[];if(cells.length>1)data=cells;else for(var domain=scale.domain(),increment=(domain[domain.length-1]-domain[0])/(cells-1),i=0;i<cells;i++)data.push(domain[0]+i*increment);var labels=data.map(labelFormat);return{data,labels,feature:function(d){return scale(d)}}},d3_quantLegend=function(scale,labelFormat,labelDelimiter){var labels=scale.range().map(function(d){var invert=scale.invertExtent(d);return labelFormat(invert[0])+" "+labelDelimiter+" "+labelFormat(invert[1])});return{data:scale.range(),labels,feature:d3_identity}},d3_ordinalLegend=function(scale){return{data:scale.domain(),labels:scale.domain(),feature:function(d){return scale(d)}}},d3_cellOver=function(cellDispatcher,d,obj){cellDispatcher.call("cellover",obj,d)},d3_cellOut=function(cellDispatcher,d,obj){cellDispatcher.call("cellout",obj,d)},d3_cellClick=function(cellDispatcher,d,obj){cellDispatcher.call("cellclick",obj,d)},helper={d3_drawShapes:function(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2){shape==="rect"?shapes.attr("height",shapeHeight).attr("width",shapeWidth):shape==="circle"?shapes.attr("r",shapeRadius):shape==="line"?shapes.attr("x1",0).attr("x2",shapeWidth).attr("y1",0).attr("y2",0):shape==="path"&&shapes.attr("d",path2)},d3_addText:function(svg,enter,labels,classPrefix,labelWidth){enter.append("text").attr("class",classPrefix+"label");var text=svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").data(labels).text(d3_identity);return labelWidth&&svg.selectAll("g."+classPrefix+"cell text."+classPrefix+"label").call(d3_textWrapping,labelWidth),text},d3_calcType:function(scale,ascending,cells,labels,labelFormat,labelDelimiter){var type=scale.invertExtent?d3_quantLegend(scale,labelFormat,labelDelimiter):scale.ticks?d3_linearLegend(scale,cells,labelFormat):d3_ordinalLegend(scale),range=scale.range&&scale.range()||scale.domain();return type.labels=d3_mergeLabels(type.labels,labels,scale.domain(),range,labelDelimiter),ascending&&(type.labels=d3_reverse(type.labels),type.data=d3_reverse(type.data)),type},d3_filterCells:function(type,cellFilter){var filterCells=type.data.map(function(d,i){return{data:d,label:type.labels[i]}}).filter(cellFilter),dataValues=filterCells.map(function(d){return d.data}),labelValues=filterCells.map(function(d){return d.label});return type.data=type.data.filter(function(d){return dataValues.indexOf(d)!==-1}),type.labels=type.labels.filter(function(d){return labelValues.indexOf(d)!==-1}),type},d3_placement:function(orient,cell,cellTrans,text,textTrans,labelAlign){cell.attr("transform",cellTrans),text.attr("transform",textTrans),orient==="horizontal"&&text.style("text-anchor",labelAlign)},d3_addEvents:function(cells,dispatcher){cells.on("mouseover.legend",function(d){d3_cellOver(dispatcher,d,this)}).on("mouseout.legend",function(d){d3_cellOut(dispatcher,d,this)}).on("click.legend",function(d){d3_cellClick(dispatcher,d,this)})},d3_title:function(svg,title,classPrefix,titleWidth){if(title!==""){var titleText=svg.selectAll("text."+classPrefix+"legendTitle");titleText.data([title]).enter().append("text").attr("class",classPrefix+"legendTitle"),svg.selectAll("text."+classPrefix+"legendTitle").text(title),titleWidth&&svg.selectAll("text."+classPrefix+"legendTitle").call(d3_textWrapping,titleWidth);var cellsSvg=svg.select("."+classPrefix+"legendCells"),yOffset=svg.select("."+classPrefix+"legendTitle").nodes().map(function(d){return d.getBBox().height})[0],xOffset=-cellsSvg.nodes().map(function(d){return d.getBBox().x})[0];cellsSvg.attr("transform","translate("+xOffset+","+yOffset+")")}},d3_defaultLocale:{format:common.format,formatPrefix:common.formatPrefix},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function color(){var scale=common.scaleLinear(),shape="rect",shapeWidth=15,shapeHeight=15,shapeRadius=10,shapePadding=2,cells=[5],cellFilter=void 0,labels=[],classPrefix="",useClass=!1,title="",locale=helper.d3_defaultLocale,specifier=helper.d3_defaultFormatSpecifier,labelOffset=10,labelAlign="middle",labelDelimiter=helper.d3_defaultDelimiter,labelWrap=void 0,orient="vertical",ascending=!1,path2=void 0,titleWidth=void 0,legendDispatcher=common.dispatch("cellover","cellout","cellclick");function legend(svg){var type=helper.d3_calcType(scale,ascending,cells,labels,locale.format(specifier),labelDelimiter),legendG=svg.selectAll("g").data([scale]);legendG.enter().append("g").attr("class",classPrefix+"legendCells"),cellFilter&&helper.d3_filterCells(type,cellFilter);var cell=svg.select("."+classPrefix+"legendCells").selectAll("."+classPrefix+"cell").data(type.data),cellEnter=cell.enter().append("g").attr("class",classPrefix+"cell");cellEnter.append(shape).attr("class",classPrefix+"swatch");var shapes=svg.selectAll("g."+classPrefix+"cell "+shape+"."+classPrefix+"swatch").data(type.data);helper.d3_addEvents(cellEnter,legendDispatcher),cell.exit().transition().style("opacity",0).remove(),shapes.exit().transition().style("opacity",0).remove(),shapes=shapes.merge(shapes),helper.d3_drawShapes(shape,shapes,shapeHeight,shapeWidth,shapeRadius,path2);var text=helper.d3_addText(svg,cellEnter,type.labels,classPrefix,labelWrap);cell=cellEnter.merge(cell);var textSize=text.nodes().map(function(d){return d.getBBox()}),shapeSize=shapes.nodes().map(function(d){return d.getBBox()});useClass?shapes.attr("class",function(d){return classPrefix+"swatch "+type.feature(d)}):shape=="line"?shapes.style("stroke",type.feature):shapes.style("fill",type.feature);var cellTrans=void 0,textTrans=void 0,textAlign=labelAlign=="start"?0:labelAlign=="middle"?.5:1;orient==="vertical"?function(){var cellSize=textSize.map(function(d,i){return Math.max(d.height,shapeSize[i].height)});cellTrans=function(d,i){var height=common.sum(cellSize.slice(0,i));return"translate(0, "+(height+i*shapePadding)+")"},textTrans=function(d,i){return"translate( "+(shapeSize[i].width+shapeSize[i].x+labelOffset)+", "+(shapeSize[i].y+shapeSize[i].height/2+5)+")"}}():orient==="horizontal"&&(cellTrans=function(d,i){return"translate("+i*(shapeSize[i].width+shapePadding)+",0)"},textTrans=function(d,i){return"translate("+(shapeSize[i].width*textAlign+shapeSize[i].x)+`,
3
+ `+(shapeSize[i].height+shapeSize[i].y+labelOffset+8)+")"}),helper.d3_placement(orient,cell,cellTrans,text,textTrans,labelAlign),helper.d3_title(svg,title,classPrefix,titleWidth),cell.transition().style("opacity",1)}return legend.scale=function(_){return arguments.length?(scale=_,legend):scale},legend.cells=function(_){return arguments.length?((_.length>1||_>=2)&&(cells=_),legend):cells},legend.cellFilter=function(_){return arguments.length?(cellFilter=_,legend):cellFilter},legend.shape=function(_,d){return arguments.length?((_=="rect"||_=="circle"||_=="line"||_=="path"&&typeof d=="string")&&(shape=_,path2=d),legend):shape},legend.shapeWidth=function(_){return arguments.length?(shapeWidth=+_,legend):shapeWidth},legend.shapeHeight=function(_){return arguments.length?(shapeHeight=+_,legend):shapeHeight},legend.shapeRadius=function(_){return arguments.length?(shapeRadius=+_,legend):shapeRadius},legend.shapePadding=function(_){return arguments.length?(shapePadding=+_,legend):shapePadding},legend.labels=function(_){return arguments.length?(labels=_,legend):labels},legend.labelAlign=function(_){return arguments.length?((_=="start"||_=="end"||_=="middle")&&(labelAlign=_),legend):labelAlign},legend.locale=function(_){return arguments.length?(locale=common.formatLocale(_),legend):locale},legend.labelFormat=function(_){return arguments.length?(specifier=common.formatSpecifier(_),legend):legend.locale().format(specifier)},legend.labelOffset=function(_){return arguments.length?(labelOffset=+_,legend):labelOffset},legend.labelDelimiter=function(_){return arguments.length?(labelDelimiter=_,legend):labelDelimiter},legend.labelWrap=function(_){return arguments.length?(labelWrap=_,legend):labelWrap},legend.useClass=function(_){return arguments.length?((_===!0||_===!1)&&(useClass=_),legend):useClass},legend.orient=function(_){return arguments.length?(_=_.toLowerCase(),(_=="horizontal"||_=="vertical")&&(orient=_),legend):orient},legend.ascending=function(_){return arguments.length?(ascending=!!_,legend):ascending},legend.classPrefix=function(_){return arguments.length?(classPrefix=_,legend):classPrefix},legend.title=function(_){return arguments.length?(title=_,legend):title},legend.titleWidth=function(_){return arguments.length?(titleWidth=_,legend):titleWidth},legend.textWrap=function(_){return arguments.length?(textWrap=_,legend):textWrap},legend.on=function(){var value=legendDispatcher.on.apply(legendDispatcher,arguments);return value===legendDispatcher?legend:value},legend}class Legend extends common.SVGWidget{constructor(owner){super(),__publicField2(this,"_owner"),__publicField2(this,"_targetWidget"),__publicField2(this,"_targetWidgetMonitor"),__publicField2(this,"_legendOrdinal"),__publicField2(this,"_disabled",[]),__publicField2(this,"_symbolTypeMap",{circle:d3SymbolCircle,cross:d3SymbolCross,diamond:d3SymbolDiamond,square:d3SymbolSquare,star:d3SymbolStar,triangle:d3SymbolTriangle,wye:d3SymbolWye}),__publicField2(this,"_g"),__publicField2(this,"_containerSize"),this._owner=owner,this._drawStartPos="origin";const context=this;this._legendOrdinal=color().shape("path",d3Symbol().type(d3SymbolCircle).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(d){context.onClick(d,this)}).on("cellover",d=>{context.onOver(d,this)}).on("cellout",d=>{context.onOut(d,this)})}isDisabled(d){return typeof d>"u"?!1:typeof d=="string"?d.indexOf("__")===0||this._disabled.indexOf(d)>=0:d instanceof common.Database.Field?d.id().indexOf("__")===0||this._disabled.indexOf(d.id())>=0:this._disabled.indexOf(d)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(d=>!this.isDisabled(d))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(d=>!this.isDisabled(d))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(row=>!this.isDisabled(row[0]));case"ND":const disabledCols={};let anyDisabled=!1;return this.columns().forEach((col,idx)=>{const disabled=this.isDisabled(col);disabledCols[idx]=disabled,disabled&&(anyDisabled=!0)}),anyDisabled?this.data().map(row=>row.filter((cell,idx)=>!disabledCols[idx])):this.data()}return this.data()}isRainbow(){const widget=this.getWidget();return widget&&widget._palette&&widget._palette.type()==="rainbow"}targetWidget(_){if(!arguments.length)return this._targetWidget;if(this._targetWidget=_,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){const context=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(key,newProp,oldProp,source){switch(key){case"chart":case"columns":case"data":case"paletteID":context.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){const widget=this.getWidget();if(widget&&widget._palette)switch(widget._palette.type()){case"ordinal":return common.Palette.ordinal(widget._palette.id());case"rainbow":return common.Palette.rainbow(widget._palette.id())}return common.Palette.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){const widget=this.getWidget();if(widget&&widget.fillColor)return widget._palette&&widget.paletteID&&widget._palette.name!==widget.paletteID()&&(widget._palette=widget._palette.switch(widget.paletteID())),(row,col,sel)=>widget.fillColor(row,col,sel);const palette=common.Palette.ordinal(widget&&widget.paletteID&&widget.paletteID()||"default");return(row,col,sel)=>palette(col)}fillColor(row,col,sel){return this.fillColorFunc()(row,col,sel)}enter(domNode,element){super.enter(domNode,element),this._g=element.append("g").attr("class","legendOrdinal")}calcMetaData(){let dataArr=[],total=0,maxLabelWidth=0;const colLength=this.columns().length;if(this._targetWidget){const columns=this.columns();switch(this.getPaletteType()){case"ordinal":const fillColor=this.fillColorFunc();let val=0;switch(this.dataFamily()){case"2D":dataArr=this.data().map(function(n,i){val=this.data()[i].slice(1,colLength).reduce((acc,n2)=>acc+n2,0);const disabled=this.isDisabled(n[0]);disabled||(total+=val);const label=n[0]+(!disabled&&this.showSeriesTotal()?` (${val})`:""),textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(n,n[0],!1),n[0],label]},this);break;case"ND":dataArr=this.columns().filter(col=>col.indexOf("__")!==0).filter(function(n,i){return i>0}).map(function(n,i){val=this.data().reduce((acc,n2)=>acc+n2[i+1],0);const disabled=this.isDisabled(columns[i+1]),label=n+(!disabled&&this.showSeriesTotal()?` (${val})`:"");disabled||(total+=val);const textSize=this.textSize(label);return maxLabelWidth<textSize.width&&(maxLabelWidth=textSize.width),[fillColor(void 0,n,!1),n,label]},this);break;default:dataArr=this.columns().map(function(n){return[fillColor(void 0,n,!1),n]},this);break}break;case"rainbow":const palette=this.getPalette(),format$1=common.format(this.rainbowFormat()),widget=this.getWidget(),steps=this.rainbowBins(),weightMin=widget._dataMinWeight,weightMax=widget._dataMaxWeight,stepWeightDiff=(weightMax-weightMin)/(steps-1);dataArr.push([palette(weightMin,weightMin,weightMax),format$1(weightMin)]);for(let x=1;x<steps-1;++x){let mid=stepWeightDiff*x;Math.floor(mid)>parseInt(dataArr[0][1])&&(mid=Math.floor(mid)),dataArr.push([palette(mid,weightMin,weightMax),format$1(mid)])}dataArr.push([palette(weightMax,weightMin,weightMax),format$1(weightMax)]);break}}return{dataArr,total,maxLabelWidth}}update(domNode,element){super.update(domNode,element);const{dataArr,maxLabelWidth,total}=this.calcMetaData(),radius=this.shapeRadius(),size=this.radiusToSymbolSize(radius),strokeWidth=1;let shapePadding=this.itemPadding();this.orientation()==="horizontal"&&(shapePadding+=maxLabelWidth-radius*2);const ordinal=common.scaleOrdinal().domain(dataArr.map(row=>row[1])).range(dataArr.map(row=>row[0]));this._legendOrdinal.shape("path",d3Symbol().type(this._symbolTypeMap[this.symbolType()]).size(size)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(shapePadding).scale(ordinal).labels(d=>dataArr[d.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(element,dataArr);const legendCellsBbox=this._g.select(".legendCells").node().getBBox();let offsetX=Math.abs(legendCellsBbox.x),offsetY=Math.abs(legendCellsBbox.y)+strokeWidth;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?offsetX+=strokeWidth:this.labelAlign()==="end"&&(offsetX-=strokeWidth),this.width()>legendCellsBbox.width){const extraWidth=this.width()-legendCellsBbox.width;offsetX+=extraWidth/2}}else if(this.orientation()==="vertical"&&(offsetX+=strokeWidth,this._containerSize.height>legendCellsBbox.height)){const extraHeight=this.height()-legendCellsBbox.height;offsetY+=extraHeight/2}this._g.attr("transform",`translate(${offsetX}, ${offsetY})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());const legendTotal=this._g.selectAll(".legendTotal").data(dataArr.length&&this.showLegendTotal()?[total]:[]),totalText=`Total: ${total}`,totalOffsetX=-offsetX,totalOffsetY=legendCellsBbox.height+this.itemPadding()+strokeWidth;this.enableOverflowScroll(!1),this.enableOverflow(!0),legendTotal.enter().append("text").classed("legendTotal",!0).merge(legendTotal).attr("transform",`translate(${totalOffsetX}, ${totalOffsetY})`).text(totalText),legendTotal.exit().remove()}updateDisabled(element,dataArr){element.style("cursor","pointer").selectAll("path.swatch").filter((d,i)=>i<dataArr.length).style("stroke",(d,i)=>dataArr[i][0]).style("fill",(d,i)=>this._disabled.indexOf(d)<0?dataArr[i][0]:"white")}postUpdate(domNode,element){let w;this._boundingBox&&(w=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(domNode,element),w!==void 0&&(this._boundingBox.width=w),this._parentRelativeDiv.style("overflow","hidden")}exit(domNode,element){super.exit(domNode,element)}radiusToSymbolSize(radius){const circleSize=Math.pow(radius,2)*Math.PI;switch(this.symbolType()){case"star":return circleSize*.45;case"triangle":return circleSize*.65;case"cross":case"diamond":case"wye":return circleSize*.75;case"circle":return circleSize;case"square":return circleSize*1.3}}onClick(d,domNode){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":const disabledIdx=this._disabled.indexOf(d);disabledIdx<0?this._disabled.push(d):this._disabled.splice(disabledIdx,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(d,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(d)<0&&this._owner.highlightColumn(d);break}break}}onOut(d,domNode){if(api.instanceOfIHighlight(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(rowData,rowIdx){}onMouseOver(rowData,rowIdx){}resize(_size){let retVal;if(this.fitToContent()){this._containerSize=_size;const bbox=this.getBBox();_size.width>bbox.width&&(bbox.width=_size.width),_size.height>bbox.height&&(bbox.height=_size.height),retVal=super.resize.apply(this,[{...bbox}])}else retVal=super.resize.apply(this,arguments);return retVal}}Legend.prototype._class+=" layout_Legend",Legend.prototype.publish("title","","string","Title"),Legend.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]),Legend.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0}),Legend.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),Legend.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]}),Legend.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w=>!w.isRainbow()}),Legend.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w=>!w.isRainbow()}),Legend.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series"),Legend.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null),Legend.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)"),Legend.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)"),Legend.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions"),Legend.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:w=>w.orientation()==="vertical"});class Modal extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_widget"),__publicField2(this,"_relativeTarget"),__publicField2(this,"_fade"),__publicField2(this,"_modal"),__publicField2(this,"_modalHeader"),__publicField2(this,"_modalBody"),__publicField2(this,"_modalHeaderAnnotations"),__publicField2(this,"_modalHeaderCloseButton"),__publicField2(this,"_close"),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let relativeTarget;return this.relativeTargetId()&&(relativeTarget=document.getElementById(this.relativeTargetId()),relativeTarget)?relativeTarget:!relativeTarget&&(relativeTarget=this.locateAncestor("layout_Grid"),relativeTarget&&relativeTarget.element)?relativeTarget.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());const modalRect=this._modal.node().getBoundingClientRect(),headerRect=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",modalRect.height-headerRect.height+"px").style("width",modalRect.width),modalRect}setFadePosition(rect){this._fade.style("top",rect.top+"px").style("left",rect.left+"px").style("width",rect.width+"px").style("height",rect.height+"px")}setModalPosition(rect){const modalRect=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${rect.top}px)`).style("left",`calc(${this.fixedLeft()} + ${rect.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",rect.top+rect.height/2-modalRect.height/2+"px").style("left",rect.left+rect.width/2-modalRect.width/2+"px");else if(this.minHeight()||this.minWidth()){const contentRect=this._modal.node().getBoundingClientRect();this._modal.style("top",rect.top+rect.height/2-contentRect.height/2+"px").style("left",rect.left+rect.width/2-contentRect.width/2+"px")}}resize(size){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(width,height){const headerRect=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",width+"px").style("height",height+headerRect.height+"px").style("min-width",width+"px").style("min-height",height+headerRect.height+"px"),this._modalHeader.style("width",width+"px"),this._modalBody.style("width",width+"px").style("height",height+"px"),this.minWidth(width+"px").minHeight(height+headerRect.height+"px").resize({height:height+headerRect.height,width})}enter(domNode,element){super.enter(domNode,element),this._fade=element.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());const header_h=this.titleFontSize()*2;this._modal=element.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",header_h+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${header_h}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",n=>{this.enableClickFadeToClose()&&this.closeModal()})}update(domNode,element){super.update(domNode,element),element.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();const rect=this._relativeTarget.getBoundingClientRect();this.setFadePosition(rect),this.setModalPosition(rect),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(domNode,element){this._widget&&this._widget.target(null),super.exit(domNode,element)}formattedTitle(){const title=this.title_exists()?this.title().trim():"";return title.length>0&&title.slice(0,1)==="("&&title.slice(-1)===")"?title.slice(1,-1):this.title()}}Modal.prototype._class+=" layout_Modal",Modal.prototype.publish("title",null,"string","title"),Modal.prototype.publish("widget",null,"widget","widget"),Modal.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)"),Modal.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor"),Modal.prototype.publish("relativeTargetId",null,"string","relativeTargetId"),Modal.prototype.publish("show",!0,"boolean","show"),Modal.prototype.publish("showFade",!0,"boolean","showFade"),Modal.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose"),Modal.prototype.publish("minWidth","400px","string","minWidth"),Modal.prototype.publish("minHeight","400px","string","minHeight"),Modal.prototype.publish("maxWidth","800px","string","maxWidth"),Modal.prototype.publish("maxHeight","800px","string","maxHeight"),Modal.prototype.publish("fixedWidth",null,"string","fixedWidth"),Modal.prototype.publish("fixedHeight",null,"string","fixedHeight"),Modal.prototype.publish("fixedTop",null,"string","fixedTop"),Modal.prototype.publish("fixedLeft",null,"string","fixedLeft"),Modal.prototype.publish("overflowX","hidden","string","overflowX"),Modal.prototype.publish("overflowY","scroll","string","overflowY");class ChartPanel extends Border2{constructor(){super(),__publicField2(this,"_legend",new Legend(this).enableOverflow(!0)),__publicField2(this,"_progressBar",new common.ProgressBar),__publicField2(this,"_autoScale",!1),__publicField2(this,"_resolutions",{tiny:{width:100,height:100},small:{width:300,height:300}}),__publicField2(this,"_modal",new Modal),__publicField2(this,"_highlight"),__publicField2(this,"_scale"),__publicField2(this,"_orig_size"),__publicField2(this,"_toggleInfo",new common.ToggleButton().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new common.Text().text(this.description())).show(!0).render();const origCloseFunc=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=origCloseFunc}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{})),__publicField2(this,"_toggleData",new common.ToggleButton().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()})),__publicField2(this,"_buttonDownload",new common.Button().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()})),__publicField2(this,"_buttonDownloadImage",new common.Button().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()})),__publicField2(this,"_toggleLegend",new common.ToggleButton().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{const selected=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(selected):this.legendPosition()==="right"&&this.showRight(selected),this.legendVisible(selected),this.render()})),__publicField2(this,"_spacer",new common.Spacer),__publicField2(this,"_titleBar",new common.TitleBar().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend])),__publicField2(this,"_carousel",new Carousel),__publicField2(this,"_table",new dgrid.Table),__publicField2(this,"_widget"),__publicField2(this,"_hideLegendToggleList",["dgrid_Table"]),__publicField2(this,"_prevdataVisible"),__publicField2(this,"_prevlegendVisible"),__publicField2(this,"_prevLegendPosition"),__publicField2(this,"_prevChartDataFamily"),__publicField2(this,"_prevChart"),__publicField2(this,"_prevButtons"),this._tag="div"}fields(_){return arguments.length?(super.fields(_),this._legend.fields(_),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(_,asDefault){return arguments.length?(super.columns(_,asDefault),this._legend.columns(_,asDefault),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(_){return arguments.length?(super.data(_),this._legend.data(_),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(_){return arguments.length?(this._highlight=_,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(_){return arguments.length?(this._titleBar.buttons(_),this):this._titleBar.buttons()}downloadCSV(){const namePrefix=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",nameSuffix=this.downloadTimestampSuffix()?"_"+common.Utility.timestamp():"";return common.Utility.downloadString("CSV",this._widget.export("CSV"),namePrefix+nameSuffix),this}downloadPNG(){const widget=this.widget();return widget instanceof common.SVGWidget&&(this.legendVisible()?widget.downloadPNG(this.title(),void 0,this._legend):widget.downloadPNG(this.title())),this}highlightColumn(column){if(column){const cssTag=`series-${this.cssTag(column)}`;this._centerWA.element().selectAll(".series").each(function(){const element=common.select(this),highlight=element.classed(cssTag);element.classed("highlight",highlight).classed("lowlight",!highlight)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(domNode,element){super.enter(domNode,element),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(domNode,element),this.setOrigSize()}preUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(element){const scale_x=this._orig_size.width/this._resolutions.small.width,scale_y=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(scale_x,scale_y);const x_is_smaller=this._scale===scale_x;this.size({width:x_is_smaller?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:x_is_smaller?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),element.select("div.title-icon").style("position","static"),element.selectAll("lhs").style("display","none"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.style("transform",`scale(${this._scale})`)}preUpdateRegular(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden"),element.select("div.title-icon").style("position","static"),element.style("transform","translate(0px,0px) scale(1)")}update(domNode,element){super.update(domNode,element)}preUpdate(domNode,element){switch(super.preUpdate(domNode,element),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(element);break;case"small":this.preUpdateSmall(element);break;case"regular":this.preUpdateRegular(element);break}const chart=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(chart._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(element.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(chart.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==chart){this._prevChart=chart;const widgetIconBar=chart?chart._titleBar||chart._iconBar:void 0;if(widgetIconBar&&widgetIconBar instanceof common.IconBar){this._prevButtons=this._prevButtons||[...this.buttons()];const buttons=[...widgetIconBar.buttons(),new common.Spacer,...this._prevButtons];widgetIconBar.buttons([]).render(),this.buttons(buttons)}else this._prevButtons&&this.buttons(this._prevButtons)}const hiddenButtons=[];this.dataButtonVisible()||hiddenButtons.push(this._toggleData),this.downloadButtonVisible()||hiddenButtons.push(this._buttonDownload),this.downloadImageButtonVisible()||hiddenButtons.push(this._buttonDownloadImage),this.legendButtonVisible()||hiddenButtons.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof common.SVGWidget),this._titleBar.hiddenButtons(hiddenButtons).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(domNode,element){switch(super.postUpdate(domNode,element),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(element);break;case"small":this.postUpdateSmall(element);break;case"regular":this.postUpdateRegular(element);break}}postUpdateTiny(element){element.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),element.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),element.style("transform","translate(0px,0px) scale(1)");const iconDiv=element.selectAll("div.title-icon"),_node=iconDiv.node(),containerRect=element.node().parentElement.getBoundingClientRect();if(_node){const rect=iconDiv.node().getBoundingClientRect(),icon_top=containerRect.height/2;iconDiv.style("position","absolute").style("left",`calc(50% - ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`),element.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${rect.width/2}px)`).style("top",`${icon_top-rect.height/2}px`)}}postUpdateSmall(element){element.selectAll("lhs").style("display","none"),element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden");const rect=element.node().getBoundingClientRect(),parentRect=element.node().parentElement.getBoundingClientRect();element.style("transform",`translate(${parentRect.x-rect.x}px, ${parentRect.y-rect.y}px) scale(${this._scale})`)}postUpdateRegular(element){element.selectAll("div.title-icon").style("position","static"),element.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),element.selectAll("div.data-count").style("visibility","hidden")}exit(domNode,element){this._progressBar.exit(domNode,element),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(domNode,element)}click(row,column,selected){}dblclick(row,column,selected){}vertex_click(row,col,sel,more){more&&more.vertex}vertex_dblclick(row,col,sel,more){more&&more.vertex}edge_click(row,col,sel,more){more&&more.edge}edge_dblclick(row,col,sel,more){more&&more.edge}}ChartPanel.prototype._class+=" layout_ChartPanel",ChartPanel.prototype.publishReset(),ChartPanel.prototype.publishProxy("title","_titleBar"),ChartPanel.prototype.publish("titleVisible",!0,"boolean"),ChartPanel.prototype.publish("titleOverlay",!1,"boolean"),ChartPanel.prototype.publishProxy("titleIcon","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFont","_titleBar"),ChartPanel.prototype.publishProxy("titleFont","_titleBar"),ChartPanel.prototype.publishProxy("titleIconFontSize","_titleBar"),ChartPanel.prototype.publishProxy("titleFontSize","_titleBar"),ChartPanel.prototype.publishProxy("description","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFont","_titleBar"),ChartPanel.prototype.publishProxy("descriptionFontSize","_titleBar"),ChartPanel.prototype.publish("dataVisible",!1,"boolean","Show data table"),ChartPanel.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button"),ChartPanel.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button"),ChartPanel.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button"),ChartPanel.prototype.publish("downloadTitle","","string","File name when downloaded"),ChartPanel.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix"),ChartPanel.prototype.publish("legendVisible",!1,"boolean","Show legend"),ChartPanel.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button"),ChartPanel.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]),ChartPanel.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth"),ChartPanel.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal"),ChartPanel.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal"),ChartPanel.prototype.publishProxy("legend_itemPadding","_legend","itemPadding"),ChartPanel.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius"),ChartPanel.prototype.publishProxy("legend_symbolType","_legend","symbolType"),ChartPanel.prototype.publishProxy("legend_labelAlign","_legend","labelAlign"),ChartPanel.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1}),ChartPanel.prototype.publish("enableAutoscaling",!1,"boolean"),ChartPanel.prototype.publish("highlightSize",4,"number"),ChartPanel.prototype.publish("highlightColor","#e67e22","html-color"),ChartPanel.prototype.publishProxy("progress_halfLife","_progressBar","halfLife"),ChartPanel.prototype.publishProxy("progress_decay","_progressBar","decay"),ChartPanel.prototype.publishProxy("progress_size","_progressBar","size"),ChartPanel.prototype.publishProxy("progress_color","_progressBar","color"),ChartPanel.prototype.publishProxy("progress_blurBar","_progressBar","blurBar"),ChartPanel.prototype.publishProxy("progress_blurSize","_progressBar","blurSize"),ChartPanel.prototype.publishProxy("progress_blurColor","_progressBar","blurColor"),ChartPanel.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity"),ChartPanel.prototype.widget=function(_){if(!arguments.length)return this._widget;this._carousel.widgets([_,this._table]),this._widget=_,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());const context=this,tmpAny=this._widget;return tmpAny.click=function(){context.click.apply(context,arguments)},tmpAny.dblclick=function(){context.dblclick.apply(context,arguments)},tmpAny.vertex_click=function(){context.vertex_click.apply(context,arguments)},tmpAny.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},tmpAny.edge_click=function(){context.edge_click.apply(context,arguments)},tmpAny.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)},this};class FlexGrid extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),common.select(domNode.parentNode).style("height","100%").style("width","100%")}update(domNode,element){super.update(domNode,element);const context=this,cachedSizes=[];this.updateFlexParent(element);const listItems=element.selectAll(".FlexGrid-list-item").data(this.widgets(),w=>w.id());listItems.enter().append("div").classed("FlexGrid-list-item",!0).each(function(w){w.target(this)}).merge(listItems).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(n,i)=>{const flexBasis=this.widgetsFlexBasis()[i];return typeof flexBasis<"u"?flexBasis:this.flexBasis()}).style("flex-grow",(n,i)=>{const flexGrow=this.widgetsFlexGrow()[i];return typeof flexGrow<"u"?flexGrow:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){const rect=this.getBoundingClientRect();cachedSizes.push([rect.width,rect.height])}).each(function(w,i){this.firstChild.style.display="block",w.resize({width:cachedSizes[i][0]-2*context.borderWidth(),height:cachedSizes[i][1]-2*context.borderWidth()})}),listItems.exit().remove()}exit(domNode,element){super.exit(domNode,element)}updateFlexParent(element){element.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}}FlexGrid.prototype._class+=" layout_FlexGrid",FlexGrid.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders"),FlexGrid.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)"),FlexGrid.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]),FlexGrid.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]),FlexGrid.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:w=>w.flexWrap()!=="nowrap"}),FlexGrid.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show"),FlexGrid.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show"),FlexGrid.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)"),FlexGrid.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)"),FlexGrid.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]),FlexGrid.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]),FlexGrid.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items"),FlexGrid.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items"),FlexGrid.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array"),FlexGrid.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array"),FlexGrid.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var gridList$2={exports:{}},gridList$1=gridList$2.exports,hasRequiredGridList;function requireGridList(){return hasRequiredGridList||(hasRequiredGridList=1,function(module2,exports3){(function(root,factory){module2.exports=factory()})(gridList$1,function(){var GridList2=function(items,options){this._options=options;for(var k2 in this.defaults)this._options.hasOwnProperty(k2)||(this._options[k2]=this.defaults[k2]);this.items=items,this._adjustSizeOfItems(),this.generateGrid()};GridList2.cloneItems=function(items,_items){var i,k2;for(_items===void 0&&(_items=[]),i=0;i<items.length;i++){_items[i]||(_items[i]={});for(k2 in items[i])_items[i][k2]=items[i][k2]}return _items},GridList2.prototype={defaults:{lanes:5,direction:"horizontal"},toString:function(){var widthOfGrid=this.grid.length,output=`
244
4
  #|`,border=`
245
5
  --`,item,i,j;for(i=0;i<widthOfGrid;i++)output+=" "+this._padNumber(i," "),border+="---";for(output+=border,i=0;i<this._options.lanes;i++)for(output+=`
246
6
  `+this._padNumber(i," ")+"|",j=0;j<widthOfGrid;j++)output+=" ",item=this.grid[j][i],output+=item?this._padNumber(this.items.indexOf(item),"0"):"--";return output+=`
247
- `,output},generateGrid:function(){var i;for(this._resetGrid(),i=0;i<this.items.length;i++)this._markItemPositionToGrid(this.items[i])},resizeGrid:function(lanes){var currentColumn=0;this._options.lanes=lanes,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var i=0;i<this.items.length;i++){var item=this.items[i],position=this._getItemPosition(item);this._updateItemPosition(item,this.findPositionForItem(item,{x:currentColumn,y:0})),currentColumn=Math.max(currentColumn,position.x)}this._pullItemsToLeft()},findPositionForItem:function(item,start,fixedRow){var x,y,position;for(x=start.x;x<this.grid.length;x++)if(fixedRow!==void 0){if(position=[x,fixedRow],this._itemFitsAtPosition(item,position))return position}else for(y=start.y;y<this._options.lanes;y++)if(position=[x,y],this._itemFitsAtPosition(item,position))return position;var newCol=this.grid.length,newRow=0;return fixedRow!==void 0&&this._itemFitsAtPosition(item,[newCol,fixedRow])&&(newRow=fixedRow),[newCol,newRow]},moveItemToPosition:function(item,newPosition){var position=this._getItemPosition({x:newPosition[0],y:newPosition[1],w:item.w,h:item.h});this._updateItemPosition(item,[position.x,position.y]),this._resolveCollisions(item)},resizeItem:function(item,size){var width=size.w||item.w,height=size.h||item.h;this._updateItemSize(item,width,height),this._resolveCollisions(item),this._pullItemsToLeft()},getChangedItems:function(initialItems,idAttribute){for(var changedItems=[],i=0;i<initialItems.length;i++){var item=this._getItemByAttribute(idAttribute,initialItems[i][idAttribute]);(item.x!==initialItems[i].x||item.y!==initialItems[i].y||item.w!==initialItems[i].w||item.h!==initialItems[i].h)&&changedItems.push(item)}return changedItems},_sortItemsByPosition:function(){this.items.sort((function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return position1.x!=position2.x?position1.x-position2.x:position1.y!=position2.y?position1.y-position2.y:0}).bind(this))},_adjustSizeOfItems:function(){for(var i=0;i<this.items.length;i++){var item=this.items[i];item.autoSize===void 0&&(item.autoSize=item.w===0||item.h===0),item.autoSize&&(this._options.direction==="horizontal"?item.h=this._options.lanes:item.w=this._options.lanes)}},_resetGrid:function(){this.grid=[]},_itemFitsAtPosition:function(item,newPosition){var position=this._getItemPosition(item),x,y;if(newPosition[0]<0||newPosition[1]<0||newPosition[1]+position.h>this._options.lanes)return!1;for(x=newPosition[0];x<newPosition[0]+position.w;x++){var col=this.grid[x];if(col){for(y=newPosition[1];y<newPosition[1]+position.h;y++)if(col[y]&&col[y]!==item)return!1}}return!0},_updateItemPosition:function(item,position){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),this._setItemPosition(item,position),this._markItemPositionToGrid(item)},_updateItemSize:function(item,width,height){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),item.w=width,item.h=height,this._markItemPositionToGrid(item)},_markItemPositionToGrid:function(item){var position=this._getItemPosition(item),x,y;for(this._ensureColumns(position.x+position.w),x=position.x;x<position.x+position.w;x++)for(y=position.y;y<position.y+position.h;y++)this.grid[x][y]=item},_deleteItemPositionFromGrid:function(item){var position=this._getItemPosition(item),x,y;for(x=position.x;x<position.x+position.w;x++)if(this.grid[x])for(y=position.y;y<position.y+position.h;y++)this.grid[x][y]==item&&(this.grid[x][y]=null)},_ensureColumns:function(N){var i;for(i=0;i<N;i++)this.grid[i]||this.grid.push(new GridCol(this._options.lanes))},_getItemsCollidingWithItem:function(item){for(var collidingItems=[],i=0;i<this.items.length;i++)item!=this.items[i]&&this._itemsAreColliding(item,this.items[i])&&collidingItems.push(i);return collidingItems},_itemsAreColliding:function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return!(position2.x>=position1.x+position1.w||position2.x+position2.w<=position1.x||position2.y>=position1.y+position1.h||position2.y+position2.h<=position1.y)},_resolveCollisions:function(item){this._tryToResolveCollisionsLocally(item)||this._pullItemsToLeft(item),this._pullItemsToLeft()},_tryToResolveCollisionsLocally:function(item){var collidingItems=this._getItemsCollidingWithItem(item);if(!collidingItems.length)return!0;var _gridList=new GridList2([],this._options),leftOfItem,rightOfItem,aboveOfItem,belowOfItem;GridList2.cloneItems(this.items,_gridList.items),_gridList.generateGrid();for(var i=0;i<collidingItems.length;i++){var collidingItem=_gridList.items[collidingItems[i]],collidingPosition=this._getItemPosition(collidingItem),position=this._getItemPosition(item);if(leftOfItem=[position.x-collidingPosition.w,collidingPosition.y],rightOfItem=[position.x+position.w,collidingPosition.y],aboveOfItem=[collidingPosition.x,position.y-collidingPosition.h],belowOfItem=[collidingPosition.x,position.y+position.h],_gridList._itemFitsAtPosition(collidingItem,leftOfItem))_gridList._updateItemPosition(collidingItem,leftOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,aboveOfItem))_gridList._updateItemPosition(collidingItem,aboveOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,belowOfItem))_gridList._updateItemPosition(collidingItem,belowOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,rightOfItem))_gridList._updateItemPosition(collidingItem,rightOfItem);else return!1}return GridList2.cloneItems(_gridList.items,this.items),this.generateGrid(),!0},_pullItemsToLeft:function(fixedItem){if(this._sortItemsByPosition(),this._resetGrid(),fixedItem){var fixedPosition=this._getItemPosition(fixedItem);this._updateItemPosition(fixedItem,[fixedPosition.x,fixedPosition.y])}for(var i=0;i<this.items.length;i++){var item=this.items[i],position=this._getItemPosition(item);if(!(fixedItem&&item==fixedItem)){var x=this._findLeftMostPositionForItem(item),newPosition=this.findPositionForItem(item,{x,y:0},position.y);this._updateItemPosition(item,newPosition)}}},_findLeftMostPositionForItem:function(item){for(var tail=0,position=this._getItemPosition(item),i=0;i<this.grid.length;i++)for(var j=position.y;j<position.y+position.h;j++){var otherItem=this.grid[i][j];if(otherItem){var otherPosition=this._getItemPosition(otherItem);this.items.indexOf(otherItem)<this.items.indexOf(item)&&(tail=otherPosition.x+otherPosition.w)}}return tail},_getItemByAttribute:function(key,value){for(var i=0;i<this.items.length;i++)if(this.items[i][key]===value)return this.items[i];return null},_padNumber:function(nr,prefix){return nr>=10?nr:prefix+nr},_getItemPosition:function(item){return this._options.direction==="horizontal"?item:{x:item.y,y:item.x,w:item.h,h:item.w}},_setItemPosition:function(item,position){this._options.direction==="horizontal"?(item.x=position[0],item.y=position[1]):(item.x=position[1],item.y=position[0])}};var GridCol=function(lanes){for(var i=0;i<lanes;i++)this.push(null)};return GridCol.prototype=[],GridList2})}(gridList$2)),gridList$2.exports}var gridListExports=requireGridList();const gridList=getDefaultExportFromCjs(gridListExports),_GridList=_mergeNamespaces$1({__proto__:null,default:gridList},[gridListExports]),GridList=_GridList&&gridList||_GridList;class Grid extends common.HTMLWidget{constructor(){super(),__publicField2(this,"divItems"),__publicField2(this,"gridList"),__publicField2(this,"items"),__publicField2(this,"itemsMap"),__publicField2(this,"origItems"),__publicField2(this,"cellWidth"),__publicField2(this,"cellHeight"),__publicField2(this,"dragItem"),__publicField2(this,"dragItemPos"),__publicField2(this,"_d3Drag"),__publicField2(this,"_d3DragResize"),__publicField2(this,"_selectionBag"),__publicField2(this,"_scrollBarWidth"),this._tag="div",this._selectionBag=new common.Utility.Selection(this),this.content([])}getDimensions(){const size={width:0,height:0};return this.content().forEach(function(cell2){size.width<cell2.gridCol()+cell2.gridColSpan()&&(size.width=cell2.gridCol()+cell2.gridColSpan()),size.height<cell2.gridRow()+cell2.gridRowSpan()&&(size.height=cell2.gridRow()+cell2.gridRowSpan())},this),size}clearContent(widget){this.content(this.content().filter(function(contentWidget){if(!widget)return contentWidget.target(null),!1;let w=contentWidget;for(;w;){if(widget===w)return contentWidget.target(null),!1;w=w.widget?w.widget():null}return!0}))}setContent(row2,col,widget,title,rowSpan,colSpan){if(rowSpan=rowSpan||1,colSpan=colSpan||1,title=title||"",this.content(this.content().filter(function(contentWidget){return contentWidget.gridRow()===row2&&contentWidget.gridCol()===col?(contentWidget.target(null),!1):!0})),widget){const cell2=new Cell().gridRow(row2).gridCol(col).widget(widget).title(title).gridRowSpan(rowSpan).gridColSpan(colSpan);this.content().push(cell2)}return this}sortedContent(){return this.content().sort(function(l,r2){return l.gridRow()===r2.gridRow()?l.gridCol()-r2.gridCol():l.gridRow()-r2.gridRow()})}getCell(row2,col){let retVal=null;return this.content().some(function(cell2){return row2>=cell2.gridRow()&&row2<cell2.gridRow()+cell2.gridRowSpan()&&col>=cell2.gridCol()&&col<cell2.gridCol()+cell2.gridColSpan()?(retVal=cell2,!0):!1}),retVal}getWidgetCell(id){let retVal=null;return this.content().some(function(cell2){return cell2.widget().id()===id?(retVal=cell2,!0):!1}),retVal}getContent(id){let retVal=null;return this.content().some(function(cell2){return cell2.widget().id()===id?(retVal=cell2.widget(),!0):!1}),retVal}cellToGridItem(cell2){return{x:cell2.gridCol(),y:cell2.gridRow(),w:cell2.gridColSpan(),h:cell2.gridRowSpan(),id:cell2.id(),cell:cell2}}gridItemToCell(item){item.cell.gridCol(item.x).gridRow(item.y).gridColSpan(item.w).gridRowSpan(item.h)}resetItemsPos(){this.origItems.forEach(function(origItem){const item=this.itemsMap[origItem.id];item.x=origItem.x,item.y=origItem.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(cell2){const retVal=this.cellToGridItem(cell2);return this.itemsMap[retVal.id]=retVal,retVal},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new GridList(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(domNode,element){super.enter(domNode,element),this._scrollBarWidth=common.Platform.getScrollbarWidth();const context=this;this._d3Drag=common.drag().subject(function(_d){const d=context.cellToGridItem(_d);return{x:d.x*context.cellWidth,y:d.y*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","dragging").style("transform",function(){return"translate("+d.x*context.cellWidth+"px, "+d.y*context.cellHeight+"px)"}).style("width",function(){return d.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d.h*context.cellHeight-context.gutter()+"px"}),context.selectionBagClick(_d)}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d=context.itemsMap[_d.id()];event.x<0&&(event.x=0),event.x+d.w*context.cellWidth>context.snappingColumns()*context.cellWidth&&(event.x=context.snappingColumns()*context.cellWidth-d.w*context.cellWidth),event.y<0&&(event.y=0),event.y+d.h*context.cellWidth>context.snappingRows()*context.cellWidth&&(event.y=context.snappingRows()*context.cellWidth-d.h*context.cellWidth);const pos=[Math.max(0,Math.floor((event.x+context.cellWidth/2)/context.cellWidth)),Math.max(0,Math.floor((event.y+context.cellHeight/2)/context.cellHeight))];(d.x!==pos[0]||d.y!==pos[1])&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.moveItemToPosition(d,pos)):(d.x=pos[0],d.y=pos[1]),(_d.gridCol()!==d.x||_d.gridRow()!==d.y)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(!1,100))),context.dragItem.style("transform",function(){return"translate("+event.x+"px, "+event.y+"px)"}).style("width",function(){return d.w*context.cellWidth+"px"}).style("height",function(){return d.h*context.cellHeight+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())}),this._d3DragResize=common.drag().subject(function(_d){const d=context.cellToGridItem(_d);return{x:(d.x+d.w-1)*context.cellWidth,y:(d.y+d.h-1)*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","resizing").style("transform",function(){return"translate("+d.x*context.cellWidth+"px, "+d.y*context.cellHeight+"px)"}).style("width",function(){return d.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d.h*context.cellHeight-context.gutter()+"px"}),context.dragItemPos={x:d.x,y:d.y}}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d=context.itemsMap[_d.id()],pos=[Math.max(0,Math.round(event.x/context.cellWidth)),Math.max(0,Math.round(event.y/context.cellHeight))],size={w:Math.max(1,pos[0]-d.x+1),h:Math.max(1,pos[1]-d.y+1)};(d.w!==size.w||d.h!==size.h)&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.resizeItem(d,size)):(d.w=size.w,d.h=size.h),(_d.gridColSpan()!==d.w||_d.gridRowSpan()!==d.h)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(d.id,100))),context.dragItem.style("width",function(){return(-d.x+1)*context.cellWidth+event.x-context.gutter()+"px"}).style("height",function(){return(-d.y+1)*context.cellHeight+event.y-context.gutter()+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())})}updateGrid(resize,transitionDuration=0,_noRender=!1){transitionDuration=transitionDuration||0;const context=this;this.divItems.classed("draggable",this.designMode()).transition().duration(transitionDuration).style("left",function(d){return d.gridCol()*context.cellWidth+context.gutter()/2+"px"}).style("top",function(d){return d.gridRow()*context.cellHeight+context.gutter()/2+"px"}).style("width",function(d){return d.gridColSpan()*context.cellWidth-context.gutter()+"px"}).style("height",function(d){return d.gridRowSpan()*context.cellHeight-context.gutter()+"px"}).on("end",function(d){d.surfaceShadow_default(context.surfaceShadow()).surfacePadding_default(context.surfacePadding()).surfaceBorderWidth_default(context.surfaceBorderWidth()).surfaceBackgroundColor_default(context.surfaceBackgroundColor()),(resize===!0||resize===d.id())&&d.resize().lazyRender()})}update(domNode,element2){super.update(domNode,element2),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);const dimensions=this.getDimensions(),clientWidth=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=clientWidth/dimensions.width,this.cellHeight=this.fitTo()==="all"?this.height()/dimensions.height:this.cellWidth,this.designMode()){const cellLaneRatio=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),laneWidth=Math.floor(cellLaneRatio);this.cellWidth=laneWidth,this.cellHeight=this.cellWidth}const context=this,divItems=element2.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(d){return d.id()});this.divItems=divItems.enter().append("div").attr("class","ddCell").each(function(d){d.target(this),d.__grid_watch=d.monitor(function(key,newVal,oldVal){context._renderCount&&(key==="snapping"||key.indexOf("grid")===0)&&newVal!==oldVal&&(context.gridList||(context.initGridList(),context.snapping()!=="none"&&context.gridList.resizeGrid(context.snapping()==="horizontal"?context.snappingRows():context.snappingColumns()),context.items.forEach(context.gridItemToCell),context.updateGrid(d.id(),100),context.killGridList()))}),common.select(this).append("div").attr("class","resizeHandle").call(context._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(divItems),this.divItems.each(function(d){const element=common.select(this);context.designMode()?element.call(context._d3Drag):element.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),divItems.exit().each(function(d){d.target(null),d.__grid_watch&&d.__grid_watch.remove()}).remove();const lanesBackground=element2.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);lanesBackground.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){context.selectionBagClear()}).merge(lanesBackground).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),lanesBackground.exit().each(function(){context.selectionBagClear()}).remove();const lanes=element2.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);lanes.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),lanes.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),lanes.exit().remove()}exit(domNode,element){this.content().forEach(w=>w.target(null)),super.exit(domNode,element)}_createSelectionObject(d){return{_id:d._id,element:()=>d._element,widget:d}}selection(_){return arguments.length?(this._selectionBag.set(_.map(function(row2){return this._createSelectionObject(row2)},this)),this):this._selectionBag.get().map(function(d){return d._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(d){if(d!==null){const selectionObj=this._createSelectionObject(d);if(common.d3Event().sourceEvent.ctrlKey)this._selectionBag.isSelected(selectionObj)?(this._selectionBag.remove(selectionObj),this.postSelectionChange()):(this._selectionBag.append(selectionObj),this.postSelectionChange());else{const selected=this._selectionBag.get();selected.length===1&&selected[0]._id===selectionObj._id?this.selectionBagClear():this._selectionBag.set([selectionObj]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(layoutArr){this.divItems.each((d,i)=>{if(layoutArr[i]){const[x,y,w,h]=layoutArr[i];d.gridCol(x).gridRow(y).gridColSpan(w).gridRowSpan(h)}}),this.updateGrid(!0)}vizActivation(elem){}}Grid.prototype._class+=" layout_Grid",Grid.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Grid.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:w=>!w.designMode()}),Grid.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),Grid.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),Grid.prototype.publish("snappingColumns",12,"number","Snapping Columns"),Grid.prototype.publish("snappingRows",16,"number","Snapping Rows"),Grid.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),Grid.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),Grid.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Grid.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});class HorizontalList extends FlexGrid{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}}HorizontalList.prototype._class+=" layout_HorizontalList";class Layered extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_contentContainer"),__publicField2(this,"_widgetPlacements"),__publicField2(this,"_widgetRatios"),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(widget,placement="default",widthRatio=1,heightRatio=1){const widgets=this.widgets();return widgets.push(widget||new common.Text().text("No widget defined for layer.")),this.widgets(widgets),this._widgetPlacements.push(placement),this._widgetRatios.push([widthRatio,heightRatio]),this}enter(domNode,element){super.enter(domNode,element),this._contentContainer=element.append("div").attr("class","container")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding()+"px");const content=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(d){return d.id()});content.enter().append("div").attr("class","content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).each(function(widget,idx){const clientSize={width:context.clientWidth(),height:context.clientHeight()},widgetSize=context.widgetSize(idx,clientSize),widgetPosition=context.widgetPosition(idx,clientSize,widgetSize);this.style.top=widgetPosition.y+"px",this.style.left=widgetPosition.x+"px",widget.resize(widgetSize).render()}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),content.order()}widgetSize(idx,clientSize){return this._widgetPlacements[idx]==="default"?{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}:{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}}widgetPosition(idx,clientSize,widgetSize){switch(this._widgetPlacements[idx]){default:return{x:0,y:0};case"top":return{x:clientSize.width/2-widgetSize.width/2,y:0};case"bottom":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height-widgetSize.height};case"left":return{x:0,y:clientSize.height/2-widgetSize.height/2};case"right":return{x:clientSize.width-widgetSize.width,y:clientSize.height/2-widgetSize.height/2};case"center":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height/2-widgetSize.height/2}}}}Layered.prototype._class+=" layout_Layered",Layered.prototype.publish("surfacePadding",0,"number","Padding"),Layered.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Popup extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),__publicField2(this,"_originalPosition"),this._tag="div",this._surfaceButtons=[]}updateState(visible){visible=visible||!this.popupState(),this.popupState(visible).render()}enter(domNode,element){super.enter(domNode,element),this.widget().target(domNode),this._originalPosition=this.position()}update(domNode,element){super.update(domNode,element),element.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(domNode,element){let left,top;switch(this.centerPopup()){case"container":this._placeholderElement&&(left=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,top=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":left=window.innerWidth/2-this.widget().width()/2,top=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:left=0,top=0,this.position(this._originalPosition);break}this.pos({x:left,y:top}),super.postUpdate(domNode,element),element.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Popup.prototype._class+=" layout_Popup",Popup.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),Popup.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{}),Popup.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),Popup.prototype.publish("top",null,"number","Top position property of popup",null,{}),Popup.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),Popup.prototype.publish("left",null,"number","Left position property of popup",null,{}),Popup.prototype.publish("right",null,"number","Right position property of popup",null,{}),Popup.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),Popup.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});class Tabbed extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_tabContainer"),__publicField2(this,"_contentContainer"),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(widget,label,isActive,callback){const widgetSize=widget.size();widgetSize.width===0&&widgetSize.height===0&&widget.size({width:"100%",height:"100%"});const labels=this.labels(),widgets=this.widgets();isActive&&this.activeTabIdx(this.widgets().length),labels.push(label);const surface=new Surface().widget(widget||new common.Text().text("No widget defined for tab"));return widgets.push(surface),this.labels(labels),this.widgets(widgets),callback&&callback(surface),this}widgetSize(widgetDiv){const width=this.clientWidth();let height=this.clientHeight();const tcBox=this._tabContainer.node().getBoundingClientRect();return typeof tcBox.height<"u"&&(height-=tcBox.height),{width,height}}enter(domNode,element){super.enter(domNode,element),this._tabContainer=element.append("div"),this._contentContainer=element.append("div")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const tabs=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(d){return d});tabs.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(d,idx){context.click(context.widgets()[idx].widget(),d,idx),context.activeTabIdx(idx).render()}).merge(tabs).classed("active",function(d,idx){return context.activeTabIdx()===idx}).text(function(d){return d}),tabs.exit().remove();const content=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(d){return d.id()});switch(content.enter().append("div").attr("class","tab-content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).classed("active",function(d,idx){return context.activeTabIdx()===idx}).style("display",function(d,idx){return context.activeTabIdx()===idx?"block":"none"}).each(function(surface,idx){if(surface.visible(context.activeTabIdx()===idx),context.activeTabIdx()===idx){const wSize=context.widgetSize(common.select(this));surface.surfaceBorderWidth(context.showTabs()?null:0).surfacePadding(context.showTabs()?null:0).resize(wSize)}}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(widget,column,idx){}}Tabbed.prototype._class+=" layout_Tabbed",Tabbed.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),Tabbed.prototype.publish("surfacePadding",4,"number","Padding"),Tabbed.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),Tabbed.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),Tabbed.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),Tabbed.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Toolbar extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);const context=this;element.attr("title",context.title()).style("background-color",this.backgroundColor());const title=element.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);title.enter().append("div").classed("toolbar-title",!0).append("span"),title.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(context.title()),title.exit().remove();const childWidgets=element.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(d){return d.id()});childWidgets.enter().insert("div","div.toolbar-title").each(function(d,i){const widgetClass=context.widgetClasses()[i]?context.widgetClasses()[i]+" toolbar-child":"toolbar-child";common.select(this).classed(widgetClass,!0),d.target(this)}),childWidgets.exit().each(function(d){d.target(null)}).remove(),childWidgets.order()}render(callback){const context=this;return super.render(function(w){const toolbarBBox=context.element().node().getBoundingClientRect();let minX=toolbarBBox.left+toolbarBBox.width;context.element().selectAll("div.toolbar-child").each(function(d,i){const childBBox=this.getBoundingClientRect();minX>childBBox.left&&(minX=childBBox.left)}),context.element().select(".toolbar-title").style("width",minX-toolbarBBox.left-4+"px"),callback&&callback(w)})}exit(domNode,element){this.widgets().forEach(function(w){w.target(null)}),super.exit(domNode,element)}}Toolbar.prototype._class+=" layout_Toolbar",Toolbar.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Toolbar.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Toolbar.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});class VerticalList extends FlexGrid{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}}VerticalList.prototype._class+=" layout_VerticalList";function requireWidget(classID){return new Promise(function(resolve,_reject){const parsedClassID=common.Utility.parseClassID(classID);require&&require([parsedClassID.package],function(Package){let Widget=null;Package&&Package[parsedClassID.widgetID]&&(Widget=Package[parsedClassID.widgetID]),resolve(parsedClassID.memberWidgetID?Widget.prototype?Widget.prototype[parsedClassID.memberWidgetID]:Widget[parsedClassID.memberWidgetID]:Widget)})})}function requireWidgets(classIDs){return Promise.all(classIDs.map(requireWidget))}const Utility=Object.freeze(Object.defineProperty({__proto__:null,requireWidget,requireWidgets},Symbol.toStringTag,{value:"Module"}));class MultiChart extends common.HTMLWidget{constructor(){super();__publicField(this,"_allCharts",{});__publicField(this,"_chartTypeDefaults");__publicField(this,"_chartTypeProperties");__publicField(this,"_chartMonitor");__publicField(this,"_switchingTo");api.INDChart.call(this),api.IGraph.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(item){const newItem=JSON.parse(JSON.stringify(item));newItem.widget=null,this._allCharts[item.id]=newItem,this._allCharts[item.display]=newItem,this._allCharts[item.widgetClass]=newItem},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(_){const retVal=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(_)}return retVal}columns(_,asDefault){const retVal=common.HTMLWidget.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(_,asDefault)}return retVal}data(_){const retVal=common.HTMLWidget.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(_)}return retVal}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(_){return arguments.length?(this.chart()&&this.chart().visible(_),this):this.chart()&&this.chart().visible()}chartTypeDefaults(_){return arguments.length?(this._chartTypeDefaults=_,this):this._chartTypeDefaults}chartTypeProperties(_){return arguments.length?(this._chartTypeProperties=_,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(chartType,callback){const classInfo=common.Utility.parseClassID(this._allCharts[chartType].widgetClass);switch(classInfo.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(mod=>{callback(new mod[classInfo.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(mod=>{callback(new mod[classInfo.widgetID])});break;default:requireWidget(this._allCharts[chartType].widgetClass).then(function(WidgetClass){callback(new WidgetClass)})}}switchChart(callback){if(this._switchingTo===this.chartType()){callback&&callback(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();const oldContent=this.chart(),context=this;this.requireContent(this.chartType(),function(newContent){if(newContent!==oldContent){const size=context.size();newContent.fields(context.fields()).data(context.data()).size(size),context.chart(newContent),oldContent&&oldContent.size({width:1,height:1}).render()}delete context._switchingTo,callback&&callback(this)})}update(domNode,element){super.update(domNode,element);const content=element.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(d){return d._id});content.enter().append("div").attr("class","multiChart").each(function(d){d.target(this)});const currChart=this.chart();if(currChart){for(const key in this._chartTypeDefaults)if(currChart[key+"_default"])try{currChart[key+"_default"](this._chartTypeDefaults[key])}catch{console.warn("Exception Setting Default: "+key)}else console.warn("Unknown Default: "+key);this._chartTypeDefaults={};for(const propKey in this._chartTypeProperties)if(currChart[propKey])try{currChart[propKey](this._chartTypeProperties[propKey])}catch{console.warn("Exception Setting Property: "+propKey)}else console.warn("Unknown Property: "+propKey);this._chartTypeProperties={}}const context=this;content.each(function(d){d.resize(context.size())}),content.exit().transition().each(function(d){d.target(null)}).remove()}exit(domNode,element){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(domNode,element)}render(_callback){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){const context=this,args=arguments;return this.switchChart(function(){common.HTMLWidget.prototype.render.apply(context,args)}),this}return common.HTMLWidget.prototype.render.apply(this,arguments)}}MultiChart.prototype._class+=" composite_MultiChart",MultiChart.prototype.implements(api.INDChart.prototype),MultiChart.prototype.implements(api.IGraph.prototype),MultiChart.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(item){return item.family="other",item}),MultiChart.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(item){return item.family="GRAPH",item}),MultiChart.prototype._1DChartTypes=[].map(function(item){return item.family="1D",item}),MultiChart.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(item){return item.family="2D",item}),MultiChart.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(item){return item.family="ND",item}),MultiChart.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(item){return item.family="map",item}),MultiChart.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(item){return item.family="any",item}),MultiChart.prototype._allChartTypes=MultiChart.prototype._otherChartTypes.concat(MultiChart.prototype._graphChartTypes.concat(MultiChart.prototype._1DChartTypes.concat(MultiChart.prototype._2DChartTypes.concat(MultiChart.prototype._NDChartTypes.concat(MultiChart.prototype._mapChartTypes.concat(MultiChart.prototype._anyChartTypes)))))),MultiChart.prototype._allMap=common.map(MultiChart.prototype._allChartTypes,function(item){return item.family}),MultiChart.prototype._allFamilies=MultiChart.prototype._allMap.keys(),MultiChart.prototype._allChartTypesMap={},MultiChart.prototype._allChartTypesByClass={},MultiChart.prototype._allChartTypes.forEach(function(item){item.widgetPath=common.Utility.widgetPath(item.widgetClass),MultiChart.prototype._allChartTypesMap[item.id]=item,MultiChart.prototype._allChartTypesByClass[item.widgetClass]=item}),MultiChart.prototype.publishReset(),MultiChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MultiChart.prototype.publish("chartType","BUBBLE","set","Chart Type",MultiChart.prototype._allChartTypes.map(function(item){return item.id}),{tags:["Basic"]}),MultiChart.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const _origChart=MultiChart.prototype.chart;MultiChart.prototype.chart=function(_){const retVal=_origChart.apply(this,arguments);if(arguments.length){const context=this;this._allChartTypesByClass[_.classID()]?this.chartType(this._allChartTypesByClass[_.classID()].id):console.warn("Unknown Class ID: "+_.classID()),_.click=function(_row,_column,_selected){context.click.apply(context,arguments)},_.dblclick=function(_row,_column,_selected){context.dblclick.apply(context,arguments)},_.vertex_click=function(row2,column,selected,more){context.vertex_click.apply(context,arguments)},_.vertex_dblclick=function(row2,column,selected,more){context.vertex_dblclick.apply(context,arguments)},_.edge_click=function(row2,column,selected,more){context.edge_click.apply(context,arguments)},_.edge_dblclick=function(row2,column,selected,more){context.edge_dblclick.apply(context,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=_.monitor(function(key,newVal,oldVal){context.broadcast(key,newVal,oldVal,_)})}return retVal};class Summary extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),element.append("p")}update(domNode,element){super.update(domNode,element),element.select("p").text(this.text())}}Summary.prototype.publish("text","","string");class MultiChartPanel extends ChartPanel{constructor(){super(),this.widget(new MultiChart().chartType("COLUMN"))}multiChart(){return this._widget}chartType(_){return arguments.length?(this._widget.chartType(_),this):this._widget.chartType()}chart(_){return arguments.length?(this._widget.chart(_),this):this._widget.chart()}chartTypeDefaults(_){return arguments.length?(this._widget.chartTypeDefaults(_),this):this._widget.chartTypeDefaults()}chartTypeProperties(_){return arguments.length?(this._widget.chartTypeProperties(_),this):this._widget.chartTypeProperties()}update(domNode,element){super.update(domNode,element),this._widget instanceof MultiChart&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(domNode,element)}}MultiChartPanel.prototype._class+=" composite_MultiChartPanel";class Dermatology extends Border{constructor(){super();__publicField(this,"_toolbar");__publicField(this,"_propEditor");__publicField(this,"_showProperties");__publicField(this,"_propsButton");__publicField(this,"_prevWidget");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"widget");__publicField(this,"widget_exists");this._toolbar=new Toolbar().title("Dermatology"),this._propEditor=new other.PropertyEditor().show_settings(!0)}showProperties(_){if(!arguments.length)return this._showProperties;this._showProperties=_,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);const widget=this.widget();return widget&&widget.designMode&&widget.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(domNode,element){super.enter(domNode,element),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);const context=this;this._propsButton=new form.OnOff().id(this.id()+"_props").value("Properties").on("click",function(){context.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(domNode,element){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(domNode,element);const widget=this.widget();element.style("background-color",widget&&widget.surfaceShadow?null:"white")}render(callback){const widget=this.widget();return widget!==this._prevWidget&&(widget&&widget.surfaceShadow&&widget.surfaceBackgroundColor_default("white"),this.setContent("center",widget),this._propEditor.widget(widget),this._prevWidget=widget),super.render(callback)}}Dermatology.prototype._class+=" composite_Dermatology",Dermatology.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),Dermatology.prototype.publish("widget",null,"widget","Widget");class MegaChart extends Border{constructor(){super();__publicField(this,"_chart",new MultiChart);__publicField(this,"_toolbar",new Toolbar);__publicField(this,"_valueTitle",new common.Text);__publicField(this,"_domainTitle",new common.Text);__publicField(this,"_legend",new other.Legend);__publicField(this,"_csvButton");__publicField(this,"_infoButton");__publicField(this,"_maximizeButton");__publicField(this,"_legendButton");__publicField(this,"_chartTypeSelect");__publicField(this,"_prevLegendPosition");__publicField(this,"_prevShowToolbar");__publicField(this,"_1DChartTypes");__publicField(this,"_2DChartTypes");__publicField(this,"_NDChartTypes");__publicField(this,"_anyChartTypes");__publicField(this,"_allChartTypes");__publicField(this,"_contentClasses");__publicField(this,"_dataCount");__publicField(this,"hideRowOnLegendClick");__publicField(this,"hideRowOnLegendClick_exists");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"titleFontSize");__publicField(this,"titleFontSize_exists");__publicField(this,"titleFontColor");__publicField(this,"titleFontColor_exists");__publicField(this,"titleFontFamily");__publicField(this,"titleFontFamily_exists");__publicField(this,"titleFontBold");__publicField(this,"titleFontBold_exists");__publicField(this,"titleBackgroundColor");__publicField(this,"titleBackgroundColor_exists");__publicField(this,"maximizedBackgroundColor");__publicField(this,"maximizedBackgroundColor_exists");__publicField(this,"showChartSelect");__publicField(this,"showChartSelect_exists");__publicField(this,"showCSV");__publicField(this,"showCSV_exists");__publicField(this,"showCount");__publicField(this,"showCount_exists");__publicField(this,"showMaximize");__publicField(this,"showMaximize_exists");__publicField(this,"toolbarShowLegend");__publicField(this,"toolbarShowLegend_exists");__publicField(this,"showInfoButton");__publicField(this,"showInfoButton_exists");__publicField(this,"infoIcon");__publicField(this,"infoIcon_exists");__publicField(this,"legendPosition");__publicField(this,"legendPosition_exists");__publicField(this,"title");__publicField(this,"title_exists");__publicField(this,"domainAxisTitle");__publicField(this,"domainAxisTitle_exists");__publicField(this,"valueAxisTitle");__publicField(this,"valueAxisTitle_exists");__publicField(this,"chartType");__publicField(this,"chartType_exists");__publicField(this,"chart");__publicField(this,"chart_exists");this._tag="div";const context=this;this._chart.click=function(){context.click.apply(context,arguments)},this._chart.dblclick=function(){context.dblclick.apply(context,arguments)},this._chart.vertex_click=function(){context.vertex_click.apply(context,arguments)},this._chart.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},this._chart.edge_click=function(){context.edge_click.apply(context,arguments)},this._chart.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)}}toolbarWidgets(_){return arguments.length?(this._toolbar.widgets(_),this):this._toolbar.widgets()}chartTypeDefaults(_){return arguments.length?(this._chart.chartTypeDefaults(_),this):this._chart.chartTypeDefaults()}chartTypeProperties(_){return arguments.length?(this._chart.chartTypeProperties(_),this):this._chart.chartTypeProperties()}fields(_){return arguments.length?(this._chart.fields(_),this):this._chart.fields()}columns(_,asDefault){return arguments.length?(this._chart.columns(_,asDefault),this):this._chart.columns()}data(_){return arguments.length?(this._chart.data(_),this):this._chart.data()}downloadCSV(){return common.Utility.downloadString("CSV",this._chart.export("CSV")),this}enter(domNode,element){super.enter(domNode,element);const context=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new other.Html().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new form.Button().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(a2){context.downloadCSV()},this._infoButton=new form.Button().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new form.Button().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(buttonWidget){const target=context.target();let node=target;const isMaximized=common.select(target).classed("__hpccisMaximized"),parentGrid=context.locateAncestor("layout_Grid");parentGrid?node=parentGrid.element().node():node=document.body;const targetElement=common.select(context.target());if(isMaximized){const targetParentBox=target.parentElement.getBoundingClientRect(),targetPaddingTop=parseInt(getComputedStyle(target,null).getPropertyValue("padding-top").replace("px","")),targetPaddingLeft=parseInt(getComputedStyle(target,null).getPropertyValue("padding-left").replace("px","")),targetPaddingRight=parseInt(getComputedStyle(target,null).getPropertyValue("padding-right").replace("px","")),targetPaddingBottom=parseInt(getComputedStyle(target,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.transition().style("top",targetParentBox.top+"px").style("left",targetParentBox.left+"px").style("width",targetParentBox.width-targetPaddingLeft-targetPaddingRight+"px").style("height",targetParentBox.height-targetPaddingTop-targetPaddingBottom+"px").each("end",function(){targetElement.style("position",target.__old_position),targetElement.style("z-index",target.__old_zindex),targetElement.style("background-color",target.__old_backgroundColor),targetElement.style("box-shadow",target.__old_boxshadow),context.resize({width:targetParentBox.width-targetPaddingLeft-targetPaddingRight,height:targetParentBox.height-targetPaddingTop-targetPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}else{target.__old_position=target.style.position,target.__old_zindex=target.style.zIndex,target.__old_boxshadow=target.style.boxShadow,target.__old_backgroundColor=context.element().style("background-color");const grid=common.select(node).datum(),gridTarget=grid.target(),gridBox=grid?gridTarget.getBoundingClientRect():node.getBoundingClientRect(),gridPaddingTop=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-top").replace("px","")),gridPaddingLeft=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-left").replace("px","")),gridPaddingRight=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-right").replace("px","")),gridPaddingBottom=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",target.__old_backgroundColor).transition().style("top",gridBox.top+gridPaddingTop+"px").style("left",gridBox.left+gridPaddingLeft+"px").style("width",gridBox.width-gridPaddingLeft-gridPaddingRight+"px").style("height",gridBox.height-gridPaddingTop-gridPaddingBottom+"px").each("end",function(){targetElement.style("background-color",context.maximizedBackgroundColor()),context.resize({width:gridBox.width-gridPaddingLeft-gridPaddingRight,height:gridBox.height-gridPaddingTop-gridPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}common.select(target).classed("__hpccisMaximized",!isMaximized)},this._legendButton=new form.Input().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(a2){context.render()},this._chartTypeSelect=new form.Select().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(a2){return[a2.id,a2.display]})).value(this.chartType()),this._chartTypeSelect.change=function(a2){context.chartType(a2.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(domNode,element){function showHideButton(twArr2,button,show){if(show&&twArr2.indexOf(button)===-1)twArr2.push(button);else if(!show){const idx=twArr2.indexOf(button);idx>=0&&twArr2.splice(idx,1)}}this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());const twArr=this.toolbarWidgets();showHideButton(twArr,this._csvButton,this.showCSV()),showHideButton(twArr,this._maximizeButton,this.showMaximize()),showHideButton(twArr,this._legendButton,this.toolbarShowLegend()),showHideButton(twArr,this._chartTypeSelect,this.showChartSelect()),showHideButton(twArr,this._infoButton,this.showInfoButton()),showHideButton(twArr,this._dataCount,this.showCount()),this.toolbarWidgets(twArr),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let legendPosition=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(legendPosition="none"),this._prevLegendPosition!==legendPosition&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=legendPosition,legendPosition!=="none"&&(this._legend=new other.Legend().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(legendPosition,this._legend),this._legend.orientation(["top","bottom"].indexOf(legendPosition)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&legendPosition!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&legendPosition!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(domNode,element)}exit(domNode,element){super.exit(domNode,element)}getContentClasses(){const obj={},t=this.getContent("top"),r2=this.getContent("right"),b=this.getContent("bottom"),l=this.getContent("left");return obj.top=t!==null?t.classID():void 0,obj.right=r2!==null?r2.classID():void 0,obj.bottom=b!==null?b.classID():void 0,obj.left=l!==null?l.classID():void 0,obj}serializeState(){const state={title:this.title(),data:this.data()},chart=this.chart();return chart&&chart.serializeState&&(state.chart=chart.serializeState(),delete state.chart.data),state}deserializeState(state){if(state){this.title(state.title).data(state.data);const chart=this.chart();chart&&state.chart&&chart.serializeState&&chart.deserializeState(state.chart)}return this}click(row2,column,selected){}dblclick(row2,column,selected){}vertex_click(row2,col,sel,more){more&&more.vertex}vertex_dblclick(row2,col,sel,more){more&&more.vertex}edge_click(row2,col,sel,more){more&&more.edge}edge_dblclick(row2,col,sel,more){more&&more.edge}}MegaChart.prototype._class+=" composite_MegaChart",MegaChart.prototype._1DChartTypes=MultiChart.prototype._1DChartTypes,MegaChart.prototype._2DChartTypes=MultiChart.prototype._2DChartTypes,MegaChart.prototype._NDChartTypes=MultiChart.prototype._NDChartTypes,MegaChart.prototype._anyChartTypes=MultiChart.prototype._anyChartTypes,MegaChart.prototype._allChartTypes=MultiChart.prototype._allChartTypes,MegaChart.prototype.publishReset(),MegaChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MegaChart.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),MegaChart.prototype.publishProxy("title","_toolbar","title"),MegaChart.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),MegaChart.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),MegaChart.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),MegaChart.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),MegaChart.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),MegaChart.prototype.publishProxy("legendBins","_legend","rainbowBins"),MegaChart.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),MegaChart.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),MegaChart.prototype.publishProxy("chartType","_chart","chartType"),MegaChart.prototype.publishProxy("chart","_chart","chart");function retrofit_114_serialization(state,replacement_version){if(replacement_version=!replacement_version||replacement_version==="1.14.2-dev"?"1.18.0":replacement_version,!state.__version)return state;const state_version_obj=common.Utility.parseVersionString(state.__version),target_version_obj=common.Utility.parseVersionString(replacement_version);if(state_version_obj.major===1&&state_version_obj.minor===14){console.info("Upgrading old persist from "+state.__version+" to "+replacement_version);let _json_str=JSON.stringify(state);_json_str=_json_str.split('"'+state.__version).join('"'+replacement_version);const ret_obj=JSON.parse(_json_str);return ret_obj.__properties&&ret_obj.__properties.content&&ret_obj.__properties.content.forEach(function(n){JSON.stringify(n).split("graph_Graph").length>1&&target_version_obj.minor>=16&&(n.__properties.widget.__id=n.__properties.widget.__properties.widget.__id,n.__properties.widget.__class="composite_MegaChart",n.__properties.widget.__properties.showCSV=!1,n.__properties.widget.__properties.chartType="GRAPH",n.__properties.widget.__properties.chart=n.__properties.widget.__properties.widget,delete n.__properties.widget.__properties.chart.__id,delete n.__properties.widget.__properties.widget),typeof n.__properties.fields>"u"&&(n.__properties.fields=[])}),ret_obj}else return state}function deserializeFromObject(widget,state){const promises=[];return other.Persist.widgetPropertyWalker(widget,null,(w,item)=>{if(w[item.id+"_reset"](),state.__properties[item.id]!==void 0)switch(item.type){case"widget":const widgetKey=item.id;promises.push(create(state.__properties[item.id]).then(w2=>(w2._owner=w,w[widgetKey](w2),w2)));break;case"widgetArray":case"propertyArray":const widgetArrayKey=item.id,widgetStateArray=state.__properties[item.id];if(widgetStateArray.length){const arrPromises=[];for(const widgetState of widgetStateArray)arrPromises.push(create(widgetState).then(widgetItem=>(widgetItem._owner=w,widgetItem)));promises.push(Promise.all(arrPromises).then(widgetArray=>{w[widgetArrayKey](widgetArray)}))}break;default:w[item.id](state.__properties[item.id]);break}}),Promise.all(promises).then(widgets=>{if(state.__data){for(const key in state.__data)if(state.__data.HasOwnProperty(key))switch(key){case"data":widget.data(state.__data[key]);break;default:console.warn("Unexpected __data item: "+key),widget[key](state.__data[key]);break}}return state.__state&&(widget.deserializeState?widget.deserializeState(state.__state):state.__state.data&&widget.data&&widget.data(state.__state.data)),widget})}function deserialize(widget,state){typeof state=="string"&&(state=JSON.parse(state)),state.__id&&state.__id.indexOf(widget._idSeed)!==0&&widget._id!==state.__id&&console.warn("Deserialize: IDs do not match - "+widget._id),deserializeFromObject(widget,state)}function create(state){return typeof state=="string"&&(state=JSON.parse(state)),state=retrofit_114_serialization(state,common.Platform.version()),requireWidget(state.__class).then(WidgetClass=>{const widget=new WidgetClass;return state.__id&&state.__id.indexOf(widget._idSeed)!==0&&state.__id.indexOf("_pe")!==0&&(widget._id=state.__id),deserializeFromObject(widget,state)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function clone(widget){create(other.Persist.serializeToObject(widget,void 0,!0,!0))}const Persist=Object.freeze(Object.defineProperty({__proto__:null,clone,create,deserialize,deserializeFromObject,retrofit_114_serialization},Symbol.toStringTag,{value:"Module"}));exports2.BUILD_VERSION=BUILD_VERSION,exports2.Dermatology=Dermatology,exports2.MegaChart=MegaChart,exports2.MultiChart=MultiChart,exports2.MultiChartPanel=MultiChartPanel,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.Persist=Persist,exports2.Utility=Utility,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
7
+ `,output},generateGrid:function(){var i;for(this._resetGrid(),i=0;i<this.items.length;i++)this._markItemPositionToGrid(this.items[i])},resizeGrid:function(lanes){var currentColumn=0;this._options.lanes=lanes,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var i=0;i<this.items.length;i++){var item=this.items[i],position=this._getItemPosition(item);this._updateItemPosition(item,this.findPositionForItem(item,{x:currentColumn,y:0})),currentColumn=Math.max(currentColumn,position.x)}this._pullItemsToLeft()},findPositionForItem:function(item,start,fixedRow){var x,y,position;for(x=start.x;x<this.grid.length;x++)if(fixedRow!==void 0){if(position=[x,fixedRow],this._itemFitsAtPosition(item,position))return position}else for(y=start.y;y<this._options.lanes;y++)if(position=[x,y],this._itemFitsAtPosition(item,position))return position;var newCol=this.grid.length,newRow=0;return fixedRow!==void 0&&this._itemFitsAtPosition(item,[newCol,fixedRow])&&(newRow=fixedRow),[newCol,newRow]},moveItemToPosition:function(item,newPosition){var position=this._getItemPosition({x:newPosition[0],y:newPosition[1],w:item.w,h:item.h});this._updateItemPosition(item,[position.x,position.y]),this._resolveCollisions(item)},resizeItem:function(item,size){var width=size.w||item.w,height=size.h||item.h;this._updateItemSize(item,width,height),this._resolveCollisions(item),this._pullItemsToLeft()},getChangedItems:function(initialItems,idAttribute){for(var changedItems=[],i=0;i<initialItems.length;i++){var item=this._getItemByAttribute(idAttribute,initialItems[i][idAttribute]);(item.x!==initialItems[i].x||item.y!==initialItems[i].y||item.w!==initialItems[i].w||item.h!==initialItems[i].h)&&changedItems.push(item)}return changedItems},_sortItemsByPosition:function(){this.items.sort((function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return position1.x!=position2.x?position1.x-position2.x:position1.y!=position2.y?position1.y-position2.y:0}).bind(this))},_adjustSizeOfItems:function(){for(var i=0;i<this.items.length;i++){var item=this.items[i];item.autoSize===void 0&&(item.autoSize=item.w===0||item.h===0),item.autoSize&&(this._options.direction==="horizontal"?item.h=this._options.lanes:item.w=this._options.lanes)}},_resetGrid:function(){this.grid=[]},_itemFitsAtPosition:function(item,newPosition){var position=this._getItemPosition(item),x,y;if(newPosition[0]<0||newPosition[1]<0||newPosition[1]+position.h>this._options.lanes)return!1;for(x=newPosition[0];x<newPosition[0]+position.w;x++){var col=this.grid[x];if(col){for(y=newPosition[1];y<newPosition[1]+position.h;y++)if(col[y]&&col[y]!==item)return!1}}return!0},_updateItemPosition:function(item,position){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),this._setItemPosition(item,position),this._markItemPositionToGrid(item)},_updateItemSize:function(item,width,height){item.x!==null&&item.y!==null&&this._deleteItemPositionFromGrid(item),item.w=width,item.h=height,this._markItemPositionToGrid(item)},_markItemPositionToGrid:function(item){var position=this._getItemPosition(item),x,y;for(this._ensureColumns(position.x+position.w),x=position.x;x<position.x+position.w;x++)for(y=position.y;y<position.y+position.h;y++)this.grid[x][y]=item},_deleteItemPositionFromGrid:function(item){var position=this._getItemPosition(item),x,y;for(x=position.x;x<position.x+position.w;x++)if(this.grid[x])for(y=position.y;y<position.y+position.h;y++)this.grid[x][y]==item&&(this.grid[x][y]=null)},_ensureColumns:function(N){var i;for(i=0;i<N;i++)this.grid[i]||this.grid.push(new GridCol(this._options.lanes))},_getItemsCollidingWithItem:function(item){for(var collidingItems=[],i=0;i<this.items.length;i++)item!=this.items[i]&&this._itemsAreColliding(item,this.items[i])&&collidingItems.push(i);return collidingItems},_itemsAreColliding:function(item1,item2){var position1=this._getItemPosition(item1),position2=this._getItemPosition(item2);return!(position2.x>=position1.x+position1.w||position2.x+position2.w<=position1.x||position2.y>=position1.y+position1.h||position2.y+position2.h<=position1.y)},_resolveCollisions:function(item){this._tryToResolveCollisionsLocally(item)||this._pullItemsToLeft(item),this._pullItemsToLeft()},_tryToResolveCollisionsLocally:function(item){var collidingItems=this._getItemsCollidingWithItem(item);if(!collidingItems.length)return!0;var _gridList=new GridList2([],this._options),leftOfItem,rightOfItem,aboveOfItem,belowOfItem;GridList2.cloneItems(this.items,_gridList.items),_gridList.generateGrid();for(var i=0;i<collidingItems.length;i++){var collidingItem=_gridList.items[collidingItems[i]],collidingPosition=this._getItemPosition(collidingItem),position=this._getItemPosition(item);if(leftOfItem=[position.x-collidingPosition.w,collidingPosition.y],rightOfItem=[position.x+position.w,collidingPosition.y],aboveOfItem=[collidingPosition.x,position.y-collidingPosition.h],belowOfItem=[collidingPosition.x,position.y+position.h],_gridList._itemFitsAtPosition(collidingItem,leftOfItem))_gridList._updateItemPosition(collidingItem,leftOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,aboveOfItem))_gridList._updateItemPosition(collidingItem,aboveOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,belowOfItem))_gridList._updateItemPosition(collidingItem,belowOfItem);else if(_gridList._itemFitsAtPosition(collidingItem,rightOfItem))_gridList._updateItemPosition(collidingItem,rightOfItem);else return!1}return GridList2.cloneItems(_gridList.items,this.items),this.generateGrid(),!0},_pullItemsToLeft:function(fixedItem){if(this._sortItemsByPosition(),this._resetGrid(),fixedItem){var fixedPosition=this._getItemPosition(fixedItem);this._updateItemPosition(fixedItem,[fixedPosition.x,fixedPosition.y])}for(var i=0;i<this.items.length;i++){var item=this.items[i],position=this._getItemPosition(item);if(!(fixedItem&&item==fixedItem)){var x=this._findLeftMostPositionForItem(item),newPosition=this.findPositionForItem(item,{x,y:0},position.y);this._updateItemPosition(item,newPosition)}}},_findLeftMostPositionForItem:function(item){for(var tail=0,position=this._getItemPosition(item),i=0;i<this.grid.length;i++)for(var j=position.y;j<position.y+position.h;j++){var otherItem=this.grid[i][j];if(otherItem){var otherPosition=this._getItemPosition(otherItem);this.items.indexOf(otherItem)<this.items.indexOf(item)&&(tail=otherPosition.x+otherPosition.w)}}return tail},_getItemByAttribute:function(key,value){for(var i=0;i<this.items.length;i++)if(this.items[i][key]===value)return this.items[i];return null},_padNumber:function(nr,prefix){return nr>=10?nr:prefix+nr},_getItemPosition:function(item){return this._options.direction==="horizontal"?item:{x:item.y,y:item.x,w:item.h,h:item.w}},_setItemPosition:function(item,position){this._options.direction==="horizontal"?(item.x=position[0],item.y=position[1]):(item.x=position[1],item.y=position[0])}};var GridCol=function(lanes){for(var i=0;i<lanes;i++)this.push(null)};return GridCol.prototype=[],GridList2})}(gridList$2)),gridList$2.exports}var gridListExports=requireGridList();const gridList=getDefaultExportFromCjs(gridListExports),_GridList=_mergeNamespaces$1({__proto__:null,default:gridList},[gridListExports]),GridList=_GridList&&gridList||_GridList;class Grid extends common.HTMLWidget{constructor(){super(),__publicField2(this,"divItems"),__publicField2(this,"gridList"),__publicField2(this,"items"),__publicField2(this,"itemsMap"),__publicField2(this,"origItems"),__publicField2(this,"cellWidth"),__publicField2(this,"cellHeight"),__publicField2(this,"dragItem"),__publicField2(this,"dragItemPos"),__publicField2(this,"_d3Drag"),__publicField2(this,"_d3DragResize"),__publicField2(this,"_selectionBag"),__publicField2(this,"_scrollBarWidth"),this._tag="div",this._selectionBag=new common.Utility.Selection(this),this.content([])}getDimensions(){const size={width:0,height:0};return this.content().forEach(function(cell){size.width<cell.gridCol()+cell.gridColSpan()&&(size.width=cell.gridCol()+cell.gridColSpan()),size.height<cell.gridRow()+cell.gridRowSpan()&&(size.height=cell.gridRow()+cell.gridRowSpan())},this),size}clearContent(widget){this.content(this.content().filter(function(contentWidget){if(!widget)return contentWidget.target(null),!1;let w=contentWidget;for(;w;){if(widget===w)return contentWidget.target(null),!1;w=w.widget?w.widget():null}return!0}))}setContent(row,col,widget,title,rowSpan,colSpan){if(rowSpan=rowSpan||1,colSpan=colSpan||1,title=title||"",this.content(this.content().filter(function(contentWidget){return contentWidget.gridRow()===row&&contentWidget.gridCol()===col?(contentWidget.target(null),!1):!0})),widget){const cell=new Cell().gridRow(row).gridCol(col).widget(widget).title(title).gridRowSpan(rowSpan).gridColSpan(colSpan);this.content().push(cell)}return this}sortedContent(){return this.content().sort(function(l,r){return l.gridRow()===r.gridRow()?l.gridCol()-r.gridCol():l.gridRow()-r.gridRow()})}getCell(row,col){let retVal=null;return this.content().some(function(cell){return row>=cell.gridRow()&&row<cell.gridRow()+cell.gridRowSpan()&&col>=cell.gridCol()&&col<cell.gridCol()+cell.gridColSpan()?(retVal=cell,!0):!1}),retVal}getWidgetCell(id){let retVal=null;return this.content().some(function(cell){return cell.widget().id()===id?(retVal=cell,!0):!1}),retVal}getContent(id){let retVal=null;return this.content().some(function(cell){return cell.widget().id()===id?(retVal=cell.widget(),!0):!1}),retVal}cellToGridItem(cell){return{x:cell.gridCol(),y:cell.gridRow(),w:cell.gridColSpan(),h:cell.gridRowSpan(),id:cell.id(),cell}}gridItemToCell(item){item.cell.gridCol(item.x).gridRow(item.y).gridColSpan(item.w).gridRowSpan(item.h)}resetItemsPos(){this.origItems.forEach(function(origItem){const item=this.itemsMap[origItem.id];item.x=origItem.x,item.y=origItem.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(cell){const retVal=this.cellToGridItem(cell);return this.itemsMap[retVal.id]=retVal,retVal},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new GridList(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(domNode,element){super.enter(domNode,element),this._scrollBarWidth=common.Platform.getScrollbarWidth();const context=this;this._d3Drag=common.drag().subject(function(_d){const d=context.cellToGridItem(_d);return{x:d.x*context.cellWidth,y:d.y*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","dragging").style("transform",function(){return"translate("+d.x*context.cellWidth+"px, "+d.y*context.cellHeight+"px)"}).style("width",function(){return d.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d.h*context.cellHeight-context.gutter()+"px"}),context.selectionBagClick(_d)}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d=context.itemsMap[_d.id()];event.x<0&&(event.x=0),event.x+d.w*context.cellWidth>context.snappingColumns()*context.cellWidth&&(event.x=context.snappingColumns()*context.cellWidth-d.w*context.cellWidth),event.y<0&&(event.y=0),event.y+d.h*context.cellWidth>context.snappingRows()*context.cellWidth&&(event.y=context.snappingRows()*context.cellWidth-d.h*context.cellWidth);const pos=[Math.max(0,Math.floor((event.x+context.cellWidth/2)/context.cellWidth)),Math.max(0,Math.floor((event.y+context.cellHeight/2)/context.cellHeight))];(d.x!==pos[0]||d.y!==pos[1])&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.moveItemToPosition(d,pos)):(d.x=pos[0],d.y=pos[1]),(_d.gridCol()!==d.x||_d.gridRow()!==d.y)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(!1,100))),context.dragItem.style("transform",function(){return"translate("+event.x+"px, "+event.y+"px)"}).style("width",function(){return d.w*context.cellWidth+"px"}).style("height",function(){return d.h*context.cellHeight+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())}),this._d3DragResize=common.drag().subject(function(_d){const d=context.cellToGridItem(_d);return{x:(d.x+d.w-1)*context.cellWidth,y:(d.y+d.h-1)*context.cellHeight}}).on("start",function(_d){if(!context.designMode())return;common.d3Event().sourceEvent.stopPropagation(),context.initGridList();const d=context.itemsMap[_d.id()];context.dragItem=element.append("div").attr("class","resizing").style("transform",function(){return"translate("+d.x*context.cellWidth+"px, "+d.y*context.cellHeight+"px)"}).style("width",function(){return d.w*context.cellWidth-context.gutter()+"px"}).style("height",function(){return d.h*context.cellHeight-context.gutter()+"px"}),context.dragItemPos={x:d.x,y:d.y}}).on("drag",function(_d){if(!context.designMode())return;const event=common.d3Event();event.sourceEvent.stopPropagation();const d=context.itemsMap[_d.id()],pos=[Math.max(0,Math.round(event.x/context.cellWidth)),Math.max(0,Math.round(event.y/context.cellHeight))],size={w:Math.max(1,pos[0]-d.x+1),h:Math.max(1,pos[1]-d.y+1)};(d.w!==size.w||d.h!==size.h)&&(context.snapping()!=="none"?(context.resetItemsPos(),context.gridList.resizeItem(d,size)):(d.w=size.w,d.h=size.h),(_d.gridColSpan()!==d.w||_d.gridRowSpan()!==d.h)&&(context.items.forEach(context.gridItemToCell),context.updateGrid(d.id,100))),context.dragItem.style("width",function(){return(-d.x+1)*context.cellWidth+event.x-context.gutter()+"px"}).style("height",function(){return(-d.y+1)*context.cellHeight+event.y-context.gutter()+"px"})}).on("end",function(){context.designMode()&&(common.d3Event().sourceEvent.stopPropagation(),context.dragItem.remove(),context.dragItem=null,context.killGridList())})}updateGrid(resize,transitionDuration=0,_noRender=!1){transitionDuration=transitionDuration||0;const context=this;this.divItems.classed("draggable",this.designMode()).transition().duration(transitionDuration).style("left",function(d){return d.gridCol()*context.cellWidth+context.gutter()/2+"px"}).style("top",function(d){return d.gridRow()*context.cellHeight+context.gutter()/2+"px"}).style("width",function(d){return d.gridColSpan()*context.cellWidth-context.gutter()+"px"}).style("height",function(d){return d.gridRowSpan()*context.cellHeight-context.gutter()+"px"}).on("end",function(d){d.surfaceShadow_default(context.surfaceShadow()).surfacePadding_default(context.surfacePadding()).surfaceBorderWidth_default(context.surfaceBorderWidth()).surfaceBackgroundColor_default(context.surfaceBackgroundColor()),(resize===!0||resize===d.id())&&d.resize().lazyRender()})}update(domNode,element2){super.update(domNode,element2),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);const dimensions=this.getDimensions(),clientWidth=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=clientWidth/dimensions.width,this.cellHeight=this.fitTo()==="all"?this.height()/dimensions.height:this.cellWidth,this.designMode()){const cellLaneRatio=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),laneWidth=Math.floor(cellLaneRatio);this.cellWidth=laneWidth,this.cellHeight=this.cellWidth}const context=this,divItems=element2.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(d){return d.id()});this.divItems=divItems.enter().append("div").attr("class","ddCell").each(function(d){d.target(this),d.__grid_watch=d.monitor(function(key,newVal,oldVal){context._renderCount&&(key==="snapping"||key.indexOf("grid")===0)&&newVal!==oldVal&&(context.gridList||(context.initGridList(),context.snapping()!=="none"&&context.gridList.resizeGrid(context.snapping()==="horizontal"?context.snappingRows():context.snappingColumns()),context.items.forEach(context.gridItemToCell),context.updateGrid(d.id(),100),context.killGridList()))}),common.select(this).append("div").attr("class","resizeHandle").call(context._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(divItems),this.divItems.each(function(d){const element=common.select(this);context.designMode()?element.call(context._d3Drag):element.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),divItems.exit().each(function(d){d.target(null),d.__grid_watch&&d.__grid_watch.remove()}).remove();const lanesBackground=element2.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);lanesBackground.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){context.selectionBagClear()}).merge(lanesBackground).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),lanesBackground.exit().each(function(){context.selectionBagClear()}).remove();const lanes=element2.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);lanes.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),lanes.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),lanes.exit().remove()}exit(domNode,element){this.content().forEach(w=>w.target(null)),super.exit(domNode,element)}_createSelectionObject(d){return{_id:d._id,element:()=>d._element,widget:d}}selection(_){return arguments.length?(this._selectionBag.set(_.map(function(row){return this._createSelectionObject(row)},this)),this):this._selectionBag.get().map(function(d){return d._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(d){if(d!==null){const selectionObj=this._createSelectionObject(d);if(common.d3Event().sourceEvent.ctrlKey)this._selectionBag.isSelected(selectionObj)?(this._selectionBag.remove(selectionObj),this.postSelectionChange()):(this._selectionBag.append(selectionObj),this.postSelectionChange());else{const selected=this._selectionBag.get();selected.length===1&&selected[0]._id===selectionObj._id?this.selectionBagClear():this._selectionBag.set([selectionObj]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(layoutArr){this.divItems.each((d,i)=>{if(layoutArr[i]){const[x,y,w,h]=layoutArr[i];d.gridCol(x).gridRow(y).gridColSpan(w).gridRowSpan(h)}}),this.updateGrid(!0)}vizActivation(elem){}}Grid.prototype._class+=" layout_Grid",Grid.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]}),Grid.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:w=>!w.designMode()}),Grid.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]}),Grid.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]),Grid.prototype.publish("snappingColumns",12,"number","Snapping Columns"),Grid.prototype.publish("snappingRows",16,"number","Snapping Rows"),Grid.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]}),Grid.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow"),Grid.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]}),Grid.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]}),Grid.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});class HorizontalList extends FlexGrid{constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}}HorizontalList.prototype._class+=" layout_HorizontalList";class Layered extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_contentContainer"),__publicField2(this,"_widgetPlacements"),__publicField2(this,"_widgetRatios"),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(widget,placement="default",widthRatio=1,heightRatio=1){const widgets=this.widgets();return widgets.push(widget||new common.Text().text("No widget defined for layer.")),this.widgets(widgets),this._widgetPlacements.push(placement),this._widgetRatios.push([widthRatio,heightRatio]),this}enter(domNode,element){super.enter(domNode,element),this._contentContainer=element.append("div").attr("class","container")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding()+"px");const content=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(d){return d.id()});content.enter().append("div").attr("class","content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).each(function(widget,idx){const clientSize={width:context.clientWidth(),height:context.clientHeight()},widgetSize=context.widgetSize(idx,clientSize),widgetPosition=context.widgetPosition(idx,clientSize,widgetSize);this.style.top=widgetPosition.y+"px",this.style.left=widgetPosition.x+"px",widget.resize(widgetSize).render()}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),content.order()}widgetSize(idx,clientSize){return this._widgetPlacements[idx]==="default"?{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}:{width:clientSize.width*this._widgetRatios[idx][0],height:clientSize.height*this._widgetRatios[idx][1]}}widgetPosition(idx,clientSize,widgetSize){switch(this._widgetPlacements[idx]){default:return{x:0,y:0};case"top":return{x:clientSize.width/2-widgetSize.width/2,y:0};case"bottom":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height-widgetSize.height};case"left":return{x:0,y:clientSize.height/2-widgetSize.height/2};case"right":return{x:clientSize.width-widgetSize.width,y:clientSize.height/2-widgetSize.height/2};case"center":return{x:clientSize.width/2-widgetSize.width/2,y:clientSize.height/2-widgetSize.height/2}}}}Layered.prototype._class+=" layout_Layered",Layered.prototype.publish("surfacePadding",0,"number","Padding"),Layered.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Popup extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_surfaceButtons"),__publicField2(this,"_originalPosition"),this._tag="div",this._surfaceButtons=[]}updateState(visible){visible=visible||!this.popupState(),this.popupState(visible).render()}enter(domNode,element){super.enter(domNode,element),this.widget().target(domNode),this._originalPosition=this.position()}update(domNode,element){super.update(domNode,element),element.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(domNode,element){let left,top;switch(this.centerPopup()){case"container":this._placeholderElement&&(left=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,top=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":left=window.innerWidth/2-this.widget().width()/2,top=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:left=0,top=0,this.position(this._originalPosition);break}this.pos({x:left,y:top}),super.postUpdate(domNode,element),element.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(domNode,element){this.widget()&&this.widget().target(null),super.exit(domNode,element)}click(obj){}}Popup.prototype._class+=" layout_Popup",Popup.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{}),Popup.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{}),Popup.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{}),Popup.prototype.publish("top",null,"number","Top position property of popup",null,{}),Popup.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{}),Popup.prototype.publish("left",null,"number","Left position property of popup",null,{}),Popup.prototype.publish("right",null,"number","Right position property of popup",null,{}),Popup.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]}),Popup.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});class Tabbed extends common.HTMLWidget{constructor(){super(),__publicField2(this,"_tabContainer"),__publicField2(this,"_contentContainer"),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(widget,label,isActive,callback){const widgetSize=widget.size();widgetSize.width===0&&widgetSize.height===0&&widget.size({width:"100%",height:"100%"});const labels=this.labels(),widgets=this.widgets();isActive&&this.activeTabIdx(this.widgets().length),labels.push(label);const surface=new Surface().widget(widget||new common.Text().text("No widget defined for tab"));return widgets.push(surface),this.labels(labels),this.widgets(widgets),callback&&callback(surface),this}widgetSize(widgetDiv){const width=this.clientWidth();let height=this.clientHeight();const tcBox=this._tabContainer.node().getBoundingClientRect();return typeof tcBox.height<"u"&&(height-=tcBox.height),{width,height}}enter(domNode,element){super.enter(domNode,element),this._tabContainer=element.append("div"),this._contentContainer=element.append("div")}update(domNode,element){super.update(domNode,element);const context=this;element.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);const tabs=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(d){return d});tabs.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(d,idx){context.click(context.widgets()[idx].widget(),d,idx),context.activeTabIdx(idx).render()}).merge(tabs).classed("active",function(d,idx){return context.activeTabIdx()===idx}).text(function(d){return d}),tabs.exit().remove();const content=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(d){return d.id()});switch(content.enter().append("div").attr("class","tab-content id"+this.id()).each(function(widget,idx){widget.target(this)}).merge(content).classed("active",function(d,idx){return context.activeTabIdx()===idx}).style("display",function(d,idx){return context.activeTabIdx()===idx?"block":"none"}).each(function(surface,idx){if(surface.visible(context.activeTabIdx()===idx),context.activeTabIdx()===idx){const wSize=context.widgetSize(common.select(this));surface.surfaceBorderWidth(context.showTabs()?null:0).surfacePadding(context.showTabs()?null:0).resize(wSize)}}),content.exit().each(function(widget,idx){widget.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(widget,column,idx){}}Tabbed.prototype._class+=" layout_Tabbed",Tabbed.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{}),Tabbed.prototype.publish("surfacePadding",4,"number","Padding"),Tabbed.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{}),Tabbed.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]}),Tabbed.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]}),Tabbed.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});class Toolbar extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element);const context=this;element.attr("title",context.title()).style("background-color",this.backgroundColor());const title=element.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);title.enter().append("div").classed("toolbar-title",!0).append("span"),title.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(context.title()),title.exit().remove();const childWidgets=element.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(d){return d.id()});childWidgets.enter().insert("div","div.toolbar-title").each(function(d,i){const widgetClass=context.widgetClasses()[i]?context.widgetClasses()[i]+" toolbar-child":"toolbar-child";common.select(this).classed(widgetClass,!0),d.target(this)}),childWidgets.exit().each(function(d){d.target(null)}).remove(),childWidgets.order()}render(callback){const context=this;return super.render(function(w){const toolbarBBox=context.element().node().getBoundingClientRect();let minX=toolbarBBox.left+toolbarBBox.width;context.element().selectAll("div.toolbar-child").each(function(d,i){const childBBox=this.getBoundingClientRect();minX>childBBox.left&&(minX=childBBox.left)}),context.element().select(".toolbar-title").style("width",minX-toolbarBBox.left-4+"px"),callback&&callback(w)})}exit(domNode,element){this.widgets().forEach(function(w){w.target(null)}),super.exit(domNode,element)}}Toolbar.prototype._class+=" layout_Toolbar",Toolbar.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]}),Toolbar.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),Toolbar.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),Toolbar.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]}),Toolbar.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});class VerticalList extends FlexGrid{constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}}VerticalList.prototype._class+=" layout_VerticalList";function requireWidget(classID){return new Promise(function(resolve,_reject){const parsedClassID=common.Utility.parseClassID(classID);require&&require([parsedClassID.package],function(Package){let Widget=null;Package&&Package[parsedClassID.widgetID]&&(Widget=Package[parsedClassID.widgetID]),resolve(parsedClassID.memberWidgetID?Widget.prototype?Widget.prototype[parsedClassID.memberWidgetID]:Widget[parsedClassID.memberWidgetID]:Widget)})})}function requireWidgets(classIDs){return Promise.all(classIDs.map(requireWidget))}const Utility=Object.freeze(Object.defineProperty({__proto__:null,requireWidget,requireWidgets},Symbol.toStringTag,{value:"Module"}));class MultiChart extends common.HTMLWidget{constructor(){super();__publicField(this,"_allCharts",{});__publicField(this,"_chartTypeDefaults");__publicField(this,"_chartTypeProperties");__publicField(this,"_chartMonitor");__publicField(this,"_switchingTo");api.INDChart.call(this),api.IGraph.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(item){const newItem=JSON.parse(JSON.stringify(item));newItem.widget=null,this._allCharts[item.id]=newItem,this._allCharts[item.display]=newItem,this._allCharts[item.widgetClass]=newItem},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(_){const retVal=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(_)}return retVal}columns(_,asDefault){const retVal=common.HTMLWidget.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(_,asDefault)}return retVal}data(_){const retVal=common.HTMLWidget.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(_)}return retVal}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(_){return arguments.length?(this.chart()&&this.chart().visible(_),this):this.chart()&&this.chart().visible()}chartTypeDefaults(_){return arguments.length?(this._chartTypeDefaults=_,this):this._chartTypeDefaults}chartTypeProperties(_){return arguments.length?(this._chartTypeProperties=_,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(chartType,callback){const classInfo=common.Utility.parseClassID(this._allCharts[chartType].widgetClass);switch(classInfo.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(mod=>{callback(new mod[classInfo.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(mod=>{callback(new mod[classInfo.widgetID])});break;default:requireWidget(this._allCharts[chartType].widgetClass).then(function(WidgetClass){callback(new WidgetClass)})}}switchChart(callback){if(this._switchingTo===this.chartType()){callback&&callback(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();const oldContent=this.chart(),context=this;this.requireContent(this.chartType(),function(newContent){if(newContent!==oldContent){const size=context.size();newContent.fields(context.fields()).data(context.data()).size(size),context.chart(newContent),oldContent&&oldContent.size({width:1,height:1}).render()}delete context._switchingTo,callback&&callback(this)})}update(domNode,element){super.update(domNode,element);const content=element.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(d){return d._id});content.enter().append("div").attr("class","multiChart").each(function(d){d.target(this)});const currChart=this.chart();if(currChart){for(const key in this._chartTypeDefaults)if(currChart[key+"_default"])try{currChart[key+"_default"](this._chartTypeDefaults[key])}catch{console.warn("Exception Setting Default: "+key)}else console.warn("Unknown Default: "+key);this._chartTypeDefaults={};for(const propKey in this._chartTypeProperties)if(currChart[propKey])try{currChart[propKey](this._chartTypeProperties[propKey])}catch{console.warn("Exception Setting Property: "+propKey)}else console.warn("Unknown Property: "+propKey);this._chartTypeProperties={}}const context=this;content.each(function(d){d.resize(context.size())}),content.exit().transition().each(function(d){d.target(null)}).remove()}exit(domNode,element){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(domNode,element)}render(_callback){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){const context=this,args=arguments;return this.switchChart(function(){common.HTMLWidget.prototype.render.apply(context,args)}),this}return common.HTMLWidget.prototype.render.apply(this,arguments)}}MultiChart.prototype._class+=" composite_MultiChart",MultiChart.prototype.implements(api.INDChart.prototype),MultiChart.prototype.implements(api.IGraph.prototype),MultiChart.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(item){return item.family="other",item}),MultiChart.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(item){return item.family="GRAPH",item}),MultiChart.prototype._1DChartTypes=[].map(function(item){return item.family="1D",item}),MultiChart.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(item){return item.family="2D",item}),MultiChart.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(item){return item.family="ND",item}),MultiChart.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(item){return item.family="map",item}),MultiChart.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(item){return item.family="any",item}),MultiChart.prototype._allChartTypes=MultiChart.prototype._otherChartTypes.concat(MultiChart.prototype._graphChartTypes.concat(MultiChart.prototype._1DChartTypes.concat(MultiChart.prototype._2DChartTypes.concat(MultiChart.prototype._NDChartTypes.concat(MultiChart.prototype._mapChartTypes.concat(MultiChart.prototype._anyChartTypes)))))),MultiChart.prototype._allMap=common.map(MultiChart.prototype._allChartTypes,function(item){return item.family}),MultiChart.prototype._allFamilies=MultiChart.prototype._allMap.keys(),MultiChart.prototype._allChartTypesMap={},MultiChart.prototype._allChartTypesByClass={},MultiChart.prototype._allChartTypes.forEach(function(item){item.widgetPath=common.Utility.widgetPath(item.widgetClass),MultiChart.prototype._allChartTypesMap[item.id]=item,MultiChart.prototype._allChartTypesByClass[item.widgetClass]=item}),MultiChart.prototype.publishReset(),MultiChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MultiChart.prototype.publish("chartType","BUBBLE","set","Chart Type",MultiChart.prototype._allChartTypes.map(function(item){return item.id}),{tags:["Basic"]}),MultiChart.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});const _origChart=MultiChart.prototype.chart;MultiChart.prototype.chart=function(_){const retVal=_origChart.apply(this,arguments);if(arguments.length){const context=this;this._allChartTypesByClass[_.classID()]?this.chartType(this._allChartTypesByClass[_.classID()].id):console.warn("Unknown Class ID: "+_.classID()),_.click=function(_row,_column,_selected){context.click.apply(context,arguments)},_.dblclick=function(_row,_column,_selected){context.dblclick.apply(context,arguments)},_.vertex_click=function(row,column,selected,more){context.vertex_click.apply(context,arguments)},_.vertex_dblclick=function(row,column,selected,more){context.vertex_dblclick.apply(context,arguments)},_.edge_click=function(row,column,selected,more){context.edge_click.apply(context,arguments)},_.edge_dblclick=function(row,column,selected,more){context.edge_dblclick.apply(context,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=_.monitor(function(key,newVal,oldVal){context.broadcast(key,newVal,oldVal,_)})}return retVal};class Summary extends common.HTMLWidget{constructor(){super()}enter(domNode,element){super.enter(domNode,element),element.append("p")}update(domNode,element){super.update(domNode,element),element.select("p").text(this.text())}}Summary.prototype.publish("text","","string");class MultiChartPanel extends ChartPanel{constructor(){super(),this.widget(new MultiChart().chartType("COLUMN"))}multiChart(){return this._widget}chartType(_){return arguments.length?(this._widget.chartType(_),this):this._widget.chartType()}chart(_){return arguments.length?(this._widget.chart(_),this):this._widget.chart()}chartTypeDefaults(_){return arguments.length?(this._widget.chartTypeDefaults(_),this):this._widget.chartTypeDefaults()}chartTypeProperties(_){return arguments.length?(this._widget.chartTypeProperties(_),this):this._widget.chartTypeProperties()}update(domNode,element){super.update(domNode,element),this._widget instanceof MultiChart&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(domNode,element)}}MultiChartPanel.prototype._class+=" composite_MultiChartPanel";class Dermatology extends Border{constructor(){super();__publicField(this,"_toolbar");__publicField(this,"_propEditor");__publicField(this,"_showProperties");__publicField(this,"_propsButton");__publicField(this,"_prevWidget");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"widget");__publicField(this,"widget_exists");this._toolbar=new Toolbar().title("Dermatology"),this._propEditor=new other.PropertyEditor().show_settings(!0)}showProperties(_){if(!arguments.length)return this._showProperties;this._showProperties=_,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);const widget=this.widget();return widget&&widget.designMode&&widget.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(domNode,element){super.enter(domNode,element),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);const context=this;this._propsButton=new form.OnOff().id(this.id()+"_props").value("Properties").on("click",function(){context.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(domNode,element){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(domNode,element);const widget=this.widget();element.style("background-color",widget&&widget.surfaceShadow?null:"white")}render(callback){const widget=this.widget();return widget!==this._prevWidget&&(widget&&widget.surfaceShadow&&widget.surfaceBackgroundColor_default("white"),this.setContent("center",widget),this._propEditor.widget(widget),this._prevWidget=widget),super.render(callback)}}Dermatology.prototype._class+=" composite_Dermatology",Dermatology.prototype.publish("showToolbar",!0,"boolean","Show Toolbar"),Dermatology.prototype.publish("widget",null,"widget","Widget");class MegaChart extends Border{constructor(){super();__publicField(this,"_chart",new MultiChart);__publicField(this,"_toolbar",new Toolbar);__publicField(this,"_valueTitle",new common.Text);__publicField(this,"_domainTitle",new common.Text);__publicField(this,"_legend",new other.Legend);__publicField(this,"_csvButton");__publicField(this,"_infoButton");__publicField(this,"_maximizeButton");__publicField(this,"_legendButton");__publicField(this,"_chartTypeSelect");__publicField(this,"_prevLegendPosition");__publicField(this,"_prevShowToolbar");__publicField(this,"_1DChartTypes");__publicField(this,"_2DChartTypes");__publicField(this,"_NDChartTypes");__publicField(this,"_anyChartTypes");__publicField(this,"_allChartTypes");__publicField(this,"_contentClasses");__publicField(this,"_dataCount");__publicField(this,"hideRowOnLegendClick");__publicField(this,"hideRowOnLegendClick_exists");__publicField(this,"showToolbar");__publicField(this,"showToolbar_exists");__publicField(this,"titleFontSize");__publicField(this,"titleFontSize_exists");__publicField(this,"titleFontColor");__publicField(this,"titleFontColor_exists");__publicField(this,"titleFontFamily");__publicField(this,"titleFontFamily_exists");__publicField(this,"titleFontBold");__publicField(this,"titleFontBold_exists");__publicField(this,"titleBackgroundColor");__publicField(this,"titleBackgroundColor_exists");__publicField(this,"maximizedBackgroundColor");__publicField(this,"maximizedBackgroundColor_exists");__publicField(this,"showChartSelect");__publicField(this,"showChartSelect_exists");__publicField(this,"showCSV");__publicField(this,"showCSV_exists");__publicField(this,"showCount");__publicField(this,"showCount_exists");__publicField(this,"showMaximize");__publicField(this,"showMaximize_exists");__publicField(this,"toolbarShowLegend");__publicField(this,"toolbarShowLegend_exists");__publicField(this,"showInfoButton");__publicField(this,"showInfoButton_exists");__publicField(this,"infoIcon");__publicField(this,"infoIcon_exists");__publicField(this,"legendPosition");__publicField(this,"legendPosition_exists");__publicField(this,"title");__publicField(this,"title_exists");__publicField(this,"domainAxisTitle");__publicField(this,"domainAxisTitle_exists");__publicField(this,"valueAxisTitle");__publicField(this,"valueAxisTitle_exists");__publicField(this,"chartType");__publicField(this,"chartType_exists");__publicField(this,"chart");__publicField(this,"chart_exists");this._tag="div";const context=this;this._chart.click=function(){context.click.apply(context,arguments)},this._chart.dblclick=function(){context.dblclick.apply(context,arguments)},this._chart.vertex_click=function(){context.vertex_click.apply(context,arguments)},this._chart.vertex_dblclick=function(){context.vertex_dblclick.apply(context,arguments)},this._chart.edge_click=function(){context.edge_click.apply(context,arguments)},this._chart.edge_dblclick=function(){context.edge_dblclick.apply(context,arguments)}}toolbarWidgets(_){return arguments.length?(this._toolbar.widgets(_),this):this._toolbar.widgets()}chartTypeDefaults(_){return arguments.length?(this._chart.chartTypeDefaults(_),this):this._chart.chartTypeDefaults()}chartTypeProperties(_){return arguments.length?(this._chart.chartTypeProperties(_),this):this._chart.chartTypeProperties()}fields(_){return arguments.length?(this._chart.fields(_),this):this._chart.fields()}columns(_,asDefault){return arguments.length?(this._chart.columns(_,asDefault),this):this._chart.columns()}data(_){return arguments.length?(this._chart.data(_),this):this._chart.data()}downloadCSV(){return common.Utility.downloadString("CSV",this._chart.export("CSV")),this}enter(domNode,element){super.enter(domNode,element);const context=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new other.Html().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new form.Button().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(a2){context.downloadCSV()},this._infoButton=new form.Button().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new form.Button().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value(""),this._maximizeButton.click=function(buttonWidget){const target=context.target();let node=target;const isMaximized=common.select(target).classed("__hpccisMaximized"),parentGrid=context.locateAncestor("layout_Grid");parentGrid?node=parentGrid.element().node():node=document.body;const targetElement=common.select(context.target());if(isMaximized){const targetParentBox=target.parentElement.getBoundingClientRect(),targetPaddingTop=parseInt(getComputedStyle(target,null).getPropertyValue("padding-top").replace("px","")),targetPaddingLeft=parseInt(getComputedStyle(target,null).getPropertyValue("padding-left").replace("px","")),targetPaddingRight=parseInt(getComputedStyle(target,null).getPropertyValue("padding-right").replace("px","")),targetPaddingBottom=parseInt(getComputedStyle(target,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.transition().style("top",targetParentBox.top+"px").style("left",targetParentBox.left+"px").style("width",targetParentBox.width-targetPaddingLeft-targetPaddingRight+"px").style("height",targetParentBox.height-targetPaddingTop-targetPaddingBottom+"px").each("end",function(){targetElement.style("position",target.__old_position),targetElement.style("z-index",target.__old_zindex),targetElement.style("background-color",target.__old_backgroundColor),targetElement.style("box-shadow",target.__old_boxshadow),context.resize({width:targetParentBox.width-targetPaddingLeft-targetPaddingRight,height:targetParentBox.height-targetPaddingTop-targetPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}else{target.__old_position=target.style.position,target.__old_zindex=target.style.zIndex,target.__old_boxshadow=target.style.boxShadow,target.__old_backgroundColor=context.element().style("background-color");const grid=common.select(node).datum(),gridTarget=grid.target(),gridBox=grid?gridTarget.getBoundingClientRect():node.getBoundingClientRect(),gridPaddingTop=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-top").replace("px","")),gridPaddingLeft=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-left").replace("px","")),gridPaddingRight=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-right").replace("px","")),gridPaddingBottom=parseInt(getComputedStyle(gridTarget,null).getPropertyValue("padding-bottom").replace("px",""));context.contentDiv.style("opacity",0).transition(100),targetElement.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",target.__old_backgroundColor).transition().style("top",gridBox.top+gridPaddingTop+"px").style("left",gridBox.left+gridPaddingLeft+"px").style("width",gridBox.width-gridPaddingLeft-gridPaddingRight+"px").style("height",gridBox.height-gridPaddingTop-gridPaddingBottom+"px").each("end",function(){targetElement.style("background-color",context.maximizedBackgroundColor()),context.resize({width:gridBox.width-gridPaddingLeft-gridPaddingRight,height:gridBox.height-gridPaddingTop-gridPaddingBottom}).render(function(){context.contentDiv.transition().style("opacity",1)}),buttonWidget.value("").render()})}common.select(target).classed("__hpccisMaximized",!isMaximized)},this._legendButton=new form.Input().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(a2){context.render()},this._chartTypeSelect=new form.Select().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(a2){return[a2.id,a2.display]})).value(this.chartType()),this._chartTypeSelect.change=function(a2){context.chartType(a2.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(domNode,element){function showHideButton(twArr2,button,show){if(show&&twArr2.indexOf(button)===-1)twArr2.push(button);else if(!show){const idx=twArr2.indexOf(button);idx>=0&&twArr2.splice(idx,1)}}this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());const twArr=this.toolbarWidgets();showHideButton(twArr,this._csvButton,this.showCSV()),showHideButton(twArr,this._maximizeButton,this.showMaximize()),showHideButton(twArr,this._legendButton,this.toolbarShowLegend()),showHideButton(twArr,this._chartTypeSelect,this.showChartSelect()),showHideButton(twArr,this._infoButton,this.showInfoButton()),showHideButton(twArr,this._dataCount,this.showCount()),this.toolbarWidgets(twArr),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let legendPosition=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(legendPosition="none"),this._prevLegendPosition!==legendPosition&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=legendPosition,legendPosition!=="none"&&(this._legend=new other.Legend().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(legendPosition,this._legend),this._legend.orientation(["top","bottom"].indexOf(legendPosition)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&legendPosition!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&legendPosition!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(domNode,element)}exit(domNode,element){super.exit(domNode,element)}getContentClasses(){const obj={},t=this.getContent("top"),r=this.getContent("right"),b=this.getContent("bottom"),l=this.getContent("left");return obj.top=t!==null?t.classID():void 0,obj.right=r!==null?r.classID():void 0,obj.bottom=b!==null?b.classID():void 0,obj.left=l!==null?l.classID():void 0,obj}serializeState(){const state={title:this.title(),data:this.data()},chart=this.chart();return chart&&chart.serializeState&&(state.chart=chart.serializeState(),delete state.chart.data),state}deserializeState(state){if(state){this.title(state.title).data(state.data);const chart=this.chart();chart&&state.chart&&chart.serializeState&&chart.deserializeState(state.chart)}return this}click(row,column,selected){}dblclick(row,column,selected){}vertex_click(row,col,sel,more){more&&more.vertex}vertex_dblclick(row,col,sel,more){more&&more.vertex}edge_click(row,col,sel,more){more&&more.edge}edge_dblclick(row,col,sel,more){more&&more.edge}}MegaChart.prototype._class+=" composite_MegaChart",MegaChart.prototype._1DChartTypes=MultiChart.prototype._1DChartTypes,MegaChart.prototype._2DChartTypes=MultiChart.prototype._2DChartTypes,MegaChart.prototype._NDChartTypes=MultiChart.prototype._NDChartTypes,MegaChart.prototype._anyChartTypes=MultiChart.prototype._anyChartTypes,MegaChart.prototype._allChartTypes=MultiChart.prototype._allChartTypes,MegaChart.prototype.publishReset(),MegaChart.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]}),MegaChart.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]}),MegaChart.prototype.publishProxy("title","_toolbar","title"),MegaChart.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0}),MegaChart.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0}),MegaChart.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]}),MegaChart.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]}),MegaChart.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]}),MegaChart.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]}),MegaChart.prototype.publish("infoIcon","","string","Help Icon",null,{tags:["Basic"]}),MegaChart.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]}),MegaChart.prototype.publishProxy("legendFormat","_legend","rainbowFormat"),MegaChart.prototype.publishProxy("legendBins","_legend","rainbowBins"),MegaChart.prototype.publishProxy("domainAxisTitle","_domainTitle","text"),MegaChart.prototype.publishProxy("valueAxisTitle","_valueTitle","text"),MegaChart.prototype.publishProxy("chartType","_chart","chartType"),MegaChart.prototype.publishProxy("chart","_chart","chart");function retrofit_114_serialization(state,replacement_version){if(replacement_version=!replacement_version||replacement_version==="1.14.2-dev"?"1.18.0":replacement_version,!state.__version)return state;const state_version_obj=common.Utility.parseVersionString(state.__version),target_version_obj=common.Utility.parseVersionString(replacement_version);if(state_version_obj.major===1&&state_version_obj.minor===14){console.info("Upgrading old persist from "+state.__version+" to "+replacement_version);let _json_str=JSON.stringify(state);_json_str=_json_str.split('"'+state.__version).join('"'+replacement_version);const ret_obj=JSON.parse(_json_str);return ret_obj.__properties&&ret_obj.__properties.content&&ret_obj.__properties.content.forEach(function(n){JSON.stringify(n).split("graph_Graph").length>1&&target_version_obj.minor>=16&&(n.__properties.widget.__id=n.__properties.widget.__properties.widget.__id,n.__properties.widget.__class="composite_MegaChart",n.__properties.widget.__properties.showCSV=!1,n.__properties.widget.__properties.chartType="GRAPH",n.__properties.widget.__properties.chart=n.__properties.widget.__properties.widget,delete n.__properties.widget.__properties.chart.__id,delete n.__properties.widget.__properties.widget),typeof n.__properties.fields>"u"&&(n.__properties.fields=[])}),ret_obj}else return state}function deserializeFromObject(widget,state){const promises=[];return other.Persist.widgetPropertyWalker(widget,null,(w,item)=>{if(w[item.id+"_reset"](),state.__properties[item.id]!==void 0)switch(item.type){case"widget":const widgetKey=item.id;promises.push(create(state.__properties[item.id]).then(w2=>(w2._owner=w,w[widgetKey](w2),w2)));break;case"widgetArray":case"propertyArray":const widgetArrayKey=item.id,widgetStateArray=state.__properties[item.id];if(widgetStateArray.length){const arrPromises=[];for(const widgetState of widgetStateArray)arrPromises.push(create(widgetState).then(widgetItem=>(widgetItem._owner=w,widgetItem)));promises.push(Promise.all(arrPromises).then(widgetArray=>{w[widgetArrayKey](widgetArray)}))}break;default:w[item.id](state.__properties[item.id]);break}}),Promise.all(promises).then(widgets=>{if(state.__data){for(const key in state.__data)if(state.__data.HasOwnProperty(key))switch(key){case"data":widget.data(state.__data[key]);break;default:console.warn("Unexpected __data item: "+key),widget[key](state.__data[key]);break}}return state.__state&&(widget.deserializeState?widget.deserializeState(state.__state):state.__state.data&&widget.data&&widget.data(state.__state.data)),widget})}function deserialize(widget,state){typeof state=="string"&&(state=JSON.parse(state)),state.__id&&state.__id.indexOf(widget._idSeed)!==0&&widget._id!==state.__id&&console.warn("Deserialize: IDs do not match - "+widget._id),deserializeFromObject(widget,state)}function create(state){return typeof state=="string"&&(state=JSON.parse(state)),state=retrofit_114_serialization(state,common.Platform.version()),requireWidget(state.__class).then(WidgetClass=>{const widget=new WidgetClass;return state.__id&&state.__id.indexOf(widget._idSeed)!==0&&state.__id.indexOf("_pe")!==0&&(widget._id=state.__id),deserializeFromObject(widget,state)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}function clone(widget){create(other.Persist.serializeToObject(widget,void 0,!0,!0))}const Persist=Object.freeze(Object.defineProperty({__proto__:null,clone,create,deserialize,deserializeFromObject,retrofit_114_serialization},Symbol.toStringTag,{value:"Module"}));exports2.BUILD_VERSION=BUILD_VERSION,exports2.Dermatology=Dermatology,exports2.MegaChart=MegaChart,exports2.MultiChart=MultiChart,exports2.MultiChartPanel=MultiChartPanel,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.Persist=Persist,exports2.Utility=Utility,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
248
8
  //# sourceMappingURL=index.umd.cjs.map