react 16.4.0-alpha.3174632 → 16.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react.development.js +148 -62
- package/cjs/react.production.min.js +14 -14
- package/package.json +1 -1
- package/umd/react.development.js +166 -80
- package/umd/react.production.min.js +15 -14
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -16,31 +16,30 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
18
|
var _assign = require('object-assign');
|
|
19
|
-
var emptyObject = require('fbjs/lib/emptyObject');
|
|
20
19
|
var invariant = require('fbjs/lib/invariant');
|
|
20
|
+
var emptyObject = require('fbjs/lib/emptyObject');
|
|
21
21
|
var warning = require('fbjs/lib/warning');
|
|
22
22
|
var emptyFunction = require('fbjs/lib/emptyFunction');
|
|
23
23
|
var checkPropTypes = require('prop-types/checkPropTypes');
|
|
24
24
|
|
|
25
25
|
// TODO: this is special because it gets imported during build.
|
|
26
26
|
|
|
27
|
-
var ReactVersion = '16.4.
|
|
27
|
+
var ReactVersion = '16.4.2';
|
|
28
28
|
|
|
29
29
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
30
30
|
// nor polyfill, then a plain number is used for performance.
|
|
31
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol
|
|
32
|
-
|
|
33
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol['for']('react.timeout') : 0xeadb;
|
|
31
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
32
|
+
|
|
33
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
34
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
35
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
36
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
37
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
38
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
39
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
40
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
41
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
42
|
+
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;
|
|
44
43
|
|
|
45
44
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
46
45
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
@@ -56,12 +55,40 @@ function getIteratorFn(maybeIterable) {
|
|
|
56
55
|
return null;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
// Relying on the `invariant()` implementation lets us
|
|
59
|
+
// have preserve the format and params in the www builds.
|
|
60
|
+
|
|
61
|
+
// Exports ReactDOM.createRoot
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
// Experimental error-boundary API that can recover from errors within a single
|
|
65
|
+
// render phase
|
|
66
|
+
|
|
67
|
+
// Suspense
|
|
68
|
+
var enableSuspense = false;
|
|
69
|
+
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
// In some cases, StrictMode should also double-render lifecycles.
|
|
73
|
+
// This can be confusing for tests though,
|
|
74
|
+
// And it can be bad for performance in production.
|
|
75
|
+
// This feature flag can be used to control the behavior:
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
79
|
+
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
// Warn about legacy context API
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
// Gather advanced timing metrics for Profiler subtrees.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
// Only used in www builds.
|
|
65
92
|
|
|
66
93
|
/**
|
|
67
94
|
* Forked from fbjs/warning:
|
|
@@ -126,7 +153,7 @@ function warnNoop(publicInstance, callerName) {
|
|
|
126
153
|
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
127
154
|
return;
|
|
128
155
|
}
|
|
129
|
-
warning(false, '%s
|
|
156
|
+
warning(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);
|
|
130
157
|
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
131
158
|
}
|
|
132
159
|
}
|
|
@@ -308,7 +335,7 @@ pureComponentPrototype.isPureReactComponent = true;
|
|
|
308
335
|
// an immutable object with a single mutable value
|
|
309
336
|
function createRef() {
|
|
310
337
|
var refObject = {
|
|
311
|
-
|
|
338
|
+
current: null
|
|
312
339
|
};
|
|
313
340
|
{
|
|
314
341
|
Object.seal(refObject);
|
|
@@ -416,7 +443,7 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
416
443
|
*/
|
|
417
444
|
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
418
445
|
var element = {
|
|
419
|
-
// This tag
|
|
446
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
420
447
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
421
448
|
|
|
422
449
|
// Built-in properties that belong on the element
|
|
@@ -563,6 +590,8 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
563
590
|
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
564
591
|
*/
|
|
565
592
|
function cloneElement(element, config, children) {
|
|
593
|
+
!!(element === null || element === undefined) ? invariant(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
|
|
594
|
+
|
|
566
595
|
var propName = void 0;
|
|
567
596
|
|
|
568
597
|
// Original props are copied
|
|
@@ -777,7 +806,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
777
806
|
{
|
|
778
807
|
// Warn about using Maps as children
|
|
779
808
|
if (iteratorFn === children.entries) {
|
|
780
|
-
warning(
|
|
809
|
+
!didWarnAboutMaps ? warning(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum()) : void 0;
|
|
781
810
|
didWarnAboutMaps = true;
|
|
782
811
|
}
|
|
783
812
|
}
|
|
@@ -855,7 +884,7 @@ function forEachSingleChild(bookKeeping, child, name) {
|
|
|
855
884
|
/**
|
|
856
885
|
* Iterates through children that are typically specified as `props.children`.
|
|
857
886
|
*
|
|
858
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
887
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
|
|
859
888
|
*
|
|
860
889
|
* The provided forEachFunc(child, index) will be called for each
|
|
861
890
|
* leaf child.
|
|
@@ -907,7 +936,7 @@ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
|
|
907
936
|
/**
|
|
908
937
|
* Maps children that are typically specified as `props.children`.
|
|
909
938
|
*
|
|
910
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
939
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
|
|
911
940
|
*
|
|
912
941
|
* The provided mapFunction(child, key, index) will be called for each
|
|
913
942
|
* leaf child.
|
|
@@ -930,12 +959,12 @@ function mapChildren(children, func, context) {
|
|
|
930
959
|
* Count the number of children that are typically specified as
|
|
931
960
|
* `props.children`.
|
|
932
961
|
*
|
|
933
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
962
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrencount
|
|
934
963
|
*
|
|
935
964
|
* @param {?*} children Children tree container.
|
|
936
965
|
* @return {number} The number of children.
|
|
937
966
|
*/
|
|
938
|
-
function countChildren(children
|
|
967
|
+
function countChildren(children) {
|
|
939
968
|
return traverseAllChildren(children, emptyFunction.thatReturnsNull, null);
|
|
940
969
|
}
|
|
941
970
|
|
|
@@ -943,7 +972,7 @@ function countChildren(children, context) {
|
|
|
943
972
|
* Flatten a children object (typically specified as `props.children`) and
|
|
944
973
|
* return an array with appropriately re-keyed children.
|
|
945
974
|
*
|
|
946
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
975
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
|
|
947
976
|
*/
|
|
948
977
|
function toArray(children) {
|
|
949
978
|
var result = [];
|
|
@@ -955,7 +984,7 @@ function toArray(children) {
|
|
|
955
984
|
* Returns the first child in a collection of children and verifies that there
|
|
956
985
|
* is only one child in the collection.
|
|
957
986
|
*
|
|
958
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
987
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
|
|
959
988
|
*
|
|
960
989
|
* The current implementation of this function assumes that a single child gets
|
|
961
990
|
* passed without a wrapper, but the purpose of this helper function is to
|
|
@@ -975,16 +1004,23 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
975
1004
|
calculateChangedBits = null;
|
|
976
1005
|
} else {
|
|
977
1006
|
{
|
|
978
|
-
|
|
1007
|
+
!(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warning(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
|
|
979
1008
|
}
|
|
980
1009
|
}
|
|
981
1010
|
|
|
982
1011
|
var context = {
|
|
983
1012
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1013
|
+
_calculateChangedBits: calculateChangedBits,
|
|
1014
|
+
_defaultValue: defaultValue,
|
|
1015
|
+
_currentValue: defaultValue,
|
|
1016
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1017
|
+
// some renderers as primary and others as secondary. We only expect
|
|
1018
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1019
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1020
|
+
// Secondary renderers store their context values on separate fields.
|
|
1021
|
+
_currentValue2: defaultValue,
|
|
1022
|
+
_changedBits: 0,
|
|
1023
|
+
_changedBits2: 0,
|
|
988
1024
|
// These are circular
|
|
989
1025
|
Provider: null,
|
|
990
1026
|
Consumer: null
|
|
@@ -992,21 +1028,43 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
992
1028
|
|
|
993
1029
|
context.Provider = {
|
|
994
1030
|
$$typeof: REACT_PROVIDER_TYPE,
|
|
995
|
-
|
|
1031
|
+
_context: context
|
|
996
1032
|
};
|
|
997
1033
|
context.Consumer = context;
|
|
998
1034
|
|
|
999
1035
|
{
|
|
1000
1036
|
context._currentRenderer = null;
|
|
1037
|
+
context._currentRenderer2 = null;
|
|
1001
1038
|
}
|
|
1002
1039
|
|
|
1003
1040
|
return context;
|
|
1004
1041
|
}
|
|
1005
1042
|
|
|
1043
|
+
function forwardRef(render) {
|
|
1044
|
+
{
|
|
1045
|
+
!(typeof render === 'function') ? warning(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render) : void 0;
|
|
1046
|
+
|
|
1047
|
+
if (render != null) {
|
|
1048
|
+
!(render.defaultProps == null && render.propTypes == null) ? warning(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
return {
|
|
1053
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1054
|
+
render: render
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1006
1058
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1007
1059
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1008
1060
|
};
|
|
1009
1061
|
|
|
1062
|
+
function isValidElementType(type) {
|
|
1063
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
1064
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1065
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1010
1068
|
function getComponentName(fiber) {
|
|
1011
1069
|
var type = fiber.type;
|
|
1012
1070
|
|
|
@@ -1017,14 +1075,29 @@ function getComponentName(fiber) {
|
|
|
1017
1075
|
return type;
|
|
1018
1076
|
}
|
|
1019
1077
|
switch (type) {
|
|
1078
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
1079
|
+
return 'AsyncMode';
|
|
1080
|
+
case REACT_CONTEXT_TYPE:
|
|
1081
|
+
return 'Context.Consumer';
|
|
1020
1082
|
case REACT_FRAGMENT_TYPE:
|
|
1021
1083
|
return 'ReactFragment';
|
|
1022
1084
|
case REACT_PORTAL_TYPE:
|
|
1023
1085
|
return 'ReactPortal';
|
|
1024
|
-
case
|
|
1025
|
-
return '
|
|
1026
|
-
case
|
|
1027
|
-
return '
|
|
1086
|
+
case REACT_PROFILER_TYPE:
|
|
1087
|
+
return 'Profiler(' + fiber.pendingProps.id + ')';
|
|
1088
|
+
case REACT_PROVIDER_TYPE:
|
|
1089
|
+
return 'Context.Provider';
|
|
1090
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1091
|
+
return 'StrictMode';
|
|
1092
|
+
case REACT_TIMEOUT_TYPE:
|
|
1093
|
+
return 'Timeout';
|
|
1094
|
+
}
|
|
1095
|
+
if (typeof type === 'object' && type !== null) {
|
|
1096
|
+
switch (type.$$typeof) {
|
|
1097
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1098
|
+
var functionName = type.render.displayName || type.render.name || '';
|
|
1099
|
+
return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
|
|
1100
|
+
}
|
|
1028
1101
|
}
|
|
1029
1102
|
return null;
|
|
1030
1103
|
}
|
|
@@ -1042,8 +1115,6 @@ var propTypesMisspellWarningShown = void 0;
|
|
|
1042
1115
|
var getDisplayName = function () {};
|
|
1043
1116
|
var getStackAddendum = function () {};
|
|
1044
1117
|
|
|
1045
|
-
var VALID_FRAGMENT_PROPS = void 0;
|
|
1046
|
-
|
|
1047
1118
|
{
|
|
1048
1119
|
currentlyValidatingElement = null;
|
|
1049
1120
|
|
|
@@ -1056,10 +1127,16 @@ var VALID_FRAGMENT_PROPS = void 0;
|
|
|
1056
1127
|
return '#text';
|
|
1057
1128
|
} else if (typeof element.type === 'string') {
|
|
1058
1129
|
return element.type;
|
|
1059
|
-
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
var type = element.type;
|
|
1133
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
1060
1134
|
return 'React.Fragment';
|
|
1135
|
+
} else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
|
|
1136
|
+
var functionName = type.render.displayName || type.render.name || '';
|
|
1137
|
+
return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
|
|
1061
1138
|
} else {
|
|
1062
|
-
return
|
|
1139
|
+
return type.displayName || type.name || 'Unknown';
|
|
1063
1140
|
}
|
|
1064
1141
|
};
|
|
1065
1142
|
|
|
@@ -1073,8 +1150,6 @@ var VALID_FRAGMENT_PROPS = void 0;
|
|
|
1073
1150
|
stack += ReactDebugCurrentFrame.getStackAddendum() || '';
|
|
1074
1151
|
return stack;
|
|
1075
1152
|
};
|
|
1076
|
-
|
|
1077
|
-
VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
|
|
1078
1153
|
}
|
|
1079
1154
|
|
|
1080
1155
|
function getDeclarationErrorAddendum() {
|
|
@@ -1205,22 +1280,31 @@ function validateChildKeys(node, parentType) {
|
|
|
1205
1280
|
* @param {ReactElement} element
|
|
1206
1281
|
*/
|
|
1207
1282
|
function validatePropTypes(element) {
|
|
1208
|
-
var
|
|
1209
|
-
|
|
1283
|
+
var type = element.type;
|
|
1284
|
+
var name = void 0,
|
|
1285
|
+
propTypes = void 0;
|
|
1286
|
+
if (typeof type === 'function') {
|
|
1287
|
+
// Class or functional component
|
|
1288
|
+
name = type.displayName || type.name;
|
|
1289
|
+
propTypes = type.propTypes;
|
|
1290
|
+
} else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
|
|
1291
|
+
// ForwardRef
|
|
1292
|
+
var functionName = type.render.displayName || type.render.name || '';
|
|
1293
|
+
name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
|
|
1294
|
+
propTypes = type.propTypes;
|
|
1295
|
+
} else {
|
|
1210
1296
|
return;
|
|
1211
1297
|
}
|
|
1212
|
-
var name = componentClass.displayName || componentClass.name;
|
|
1213
|
-
var propTypes = componentClass.propTypes;
|
|
1214
1298
|
if (propTypes) {
|
|
1215
1299
|
currentlyValidatingElement = element;
|
|
1216
1300
|
checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);
|
|
1217
1301
|
currentlyValidatingElement = null;
|
|
1218
|
-
} else if (
|
|
1302
|
+
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1219
1303
|
propTypesMisspellWarningShown = true;
|
|
1220
1304
|
warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
1221
1305
|
}
|
|
1222
|
-
if (typeof
|
|
1223
|
-
|
|
1306
|
+
if (typeof type.getDefaultProps === 'function') {
|
|
1307
|
+
!type.getDefaultProps.isReactClassApproved ? warning(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
|
|
1224
1308
|
}
|
|
1225
1309
|
}
|
|
1226
1310
|
|
|
@@ -1234,7 +1318,7 @@ function validateFragmentProps(fragment) {
|
|
|
1234
1318
|
var keys = Object.keys(fragment.props);
|
|
1235
1319
|
for (var i = 0; i < keys.length; i++) {
|
|
1236
1320
|
var key = keys[i];
|
|
1237
|
-
if (
|
|
1321
|
+
if (key !== 'children' && key !== 'key') {
|
|
1238
1322
|
warning(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());
|
|
1239
1323
|
break;
|
|
1240
1324
|
}
|
|
@@ -1248,9 +1332,7 @@ function validateFragmentProps(fragment) {
|
|
|
1248
1332
|
}
|
|
1249
1333
|
|
|
1250
1334
|
function createElementWithValidation(type, props, children) {
|
|
1251
|
-
var validType =
|
|
1252
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1253
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_LOADING_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE);
|
|
1335
|
+
var validType = isValidElementType(type);
|
|
1254
1336
|
|
|
1255
1337
|
// We warn in this case but don't throw. We expect the element creation to
|
|
1256
1338
|
// succeed and there will likely be errors in render.
|
|
@@ -1352,12 +1434,12 @@ var React = {
|
|
|
1352
1434
|
PureComponent: PureComponent,
|
|
1353
1435
|
|
|
1354
1436
|
createContext: createContext,
|
|
1437
|
+
forwardRef: forwardRef,
|
|
1355
1438
|
|
|
1356
1439
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
1357
1440
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
1358
1441
|
unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
|
|
1359
|
-
|
|
1360
|
-
Timeout: REACT_TIMEOUT_TYPE,
|
|
1442
|
+
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
1361
1443
|
|
|
1362
1444
|
createElement: createElementWithValidation,
|
|
1363
1445
|
cloneElement: cloneElementWithValidation,
|
|
@@ -1373,6 +1455,10 @@ var React = {
|
|
|
1373
1455
|
}
|
|
1374
1456
|
};
|
|
1375
1457
|
|
|
1458
|
+
if (enableSuspense) {
|
|
1459
|
+
React.Timeout = REACT_TIMEOUT_TYPE;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1376
1462
|
{
|
|
1377
1463
|
_assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
1378
1464
|
// These should not be included in production.
|
|
@@ -1393,7 +1479,7 @@ var React$3 = ( React$2 && React ) || React$2;
|
|
|
1393
1479
|
|
|
1394
1480
|
// TODO: decide on the top-level export form.
|
|
1395
1481
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1396
|
-
var react = React$3
|
|
1482
|
+
var react = React$3.default ? React$3.default : React$3;
|
|
1397
1483
|
|
|
1398
1484
|
module.exports = react;
|
|
1399
1485
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var k=require("object-assign"),n=require("fbjs/lib/
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
h=0;!(d=a.next()).done;)d=d.value,f=b+
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:
|
|
22
|
-
module.exports=
|
|
10
|
+
'use strict';var k=require("object-assign"),n=require("fbjs/lib/invariant"),p=require("fbjs/lib/emptyObject"),q=require("fbjs/lib/emptyFunction"),r="function"===typeof Symbol&&Symbol.for,t=r?Symbol.for("react.element"):60103,u=r?Symbol.for("react.portal"):60106,v=r?Symbol.for("react.fragment"):60107,w=r?Symbol.for("react.strict_mode"):60108,x=r?Symbol.for("react.profiler"):60114,y=r?Symbol.for("react.provider"):60109,z=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,B=
|
|
11
|
+
r?Symbol.for("react.forward_ref"):60112;r&&Symbol.for("react.timeout");var C="function"===typeof Symbol&&Symbol.iterator;function D(a){for(var b=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)e+="&args[]="+encodeURIComponent(arguments[c+1]);n(!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. ",e)}
|
|
12
|
+
var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function F(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?D("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function G(){}
|
|
13
|
+
G.prototype=F.prototype;function H(a,b,e){this.props=a;this.context=b;this.refs=p;this.updater=e||E}var I=H.prototype=new G;I.constructor=H;k(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
|
+
function M(a,b,e){var c=void 0,d={},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)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:t,type:a,key:g,ref:h,props:d,_owner:J.current}}
|
|
15
|
+
function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===t}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,e,c){if(P.length){var d=P.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,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)}
|
|
16
|
+
function S(a,b,e,c){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 t:case u:g=!0}}if(g)return e(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++){d=a[h];var f=b+T(d,h);g+=S(d,f,e,c)}else if(null===a||"undefined"===typeof a?f=null:(f=C&&a[C]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),
|
|
17
|
+
h=0;!(d=a.next()).done;)d=d.value,f=b+T(d,h++),g+=S(d,f,e,c);else"object"===d&&(e=""+a,D("31","[object Object]"===e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return g}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function U(a,b){a.func.call(a.context,b,a.count++)}
|
|
18
|
+
function V(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,q.thatReturnsArgument):null!=a&&(N(a)&&(b=d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e,a={$$typeof:t,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function W(a,b,e,c,d){var g="";null!=e&&(g=(""+e).replace(O,"$&/")+"/");b=Q(b,g,c,d);null==a||S(a,"",V,b);R(b)}
|
|
19
|
+
var X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=Q(null,null,b,e);null==a||S(a,"",U,b);R(b)},count:function(a){return null==a?0:S(a,"",q.thatReturnsNull,null)},toArray:function(a){var b=[];W(a,b,null,q.thatReturnsArgument);return b},only:function(a){N(a)?void 0:D("143");return a}},createRef:function(){return{current:null}},Component:F,PureComponent:H,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:z,
|
|
20
|
+
_calculateChangedBits:b,_defaultValue:a,_currentValue:a,_currentValue2:a,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null};a.Provider={$$typeof:y,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:B,render:a}},Fragment:v,StrictMode:w,unstable_AsyncMode:A,unstable_Profiler:x,createElement:M,cloneElement:function(a,b,e){null===a||void 0===a?D("267",a):void 0;var c=void 0,d=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!==
|
|
21
|
+
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)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:t,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:J,
|
|
22
|
+
assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default?Z.default:Z;
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -108,23 +108,22 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
108
108
|
|
|
109
109
|
// TODO: this is special because it gets imported during build.
|
|
110
110
|
|
|
111
|
-
var ReactVersion = '16.4.
|
|
111
|
+
var ReactVersion = '16.4.2';
|
|
112
112
|
|
|
113
113
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
114
114
|
// nor polyfill, then a plain number is used for performance.
|
|
115
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol
|
|
116
|
-
|
|
117
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
var
|
|
124
|
-
var
|
|
125
|
-
var
|
|
126
|
-
var
|
|
127
|
-
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol['for']('react.timeout') : 0xeadb;
|
|
115
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
116
|
+
|
|
117
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
118
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
119
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
120
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
121
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
122
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
123
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
124
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
125
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
126
|
+
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;
|
|
128
127
|
|
|
129
128
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
130
129
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
@@ -140,31 +139,6 @@ function getIteratorFn(maybeIterable) {
|
|
|
140
139
|
return null;
|
|
141
140
|
}
|
|
142
141
|
|
|
143
|
-
/**
|
|
144
|
-
* WARNING: DO NOT manually require this module.
|
|
145
|
-
* This is a replacement for `invariant(...)` used by the error code system
|
|
146
|
-
* and will _only_ be required by the corresponding babel pass.
|
|
147
|
-
* It always throws.
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the MIT license found in the
|
|
154
|
-
* LICENSE file in the root directory of this source tree.
|
|
155
|
-
*
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
var emptyObject = {};
|
|
161
|
-
|
|
162
|
-
{
|
|
163
|
-
Object.freeze(emptyObject);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
var emptyObject_1 = emptyObject;
|
|
167
|
-
|
|
168
142
|
/**
|
|
169
143
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
170
144
|
*
|
|
@@ -219,6 +193,59 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
219
193
|
|
|
220
194
|
var invariant_1 = invariant;
|
|
221
195
|
|
|
196
|
+
// Relying on the `invariant()` implementation lets us
|
|
197
|
+
// have preserve the format and params in the www builds.
|
|
198
|
+
|
|
199
|
+
// Exports ReactDOM.createRoot
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
// Experimental error-boundary API that can recover from errors within a single
|
|
203
|
+
// render phase
|
|
204
|
+
|
|
205
|
+
// Suspense
|
|
206
|
+
var enableSuspense = false;
|
|
207
|
+
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
// In some cases, StrictMode should also double-render lifecycles.
|
|
211
|
+
// This can be confusing for tests though,
|
|
212
|
+
// And it can be bad for performance in production.
|
|
213
|
+
// This feature flag can be used to control the behavior:
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
217
|
+
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
// Warn about legacy context API
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
// Gather advanced timing metrics for Profiler subtrees.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
// Only used in www builds.
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the MIT license found in the
|
|
235
|
+
* LICENSE file in the root directory of this source tree.
|
|
236
|
+
*
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
var emptyObject = {};
|
|
242
|
+
|
|
243
|
+
{
|
|
244
|
+
Object.freeze(emptyObject);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
var emptyObject_1 = emptyObject;
|
|
248
|
+
|
|
222
249
|
/**
|
|
223
250
|
* Forked from fbjs/warning:
|
|
224
251
|
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
@@ -380,7 +407,7 @@ function warnNoop(publicInstance, callerName) {
|
|
|
380
407
|
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
381
408
|
return;
|
|
382
409
|
}
|
|
383
|
-
warning_1(false, '%s
|
|
410
|
+
warning_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);
|
|
384
411
|
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
385
412
|
}
|
|
386
413
|
}
|
|
@@ -562,7 +589,7 @@ pureComponentPrototype.isPureReactComponent = true;
|
|
|
562
589
|
// an immutable object with a single mutable value
|
|
563
590
|
function createRef() {
|
|
564
591
|
var refObject = {
|
|
565
|
-
|
|
592
|
+
current: null
|
|
566
593
|
};
|
|
567
594
|
{
|
|
568
595
|
Object.seal(refObject);
|
|
@@ -670,7 +697,7 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
670
697
|
*/
|
|
671
698
|
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
672
699
|
var element = {
|
|
673
|
-
// This tag
|
|
700
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
674
701
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
675
702
|
|
|
676
703
|
// Built-in properties that belong on the element
|
|
@@ -817,6 +844,8 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
817
844
|
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
818
845
|
*/
|
|
819
846
|
function cloneElement(element, config, children) {
|
|
847
|
+
!!(element === null || element === undefined) ? invariant_1(false, 'React.cloneElement(...): The argument must be a React element, but you passed %s.', element) : void 0;
|
|
848
|
+
|
|
820
849
|
var propName = void 0;
|
|
821
850
|
|
|
822
851
|
// Original props are copied
|
|
@@ -1031,7 +1060,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1031
1060
|
{
|
|
1032
1061
|
// Warn about using Maps as children
|
|
1033
1062
|
if (iteratorFn === children.entries) {
|
|
1034
|
-
warning_1(
|
|
1063
|
+
!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.%s', ReactDebugCurrentFrame.getStackAddendum()) : void 0;
|
|
1035
1064
|
didWarnAboutMaps = true;
|
|
1036
1065
|
}
|
|
1037
1066
|
}
|
|
@@ -1109,7 +1138,7 @@ function forEachSingleChild(bookKeeping, child, name) {
|
|
|
1109
1138
|
/**
|
|
1110
1139
|
* Iterates through children that are typically specified as `props.children`.
|
|
1111
1140
|
*
|
|
1112
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
1141
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
|
|
1113
1142
|
*
|
|
1114
1143
|
* The provided forEachFunc(child, index) will be called for each
|
|
1115
1144
|
* leaf child.
|
|
@@ -1161,7 +1190,7 @@ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
|
|
|
1161
1190
|
/**
|
|
1162
1191
|
* Maps children that are typically specified as `props.children`.
|
|
1163
1192
|
*
|
|
1164
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
1193
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
|
|
1165
1194
|
*
|
|
1166
1195
|
* The provided mapFunction(child, key, index) will be called for each
|
|
1167
1196
|
* leaf child.
|
|
@@ -1184,12 +1213,12 @@ function mapChildren(children, func, context) {
|
|
|
1184
1213
|
* Count the number of children that are typically specified as
|
|
1185
1214
|
* `props.children`.
|
|
1186
1215
|
*
|
|
1187
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
1216
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrencount
|
|
1188
1217
|
*
|
|
1189
1218
|
* @param {?*} children Children tree container.
|
|
1190
1219
|
* @return {number} The number of children.
|
|
1191
1220
|
*/
|
|
1192
|
-
function countChildren(children
|
|
1221
|
+
function countChildren(children) {
|
|
1193
1222
|
return traverseAllChildren(children, emptyFunction_1.thatReturnsNull, null);
|
|
1194
1223
|
}
|
|
1195
1224
|
|
|
@@ -1197,7 +1226,7 @@ function countChildren(children, context) {
|
|
|
1197
1226
|
* Flatten a children object (typically specified as `props.children`) and
|
|
1198
1227
|
* return an array with appropriately re-keyed children.
|
|
1199
1228
|
*
|
|
1200
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
1229
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
|
|
1201
1230
|
*/
|
|
1202
1231
|
function toArray(children) {
|
|
1203
1232
|
var result = [];
|
|
@@ -1209,7 +1238,7 @@ function toArray(children) {
|
|
|
1209
1238
|
* Returns the first child in a collection of children and verifies that there
|
|
1210
1239
|
* is only one child in the collection.
|
|
1211
1240
|
*
|
|
1212
|
-
* See https://reactjs.org/docs/react-api.html#
|
|
1241
|
+
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
|
|
1213
1242
|
*
|
|
1214
1243
|
* The current implementation of this function assumes that a single child gets
|
|
1215
1244
|
* passed without a wrapper, but the purpose of this helper function is to
|
|
@@ -1229,16 +1258,23 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
1229
1258
|
calculateChangedBits = null;
|
|
1230
1259
|
} else {
|
|
1231
1260
|
{
|
|
1232
|
-
|
|
1261
|
+
!(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warning_1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
|
|
1233
1262
|
}
|
|
1234
1263
|
}
|
|
1235
1264
|
|
|
1236
1265
|
var context = {
|
|
1237
1266
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1267
|
+
_calculateChangedBits: calculateChangedBits,
|
|
1268
|
+
_defaultValue: defaultValue,
|
|
1269
|
+
_currentValue: defaultValue,
|
|
1270
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1271
|
+
// some renderers as primary and others as secondary. We only expect
|
|
1272
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1273
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1274
|
+
// Secondary renderers store their context values on separate fields.
|
|
1275
|
+
_currentValue2: defaultValue,
|
|
1276
|
+
_changedBits: 0,
|
|
1277
|
+
_changedBits2: 0,
|
|
1242
1278
|
// These are circular
|
|
1243
1279
|
Provider: null,
|
|
1244
1280
|
Consumer: null
|
|
@@ -1246,21 +1282,43 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
1246
1282
|
|
|
1247
1283
|
context.Provider = {
|
|
1248
1284
|
$$typeof: REACT_PROVIDER_TYPE,
|
|
1249
|
-
|
|
1285
|
+
_context: context
|
|
1250
1286
|
};
|
|
1251
1287
|
context.Consumer = context;
|
|
1252
1288
|
|
|
1253
1289
|
{
|
|
1254
1290
|
context._currentRenderer = null;
|
|
1291
|
+
context._currentRenderer2 = null;
|
|
1255
1292
|
}
|
|
1256
1293
|
|
|
1257
1294
|
return context;
|
|
1258
1295
|
}
|
|
1259
1296
|
|
|
1297
|
+
function forwardRef(render) {
|
|
1298
|
+
{
|
|
1299
|
+
!(typeof render === 'function') ? warning_1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render) : void 0;
|
|
1300
|
+
|
|
1301
|
+
if (render != null) {
|
|
1302
|
+
!(render.defaultProps == null && render.propTypes == null) ? warning_1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
return {
|
|
1307
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1308
|
+
render: render
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1260
1312
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1261
1313
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1262
1314
|
};
|
|
1263
1315
|
|
|
1316
|
+
function isValidElementType(type) {
|
|
1317
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
1318
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1319
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1264
1322
|
function getComponentName(fiber) {
|
|
1265
1323
|
var type = fiber.type;
|
|
1266
1324
|
|
|
@@ -1271,14 +1329,29 @@ function getComponentName(fiber) {
|
|
|
1271
1329
|
return type;
|
|
1272
1330
|
}
|
|
1273
1331
|
switch (type) {
|
|
1332
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
1333
|
+
return 'AsyncMode';
|
|
1334
|
+
case REACT_CONTEXT_TYPE:
|
|
1335
|
+
return 'Context.Consumer';
|
|
1274
1336
|
case REACT_FRAGMENT_TYPE:
|
|
1275
1337
|
return 'ReactFragment';
|
|
1276
1338
|
case REACT_PORTAL_TYPE:
|
|
1277
1339
|
return 'ReactPortal';
|
|
1278
|
-
case
|
|
1279
|
-
return '
|
|
1280
|
-
case
|
|
1281
|
-
return '
|
|
1340
|
+
case REACT_PROFILER_TYPE:
|
|
1341
|
+
return 'Profiler(' + fiber.pendingProps.id + ')';
|
|
1342
|
+
case REACT_PROVIDER_TYPE:
|
|
1343
|
+
return 'Context.Provider';
|
|
1344
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1345
|
+
return 'StrictMode';
|
|
1346
|
+
case REACT_TIMEOUT_TYPE:
|
|
1347
|
+
return 'Timeout';
|
|
1348
|
+
}
|
|
1349
|
+
if (typeof type === 'object' && type !== null) {
|
|
1350
|
+
switch (type.$$typeof) {
|
|
1351
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1352
|
+
var functionName = type.render.displayName || type.render.name || '';
|
|
1353
|
+
return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
|
|
1354
|
+
}
|
|
1282
1355
|
}
|
|
1283
1356
|
return null;
|
|
1284
1357
|
}
|
|
@@ -1369,8 +1442,6 @@ var propTypesMisspellWarningShown = void 0;
|
|
|
1369
1442
|
var getDisplayName = function () {};
|
|
1370
1443
|
var getStackAddendum = function () {};
|
|
1371
1444
|
|
|
1372
|
-
var VALID_FRAGMENT_PROPS = void 0;
|
|
1373
|
-
|
|
1374
1445
|
{
|
|
1375
1446
|
currentlyValidatingElement = null;
|
|
1376
1447
|
|
|
@@ -1383,10 +1454,16 @@ var VALID_FRAGMENT_PROPS = void 0;
|
|
|
1383
1454
|
return '#text';
|
|
1384
1455
|
} else if (typeof element.type === 'string') {
|
|
1385
1456
|
return element.type;
|
|
1386
|
-
}
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
var type = element.type;
|
|
1460
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
1387
1461
|
return 'React.Fragment';
|
|
1462
|
+
} else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
|
|
1463
|
+
var functionName = type.render.displayName || type.render.name || '';
|
|
1464
|
+
return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
|
|
1388
1465
|
} else {
|
|
1389
|
-
return
|
|
1466
|
+
return type.displayName || type.name || 'Unknown';
|
|
1390
1467
|
}
|
|
1391
1468
|
};
|
|
1392
1469
|
|
|
@@ -1400,8 +1477,6 @@ var VALID_FRAGMENT_PROPS = void 0;
|
|
|
1400
1477
|
stack += ReactDebugCurrentFrame.getStackAddendum() || '';
|
|
1401
1478
|
return stack;
|
|
1402
1479
|
};
|
|
1403
|
-
|
|
1404
|
-
VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
|
|
1405
1480
|
}
|
|
1406
1481
|
|
|
1407
1482
|
function getDeclarationErrorAddendum() {
|
|
@@ -1532,22 +1607,31 @@ function validateChildKeys(node, parentType) {
|
|
|
1532
1607
|
* @param {ReactElement} element
|
|
1533
1608
|
*/
|
|
1534
1609
|
function validatePropTypes(element) {
|
|
1535
|
-
var
|
|
1536
|
-
|
|
1610
|
+
var type = element.type;
|
|
1611
|
+
var name = void 0,
|
|
1612
|
+
propTypes = void 0;
|
|
1613
|
+
if (typeof type === 'function') {
|
|
1614
|
+
// Class or functional component
|
|
1615
|
+
name = type.displayName || type.name;
|
|
1616
|
+
propTypes = type.propTypes;
|
|
1617
|
+
} else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
|
|
1618
|
+
// ForwardRef
|
|
1619
|
+
var functionName = type.render.displayName || type.render.name || '';
|
|
1620
|
+
name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
|
|
1621
|
+
propTypes = type.propTypes;
|
|
1622
|
+
} else {
|
|
1537
1623
|
return;
|
|
1538
1624
|
}
|
|
1539
|
-
var name = componentClass.displayName || componentClass.name;
|
|
1540
|
-
var propTypes = componentClass.propTypes;
|
|
1541
1625
|
if (propTypes) {
|
|
1542
1626
|
currentlyValidatingElement = element;
|
|
1543
1627
|
checkPropTypes_1(propTypes, element.props, 'prop', name, getStackAddendum);
|
|
1544
1628
|
currentlyValidatingElement = null;
|
|
1545
|
-
} else if (
|
|
1629
|
+
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1546
1630
|
propTypesMisspellWarningShown = true;
|
|
1547
1631
|
warning_1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
1548
1632
|
}
|
|
1549
|
-
if (typeof
|
|
1550
|
-
|
|
1633
|
+
if (typeof type.getDefaultProps === 'function') {
|
|
1634
|
+
!type.getDefaultProps.isReactClassApproved ? warning_1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
|
|
1551
1635
|
}
|
|
1552
1636
|
}
|
|
1553
1637
|
|
|
@@ -1561,7 +1645,7 @@ function validateFragmentProps(fragment) {
|
|
|
1561
1645
|
var keys = Object.keys(fragment.props);
|
|
1562
1646
|
for (var i = 0; i < keys.length; i++) {
|
|
1563
1647
|
var key = keys[i];
|
|
1564
|
-
if (
|
|
1648
|
+
if (key !== 'children' && key !== 'key') {
|
|
1565
1649
|
warning_1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());
|
|
1566
1650
|
break;
|
|
1567
1651
|
}
|
|
@@ -1575,9 +1659,7 @@ function validateFragmentProps(fragment) {
|
|
|
1575
1659
|
}
|
|
1576
1660
|
|
|
1577
1661
|
function createElementWithValidation(type, props, children) {
|
|
1578
|
-
var validType =
|
|
1579
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1580
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_LOADING_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE);
|
|
1662
|
+
var validType = isValidElementType(type);
|
|
1581
1663
|
|
|
1582
1664
|
// We warn in this case but don't throw. We expect the element creation to
|
|
1583
1665
|
// succeed and there will likely be errors in render.
|
|
@@ -1679,12 +1761,12 @@ var React = {
|
|
|
1679
1761
|
PureComponent: PureComponent,
|
|
1680
1762
|
|
|
1681
1763
|
createContext: createContext,
|
|
1764
|
+
forwardRef: forwardRef,
|
|
1682
1765
|
|
|
1683
1766
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
1684
1767
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
1685
1768
|
unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
|
|
1686
|
-
|
|
1687
|
-
Timeout: REACT_TIMEOUT_TYPE,
|
|
1769
|
+
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
1688
1770
|
|
|
1689
1771
|
createElement: createElementWithValidation,
|
|
1690
1772
|
cloneElement: cloneElementWithValidation,
|
|
@@ -1700,6 +1782,10 @@ var React = {
|
|
|
1700
1782
|
}
|
|
1701
1783
|
};
|
|
1702
1784
|
|
|
1785
|
+
if (enableSuspense) {
|
|
1786
|
+
React.Timeout = REACT_TIMEOUT_TYPE;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1703
1789
|
{
|
|
1704
1790
|
objectAssign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
1705
1791
|
// These should not be included in production.
|
|
@@ -1720,7 +1806,7 @@ var React$3 = ( React$2 && React ) || React$2;
|
|
|
1720
1806
|
|
|
1721
1807
|
// TODO: decide on the top-level export form.
|
|
1722
1808
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1723
|
-
var react = React$3
|
|
1809
|
+
var react = React$3.default ? React$3.default : React$3;
|
|
1724
1810
|
|
|
1725
1811
|
return react;
|
|
1726
1812
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(p,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
b,d,c){}};
|
|
19
|
-
b,
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
'use strict';(function(p,h){"object"===typeof exports&&"undefined"!==typeof module?module.exports=h():"function"===typeof define&&define.amd?define(h):p.React=h()})(this,function(){function p(a){for(var b=arguments.length-1,f="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)f+="&args[]="+encodeURIComponent(arguments[d+1]);O(!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. ",
|
|
10
|
+
f)}function h(a){return function(){return a}}function q(a,b,f){this.props=a;this.context=b;this.refs=D;this.updater=f||E}function F(){}function v(a,b,f){this.props=a;this.context=b;this.refs=D;this.updater=f||E}function G(a,b,f){var d=void 0,e={},k=null,c=null;if(null!=b)for(d in void 0!==b.ref&&(c=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,d)&&!I.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=f;else if(1<g){for(var m=Array(g),l=0;l<g;l++)m[l]=arguments[l+2];e.children=
|
|
11
|
+
m}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===e[d]&&(e[d]=g[d]);return{$$typeof:r,type:a,key:k,ref:c,props:e,_owner:w.current}}function x(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}function P(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function J(a,b,f,d){if(u.length){var e=u.pop();e.result=a;e.keyPrefix=b;e.func=f;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:f,context:d,count:0}}function K(a){a.result=null;a.keyPrefix=
|
|
12
|
+
null;a.func=null;a.context=null;a.count=0;10>u.length&&u.push(a)}function t(a,b,f,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 r:case Q:k=!0}}if(k)return f(d,a,""===b?"."+y(a,0):b),1;k=0;b=""===b?".":b+":";if(Array.isArray(a))for(var c=0;c<a.length;c++){e=a[c];var g=b+y(e,c);k+=t(e,g,f,d)}else if(null===a||"undefined"===typeof a?g=null:(g=L&&a[L]||a["@@iterator"],g="function"===
|
|
13
|
+
typeof g?g:null),"function"===typeof g)for(a=g.call(a),c=0;!(e=a.next()).done;)e=e.value,g=b+y(e,c++),k+=t(e,g,f,d);else"object"===e&&(f=""+a,p("31","[object Object]"===f?"object with keys {"+Object.keys(a).join(", ")+"}":f,""));return k}function y(a,b){return"object"===typeof a&&null!==a&&null!=a.key?P(a.key):b.toString(36)}function R(a,b,f){a.func.call(a.context,b,a.count++)}function S(a,b,f){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?z(a,d,f,A.thatReturnsArgument):
|
|
14
|
+
null!=a&&(x(a)&&(b=e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+f,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),d.push(a))}function z(a,b,f,d,e){var c="";null!=f&&(c=(""+f).replace(M,"$&/")+"/");b=J(b,c,d,e);null==a||t(a,"",S,b);K(b)}var N=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,B=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;
|
|
15
|
+
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 f={};"abcdefghijklmnopqrst".split("").forEach(function(a){f[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},f)).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 f=Object(a);for(var d,e=1;e<arguments.length;e++){var c=
|
|
16
|
+
Object(arguments[e]);for(var h in c)T.call(c,h)&&(f[h]=c[h]);if(N){d=N(c);for(var g=0;g<d.length;g++)U.call(c,d[g])&&(f[d[g]]=c[d[g]])}}return f},c="function"===typeof Symbol&&Symbol.for,r=c?Symbol.for("react.element"):60103,Q=c?Symbol.for("react.portal"):60106,n=c?Symbol.for("react.fragment"):60107,C=c?Symbol.for("react.strict_mode"):60108,V=c?Symbol.for("react.profiler"):60114,W=c?Symbol.for("react.provider"):60109,X=c?Symbol.for("react.context"):60110,Y=c?Symbol.for("react.async_mode"):60111,Z=
|
|
17
|
+
c?Symbol.for("react.forward_ref"):60112;c&&Symbol.for("react.timeout");var L="function"===typeof Symbol&&Symbol.iterator,O=function(a,b,f,d,c,k,h,g){if(!a){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 e=[f,d,c,k,h,g],l=0;a=Error(b.replace(/%s/g,function(){return e[l++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}},D={};c=function(){};c.thatReturns=h;c.thatReturnsFalse=h(!1);
|
|
18
|
+
c.thatReturnsTrue=h(!0);c.thatReturnsNull=h(null);c.thatReturnsThis=function(){return this};c.thatReturnsArgument=function(a){return a};var A=c,E={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}};q.prototype.isReactComponent={};q.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?p("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};q.prototype.forceUpdate=
|
|
19
|
+
function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};F.prototype=q.prototype;c=v.prototype=new F;c.constructor=v;B(c,q.prototype);c.isPureReactComponent=!0;var w={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0},M=/\/+/g,u=[];n={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=J(null,null,b,c);null==a||t(a,"",R,b);K(b)},count:function(a){return null==a?0:t(a,"",A.thatReturnsNull,
|
|
20
|
+
null)},toArray:function(a){var b=[];z(a,b,null,A.thatReturnsArgument);return b},only:function(a){x(a)?void 0:p("143");return a}},createRef:function(){return{current:null}},Component:q,PureComponent:v,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:X,_calculateChangedBits:b,_defaultValue:a,_currentValue:a,_currentValue2:a,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null};a.Provider={$$typeof:W,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Z,render:a}},
|
|
21
|
+
Fragment:n,StrictMode:C,unstable_AsyncMode:Y,unstable_Profiler:V,createElement:G,cloneElement:function(a,b,c){null===a||void 0===a?p("267",a):void 0;var d=void 0,e=B({},a.props),f=a.key,h=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,g=w.current);void 0!==b.key&&(f=""+b.key);var m=void 0;a.type&&a.type.defaultProps&&(m=a.type.defaultProps);for(d in b)H.call(b,d)&&!I.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==m?m[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<d){m=Array(d);
|
|
22
|
+
for(var l=0;l<d;l++)m[l]=arguments[l+2];e.children=m}return{$$typeof:r,type:a.type,key:f,ref:h,props:e,_owner:g}},createFactory:function(a){var b=G.bind(null,a);b.type=a;return b},isValidElement:x,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:B}};n=(C={default:n},n)||C;return n.default?n.default:n});
|