347 lines
702 KiB
JavaScript
347 lines
702 KiB
JavaScript
import{__commonJS,__export,__toESM,require_memoizerific}from"./chunk-ZR5JZWHI.js";var require_react_development=__commonJS({"../../node_modules/react/cjs/react.development.js"(exports,module){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ReactVersion="18.2.0",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(format2){{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",format2,args)}}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 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")}},assign2=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,assign2(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;function createRef(){var refObject={current:null};return Object.seal(refObject),refObject}var isArrayImpl=Array.isArray;function isArray(a){return isArrayImpl(a)}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 hasOwnProperty2=Object.prototype.hasOwnProperty,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown,didWarnAboutStringRefs;didWarnAboutStringRefs={};function hasValidRef(config){if(hasOwnProperty2.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(hasOwnProperty2.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 createElement2(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)hasOwnProperty2.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=assign2({},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)hasOwnProperty2.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(match2){return escaperLookup[match2]});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(c){return c})}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 createContext2(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
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
|
|
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
|
|
|
|
Your code should look like:
|
|
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 forwardRef3(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:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),dispatcher}function useContext3(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 useRef2(initialValue){var dispatcher=resolveDispatcher();return dispatcher.useRef(initialValue)}function useEffect(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useEffect(create3,deps)}function useInsertionEffect3(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useInsertionEffect(create3,deps)}function useLayoutEffect2(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useLayoutEffect(create3,deps)}function useCallback(callback,deps){var dispatcher=resolveDispatcher();return dispatcher.useCallback(callback,deps)}function useMemo(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useMemo(create3,deps)}function useImperativeHandle(ref,create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useImperativeHandle(ref,create3,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:assign2({},props,{value:prevLog}),info:assign2({},props,{value:prevInfo}),warn:assign2({},props,{value:prevWarn}),error:assign2({},props,{value:prevError}),group:assign2({},props,{value:prevGroup}),groupCollapsed:assign2({},props,{value:prevGroupCollapsed}),groupEnd:assign2({},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,prefix2;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix2===void 0)try{throw Error()}catch(x){var match2=x.stack.trim().match(/\n( *(at )?)/);prefix2=match2&&match2[1]||""}return`
|
|
`+prefix2+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(`
|
|
`),controlLines=control.stack.split(`
|
|
`),s=sampleLines.length-1,c=controlLines.length-1;s>=1&&c>=0&&sampleLines[s]!==controlLines[c];)c--;for(;s>=1&&c>=0;s--,c--)if(sampleLines[s]!==controlLines[c]){if(s!==1||c!==1)do if(s--,c--,c<0||sampleLines[s]!==controlLines[c]){var _frame=`
|
|
`+sampleLines[s].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(s>=1&&c>=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(hasOwnProperty2);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`
|
|
|
|
Check the render method of \``+name+"`."}return""}function getSourceInfoErrorAddendum(source){if(source!==void 0){var fileName=source.fileName.replace(/^.*[\\\/]/,""),lineNumber=source.lineNumber;return`
|
|
|
|
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=`
|
|
|
|
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(node2,parentType){if(typeof node2=="object"){if(isArray(node2))for(var i=0;i<node2.length;i++){var child=node2[i];isValidElement(child)&&validateExplicitKey(child,parentType)}else if(isValidElement(node2))node2._store&&(node2._store.validated=!0);else if(node2){var iteratorFn=getIteratorFn(node2);if(typeof iteratorFn=="function"&&iteratorFn!==node2.entries)for(var iterator=iteratorFn.call(node2),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=createElement2.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(scope2,options){var prevTransition=ReactCurrentBatchConfig.transition;ReactCurrentBatchConfig.transition={};var currentTransition=ReactCurrentBatchConfig.transition;ReactCurrentBatchConfig.transition._updatedFibers=new Set;try{scope2()}finally{if(ReactCurrentBatchConfig.transition=prevTransition,prevTransition===null&¤tTransition._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=module&&module[requireString];enqueueTaskImpl=nodeRequire.call(module,"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};exports.Children=Children,exports.Component=Component,exports.Fragment=REACT_FRAGMENT_TYPE,exports.Profiler=REACT_PROFILER_TYPE,exports.PureComponent=PureComponent,exports.StrictMode=REACT_STRICT_MODE_TYPE,exports.Suspense=REACT_SUSPENSE_TYPE,exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ReactSharedInternals,exports.cloneElement=cloneElement$1,exports.createContext=createContext2,exports.createElement=createElement$1,exports.createFactory=createFactory,exports.createRef=createRef,exports.forwardRef=forwardRef3,exports.isValidElement=isValidElement,exports.lazy=lazy,exports.memo=memo,exports.startTransition=startTransition,exports.unstable_act=act,exports.useCallback=useCallback,exports.useContext=useContext3,exports.useDebugValue=useDebugValue,exports.useDeferredValue=useDeferredValue,exports.useEffect=useEffect,exports.useId=useId,exports.useImperativeHandle=useImperativeHandle,exports.useInsertionEffect=useInsertionEffect3,exports.useLayoutEffect=useLayoutEffect2,exports.useMemo=useMemo,exports.useReducer=useReducer,exports.useRef=useRef2,exports.useState=useState,exports.useSyncExternalStore=useSyncExternalStore,exports.useTransition=useTransition,exports.version=ReactVersion,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_react=__commonJS({"../../node_modules/react/index.js"(exports,module){"use strict";module.exports=require_react_development()}});var require_scheduler_development=__commonJS({"../../node_modules/scheduler/cjs/scheduler.development.js"(exports){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var enableSchedulerDebugging=!1,enableProfiling=!1,frameYieldMs=5;function push(heap,node2){var index=heap.length;heap.push(node2),siftUp(heap,node2,index)}function peek2(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,node2,i){for(var index=i;index>0;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(compare(parent,node2)>0)heap[parentIndex]=node2,heap[index]=parent,index=parentIndex;else return}}function siftDown(heap,node2,i){for(var index=i,length2=heap.length,halfLength=length2>>>1;index<halfLength;){var leftIndex=(index+1)*2-1,left=heap[leftIndex],rightIndex=leftIndex+1,right=heap[rightIndex];if(compare(left,node2)<0)rightIndex<length2&&compare(right,left)<0?(heap[index]=right,heap[rightIndex]=node2,index=rightIndex):(heap[index]=left,heap[leftIndex]=node2,index=leftIndex);else if(rightIndex<length2&&compare(right,node2)<0)heap[index]=right,heap[rightIndex]=node2,index=rightIndex;else return}}function compare(a,b){var diff=a.sortIndex-b.sortIndex;return diff!==0?diff:a.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;exports.unstable_now=function(){return localPerformance.now()}}else{var localDate=Date,initialTime=localDate.now();exports.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,isInputPending=typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0?navigator.scheduling.isInputPending.bind(navigator.scheduling):null;function advanceTimers(currentTime){for(var timer=peek2(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=peek2(timerQueue)}}function handleTimeout(currentTime){if(isHostTimeoutScheduled=!1,advanceTimers(currentTime),!isHostCallbackScheduled)if(peek2(taskQueue)!==null)isHostCallbackScheduled=!0,requestHostCallback(flushWork);else{var firstTimer=peek2(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime)}}function flushWork(hasTimeRemaining,initialTime2){isHostCallbackScheduled=!1,isHostTimeoutScheduled&&(isHostTimeoutScheduled=!1,cancelHostTimeout()),isPerformingWork=!0;var previousPriorityLevel=currentPriorityLevel;try{if(enableProfiling)try{return workLoop(hasTimeRemaining,initialTime2)}catch(error){if(currentTask!==null){var currentTime=exports.unstable_now();currentTask.isQueued=!1}throw error}else return workLoop(hasTimeRemaining,initialTime2)}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1}}function workLoop(hasTimeRemaining,initialTime2){var currentTime=initialTime2;for(advanceTimers(currentTime),currentTask=peek2(taskQueue);currentTask!==null&&!enableSchedulerDebugging&&!(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=exports.unstable_now(),typeof continuationCallback=="function"?currentTask.callback=continuationCallback:currentTask===peek2(taskQueue)&&pop(taskQueue),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek2(taskQueue)}if(currentTask!==null)return!0;var firstTimer=peek2(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=exports.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),peek2(taskQueue)===null&&newTask===peek2(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 peek2(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=exports.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=exports.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(exports.unstable_now())},ms)}function cancelHostTimeout(){localClearTimeout(taskTimeoutID),taskTimeoutID=-1}var unstable_requestPaint=requestPaint,unstable_Profiling=null;exports.unstable_IdlePriority=IdlePriority,exports.unstable_ImmediatePriority=ImmediatePriority,exports.unstable_LowPriority=LowPriority,exports.unstable_NormalPriority=NormalPriority,exports.unstable_Profiling=unstable_Profiling,exports.unstable_UserBlockingPriority=UserBlockingPriority,exports.unstable_cancelCallback=unstable_cancelCallback,exports.unstable_continueExecution=unstable_continueExecution,exports.unstable_forceFrameRate=forceFrameRate,exports.unstable_getCurrentPriorityLevel=unstable_getCurrentPriorityLevel,exports.unstable_getFirstCallbackNode=unstable_getFirstCallbackNode,exports.unstable_next=unstable_next,exports.unstable_pauseExecution=unstable_pauseExecution,exports.unstable_requestPaint=unstable_requestPaint,exports.unstable_runWithPriority=unstable_runWithPriority,exports.unstable_scheduleCallback=unstable_scheduleCallback,exports.unstable_shouldYield=shouldYieldToHost,exports.unstable_wrapCallback=unstable_wrapCallback,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_scheduler=__commonJS({"../../node_modules/scheduler/index.js"(exports,module){"use strict";module.exports=require_scheduler_development()}});var require_react_dom_development=__commonJS({"../../node_modules/react-dom/cjs/react-dom.development.js"(exports){"use strict";(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var React3=require_react(),Scheduler=require_scheduler(),ReactSharedInternals=React3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,suppressWarning=!1;function setSuppressWarning(newSuppressWarning){suppressWarning=newSuppressWarning}function warn(format2){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",format2,args)}}function error(format2){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",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 FunctionComponent=0,ClassComponent=1,IndeterminateComponent=2,HostRoot=3,HostPortal=4,HostComponent=5,HostText=6,Fragment2=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,enableSuspenseAvoidThisFallback=!1,disableCommentsAsDOMContainers=!0,enableCustomElementPropertySupport=!1,warnAboutStringRefs=!1,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",hasOwnProperty2=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 hasOwnProperty2.call(validatedAttributeNameCache,attributeName)?!0:hasOwnProperty2.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 prefix3=name.toLowerCase().slice(0,5);return prefix3!=="data-"&&prefix3!=="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(token2){return token2[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(node2,name,expected,propertyInfo){if(propertyInfo.mustUseProperty){var propertyName=propertyInfo.propertyName;return node2[propertyName]}else{checkAttributeStringCoercion(expected,name),propertyInfo.sanitizeURL&&sanitizeURL(""+expected);var attributeName=propertyInfo.attributeName,stringValue=null;if(propertyInfo.type===OVERLOADED_BOOLEAN){if(node2.hasAttribute(attributeName)){var value=node2.getAttribute(attributeName);return value===""?!0:shouldRemoveAttribute(name,expected,propertyInfo,!1)?value:value===""+expected?expected:value}}else if(node2.hasAttribute(attributeName)){if(shouldRemoveAttribute(name,expected,propertyInfo,!1))return node2.getAttribute(attributeName);if(propertyInfo.type===BOOLEAN)return expected;stringValue=node2.getAttribute(attributeName)}return shouldRemoveAttribute(name,expected,propertyInfo,!1)?stringValue===null?expected:stringValue:stringValue===""+expected?expected:stringValue}}function getValueForAttribute(node2,name,expected,isCustomComponentTag){{if(!isAttributeNameSafe(name))return;if(!node2.hasAttribute(name))return expected===void 0?void 0:null;var value=node2.getAttribute(name);return checkAttributeStringCoercion(expected,name),value===""+expected?expected:value}}function setValueForProperty(node2,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?node2.removeAttribute(_attributeName):(checkAttributeStringCoercion(value,name),node2.setAttribute(_attributeName,""+value))}return}var mustUseProperty=propertyInfo.mustUseProperty;if(mustUseProperty){var propertyName=propertyInfo.propertyName;if(value===null){var type=propertyInfo.type;node2[propertyName]=type===BOOLEAN?!1:""}else node2[propertyName]=value;return}var attributeName=propertyInfo.attributeName,attributeNamespace=propertyInfo.attributeNamespace;if(value===null)node2.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?node2.setAttributeNS(attributeNamespace,attributeName,attributeValue):node2.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 assign2=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:assign2({},props,{value:prevLog}),info:assign2({},props,{value:prevInfo}),warn:assign2({},props,{value:prevWarn}),error:assign2({},props,{value:prevError}),group:assign2({},props,{value:prevGroup}),groupCollapsed:assign2({},props,{value:prevGroupCollapsed}),groupEnd:assign2({},props,{value:prevGroupEnd})})}disabledDepth<0&&error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,prefix2;function describeBuiltInComponentFrame(name,source,ownerFn){{if(prefix2===void 0)try{throw Error()}catch(x){var match2=x.stack.trim().match(/\n( *(at )?)/);prefix2=match2&&match2[1]||""}return`
|
|
`+prefix2+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(`
|
|
`),controlLines=control.stack.split(`
|
|
`),s=sampleLines.length-1,c=controlLines.length-1;s>=1&&c>=0&&sampleLines[s]!==controlLines[c];)c--;for(;s>=1&&c>=0;s--,c--)if(sampleLines[s]!==controlLines[c]){if(s!==1||c!==1)do if(s--,c--,c<0||sampleLines[s]!==controlLines[c]){var _frame=`
|
|
`+sampleLines[s].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(s>=1&&c>=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){var owner=fiber._debugOwner?fiber._debugOwner.type:null,source=fiber._debugSource;switch(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="",node2=workInProgress2;do info+=describeFiber(node2),node2=node2.return;while(node2);return info}catch(x){return`
|
|
Error generating stack: `+x.message+`
|
|
`+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 Fragment2: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(node2){return node2._valueTracker}function detachTracker(node2){node2._valueTracker=null}function getValueFromNode(node2){var value="";return node2&&(isCheckable(node2)?value=node2.checked?"true":"false":value=node2.value),value}function trackValueOnNode(node2){var valueField=isCheckable(node2)?"checked":"value",descriptor=Object.getOwnPropertyDescriptor(node2.constructor.prototype,valueField);checkFormFieldValueStringCoercion(node2[valueField]);var currentValue=""+node2[valueField];if(!(node2.hasOwnProperty(valueField)||typeof descriptor>"u"||typeof descriptor.get!="function"||typeof descriptor.set!="function")){var get2=descriptor.get,set2=descriptor.set;Object.defineProperty(node2,valueField,{configurable:!0,get:function(){return get2.call(this)},set:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value,set2.call(this,value)}}),Object.defineProperty(node2,valueField,{enumerable:descriptor.enumerable});var tracker={getValue:function(){return currentValue},setValue:function(value){checkFormFieldValueStringCoercion(value),currentValue=""+value},stopTracking:function(){detachTracker(node2),delete node2[valueField]}};return tracker}}function track(node2){getTracker(node2)||(node2._valueTracker=trackValueOnNode(node2))}function updateValueIfChanged(node2){if(!node2)return!1;var tracker=getTracker(node2);if(!tracker)return!0;var lastValue=tracker.getValue(),nextValue=getValueFromNode(node2);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 node2=element,checked=props.checked,hostProps=assign2({},props,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:checked??node2._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 node2=element,defaultValue=props.defaultValue==null?"":props.defaultValue;node2._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 node2=element,checked=props.checked;checked!=null&&setValueForProperty(node2,"checked",checked,!1)}function updateWrapper(element,props){var node2=element;{var controlled=isControlled(props);!node2._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),node2._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&&node2.value===""||node2.value!=value)&&(node2.value=toString(value)):node2.value!==toString(value)&&(node2.value=toString(value));else if(type==="submit"||type==="reset"){node2.removeAttribute("value");return}props.hasOwnProperty("value")?setDefaultValue(node2,props.type,value):props.hasOwnProperty("defaultValue")&&setDefaultValue(node2,props.type,getToStringValue(props.defaultValue)),props.checked==null&&props.defaultChecked!=null&&(node2.defaultChecked=!!props.defaultChecked)}function postMountWrapper(element,props,isHydrating2){var node2=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(node2._wrapperState.initialValue);isHydrating2||initialValue!==node2.value&&(node2.value=initialValue),node2.defaultValue=initialValue}var name=node2.name;name!==""&&(node2.name=""),node2.defaultChecked=!node2.defaultChecked,node2.defaultChecked=!!node2._wrapperState.initialChecked,name!==""&&(node2.name=name)}function restoreControlledState(element,props){var node2=element;updateWrapper(node2,props),updateNamedCousins(node2,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(node2,type,value){(type!=="number"||getActiveElement(node2.ownerDocument)!==node2)&&(value==null?node2.defaultValue=toString(node2._wrapperState.initialValue):node2.defaultValue!==toString(value)&&(node2.defaultValue=toString(value)))}var didWarnSelectedSetOnOption=!1,didWarnInvalidChild=!1,didWarnInvalidInnerHTML=!1;function validateProps(element,props){props.value==null&&(typeof props.children=="object"&&props.children!==null?React3.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(a){return isArrayImpl(a)}var didWarnValueDefaultValue$1;didWarnValueDefaultValue$1=!1;function getDeclarationErrorAddendum(){var ownerName=getCurrentFiberOwnerNameInDevOrNull();return ownerName?`
|
|
|
|
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(node2,multiple,propValue,setDefaultSelected){var options2=node2.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 assign2({},props,{value:void 0})}function initWrapperState$1(element,props){var node2=element;checkSelectPropTypes(props),node2._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 node2=element;node2.multiple=!!props.multiple;var value=props.value;value!=null?updateOptions(node2,!!props.multiple,value,!1):props.defaultValue!=null&&updateOptions(node2,!!props.multiple,props.defaultValue,!0)}function postUpdateWrapper(element,props){var node2=element,wasMultiple=node2._wrapperState.wasMultiple;node2._wrapperState.wasMultiple=!!props.multiple;var value=props.value;value!=null?updateOptions(node2,!!props.multiple,value,!1):wasMultiple!==!!props.multiple&&(props.defaultValue!=null?updateOptions(node2,!!props.multiple,props.defaultValue,!0):updateOptions(node2,!!props.multiple,props.multiple?[]:"",!1))}function restoreControlledState$1(element,props){var node2=element,value=props.value;value!=null&&updateOptions(node2,!!props.multiple,value,!1)}var didWarnValDefaultVal=!1;function getHostProps$2(element,props){var node2=element;if(props.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var hostProps=assign2({},props,{value:void 0,defaultValue:void 0,children:toString(node2._wrapperState.initialValue)});return hostProps}function initWrapperState$2(element,props){var node2=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}node2._wrapperState={initialValue:getToStringValue(initialValue)}}function updateWrapper$1(element,props){var node2=element,value=getToStringValue(props.value),defaultValue=getToStringValue(props.defaultValue);if(value!=null){var newValue=toString(value);newValue!==node2.value&&(node2.value=newValue),props.defaultValue==null&&node2.defaultValue!==newValue&&(node2.defaultValue=newValue)}defaultValue!=null&&(node2.defaultValue=toString(defaultValue))}function postMountWrapper$3(element,props){var node2=element,textContent=node2.textContent;textContent===node2._wrapperState.initialValue&&textContent!==""&&textContent!==null&&(node2.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(node2,html){if(node2.namespaceURI===SVG_NAMESPACE&&!("innerHTML"in node2)){reusableSVGContainer=reusableSVGContainer||document.createElement("div"),reusableSVGContainer.innerHTML="<svg>"+html.valueOf().toString()+"</svg>";for(var svgNode=reusableSVGContainer.firstChild;node2.firstChild;)node2.removeChild(node2.firstChild);for(;svgNode.firstChild;)node2.appendChild(svgNode.firstChild);return}node2.innerHTML=html}),ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8,DOCUMENT_NODE=9,DOCUMENT_FRAGMENT_NODE=11,setTextContent=function(node2,text){if(text){var firstChild=node2.firstChild;if(firstChild&&firstChild===node2.lastChild&&firstChild.nodeType===TEXT_NODE){firstChild.nodeValue=text;return}}node2.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(prefix3,key){return prefix3+key.charAt(0).toUpperCase()+key.substring(1)}var prefixes=["Webkit","ms","Moz","O"];Object.keys(isUnitlessNumber).forEach(function(prop){prefixes.forEach(function(prefix3){isUnitlessNumber[prefixKey(prefix3,prop)]=isUnitlessNumber[prop]})});function dangerousStyleValue(name,value,isCustomProperty2){var isEmpty2=value==null||typeof value=="boolean"||value==="";return isEmpty2?"":!isCustomProperty2&&typeof value=="number"&&value!==0&&!(isUnitlessNumber.hasOwnProperty(name)&&isUnitlessNumber[name])?value+"px":(checkCSSPropertyStringCoercion(value,name),(""+value).trim())}var uppercasePattern=/([A-Z])/g,msPattern2=/^ms-/;function hyphenateStyleName(name){return name.replace(uppercasePattern,"-$1").toLowerCase().replace(msPattern2,"-ms-")}var warnValidStyle=function(){};{var badVendoredStyleNamePattern=/^(?:webkit|moz|o)[A-Z]/,msPattern$1=/^-ms-/,hyphenPattern2=/-(.)/g,badStyleValueWithSemicolonPattern=/;\s*$/,warnedStyleNames={},warnedStyleValues={},warnedForNaNValue=!1,warnedForInfinityValue=!1,camelize=function(string){return string.replace(hyphenPattern2,function(_,character2){return character2.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="",delimiter2="";for(var styleName in styles)if(styles.hasOwnProperty(styleName)){var styleValue=styles[styleName];if(styleValue!=null){var isCustomProperty2=styleName.indexOf("--")===0;serialized+=delimiter2+(isCustomProperty2?styleName:hyphenateStyleName(styleName))+":",serialized+=dangerousStyleValue(styleName,styleValue,isCustomProperty2),delimiter2=";"}}return serialized||null}}function setValueForStyles(node2,styles){var style2=node2.style;for(var styleName in styles)if(styles.hasOwnProperty(styleName)){var isCustomProperty2=styleName.indexOf("--")===0;isCustomProperty2||warnValidStyle$1(styleName,styles[styleName]);var styleValue=dangerousStyleValue(styleName,styles[styleName],isCustomProperty2);styleName==="float"&&(styleName="cssFloat"),isCustomProperty2?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=assign2({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(hasOwnProperty2.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(hasOwnProperty2.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,a,b){if(isInsideEventHandler)return fn(a,b);isInsideEventHandler=!0;try{return batchedUpdatesImpl(fn,a,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,a,b,c,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,a,b,c,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,a,b,c,d,e,f){hasError=!1,caughtError=null,invokeGuardedCallbackImpl$1.apply(reporter,arguments)}function invokeGuardedCallbackAndCatchFirstError(name,func,context,a,b,c,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,LifecycleEffectMask=Passive|Update|Callback|Ref|Snapshot|StoreConsistency,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 node2=fiber,nearestMounted=fiber;if(fiber.alternate)for(;node2.return;)node2=node2.return;else{var nextNode=node2;do node2=nextNode,(node2.flags&(Placement|Hydrating))!==NoFlags&&(nearestMounted=node2.return),nextNode=node2.return;while(nextNode)}return node2.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 a=fiber,b=alternate;;){var parentA=a.return;if(parentA===null)break;var parentB=parentA.alternate;if(parentB===null){var nextParent=parentA.return;if(nextParent!==null){a=b=nextParent;continue}break}if(parentA.child===parentB.child){for(var child=parentA.child;child;){if(child===a)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(a.return!==b.return)a=parentA,b=parentB;else{for(var didFindChild=!1,_child=parentA.child;_child;){if(_child===a){didFindChild=!0,a=parentA,b=parentB;break}if(_child===b){didFindChild=!0,b=parentA,a=parentB;break}_child=_child.sibling}if(!didFindChild){for(_child=parentB.child;_child;){if(_child===a){didFindChild=!0,a=parentB,b=parentA;break}if(_child===b){didFindChild=!0,b=parentB,a=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(a.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(a.tag!==HostRoot)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?fiber:alternate}function findCurrentHostFiber(parent){var currentParent=findCurrentFiberUsingSlowPath(parent);return currentParent!==null?findCurrentHostFiberImpl(currentParent):null}function findCurrentHostFiberImpl(node2){if(node2.tag===HostComponent||node2.tag===HostText)return node2;for(var child=node2.child;child!==null;){var match2=findCurrentHostFiberImpl(child);if(match2!==null)return match2;child=child.sibling}return null}function findCurrentHostFiberWithNoPortals(parent){var currentParent=findCurrentFiberUsingSlowPath(parent);return currentParent!==null?findCurrentHostFiberWithNoPortalsImpl(currentParent):null}function findCurrentHostFiberWithNoPortalsImpl(node2){if(node2.tag===HostComponent||node2.tag===HostText)return node2;for(var child=node2.child;child!==null;){if(child.tag!==HostPortal){var match2=findCurrentHostFiberWithNoPortalsImpl(child);if(match2!==null)return match2}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=assign2({},internals,{getLaneLabelMap,injectProfilingHooks})),rendererID=hook.inject(internals),injectedHook=hook}catch(err){error("React instrumentation encountered an error: %s.",err)}return!!hook.checkDCE}function onScheduleRoot(root2,children){if(injectedHook&&typeof injectedHook.onScheduleFiberRoot=="function")try{injectedHook.onScheduleFiberRoot(rendererID,root2,children)}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function onCommitRoot(root2,eventPriority){if(injectedHook&&typeof injectedHook.onCommitFiberRoot=="function")try{var didError=(root2.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,root2,schedulerPriority,didError)}else injectedHook.onCommitFiberRoot(rendererID,root2,void 0,didError)}catch(err){hasLoggedError||(hasLoggedError=!0,error("React instrumentation encountered an error: %s",err))}}function onPostCommitRoot(root2){if(injectedHook&&typeof injectedHook.onPostCommitFiberRoot=="function")try{injectedHook.onPostCommitFiberRoot(rendererID,root2)}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(root2,wipLanes){var pendingLanes=root2.pendingLanes;if(pendingLanes===NoLanes)return NoLanes;var nextLanes=NoLanes,suspendedLanes=root2.suspendedLanes,pingedLanes=root2.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=root2.entangledLanes;if(entangledLanes!==NoLanes)for(var entanglements=root2.entanglements,lanes=nextLanes&entangledLanes;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;nextLanes|=entanglements[index2],lanes&=~lane}return nextLanes}function getMostRecentEventTime(root2,lanes){for(var eventTimes=root2.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(root2,currentTime){for(var pendingLanes=root2.pendingLanes,suspendedLanes=root2.suspendedLanes,pingedLanes=root2.pingedLanes,expirationTimes=root2.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&&(root2.expiredLanes|=lane),lanes&=~lane}}function getHighestPriorityPendingLanes(root2){return getHighestPriorityLanes(root2.pendingLanes)}function getLanesToRetrySynchronouslyOnError(root2){var everythingButOffscreen=root2.pendingLanes&~OffscreenLane;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(root2,lanes){var SyncDefaultLanes=InputContinuousHydrationLane|InputContinuousLane|DefaultHydrationLane|DefaultLane;return(lanes&SyncDefaultLanes)!==NoLanes}function includesExpiredLane(root2,lanes){return(lanes&root2.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(a,b){return(a&b)!==NoLanes}function isSubsetOfLanes(set2,subset){return(set2&subset)===subset}function mergeLanes(a,b){return a|b}function removeLanes(set2,subset){return set2&~subset}function intersectLanes(a,b){return a&b}function laneToLanes(lane){return lane}function higherPriorityLane(a,b){return a!==NoLane&&a<b?a:b}function createLaneMap(initial){for(var laneMap=[],i=0;i<TotalLanes;i++)laneMap.push(initial);return laneMap}function markRootUpdated(root2,updateLane,eventTime){root2.pendingLanes|=updateLane,updateLane!==IdleLane&&(root2.suspendedLanes=NoLanes,root2.pingedLanes=NoLanes);var eventTimes=root2.eventTimes,index2=laneToIndex(updateLane);eventTimes[index2]=eventTime}function markRootSuspended(root2,suspendedLanes){root2.suspendedLanes|=suspendedLanes,root2.pingedLanes&=~suspendedLanes;for(var expirationTimes=root2.expirationTimes,lanes=suspendedLanes;lanes>0;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;expirationTimes[index2]=NoTimestamp,lanes&=~lane}}function markRootPinged(root2,pingedLanes,eventTime){root2.pingedLanes|=root2.suspendedLanes&pingedLanes}function markRootFinished(root2,remainingLanes){var noLongerPendingLanes=root2.pendingLanes&~remainingLanes;root2.pendingLanes=remainingLanes,root2.suspendedLanes=NoLanes,root2.pingedLanes=NoLanes,root2.expiredLanes&=remainingLanes,root2.mutableReadLanes&=remainingLanes,root2.entangledLanes&=remainingLanes;for(var entanglements=root2.entanglements,eventTimes=root2.eventTimes,expirationTimes=root2.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(root2,entangledLanes){for(var rootEntangledLanes=root2.entangledLanes|=entangledLanes,entanglements=root2.entanglements,lanes=rootEntangledLanes;lanes;){var index2=pickArbitraryLaneIndex(lanes),lane=1<<index2;lane&entangledLanes|entanglements[index2]&entangledLanes&&(entanglements[index2]|=entangledLanes),lanes&=~lane}}function getBumpedLaneForHydration(root2,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&(root2.suspendedLanes|renderLanes2))!==NoLane?NoLane:lane}function addFiberToLanesMap(root2,fiber,lanes){if(isDevToolsPresent)for(var pendingUpdatersLaneMap=root2.pendingUpdatersLaneMap;lanes>0;){var index2=laneToIndex(lanes),lane=1<<index2,updaters=pendingUpdatersLaneMap[index2];updaters.add(fiber),lanes&=~lane}}function movePendingFibersToMemoized(root2,lanes){if(isDevToolsPresent)for(var pendingUpdatersLaneMap=root2.pendingUpdatersLaneMap,memoizedUpdaters=root2.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(root2,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(a,b){return a!==0&&a<b?a:b}function lowerEventPriority(a,b){return a===0||a>b?a:b}function isHigherEventPriority(a,b){return a!==0&&a<b}function lanesToEventPriority(lanes){var lane=getHighestPriorityLane(lanes);return isHigherEventPriority(DiscreteEventPriority,lane)?isHigherEventPriority(ContinuousEventPriority,lane)?includesNonIdleWork(lane)?DefaultEventPriority:IdleEventPriority:ContinuousEventPriority:DiscreteEventPriority}function isRootDehydrated(root2){var currentState=root2.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 root2=nearestMounted.stateNode;if(isRootDehydrated(root2)){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 root2=nearestMounted.stateNode;if(isRootDehydrated(root2))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 root=null,startText=null,fallbackText=null;function initialize(nativeEventTarget){return root=nativeEventTarget,startText=getText(),!0}function reset(){root=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 root?root.value:root.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 assign2(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=assign2({},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=assign2({},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=assign2({},MouseEventInterface,{dataTransfer:0}),SyntheticDragEvent=createSyntheticEvent(DragEventInterface),FocusEventInterface=assign2({},UIEventInterface,{relatedTarget:0}),SyntheticFocusEvent=createSyntheticEvent(FocusEventInterface),AnimationEventInterface=assign2({},EventInterface,{animationName:0,elapsedTime:0,pseudoElement:0}),SyntheticAnimationEvent=createSyntheticEvent(AnimationEventInterface),ClipboardEventInterface=assign2({},EventInterface,{clipboardData:function(event){return"clipboardData"in event?event.clipboardData:window.clipboardData}}),SyntheticClipboardEvent=createSyntheticEvent(ClipboardEventInterface),CompositionEventInterface=assign2({},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=assign2({},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=assign2({},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=assign2({},UIEventInterface,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:getEventModifierState}),SyntheticTouchEvent=createSyntheticEvent(TouchEventInterface),TransitionEventInterface=assign2({},EventInterface,{propertyName:0,elapsedTime:0,pseudoElement:0}),SyntheticTransitionEvent=createSyntheticEvent(TransitionEventInterface),WheelEventInterface=assign2({},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"}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(node2){var state=node2._wrapperState;!state||!state.controlled||node2.type!=="number"||setDefaultValue(node2,"number",node2.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 from2,to;if(isOutEvent){var _related=nativeEvent.relatedTarget||nativeEvent.toElement;if(from2=targetInst,to=_related?getClosestInstanceFromNode(_related):null,to!==null){var nearestMounted=getNearestMountedFiber(to);(to!==nearestMounted||to.tag!==HostComponent&&to.tag!==HostText)&&(to=null)}}else from2=null,to=targetInst;if(from2!==to){var SyntheticEventCtor=SyntheticMouseEvent,leaveEventType="onMouseLeave",enterEventType="onMouseEnter",eventTypePrefix="mouse";(domEventName==="pointerout"||domEventName==="pointerover")&&(SyntheticEventCtor=SyntheticPointerEvent,leaveEventType="onPointerLeave",enterEventType="onPointerEnter",eventTypePrefix="pointer");var fromNode=from2==null?win:getNodeFromInstance(from2),toNode=to==null?win:getNodeFromInstance(to),leave=new SyntheticEventCtor(leaveEventType,eventTypePrefix+"leave",from2,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,from2,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(!hasOwnProperty2.call(objB,currentKey)||!objectIs(objA[currentKey],objB[currentKey]))return!1}return!0}function getLeafNode(node2){for(;node2&&node2.firstChild;)node2=node2.firstChild;return node2}function getSiblingNode(node2){for(;node2;){if(node2.nextSibling)return node2.nextSibling;node2=node2.parentNode}}function getNodeForCharacterOffset(root2,offset){for(var node2=getLeafNode(root2),nodeStart=0,nodeEnd=0;node2;){if(node2.nodeType===TEXT_NODE){if(nodeEnd=nodeStart+node2.textContent.length,nodeStart<=offset&&nodeEnd>=offset)return{node:node2,offset:offset-nodeStart};nodeStart=nodeEnd}node2=getLeafNode(getSiblingNode(node2))}}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 length2=0,start=-1,end=-1,indexWithinAnchor=0,indexWithinFocus=0,node2=outerNode,parentNode=null;outer:for(;;){for(var next2=null;node2===anchorNode&&(anchorOffset===0||node2.nodeType===TEXT_NODE)&&(start=length2+anchorOffset),node2===focusNode&&(focusOffset===0||node2.nodeType===TEXT_NODE)&&(end=length2+focusOffset),node2.nodeType===TEXT_NODE&&(length2+=node2.nodeValue.length),(next2=node2.firstChild)!==null;)parentNode=node2,node2=next2;for(;;){if(node2===outerNode)break outer;if(parentNode===anchorNode&&++indexWithinAnchor===anchorOffset&&(start=length2),parentNode===focusNode&&++indexWithinFocus===focusOffset&&(end=length2),(next2=node2.nextSibling)!==null)break;node2=parentNode,parentNode=node2.parentNode}node2=next2}return start===-1||end===-1?null:{start,end}}function setOffsets(node2,offsets){var doc=node2.ownerDocument||document,win=doc&&doc.defaultView||window;if(win.getSelection){var selection=win.getSelection(),length2=node2.textContent.length,start=Math.min(offsets.start,length2),end=offsets.end===void 0?start:Math.min(offsets.end,length2);if(!selection.extend&&start>end){var temp=end;end=start,start=temp}var startMarker=getNodeForCharacterOffset(node2,start),endMarker=getNodeForCharacterOffset(node2,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(node2){return node2&&node2.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(node2){return node2&&node2.ownerDocument&&containsNode(node2.ownerDocument.documentElement,node2)}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(node2){if("selectionStart"in node2&&hasSelectionCapabilities(node2))return{start:node2.selectionStart,end:node2.selectionEnd};var win=node2.ownerDocument&&node2.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,isCapturePhaseListener);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;var unsubscribeListener;isCapturePhaseListener?isPassiveListener!==void 0?unsubscribeListener=addEventCaptureListenerWithPassiveFlag(targetContainer,domEventName,listener,isPassiveListener):unsubscribeListener=addEventCaptureListener(targetContainer,domEventName,listener):isPassiveListener!==void 0?unsubscribeListener=addEventBubbleListenerWithPassiveFlag(targetContainer,domEventName,listener,isPassiveListener):unsubscribeListener=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 node2=targetInst;mainLoop:for(;;){if(node2===null)return;var nodeTag=node2.tag;if(nodeTag===HostRoot||nodeTag===HostPortal){var container=node2.stateNode.containerInfo;if(isMatchingRootContainer(container,targetContainerNode))break;if(nodeTag===HostPortal)for(var grandNode=node2.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){node2=ancestorInst=parentNode;continue mainLoop}container=container.parentNode}}node2=node2.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,common,inCapturePhase){for(var registrationName=event._reactName,listeners=[],instance=target;instance!==null&&instance!==common;){var _instance4=instance,alternate=_instance4.alternate,stateNode=_instance4.stateNode,tag=_instance4.tag;if(alternate!==null&&alternate===common)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,from2,to){var common=from2&&to?getLowestCommonAncestor(from2,to):null;from2!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,leaveEvent,from2,common,!1),to!==null&&enterEvent!==null&&accumulateEnterLeaveListenersForEvent(dispatchQueue,enterEvent,to,common,!0)}function getListenerSetKey(domEventName,capture){return domEventName+"__"+(capture?"capture":"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,`
|
|
`).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(node2){node2.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 createElement2(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 node2=domElement;props.multiple?node2.multiple=!0:props.size&&(node2.size=props.size)}}else domElement=ownerDocument.createElementNS(namespaceURI,type);return namespaceURI===HTML_NAMESPACE&&!isCustomComponentTag&&Object.prototype.toString.call(domElement)==="[object HTMLUnknownElement]"&&!hasOwnProperty2.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?.[propKey];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=isCustomComponentTag&&enableCustomElementPropertySupport?null: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&&!enableCustomElementPropertySupport)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=assign2({},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 root2=rootContainerInstance.documentElement;namespace=root2?root2.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=createElement2(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 node2=suspenseInstance,depth=0;do{var nextNode=node2.nextSibling;if(parentInstance.removeChild(node2),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++}node2=nextNode}while(node2);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(node2){for(;node2!=null;node2=node2.nextSibling){var nodeType=node2.nodeType;if(nodeType===ELEMENT_NODE||nodeType===TEXT_NODE)break;if(nodeType===COMMENT_NODE){var nodeData=node2.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 node2}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){precacheFiberNode(internalInstanceHandle,textInstance);var isConcurrentMode=(internalInstanceHandle.mode&ConcurrentMode)!==NoMode;return diffHydratedText(textInstance,text)}function hydrateSuspenseInstance(suspenseInstance,internalInstanceHandle){precacheFiberNode(internalInstanceHandle,suspenseInstance)}function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance){for(var node2=suspenseInstance.nextSibling,depth=0;node2;){if(node2.nodeType===COMMENT_NODE){var data=node2.data;if(data===SUSPENSE_END_DATA){if(depth===0)return getNextHydratableSibling(node2);depth--}else(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA)&&depth++}node2=node2.nextSibling}return null}function getParentSuspenseInstance(targetInstance){for(var node2=targetInstance.previousSibling,depth=0;node2;){if(node2.nodeType===COMMENT_NODE){var data=node2.data;if(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA){if(depth===0)return node2;depth--}else data===SUSPENSE_END_DATA&&depth++}node2=node2.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(node2){delete node2[internalInstanceKey],delete node2[internalPropsKey],delete node2[internalEventHandlersKey],delete node2[internalEventHandlerListenersKey],delete node2[internalEventHandlesSetKey]}function precacheFiberNode(hostInst,node2){node2[internalInstanceKey]=hostInst}function markContainerAsRoot(hostRoot,node2){node2[internalContainerInstanceKey]=hostRoot}function unmarkContainerAsRoot(node2){node2[internalContainerInstanceKey]=null}function isContainerMarkedAsRoot(node2){return!!node2[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(node2){var inst=node2[internalInstanceKey]||node2[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(node2){return node2[internalPropsKey]||null}function updateFiberProps(node2,props){node2[internalPropsKey]=props}function getEventListenerSet(node2){var elementListenerSet=node2[internalEventHandlersKey];return elementListenerSet===void 0&&(elementListenerSet=node2[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(hasOwnProperty2);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(cursor2,fiber){if(index<0){error("Unexpected pop.");return}fiber!==fiberStack[index]&&error("Unexpected Fiber popped."),cursor2.current=valueStack[index],valueStack[index]=null,fiberStack[index]=null,index--}function push(cursor2,value,fiber){index++,valueStack[index]=cursor2.current,fiberStack[index]=fiber,cursor2.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 assign2({},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 node2=fiber;do{switch(node2.tag){case HostRoot:return node2.stateNode.context;case ClassComponent:{var Component=node2.type;if(isContextProvider(Component))return node2.stateNode.__reactInternalMemoizedMergedChildContext;break}}node2=node2.return}while(node2!==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,length2=getBitLength(totalChildren)+baseLength;if(length2>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<<length2|_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,props=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,_props2=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&~Hydrating|Placement,warnNonhydratedInstance(returnFiber,fiber)}function tryHydrate(fiber,nextInstance){switch(fiber.tag){case HostComponent:{var type=fiber.type,props=fiber.pendingProps,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,node2=fiber;node2!==null;)node2.mode&StrictLegacyMode&&(maybeStrictRoot=node2),node2=node2.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.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
|
|
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.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* 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
|
|
|
|
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.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
|
|
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.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
* 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.
|
|
|
|
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.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* 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
|
|
* 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.
|
|
|
|
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.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* 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.
|
|
|
|
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.
|
|
|
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
|
|
Please update the following components: %s
|
|
|
|
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}}function resolveDefaultProps(Component,baseProps){if(Component&&Component.defaultProps){var props=assign2({},baseProps),defaultProps=Component.defaultProps;for(var propName in defaultProps)props[propName]===void 0&&(props[propName]=defaultProps[propName]);return props}return baseProps}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 node2=parent;node2!==null;){var alternate=node2.alternate;if(isSubsetOfLanes(node2.childLanes,renderLanes2)?alternate!==null&&!isSubsetOfLanes(alternate.childLanes,renderLanes2)&&(alternate.childLanes=mergeLanes(alternate.childLanes,renderLanes2)):(node2.childLanes=mergeLanes(node2.childLanes,renderLanes2),alternate!==null&&(alternate.childLanes=mergeLanes(alternate.childLanes,renderLanes2))),node2===propagationRoot)break;node2=node2.return}node2!==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 node2=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),node2=parent,parent=parent.return;if(node2.tag===HostRoot){var root2=node2.stateNode;return root2}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 clone={baseState:currentQueue.baseState,firstBaseUpdate:currentQueue.firstBaseUpdate,lastBaseUpdate:currentQueue.lastBaseUpdate,shared:currentQueue.shared,effects:currentQueue.effects};workInProgress2.updateQueue=clone}}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(root2,fiber,lane){var updateQueue=fiber.updateQueue;if(updateQueue!==null){var sharedQueue=updateQueue.shared;if(isTransitionLane(lane)){var queueLanes=sharedQueue.lanes;queueLanes=intersectLanes(queueLanes,root2.pendingLanes);var newQueueLanes=mergeLanes(queueLanes,lane);sharedQueue.lanes=newQueueLanes,markRootEntangled(root2,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 clone={eventTime:update.eventTime,lane:update.lane,tag:update.tag,payload:update.payload,callback:update.callback,next:null};newLast===null?newFirst=newLast=clone:(newLast.next=clone,newLast=clone),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&~ShouldCapture|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:assign2({},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 clone={eventTime:updateEventTime,lane:updateLane,tag:update.tag,payload:update.payload,callback:update.callback,next:null};newLastBaseUpdate===null?(newFirstBaseUpdate=newLastBaseUpdate=clone,newBaseState=newState):newLastBaseUpdate=newLastBaseUpdate.next=clone,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 fakeInternalInstance={},emptyRefsObject=new React3.Component().refs,didWarnAboutStateAssignmentForComponent,didWarnAboutUninitializedState,didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate,didWarnAboutLegacyLifecyclesAndDerivedState,didWarnAboutUndefinedDerivedState,warnOnUndefinedDerivedState,warnOnInvalidCallback,didWarnAboutDirectlyAssigningPropsToState,didWarnAboutContextTypeAndContextTypes,didWarnAboutInvalidateContextType;{didWarnAboutStateAssignmentForComponent=new Set,didWarnAboutUninitializedState=new Set,didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate=new Set,didWarnAboutLegacyLifecyclesAndDerivedState=new Set,didWarnAboutDirectlyAssigningPropsToState=new Set,didWarnAboutUndefinedDerivedState=new Set,didWarnAboutContextTypeAndContextTypes=new Set,didWarnAboutInvalidateContextType=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:assign2({},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 root2=enqueueUpdate(fiber,update,lane);root2!==null&&(scheduleUpdateOnFiber(root2,fiber,lane,eventTime),entangleTransitions(root2,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 root2=enqueueUpdate(fiber,update,lane);root2!==null&&(scheduleUpdateOnFiber(root2,fiber,lane,eventTime),entangleTransitions(root2,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 root2=enqueueUpdate(fiber,update,lane);root2!==null&&(scheduleUpdateOnFiber(root2,fiber,lane,eventTime),entangleTransitions(root2,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),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.
|
|
|
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
|
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
https://reactjs.org/link/unsafe-component-lifecycles`,_componentName,newApiName,foundWillMountName!==null?`
|
|
`+foundWillMountName:"",foundWillReceivePropsName!==null?`
|
|
`+foundWillReceivePropsName:"",foundWillUpdateName!==null?`
|
|
`+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=emptyRefsObject,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()&&!enableLazyContextPropagation)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}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 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)){var componentName=getComponentNameFromFiber(returnFiber)||"Component";didWarnAboutStringRefs[componentName]||(error('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',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&¤t2.ref!==null&&typeof current2.ref=="function"&¤t2.ref._stringRef===stringRef)return current2.ref;var ref=function(value){var refs=resolvedInst.refs;refs===emptyRefsObject&&(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:
|
|
1. You may be adding a ref to a function component
|
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
3. You have multiple copies of React loaded
|
|
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 clone=createWorkInProgress(fiber,pendingProps);return clone.index=0,clone.sibling=null,clone}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!==Fragment2){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 \u2014 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&¤tFirstChild.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===Fragment2){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 NO_CONTEXT={},contextStackCursor$1=createCursor(NO_CONTEXT),contextFiberStackCursor=createCursor(NO_CONTEXT),rootInstanceStackCursor=createCursor(NO_CONTEXT);function requiredContext(c){if(c===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 c}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){var rootInstance=requiredContext(rootInstanceStackCursor.current),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;if(nextState!==null)return nextState.dehydrated!==null;var props=workInProgress2.memoizedProps;return!0}function findFirstSuspended(row){for(var node2=row;node2!==null;){if(node2.tag===SuspenseComponent){var state=node2.memoizedState;if(state!==null){var dehydrated=state.dehydrated;if(dehydrated===null||isSuspenseInstancePending(dehydrated)||isSuspenseInstanceFallback(dehydrated))return node2}}else if(node2.tag===SuspenseListComponent&&node2.memoizedProps.revealOrder!==void 0){var didSuspend=(node2.flags&DidCapture)!==NoFlags;if(didSuspend)return node2}else if(node2.child!==null){node2.child.return=node2,node2=node2.child;continue}if(node2===row)return null;for(;node2.sibling===null;){if(node2.return===null||node2.return===row)return null;node2=node2.return}node2.sibling.return=node2.return,node2=node2.sibling}return null}var NoFlags$1=0,HasEffect=1,Insertion2=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(root2,mutableSource){var getVersion=mutableSource._getVersion,version=getVersion(mutableSource._source);root2.mutableSourceEagerHydrationData==null?root2.mutableSourceEagerHydrationData=[mutableSource,version]:root2.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,row=i+1+". "+oldHookName;row.length<secondColumnStart;)row+=" ";row+=newHookName+`
|
|
`,table+=row}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
|
|
|
|
Previous render Next render
|
|
------------------------------------------------------
|
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`,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:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
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.
|
|
|
|
Previous: %s
|
|
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&¤t2.type!==workInProgress2.type,workInProgress2.memoizedState=null,workInProgress2.updateQueue=null,workInProgress2.lanes=NoLanes,current2!==null&¤t2.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&¤tHook.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&=~(MountPassiveDev|MountLayoutDev|Passive|Update):workInProgress2.flags&=~(Passive|Update),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 clone={lane:updateLane,action:update.action,hasEagerState:update.hasEagerState,eagerState:update.eagerState,next:null};newBaseQueueLast===null?(newBaseQueueFirst=newBaseQueueLast=clone,newBaseState=newState):newBaseQueueLast=newBaseQueueLast.next=clone,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 root2=getWorkInProgressRoot();if(root2===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");includesBlockingLane(root2,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 root2=getWorkInProgressRoot();if(root2===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");includesBlockingLane(root2,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 root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,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,create3,destroy,deps){var effect={tag,create:create3,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,create3,deps){var hook=mountWorkInProgressHook(),nextDeps=deps===void 0?null:deps;currentlyRenderingFiber$1.flags|=fiberFlags,hook.memoizedState=pushEffect(HasEffect|hookFlags,create3,void 0,nextDeps)}function updateEffectImpl(fiberFlags,hookFlags,create3,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,create3,destroy,nextDeps);return}}}currentlyRenderingFiber$1.flags|=fiberFlags,hook.memoizedState=pushEffect(HasEffect|hookFlags,create3,destroy,nextDeps)}function mountEffect(create3,deps){return(currentlyRenderingFiber$1.mode&StrictEffectsMode)!==NoMode?mountEffectImpl(MountPassiveDev|Passive|PassiveStatic,Passive$1,create3,deps):mountEffectImpl(Passive|PassiveStatic,Passive$1,create3,deps)}function updateEffect(create3,deps){return updateEffectImpl(Passive,Passive$1,create3,deps)}function mountInsertionEffect(create3,deps){return mountEffectImpl(Update,Insertion2,create3,deps)}function updateInsertionEffect(create3,deps){return updateEffectImpl(Update,Insertion2,create3,deps)}function mountLayoutEffect(create3,deps){var fiberFlags=Update;return fiberFlags|=LayoutStatic,(currentlyRenderingFiber$1.mode&StrictEffectsMode)!==NoMode&&(fiberFlags|=MountLayoutDev),mountEffectImpl(fiberFlags,Layout,create3,deps)}function updateLayoutEffect(create3,deps){return updateEffectImpl(Update,Layout,create3,deps)}function imperativeHandleEffect(create3,ref){if(typeof ref=="function"){var refCallback=ref,_inst=create3();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=create3();return refObject.current=_inst2,function(){refObject.current=null}}}function mountImperativeHandle(ref,create3,deps){typeof create3!="function"&&error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",create3!==null?typeof create3:"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,create3,ref),effectDeps)}function updateImperativeHandle(ref,create3,deps){typeof create3!="function"&&error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",create3!==null?typeof create3:"null");var effectDeps=deps!=null?deps.concat([ref]):null;return updateEffectImpl(Update,Layout,imperativeHandleEffect.bind(null,create3,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&¤tTransition._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(),root2=getWorkInProgressRoot(),identifierPrefix=root2.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 root2=enqueueConcurrentHookUpdate(fiber,queue,update,lane);if(root2!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root2,fiber,lane,eventTime),entangleTransitionUpdate(root2,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 root2=enqueueConcurrentHookUpdate(fiber,queue,update,lane);if(root2!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root2,fiber,lane,eventTime),entangleTransitionUpdate(root2,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(root2,queue,lane){if(isTransitionLane(lane)){var queueLanes=queue.lanes;queueLanes=intersectLanes(queueLanes,root2.pendingLanes);var newQueueLanes=mergeLanes(queueLanes,lane);queue.lanes=newQueueLanes,markRootEntangled(root2,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(create3,deps){return currentHookNameInDev="useEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",mountHookTypesDev(),checkDepsAreArrayDev(deps),mountLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",mountHookTypesDev(),checkDepsAreArrayDev(deps);var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create3,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(create3,deps){return currentHookNameInDev="useEffect",updateHookTypesDev(),mountEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),mountImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),mountInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),mountLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create3,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(create3,deps){return currentHookNameInDev="useEffect",updateHookTypesDev(),updateEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),updateImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),updateInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),updateLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create3,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(create3,deps){return currentHookNameInDev="useEffect",updateHookTypesDev(),updateEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",updateHookTypesDev(),updateImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",updateHookTypesDev(),updateInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",updateHookTypesDev(),updateLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnRerenderInDEV;try{return updateMemo(create3,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(create3,deps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),mountHookTypesDev(),mountImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),mountHookTypesDev(),mountLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),mountHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnMountInDEV;try{return mountMemo(create3,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(create3,deps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),updateHookTypesDev(),updateImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create3,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(create3,deps){return currentHookNameInDev="useEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateEffect(create3,deps)},useImperativeHandle:function(ref,create3,deps){return currentHookNameInDev="useImperativeHandle",warnInvalidHookAccess(),updateHookTypesDev(),updateImperativeHandle(ref,create3,deps)},useInsertionEffect:function(create3,deps){return currentHookNameInDev="useInsertionEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateInsertionEffect(create3,deps)},useLayoutEffect:function(create3,deps){return currentHookNameInDev="useLayoutEffect",warnInvalidHookAccess(),updateHookTypesDev(),updateLayoutEffect(create3,deps)},useMemo:function(create3,deps){currentHookNameInDev="useMemo",warnInvalidHookAccess(),updateHookTypesDev();var prevDispatcher=ReactCurrentDispatcher$1.current;ReactCurrentDispatcher$1.current=InvalidNestedHooksDispatcherOnUpdateInDEV;try{return updateMemo(create3,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 root2=parentFiber.stateNode;root2.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 root2=parentFiber.stateNode;root2!==null&&(root2.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 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.
|
|
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+`
|
|
`+componentStack+`
|
|
|
|
`+(""+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(root2,wakeable,lanes){var pingCache=root2.pingCache,threadIDs;if(pingCache===null?(pingCache=root2.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,root2,wakeable,lanes);isDevToolsPresent&&restorePendingUpdaters(root2,lanes),wakeable.then(ping,ping)}}function attachRetryListener(suspenseBoundary,root2,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 node2=returnFiber;do{if(node2.tag===SuspenseComponent&&shouldCaptureSuspense(node2))return node2;node2=node2.return}while(node2!==null);return null}function markSuspenseBoundaryShouldCapture(suspenseBoundary,returnFiber,sourceFiber,root2,rootRenderLanes){if((suspenseBoundary.mode&ConcurrentMode)===NoMode){if(suspenseBoundary===returnFiber)suspenseBoundary.flags|=ShouldCapture;else{if(suspenseBoundary.flags|=DidCapture,sourceFiber.flags|=ForceUpdateForLegacySuspense,sourceFiber.flags&=~(LifecycleEffectMask|Incomplete),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(root2,returnFiber,sourceFiber,value,rootRenderLanes){if(sourceFiber.flags|=Incomplete,isDevToolsPresent&&restorePendingUpdaters(root2,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&=~ForceClientRender,markSuspenseBoundaryShouldCapture(suspenseBoundary,returnFiber,sourceFiber,root2,rootRenderLanes),suspenseBoundary.mode&ConcurrentMode&&attachPingListener(root2,wakeable,rootRenderLanes),attachRetryListener(suspenseBoundary,root2,wakeable);return}else{if(!includesSyncLane(rootRenderLanes)){attachPingListener(root2,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,root2,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;didWarnAboutBadClass={},didWarnAboutModulePatternComponent={},didWarnAboutContextTypeOnFunctionComponent={},didWarnAboutGetDerivedStateOnFunctionComponent={},didWarnAboutFunctionRefs={},didWarnAboutReassigningProps=!1,didWarnAboutRevealOrder={},didWarnAboutTailOptions={};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;innerPropTypes&&checkPropTypes(innerPropTypes,nextProps,"prop",getComponentNameFromType(type))}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)&¤t2.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)&¤t2.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&¤t2.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 root2=workInProgress2.stateNode;root2.pendingContext?pushTopLevelContextObject(workInProgress2,root2.pendingContext,root2.pendingContext!==root2.context):root2.context&&pushTopLevelContextObject(workInProgress2,root2.context,!1),pushHostContainer(workInProgress2,root2.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,root2=workInProgress2.stateNode,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 node2=child;node2;)node2.flags=node2.flags&~Placement|Hydrating,node2=node2.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+=`
|
|
|
|
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(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&=~DidCapture):(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&=~ForceClientRender;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 root2=getWorkInProgressRoot();if(root2!==null){var attemptHydrationAtLane=getBumpedLaneForHydration(root2,renderLanes2);if(attemptHydrationAtLane!==NoLane&&attemptHydrationAtLane!==suspenseState.retryLane){suspenseState.retryLane=attemptHydrationAtLane;var eventTime=NoTimestamp;enqueueConcurrentRenderForLane(current2,attemptHydrationAtLane),scheduleUpdateOnFiber(root2,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 node2=firstChild;node2!==null;){if(node2.tag===SuspenseComponent){var state=node2.memoizedState;state!==null&&scheduleSuspenseWorkOnFiber(node2,renderLanes2,workInProgress2)}else if(node2.tag===SuspenseListComponent)scheduleSuspenseWorkOnFiber(node2,renderLanes2,workInProgress2);else if(node2.child!==null){node2.child.return=node2,node2=node2.child;continue}if(node2===workInProgress2)return;for(;node2.sibling===null;){if(node2.return===null||node2.return===workInProgress2)return;node2=node2.return}node2.sibling.return=node2.return,node2=node2.sibling}}function findLastContentRow(firstChild){for(var row=firstChild,lastContentRow=null;row!==null;){var currentRow=row.alternate;currentRow!==null&&findFirstSuspended(currentRow)===null&&(lastContentRow=row),row=row.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,row=workInProgress2.child;for(workInProgress2.child=null;row!==null;){var currentRow=row.alternate;if(currentRow!==null&&findFirstSuspended(currentRow)===null){workInProgress2.child=row;break}var nextRow=row.sibling;row.sibling=_tail,_tail=row,row=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&¤t2!==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);var root2=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&¤t2!==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 Fragment2: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 node2=workInProgress2.child;node2!==null;){if(node2.tag===HostComponent||node2.tag===HostText)appendInitialChild(parent,node2.stateNode);else if(node2.tag!==HostPortal){if(node2.child!==null){node2.child.return=node2,node2=node2.child;continue}}if(node2===workInProgress2)return;for(;node2.sibling===null;){if(node2.return===null||node2.return===workInProgress2)return;node2=node2.return}node2.sibling.return=node2.return,node2=node2.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 Fragment2: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&¤t2.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&¤t2.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||!enableSuspenseAvoidThisFallback);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 row=workInProgress2.child;row!==null;){var suspended=findFirstSuspended(row);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}row=row.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 next2=renderState.tail;renderState.rendering=next2,renderState.tail=next2.sibling,renderState.renderingStartTime=now(),next2.sibling=null;var suspenseContext=suspenseStackCursor.current;return didSuspendAlready?suspenseContext=setShallowSuspenseContext(suspenseContext,ForceSuspenseFallback):suspenseContext=setDefaultShallowSuspenseContext(suspenseContext),pushSuspenseContext(workInProgress2,suspenseContext),next2}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&&!enableLegacyHidden&&(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&~ShouldCapture|DidCapture,(workInProgress2.mode&ProfileMode)!==NoMode&&transferActualDuration(workInProgress2),workInProgress2):null}case HostRoot:{var root2=workInProgress2.stateNode;popHostContainer(workInProgress2),popTopLevelContextObject(workInProgress2),resetWorkInProgressVersions();var _flags=workInProgress2.flags;return(_flags&ShouldCapture)!==NoFlags&&(_flags&DidCapture)===NoFlags?(workInProgress2.flags=_flags&~ShouldCapture|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&~ShouldCapture|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:{var root2=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&¤t2.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 focusedInstanceHandle=null,shouldFireAfterActiveInstanceBlur=!1;function commitBeforeMutationEffects(root2,firstChild){focusedInstanceHandle=prepareForCommit(root2.containerInfo),nextEffect=firstChild,commitBeforeMutationEffects_begin();var shouldFire=shouldFireAfterActiveInstanceBlur;return shouldFireAfterActiveInstanceBlur=!1,focusedInstanceHandle=null,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 root2=finishedWork.stateNode;clearContainer(root2.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&Insertion2)!==NoFlags$1&&setIsRunningInsertionEffect(!0),safelyCallDestroy(finishedWork,nearestMountedAncestor,destroy),(flags&Insertion2)!==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 create3=effect.create;(flags&Insertion2)!==NoFlags$1&&setIsRunningInsertionEffect(!0),effect.destroy=create3(),(flags&Insertion2)!==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&Insertion2)!==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=`
|
|
|
|
It looks like you wrote `+hookName+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
|
|
`+hookName+`(() => {
|
|
async function fetchData() {
|
|
// You can await here
|
|
const response = await MyAPI.getData(someId);
|
|
// ...
|
|
}
|
|
fetchData();
|
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
|
|
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 root2=parentFiber.stateNode;root2.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 root2=parentFiber.stateNode;root2.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(node2){switch(node2.tag){case FunctionComponent:case ForwardRef:case SimpleMemoComponent:{if(node2.mode&ProfileMode)try{startLayoutEffectTimer(),safelyCallCommitHookLayoutEffectListMount(node2,node2.return)}finally{recordLayoutEffectDuration(node2)}else safelyCallCommitHookLayoutEffectListMount(node2,node2.return);break}case ClassComponent:{var instance=node2.stateNode;typeof instance.componentDidMount=="function"&&safelyCallComponentDidMount(node2,node2.return,instance),safelyAttachRef(node2,node2.return);break}case HostComponent:{safelyAttachRef(node2,node2.return);break}}}function hideOrUnhideAllChildren(finishedWork,isHidden){for(var hostSubtreeRoot=null,node2=finishedWork;;){if(node2.tag===HostComponent){if(hostSubtreeRoot===null){hostSubtreeRoot=node2;try{var instance=node2.stateNode;isHidden?hideInstance(instance):unhideInstance(node2.stateNode,node2.memoizedProps)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}}else if(node2.tag===HostText){if(hostSubtreeRoot===null)try{var _instance3=node2.stateNode;isHidden?hideTextInstance(_instance3):unhideTextInstance(_instance3,node2.memoizedProps)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}else if(!((node2.tag===OffscreenComponent||node2.tag===LegacyHiddenComponent)&&node2.memoizedState!==null&&node2!==finishedWork)){if(node2.child!==null){node2.child.return=node2,node2=node2.child;continue}}if(node2===finishedWork)return;for(;node2.sibling===null;){if(node2.return===null||node2.return===finishedWork)return;hostSubtreeRoot===node2&&(hostSubtreeRoot=null),node2=node2.return}hostSubtreeRoot===node2&&(hostSubtreeRoot=null),node2.sibling.return=node2.return,node2=node2.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 node2=fiber;siblings:for(;;){for(;node2.sibling===null;){if(node2.return===null||isHostParent(node2.return))return null;node2=node2.return}for(node2.sibling.return=node2.return,node2=node2.sibling;node2.tag!==HostComponent&&node2.tag!==HostText&&node2.tag!==DehydratedFragment;){if(node2.flags&Placement||node2.child===null||node2.tag===HostPortal)continue siblings;node2.child.return=node2,node2=node2.child}if(!(node2.flags&Placement))return node2.stateNode}}function commitPlacement(finishedWork){var parentFiber=getHostParentFiber(finishedWork);switch(parentFiber.tag){case HostComponent:{var parent=parentFiber.stateNode;parentFiber.flags&ContentReset&&(resetTextContent(parent),parentFiber.flags&=~ContentReset);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(node2,before,parent){var tag=node2.tag,isHost=tag===HostComponent||tag===HostText;if(isHost){var stateNode=node2.stateNode;before?insertInContainerBefore(parent,stateNode,before):appendChildToContainer(parent,stateNode)}else if(tag!==HostPortal){var child=node2.child;if(child!==null){insertOrAppendPlacementNodeIntoContainer(child,before,parent);for(var sibling=child.sibling;sibling!==null;)insertOrAppendPlacementNodeIntoContainer(sibling,before,parent),sibling=sibling.sibling}}}function insertOrAppendPlacementNode(node2,before,parent){var tag=node2.tag,isHost=tag===HostComponent||tag===HostText;if(isHost){var stateNode=node2.stateNode;before?insertBefore(parent,stateNode,before):appendChild(parent,stateNode)}else if(tag!==HostPortal){var child=node2.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(root2,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(root2,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&Insertion2)!==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){var newState=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(root2,finishedWork,committedLanes){inProgressLanes=committedLanes,inProgressRoot=root2,setCurrentFiber(finishedWork),commitMutationEffectsOnFiber(finishedWork,root2),setCurrentFiber(finishedWork),inProgressLanes=null,inProgressRoot=null}function recursivelyTraverseMutationEffects(root2,parentFiber,lanes){var deletions=parentFiber.deletions;if(deletions!==null)for(var i=0;i<deletions.length;i++){var childToDelete=deletions[i];try{commitDeletionEffects(root2,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,root2),child=child.sibling;setCurrentFiber(prevDebugFiber)}function commitMutationEffectsOnFiber(finishedWork,root2,lanes){var current2=finishedWork.alternate,flags=finishedWork.flags;switch(finishedWork.tag){case FunctionComponent:case ForwardRef:case MemoComponent:case SimpleMemoComponent:{if(recursivelyTraverseMutationEffects(root2,finishedWork),commitReconciliationEffects(finishedWork),flags&Update){try{commitHookEffectListUnmount(Insertion2|HasEffect,finishedWork,finishedWork.return),commitHookEffectListMount(Insertion2|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(root2,finishedWork),commitReconciliationEffects(finishedWork),flags&Ref&¤t2!==null&&safelyDetachRef(current2,current2.return);return}case HostComponent:{recursivelyTraverseMutationEffects(root2,finishedWork),commitReconciliationEffects(finishedWork),flags&Ref&¤t2!==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(root2,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(root2,finishedWork),commitReconciliationEffects(finishedWork),flags&Update&¤t2!==null){var prevRootState=current2.memoizedState;if(prevRootState.isDehydrated)try{commitHydratedContainer(root2.containerInfo)}catch(error2){captureCommitPhaseError(finishedWork,finishedWork.return,error2)}}return}case HostPortal:{recursivelyTraverseMutationEffects(root2,finishedWork),commitReconciliationEffects(finishedWork);return}case SuspenseComponent:{recursivelyTraverseMutationEffects(root2,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&¤t2.memoizedState!==null;if(finishedWork.mode&ConcurrentMode){var prevOffscreenSubtreeWasHidden=offscreenSubtreeWasHidden;offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden||_wasHidden,recursivelyTraverseMutationEffects(root2,finishedWork),offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden}else recursivelyTraverseMutationEffects(root2,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(root2,finishedWork),commitReconciliationEffects(finishedWork),flags&Update&&attachSuspenseRetryListeners(finishedWork);return}case ScopeComponent:return;default:{recursivelyTraverseMutationEffects(root2,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&=~Placement}flags&Hydrating&&(finishedWork.flags&=~Hydrating)}function commitLayoutEffects(finishedWork,root2,committedLanes){inProgressLanes=committedLanes,inProgressRoot=root2,nextEffect=finishedWork,commitLayoutEffects_begin(finishedWork,root2,committedLanes),inProgressLanes=null,inProgressRoot=null}function commitLayoutEffects_begin(subtreeRoot,root2,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,root2,committedLanes);continue}else{var current2=fiber.alternate,wasHidden=current2!==null&¤t2.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,root2,committedLanes),child=child.sibling;nextEffect=fiber,offscreenSubtreeIsHidden=prevOffscreenSubtreeIsHidden,offscreenSubtreeWasHidden=prevOffscreenSubtreeWasHidden,commitLayoutMountEffects_complete(subtreeRoot,root2,committedLanes);continue}}(fiber.subtreeFlags&LayoutMask)!==NoFlags&&firstChild!==null?(firstChild.return=fiber,nextEffect=firstChild):commitLayoutMountEffects_complete(subtreeRoot,root2,committedLanes)}}function commitLayoutMountEffects_complete(subtreeRoot,root2,committedLanes){for(;nextEffect!==null;){var fiber=nextEffect;if((fiber.flags&LayoutMask)!==NoFlags){var current2=fiber.alternate;setCurrentFiber(fiber);try{commitLayoutEffectOnFiber(root2,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(root2,finishedWork,committedLanes,committedTransitions){nextEffect=finishedWork,commitPassiveMountEffects_begin(finishedWork,root2,committedLanes,committedTransitions)}function commitPassiveMountEffects_begin(subtreeRoot,root2,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,root2,committedLanes,committedTransitions)}}function commitPassiveMountEffects_complete(subtreeRoot,root2,committedLanes,committedTransitions){for(;nextEffect!==null;){var fiber=nextEffect;if((fiber.flags&Passive)!==NoFlags){setCurrentFiber(fiber);try{commitPassiveMountOnFiber(root2,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)}}}var COMPONENT_TYPE=0,HAS_PSEUDO_CLASS_TYPE=1,ROLE_TYPE=2,TEST_NAME_TYPE=3,TEXT_TYPE=4;if(typeof Symbol=="function"&&Symbol.for){var symbolFor=Symbol.for;COMPONENT_TYPE=symbolFor("selector.component"),HAS_PSEUDO_CLASS_TYPE=symbolFor("selector.has_pseudo_class"),ROLE_TYPE=symbolFor("selector.role"),TEST_NAME_TYPE=symbolFor("selector.test_id"),TEXT_TYPE=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,workInProgressRootIncludedLanes=NoLanes,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(root2,fiber,lane,eventTime){checkForNestedUpdates(),isRunningInsertionEffect&&error("useInsertionEffect must not schedule updates."),isFlushingPassiveEffects&&(didScheduleUpdateDuringPassiveEffects=!0),markRootUpdated(root2,lane,eventTime),(executionContext&RenderContext)!==NoLanes&&root2===workInProgressRoot?warnAboutRenderPhaseUpdatesInDEV(fiber):(isDevToolsPresent&&addFiberToLanesMap(root2,fiber,lane),warnIfUpdatesNotWrappedWithActDEV(fiber),root2===workInProgressRoot&&((executionContext&RenderContext)===NoContext&&(workInProgressRootInterleavedUpdatedLanes=mergeLanes(workInProgressRootInterleavedUpdatedLanes,lane)),workInProgressRootExitStatus===RootSuspendedWithDelay&&markRootSuspended$1(root2,workInProgressRootRenderLanes)),ensureRootIsScheduled(root2,eventTime),lane===SyncLane&&executionContext===NoContext&&(fiber.mode&ConcurrentMode)===NoMode&&!ReactCurrentActQueue$1.isBatchingLegacy&&(resetRenderTimer(),flushSyncCallbacksOnlyInLegacyMode()))}function scheduleInitialHydrationOnRoot(root2,lane,eventTime){var current2=root2.current;current2.lanes=lane,markRootUpdated(root2,lane,eventTime),ensureRootIsScheduled(root2,eventTime)}function isUnsafeClassRenderPhaseUpdate(fiber){return(executionContext&RenderContext)!==NoContext}function ensureRootIsScheduled(root2,currentTime){var existingCallbackNode=root2.callbackNode;markStarvedLanesAsExpired(root2,currentTime);var nextLanes=getNextLanes(root2,root2===workInProgressRoot?workInProgressRootRenderLanes:NoLanes);if(nextLanes===NoLanes){existingCallbackNode!==null&&cancelCallback$1(existingCallbackNode),root2.callbackNode=null,root2.callbackPriority=NoLane;return}var newCallbackPriority=getHighestPriorityLane(nextLanes),existingCallbackPriority=root2.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)root2.tag===LegacyRoot?(ReactCurrentActQueue$1.isBatchingLegacy!==null&&(ReactCurrentActQueue$1.didScheduleLegacyUpdate=!0),scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null,root2))):scheduleSyncCallback(performSyncWorkOnRoot.bind(null,root2)),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,root2))}root2.callbackPriority=newCallbackPriority,root2.callbackNode=newCallbackNode}function performConcurrentWorkOnRoot(root2,didTimeout){if(resetNestedUpdateFlag(),currentEventTime=NoTimestamp,currentEventTransitionLane=NoLanes,(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Should not already be working.");var originalCallbackNode=root2.callbackNode,didFlushPassiveEffects=flushPassiveEffects();if(didFlushPassiveEffects&&root2.callbackNode!==originalCallbackNode)return null;var lanes=getNextLanes(root2,root2===workInProgressRoot?workInProgressRootRenderLanes:NoLanes);if(lanes===NoLanes)return null;var shouldTimeSlice=!includesBlockingLane(root2,lanes)&&!includesExpiredLane(root2,lanes)&&!didTimeout,exitStatus=shouldTimeSlice?renderRootConcurrent(root2,lanes):renderRootSync(root2,lanes);if(exitStatus!==RootInProgress){if(exitStatus===RootErrored){var errorRetryLanes=getLanesToRetrySynchronouslyOnError(root2);errorRetryLanes!==NoLanes&&(lanes=errorRetryLanes,exitStatus=recoverFromConcurrentError(root2,errorRetryLanes))}if(exitStatus===RootFatalErrored){var fatalError=workInProgressRootFatalError;throw prepareFreshStack(root2,NoLanes),markRootSuspended$1(root2,lanes),ensureRootIsScheduled(root2,now()),fatalError}if(exitStatus===RootDidNotComplete)markRootSuspended$1(root2,lanes);else{var renderWasConcurrent=!includesBlockingLane(root2,lanes),finishedWork=root2.current.alternate;if(renderWasConcurrent&&!isRenderConsistentWithExternalStores(finishedWork)){if(exitStatus=renderRootSync(root2,lanes),exitStatus===RootErrored){var _errorRetryLanes=getLanesToRetrySynchronouslyOnError(root2);_errorRetryLanes!==NoLanes&&(lanes=_errorRetryLanes,exitStatus=recoverFromConcurrentError(root2,_errorRetryLanes))}if(exitStatus===RootFatalErrored){var _fatalError=workInProgressRootFatalError;throw prepareFreshStack(root2,NoLanes),markRootSuspended$1(root2,lanes),ensureRootIsScheduled(root2,now()),_fatalError}}root2.finishedWork=finishedWork,root2.finishedLanes=lanes,finishConcurrentRender(root2,exitStatus,lanes)}}return ensureRootIsScheduled(root2,now()),root2.callbackNode===originalCallbackNode?performConcurrentWorkOnRoot.bind(null,root2):null}function recoverFromConcurrentError(root2,errorRetryLanes){var errorsFromFirstAttempt=workInProgressRootConcurrentErrors;if(isRootDehydrated(root2)){var rootWorkInProgress=prepareFreshStack(root2,errorRetryLanes);rootWorkInProgress.flags|=ForceClientRender,errorHydratingContainer(root2.containerInfo)}var exitStatus=renderRootSync(root2,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(root2,exitStatus,lanes){switch(exitStatus){case RootInProgress:case RootFatalErrored:throw new Error("Root did not complete. This is a bug in React.");case RootErrored:{commitRoot(root2,workInProgressRootRecoverableErrors,workInProgressTransitions);break}case RootSuspended:{if(markRootSuspended$1(root2,lanes),includesOnlyRetries(lanes)&&!shouldForceFlushFallbacksInDEV()){var msUntilTimeout=globalMostRecentFallbackTime+FALLBACK_THROTTLE_MS-now();if(msUntilTimeout>10){var nextLanes=getNextLanes(root2,NoLanes);if(nextLanes!==NoLanes)break;var suspendedLanes=root2.suspendedLanes;if(!isSubsetOfLanes(suspendedLanes,lanes)){var eventTime=requestEventTime();markRootPinged(root2,suspendedLanes);break}root2.timeoutHandle=scheduleTimeout(commitRoot.bind(null,root2,workInProgressRootRecoverableErrors,workInProgressTransitions),msUntilTimeout);break}}commitRoot(root2,workInProgressRootRecoverableErrors,workInProgressTransitions);break}case RootSuspendedWithDelay:{if(markRootSuspended$1(root2,lanes),includesOnlyTransitions(lanes))break;if(!shouldForceFlushFallbacksInDEV()){var mostRecentEventTime=getMostRecentEventTime(root2,lanes),eventTimeMs=mostRecentEventTime,timeElapsedMs=now()-eventTimeMs,_msUntilTimeout=jnd(timeElapsedMs)-timeElapsedMs;if(_msUntilTimeout>10){root2.timeoutHandle=scheduleTimeout(commitRoot.bind(null,root2,workInProgressRootRecoverableErrors,workInProgressTransitions),_msUntilTimeout);break}}commitRoot(root2,workInProgressRootRecoverableErrors,workInProgressTransitions);break}case RootCompleted:{commitRoot(root2,workInProgressRootRecoverableErrors,workInProgressTransitions);break}default:throw new Error("Unknown root exit status.")}}function isRenderConsistentWithExternalStores(finishedWork){for(var node2=finishedWork;;){if(node2.flags&StoreConsistency){var updateQueue=node2.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=node2.child;if(node2.subtreeFlags&StoreConsistency&&child!==null){child.return=node2,node2=child;continue}if(node2===finishedWork)return!0;for(;node2.sibling===null;){if(node2.return===null||node2.return===finishedWork)return!0;node2=node2.return}node2.sibling.return=node2.return,node2=node2.sibling}return!0}function markRootSuspended$1(root2,suspendedLanes){suspendedLanes=removeLanes(suspendedLanes,workInProgressRootPingedLanes),suspendedLanes=removeLanes(suspendedLanes,workInProgressRootInterleavedUpdatedLanes),markRootSuspended(root2,suspendedLanes)}function performSyncWorkOnRoot(root2){if(syncNestedUpdateFlag(),(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Should not already be working.");flushPassiveEffects();var lanes=getNextLanes(root2,NoLanes);if(!includesSomeLane(lanes,SyncLane))return ensureRootIsScheduled(root2,now()),null;var exitStatus=renderRootSync(root2,lanes);if(root2.tag!==LegacyRoot&&exitStatus===RootErrored){var errorRetryLanes=getLanesToRetrySynchronouslyOnError(root2);errorRetryLanes!==NoLanes&&(lanes=errorRetryLanes,exitStatus=recoverFromConcurrentError(root2,errorRetryLanes))}if(exitStatus===RootFatalErrored){var fatalError=workInProgressRootFatalError;throw prepareFreshStack(root2,NoLanes),markRootSuspended$1(root2,lanes),ensureRootIsScheduled(root2,now()),fatalError}if(exitStatus===RootDidNotComplete)throw new Error("Root did not complete. This is a bug in React.");var finishedWork=root2.current.alternate;return root2.finishedWork=finishedWork,root2.finishedLanes=lanes,commitRoot(root2,workInProgressRootRecoverableErrors,workInProgressTransitions),ensureRootIsScheduled(root2,now()),null}function flushRoot(root2,lanes){lanes!==NoLanes&&(markRootEntangled(root2,mergeLanes(lanes,SyncLane)),ensureRootIsScheduled(root2,now()),(executionContext&(RenderContext|CommitContext))===NoContext&&(resetRenderTimer(),flushSyncCallbacks()))}function batchedUpdates$1(fn,a){var prevExecutionContext=executionContext;executionContext|=BatchedContext;try{return fn(a)}finally{executionContext=prevExecutionContext,executionContext===NoContext&&!ReactCurrentActQueue$1.isBatchingLegacy&&(resetRenderTimer(),flushSyncCallbacksOnlyInLegacyMode())}}function discreteUpdates(fn,a,b,c,d){var previousPriority=getCurrentUpdatePriority(),prevTransition=ReactCurrentBatchConfig$3.transition;try{return ReactCurrentBatchConfig$3.transition=null,setCurrentUpdatePriority(DiscreteEventPriority),fn(a,b,c,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),workInProgressRootIncludedLanes=mergeLanes(workInProgressRootIncludedLanes,lanes)}function popRenderLanes(fiber){subtreeRenderLanes=subtreeRenderLanesCursor.current,pop(subtreeRenderLanesCursor,fiber)}function prepareFreshStack(root2,lanes){root2.finishedWork=null,root2.finishedLanes=NoLanes;var timeoutHandle=root2.timeoutHandle;if(timeoutHandle!==noTimeout&&(root2.timeoutHandle=noTimeout,cancelTimeout(timeoutHandle)),workInProgress!==null)for(var interruptedWork=workInProgress.return;interruptedWork!==null;){var current2=interruptedWork.alternate;unwindInterruptedWork(current2,interruptedWork),interruptedWork=interruptedWork.return}workInProgressRoot=root2;var rootWorkInProgress=createWorkInProgress(root2.current,null);return workInProgress=rootWorkInProgress,workInProgressRootRenderLanes=subtreeRenderLanes=workInProgressRootIncludedLanes=lanes,workInProgressRootExitStatus=RootInProgress,workInProgressRootFatalError=null,workInProgressRootSkippedLanes=NoLanes,workInProgressRootInterleavedUpdatedLanes=NoLanes,workInProgressRootPingedLanes=NoLanes,workInProgressRootConcurrentErrors=null,workInProgressRootRecoverableErrors=null,finishQueueingConcurrentUpdates(),ReactStrictModeWarnings.discardPendingWarnings(),rootWorkInProgress}function handleError(root2,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(root2,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(root2,lanes){var prevExecutionContext=executionContext;executionContext|=RenderContext;var prevDispatcher=pushDispatcher();if(workInProgressRoot!==root2||workInProgressRootRenderLanes!==lanes){if(isDevToolsPresent){var memoizedUpdaters=root2.memoizedUpdaters;memoizedUpdaters.size>0&&(restorePendingUpdaters(root2,workInProgressRootRenderLanes),memoizedUpdaters.clear()),movePendingFibersToMemoized(root2,lanes)}workInProgressTransitions=getTransitionsForLanes(),prepareFreshStack(root2,lanes)}markRenderStarted(lanes);do try{workLoopSync();break}catch(thrownValue){handleError(root2,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(root2,lanes){var prevExecutionContext=executionContext;executionContext|=RenderContext;var prevDispatcher=pushDispatcher();if(workInProgressRoot!==root2||workInProgressRootRenderLanes!==lanes){if(isDevToolsPresent){var memoizedUpdaters=root2.memoizedUpdaters;memoizedUpdaters.size>0&&(restorePendingUpdaters(root2,workInProgressRootRenderLanes),memoizedUpdaters.clear()),movePendingFibersToMemoized(root2,lanes)}workInProgressTransitions=getTransitionsForLanes(),resetRenderTimer(),prepareFreshStack(root2,lanes)}markRenderStarted(lanes);do try{workLoopConcurrent();break}catch(thrownValue){handleError(root2,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 next2;(unitOfWork.mode&ProfileMode)!==NoMode?(startProfilerTimer(unitOfWork),next2=beginWork$1(current2,unitOfWork,subtreeRenderLanes),stopProfilerTimerIfRunningAndRecordDelta(unitOfWork,!0)):next2=beginWork$1(current2,unitOfWork,subtreeRenderLanes),resetCurrentFiber(),unitOfWork.memoizedProps=unitOfWork.pendingProps,next2===null?completeUnitOfWork(unitOfWork):workInProgress=next2,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 next2=void 0;if((completedWork.mode&ProfileMode)===NoMode?next2=completeWork(current2,completedWork,subtreeRenderLanes):(startProfilerTimer(completedWork),next2=completeWork(current2,completedWork,subtreeRenderLanes),stopProfilerTimerIfRunningAndRecordDelta(completedWork,!1)),resetCurrentFiber(),next2!==null){workInProgress=next2;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(root2,recoverableErrors,transitions){var previousUpdateLanePriority=getCurrentUpdatePriority(),prevTransition=ReactCurrentBatchConfig$3.transition;try{ReactCurrentBatchConfig$3.transition=null,setCurrentUpdatePriority(DiscreteEventPriority),commitRootImpl(root2,recoverableErrors,transitions,previousUpdateLanePriority)}finally{ReactCurrentBatchConfig$3.transition=prevTransition,setCurrentUpdatePriority(previousUpdateLanePriority)}return null}function commitRootImpl(root2,recoverableErrors,transitions,renderPriorityLevel){do flushPassiveEffects();while(rootWithPendingPassiveEffects!==null);if(flushRenderPhaseStrictModeWarningsInDEV(),(executionContext&(RenderContext|CommitContext))!==NoContext)throw new Error("Should not already be working.");var finishedWork=root2.finishedWork,lanes=root2.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."),root2.finishedWork=null,root2.finishedLanes=NoLanes,finishedWork===root2.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.");root2.callbackNode=null,root2.callbackPriority=NoLane;var remainingLanes=mergeLanes(finishedWork.lanes,finishedWork.childLanes);markRootFinished(root2,remainingLanes),root2===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;var shouldFireAfterActiveInstanceBlur2=commitBeforeMutationEffects(root2,finishedWork);recordCommitTime(),commitMutationEffects(root2,finishedWork,lanes),resetAfterCommit(root2.containerInfo),root2.current=finishedWork,markLayoutEffectsStarted(lanes),commitLayoutEffects(finishedWork,root2,lanes),markLayoutEffectsStopped(),requestPaint(),executionContext=prevExecutionContext,setCurrentUpdatePriority(previousPriority),ReactCurrentBatchConfig$3.transition=prevTransition}else root2.current=finishedWork,recordCommitTime();var rootDidHavePassiveEffects=rootDoesHavePassiveEffects;if(rootDoesHavePassiveEffects?(rootDoesHavePassiveEffects=!1,rootWithPendingPassiveEffects=root2,pendingPassiveEffectsLanes=lanes):(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=null),remainingLanes=root2.pendingLanes,remainingLanes===NoLanes&&(legacyErrorBoundariesThatAlreadyFailed=null),rootDidHavePassiveEffects||commitDoubleInvokeEffectsInDEV(root2.current,!1),onCommitRoot(finishedWork.stateNode,renderPriorityLevel),isDevToolsPresent&&root2.memoizedUpdaters.clear(),onCommitRoot$1(),ensureRootIsScheduled(root2,now()),recoverableErrors!==null)for(var onRecoverableError=root2.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)&&root2.tag!==LegacyRoot&&flushPassiveEffects(),remainingLanes=root2.pendingLanes,includesSomeLane(remainingLanes,SyncLane)?(markNestedUpdateScheduled(),root2===rootWithNestedUpdates?nestedUpdateCount++:(nestedUpdateCount=0,rootWithNestedUpdates=root2)):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 root2=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(root2.current),commitPassiveMountEffects(root2,root2.current,lanes,transitions);{var profilerEffects=pendingPassiveProfilerEffects;pendingPassiveProfilerEffects=[];for(var i=0;i<profilerEffects.length;i++){var _fiber=profilerEffects[i];commitPassiveEffectDurations(root2,_fiber)}}markPassiveEffectsStopped(),commitDoubleInvokeEffectsInDEV(root2.current,!0),executionContext=prevExecutionContext,flushSyncCallbacks(),didScheduleUpdateDuringPassiveEffects?root2===rootWithPassiveNestedUpdates?nestedPassiveUpdateCount++:(nestedPassiveUpdateCount=0,rootWithPassiveNestedUpdates=root2):nestedPassiveUpdateCount=0,isFlushingPassiveEffects=!1,didScheduleUpdateDuringPassiveEffects=!1,onPostCommitRoot(root2);{var stateNode=root2.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),root2=enqueueUpdate(rootFiber,update,SyncLane),eventTime=requestEventTime();root2!==null&&(markRootUpdated(root2,SyncLane,eventTime),ensureRootIsScheduled(root2,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),root2=enqueueUpdate(fiber,update,SyncLane),eventTime=requestEventTime();root2!==null&&(markRootUpdated(root2,SyncLane,eventTime),ensureRootIsScheduled(root2,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.
|
|
|
|
Error message:
|
|
|
|
%s`,error$1)}function pingSuspendedRoot(root2,wakeable,pingedLanes){var pingCache=root2.pingCache;pingCache!==null&&pingCache.delete(wakeable);var eventTime=requestEventTime();markRootPinged(root2,pingedLanes),warnIfSuspenseResolutionNotWrappedWithActDEV(root2),workInProgressRoot===root2&&isSubsetOfLanes(workInProgressRootRenderLanes,pingedLanes)&&(workInProgressRootExitStatus===RootSuspendedWithDelay||workInProgressRootExitStatus===RootSuspended&&includesOnlyRetries(workInProgressRootRenderLanes)&&now()-globalMostRecentFallbackTime<FALLBACK_THROTTLE_MS?prepareFreshStack(root2,NoLanes):workInProgressRootPingedLanes=mergeLanes(workInProgressRootPingedLanes,pingedLanes)),ensureRootIsScheduled(root2,eventTime)}function retryTimedOutBoundary(boundaryFiber,retryLane){retryLane===NoLane&&(retryLane=requestRetryLane(boundaryFiber));var eventTime=requestEventTime(),root2=enqueueConcurrentRenderForLane(boundaryFiber,retryLane);root2!==null&&(markRootUpdated(root2,retryLane,eventTime),ensureRootIsScheduled(root2,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&¤t2.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(root2,lanes){if(isDevToolsPresent){var memoizedUpdaters=root2.memoizedUpdaters;memoizedUpdaters.forEach(function(schedulingFiber){addFiberToLanesMap(root2,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(...).
|
|
|
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* fire events that update state */
|
|
});
|
|
/* assert on the output */
|
|
|
|
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(root2){root2.tag!==LegacyRoot&&isConcurrentActEnvironment()&&ReactCurrentActQueue$1.current===null&&error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
|
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* finish loading suspended data */
|
|
});
|
|
/* assert on the output */
|
|
|
|
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(root2,update){{if(resolveFamily===null)return;var staleFamilies=update.staleFamilies,updatedFamilies=update.updatedFamilies;flushPassiveEffects(),flushSync(function(){scheduleFibersWithFamiliesRecursively(root2.current,updatedFamilies,staleFamilies)})}},scheduleRoot=function(root2,element){{if(root2.context!==emptyContextObject)return;flushPassiveEffects(),flushSync(function(){updateContainer(element,root2,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(root2,families){{var hostInstances=new Set,types=new Set(families.map(function(family){return family.current}));return findHostInstancesForMatchingFibersRecursively(root2.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 node2=fiber;;){switch(node2.tag){case HostComponent:hostInstances.add(node2.stateNode);return;case HostPortal:hostInstances.add(node2.stateNode.containerInfo);return;case HostRoot:hostInstances.add(node2.stateNode.containerInfo);return}if(node2.return===null)throw new Error("Expected to reach root first.");node2=node2.return}}}function findChildHostInstancesForFiberShallowly(fiber,hostInstances){for(var node2=fiber,foundHostInstances=!1;;){if(node2.tag===HostComponent)foundHostInstances=!0,hostInstances.add(node2.stateNode);else if(node2.child!==null){node2.child.return=node2,node2=node2.child;continue}if(node2===fiber)return foundHostInstances;for(;node2.sibling===null;){if(node2.return===null||node2.return===fiber)return foundHostInstances;node2=node2.return}node2.sibling.return=node2.return,node2=node2.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+=`
|
|
|
|
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(Fragment2,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 root2=new FiberRootNode(containerInfo,tag,hydrate2,identifierPrefix,onRecoverableError),uninitializedFiber=createHostRootFiber(tag,isStrictMode);root2.current=uninitializedFiber,uninitializedFiber.stateNode=root2;{var _initialState={element:initialChildren,isDehydrated:hydrate2,cache:null,transitions:null,pendingSuspenseBoundaries:null};uninitializedFiber.memoizedState=_initialState}return initializeUpdateQueue(uninitializedFiber),root2}var ReactVersion="18.2.0";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,root2=createFiberRoot(containerInfo,tag,hydrate2,initialChildren,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);root2.context=getContextForSubtree(null);var current2=root2.current,eventTime=requestEventTime(),lane=requestUpdateLane(current2),update=createUpdate(eventTime,lane);return update.callback=callback??null,enqueueUpdate(current2,update,lane),scheduleInitialHydrationOnRoot(root2,lane,eventTime),root2}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&¤t!==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.
|
|
|
|
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 root2=enqueueUpdate(current$1,update,lane);return root2!==null&&(scheduleUpdateOnFiber(root2,current$1,lane,eventTime),entangleTransitions(root2,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 root2=fiber.stateNode;if(isRootDehydrated(root2)){var lanes=getHighestPriorityPendingLanes(root2);flushRoot(root2,lanes)}break}case SuspenseComponent:{flushSync(function(){var root3=enqueueConcurrentRenderForLane(fiber,SyncLane);if(root3!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root3,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,root2=enqueueConcurrentRenderForLane(fiber,lane);if(root2!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root2,fiber,lane,eventTime)}markRetryLaneIfNotHydrated(fiber,lane)}}function attemptHydrationAtCurrentPriority$1(fiber){if(fiber.tag===SuspenseComponent){var lane=requestUpdateLane(fiber),root2=enqueueConcurrentRenderForLane(fiber,lane);if(root2!==null){var eventTime=requestEventTime();scheduleUpdateOnFiber(root2,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,path,index2){var key=path[index2],updated=isArray(obj)?obj.slice():assign2({},obj);return index2+1===path.length?(isArray(updated)?updated.splice(key,1):delete updated[key],updated):(updated[key]=copyWithDeleteImpl(obj[key],path,index2+1),updated)},copyWithDelete=function(obj,path){return copyWithDeleteImpl(obj,path,0)},copyWithRenameImpl=function(obj,oldPath,newPath,index2){var oldKey=oldPath[index2],updated=isArray(obj)?obj.slice():assign2({},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,path,index2,value){if(index2>=path.length)return value;var key=path[index2],updated=isArray(obj)?obj.slice():assign2({},obj);return updated[key]=copyWithSetImpl(obj[key],path,index2+1,value),updated},copyWithSet=function(obj,path,value){return copyWithSetImpl(obj,path,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,path,value){var hook=findHook(fiber,id);if(hook!==null){var newState=copyWithSet(hook.memoizedState,path,value);hook.memoizedState=newState,hook.baseState=newState,fiber.memoizedProps=assign2({},fiber.memoizedProps);var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,fiber,SyncLane,NoTimestamp)}},overrideHookStateDeletePath=function(fiber,id,path){var hook=findHook(fiber,id);if(hook!==null){var newState=copyWithDelete(hook.memoizedState,path);hook.memoizedState=newState,hook.baseState=newState,fiber.memoizedProps=assign2({},fiber.memoizedProps);var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,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=assign2({},fiber.memoizedProps);var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,fiber,SyncLane,NoTimestamp)}},overrideProps=function(fiber,path,value){fiber.pendingProps=copyWithSet(fiber.memoizedProps,path,value),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps);var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,fiber,SyncLane,NoTimestamp)},overridePropsDeletePath=function(fiber,path){fiber.pendingProps=copyWithDelete(fiber.memoizedProps,path),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps);var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,fiber,SyncLane,NoTimestamp)},overridePropsRenamePath=function(fiber,oldPath,newPath){fiber.pendingProps=copyWithRename(fiber.memoizedProps,oldPath,newPath),fiber.alternate&&(fiber.alternate.pendingProps=fiber.pendingProps);var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,fiber,SyncLane,NoTimestamp)},scheduleUpdate=function(fiber){var root2=enqueueConcurrentRenderForLane(fiber,SyncLane);root2!==null&&scheduleUpdateOnFiber(root2,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 root2=this._internalRoot;if(root2===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=root2.containerInfo;if(container.nodeType!==COMMENT_NODE){var hostInstance=findHostInstanceWithNoPortals(root2.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,root2,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 root2=this._internalRoot;if(root2!==null){this._internalRoot=null;var container=root2.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,root2,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,transitionCallbacks=null;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:
|
|
|
|
let root = createRoot(domContainer);
|
|
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&&(transitionCallbacks=options2.transitionCallbacks));var root2=createContainer(container,ConcurrentRoot,null,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);markContainerAsRoot(root2.current,container);var rootContainerElement=container.nodeType===COMMENT_NODE?container.parentNode:container;return listenToAllSupportedEvents(rootContainerElement),new ReactDOMRoot(root2)}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 root2=createHydrationContainer(initialChildren,null,container,ConcurrentRoot,hydrationCallbacks,isStrictMode,concurrentUpdatesByDefaultOverride,identifierPrefix,onRecoverableError);if(markContainerAsRoot(root2.current,container),listenToAllSupportedEvents(container),mutableSources)for(var i=0;i<mutableSources.length;i++){var mutableSource=mutableSources[i];registerMutableSourceForHydration(root2,mutableSource)}return new ReactDOMHydrationRoot(root2)}function isValidContainer(node2){return!!(node2&&(node2.nodeType===ELEMENT_NODE||node2.nodeType===DOCUMENT_NODE||node2.nodeType===DOCUMENT_FRAGMENT_NODE||!disableCommentsAsDOMContainers))}function isValidContainerLegacy(node2){return!!(node2&&(node2.nodeType===ELEMENT_NODE||node2.nodeType===DOCUMENT_NODE||node2.nodeType===DOCUMENT_FRAGMENT_NODE||node2.nodeType===COMMENT_NODE&&node2.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(root2);originalCallback.call(instance)}}var root2=createHydrationContainer(initialChildren,callback,container,LegacyRoot,null,!1,!1,"",noopOnRecoverableError);container._reactRootContainer=root2,markContainerAsRoot(root2.current,container);var rootContainerElement=container.nodeType===COMMENT_NODE?container.parentNode:container;return listenToAllSupportedEvents(rootContainerElement),flushSync(),root2}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,root2;if(!maybeRoot)root2=legacyCreateRootFromDOMContainer(container,children,parentComponent,callback,forceHydrate);else{if(root2=maybeRoot,typeof callback=="function"){var originalCallback=callback;callback=function(){var instance=getPublicRootInstance(root2);originalCallback.call(instance)}}updateContainer(children,root2,parentComponent,callback)}return getPublicRootInstance(root2)}function findDOMNode(componentOrElement){{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)}function unmountComponentAtNode(container){if(!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:"?`
|
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Internals,exports.createPortal=createPortal$1,exports.createRoot=createRoot$1,exports.findDOMNode=findDOMNode,exports.flushSync=flushSync$1,exports.hydrate=hydrate,exports.hydrateRoot=hydrateRoot$1,exports.render=render,exports.unmountComponentAtNode=unmountComponentAtNode,exports.unstable_batchedUpdates=batchedUpdates$1,exports.unstable_renderSubtreeIntoContainer=renderSubtreeIntoContainer,exports.version=ReactVersion,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}});var require_react_dom=__commonJS({"../../node_modules/react-dom/index.js"(exports,module){"use strict";module.exports=require_react_dom_development()}});var scope=(()=>{let win;return typeof window<"u"?win=window:typeof globalThis<"u"?win=globalThis:typeof global<"u"?win=global:typeof self<"u"?win=self:win={},win})();var dist_exports2={};__export(dist_exports2,{CacheProvider:()=>CacheProvider,ClassNames:()=>ClassNames,Global:()=>Global,ThemeProvider:()=>ThemeProvider,background:()=>background,color:()=>color,convert:()=>convert,create:()=>create,createCache:()=>createCache,createGlobal:()=>createGlobal,createReset:()=>createReset,css:()=>css,darken:()=>darkenColor,ensure:()=>ensure,ignoreSsrWarning:()=>ignoreSsrWarning,isPropValid:()=>isPropValid,jsx:()=>jsx,keyframes:()=>keyframes,lighten:()=>lightenColor,styled:()=>newStyled,themes:()=>themes,typography:()=>typography,useTheme:()=>useTheme,withTheme:()=>withTheme});var dist_exports={};__export(dist_exports,{deprecate:()=>deprecate,logger:()=>logger,once:()=>once,pretty:()=>pretty});var{LOGLEVEL}=scope,levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelString=LOGLEVEL,currentLogLevelNumber=levels[currentLogLevelString]||levels.info,logger={trace:(message,...rest)=>{currentLogLevelNumber<=levels.trace&&console.trace(message,...rest)},debug:(message,...rest)=>{currentLogLevelNumber<=levels.debug&&console.debug(message,...rest)},info:(message,...rest)=>{currentLogLevelNumber<=levels.info&&console.info(message,...rest)},warn:(message,...rest)=>{currentLogLevelNumber<=levels.warn&&console.warn(message,...rest)},error:(message,...rest)=>{currentLogLevelNumber<=levels.error&&console.error(message,...rest)},log:(message,...rest)=>{currentLogLevelNumber<levels.silent&&console.log(message,...rest)}},logged=new Set,once=type=>(message,...rest)=>{if(!logged.has(message))return logged.add(message),logger[type](message,...rest)};once.clear=()=>logged.clear();once.trace=once("trace");once.debug=once("debug");once.info=once("info");once.warn=once("warn");once.error=once("error");once.log=once("log");var deprecate=once("warn"),pretty=type=>(...args)=>{let argArray=[];if(args.length){let startTagRe=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,endTagRe=/<\/span>/gi,reResultArray;for(argArray.push(args[0].replace(startTagRe,"%c").replace(endTagRe,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(let j=1;j<args.length;j++)argArray.push(args[j])}logger[type].apply(logger,argArray)};pretty.trace=pretty("trace");pretty.debug=pretty("debug");pretty.info=pretty("info");pretty.warn=pretty("warn");pretty.error=pretty("error");var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__copyProps=(to,from2,except,desc)=>{if(from2&&typeof from2=="object"||typeof from2=="function")for(let key of __getOwnPropNames(from2))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from2[key],enumerable:!(desc=__getOwnPropDesc(from2,key))||desc.enumerable});return to},__toESM2=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1}catch{return typeof fn=="function"}}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!t})()}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
|
|
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
|
|
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
|
|
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
|
|
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
|
|
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
|
|
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
|
|
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
|
|
`,9:`Please provide a number of steps to the modularScale helper.
|
|
|
|
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
|
|
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
|
|
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
|
|
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
|
|
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
|
|
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
|
|
`,16:`You must provide a template to this method.
|
|
|
|
`,17:`You passed an unsupported selector state to this method.
|
|
|
|
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
|
|
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
|
|
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
|
|
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
|
|
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
|
|
`,25:`fontFace expects localFonts to be an array.
|
|
|
|
`,26:`fontFace expects fileFormats to be an array.
|
|
|
|
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
|
|
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
|
|
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
|
|
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
|
|
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
|
|
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
|
|
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
|
|
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
|
|
`,36:`Property must be a string value.
|
|
|
|
`,37:`Syntax Error at %s.
|
|
|
|
`,38:`Formula contains a function that needs parentheses at %s.
|
|
|
|
`,39:`Formula is missing closing parenthesis at %s.
|
|
|
|
`,40:`Formula has too many closing parentheses at %s.
|
|
|
|
`,41:`All values in a formula must have the same unit or be unitless.
|
|
|
|
`,42:`Please provide a number of steps to the modularScale helper.
|
|
|
|
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
|
|
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
|
|
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
|
|
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
|
|
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
|
|
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
|
|
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
|
|
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
|
|
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
|
|
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
|
|
`,53:`fontFace expects localFonts to be an array.
|
|
|
|
`,54:`fontFace expects fileFormats to be an array.
|
|
|
|
`,55:`fontFace expects a name of a font-family.
|
|
|
|
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
|
|
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
|
|
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
|
|
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
|
|
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
|
|
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
|
|
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
|
|
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
|
|
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
|
|
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
|
|
`,67:`You must provide a template to this method.
|
|
|
|
`,68:`You passed an unsupported selector state to this method.
|
|
|
|
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
|
|
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
|
|
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
|
|
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
|
|
`,73:`Please provide a valid CSS variable.
|
|
|
|
`,74:`CSS variable not found and no default was provided.
|
|
|
|
`,75:`important requires a valid style object, got a %s instead.
|
|
|
|
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
|
|
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
|
|
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
`};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var a=args[0],b=[],c;for(c=1;c<args.length;c+=1)b.push(args[c]);return b.forEach(function(d){a=a.replace(/%[a-z]/,d)}),a}var PolishedError=function(_Error){_inheritsLoose(PolishedError2,_Error);function PolishedError2(code){for(var _this,_len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return _this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args)))||this,_assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color2){return Math.round(color2*255)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert2){if(convert2===void 0&&(convert2=convertToInt),saturation===0)return convert2(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert2(finalRed,finalGreen,finalBlue)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color2){if(typeof color2!="string")return color2;var normalizedColorName=color2.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color2}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color2){if(typeof color2!="string")throw new PolishedError(3);var normalizedColor=nameToHex(color2);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(""+hslMatched[1],10),saturation=parseInt(""+hslMatched[2],10)/100,lightness=parseInt(""+hslMatched[3],10)/100,rgbColorString="rgb("+hslToRgb(hue,saturation,lightness)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(""+hslaMatched[1],10),_saturation=parseInt(""+hslaMatched[2],10)/100,_lightness=parseInt(""+hslaMatched[3],10)/100,_rgbColorString="rgb("+hslToRgb(_hue,_saturation,_lightness)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color2){var red=color2.red/255,green=color2.green/255,blue=color2.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color2.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color2.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green<blue?6:0);break;case green:hue=(blue-red)/delta+2;break;default:hue=(red-green)/delta+4;break}return hue*=60,color2.alpha!==void 0?{hue,saturation,lightness,alpha:color2.alpha}:{hue,saturation,lightness}}function parseToHsl(color2){return rgbToHsl(parseToRgb(color2))}var reduceHexValue=function(value){return value.length===7&&value[1]===value[2]&&value[3]===value[4]&&value[5]===value[6]?"#"+value[1]+value[3]+value[5]:value},reduceHexValue$1=reduceHexValue;function numberToHex(value){var hex=value.toString(16);return hex.length===1?"0"+hex:hex}function colorToHex(color2){return numberToHex(Math.round(color2*255))}function convertToHex(red,green,blue){return reduceHexValue$1("#"+colorToHex(red)+colorToHex(green)+colorToHex(blue))}function hslToHex(hue,saturation,lightness){return hslToRgb(hue,saturation,lightness,convertToHex)}function hsl(value,saturation,lightness){if(typeof value=="number"&&typeof saturation=="number"&&typeof lightness=="number")return hslToHex(value,saturation,lightness);if(typeof value=="object"&&saturation===void 0&&lightness===void 0)return hslToHex(value.hue,value.saturation,value.lightness);throw new PolishedError(1)}function hsla(value,saturation,lightness,alpha){if(typeof value=="number"&&typeof saturation=="number"&&typeof lightness=="number"&&typeof alpha=="number")return alpha>=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if(typeof value=="object"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}function rgb(value,green,blue){if(typeof value=="number"&&typeof green=="number"&&typeof blue=="number")return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if(typeof value=="object"&&green===void 0&&blue===void 0)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue=="string"&&typeof secondValue=="number"){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}else{if(typeof firstValue=="number"&&typeof secondValue=="number"&&typeof thirdValue=="number"&&typeof fourthValue=="number")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if(typeof firstValue=="object"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")"}throw new PolishedError(7)}var isRgb=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isRgba=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&typeof color2.alpha=="number"},isHsl=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isHsla=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&typeof color2.alpha=="number"};function toColorString(color2){if(typeof color2!="object")throw new PolishedError(8);if(isRgba(color2))return rgba(color2);if(isRgb(color2))return rgb(color2);if(isHsla(color2))return hsla(color2);if(isHsl(color2))return hsl(color2);throw new PolishedError(8)}function curried(f,length2,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length2?f.apply(this,combined):curried(f,length2,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(amount,color2){if(color2==="transparent")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,(alpha*100+parseFloat(amount)*100)/100)});return rgba(colorWithAlpha)}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(amount,color2){if(color2==="transparent")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,color={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},background={app:"#F6F9FC",bar:color.lightest,content:color.lightest,preview:color.lightest,gridCellSize:10,hoverable:curriedTransparentize$1(.9,color.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},typography={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},theme={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:background.app,appContentBg:color.lightest,appPreviewBg:color.lightest,appBorderColor:color.border,appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color.darkest,textInverseColor:color.lightest,textMutedColor:color.dark,barTextColor:color.mediumdark,barHoverColor:color.secondary,barSelectedColor:color.secondary,barBg:color.lightest,buttonBg:background.app,buttonBorder:color.medium,booleanBg:color.mediumlight,booleanSelectedBg:color.lightest,inputBg:color.lightest,inputBorder:color.border,inputTextColor:color.darkest,inputBorderRadius:4},light_default=theme,theme2={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:color.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:color.mediumdark,barHoverColor:color.secondary,barSelectedColor:color.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:color.lightest,inputBorderRadius:4},dark_default=theme2,{window:globalWindow}=scope,mkColor=color2=>({color:color2}),isColorString=color2=>typeof color2!="string"?(logger.warn(`Color passed to theme object should be a string. Instead ${color2}(${typeof color2}) was passed.`),!1):!0,isValidColorForPolished=color2=>!/(gradient|var|calc)/.test(color2),applyPolished=(type,color2)=>type==="darken"?rgba(`${curriedDarken$1(1,color2)}`,.95):type==="lighten"?rgba(`${curriedLighten$1(1,color2)}`,.95):color2,colorFactory=type=>color2=>{if(!isColorString(color2)||!isValidColorForPolished(color2))return color2;try{return applyPolished(type,color2)}catch{return color2}},lightenColor=colorFactory("lighten"),darkenColor=colorFactory("darken"),getPreferredColorScheme=()=>!globalWindow||!globalWindow.matchMedia?"light":globalWindow.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",themes={light:light_default,dark:dark_default,normal:light_default},preferredColorScheme=getPreferredColorScheme(),create=(vars={base:preferredColorScheme},rest)=>{let inherit={...themes[preferredColorScheme],...themes[vars.base]||{},...vars,base:themes[vars.base]?vars.base:preferredColorScheme};return{...rest,...inherit,barSelectedColor:vars.barSelectedColor||inherit.colorSecondary}};var React2=__toESM(require_react(),1),import_react=__toESM(require_react(),1);var React=__toESM(require_react()),syncFallback=function(create3){return create3()},useInsertionEffect2=React.useInsertionEffect?React.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect2||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect2||React.useLayoutEffect;var import_memoizerific=__toESM(require_memoizerific(),1);var require_react_is_development=__commonJS2({"../../node_modules/react-is/cjs/react-is.development.js"(exports){(function(){var hasSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_SUSPENSE_LIST_TYPE=hasSymbol?Symbol.for("react.suspense_list"):60120,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,REACT_BLOCK_TYPE=hasSymbol?Symbol.for("react.block"):60121,REACT_FUNDAMENTAL_TYPE=hasSymbol?Symbol.for("react.fundamental"):60117,REACT_RESPONDER_TYPE=hasSymbol?Symbol.for("react.responder"):60118,REACT_SCOPE_TYPE=hasSymbol?Symbol.for("react.scope"):60119;function isValidElementType(type){return typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||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_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE)}function typeOf(object){if(typeof object=="object"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment4=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment4,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense,exports.isValidElementType=isValidElementType,exports.typeOf=typeOf})()}}),require_react_is=__commonJS2({"../../node_modules/react-is/index.js"(exports,module){module.exports=require_react_is_development()}}),require_hoist_non_react_statics_cjs=__commonJS2({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports,module){var reactIs=require_react_is(),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS,TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics2(targetComponent,sourceComponent,blacklist){if(typeof sourceComponent!="string"){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics2(targetComponent,inheritedComponent,blacklist)}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i<keys.length;++i){var key=keys[i];if(!KNOWN_STATICS[key]&&!(blacklist&&blacklist[key])&&!(sourceStatics&&sourceStatics[key])&&!(targetStatics&&targetStatics[key])){var descriptor=getOwnPropertyDescriptor(sourceComponent,key);try{defineProperty(targetComponent,key,descriptor)}catch{}}}}return targetComponent}module.exports=hoistNonReactStatics2}});function memoize(fn){var cache=Object.create(null);return function(arg){return cache[arg]===void 0&&(cache[arg]=fn(arg)),cache[arg]}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize(function(prop){return reactPropsRegex.test(prop)||prop.charCodeAt(0)===111&&prop.charCodeAt(1)===110&&prop.charCodeAt(2)<91});function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===tag)return document.styleSheets[i]}function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),options.nonce!==void 0&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag.setAttribute("data-s",""),tag}var StyleSheet=function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;_this.tags.length===0?_this.insertionPoint?before=_this.insertionPoint.nextSibling:_this.prepend?before=_this.container.firstChild:before=_this.before:before=_this.tags[_this.tags.length-1].nextSibling,_this.container.insertBefore(tag,before),_this.tags.push(tag)},this.isSpeedy=options.speedy===void 0?!1:options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.prepend=options.prepend,this.insertionPoint=options.insertionPoint,this.before=null}var _proto=StyleSheet2.prototype;return _proto.hydrate=function(nodes){nodes.forEach(this._insertTag)},_proto.insert=function(rule){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement(this));var tag=this.tags[this.tags.length-1],isImportRule3=rule.charCodeAt(0)===64&&rule.charCodeAt(1)===105;if(isImportRule3&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
`+rule+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!isImportRule3,this.isSpeedy){var sheet=sheetForTag(tag);try{sheet.insertRule(rule,sheet.cssRules.length)}catch(e){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)||console.error('There was a problem inserting the following rule: "'+rule+'"',e)}}else tag.appendChild(document.createTextNode(rule));this.ctr++},_proto.flush=function(){this.tags.forEach(function(tag){return tag.parentNode&&tag.parentNode.removeChild(tag)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},StyleSheet2}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign=Object.assign;function hash(value,length2){return charat(value,0)^45?(((length2<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3):0}function trim(value){return value.trim()}function match(value,pattern){return(value=pattern.exec(value))?value[0]:value}function replace(value,pattern,replacement){return value.replace(pattern,replacement)}function indexof(value,search){return value.indexOf(search)}function charat(value,index){return value.charCodeAt(index)|0}function substr(value,begin,end){return value.slice(begin,end)}function strlen(value){return value.length}function sizeof(value){return value.length}function append(value,array){return array.push(value),value}function combine(array,callback){return array.map(callback).join("")}var line=1,column=1,length=0,position=0,character=0,characters="";function node(value,root,parent,type,props,children,length2){return{value,root,parent,type,props,children,line,column,length:length2,return:""}}function copy(root,props){return assign(node("",null,null,"",null,null,0),root,{length:-root.length},props)}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position<length?charat(characters,position++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice(begin,end){return substr(characters,begin,end)}function token(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(value){return line=column=1,length=strlen(characters=value),position=0,[]}function dealloc(value){return characters="",value}function delimit(type){return trim(slice(position-1,delimiter(type===91?type+2:type===40?type+1:type)))}function whitespace(type){for(;(character=peek())&&character<33;)next();return token(type)>2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&peek()==32&&next()==32))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:type!==34&&type!==39&&delimiter(character);break;case 40:type===41&&delimiter(type);break;case 92:next();break}return position}function commenter(type,index){for(;next()&&type+character!==57&&!(type+character===84&&peek()===47););return"/*"+slice(index,position-1)+"*"+from(type===47?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){for(var index=0,offset=0,length2=pseudo,atrule=0,property=0,previous=0,variable=1,scanning=1,ampersand=1,character2=0,type="",props=rules,children=rulesets,reference=rule,characters2=type;scanning;)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1&&(ampersand=-1);break}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters2+="/"}break;case 123*variable:points[index++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset:ampersand==-1&&(characters2=replace(characters2,/\f/g,"")),property>0&&strlen(characters2)-length2&&append(property>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:if(append(reference=ruleset(characters2,root,parent,index,offset,rules,points,type,props=[],children=[],length2),rulesets),character2===123)if(offset===0)parse(characters2,root,reference,reference,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference,reference,reference,[""],children,0,points,children)}}index=offset=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset>0?1:(characters2+="\f",-1);break;case 44:points[index++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:peek()===45&&(characters2+=delimit(next())),atrule=peek(),offset=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:previous===45&&strlen(characters2)==2&&(variable=0)}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length2){for(var post=offset-1,rule=offset===0?rules:[""],size=sizeof(rule),i=0,j=0,k=0;i<index;++i)for(var x=0,y=substr(value,post+1,post=abs(j=points[i])),z=value;x<size;++x)(z=trim(j>0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,offset===0?RULESET:type,props,children,length2)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(char()),substr(value,2,-2),0)}function declaration(value,root,parent,length2){return node(value,root,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2)}function serialize(children,callback){for(var output="",length2=sizeof(children),i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output}function stringify(element,index,children,callback){switch(element.type){case LAYER:if(element.children.length)break;case IMPORT:case DECLARATION:return element.return=element.return||element.value;case COMMENT:return"";case KEYFRAMES:return element.return=element.value+"{"+serialize(element.children,callback)+"}";case RULESET:element.value=element.props.join(",")}return strlen(children=serialize(element.children,callback))?element.return=element.value+"{"+children+"}":""}function middleware(collection){var length2=sizeof(collection);return function(element,index,children,callback){for(var output="",i=0;i<length2;i++)output+=collection[i](element,index,children,callback)||"";return output}}var weakMemoize=function(func){var cache=new WeakMap;return function(arg){if(cache.has(arg))return cache.get(arg);var ret=func(arg);return cache.set(arg,ret),ret}},identifierWithPointTracking=function(begin,points,index){for(var previous=0,character2=0;previous=character2,character2=peek(),previous===38&&character2===12&&(points[index]=1),!token(character2);)next();return slice(begin,position)},toRules=function(parsed,points){var index=-1,character2=44;do switch(token(character2)){case 0:character2===38&&peek()===12&&(points[index]=1),parsed[index]+=identifierWithPointTracking(position-1,points,index);break;case 2:parsed[index]+=delimit(character2);break;case 4:if(character2===44){parsed[++index]=peek()===58?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=from(character2)}while(character2=next());return parsed},getRules=function(value,points){return dealloc(toRules(alloc(value),points))},fixedElements=new WeakMap,compat=function(element){if(!(element.type!=="rule"||!element.parent||element.length<1)){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;parent.type!=="rule";)if(parent=parent.parent,!parent)return;if(!(element.props.length===1&&value.charCodeAt(0)!==58&&!fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i<rules.length;i++)for(var j=0;j<parentRules.length;j++,k++)element.props[k]=points[i]?rules[i].replace(/&\f/g,parentRules[j]):parentRules[j]+" "+rules[i]}}},removeLabel=function(element){if(element.type==="decl"){var value=element.value;value.charCodeAt(0)===108&&value.charCodeAt(2)===98&&(element.return="",element.value="")}},ignoreFlag="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",isIgnoringComment=function(element){return element.type==="comm"&&element.children.indexOf(ignoreFlag)>-1},createUnsafeSelectorsAlarm=function(cache){return function(element,index,children){if(!(element.type!=="rule"||cache.compat)){var unsafePseudoClasses=element.value.match(/(:first|:nth|:nth-last)-child/g);if(unsafePseudoClasses){for(var isNested=!!element.parent,commentContainer=isNested?element.parent.children:children,i=commentContainer.length-1;i>=0;i--){var node2=commentContainer[i];if(node2.line<element.line)break;if(node2.column<element.column){if(isIgnoringComment(node2))return;break}}unsafePseudoClasses.forEach(function(unsafePseudoClass){console.error('The pseudo class "'+unsafePseudoClass+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+unsafePseudoClass.split("-child")[0]+'-of-type".')})}}}},isImportRule=function(element){return element.type.charCodeAt(1)===105&&element.type.charCodeAt(0)===64},isPrependedWithRegularRules=function(index,children){for(var i=index-1;i>=0;i--)if(!isImportRule(children[i]))return!0;return!1},nullifyElement=function(element){element.type="",element.value="",element.return="",element.children="",element.props=""},incorrectImportAlarm=function(element,index,children){isImportRule(element)&&(element.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),nullifyElement(element)):isPrependedWithRegularRules(index,children)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),nullifyElement(element)))};function prefix(value,length2){switch(hash(value,length2)){case 5103:return WEBKIT+"print-"+value+value;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+"flex-"+value+value;case 5187:return WEBKIT+value+replace(value,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+value;case 5443:return WEBKIT+value+MS+"flex-item-"+replace(value,/flex-|-self/,"")+value;case 4675:return WEBKIT+value+MS+"flex-line-pack"+replace(value,/align-content|flex-|-self/,"")+value;case 5548:return WEBKIT+value+MS+replace(value,"shrink","negative")+value;case 5292:return WEBKIT+value+MS+replace(value,"basis","preferred-size")+value;case 6060:return WEBKIT+"box-"+replace(value,"-grow","")+WEBKIT+value+MS+replace(value,"grow","positive")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),value,"")+value;case 5495:case 3959:return replace(value,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+"$1$2")+value;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(value)-1-length2>6)switch(charat(value,length2+1)){case 109:if(charat(value,length2+4)!==45)break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(value,length2+3)==108?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length2)+value:value}break;case 4949:if(charat(value,length2+1)!==115)break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(value,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length2+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}var prefixer=function(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case DECLARATION:element.return=prefix(element.value,element.length);break;case KEYFRAMES:return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return combine(element.props,function(value){switch(match(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(options){var key=options.key;if(!key)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(key==="css"){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,function(node2){var dataEmotionAttribute=node2.getAttribute("data-emotion");dataEmotionAttribute.indexOf(" ")!==-1&&(document.head.appendChild(node2),node2.setAttribute("data-s",""))})}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;if(/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+key+'" was passed');var inserted={},container,nodesToHydrate=[];container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),function(node2){for(var attrib=node2.getAttribute("data-emotion").split(" "),i=1;i<attrib.length;i++)inserted[attrib[i]]=!0;nodesToHydrate.push(node2)});var _insert,omnipresentPlugins=[compat,removeLabel];omnipresentPlugins.push(createUnsafeSelectorsAlarm({get compat(){return cache.compat}}),incorrectImportAlarm);{var currentSheet,finalizingPlugins=[stringify,function(element){element.root||(element.return?currentSheet.insert(element.return):element.value&&element.type!==COMMENT&¤tSheet.insert(element.value+"{}"))}],serializer=middleware(omnipresentPlugins.concat(stylisPlugins,finalizingPlugins)),stylis=function(styles){return serialize(compile(styles),serializer)};_insert=function(selector,serialized,sheet,shouldCache){currentSheet=sheet,serialized.map!==void 0&&(currentSheet={insert:function(rule){sheet.insert(rule+serialized.map)}}),stylis(selector?selector+"{"+serialized.styles+"}":serialized.styles),shouldCache&&(cache.inserted[serialized.name]=!0)}}var cache={key,sheet:new StyleSheet({key,container,nonce:options.nonce,speedy:options.speedy,prepend:options.prepend,insertionPoint:options.insertionPoint}),nonce:options.nonce,inserted,registered:{},insert:_insert};return cache.sheet.hydrate(nodesToHydrate),cache},import_hoist_non_react_statics=__toESM2(require_hoist_non_react_statics_cjs()),hoistNonReactStatics=function(targetComponent,sourceComponent){return(0,import_hoist_non_react_statics.default)(targetComponent,sourceComponent)},isBrowser=!0;function getRegisteredStyles(registered,registeredStyles,classNames){var rawClassName="";return classNames.split(" ").forEach(function(className){registered[className]!==void 0?registeredStyles.push(registered[className]+";"):rawClassName+=className+" "}),rawClassName}var registerStyles=function(cache,serialized,isStringTag){var className=cache.key+"-"+serialized.name;(isStringTag===!1||isBrowser===!1)&&cache.registered[className]===void 0&&(cache.registered[className]=serialized.styles)},insertStyles=function(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(cache.inserted[serialized.name]===void 0){var current=serialized;do cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0),current=current.next;while(current!==void 0)}};function murmur2(str){for(var h=0,k,i=0,len=str.length;len>=4;++i,len-=4)k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24,k=(k&65535)*1540483477+((k>>>16)*59797<<16),k^=k>>>24,h=(k&65535)*1540483477+((k>>>16)*59797<<16)^(h&65535)*1540483477+((h>>>16)*59797<<16);switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255,h=(h&65535)*1540483477+((h>>>16)*59797<<16)}return h^=h>>>13,h=(h&65535)*1540483477+((h>>>16)*59797<<16),((h^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ILLEGAL_ESCAPE_SEQUENCE_ERROR=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
You can read more about this here:
|
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return property.charCodeAt(1)===45},isProcessableValue=function(value){return value!=null&&typeof value!="boolean"},processStyleName=memoize(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(key,value){switch(key){case"animation":case"animationName":if(typeof value=="string")return value.replace(animationRegex,function(match2,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return unitlessKeys[key]!==1&&!isCustomProperty(key)&&typeof value=="number"&&value!==0?value+"px":value};contentValuePattern=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,contentValues=["normal","none","initial","inherit","unset"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={},processStyleValue=function(key,value){if(key==="content"&&(typeof value!="string"||contentValues.indexOf(value)===-1&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||value.charAt(0)!=='"'&&value.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");var processed=oldProcessStyleValue(key,value);return processed!==""&&!isCustomProperty(key)&&key.indexOf("-")!==-1&&hyphenatedCache[key]===void 0&&(hyphenatedCache[key]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+"?")),processed};var contentValuePattern,contentValues,oldProcessStyleValue,msPattern,hyphenPattern,hyphenatedCache,noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null)return"";if(interpolation.__emotion_styles!==void 0){if(interpolation.toString()==="NO_COMPONENT_SELECTOR")throw new Error(noComponentSelectorMessage);return interpolation}switch(typeof interpolation){case"boolean":return"";case"object":{if(interpolation.anim===1)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0)for(;next2!==void 0;)cursor={name:next2.name,styles:next2.styles,next:cursor},next2=next2.next;var styles=interpolation.styles+";";return interpolation.map!==void 0&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation)}case"function":{if(mergedProps!==void 0){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":var matched=[],replaced=interpolation.replace(animationRegex,function(match2,p1,p2){var fakeVarName="animation"+matched.length;return matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+fakeVarName+"}"});matched.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join(`
|
|
`)+`
|
|
|
|
You should wrap it with \`css\` like this:
|
|
|
|
`+("css`"+replaced+"`"));break}if(registered==null)return interpolation;var cached=registered[interpolation];return cached!==void 0?cached:interpolation}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i<obj.length;i++)string+=handleInterpolation(mergedProps,registered,obj[i])+";";else for(var _key in obj){var value=obj[_key];if(typeof value!="object")registered!=null&®istered[value]!==void 0?string+=_key+"{"+registered[value]+"}":isProcessableValue(value)&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value)+";");else{if(_key==="NO_COMPONENT_SELECTOR")throw new Error(noComponentSelectorMessage);if(Array.isArray(value)&&typeof value[0]=="string"&&(registered==null||registered[value[0]]===void 0))for(var _i=0;_i<value.length;_i++)isProcessableValue(value[_i])&&(string+=processStyleName(_key)+":"+processStyleValue(_key,value[_i])+";");else{var interpolated=handleInterpolation(mergedProps,registered,value);switch(_key){case"animation":case"animationName":{string+=processStyleName(_key)+":"+interpolated+";";break}default:_key==="undefined"&&console.error(UNDEFINED_AS_OBJECT_KEY_ERROR),string+=_key+"{"+interpolated+"}"}}}}return string}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,sourceMapPattern;sourceMapPattern=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var cursor,serializeStyles=function(args,registered,mergedProps){if(args.length===1&&typeof args[0]=="object"&&args[0]!==null&&args[0].styles!==void 0)return args[0];var stringMode=!0,styles="";cursor=void 0;var strings=args[0];strings==null||strings.raw===void 0?(stringMode=!1,styles+=handleInterpolation(mergedProps,registered,strings)):(strings[0]===void 0&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[0]);for(var i=1;i<args.length;i++)styles+=handleInterpolation(mergedProps,registered,args[i]),stringMode&&(strings[i]===void 0&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR),styles+=strings[i]);var sourceMap;styles=styles.replace(sourceMapPattern,function(match3){return sourceMap=match3,""}),labelPattern.lastIndex=0;for(var identifierName="",match2;(match2=labelPattern.exec(styles))!==null;)identifierName+="-"+match2[1];var name=murmur2(styles)+identifierName;return{name,styles,map:sourceMap,next:cursor,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},hasOwn={}.hasOwnProperty,EmotionCacheContext=React2.createContext(typeof HTMLElement<"u"?createCache({key:"css"}):null);EmotionCacheContext.displayName="EmotionCacheContext";var CacheProvider=EmotionCacheContext.Provider,withEmotionCache=function(func){return(0,import_react.forwardRef)(function(props,ref){var cache=(0,import_react.useContext)(EmotionCacheContext);return func(props,cache,ref)})},ThemeContext=React2.createContext({});ThemeContext.displayName="EmotionThemeContext";var useTheme=function(){return React2.useContext(ThemeContext)},getTheme=function(outerTheme,theme3){if(typeof theme3=="function"){var mergedTheme=theme3(outerTheme);if(mergedTheme==null||typeof mergedTheme!="object"||Array.isArray(mergedTheme))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return mergedTheme}if(theme3==null||typeof theme3!="object"||Array.isArray(theme3))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return _extends({},outerTheme,theme3)},createCacheWithTheme=weakMemoize(function(outerTheme){return weakMemoize(function(theme3){return getTheme(outerTheme,theme3)})}),ThemeProvider=function(props){var theme3=React2.useContext(ThemeContext);return props.theme!==theme3&&(theme3=createCacheWithTheme(theme3)(props.theme)),React2.createElement(ThemeContext.Provider,{value:theme3},props.children)};function withTheme(Component){var componentName=Component.displayName||Component.name||"Component",render=function(props,ref){var theme3=React2.useContext(ThemeContext);return React2.createElement(Component,_extends({theme:theme3,ref},props))},WithTheme=React2.forwardRef(render);return WithTheme.displayName="WithTheme("+componentName+")",hoistNonReactStatics(WithTheme,Component)}var getLastPart=function(functionName){var parts=functionName.split(".");return parts[parts.length-1]},getFunctionNameFromStackTraceLine=function(line2){var match2=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line2);if(match2||(match2=/^([A-Za-z0-9$.]+)@/.exec(line2),match2))return getLastPart(match2[1])},internalReactFunctionNames=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),sanitizeIdentifier=function(identifier2){return identifier2.replace(/\$/g,"-")},getLabelFromStackTrace=function(stackTrace){if(stackTrace)for(var lines=stackTrace.split(`
|
|
`),i=0;i<lines.length;i++){var functionName=getFunctionNameFromStackTraceLine(lines[i]);if(functionName){if(internalReactFunctionNames.has(functionName))break;if(/^[A-Z]/.test(functionName))return sanitizeIdentifier(functionName)}}},typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",labelPropName="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",createEmotionProps=function(type,props){if(typeof props.css=="string"&&props.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+props.css+"`");var newProps={};for(var key in props)hasOwn.call(props,key)&&(newProps[key]=props[key]);if(newProps[typePropName]=type,props.css&&(typeof props.css!="object"||typeof props.css.name!="string"||props.css.name.indexOf("-")===-1)){var label=getLabelFromStackTrace(new Error().stack);label&&(newProps[labelPropName]=label)}return newProps},Insertion=function(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return registerStyles(cache,serialized,isStringTag),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(cache,serialized,isStringTag)}),null},Emotion=withEmotionCache(function(props,cache,ref){var cssProp=props.css;typeof cssProp=="string"&&cache.registered[cssProp]!==void 0&&(cssProp=cache.registered[cssProp]);var WrappedComponent=props[typePropName],registeredStyles=[cssProp],className="";typeof props.className=="string"?className=getRegisteredStyles(cache.registered,registeredStyles,props.className):props.className!=null&&(className=props.className+" ");var serialized=serializeStyles(registeredStyles,void 0,React2.useContext(ThemeContext));if(serialized.name.indexOf("-")===-1){var labelFromStack=props[labelPropName];labelFromStack&&(serialized=serializeStyles([serialized,"label:"+labelFromStack+";"]))}className+=cache.key+"-"+serialized.name;var newProps={};for(var key in props)hasOwn.call(props,key)&&key!=="css"&&key!==typePropName&&key!==labelPropName&&(newProps[key]=props[key]);return newProps.ref=ref,newProps.className=className,React2.createElement(React2.Fragment,null,React2.createElement(Insertion,{cache,serialized,isStringTag:typeof WrappedComponent=="string"}),React2.createElement(WrappedComponent,newProps))});Emotion.displayName="EmotionCssPropInternal";var Emotion$1=Emotion;__toESM2(require_hoist_non_react_statics_cjs());var pkg={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},jsx=function(type,props){var args=arguments;if(props==null||!hasOwn.call(props,"css"))return React2.createElement.apply(void 0,args);var argsLength=args.length,createElementArgArray=new Array(argsLength);createElementArgArray[0]=Emotion$1,createElementArgArray[1]=createEmotionProps(type,props);for(var i=2;i<argsLength;i++)createElementArgArray[i]=args[i];return React2.createElement.apply(null,createElementArgArray)},warnedAboutCssPropForGlobal=!1,Global=withEmotionCache(function(props,cache){!warnedAboutCssPropForGlobal&&(props.className||props.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),warnedAboutCssPropForGlobal=!0);var styles=props.styles,serialized=serializeStyles([styles],void 0,React2.useContext(ThemeContext)),sheetRef=React2.useRef();return useInsertionEffectWithLayoutFallback(function(){var key=cache.key+"-global",sheet=new cache.sheet.constructor({key,nonce:cache.sheet.nonce,container:cache.sheet.container,speedy:cache.sheet.isSpeedy}),rehydrating=!1,node2=document.querySelector('style[data-emotion="'+key+" "+serialized.name+'"]');return cache.sheet.tags.length&&(sheet.before=cache.sheet.tags[0]),node2!==null&&(rehydrating=!0,node2.setAttribute("data-emotion",key),sheet.hydrate([node2])),sheetRef.current=[sheet,rehydrating],function(){sheet.flush()}},[cache]),useInsertionEffectWithLayoutFallback(function(){var sheetRefCurrent=sheetRef.current,sheet=sheetRefCurrent[0],rehydrating=sheetRefCurrent[1];if(rehydrating){sheetRefCurrent[1]=!1;return}if(serialized.next!==void 0&&insertStyles(cache,serialized.next,!0),sheet.tags.length){var element=sheet.tags[sheet.tags.length-1].nextElementSibling;sheet.before=element,sheet.flush()}cache.insert("",serialized,sheet,!1)},[cache,serialized.name]),null});Global.displayName="EmotionGlobal";function css(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return serializeStyles(args)}var keyframes=function(){var insertable=css.apply(void 0,arguments),name="animation-"+insertable.name;return{name,styles:"@keyframes "+name+"{"+insertable.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},classnames=function classnames2(args){for(var len=args.length,i=0,cls="";i<len;i++){var arg=args[i];if(arg!=null){var toAdd=void 0;switch(typeof arg){case"boolean":break;case"object":{if(Array.isArray(arg))toAdd=classnames2(arg);else{arg.styles!==void 0&&arg.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),toAdd="";for(var k in arg)arg[k]&&k&&(toAdd&&(toAdd+=" "),toAdd+=k)}break}default:toAdd=arg}toAdd&&(cls&&(cls+=" "),cls+=toAdd)}}return cls};function merge(registered,css2,className){var registeredStyles=[],rawClassName=getRegisteredStyles(registered,registeredStyles,className);return registeredStyles.length<2?className:rawClassName+css2(registeredStyles)}var Insertion3=function(_ref){var cache=_ref.cache,serializedArr=_ref.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var i=0;i<serializedArr.length;i++)insertStyles(cache,serializedArr[i],!1)}),null},ClassNames=withEmotionCache(function(props,cache){var hasRendered=!1,serializedArr=[],css2=function(){if(hasRendered)throw new Error("css can only be used during render");for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var serialized=serializeStyles(args,cache.registered);return serializedArr.push(serialized),registerStyles(cache,serialized,!1),cache.key+"-"+serialized.name},cx=function(){if(hasRendered)throw new Error("cx can only be used during render");for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return merge(cache.registered,css2,classnames(args))},content={css:css2,cx,theme:React2.useContext(ThemeContext)},ele=props.children(content);return hasRendered=!0,React2.createElement(React2.Fragment,null,React2.createElement(Insertion3,{cache,serializedArr}),ele)});ClassNames.displayName="EmotionClassNames";isBrowser3=!0,isTestEnv=typeof jest<"u"||typeof vi<"u",isBrowser3&&!isTestEnv&&(globalContext=typeof globalThis<"u"?globalThis:isBrowser3?window:global,globalKey="__EMOTION_REACT_"+pkg.version.split(".")[0]+"__",globalContext[globalKey]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),globalContext[globalKey]=!0);var isBrowser3,isTestEnv,globalContext,globalKey,testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(key){return key!=="theme"},getDefaultShouldForwardProp=function(tag){return typeof tag=="string"&&tag.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return typeof shouldForwardProp!="function"&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},ILLEGAL_ESCAPE_SEQUENCE_ERROR2=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
You can read more about this here:
|
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Insertion5=function(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return registerStyles(cache,serialized,isStringTag),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(cache,serialized,isStringTag)}),null},createStyled=function createStyled2(tag,options){if(tag===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
You may have forgotten to import it.`);var isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag,identifierName,targetClassName;options!==void 0&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&tag.__emotion_styles!==void 0?tag.__emotion_styles.slice(0):[];if(identifierName!==void 0&&styles.push("label:"+identifierName+";"),args[0]==null||args[0].raw===void 0)styles.push.apply(styles,args);else{args[0][0]===void 0&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2),styles.push(args[0][0]);for(var len=args.length,i=1;i<len;i++)args[0][i]===void 0&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2),styles.push(args[i],args[0][i])}var Styled=withEmotionCache(function(props,cache,ref){var FinalTag=shouldUseAs&&props.as||baseTag,className="",classInterpolations=[],mergedProps=props;if(props.theme==null){mergedProps={};for(var key in props)mergedProps[key]=props[key];mergedProps.theme=React2.useContext(ThemeContext)}typeof props.className=="string"?className=getRegisteredStyles(cache.registered,classInterpolations,props.className):props.className!=null&&(className=props.className+" ");var serialized=serializeStyles(styles.concat(classInterpolations),cache.registered,mergedProps);className+=cache.key+"-"+serialized.name,targetClassName!==void 0&&(className+=" "+targetClassName);var finalShouldForwardProp=shouldUseAs&&shouldForwardProp===void 0?getDefaultShouldForwardProp(FinalTag):defaultShouldForwardProp,newProps={};for(var _key in props)shouldUseAs&&_key==="as"||finalShouldForwardProp(_key)&&(newProps[_key]=props[_key]);return newProps.className=className,newProps.ref=ref,React2.createElement(React2.Fragment,null,React2.createElement(Insertion5,{cache,serialized,isStringTag:typeof FinalTag=="string"}),React2.createElement(FinalTag,newProps))});return Styled.displayName=identifierName!==void 0?identifierName:"Styled("+(typeof baseTag=="string"?baseTag:baseTag.displayName||baseTag.name||"Component")+")",Styled.defaultProps=tag.defaultProps,Styled.__emotion_real=Styled,Styled.__emotion_base=baseTag,Styled.__emotion_styles=styles,Styled.__emotion_forwardProp=shouldForwardProp,Object.defineProperty(Styled,"toString",{value:function(){return targetClassName===void 0?"NO_COMPONENT_SELECTOR":"."+targetClassName}}),Styled.withComponent=function(nextTag,nextOptions){return createStyled2(nextTag,_extends({},options,nextOptions,{shouldForwardProp:composeShouldForwardProps(Styled,nextOptions,!0)})).apply(void 0,styles)},Styled}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],newStyled=createStyled.bind();tags.forEach(function(tagName){newStyled[tagName]=newStyled(tagName)});var createReset=(0,import_memoizerific.default)(1)(({typography:typography2})=>({body:{fontFamily:typography2.fonts.base,fontSize:typography2.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:typography2.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:typography2.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:typography2.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:typography2.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}})),createGlobal=(0,import_memoizerific.default)(1)(({color:color2,background:background2,typography:typography2})=>{let resetStyles=createReset({typography:typography2});return{...resetStyles,body:{...resetStyles.body,color:color2.defaultText,background:background2.app,overflow:"hidden"},hr:{...resetStyles.hr,borderTop:`1px solid ${color2.border}`}}}),easing={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},rotate360=keyframes`
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
`,glow=keyframes`
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: .4; }
|
|
`,float=keyframes`
|
|
0% { transform: translateY(1px); }
|
|
25% { transform: translateY(0px); }
|
|
50% { transform: translateY(-3px); }
|
|
100% { transform: translateY(1px); }
|
|
`,jiggle=keyframes`
|
|
0%, 100% { transform:translate3d(0,0,0); }
|
|
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
`,inlineGlow=css`
|
|
animation: ${glow} 1.5s ease-in-out infinite;
|
|
color: transparent;
|
|
cursor: progress;
|
|
`,hoverable=css`
|
|
transition: all 150ms ease-out;
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
&:hover {
|
|
transform: translate3d(0, -2px, 0);
|
|
}
|
|
|
|
&:active {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
`,animation={rotate360,glow,float,jiggle,inlineGlow,hoverable},chromeDark={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},chromeLight={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},convertColors=colors=>Object.entries(colors).reduce((acc,[k,v])=>({...acc,[k]:mkColor(v)}),{}),create2=({colors,mono})=>{let colorsObjs=convertColors(colors);return{token:{fontFamily:mono,WebkitFontSmoothing:"antialiased","&.tag":colorsObjs.red3,"&.comment":{...colorsObjs.green1,fontStyle:"italic"},"&.prolog":{...colorsObjs.green1,fontStyle:"italic"},"&.doctype":{...colorsObjs.green1,fontStyle:"italic"},"&.cdata":{...colorsObjs.green1,fontStyle:"italic"},"&.string":colorsObjs.red1,"&.url":colorsObjs.cyan1,"&.symbol":colorsObjs.cyan1,"&.number":colorsObjs.cyan1,"&.boolean":colorsObjs.cyan1,"&.variable":colorsObjs.cyan1,"&.constant":colorsObjs.cyan1,"&.inserted":colorsObjs.cyan1,"&.atrule":colorsObjs.blue1,"&.keyword":colorsObjs.blue1,"&.attr-value":colorsObjs.blue1,"&.punctuation":colorsObjs.gray1,"&.operator":colorsObjs.gray1,"&.function":colorsObjs.gray1,"&.deleted":colorsObjs.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":colorsObjs.cyan2,"&.selector":colorsObjs.red3,"&.attr-name":colorsObjs.red4,"&.property":colorsObjs.red4,"&.regex":colorsObjs.red4,"&.entity":colorsObjs.red4,"&.directive.tag .tag":{background:"#ffff00",...colorsObjs.gray1}},"language-json .token.boolean":colorsObjs.blue1,"language-json .token.number":colorsObjs.blue1,"language-json .token.property":colorsObjs.cyan2,namespace:{opacity:.7}}},lightSyntaxColors={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},darkSyntaxColors={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},createColors=vars=>({primary:vars.colorPrimary,secondary:vars.colorSecondary,tertiary:color.tertiary,ancillary:color.ancillary,orange:color.orange,gold:color.gold,green:color.green,seafoam:color.seafoam,purple:color.purple,ultraviolet:color.ultraviolet,lightest:color.lightest,lighter:color.lighter,light:color.light,mediumlight:color.mediumlight,medium:color.medium,mediumdark:color.mediumdark,dark:color.dark,darker:color.darker,darkest:color.darkest,border:color.border,positive:color.positive,negative:color.negative,warning:color.warning,critical:color.critical,defaultText:vars.textColor||color.darkest,inverseText:vars.textInverseColor||color.lightest,positiveText:color.positiveText,negativeText:color.negativeText,warningText:color.warningText}),convert=(inherit=themes[getPreferredColorScheme()])=>{let{base,colorPrimary,colorSecondary,appBg,appContentBg,appPreviewBg,appBorderColor,appBorderRadius,fontBase,fontCode,textColor,textInverseColor,barTextColor,barHoverColor,barSelectedColor,barBg,buttonBg,buttonBorder,booleanBg,booleanSelectedBg,inputBg,inputBorder,inputTextColor,inputBorderRadius,brandTitle,brandUrl,brandImage,brandTarget,gridCellSize,...rest}=inherit;return{...rest,base,color:createColors(inherit),background:{app:appBg,bar:barBg,content:appContentBg,preview:appPreviewBg,gridCellSize:gridCellSize||background.gridCellSize,hoverable:background.hoverable,positive:background.positive,negative:background.negative,warning:background.warning,critical:background.critical},typography:{fonts:{base:fontBase,mono:fontCode},weight:typography.weight,size:typography.size},animation,easing,input:{background:inputBg,border:inputBorder,borderRadius:inputBorderRadius,color:inputTextColor},button:{background:buttonBg||inputBg,border:buttonBorder||inputBorder},boolean:{background:booleanBg||inputBorder,selectedBackground:booleanSelectedBg||inputBg},layoutMargin:10,appBorderColor,appBorderRadius,barTextColor,barHoverColor:barHoverColor||colorSecondary,barSelectedColor:barSelectedColor||colorSecondary,barBg,brand:{title:brandTitle,url:brandUrl,image:brandImage||(brandTitle?null:void 0),target:brandTarget},code:create2({colors:base==="light"?lightSyntaxColors:darkSyntaxColors,mono:fontCode}),addonActionsTheme:{...base==="light"?chromeLight:chromeDark,BASE_FONT_FAMILY:fontCode,BASE_FONT_SIZE:typography.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:textColor,ARROW_COLOR:curriedOpacify$1(.2,appBorderColor),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:fontCode,TREENODE_FONT_SIZE:typography.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},isEmpty=o=>Object.keys(o).length===0,isObject=o=>o!=null&&typeof o=="object",hasOwnProperty=(o,...args)=>Object.prototype.hasOwnProperty.call(o,...args),makeObjectWithoutPrototype=()=>Object.create(null),deletedDiff=(lhs,rhs)=>lhs===rhs||!isObject(lhs)||!isObject(rhs)?{}:Object.keys(lhs).reduce((acc,key)=>{if(hasOwnProperty(rhs,key)){let difference=deletedDiff(lhs[key],rhs[key]);return isObject(difference)&&isEmpty(difference)||(acc[key]=difference),acc}return acc[key]=void 0,acc},makeObjectWithoutPrototype()),deleted_default=deletedDiff;function dedent(templ){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var strings=Array.from(typeof templ=="string"?[templ]:templ);strings[strings.length-1]=strings[strings.length-1].replace(/\r?\n([\t ]*)$/,"");var indentLengths=strings.reduce(function(arr,str){var matches=str.match(/\n([\t ]+|(?!\s).)/g);return matches?arr.concat(matches.map(function(match2){var _a,_b;return(_b=(_a=match2.match(/[\t ]/g))===null||_a===void 0?void 0:_a.length)!==null&&_b!==void 0?_b:0})):arr},[]);if(indentLengths.length){var pattern_1=new RegExp(`
|
|
[ ]{`+Math.min.apply(Math,indentLengths)+"}","g");strings=strings.map(function(str){return str.replace(pattern_1,`
|
|
`)})}strings[0]=strings[0].replace(/^\r?\n/,"");var string=strings[0];return values.forEach(function(value,i){var endentations=string.match(/(?:^|\n)( *)$/),endentation=endentations?endentations[1]:"",indentedValue=value;typeof value=="string"&&value.includes(`
|
|
`)&&(indentedValue=String(value).split(`
|
|
`).map(function(str,i2){return i2===0?str:""+endentation+str}).join(`
|
|
`)),string+=indentedValue+strings[i+1]}),string}var ensure=input=>{if(!input)return convert(light_default);let missing=deleted_default(light_default,input);return Object.keys(missing).length&&logger.warn(dedent`
|
|
Your theme is missing properties, you should update your theme!
|
|
|
|
theme-data missing:
|
|
`,missing),convert(input)},ignoreSsrWarning="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends2.apply(this,arguments)}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}export{scope,require_react,require_react_dom,logger,once,deprecate,pretty,dist_exports,color,typography,lightenColor,create,isPropValid,useTheme,ThemeProvider,withTheme,Global,keyframes,newStyled,createGlobal,ensure,ignoreSsrWarning,dist_exports2,_extends2 as _extends,_objectWithoutPropertiesLoose};
|