Comparing version 0.0.0-11565a207 to 0.0.0-235a6c4af
{ | ||
"branch": "pull/14773", | ||
"buildNumber": "13390", | ||
"checksum": "0a9ba5d", | ||
"commit": "11565a207", | ||
"branch": "master", | ||
"buildNumber": "97459", | ||
"checksum": "57a4b58", | ||
"commit": "235a6c4af", | ||
"environment": "ci", | ||
"reactVersion": "16.8.0-canary-11565a207" | ||
"reactVersion": "16.13.0-235a6c4af" | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-11565a207 | ||
/** @license React v0.0.0-235a6c4af | ||
* react.development.js | ||
@@ -19,12 +19,9 @@ * | ||
var _assign = require('object-assign'); | ||
var checkPropTypes = require('prop-types/checkPropTypes'); | ||
// TODO: this is special because it gets imported during build. | ||
var ReactVersion = '16.13.0-235a6c4af'; | ||
var ReactVersion = '16.8.0-canary-11565a207'; | ||
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol | ||
// nor polyfill, then a plain number is used for performance. | ||
var hasSymbol = typeof Symbol === 'function' && Symbol.for; | ||
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | ||
@@ -36,13 +33,15 @@ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; | ||
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; | ||
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; | ||
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | ||
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; | ||
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; | ||
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; | ||
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; | ||
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; | ||
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; | ||
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; | ||
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; | ||
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; | ||
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; | ||
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; | ||
var FAUX_ITERATOR_SYMBOL = '@@iterator'; | ||
function getIteratorFn(maybeIterable) { | ||
@@ -52,6 +51,9 @@ if (maybeIterable === null || typeof maybeIterable !== 'object') { | ||
} | ||
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; | ||
if (typeof maybeIterator === 'function') { | ||
return maybeIterator; | ||
} | ||
return null; | ||
@@ -61,134 +63,267 @@ } | ||
/** | ||
* Use invariant() to assert state which your program assumes to be true. | ||
* Keeps track of the current dispatcher. | ||
*/ | ||
var ReactCurrentDispatcher = { | ||
/** | ||
* @internal | ||
* @type {ReactComponent} | ||
*/ | ||
current: null | ||
}; | ||
/** | ||
* Keeps track of the current batch's configuration such as how long an update | ||
* should suspend for if it needs to. | ||
*/ | ||
var ReactCurrentBatchConfig = { | ||
suspense: null | ||
}; | ||
/** | ||
* Keeps track of the current owner. | ||
* | ||
* Provide sprintf-style format (only %s is supported) and arguments | ||
* to provide information about what broke and what you were | ||
* expecting. | ||
* | ||
* The invariant message will be stripped in production, but the invariant | ||
* will remain to ensure logic does not differ in production. | ||
* The current owner is the component who should own any components that are | ||
* currently being constructed. | ||
*/ | ||
var ReactCurrentOwner = { | ||
/** | ||
* @internal | ||
* @type {ReactComponent} | ||
*/ | ||
current: null | ||
}; | ||
var validateFormat = function () {}; | ||
var BEFORE_SLASH_RE = /^(.*)[\\\/]/; | ||
function describeComponentFrame (name, source, ownerName) { | ||
var sourceInfo = ''; | ||
{ | ||
validateFormat = function (format) { | ||
if (format === undefined) { | ||
throw new Error('invariant requires an error message argument'); | ||
} | ||
}; | ||
} | ||
if (source) { | ||
var path = source.fileName; | ||
var fileName = path.replace(BEFORE_SLASH_RE, ''); | ||
function invariant(condition, format, a, b, c, d, e, f) { | ||
validateFormat(format); | ||
{ | ||
// In DEV, include code for a common special case: | ||
// prefer "folder/index.js" instead of just "index.js". | ||
if (/^index\./.test(fileName)) { | ||
var match = path.match(BEFORE_SLASH_RE); | ||
if (!condition) { | ||
var error = void 0; | ||
if (format === undefined) { | ||
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); | ||
} else { | ||
var args = [a, b, c, d, e, f]; | ||
var argIndex = 0; | ||
error = new Error(format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
})); | ||
error.name = 'Invariant Violation'; | ||
if (match) { | ||
var pathBeforeSlash = match[1]; | ||
if (pathBeforeSlash) { | ||
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); | ||
fileName = folderName + '/' + fileName; | ||
} | ||
} | ||
} | ||
} | ||
error.framesToPop = 1; // we don't care about invariant's own frame | ||
throw error; | ||
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; | ||
} else if (ownerName) { | ||
sourceInfo = ' (created by ' + ownerName + ')'; | ||
} | ||
return '\n in ' + (name || 'Unknown') + sourceInfo; | ||
} | ||
// Relying on the `invariant()` implementation lets us | ||
// preserve the format and params in the www builds. | ||
// TODO: Move this to "react" once we can import from externals. | ||
var Resolved = 1; | ||
/** | ||
* Forked from fbjs/warning: | ||
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js | ||
* | ||
* Only change is we use console.warn instead of console.error, | ||
* and do nothing when 'console' is not supported. | ||
* This really simplifies the code. | ||
* --- | ||
* Similar to invariant but only logs a warning if the condition is not met. | ||
* This can be used to log issues in development environments in critical | ||
* paths. Removing the logging code for production environments will keep the | ||
* same logic and follow the same code paths. | ||
*/ | ||
function refineResolvedLazyComponent(lazyComponent) { | ||
return lazyComponent._status === Resolved ? lazyComponent._result : null; | ||
} | ||
var lowPriorityWarning = function () {}; | ||
function getWrappedName(outerType, innerType, wrapperName) { | ||
var functionName = innerType.displayName || innerType.name || ''; | ||
return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); | ||
} | ||
{ | ||
var printWarning = function (format) { | ||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
function getContextName(type) { | ||
return type.displayName || 'Context'; | ||
} | ||
function getComponentName(type) { | ||
if (type == null) { | ||
// Host root, text node or just invalid type. | ||
return null; | ||
} | ||
{ | ||
if (typeof type.tag === 'number') { | ||
error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); | ||
} | ||
} | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
if (typeof console !== 'undefined') { | ||
console.warn(message); | ||
if (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: | ||
return getComponentName(type.type); | ||
case REACT_BLOCK_TYPE: | ||
return getComponentName(type.render); | ||
case REACT_LAZY_TYPE: | ||
{ | ||
var thenable = type; | ||
var resolvedThenable = refineResolvedLazyComponent(thenable); | ||
if (resolvedThenable) { | ||
return getComponentName(resolvedThenable); | ||
} | ||
break; | ||
} | ||
} | ||
try { | ||
// --- Welcome to debugging React --- | ||
// This error was thrown as a convenience so that you can use this stack | ||
// to find the callsite that caused this warning to fire. | ||
throw new Error(message); | ||
} catch (x) {} | ||
}; | ||
} | ||
lowPriorityWarning = function (condition, format) { | ||
if (format === undefined) { | ||
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
return null; | ||
} | ||
var ReactDebugCurrentFrame = {}; | ||
var currentlyValidatingElement = null; | ||
function setCurrentlyValidatingElement(element) { | ||
{ | ||
currentlyValidatingElement = element; | ||
} | ||
} | ||
{ | ||
// Stack implementation injected by the current renderer. | ||
ReactDebugCurrentFrame.getCurrentStack = null; | ||
ReactDebugCurrentFrame.getStackAddendum = function () { | ||
var stack = ''; // Add an extra top frame while an element is being validated | ||
if (currentlyValidatingElement) { | ||
var name = getComponentName(currentlyValidatingElement.type); | ||
var owner = currentlyValidatingElement._owner; | ||
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); | ||
} // Delegate to the injected renderer-specific implementation | ||
var impl = ReactDebugCurrentFrame.getCurrentStack; | ||
if (impl) { | ||
stack += impl() || ''; | ||
} | ||
if (!condition) { | ||
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { | ||
args[_key2 - 2] = arguments[_key2]; | ||
} | ||
printWarning.apply(undefined, [format].concat(args)); | ||
} | ||
return stack; | ||
}; | ||
} | ||
var lowPriorityWarning$1 = lowPriorityWarning; | ||
/** | ||
* Similar to invariant but only logs a warning if the condition is not met. | ||
* This can be used to log issues in development environments in critical | ||
* paths. Removing the logging code for production environments will keep the | ||
* same logic and follow the same code paths. | ||
* Used by act() to track whether you're inside an act() scope. | ||
*/ | ||
var IsSomeRendererActing = { | ||
current: false | ||
}; | ||
var warningWithoutStack = function () {}; | ||
var ReactSharedInternals = { | ||
ReactCurrentDispatcher: ReactCurrentDispatcher, | ||
ReactCurrentBatchConfig: ReactCurrentBatchConfig, | ||
ReactCurrentOwner: ReactCurrentOwner, | ||
IsSomeRendererActing: IsSomeRendererActing, | ||
// Used by renderers to avoid bundling object-assign twice in UMD bundles: | ||
assign: _assign | ||
}; | ||
{ | ||
warningWithoutStack = function (condition, format) { | ||
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
args[_key - 2] = arguments[_key]; | ||
_assign(ReactSharedInternals, { | ||
// These should not be included in production. | ||
ReactDebugCurrentFrame: ReactDebugCurrentFrame, | ||
// Shim for React DOM 16.0.0 which still destructured (but not used) this. | ||
// TODO: remove in React 17.0. | ||
ReactComponentTreeHook: {} | ||
}); | ||
} | ||
// by calls to these methods by a Babel plugin. | ||
// | ||
// In PROD (or in packages without access to React internals), | ||
// they are left as they are instead. | ||
function warn(format) { | ||
{ | ||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
args[_key - 1] = arguments[_key]; | ||
} | ||
if (format === undefined) { | ||
throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
printWarning('warn', format, args); | ||
} | ||
} | ||
function error(format) { | ||
{ | ||
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { | ||
args[_key2 - 1] = arguments[_key2]; | ||
} | ||
if (args.length > 8) { | ||
// Check before the condition to catch violations early. | ||
throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); | ||
printWarning('error', format, args); | ||
} | ||
} | ||
function printWarning(level, format, args) { | ||
// When changing this logic, you might want to also | ||
// update consoleWithStackDev.www.js as well. | ||
{ | ||
var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; | ||
if (!hasExistingStack) { | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var stack = ReactDebugCurrentFrame.getStackAddendum(); | ||
if (stack !== '') { | ||
format += '%s'; | ||
args = args.concat([stack]); | ||
} | ||
} | ||
if (condition) { | ||
return; | ||
} | ||
if (typeof console !== 'undefined') { | ||
var argsWithFormat = args.map(function (item) { | ||
return '' + item; | ||
}); | ||
argsWithFormat.unshift('Warning: ' + format); | ||
// We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
Function.prototype.apply.call(console.error, console, argsWithFormat); | ||
} | ||
var argsWithFormat = args.map(function (item) { | ||
return '' + item; | ||
}); // Careful: RN currently depends on this prefix | ||
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it | ||
// breaks IE9: https://github.com/facebook/react/issues/13610 | ||
// eslint-disable-next-line react-internal/no-production-logging | ||
Function.prototype.apply.call(console[level], console, argsWithFormat); | ||
try { | ||
@@ -204,7 +339,5 @@ // --- Welcome to debugging React --- | ||
} catch (x) {} | ||
}; | ||
} | ||
} | ||
var warningWithoutStack$1 = warningWithoutStack; | ||
var didWarnStateUpdateForUnmountedComponent = {}; | ||
@@ -216,14 +349,18 @@ | ||
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass'; | ||
var warningKey = componentName + '.' + callerName; | ||
var warningKey = componentName + "." + callerName; | ||
if (didWarnStateUpdateForUnmountedComponent[warningKey]) { | ||
return; | ||
} | ||
warningWithoutStack$1(false, "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); | ||
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] = true; | ||
} | ||
} | ||
/** | ||
* This is the abstract API for an update queue. | ||
*/ | ||
var ReactNoopUpdateQueue = { | ||
@@ -295,16 +432,18 @@ /** | ||
var emptyObject = {}; | ||
{ | ||
Object.freeze(emptyObject); | ||
} | ||
/** | ||
* Base class helpers for the updating state of a component. | ||
*/ | ||
function Component(props, context, updater) { | ||
this.props = props; | ||
this.context = context; | ||
// If a component has string refs, we will assign a different object later. | ||
this.refs = emptyObject; | ||
// We initialize the default updater but the real one gets injected by the | ||
this.context = context; // If a component has string refs, we will assign a different object later. | ||
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the | ||
// renderer. | ||
this.updater = updater || ReactNoopUpdateQueue; | ||
@@ -314,3 +453,2 @@ } | ||
Component.prototype.isReactComponent = {}; | ||
/** | ||
@@ -341,7 +479,12 @@ * Sets a subset of the state. Always use this to mutate | ||
*/ | ||
Component.prototype.setState = function (partialState, callback) { | ||
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0; | ||
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) { | ||
{ | ||
throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); | ||
} | ||
} | ||
this.updater.enqueueSetState(this, partialState, callback, 'setState'); | ||
}; | ||
/** | ||
@@ -361,6 +504,7 @@ * Forces an update. This should only be invoked when it is known with | ||
*/ | ||
Component.prototype.forceUpdate = function (callback) { | ||
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate'); | ||
}; | ||
/** | ||
@@ -371,2 +515,4 @@ * Deprecated APIs. These APIs used to exist on classic React classes but since | ||
*/ | ||
{ | ||
@@ -377,6 +523,8 @@ var deprecatedAPIs = { | ||
}; | ||
var defineDeprecationWarning = function (methodName, info) { | ||
Object.defineProperty(Component.prototype, methodName, { | ||
get: function () { | ||
lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); | ||
warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); | ||
return undefined; | ||
@@ -386,2 +534,3 @@ } | ||
}; | ||
for (var fnName in deprecatedAPIs) { | ||
@@ -395,11 +544,12 @@ if (deprecatedAPIs.hasOwnProperty(fnName)) { | ||
function ComponentDummy() {} | ||
ComponentDummy.prototype = Component.prototype; | ||
/** | ||
* Convenience component with default shallow equality check for sCU. | ||
*/ | ||
function PureComponent(props, context, updater) { | ||
this.props = props; | ||
this.context = context; | ||
// If a component has string refs, we will assign a different object later. | ||
this.context = context; // If a component has string refs, we will assign a different object later. | ||
this.refs = emptyObject; | ||
@@ -410,5 +560,6 @@ this.updater = updater || ReactNoopUpdateQueue; | ||
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); | ||
pureComponentPrototype.constructor = PureComponent; | ||
// Avoid an extra prototype jump for these methods. | ||
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods. | ||
_assign(pureComponentPrototype, Component.prototype); | ||
pureComponentPrototype.isPureReactComponent = true; | ||
@@ -421,207 +572,11 @@ | ||
}; | ||
{ | ||
Object.seal(refObject); | ||
} | ||
return refObject; | ||
} | ||
/** | ||
* Keeps track of the current dispatcher. | ||
*/ | ||
var ReactCurrentDispatcher = { | ||
/** | ||
* @internal | ||
* @type {ReactComponent} | ||
*/ | ||
current: null | ||
}; | ||
/** | ||
* Keeps track of the current owner. | ||
* | ||
* The current owner is the component who should own any components that are | ||
* currently being constructed. | ||
*/ | ||
var ReactCurrentOwner = { | ||
/** | ||
* @internal | ||
* @type {ReactComponent} | ||
*/ | ||
current: null | ||
}; | ||
var BEFORE_SLASH_RE = /^(.*)[\\\/]/; | ||
var describeComponentFrame = function (name, source, ownerName) { | ||
var sourceInfo = ''; | ||
if (source) { | ||
var path = source.fileName; | ||
var fileName = path.replace(BEFORE_SLASH_RE, ''); | ||
{ | ||
// In DEV, include code for a common special case: | ||
// prefer "folder/index.js" instead of just "index.js". | ||
if (/^index\./.test(fileName)) { | ||
var match = path.match(BEFORE_SLASH_RE); | ||
if (match) { | ||
var pathBeforeSlash = match[1]; | ||
if (pathBeforeSlash) { | ||
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); | ||
fileName = folderName + '/' + fileName; | ||
} | ||
} | ||
} | ||
} | ||
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; | ||
} else if (ownerName) { | ||
sourceInfo = ' (created by ' + ownerName + ')'; | ||
} | ||
return '\n in ' + (name || 'Unknown') + sourceInfo; | ||
}; | ||
var Resolved = 1; | ||
function refineResolvedLazyComponent(lazyComponent) { | ||
return lazyComponent._status === Resolved ? lazyComponent._result : null; | ||
} | ||
function getWrappedName(outerType, innerType, wrapperName) { | ||
var functionName = innerType.displayName || innerType.name || ''; | ||
return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName); | ||
} | ||
function getComponentName(type) { | ||
if (type == null) { | ||
// Host root, text node or just invalid type. | ||
return null; | ||
} | ||
{ | ||
if (typeof type.tag === 'number') { | ||
warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); | ||
} | ||
} | ||
if (typeof type === 'function') { | ||
return type.displayName || type.name || null; | ||
} | ||
if (typeof type === 'string') { | ||
return type; | ||
} | ||
switch (type) { | ||
case REACT_CONCURRENT_MODE_TYPE: | ||
return 'ConcurrentMode'; | ||
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'; | ||
} | ||
if (typeof type === 'object') { | ||
switch (type.$$typeof) { | ||
case REACT_CONTEXT_TYPE: | ||
return 'Context.Consumer'; | ||
case REACT_PROVIDER_TYPE: | ||
return 'Context.Provider'; | ||
case REACT_FORWARD_REF_TYPE: | ||
return getWrappedName(type, type.render, 'ForwardRef'); | ||
case REACT_MEMO_TYPE: | ||
return getComponentName(type.type); | ||
case REACT_LAZY_TYPE: | ||
{ | ||
var thenable = type; | ||
var resolvedThenable = refineResolvedLazyComponent(thenable); | ||
if (resolvedThenable) { | ||
return getComponentName(resolvedThenable); | ||
} | ||
} | ||
} | ||
} | ||
return null; | ||
} | ||
var ReactDebugCurrentFrame = {}; | ||
var currentlyValidatingElement = null; | ||
function setCurrentlyValidatingElement(element) { | ||
{ | ||
currentlyValidatingElement = element; | ||
} | ||
} | ||
{ | ||
// Stack implementation injected by the current renderer. | ||
ReactDebugCurrentFrame.getCurrentStack = null; | ||
ReactDebugCurrentFrame.getStackAddendum = function () { | ||
var stack = ''; | ||
// Add an extra top frame while an element is being validated | ||
if (currentlyValidatingElement) { | ||
var name = getComponentName(currentlyValidatingElement.type); | ||
var owner = currentlyValidatingElement._owner; | ||
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); | ||
} | ||
// Delegate to the injected renderer-specific implementation | ||
var impl = ReactDebugCurrentFrame.getCurrentStack; | ||
if (impl) { | ||
stack += impl() || ''; | ||
} | ||
return stack; | ||
}; | ||
} | ||
var ReactSharedInternals = { | ||
ReactCurrentDispatcher: ReactCurrentDispatcher, | ||
ReactCurrentOwner: ReactCurrentOwner, | ||
// Used by renderers to avoid bundling object-assign twice in UMD bundles: | ||
assign: _assign | ||
}; | ||
{ | ||
_assign(ReactSharedInternals, { | ||
// These should not be included in production. | ||
ReactDebugCurrentFrame: ReactDebugCurrentFrame, | ||
// Shim for React DOM 16.0.0 which still destructured (but not used) this. | ||
// TODO: remove in React 17.0. | ||
ReactComponentTreeHook: {} | ||
}); | ||
} | ||
/** | ||
* Similar to invariant but only logs a warning if the condition is not met. | ||
* This can be used to log issues in development environments in critical | ||
* paths. Removing the logging code for production environments will keep the | ||
* same logic and follow the same code paths. | ||
*/ | ||
var warning = warningWithoutStack$1; | ||
{ | ||
warning = function (condition, format) { | ||
if (condition) { | ||
return; | ||
} | ||
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; | ||
var stack = ReactDebugCurrentFrame.getStackAddendum(); | ||
// eslint-disable-next-line react-internal/warning-and-invariant-args | ||
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { | ||
args[_key - 2] = arguments[_key]; | ||
} | ||
warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack])); | ||
}; | ||
} | ||
var warning$1 = warning; | ||
var hasOwnProperty = Object.prototype.hasOwnProperty; | ||
var RESERVED_PROPS = { | ||
@@ -633,5 +588,7 @@ key: true, | ||
}; | ||
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; | ||
var specialPropKeyWarningShown = void 0; | ||
var specialPropRefWarningShown = void 0; | ||
{ | ||
didWarnAboutStringRefs = {}; | ||
} | ||
@@ -642,2 +599,3 @@ function hasValidRef(config) { | ||
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; | ||
if (getter && getter.isReactWarning) { | ||
@@ -648,2 +606,3 @@ return false; | ||
} | ||
return config.ref !== undefined; | ||
@@ -656,2 +615,3 @@ } | ||
var getter = Object.getOwnPropertyDescriptor(config, 'key').get; | ||
if (getter && getter.isReactWarning) { | ||
@@ -662,2 +622,3 @@ return false; | ||
} | ||
return config.key !== undefined; | ||
@@ -668,7 +629,11 @@ } | ||
var warnAboutAccessingKey = function () { | ||
if (!specialPropKeyWarningShown) { | ||
specialPropKeyWarningShown = true; | ||
warningWithoutStack$1(false, '%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://fb.me/react-special-props)', displayName); | ||
{ | ||
if (!specialPropKeyWarningShown) { | ||
specialPropKeyWarningShown = true; | ||
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://fb.me/react-special-props)', displayName); | ||
} | ||
} | ||
}; | ||
warnAboutAccessingKey.isReactWarning = true; | ||
@@ -683,7 +648,11 @@ Object.defineProperty(props, 'key', { | ||
var warnAboutAccessingRef = function () { | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
warningWithoutStack$1(false, '%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://fb.me/react-special-props)', displayName); | ||
{ | ||
if (!specialPropRefWarningShown) { | ||
specialPropRefWarningShown = true; | ||
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://fb.me/react-special-props)', displayName); | ||
} | ||
} | ||
}; | ||
warnAboutAccessingRef.isReactWarning = true; | ||
@@ -696,11 +665,26 @@ Object.defineProperty(props, 'ref', { | ||
function warnIfStringRefCannotBeAutoConverted(config) { | ||
{ | ||
if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { | ||
var componentName = getComponentName(ReactCurrentOwner.current.type); | ||
if (!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://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref); | ||
didWarnAboutStringRefs[componentName] = true; | ||
} | ||
} | ||
} | ||
} | ||
/** | ||
* Factory method to create a new React element. This no longer adheres to | ||
* the class pattern, so do not use new to call it. Also, no instanceof check | ||
* will work. Instead test $$typeof field against Symbol.for('react.element') to check | ||
* the class pattern, so do not use new to call it. Also, instanceof check | ||
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check | ||
* if something is a React Element. | ||
* | ||
* @param {*} type | ||
* @param {*} props | ||
* @param {*} key | ||
* @param {string|object} ref | ||
* @param {*} owner | ||
* @param {*} self A *temporary* helper to detect places where `this` is | ||
@@ -713,6 +697,6 @@ * different from the `owner` when React.createElement is called, so that we | ||
* indicating filename, line number, and/or other information. | ||
* @param {*} owner | ||
* @param {*} props | ||
* @internal | ||
*/ | ||
var ReactElement = function (type, key, ref, self, source, owner, props) { | ||
@@ -722,3 +706,2 @@ var element = { | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
// Built-in properties that belong on the element | ||
@@ -729,3 +712,2 @@ type: type, | ||
props: props, | ||
// Record the component responsible for creating this element. | ||
@@ -740,8 +722,7 @@ _owner: owner | ||
// commonly used development environments. | ||
element._store = {}; | ||
// To make comparing ReactElements easier for testing purposes, we make | ||
element._store = {}; // To make comparing ReactElements easier for testing purposes, we make | ||
// the validation flag non-enumerable (where possible, which should | ||
// include every environment we run tests in), so the test framework | ||
// ignores it. | ||
Object.defineProperty(element._store, 'validated', { | ||
@@ -752,4 +733,4 @@ configurable: false, | ||
value: false | ||
}); | ||
// self and source are DEV only properties. | ||
}); // self and source are DEV only properties. | ||
Object.defineProperty(element, '_self', { | ||
@@ -760,5 +741,5 @@ configurable: false, | ||
value: self | ||
}); | ||
// Two elements created in two different places should be considered | ||
}); // Two elements created in two different places should be considered | ||
// equal for testing purposes and therefore we hide it from enumeration. | ||
Object.defineProperty(element, '_source', { | ||
@@ -770,2 +751,3 @@ configurable: false, | ||
}); | ||
if (Object.freeze) { | ||
@@ -779,3 +761,2 @@ Object.freeze(element.props); | ||
}; | ||
/** | ||
@@ -785,8 +766,7 @@ * Create and return a new ReactElement of the given type. | ||
*/ | ||
function createElement(type, config, children) { | ||
var propName = void 0; | ||
var propName; // Reserved names are extracted | ||
// Reserved names are extracted | ||
var props = {}; | ||
var key = null; | ||
@@ -800,3 +780,8 @@ var ref = null; | ||
ref = config.ref; | ||
{ | ||
warnIfStringRefCannotBeAutoConverted(config); | ||
} | ||
} | ||
if (hasValidKey(config)) { | ||
@@ -807,4 +792,4 @@ key = '' + config.key; | ||
self = config.__self === undefined ? null : config.__self; | ||
source = config.__source === undefined ? null : config.__source; | ||
// Remaining properties are added to a new props object | ||
source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object | ||
for (propName in config) { | ||
@@ -815,7 +800,8 @@ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { | ||
} | ||
} | ||
} // Children can be more than one argument, and those are transferred onto | ||
// the newly allocated props object. | ||
// Children can be more than one argument, and those are transferred onto | ||
// the newly allocated props object. | ||
var childrenLength = arguments.length - 2; | ||
if (childrenLength === 1) { | ||
@@ -825,5 +811,7 @@ props.children = children; | ||
var childArray = Array(childrenLength); | ||
for (var i = 0; i < childrenLength; i++) { | ||
childArray[i] = arguments[i + 2]; | ||
} | ||
{ | ||
@@ -834,8 +822,10 @@ if (Object.freeze) { | ||
} | ||
props.children = childArray; | ||
} | ||
} // Resolve default props | ||
// Resolve default props | ||
if (type && type.defaultProps) { | ||
var defaultProps = type.defaultProps; | ||
for (propName in defaultProps) { | ||
@@ -847,8 +837,11 @@ if (props[propName] === undefined) { | ||
} | ||
{ | ||
if (key || ref) { | ||
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; | ||
if (key) { | ||
defineKeyPropWarningGetter(props, displayName); | ||
} | ||
if (ref) { | ||
@@ -859,17 +852,9 @@ defineRefPropWarningGetter(props, displayName); | ||
} | ||
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); | ||
} | ||
/** | ||
* Return a function that produces ReactElements of a given type. | ||
* See https://reactjs.org/docs/react-api.html#createfactory | ||
*/ | ||
function cloneAndReplaceKey(oldElement, newKey) { | ||
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); | ||
return newElement; | ||
} | ||
/** | ||
@@ -879,21 +864,24 @@ * Clone and return a new ReactElement using element as the starting point. | ||
*/ | ||
function cloneElement(element, config, children) { | ||
!!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0; | ||
if (!!(element === null || element === undefined)) { | ||
{ | ||
throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." ); | ||
} | ||
} | ||
var propName = void 0; | ||
var propName; // Original props are copied | ||
// Original props are copied | ||
var props = _assign({}, element.props); | ||
var props = _assign({}, element.props); // Reserved names are extracted | ||
// Reserved names are extracted | ||
var key = element.key; | ||
var ref = element.ref; | ||
// Self is preserved since the owner is preserved. | ||
var self = element._self; | ||
// Source is preserved since cloneElement is unlikely to be targeted by a | ||
var ref = element.ref; // Self is preserved since the owner is preserved. | ||
var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a | ||
// transpiler, and the original source is probably a better indicator of the | ||
// true owner. | ||
var source = element._source; | ||
// Owner will be preserved, unless ref is overridden | ||
var source = element._source; // Owner will be preserved, unless ref is overridden | ||
var owner = element._owner; | ||
@@ -907,11 +895,14 @@ | ||
} | ||
if (hasValidKey(config)) { | ||
key = '' + config.key; | ||
} | ||
} // Remaining properties override existing props | ||
// Remaining properties override existing props | ||
var defaultProps = void 0; | ||
var defaultProps; | ||
if (element.type && element.type.defaultProps) { | ||
defaultProps = element.type.defaultProps; | ||
} | ||
for (propName in config) { | ||
@@ -927,7 +918,8 @@ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { | ||
} | ||
} | ||
} // Children can be more than one argument, and those are transferred onto | ||
// the newly allocated props object. | ||
// Children can be more than one argument, and those are transferred onto | ||
// the newly allocated props object. | ||
var childrenLength = arguments.length - 2; | ||
if (childrenLength === 1) { | ||
@@ -937,5 +929,7 @@ props.children = children; | ||
var childArray = Array(childrenLength); | ||
for (var i = 0; i < childrenLength; i++) { | ||
childArray[i] = arguments[i + 2]; | ||
} | ||
props.children = childArray; | ||
@@ -946,3 +940,2 @@ } | ||
} | ||
/** | ||
@@ -955,2 +948,3 @@ * Verifies the object is a ReactElement. | ||
*/ | ||
function isValidElement(object) { | ||
@@ -962,3 +956,2 @@ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | ||
var SUBSEPARATOR = ':'; | ||
/** | ||
@@ -970,2 +963,3 @@ * Escape and wrap key so it is safe to use as a reactid | ||
*/ | ||
function escape(key) { | ||
@@ -980,6 +974,4 @@ var escapeRegex = /[=:]/g; | ||
}); | ||
return '$' + escapedString; | ||
} | ||
/** | ||
@@ -990,5 +982,6 @@ * TODO: Test that a single child and an array with one item have the same key | ||
var didWarnAboutMaps = false; | ||
var userProvidedKeyEscapeRegex = /\/+/g; | ||
var userProvidedKeyEscapeRegex = /\/+/g; | ||
function escapeUserProvidedKey(text) { | ||
@@ -1000,2 +993,3 @@ return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/'); | ||
var traverseContextPool = []; | ||
function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { | ||
@@ -1027,2 +1021,3 @@ if (traverseContextPool.length) { | ||
traverseContext.count = 0; | ||
if (traverseContextPool.length < POOL_SIZE) { | ||
@@ -1032,3 +1027,2 @@ traverseContextPool.push(traverseContext); | ||
} | ||
/** | ||
@@ -1042,2 +1036,4 @@ * @param {?*} children Children tree container. | ||
*/ | ||
function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { | ||
@@ -1061,2 +1057,3 @@ var type = typeof children; | ||
break; | ||
case 'object': | ||
@@ -1068,2 +1065,3 @@ switch (children.$$typeof) { | ||
} | ||
} | ||
@@ -1073,4 +1071,3 @@ } | ||
if (invokeCallback) { | ||
callback(traverseContext, children, | ||
// If it's the only child, treat the name as if it was wrapped in an array | ||
callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array | ||
// so that it's consistent if the number of children grows. | ||
@@ -1081,5 +1078,6 @@ nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); | ||
var child = void 0; | ||
var nextName = void 0; | ||
var child; | ||
var nextName; | ||
var subtreeCount = 0; // Count of children found in the current subtree. | ||
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; | ||
@@ -1095,7 +1093,12 @@ | ||
var iteratorFn = getIteratorFn(children); | ||
if (typeof iteratorFn === 'function') { | ||
{ | ||
// Warn about using Maps as children | ||
if (iteratorFn === children.entries) { | ||
!didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0; | ||
if (!didWarnAboutMaps) { | ||
warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.'); | ||
} | ||
didWarnAboutMaps = true; | ||
@@ -1106,4 +1109,5 @@ } | ||
var iterator = iteratorFn.call(children); | ||
var step = void 0; | ||
var step; | ||
var ii = 0; | ||
while (!(step = iterator.next()).done) { | ||
@@ -1116,7 +1120,14 @@ child = step.value; | ||
var addendum = ''; | ||
{ | ||
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum(); | ||
} | ||
var childrenString = '' + children; | ||
invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum); | ||
{ | ||
{ | ||
throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum ); | ||
} | ||
} | ||
} | ||
@@ -1127,3 +1138,2 @@ } | ||
} | ||
/** | ||
@@ -1145,2 +1155,4 @@ * Traverses children that are typically specified as `props.children`, but | ||
*/ | ||
function traverseAllChildren(children, callback, traverseContext) { | ||
@@ -1153,3 +1165,2 @@ if (children == null) { | ||
} | ||
/** | ||
@@ -1162,2 +1173,4 @@ * Generate a key string that identifies a component within a set. | ||
*/ | ||
function getComponentKey(component, index) { | ||
@@ -1169,4 +1182,5 @@ // Do some typechecking here since we call this blindly. We want to ensure | ||
return escape(component.key); | ||
} | ||
// Implicit key determined by the index in the set | ||
} // Implicit key determined by the index in the set | ||
return index.toString(36); | ||
@@ -1178,6 +1192,4 @@ } | ||
context = bookKeeping.context; | ||
func.call(context, child, bookKeeping.count++); | ||
} | ||
/** | ||
@@ -1195,2 +1207,4 @@ * Iterates through children that are typically specified as `props.children`. | ||
*/ | ||
function forEachChildren(children, forEachFunc, forEachContext) { | ||
@@ -1200,2 +1214,3 @@ if (children == null) { | ||
} | ||
var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); | ||
@@ -1211,5 +1226,4 @@ traverseAllChildren(children, forEachSingleChild, traverseContext); | ||
context = bookKeeping.context; | ||
var mappedChild = func.call(context, child, bookKeeping.count++); | ||
var mappedChild = func.call(context, child, bookKeeping.count++); | ||
if (Array.isArray(mappedChild)) { | ||
@@ -1221,7 +1235,7 @@ mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) { | ||
if (isValidElement(mappedChild)) { | ||
mappedChild = cloneAndReplaceKey(mappedChild, | ||
// Keep both the (mapped) and old keys if they differ, just as | ||
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as | ||
// traverseAllChildren used to do for objects as children | ||
keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey); | ||
} | ||
result.push(mappedChild); | ||
@@ -1233,5 +1247,7 @@ } | ||
var escapedPrefix = ''; | ||
if (prefix != null) { | ||
escapedPrefix = escapeUserProvidedKey(prefix) + '/'; | ||
} | ||
var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); | ||
@@ -1241,3 +1257,2 @@ traverseAllChildren(children, mapSingleChildIntoContext, traverseContext); | ||
} | ||
/** | ||
@@ -1256,2 +1271,4 @@ * Maps children that are typically specified as `props.children`. | ||
*/ | ||
function mapChildren(children, func, context) { | ||
@@ -1261,2 +1278,3 @@ if (children == null) { | ||
} | ||
var result = []; | ||
@@ -1266,3 +1284,2 @@ mapIntoWithKeyPrefixInternal(children, result, null, func, context); | ||
} | ||
/** | ||
@@ -1277,2 +1294,4 @@ * Count the number of children that are typically specified as | ||
*/ | ||
function countChildren(children) { | ||
@@ -1283,3 +1302,2 @@ return traverseAllChildren(children, function () { | ||
} | ||
/** | ||
@@ -1291,2 +1309,4 @@ * Flatten a children object (typically specified as `props.children`) and | ||
*/ | ||
function toArray(children) { | ||
@@ -1299,3 +1319,2 @@ var result = []; | ||
} | ||
/** | ||
@@ -1315,4 +1334,11 @@ * Returns the first child in a collection of children and verifies that there | ||
*/ | ||
function onlyChild(children) { | ||
!isValidElement(children) ? invariant(false, 'React.Children.only expected to receive a single React element child.') : void 0; | ||
if (!isValidElement(children)) { | ||
{ | ||
throw Error( "React.Children.only expected to receive a single React element child." ); | ||
} | ||
} | ||
return children; | ||
@@ -1326,3 +1352,5 @@ } | ||
{ | ||
!(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0; | ||
if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') { | ||
error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits); | ||
} | ||
} | ||
@@ -1348,3 +1376,2 @@ } | ||
}; | ||
context.Provider = { | ||
@@ -1354,5 +1381,5 @@ $$typeof: REACT_PROVIDER_TYPE, | ||
}; | ||
var hasWarnedAboutUsingNestedContextConsumers = false; | ||
var hasWarnedAboutUsingConsumerProvider = false; | ||
var hasWarnedAboutDisplayNameOnConsumer = false; | ||
@@ -1367,4 +1394,4 @@ { | ||
_calculateChangedBits: context._calculateChangedBits | ||
}; | ||
// $FlowFixMe: Flow complains about not setting a value, which is intentional here | ||
}; // $FlowFixMe: Flow complains about not setting a value, which is intentional here | ||
Object.defineProperties(Consumer, { | ||
@@ -1375,4 +1402,6 @@ Provider: { | ||
hasWarnedAboutUsingConsumerProvider = true; | ||
warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?'); | ||
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?'); | ||
} | ||
return context.Provider; | ||
@@ -1412,9 +1441,23 @@ }, | ||
hasWarnedAboutUsingNestedContextConsumers = true; | ||
warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?'); | ||
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?'); | ||
} | ||
return context.Consumer; | ||
} | ||
}, | ||
displayName: { | ||
get: function () { | ||
return context.displayName; | ||
}, | ||
set: function () { | ||
if (!hasWarnedAboutDisplayNameOnConsumer) { | ||
warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = 'NamedContext'."); | ||
hasWarnedAboutDisplayNameOnConsumer = true; | ||
} | ||
} | ||
} | ||
}); | ||
// $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty | ||
}); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty | ||
context.Consumer = Consumer; | ||
@@ -1434,6 +1477,5 @@ } | ||
$$typeof: REACT_LAZY_TYPE, | ||
_ctor: ctor, | ||
// React uses these fields to store the result. | ||
_status: -1, | ||
_result: null | ||
_result: ctor | ||
}; | ||
@@ -1443,4 +1485,5 @@ | ||
// In production, this would just set it on the object. | ||
var defaultProps = void 0; | ||
var propTypes = void 0; | ||
var defaultProps; | ||
var propTypes; // $FlowFixMe | ||
Object.defineProperties(lazyType, { | ||
@@ -1453,5 +1496,7 @@ defaultProps: { | ||
set: function (newDefaultProps) { | ||
warning$1(false, '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; | ||
// Match production behavior more closely: | ||
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; // Match production behavior more closely: | ||
// $FlowFixMe | ||
Object.defineProperty(lazyType, 'defaultProps', { | ||
@@ -1468,5 +1513,7 @@ enumerable: true | ||
set: function (newPropTypes) { | ||
warning$1(false, '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; | ||
// Match production behavior more closely: | ||
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; // Match production behavior more closely: | ||
// $FlowFixMe | ||
Object.defineProperty(lazyType, 'propTypes', { | ||
@@ -1486,13 +1533,15 @@ enumerable: true | ||
if (render != null && render.$$typeof === REACT_MEMO_TYPE) { | ||
warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); | ||
error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); | ||
} else if (typeof render !== 'function') { | ||
warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); | ||
error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); | ||
} else { | ||
!( | ||
// Do not warn for 0 arguments because it could be due to usage of the 'arguments' object | ||
render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, '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.') : void 0; | ||
if (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.'); | ||
} | ||
} | ||
if (render != null) { | ||
!(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0; | ||
if (render.defaultProps != null || render.propTypes != null) { | ||
error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?'); | ||
} | ||
} | ||
@@ -1508,5 +1557,4 @@ } | ||
function isValidElementType(type) { | ||
return typeof type === 'string' || typeof type === 'function' || | ||
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | ||
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_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); | ||
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | ||
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); | ||
} | ||
@@ -1517,5 +1565,6 @@ | ||
if (!isValidElementType(type)) { | ||
warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); | ||
error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); | ||
} | ||
} | ||
return { | ||
@@ -1530,3 +1579,9 @@ $$typeof: REACT_MEMO_TYPE, | ||
var dispatcher = ReactCurrentDispatcher.current; | ||
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)') : void 0; | ||
if (!(dispatcher !== null)) { | ||
{ | ||
throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\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://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." ); | ||
} | ||
} | ||
return dispatcher; | ||
@@ -1537,20 +1592,23 @@ } | ||
var dispatcher = resolveDispatcher(); | ||
{ | ||
!(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0; | ||
if (unstable_observedBits !== undefined) { | ||
error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : ''); | ||
} // TODO: add a more generic warning for invalid values. | ||
// TODO: add a more generic warning for invalid values. | ||
if (Context._context !== undefined) { | ||
var realContext = Context._context; | ||
// Don't deduplicate because this legitimately causes bugs | ||
var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs | ||
// and nobody should be using this in existing code. | ||
if (realContext.Consumer === Context) { | ||
warning$1(false, '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?'); | ||
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?'); | ||
} else if (realContext.Provider === Context) { | ||
warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); | ||
error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); | ||
} | ||
} | ||
} | ||
return dispatcher.useContext(Context, unstable_observedBits); | ||
} | ||
function useState(initialState) { | ||
@@ -1560,3 +1618,2 @@ var dispatcher = resolveDispatcher(); | ||
} | ||
function useReducer(reducer, initialArg, init) { | ||
@@ -1566,3 +1623,2 @@ var dispatcher = resolveDispatcher(); | ||
} | ||
function useRef(initialValue) { | ||
@@ -1572,28 +1628,22 @@ var dispatcher = resolveDispatcher(); | ||
} | ||
function useEffect(create, inputs) { | ||
function useEffect(create, deps) { | ||
var dispatcher = resolveDispatcher(); | ||
return dispatcher.useEffect(create, inputs); | ||
return dispatcher.useEffect(create, deps); | ||
} | ||
function useLayoutEffect(create, inputs) { | ||
function useLayoutEffect(create, deps) { | ||
var dispatcher = resolveDispatcher(); | ||
return dispatcher.useLayoutEffect(create, inputs); | ||
return dispatcher.useLayoutEffect(create, deps); | ||
} | ||
function useCallback(callback, inputs) { | ||
function useCallback(callback, deps) { | ||
var dispatcher = resolveDispatcher(); | ||
return dispatcher.useCallback(callback, inputs); | ||
return dispatcher.useCallback(callback, deps); | ||
} | ||
function useMemo(create, inputs) { | ||
function useMemo(create, deps) { | ||
var dispatcher = resolveDispatcher(); | ||
return dispatcher.useMemo(create, inputs); | ||
return dispatcher.useMemo(create, deps); | ||
} | ||
function useImperativeHandle(ref, create, inputs) { | ||
function useImperativeHandle(ref, create, deps) { | ||
var dispatcher = resolveDispatcher(); | ||
return dispatcher.useImperativeHandle(ref, create, inputs); | ||
return dispatcher.useImperativeHandle(ref, create, deps); | ||
} | ||
function useDebugValue(value, formatterFn) { | ||
@@ -1606,11 +1656,46 @@ { | ||
/** | ||
* ReactElementValidator provides a wrapper around a element factory | ||
* which validates the props passed to the element. This is intended to be | ||
* used only in DEV and could be replaced by a static type checker for languages | ||
* that support it. | ||
*/ | ||
var loggedTypeFailures = {}; | ||
function checkPropTypes(typeSpecs, values, location, componentName) { | ||
{ | ||
// $FlowFixMe This is okay but Flow doesn't know it. | ||
var has = Function.call.bind(Object.prototype.hasOwnProperty); | ||
var propTypesMisspellWarningShown = void 0; | ||
for (var typeSpecName in typeSpecs) { | ||
if (has(typeSpecs, typeSpecName)) { | ||
var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to | ||
// fail the render phase where it didn't fail before. So we log it. | ||
// After these have been cleaned up, we'll let them throw. | ||
try { | ||
// This is intentionally an invariant that gets caught. It's the same | ||
// behavior as without this statement except with a better message. | ||
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`.'); | ||
err.name = 'Invariant Violation'; | ||
throw 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; | ||
} | ||
if (error$1 && !(error$1 instanceof Error)) { | ||
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); | ||
} | ||
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { | ||
// Only monitor this failure once because there tends to be a lot of the | ||
// same error. | ||
loggedTypeFailures[error$1.message] = true; | ||
error('Failed %s type: %s', location, error$1.message); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
var propTypesMisspellWarningShown; | ||
{ | ||
@@ -1623,2 +1708,3 @@ propTypesMisspellWarningShown = false; | ||
var name = getComponentName(ReactCurrentOwner.current.type); | ||
if (name) { | ||
@@ -1628,8 +1714,8 @@ return '\n\nCheck the render method of `' + name + '`.'; | ||
} | ||
return ''; | ||
} | ||
function getSourceInfoErrorAddendum(elementProps) { | ||
if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) { | ||
var source = elementProps.__source; | ||
function getSourceInfoErrorAddendum(source) { | ||
if (source !== undefined) { | ||
var fileName = source.fileName.replace(/^.*[\\\/]/, ''); | ||
@@ -1639,5 +1725,13 @@ var lineNumber = source.lineNumber; | ||
} | ||
return ''; | ||
} | ||
function getSourceInfoErrorAddendumForProps(elementProps) { | ||
if (elementProps !== null && elementProps !== undefined) { | ||
return getSourceInfoErrorAddendum(elementProps.__source); | ||
} | ||
return ''; | ||
} | ||
/** | ||
@@ -1648,2 +1742,4 @@ * Warn if there's no key explicitly set on dynamic arrays of children or | ||
*/ | ||
var ownerHasKeyUseWarning = {}; | ||
@@ -1656,9 +1752,10 @@ | ||
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; | ||
if (parentName) { | ||
info = '\n\nCheck the top-level render call using <' + parentName + '>.'; | ||
info = "\n\nCheck the top-level render call using <" + parentName + ">."; | ||
} | ||
} | ||
return info; | ||
} | ||
/** | ||
@@ -1675,2 +1772,4 @@ * Warn if the element doesn't have an explicit key assigned to it. | ||
*/ | ||
function validateExplicitKey(element, parentType) { | ||
@@ -1680,26 +1779,29 @@ if (!element._store || element._store.validated || element.key != null) { | ||
} | ||
element._store.validated = true; | ||
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); | ||
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); | ||
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { | ||
return; | ||
} | ||
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; | ||
// Usually the current owner is the offender, but if it accepts children as a | ||
ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a | ||
// property, it may be the creator of the child that's responsible for | ||
// assigning it a key. | ||
var childOwner = ''; | ||
if (element && element._owner && element._owner !== ReactCurrentOwner.current) { | ||
// Give the component that originally created this child. | ||
childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.'; | ||
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + "."; | ||
} | ||
setCurrentlyValidatingElement(element); | ||
{ | ||
warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); | ||
error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); | ||
} | ||
setCurrentlyValidatingElement(null); | ||
} | ||
/** | ||
@@ -1714,2 +1816,4 @@ * Ensure that every element either is passed in a static location, in an | ||
*/ | ||
function validateChildKeys(node, parentType) { | ||
@@ -1719,5 +1823,7 @@ if (typeof node !== 'object') { | ||
} | ||
if (Array.isArray(node)) { | ||
for (var i = 0; i < node.length; i++) { | ||
var child = node[i]; | ||
if (isValidElement(child)) { | ||
@@ -1734,2 +1840,3 @@ validateExplicitKey(child, parentType); | ||
var iteratorFn = getIteratorFn(node); | ||
if (typeof iteratorFn === 'function') { | ||
@@ -1740,3 +1847,4 @@ // Entry iterators used to provide implicit keys, | ||
var iterator = iteratorFn.call(node); | ||
var step = void 0; | ||
var step; | ||
while (!(step = iterator.next()).done) { | ||
@@ -1751,3 +1859,2 @@ if (isValidElement(step.value)) { | ||
} | ||
/** | ||
@@ -1759,32 +1866,40 @@ * Given an element, validate that its props follow the propTypes definition, | ||
*/ | ||
function validatePropTypes(element) { | ||
var type = element.type; | ||
if (type === null || type === undefined || typeof type === 'string') { | ||
return; | ||
{ | ||
var type = element.type; | ||
if (type === null || type === undefined || typeof type === 'string') { | ||
return; | ||
} | ||
var name = getComponentName(type); | ||
var propTypes; | ||
if (typeof type === 'function') { | ||
propTypes = type.propTypes; | ||
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
type.$$typeof === REACT_MEMO_TYPE)) { | ||
propTypes = type.propTypes; | ||
} else { | ||
return; | ||
} | ||
if (propTypes) { | ||
setCurrentlyValidatingElement(element); | ||
checkPropTypes(propTypes, element.props, 'prop', name); | ||
setCurrentlyValidatingElement(null); | ||
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { | ||
propTypesMisspellWarningShown = true; | ||
error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); | ||
} | ||
if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { | ||
error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); | ||
} | ||
} | ||
var name = getComponentName(type); | ||
var propTypes = void 0; | ||
if (typeof type === 'function') { | ||
propTypes = type.propTypes; | ||
} else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || | ||
// Note: Memo only checks outer props here. | ||
// Inner props are checked in the reconciler. | ||
type.$$typeof === REACT_MEMO_TYPE)) { | ||
propTypes = type.propTypes; | ||
} else { | ||
return; | ||
} | ||
if (propTypes) { | ||
setCurrentlyValidatingElement(element); | ||
checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum); | ||
setCurrentlyValidatingElement(null); | ||
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { | ||
propTypesMisspellWarningShown = true; | ||
warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); | ||
} | ||
if (typeof type.getDefaultProps === 'function') { | ||
!type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; | ||
} | ||
} | ||
/** | ||
@@ -1794,28 +1909,33 @@ * Given a fragment, validate that it can only be provided with fragment props | ||
*/ | ||
function validateFragmentProps(fragment) { | ||
setCurrentlyValidatingElement(fragment); | ||
{ | ||
setCurrentlyValidatingElement(fragment); | ||
var keys = Object.keys(fragment.props); | ||
var keys = Object.keys(fragment.props); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
if (key !== 'children' && key !== 'key') { | ||
warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); | ||
break; | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
if (key !== 'children' && key !== 'key') { | ||
error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); | ||
break; | ||
} | ||
} | ||
} | ||
if (fragment.ref !== null) { | ||
warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
if (fragment.ref !== null) { | ||
error('Invalid attribute `ref` supplied to `React.Fragment`.'); | ||
} | ||
setCurrentlyValidatingElement(null); | ||
} | ||
setCurrentlyValidatingElement(null); | ||
} | ||
function createElementWithValidation(type, props, children) { | ||
var validType = isValidElementType(type); | ||
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to | ||
// succeed and there will likely be errors in render. | ||
// We warn in this case but don't throw. We expect the element creation to | ||
// succeed and there will likely be errors in render. | ||
if (!validType) { | ||
var info = ''; | ||
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { | ||
@@ -1825,3 +1945,4 @@ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; | ||
var sourceInfo = getSourceInfoErrorAddendum(props); | ||
var sourceInfo = getSourceInfoErrorAddendumForProps(props); | ||
if (sourceInfo) { | ||
@@ -1833,3 +1954,4 @@ info += sourceInfo; | ||
var typeString = void 0; | ||
var typeString; | ||
if (type === null) { | ||
@@ -1840,3 +1962,3 @@ typeString = 'null'; | ||
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { | ||
typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />'; | ||
typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />"; | ||
info = ' Did you accidentally export a JSX literal instead of a component?'; | ||
@@ -1847,14 +1969,13 @@ } else { | ||
warning$1(false, '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); | ||
{ | ||
error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); | ||
} | ||
} | ||
var element = createElement.apply(this, arguments); | ||
var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. | ||
// TODO: Drop this when these are no longer allowed as the type argument. | ||
// The result can be nullish if a mock or a custom function is used. | ||
// TODO: Drop this when these are no longer allowed as the type argument. | ||
if (element == null) { | ||
return element; | ||
} | ||
// Skip key warning if the type isn't valid since our key validation logic | ||
} // Skip key warning if the type isn't valid since our key validation logic | ||
// doesn't expect a non-string/function type and can throw confusing errors. | ||
@@ -1864,2 +1985,4 @@ // We don't want exception behavior to differ between dev and prod. | ||
// fixed, the key warnings will appear.) | ||
if (validType) { | ||
@@ -1879,12 +2002,20 @@ for (var i = 2; i < arguments.length; i++) { | ||
} | ||
var didWarnAboutDeprecatedCreateFactory = false; | ||
function createFactoryWithValidation(type) { | ||
var validatedFactory = createElementWithValidation.bind(null, type); | ||
validatedFactory.type = type; | ||
// Legacy hook: remove it | ||
{ | ||
if (!didWarnAboutDeprecatedCreateFactory) { | ||
didWarnAboutDeprecatedCreateFactory = true; | ||
warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); | ||
} // Legacy hook: remove it | ||
Object.defineProperty(validatedFactory, 'type', { | ||
enumerable: false, | ||
get: function () { | ||
lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); | ||
warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); | ||
Object.defineProperty(this, 'type', { | ||
@@ -1900,8 +2031,9 @@ value: type | ||
} | ||
function cloneElementWithValidation(element, props, children) { | ||
var newElement = cloneElement.apply(this, arguments); | ||
for (var i = 2; i < arguments.length; i++) { | ||
validateChildKeys(arguments[i], newElement.type); | ||
} | ||
validatePropTypes(newElement); | ||
@@ -1911,113 +2043,57 @@ return newElement; | ||
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers: | ||
{ | ||
try { | ||
var frozenObject = Object.freeze({}); | ||
var testMap = new Map([[frozenObject, null]]); | ||
var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused. | ||
// https://github.com/rollup/rollup/issues/1771 | ||
// TODO: we can remove these if Rollup fixes the bug. | ||
// In some cases, StrictMode should also double-render lifecycles. | ||
// This can be confusing for tests though, | ||
// And it can be bad for performance in production. | ||
// This feature flag can be used to control the behavior: | ||
testMap.set(0, 0); | ||
testSet.add(0); | ||
} catch (e) { | ||
} | ||
} | ||
// To preserve the "Pause on caught exceptions" behavior of the debugger, we | ||
// replay the begin phase of a failed component inside invokeGuardedCallback. | ||
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: | ||
// Gather advanced timing metrics for Profiler subtrees. | ||
// Trace which interactions trigger each commit. | ||
// Only used in www builds. | ||
// TODO: true? Here it might just be false. | ||
// Only used in www builds. | ||
// Only used in www builds. | ||
// React Fire: prevent the value and checked attributes from syncing | ||
// with their related DOM properties | ||
// These APIs will no longer be "unstable" in the upcoming 16.7 release, | ||
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. | ||
var enableStableConcurrentModeAPIs = false; | ||
var React = { | ||
Children: { | ||
map: mapChildren, | ||
forEach: forEachChildren, | ||
count: countChildren, | ||
toArray: toArray, | ||
only: onlyChild | ||
}, | ||
createRef: createRef, | ||
Component: Component, | ||
PureComponent: PureComponent, | ||
createContext: createContext, | ||
forwardRef: forwardRef, | ||
lazy: lazy, | ||
memo: memo, | ||
useCallback: useCallback, | ||
useContext: useContext, | ||
useEffect: useEffect, | ||
useImperativeHandle: useImperativeHandle, | ||
useDebugValue: useDebugValue, | ||
useLayoutEffect: useLayoutEffect, | ||
useMemo: useMemo, | ||
useReducer: useReducer, | ||
useRef: useRef, | ||
useState: useState, | ||
Fragment: REACT_FRAGMENT_TYPE, | ||
StrictMode: REACT_STRICT_MODE_TYPE, | ||
Suspense: REACT_SUSPENSE_TYPE, | ||
createElement: createElementWithValidation, | ||
cloneElement: cloneElementWithValidation, | ||
createFactory: createFactoryWithValidation, | ||
isValidElement: isValidElement, | ||
version: ReactVersion, | ||
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE, | ||
unstable_Profiler: REACT_PROFILER_TYPE, | ||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals | ||
var createElement$1 = createElementWithValidation ; | ||
var cloneElement$1 = cloneElementWithValidation ; | ||
var createFactory = createFactoryWithValidation ; | ||
var Children = { | ||
map: mapChildren, | ||
forEach: forEachChildren, | ||
count: countChildren, | ||
toArray: toArray, | ||
only: onlyChild | ||
}; | ||
// Note: some APIs are added with feature flags. | ||
// Make sure that stable builds for open source | ||
// don't modify the React object to avoid deopts. | ||
// Also let's not expose their names in stable builds. | ||
if (enableStableConcurrentModeAPIs) { | ||
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | ||
React.Profiler = REACT_PROFILER_TYPE; | ||
React.unstable_ConcurrentMode = undefined; | ||
React.unstable_Profiler = undefined; | ||
} | ||
var React$2 = Object.freeze({ | ||
default: React | ||
}); | ||
var React$3 = ( React$2 && React ) || React$2; | ||
// TODO: decide on the top-level export form. | ||
// This is hacky but makes it work with both Rollup and Jest. | ||
var react = React$3.default || React$3; | ||
module.exports = react; | ||
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 = createContext; | ||
exports.createElement = createElement$1; | ||
exports.createFactory = createFactory; | ||
exports.createRef = createRef; | ||
exports.forwardRef = forwardRef; | ||
exports.isValidElement = isValidElement; | ||
exports.lazy = lazy; | ||
exports.memo = memo; | ||
exports.useCallback = useCallback; | ||
exports.useContext = useContext; | ||
exports.useDebugValue = useDebugValue; | ||
exports.useEffect = useEffect; | ||
exports.useImperativeHandle = useImperativeHandle; | ||
exports.useLayoutEffect = useLayoutEffect; | ||
exports.useMemo = useMemo; | ||
exports.useReducer = useReducer; | ||
exports.useRef = useRef; | ||
exports.useState = useState; | ||
exports.version = ReactVersion; | ||
})(); | ||
} |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-11565a207 | ||
/** @license React v0.0.0-235a6c4af | ||
* react.production.min.js | ||
@@ -10,17 +10,17 @@ * | ||
'use strict';var k=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.concurrent_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112,z=n?Symbol.for("react.suspense"):60113,aa=n?Symbol.for("react.memo"): | ||
60115,ba=n?Symbol.for("react.lazy"):60116,A="function"===typeof Symbol&&Symbol.iterator;function ca(a,b,d,c,e,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[d,c,e,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}} | ||
function B(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);ca(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={}; | ||
function E(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?B("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}var H=G.prototype=new F; | ||
H.constructor=G;k(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0}; | ||
function M(a,b,d){var c=void 0,e={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];e.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:e,_owner:J.current}} | ||
function da(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}} | ||
function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)} | ||
function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){e=a[h];var f=b+T(e,h);g+=S(e,f,d,c)}else if(null===a||"object"!==typeof a?f=null:(f=A&&a[A]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),h= | ||
0;!(e=a.next()).done;)e=e.value,f=b+T(e,h++),g+=S(e,f,d,c);else"object"===e&&(d=""+a,B("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function U(a,b,d){return null==a?0:S(a,"",b,d)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ea(a,b){a.func.call(a.context,b,a.count++)} | ||
function fa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=da(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function V(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,fa,b);R(b)}function W(){var a=I.current;null===a?B("307"):void 0;return a} | ||
var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];V(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,ea,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B("143");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b, | ||
_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:ba,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return W().useCallback(a,b)},useContext:function(a,b){return W().useContext(a,b)},useEffect:function(a,b){return W().useEffect(a,b)},useImperativeHandle:function(a, | ||
b,d){return W().useImperativeHandle(a,b,d)},useDebugValue:function(){},useLayoutEffect:function(a,b){return W().useLayoutEffect(a,b)},useMemo:function(a,b){return W().useMemo(a,b)},useReducer:function(a,b,d){return W().useReducer(a,b,d)},useRef:function(a){return W().useRef(a)},useState:function(a){return W().useState(a)},Fragment:r,StrictMode:t,Suspense:z,createElement:M,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!= | ||
b){void 0!==b.ref&&(h=b.ref,f=J.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.8.0-canary-11565a207", | ||
unstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:I,ReactCurrentOwner:J,assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z; | ||
'use strict';var l=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,z=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"): | ||
60116,B="function"===typeof Symbol&&Symbol.iterator;function C(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function F(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")}; | ||
function G(){}G.prototype=F.prototype;function H(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D}var I=H.prototype=new G;I.constructor=H;l(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0}; | ||
function M(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,e)&&!L.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return{$$typeof:p,type:a,key:g,ref:k,props:d,_owner:J.current}} | ||
function N(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g,Q=[];function R(a,b,c,e){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return{result:a,keyPrefix:b,func:c,context:e,count:0}} | ||
function S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)} | ||
function T(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U(d,k);g+=T(d,f,c,e)}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k= | ||
0;!(d=a.next()).done;)d=d.value,f=b+U(d,k++),g+=T(d,f,c,e);else if("object"===d)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V(a,b,c){return null==a?0:T(a,"",b,c)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function W(a,b){a.func.call(a.context,b,a.count++)} | ||
function aa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X(a,e,c,function(a){return a}):null!=a&&(O(a)&&(a=N(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+c)),e.push(a))}function X(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P,"$&/")+"/");b=R(b,g,e,d);V(a,aa,b);S(b)}var Y={current:null};function Z(){var a=Y.current;if(null===a)throw Error(C(321));return a} | ||
var ba={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:l};exports.Children={map:function(a,b,c){if(null==a)return a;var e=[];X(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R(null,null,b,c);V(a,W,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){if(!O(a))throw Error(C(143));return a}}; | ||
exports.Component=F;exports.Fragment=r;exports.Profiler=u;exports.PureComponent=H;exports.StrictMode=t;exports.Suspense=y;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba; | ||
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C(267,a));var e=l({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K.call(b,h)&&!L.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h])}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f}return{$$typeof:p,type:a.type, | ||
key:d,ref:g,props:e,_owner:k}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:x,render:a}};exports.isValidElement=O; | ||
exports.lazy=function(a){return{$$typeof:A,_status:-1,_result:a}};exports.memo=function(a,b){return{$$typeof:z,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return Z().useCallback(a,b)};exports.useContext=function(a,b){return Z().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return Z().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return Z().useImperativeHandle(a,b,c)}; | ||
exports.useLayoutEffect=function(a,b){return Z().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return Z().useMemo(a,b)};exports.useReducer=function(a,b,c){return Z().useReducer(a,b,c)};exports.useRef=function(a){return Z().useRef(a)};exports.useState=function(a){return Z().useState(a)};exports.version="16.13.0-235a6c4af"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "0.0.0-11565a207", | ||
"version": "0.0.0-235a6c4af", | ||
"homepage": "https://reactjs.org/", | ||
@@ -31,5 +31,3 @@ "bugs": "https://github.com/facebook/react/issues", | ||
"loose-envify": "^1.1.0", | ||
"object-assign": "^4.1.1", | ||
"prop-types": "^15.6.2", | ||
"scheduler": "0.0.0-11565a207" | ||
"object-assign": "^4.1.1" | ||
}, | ||
@@ -36,0 +34,0 @@ "browserify": { |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-11565a207 | ||
/** @license React v0.0.0-235a6c4af | ||
* react.production.min.js | ||
@@ -9,25 +9,24 @@ * | ||
*/ | ||
'use strict';(function(M,q){"object"===typeof exports&&"undefined"!==typeof module?module.exports=q():"function"===typeof define&&define.amd?define(q):M.React=q()})(this,function(){function M(a,b,d,f,p,c,e,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var n=[d,f,p,c,e,h],ta=0;a=Error(b.replace(/%s/g,function(){return n[ta++]}));a.name="Invariant Violation"}a.framesToPop= | ||
1;throw a;}}function q(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)d+="&args[]="+encodeURIComponent(arguments[f+1]);M(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}function t(a,b,d){this.props=a;this.context=b;this.refs=ba;this.updater=d||ca}function da(){}function N(a,b,d){this.props=a;this.context=b;this.refs=ba;this.updater= | ||
d||ca}function u(){if(!x){var a=c.expirationTime;C?O():C=!0;D(ua,a)}}function P(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;d=a.callback;b=a.expirationTime;a=a.priorityLevel;var f=g,p=E;g=a;E=b;try{var n=d()}finally{g=f,E=p}if("function"===typeof n)if(n={callback:n,priorityLevel:a,expirationTime:b,next:null,previous:null},null===c)c=n.next=n.previous=n;else{d=null;a=c;do{if(a.expirationTime>=b){d=a;break}a=a.next}while(a!==c);null===d?d= | ||
c:d===c&&(c=n,u());b=d.previous;b.next=d.previous=n;n.next=d;n.previous=b}}function Q(){if(-1===l&&null!==c&&1===c.priorityLevel){x=!0;try{do P();while(null!==c&&1===c.priorityLevel)}finally{x=!1,null!==c?u():C=!1}}}function ua(a){x=!0;var b=F;F=a;try{if(a)for(;null!==c;){var d=k();if(c.expirationTime<=d){do P();while(null!==c&&c.expirationTime<=d)}else break}else if(null!==c){do P();while(null!==c&&!G())}}finally{x=!1,F=b,null!==c?u():C=!1,Q()}}function ea(a,b,d){var f=void 0,p={},c=null,e=null; | ||
if(null!=b)for(f in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(c=""+b.key),b)fa.call(b,f)&&!ha.hasOwnProperty(f)&&(p[f]=b[f]);var h=arguments.length-2;if(1===h)p.children=d;else if(1<h){for(var g=Array(h),k=0;k<h;k++)g[k]=arguments[k+2];p.children=g}if(a&&a.defaultProps)for(f in h=a.defaultProps,h)void 0===p[f]&&(p[f]=h[f]);return{$$typeof:y,type:a,key:c,ref:e,props:p,_owner:R.current}}function va(a,b){return{$$typeof:y,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function S(a){return"object"=== | ||
typeof a&&null!==a&&a.$$typeof===y}function wa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function ia(a,b,d,f){if(H.length){var c=H.pop();c.result=a;c.keyPrefix=b;c.func=d;c.context=f;c.count=0;return c}return{result:a,keyPrefix:b,func:d,context:f,count:0}}function ja(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>H.length&&H.push(a)}function T(a,b,d,f){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var e=!1;if(null=== | ||
a)e=!0;else switch(c){case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case y:case xa:e=!0}}if(e)return d(f,a,""===b?"."+U(a,0):b),1;e=0;b=""===b?".":b+":";if(Array.isArray(a))for(var g=0;g<a.length;g++){c=a[g];var h=b+U(c,g);e+=T(c,h,d,f)}else if(null===a||"object"!==typeof a?h=null:(h=ka&&a[ka]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),g=0;!(c=a.next()).done;)c=c.value,h=b+U(c,g++),e+=T(c,h,d,f);else"object"===c&&(d=""+a,q("31", | ||
"[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return e}function V(a,b,d){return null==a?0:T(a,"",b,d)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?wa(a.key):b.toString(36)}function ya(a,b,d){a.func.call(a.context,b,a.count++)}function za(a,b,d){var f=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,f,d,function(a){return a}):null!=a&&(S(a)&&(a=va(a,c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(la,"$&/")+"/")+ | ||
d)),f.push(a))}function W(a,b,d,f,c){var e="";null!=d&&(e=(""+d).replace(la,"$&/")+"/");b=ia(b,e,f,c);V(a,za,b);ja(b)}function m(){var a=ma.current;null===a?q("307"):void 0;return a}var e="function"===typeof Symbol&&Symbol.for,y=e?Symbol.for("react.element"):60103,xa=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,X=e?Symbol.for("react.strict_mode"):60108,Aa=e?Symbol.for("react.profiler"):60114,Ba=e?Symbol.for("react.provider"):60109,Ca=e?Symbol.for("react.context"):60110, | ||
Da=e?Symbol.for("react.concurrent_mode"):60111,Ea=e?Symbol.for("react.forward_ref"):60112,Fa=e?Symbol.for("react.suspense"):60113,Ga=e?Symbol.for("react.memo"):60115,Ha=e?Symbol.for("react.lazy"):60116,ka="function"===typeof Symbol&&Symbol.iterator,na=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,I=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a= | ||
0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(f){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var d=Object(a);for(var c,e=1;e<arguments.length;e++){var g=Object(arguments[e]); | ||
for(var k in g)Ia.call(g,k)&&(d[k]=g[k]);if(na){c=na(g);for(var h=0;h<c.length;h++)Ja.call(g,c[h])&&(d[c[h]]=g[c[h]])}}return d},ca={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,d){},enqueueReplaceState:function(a,b,d,c){},enqueueSetState:function(a,b,d,c){}},ba={};t.prototype.isReactComponent={};t.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};t.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this, | ||
a,"forceUpdate")};da.prototype=t.prototype;e=N.prototype=new da;e.constructor=N;I(e,t.prototype);e.isPureReactComponent=!0;var c=null,F=!1,g=3,l=-1,E=-1,x=!1,C=!1,Ka=Date,La="function"===typeof setTimeout?setTimeout:void 0,Ma="function"===typeof clearTimeout?clearTimeout:void 0,oa="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,pa="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,qa,ra,Y=function(a){qa=oa(function(b){Ma(ra);a(b)});ra=La(function(){pa(qa); | ||
a(k())},100)};if("object"===typeof performance&&"function"===typeof performance.now){var Na=performance;var k=function(){return Na.now()}}else k=function(){return Ka.now()};e=null;"undefined"!==typeof window?e=window:"undefined"!==typeof global&&(e=global);if(e&&e._schedMock){e=e._schedMock;var D=e[0];var O=e[1];var G=e[2];k=e[3]}else if("undefined"===typeof window||"function"!==typeof MessageChannel){var v=null,Oa=function(a){if(null!==v)try{v(a)}finally{v=null}};D=function(a,b){null!==v?setTimeout(D, | ||
0,a):(v=a,setTimeout(Oa,0,!1))};O=function(){v=null};G=function(){return!1}}else{"undefined"!==typeof console&&("function"!==typeof oa&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof pa&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var w=null,J=!1,z=-1,A=!1,Z=!1,K=0, | ||
L=33,B=33;G=function(){return K<=k()};e=new MessageChannel;var sa=e.port2;e.port1.onmessage=function(a){J=!1;a=w;var b=z;w=null;z=-1;var d=k(),c=!1;if(0>=K-d)if(-1!==b&&b<=d)c=!0;else{A||(A=!0,Y(aa));w=a;z=b;return}if(null!==a){Z=!0;try{a(c)}finally{Z=!1}}};var aa=function(a){if(null!==w){Y(aa);var b=a-K+B;b<B&&L<B?(8>b&&(b=8),B=b<L?L:b):L=b;K=a+B;J||(J=!0,sa.postMessage(void 0))}else A=!1};D=function(a,b){w=a;z=b;Z||0>b?sa.postMessage(void 0):A||(A=!0,Y(aa))};O=function(){w=null;J=!1;z=-1}}var Pa= | ||
0,ma={current:null},R={current:null};e={ReactCurrentDispatcher:ma,ReactCurrentOwner:R,assign:I};I(e,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}},unstable_shouldYield:function(){return!F&&(null!==c&&c.expirationTime<E||G())},unstable_now:k,unstable_scheduleCallback:function(a,b){var d=-1!==l?l:k();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=d+b.timeout; | ||
else switch(g){case 1:b=d+-1;break;case 2:b=d+250;break;case 5:b=d+1073741823;break;case 4:b=d+1E4;break;default:b=d+5E3}a={callback:a,priorityLevel:g,expirationTime:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,u();else{d=null;var f=c;do{if(f.expirationTime>b){d=f;break}f=f.next}while(f!==c);null===d?d=c:d===c&&(c=a,u());b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a= | ||
3}var d=g,c=l;g=a;l=k();try{return b()}finally{g=d,l=c,Q()}},unstable_wrapCallback:function(a){var b=g;return function(){var d=g,c=l;g=b;l=k();try{return a.apply(this,arguments)}finally{g=d,l=c,Q()}}},unstable_getFirstCallbackNode:function(){return c},unstable_pauseExecution:function(){},unstable_continueExecution:function(){null!==c&&u()},unstable_getCurrentPriorityLevel:function(){return g}},SchedulerTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null}, | ||
unstable_getThreadID:function(){return++Pa},unstable_subscribe:function(a){},unstable_trace:function(a,b,d){return d()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var fa=Object.prototype.hasOwnProperty,ha={key:!0,ref:!0,__self:!0,__source:!0},la=/\/+/g,H=[];r={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=ia(null,null,b,d);V(a,ya,b);ja(b)},count:function(a){return V(a,function(){return null}, | ||
null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){S(a)?void 0:q("143");return a}},createRef:function(){return{current:null}},Component:t,PureComponent:N,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ca,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ba,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Ea,render:a}},lazy:function(a){return{$$typeof:Ha, | ||
_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Ga,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return m().useCallback(a,b)},useContext:function(a,b){return m().useContext(a,b)},useEffect:function(a,b){return m().useEffect(a,b)},useImperativeHandle:function(a,b,d){return m().useImperativeHandle(a,b,d)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return m().useLayoutEffect(a,b)},useMemo:function(a,b){return m().useMemo(a,b)},useReducer:function(a, | ||
b,d){return m().useReducer(a,b,d)},useRef:function(a){return m().useRef(a)},useState:function(a){return m().useState(a)},Fragment:r,StrictMode:X,Suspense:Fa,createElement:ea,cloneElement:function(a,b,d){null===a||void 0===a?q("267",a):void 0;var c=void 0,e=I({},a.props),g=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=R.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)fa.call(b,c)&&!ha.hasOwnProperty(c)&&(e[c]=void 0=== | ||
b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:y,type:a.type,key:g,ref:k,props:e,_owner:h}},createFactory:function(a){var b=ea.bind(null,a);b.type=a;return b},isValidElement:S,version:"16.8.0-canary-11565a207",unstable_ConcurrentMode:Da,unstable_Profiler:Aa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e};r=(X={default:r},r)||X;return r.default||r}); | ||
'use strict';(function(d,r){"object"===typeof exports&&"undefined"!==typeof module?r(exports):"function"===typeof define&&define.amd?define(["exports"],r):(d=d||self,r(d.React={}))})(this,function(d){function r(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
function w(a,b,c){this.props=a;this.context=b;this.refs=ba;this.updater=c||ca}function da(){}function L(a,b,c){this.props=a;this.context=b;this.refs=ba;this.updater=c||ca}function ea(a,b,c){var g,e={},d=null,fa=null;if(null!=b)for(g in void 0!==b.ref&&(fa=b.ref),void 0!==b.key&&(d=""+b.key),b)ha.call(b,g)&&!ia.hasOwnProperty(g)&&(e[g]=b[g]);var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){for(var k=Array(h),f=0;f<h;f++)k[f]=arguments[f+2];e.children=k}if(a&&a.defaultProps)for(g in h=a.defaultProps, | ||
h)void 0===e[g]&&(e[g]=h[g]);return{$$typeof:x,type:a,key:d,ref:fa,props:e,_owner:M.current}}function ua(a,b){return{$$typeof:x,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===x}function va(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function ja(a,b,c,g){if(C.length){var e=C.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=g;e.count=0;return e}return{result:a,keyPrefix:b,func:c, | ||
context:g,count:0}}function ka(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>C.length&&C.push(a)}function O(a,b,c,g){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var d=!1;if(null===a)d=!0;else switch(e){case "string":case "number":d=!0;break;case "object":switch(a.$$typeof){case x:case wa:d=!0}}if(d)return c(g,a,""===b?"."+P(a,0):b),1;d=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var h=b+P(e,f);d+=O(e,h,c,g)}else if(null===a|| | ||
"object"!==typeof a?h=null:(h=la&&a[la]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),f=0;!(e=a.next()).done;)e=e.value,h=b+P(e,f++),d+=O(e,h,c,g);else if("object"===e)throw c=""+a,Error(r(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return d}function Q(a,b,c){return null==a?0:O(a,"",b,c)}function P(a,b){return"object"===typeof a&&null!==a&&null!=a.key?va(a.key):b.toString(36)}function xa(a,b,c){a.func.call(a.context,b, | ||
a.count++)}function ya(a,b,c){var g=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?R(a,g,c,function(a){return a}):null!=a&&(N(a)&&(a=ua(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(ma,"$&/")+"/")+c)),g.push(a))}function R(a,b,c,g,e){var d="";null!=c&&(d=(""+c).replace(ma,"$&/")+"/");b=ja(b,d,g,e);Q(a,ya,b);ka(b)}function t(){var a=na.current;if(null===a)throw Error(r(321));return a}function S(a,b){var c=a.length;a.push(b);a:for(;;){var g=c-1>>>1,e=a[g];if(void 0!== | ||
e&&0<D(e,b))a[g]=b,a[c]=e,c=g;else break a}}function n(a){a=a[0];return void 0===a?null:a}function E(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var g=0,e=a.length;g<e;){var d=2*(g+1)-1,f=a[d],h=d+1,k=a[h];if(void 0!==f&&0>D(f,c))void 0!==k&&0>D(k,f)?(a[g]=k,a[h]=c,g=h):(a[g]=f,a[d]=c,g=d);else if(void 0!==k&&0>D(k,c))a[g]=k,a[h]=c,g=h;else break a}}return b}return null}function D(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function F(a){for(var b=n(u);null!== | ||
b;){if(null===b.callback)E(u);else if(b.startTime<=a)E(u),b.sortIndex=b.expirationTime,S(p,b);else break;b=n(u)}}function T(a){y=!1;F(a);if(!v)if(null!==n(p))v=!0,z(U);else{var b=n(u);null!==b&&G(T,b.startTime-a)}}function U(a,b){v=!1;y&&(y=!1,V());H=!0;var c=m;try{F(b);for(l=n(p);null!==l&&(!(l.expirationTime>b)||a&&!W());){var g=l.callback;if(null!==g){l.callback=null;m=l.priorityLevel;var e=g(l.expirationTime<=b);b=q();"function"===typeof e?l.callback=e:l===n(p)&&E(p);F(b)}else E(p);l=n(p)}if(null!== | ||
l)var d=!0;else{var f=n(u);null!==f&&G(T,f.startTime-b);d=!1}return d}finally{l=null,m=c,H=!1}}function oa(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var f="function"===typeof Symbol&&Symbol.for,x=f?Symbol.for("react.element"):60103,wa=f?Symbol.for("react.portal"):60106,za=f?Symbol.for("react.fragment"):60107,Aa=f?Symbol.for("react.strict_mode"):60108,Ba=f?Symbol.for("react.profiler"):60114,Ca=f?Symbol.for("react.provider"):60109, | ||
Da=f?Symbol.for("react.context"):60110,Ea=f?Symbol.for("react.forward_ref"):60112,Fa=f?Symbol.for("react.suspense"):60113,Ga=f?Symbol.for("react.memo"):60115,Ha=f?Symbol.for("react.lazy"):60116,la="function"===typeof Symbol&&Symbol.iterator,Ia=Object.prototype.hasOwnProperty,I=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),g=1;g<arguments.length;g++){var e=arguments[g];if(null!=e){var d=void 0,f=c;e=Object(e);for(d in e)Ia.call(e, | ||
d)&&(f[d]=e[d])}}return c},ca={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ba={};w.prototype.isReactComponent={};w.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(r(85));this.updater.enqueueSetState(this,a,b,"setState")};w.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};da.prototype=w.prototype;f=L.prototype= | ||
new da;f.constructor=L;I(f,w.prototype);f.isPureReactComponent=!0;var M={current:null},ha=Object.prototype.hasOwnProperty,ia={key:!0,ref:!0,__self:!0,__source:!0},ma=/\/+/g,C=[],na={current:null},X;if("undefined"===typeof window||"function"!==typeof MessageChannel){var A=null,pa=null,qa=function(){if(null!==A)try{var a=q();A(!0,a);A=null}catch(b){throw setTimeout(qa,0),b;}},Ja=Date.now();var q=function(){return Date.now()-Ja};var z=function(a){null!==A?setTimeout(z,0,a):(A=a,setTimeout(qa,0))};var G= | ||
function(a,b){pa=setTimeout(a,b)};var V=function(){clearTimeout(pa)};var W=function(){return!1};f=X=function(){}}else{var Y=window.performance,ra=window.Date,Ka=window.setTimeout,La=window.clearTimeout;"undefined"!==typeof console&&(f=window.cancelAnimationFrame,"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")); | ||
if("object"===typeof Y&&"function"===typeof Y.now)q=function(){return Y.now()};else{var Ma=ra.now();q=function(){return ra.now()-Ma}}var J=!1,K=null,Z=-1,sa=5,ta=0;W=function(){return q()>=ta};f=function(){};X=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):sa=0<a?Math.floor(1E3/a):5};var B=new MessageChannel,aa=B.port2;B.port1.onmessage=function(){if(null!==K){var a=q();ta=a+sa;try{K(!0,a)?aa.postMessage(null): | ||
(J=!1,K=null)}catch(b){throw aa.postMessage(null),b;}}else J=!1};z=function(a){K=a;J||(J=!0,aa.postMessage(null))};G=function(a,b){Z=Ka(function(){a(q())},b)};V=function(){La(Z);Z=-1}}var p=[],u=[],Na=1,l=null,m=3,H=!1,v=!1,y=!1,Oa=0;B={ReactCurrentDispatcher:na,ReactCurrentOwner:M,IsSomeRendererActing:{current:!1},assign:I};I(B,{Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a, | ||
b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b=3;break;default:b=m}var c=m;m=b;try{return a()}finally{m=c}},unstable_scheduleCallback:function(a,b,c){var d=q();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0<e?d+e:d;c="number"===typeof c.timeout?c.timeout:oa(a)}else c=oa(a),e=d;c=e+c;a={id:Na++,callback:b,priorityLevel:a,startTime:e,expirationTime:c,sortIndex:-1}; | ||
e>d?(a.sortIndex=e,S(u,a),null===n(p)&&a===n(u)&&(y?V():y=!0,G(T,e-d))):(a.sortIndex=c,S(p,a),v||H||(v=!0,z(U)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}},unstable_getCurrentPriorityLevel:function(){return m},unstable_shouldYield:function(){var a=q();F(a);var b=n(p);return b!==l&&null!==l&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<l.expirationTime|| | ||
W()},unstable_requestPaint:f,unstable_continueExecution:function(){v||H||(v=!0,z(U))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return n(p)},get unstable_now(){return q},get unstable_forceFrameRate(){return X},unstable_Profiling:null},SchedulerTracing:{__proto__:null,__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Oa},unstable_trace:function(a, | ||
b,c){return c()},unstable_wrap:function(a){return a},unstable_subscribe:function(a){},unstable_unsubscribe:function(a){}}});d.Children={map:function(a,b,c){if(null==a)return a;var d=[];R(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=ja(null,null,b,c);Q(a,xa,b);ka(b)},count:function(a){return Q(a,function(){return null},null)},toArray:function(a){var b=[];R(a,b,null,function(a){return a});return b},only:function(a){if(!N(a))throw Error(r(143));return a}};d.Component=w;d.Fragment= | ||
za;d.Profiler=Ba;d.PureComponent=L;d.StrictMode=Aa;d.Suspense=Fa;d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B;d.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(r(267,a));var d=I({},a.props),e=a.key,f=a.ref,m=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,m=M.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var h=a.type.defaultProps;for(k in b)ha.call(b,k)&&!ia.hasOwnProperty(k)&&(d[k]=void 0===b[k]&&void 0!==h?h[k]:b[k])}var k=arguments.length-2;if(1=== | ||
k)d.children=c;else if(1<k){h=Array(k);for(var l=0;l<k;l++)h[l]=arguments[l+2];d.children=h}return{$$typeof:x,type:a.type,key:e,ref:f,props:d,_owner:m}};d.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:Da,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:Ca,_context:a};return a.Consumer=a};d.createElement=ea;d.createFactory=function(a){var b=ea.bind(null,a);b.type=a;return b};d.createRef=function(){return{current:null}}; | ||
d.forwardRef=function(a){return{$$typeof:Ea,render:a}};d.isValidElement=N;d.lazy=function(a){return{$$typeof:Ha,_status:-1,_result:a}};d.memo=function(a,b){return{$$typeof:Ga,type:a,compare:void 0===b?null:b}};d.useCallback=function(a,b){return t().useCallback(a,b)};d.useContext=function(a,b){return t().useContext(a,b)};d.useDebugValue=function(a,b){};d.useEffect=function(a,b){return t().useEffect(a,b)};d.useImperativeHandle=function(a,b,c){return t().useImperativeHandle(a,b,c)};d.useLayoutEffect= | ||
function(a,b){return t().useLayoutEffect(a,b)};d.useMemo=function(a,b){return t().useMemo(a,b)};d.useReducer=function(a,b,c){return t().useReducer(a,b,c)};d.useRef=function(a){return t().useRef(a)};d.useState=function(a){return t().useState(a)};d.version="16.13.0-235a6c4af"}); |
@@ -1,2 +0,2 @@ | ||
/** @license React v0.0.0-11565a207 | ||
/** @license React v0.0.0-235a6c4af | ||
* react.profiling.min.js | ||
@@ -9,30 +9,31 @@ * | ||
*/ | ||
'use strict';(function(P,q){"object"===typeof exports&&"undefined"!==typeof module?module.exports=q():"function"===typeof define&&define.amd?define(q):P.React=q()})(this,function(){function P(a,b,c,d,e,k,f,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[c,d,e,k,f,h],wa=0;a=Error(b.replace(/%s/g,function(){return g[wa++]}));a.name="Invariant Violation"}a.framesToPop= | ||
1;throw a;}}function q(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);P(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function w(a,b,c){this.props=a;this.context=b;this.refs=ea;this.updater=c||fa}function ha(){}function Q(a,b,c){this.props=a;this.context=b;this.refs=ea;this.updater= | ||
c||fa}function x(){if(!A){var a=f.expirationTime;F?R():F=!0;G(xa,a)}}function S(){var a=f,b=f.next;if(f===b)f=null;else{var c=f.previous;f=c.next=b;b.previous=c}a.next=a.previous=null;c=a.callback;b=a.expirationTime;a=a.priorityLevel;var d=l,e=H;l=a;H=b;try{var k=c()}finally{l=d,H=e}if("function"===typeof k)if(k={callback:k,priorityLevel:a,expirationTime:b,next:null,previous:null},null===f)f=k.next=k.previous=k;else{c=null;a=f;do{if(a.expirationTime>=b){c=a;break}a=a.next}while(a!==f);null===c?c= | ||
f:c===f&&(f=k,x());b=c.previous;b.next=c.previous=k;k.next=c;k.previous=b}}function T(){if(-1===r&&null!==f&&1===f.priorityLevel){A=!0;try{do S();while(null!==f&&1===f.priorityLevel)}finally{A=!1,null!==f?x():F=!1}}}function xa(a){A=!0;var b=I;I=a;try{if(a)for(;null!==f;){var c=p();if(f.expirationTime<=c){do S();while(null!==f&&f.expirationTime<=c)}else break}else if(null!==f){do S();while(null!==f&&!J())}}finally{A=!1,I=b,null!==f?x():F=!1,T()}}function ya(a){var b=!1,c=null;n.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b|| | ||
(b=!0,c=e)}});if(b)throw c;}function za(a){var b=!1,c=null;n.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Aa(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function Ba(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkStarted(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function Ca(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkStopped(a,b)}catch(k){c||(c= | ||
!0,d=k)}});if(c)throw d;}function Da(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function ia(a,b,c){var d=void 0,e={},k=null,f=null;if(null!=b)for(d in void 0!==b.ref&&(f=b.ref),void 0!==b.key&&(k=""+b.key),b)ja.call(b,d)&&!ka.hasOwnProperty(d)&&(e[d]=b[d]);var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){for(var g=Array(h),l=0;l<h;l++)g[l]=arguments[l+2];e.children=g}if(a&&a.defaultProps)for(d in h=a.defaultProps,h)void 0=== | ||
e[d]&&(e[d]=h[d]);return{$$typeof:B,type:a,key:k,ref:f,props:e,_owner:U.current}}function Ea(a,b){return{$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function V(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}function Fa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function la(a,b,c,d){if(K.length){var e=K.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}} | ||
function ma(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>K.length&&K.push(a)}function W(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var k=!1;if(null===a)k=!0;else switch(e){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case B:case Ga:k=!0}}if(k)return c(d,a,""===b?"."+X(a,0):b),1;k=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var h=b+X(e,f);k+=W(e,h,c,d)}else if(null===a||"object"!==typeof a? | ||
h=null:(h=na&&a[na]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),f=0;!(e=a.next()).done;)e=e.value,h=b+X(e,f++),k+=W(e,h,c,d);else"object"===e&&(c=""+a,q("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return k}function Y(a,b,c){return null==a?0:W(a,"",b,c)}function X(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Fa(a.key):b.toString(36)}function Ha(a,b,c){a.func.call(a.context,b,a.count++)}function Ia(a,b,c){var d= | ||
a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?Z(a,d,c,function(a){return a}):null!=a&&(V(a)&&(a=Ea(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(oa,"$&/")+"/")+c)),d.push(a))}function Z(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(oa,"$&/")+"/");b=la(b,f,d,e);Y(a,Ia,b);ma(b)}function t(){var a=pa.current;null===a?q("307"):void 0;return a}var g="function"===typeof Symbol&&Symbol.for,B=g?Symbol.for("react.element"):60103,Ga=g?Symbol.for("react.portal"):60106,v= | ||
g?Symbol.for("react.fragment"):60107,aa=g?Symbol.for("react.strict_mode"):60108,Ja=g?Symbol.for("react.profiler"):60114,Ka=g?Symbol.for("react.provider"):60109,La=g?Symbol.for("react.context"):60110,Ma=g?Symbol.for("react.concurrent_mode"):60111,Na=g?Symbol.for("react.forward_ref"):60112,Oa=g?Symbol.for("react.suspense"):60113,Pa=g?Symbol.for("react.memo"):60115,Qa=g?Symbol.for("react.lazy"):60116,na="function"===typeof Symbol&&Symbol.iterator,qa=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty, | ||
Sa=Object.prototype.propertyIsEnumerable,L=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign: | ||
function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var g in f)Ra.call(f,g)&&(c[g]=f[g]);if(qa){d=qa(f);for(var h=0;h<d.length;h++)Sa.call(f,d[h])&&(c[d[h]]=f[d[h]])}}return c},fa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},ea={};w.prototype.isReactComponent= | ||
{};w.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};w.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ha.prototype=w.prototype;g=Q.prototype=new ha;g.constructor=Q;L(g,w.prototype);g.isPureReactComponent=!0;var f=null,I=!1,l=3,r=-1,H=-1,A=!1,F=!1,Ta=Date,Ua="function"===typeof setTimeout?setTimeout:void 0,Va="function"===typeof clearTimeout?clearTimeout: | ||
void 0,ra="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,sa="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,ta,ua,ba=function(a){ta=ra(function(b){Va(ua);a(b)});ua=Ua(function(){sa(ta);a(p())},100)};if("object"===typeof performance&&"function"===typeof performance.now){var Wa=performance;var p=function(){return Wa.now()}}else p=function(){return Ta.now()};g=null;"undefined"!==typeof window?g=window:"undefined"!==typeof global&&(g=global);if(g&&g._schedMock){g= | ||
g._schedMock;var G=g[0];var R=g[1];var J=g[2];p=g[3]}else if("undefined"===typeof window||"function"!==typeof MessageChannel){var y=null,Xa=function(a){if(null!==y)try{y(a)}finally{y=null}};G=function(a,b){null!==y?setTimeout(G,0,a):(y=a,setTimeout(Xa,0,!1))};R=function(){y=null};J=function(){return!1}}else{"undefined"!==typeof console&&("function"!==typeof ra&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"), | ||
"function"!==typeof sa&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var z=null,M=!1,C=-1,D=!1,ca=!1,N=0,O=33,E=33;J=function(){return N<=p()};g=new MessageChannel;var va=g.port2;g.port1.onmessage=function(a){M=!1;a=z;var b=C;z=null;C=-1;var c=p(),d=!1;if(0>=N-c)if(-1!==b&&b<=c)d=!0;else{D||(D=!0,ba(da));z=a;C=b;return}if(null!==a){ca=!0;try{a(d)}finally{ca=!1}}};var da=function(a){if(null!== | ||
z){ba(da);var b=a-N+E;b<E&&O<E?(8>b&&(b=8),E=b<O?O:b):O=b;N=a+E;M||(M=!0,va.postMessage(void 0))}else D=!1};G=function(a,b){z=a;C=b;ca||0>b?va.postMessage(void 0):D||(D=!0,ba(da))};R=function(){z=null;M=!1;C=-1}}var Ya=0,Za=0,m=null,u=null;m={current:new Set};u={current:null};var n=null;n=new Set;var pa={current:null},U={current:null};g={ReactCurrentDispatcher:pa,ReactCurrentOwner:U,assign:L};L(g,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)f=null;else{a===f&& | ||
(f=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}},unstable_shouldYield:function(){return!I&&(null!==f&&f.expirationTime<H||J())},unstable_now:p,unstable_scheduleCallback:function(a,b){var c=-1!==r?r:p();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=c+b.timeout;else switch(l){case 1:b=c+-1;break;case 2:b=c+250;break;case 5:b=c+1073741823;break;case 4:b=c+1E4;break;default:b=c+5E3}a={callback:a,priorityLevel:l,expirationTime:b,next:null,previous:null};if(null=== | ||
f)f=a.next=a.previous=a,x();else{c=null;var d=f;do{if(d.expirationTime>b){c=d;break}d=d.next}while(d!==f);null===c?c=f:c===f&&(f=a,x());b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=l,d=r;l=a;r=p();try{return b()}finally{l=c,r=d,T()}},unstable_wrapCallback:function(a){var b=l;return function(){var c=l,d=r;l=b;r=p();try{return a.apply(this,arguments)}finally{l=c,r=d,T()}}}, | ||
unstable_getFirstCallbackNode:function(){return f},unstable_pauseExecution:function(){},unstable_continueExecution:function(){null!==f&&x()},unstable_getCurrentPriorityLevel:function(){return l}},SchedulerTracing:{__interactionsRef:m,__subscriberRef:u,unstable_clear:function(a){var b=m.current;m.current=new Set;try{return a()}finally{m.current=b}},unstable_getCurrent:function(){return m.current},unstable_getThreadID:function(){return++Za},unstable_subscribe:function(a){n.add(a);1===n.size&&(u.current= | ||
{onInteractionScheduledWorkCompleted:za,onInteractionTraced:ya,onWorkCanceled:Da,onWorkScheduled:Aa,onWorkStarted:Ba,onWorkStopped:Ca})},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:Ya++,name:a,timestamp:b},f=m.current,g=new Set(f);g.add(e);m.current=g;var h=u.current,l=void 0;try{if(null!==h)h.onInteractionTraced(e)}finally{try{if(null!==h)h.onWorkStarted(g,d)}finally{try{l=c()}finally{m.current=f;try{if(null!==h)h.onWorkStopped(g, | ||
d)}finally{if(e.__count--,null!==h&&0===e.__count)h.onInteractionScheduledWorkCompleted(e)}}}}return l},unstable_unsubscribe:function(a){n.delete(a);0===n.size&&(u.current=null)},unstable_wrap:function(a){function b(){var b=m.current;m.current=d;e=u.current;try{var g=void 0;try{if(null!==e)e.onWorkStarted(d,c)}finally{try{g=a.apply(void 0,arguments)}finally{if(m.current=b,null!==e)e.onWorkStopped(d,c)}}return g}finally{f||(f=!0,d.forEach(function(a){a.__count--;if(null!==e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)}))}} | ||
var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=m.current,e=u.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){e=u.current;try{if(null!==e)e.onWorkCanceled(d,c)}finally{d.forEach(function(a){a.__count--;if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b}}});var ja=Object.prototype.hasOwnProperty,ka={key:!0,ref:!0,__self:!0,__source:!0},oa=/\/+/g,K=[];v={Children:{map:function(a,b,c){if(null==a)return a; | ||
var d=[];Z(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=la(null,null,b,c);Y(a,Ha,b);ma(b)},count:function(a){return Y(a,function(){return null},null)},toArray:function(a){var b=[];Z(a,b,null,function(a){return a});return b},only:function(a){V(a)?void 0:q("143");return a}},createRef:function(){return{current:null}},Component:w,PureComponent:Q,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:La,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0, | ||
Provider:null,Consumer:null};a.Provider={$$typeof:Ka,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Na,render:a}},lazy:function(a){return{$$typeof:Qa,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Pa,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return t().useCallback(a,b)},useContext:function(a,b){return t().useContext(a,b)},useEffect:function(a,b){return t().useEffect(a,b)},useImperativeHandle:function(a,b,c){return t().useImperativeHandle(a, | ||
b,c)},useDebugValue:function(a,b){},useLayoutEffect:function(a,b){return t().useLayoutEffect(a,b)},useMemo:function(a,b){return t().useMemo(a,b)},useReducer:function(a,b,c){return t().useReducer(a,b,c)},useRef:function(a){return t().useRef(a)},useState:function(a){return t().useState(a)},Fragment:v,StrictMode:aa,Suspense:Oa,createElement:ia,cloneElement:function(a,b,c){null===a||void 0===a?q("267",a):void 0;var d=void 0,e=L({},a.props),f=a.key,g=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref, | ||
h=U.current);void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(d in b)ja.call(b,d)&&!ka.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==l?l[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<d){l=Array(d);for(var m=0;m<d;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:B,type:a.type,key:f,ref:g,props:e,_owner:h}},createFactory:function(a){var b=ia.bind(null,a);b.type=a;return b},isValidElement:V,version:"16.8.0-canary-11565a207",unstable_ConcurrentMode:Ma, | ||
unstable_Profiler:Ja,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:g};v=(aa={default:v},v)||aa;return v.default||v}); | ||
'use strict';(function(f,x){"object"===typeof exports&&"undefined"!==typeof module?x(exports):"function"===typeof define&&define.amd?define(["exports"],x):(f=f||self,x(f.React={}))})(this,function(f){function x(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."} | ||
function E(a,b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function ra(){}function V(a,b,c){this.props=a;this.context=b;this.refs=pa;this.updater=c||qa}function sa(a,b,c){var e,d={},h=null,n=null;if(null!=b)for(e in void 0!==b.ref&&(n=b.ref),void 0!==b.key&&(h=""+b.key),b)ta.call(b,e)&&!ua.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),k=0;k<g;k++)f[k]=arguments[k+2];d.children=f}if(a&&a.defaultProps)for(e in g=a.defaultProps, | ||
g)void 0===d[e]&&(d[e]=g[e]);return{$$typeof:F,type:a,key:h,ref:n,props:d,_owner:W.current}}function Ma(a,b){return{$$typeof:F,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function X(a){return"object"===typeof a&&null!==a&&a.$$typeof===F}function Na(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function wa(a,b,c,e){if(L.length){var d=L.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return{result:a,keyPrefix:b,func:c,context:e, | ||
count:0}}function xa(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>L.length&&L.push(a)}function Y(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var h=!1;if(null===a)h=!0;else switch(d){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case F:case Oa:h=!0}}if(h)return c(e,a,""===b?"."+Z(a,0):b),1;h=0;b=""===b?".":b+":";if(Array.isArray(a))for(var n=0;n<a.length;n++){d=a[n];var g=b+Z(d,n);h+=Y(d,g,c,e)}else if(null===a||"object"!== | ||
typeof a?g=null:(g=ya&&a[ya]||a["@@iterator"],g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),n=0;!(d=a.next()).done;)d=d.value,g=b+Z(d,n++),h+=Y(d,g,c,e);else if("object"===d)throw c=""+a,Error(x(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return h}function aa(a,b,c){return null==a?0:Y(a,"",b,c)}function Z(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Na(a.key):b.toString(36)}function Pa(a,b,c){a.func.call(a.context,b,a.count++)} | ||
function Qa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?ba(a,e,c,function(a){return a}):null!=a&&(X(a)&&(a=Ma(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(za,"$&/")+"/")+c)),e.push(a))}function ba(a,b,c,e,d){var h="";null!=c&&(h=(""+c).replace(za,"$&/")+"/");b=wa(b,h,e,d);aa(a,Qa,b);xa(b)}function y(){var a=Aa.current;if(null===a)throw Error(x(321));return a}function ca(a,b){var c=a.length;a.push(b);a:for(;;){var e=c-1>>>1,d=a[e];if(void 0!==d&& | ||
0<M(d,b))a[e]=b,a[c]=d,c=e;else break a}}function u(a){a=a[0];return void 0===a?null:a}function N(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var e=0,d=a.length;e<d;){var h=2*(e+1)-1,n=a[h],g=h+1,f=a[g];if(void 0!==n&&0>M(n,c))void 0!==f&&0>M(f,n)?(a[e]=f,a[g]=c,e=g):(a[e]=n,a[h]=c,e=h);else if(void 0!==f&&0>M(f,c))a[e]=f,a[g]=c,e=g;else break a}}return b}return null}function M(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function z(a){if(null!==q){var b=G;G+= | ||
a.length;if(G+1>C){C*=2;if(524288<C){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`.");Ba();return}var c=new Int32Array(4*C);c.set(q);H=c.buffer;q=c}q.set(a,b)}}function Ba(){var a=H;C=0;q=H=null;G=0;return a}function Ca(a,b){l[3]++;null!==q&&z([1,1E3*b,a.id,a.priorityLevel])}function O(a){for(var b=u(A);null!==b;){if(null===b.callback)N(A);else if(b.startTime<=a)N(A),b.sortIndex=b.expirationTime,ca(v,b),Ca(b,a),b.isQueued= | ||
!0;else break;b=u(A)}}function da(a){I=!1;O(a);if(!D)if(null!==u(v))D=!0,J(ea);else{var b=u(A);null!==b&&P(da,b.startTime-a)}}function ea(a,b){null!==q&&z([8,1E3*b,fa]);D=!1;I&&(I=!1,ha());Q=!0;var c=m;try{try{O(b);for(k=u(v);null!==k&&(!(k.expirationTime>b)||a&&!ia());){var e=k.callback;if(null!==e){k.callback=null;m=k.priorityLevel;var d=k.expirationTime<=b,h=k,f=b;R++;l[0]=h.priorityLevel;l[1]=h.id;l[2]=R;null!==q&&z([5,1E3*f,h.id,R]);var g=e(d);b=r();"function"===typeof g?(k.callback=g,h=k,f= | ||
b,l[0]=0,l[1]=0,l[2]=0,null!==q&&z([6,1E3*f,h.id,R])):(h=k,f=b,l[0]=0,l[1]=0,l[3]--,null!==q&&z([2,1E3*f,h.id]),k.isQueued=!1,k===u(v)&&N(v));O(b)}else N(v);k=u(v)}if(null!==k)var va=!0;else{var p=u(A);null!==p&&P(da,p.startTime-b);va=!1}return va}catch(Ra){if(null!==k){var t=r();a=k;l[0]=0;l[1]=0;l[3]--;null!==q&&z([3,1E3*t,a.id]);k.isQueued=!1}throw Ra;}}finally{k=null,m=c,Q=!1,c=r(),fa++,null!==q&&z([7,1E3*c,fa])}}function Da(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823; | ||
case 4:return 1E4;default:return 5E3}}function Sa(a){var b=!1,c=null;t.forEach(function(e){try{e.onInteractionTraced(a)}catch(d){b||(b=!0,c=d)}});if(b)throw c;}function Ta(a){var b=!1,c=null;t.forEach(function(e){try{e.onInteractionScheduledWorkCompleted(a)}catch(d){b||(b=!0,c=d)}});if(b)throw c;}function Ua(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkScheduled(a,b)}catch(h){c||(c=!0,e=h)}});if(c)throw e;}function Va(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkStarted(a,b)}catch(h){c|| | ||
(c=!0,e=h)}});if(c)throw e;}function Wa(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkStopped(a,b)}catch(h){c||(c=!0,e=h)}});if(c)throw e;}function Xa(a,b){var c=!1,e=null;t.forEach(function(d){try{d.onWorkCanceled(a,b)}catch(h){c||(c=!0,e=h)}});if(c)throw e;}var w="function"===typeof Symbol&&Symbol.for,F=w?Symbol.for("react.element"):60103,Oa=w?Symbol.for("react.portal"):60106,Ya=w?Symbol.for("react.fragment"):60107,Za=w?Symbol.for("react.strict_mode"):60108,$a=w?Symbol.for("react.profiler"): | ||
60114,ab=w?Symbol.for("react.provider"):60109,bb=w?Symbol.for("react.context"):60110,cb=w?Symbol.for("react.forward_ref"):60112,db=w?Symbol.for("react.suspense"):60113,eb=w?Symbol.for("react.memo"):60115,fb=w?Symbol.for("react.lazy"):60116,ya="function"===typeof Symbol&&Symbol.iterator,gb=Object.prototype.hasOwnProperty,S=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),e=1;e<arguments.length;e++){var d=arguments[e]; | ||
if(null!=d){var h=void 0,f=c;d=Object(d);for(h in d)gb.call(d,h)&&(f[h]=d[h])}}return c},qa={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,e){},enqueueSetState:function(a,b,c,e){}},pa={};E.prototype.isReactComponent={};E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(x(85));this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this, | ||
a,"forceUpdate")};ra.prototype=E.prototype;var ja=V.prototype=new ra;ja.constructor=V;S(ja,E.prototype);ja.isPureReactComponent=!0;var W={current:null},ta=Object.prototype.hasOwnProperty,ua={key:!0,ref:!0,__self:!0,__source:!0},za=/\/+/g,L=[],Aa={current:null},ka;if("undefined"===typeof window||"function"!==typeof MessageChannel){var K=null,Ea=null,Fa=function(){if(null!==K)try{var a=r();K(!0,a);K=null}catch(b){throw setTimeout(Fa,0),b;}},hb=Date.now();var r=function(){return Date.now()-hb};var J= | ||
function(a){null!==K?setTimeout(J,0,a):(K=a,setTimeout(Fa,0))};var P=function(a,b){Ea=setTimeout(a,b)};var ha=function(){clearTimeout(Ea)};var ia=function(){return!1};var Ga=ka=function(){}}else{var la=window.performance,Ha=window.Date,ib=window.setTimeout,jb=window.clearTimeout;if("undefined"!==typeof console){var kb=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"); | ||
"function"!==typeof kb&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof la&&"function"===typeof la.now)r=function(){return la.now()};else{var lb=Ha.now();r=function(){return Ha.now()-lb}}var T=!1,U=null,ma=-1,Ia=5,Ja=0;ia=function(){return r()>=Ja};Ga=function(){};ka=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"): | ||
Ia=0<a?Math.floor(1E3/a):5};var Ka=new MessageChannel,na=Ka.port2;Ka.port1.onmessage=function(){if(null!==U){var a=r();Ja=a+Ia;try{U(!0,a)?na.postMessage(null):(T=!1,U=null)}catch(b){throw na.postMessage(null),b;}}else T=!1};J=function(a){U=a;T||(T=!0,na.postMessage(null))};P=function(a,b){ma=ib(function(){a(r())},b)};ha=function(){jb(ma);ma=-1}}var R=0,fa=0,oa="function"===typeof SharedArrayBuffer?new SharedArrayBuffer(4*Int32Array.BYTES_PER_ELEMENT):"function"===typeof ArrayBuffer?new ArrayBuffer(4* | ||
Int32Array.BYTES_PER_ELEMENT):null,l=null!==oa?new Int32Array(oa):[];l[0]=0;l[3]=0;var C=l[1]=0,H=null,q=null,G=0,v=[],A=[],mb=1,k=null,m=3,Q=!1,D=!1,I=!1,nb={__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=m;m=a;try{return b()}finally{m=c}},unstable_next:function(a){switch(m){case 1:case 2:case 3:var b= | ||
3;break;default:b=m}var c=m;m=b;try{return a()}finally{m=c}},unstable_scheduleCallback:function(a,b,c){var e=r();if("object"===typeof c&&null!==c){var d=c.delay;d="number"===typeof d&&0<d?e+d:e;c="number"===typeof c.timeout?c.timeout:Da(a)}else c=Da(a),d=e;c=d+c;a={id:mb++,callback:b,priorityLevel:a,startTime:d,expirationTime:c,sortIndex:-1,isQueued:!1};d>e?(a.sortIndex=d,ca(A,a),null===u(v)&&a===u(A)&&(I?ha():I=!0,P(da,d-e))):(a.sortIndex=c,ca(v,a),Ca(a,e),a.isQueued=!0,D||Q||(D=!0,J(ea)));return a}, | ||
unstable_cancelCallback:function(a){if(a.isQueued){var b=r();l[3]--;null!==q&&z([4,1E3*b,a.id]);a.isQueued=!1}a.callback=null},unstable_wrapCallback:function(a){var b=m;return function(){var c=m;m=b;try{return a.apply(this,arguments)}finally{m=c}}},unstable_getCurrentPriorityLevel:function(){return m},unstable_shouldYield:function(){var a=r();O(a);var b=u(v);return b!==k&&null!==k&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<k.expirationTime||ia()},unstable_requestPaint:Ga,unstable_continueExecution:function(){D|| | ||
Q||(D=!0,J(ea))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return u(v)},get unstable_now(){return r},get unstable_forceFrameRate(){return ka},unstable_Profiling:{startLoggingProfilingEvents:function(){C=131072;H=new ArrayBuffer(4*C);q=new Int32Array(H);G=0},stopLoggingProfilingEvents:Ba,sharedProfilingBuffer:oa}},ob=0,pb=0,p=null,B=null;p={current:new Set};B={current:null};var t=null;t=new Set;var La={ReactCurrentDispatcher:Aa,ReactCurrentOwner:W,IsSomeRendererActing:{current:!1}, | ||
assign:S};S(La,{Scheduler:nb,SchedulerTracing:{__proto__:null,get __interactionsRef(){return p},get __subscriberRef(){return B},unstable_clear:function(a){var b=p.current;p.current=new Set;try{return a()}finally{p.current=b}},unstable_getCurrent:function(){return p.current},unstable_getThreadID:function(){return++pb},unstable_trace:function(a,b,c){var e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,d={__count:1,id:ob++,name:a,timestamp:b},f=p.current,n=new Set(f);n.add(d);p.current=n;var g= | ||
B.current;try{if(null!==g)g.onInteractionTraced(d)}finally{try{if(null!==g)g.onWorkStarted(n,e)}finally{try{var k=c()}finally{p.current=f;try{if(null!==g)g.onWorkStopped(n,e)}finally{if(d.__count--,null!==g&&0===d.__count)g.onInteractionScheduledWorkCompleted(d)}}}}return k},unstable_wrap:function(a){function b(){var b=p.current;p.current=e;d=B.current;try{try{if(null!==d)d.onWorkStarted(e,c)}finally{try{var g=a.apply(void 0,arguments)}finally{if(p.current=b,null!==d)d.onWorkStopped(e,c)}}return g}finally{f|| | ||
(f=!0,e.forEach(function(a){a.__count--;if(null!==d&&0===a.__count)d.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=p.current,d=B.current;if(null!==d)d.onWorkScheduled(e,c);e.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){d=B.current;try{if(null!==d)d.onWorkCanceled(e,c)}finally{e.forEach(function(a){a.__count--;if(d&&0===a.__count)d.onInteractionScheduledWorkCompleted(a)})}};return b},unstable_subscribe:function(a){t.add(a); | ||
1===t.size&&(B.current={onInteractionScheduledWorkCompleted:Ta,onInteractionTraced:Sa,onWorkCanceled:Xa,onWorkScheduled:Ua,onWorkStarted:Va,onWorkStopped:Wa})},unstable_unsubscribe:function(a){t.delete(a);0===t.size&&(B.current=null)}}});f.Children={map:function(a,b,c){if(null==a)return a;var e=[];ba(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=wa(null,null,b,c);aa(a,Pa,b);xa(b)},count:function(a){return aa(a,function(){return null},null)},toArray:function(a){var b=[];ba(a, | ||
b,null,function(a){return a});return b},only:function(a){if(!X(a))throw Error(x(143));return a}};f.Component=E;f.Fragment=Ya;f.Profiler=$a;f.PureComponent=V;f.StrictMode=Za;f.Suspense=db;f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=La;f.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(x(267,a));var e=S({},a.props),d=a.key,f=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,k=W.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps; | ||
for(l in b)ta.call(b,l)&&!ua.hasOwnProperty(l)&&(e[l]=void 0===b[l]&&void 0!==g?g[l]:b[l])}var l=arguments.length-2;if(1===l)e.children=c;else if(1<l){g=Array(l);for(var m=0;m<l;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:F,type:a.type,key:d,ref:f,props:e,_owner:k}};f.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:bb,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:ab,_context:a};return a.Consumer=a};f.createElement= | ||
sa;f.createFactory=function(a){var b=sa.bind(null,a);b.type=a;return b};f.createRef=function(){return{current:null}};f.forwardRef=function(a){return{$$typeof:cb,render:a}};f.isValidElement=X;f.lazy=function(a){return{$$typeof:fb,_status:-1,_result:a}};f.memo=function(a,b){return{$$typeof:eb,type:a,compare:void 0===b?null:b}};f.useCallback=function(a,b){return y().useCallback(a,b)};f.useContext=function(a,b){return y().useContext(a,b)};f.useDebugValue=function(a,b){};f.useEffect=function(a,b){return y().useEffect(a, | ||
b)};f.useImperativeHandle=function(a,b,c){return y().useImperativeHandle(a,b,c)};f.useLayoutEffect=function(a,b){return y().useLayoutEffect(a,b)};f.useMemo=function(a,b){return y().useMemo(a,b)};f.useReducer=function(a,b,c){return y().useReducer(a,b,c)};f.useRef=function(a){return y().useRef(a)};f.useState=function(a){return y().useState(a)};f.version="16.13.0-235a6c4af"}); |
Sorry, the diff of this file is too big to display
203311
2
4511
- Removedprop-types@^15.6.2
- Removedscheduler@0.0.0-11565a207
- Removedprop-types@15.8.1(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedscheduler@0.0.0-11565a207(transitive)