didWarnStateUpdateForUnmountedComponent[warningKey]||(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);
if(!('object'==typeofpartialState||'function'==typeofpartialState||null==partialState))throwError("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
if('number'==typeoftype.tag&&error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),'function'==typeoftype)returntype.displayName||type.name||null;
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);
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));
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));
iteratorFn===iterableChildren.entries&&(didWarnAboutMaps||warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),didWarnAboutMaps=!0);
throwError("Objects are not valid as a React child (found: "+('[object Object]'===childrenString?'object with keys {'+Object.keys(children).join(', ')+'}':childrenString)+"). If you meant to render a collection of children, use an array instead.");
void0===defaultExport&&error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",moduleObject),payload._status=1,payload._result=defaultExport;
if(!(null!==dispatcher))throwError("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
element&&element._owner&&element._owner!==ReactCurrentOwner.current&&(childOwner=" It was passed a child from "+getComponentName(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);
varerr=Error((componentName||'React class')+': '+location+' type `'+typeSpecName+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeoftypeSpecs[typeSpecName]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
!error$1||error$1instanceofError||(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,typeoferror$1),setCurrentlyValidatingElement(null)),error$1instanceofError&&!(error$1.messageinloggedTypeFailures)&&(loggedTypeFailures[error$1.message]=!0,setCurrentlyValidatingElement(element),error('Failed %s type: %s',location,error$1.message),setCurrentlyValidatingElement(null));
}elsevoid0===type.PropTypes||propTypesMisspellWarningShown||(propTypesMisspellWarningShown=!0,error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?',getComponentName(type)||'Unknown'));
'function'!=typeoftype.getDefaultProps||type.getDefaultProps.isReactClassApproved||error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
(void0===type||'object'==typeoftype&&null!==type&&0===Object.keys(type).length)&&(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.");
sourceInfo?info+=sourceInfo:info+=getDeclarationErrorAddendum(),null===type?typeString='null':Array.isArray(type)?typeString='array':void0!==type&&type.$$typeof===REACT_ELEMENT_TYPE?(typeString="<"+(getComponentName(type.type)||'Unknown')+" />",info=' Did you accidentally export a JSX literal instead of a component?'):typeString=typeoftype,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);
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;
}
}
null!==fragment.ref&&(setCurrentlyValidatingElement$1(fragment),error('Invalid attribute `ref` supplied to `React.Fragment`.'),setCurrentlyValidatingElement$1(null));
void0===calculateChangedBits?calculateChangedBits=null:null!==calculateChangedBits&&'function'!=typeofcalculateChangedBits&&error("createContext: Expected the optional second argument to be a function. Instead received: %s",calculateChangedBits);
returnhasWarnedAboutUsingConsumerProvider||(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(){
returncontext._currentValue;
},
set:function(_currentValue){
context._currentValue=_currentValue;
}
},
_currentValue2:{
get:function(){
returncontext._currentValue2;
},
set:function(_currentValue2){
context._currentValue2=_currentValue2;
}
},
_threadCount:{
get:function(){
returncontext._threadCount;
},
set:function(_threadCount){
context._threadCount=_threadCount;
}
},
Consumer:{
get:function(){
returnhasWarnedAboutUsingNestedContextConsumers||(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(){
returncontext.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);
returnvalidatedFactory.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(){
returnwarn("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,'type',{
null!=render&&render.$$typeof===REACT_MEMO_TYPE?error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):'function'!=typeofrender?error('forwardRef requires a render function but was given %s.',null===render?'null':typeofrender):0!==render.length&&2!==render.length&&error('forwardRef render functions accept exactly two parameters: props and ref. %s',1===render.length?'Did you forget to use the ref parameter?':'Any additional parameter will be undefined.'),null!=render&&(null!=render.defaultProps||null!=render.propTypes)&&error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
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(){
returnpropTypes;
},
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
});
}
}
}),lazyType;
},exports.memo=function(type,compare){
isValidElementType(type)||error("memo: The first argument must be a component. Instead received: %s",null===type?'null':typeoftype);
if(void0!==unstable_observedBits&&error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",unstable_observedBits,'number'==typeofunstable_observedBits&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":''),void0!==Context._context){
varrealContext=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?");