react-dom 16.7.0-alpha.2 → 16.8.0
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/build-info.json +8 -0
- package/cjs/react-dom-server.browser.development.js +123 -58
- package/cjs/react-dom-server.browser.production.min.js +20 -20
- package/cjs/react-dom-server.node.development.js +125 -59
- package/cjs/react-dom-server.node.production.min.js +23 -23
- package/cjs/react-dom-test-utils.development.js +33 -2
- package/cjs/react-dom-test-utils.production.min.js +9 -9
- package/cjs/react-dom-unstable-fire.development.js +20747 -0
- package/cjs/react-dom-unstable-fire.production.min.js +268 -0
- package/cjs/react-dom-unstable-fire.profiling.min.js +275 -0
- package/cjs/react-dom-unstable-fizz.browser.development.js +144 -0
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +11 -0
- package/cjs/react-dom-unstable-fizz.node.development.js +150 -0
- package/cjs/react-dom-unstable-fizz.node.production.min.js +11 -0
- package/cjs/react-dom-unstable-native-dependencies.development.js +1 -1
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/cjs/react-dom.development.js +4007 -3117
- package/cjs/react-dom.production.min.js +218 -209
- package/cjs/react-dom.profiling.min.js +195 -191
- package/package.json +15 -5
- package/umd/react-dom-server.browser.development.js +123 -58
- package/umd/react-dom-server.browser.production.min.js +30 -30
- package/umd/react-dom-test-utils.development.js +33 -2
- package/umd/react-dom-test-utils.production.min.js +21 -21
- package/umd/react-dom-unstable-fire.development.js +20874 -0
- package/umd/react-dom-unstable-fire.production.min.js +219 -0
- package/umd/react-dom-unstable-fire.profiling.min.js +224 -0
- package/umd/react-dom-unstable-fizz.browser.development.js +144 -0
- package/umd/react-dom-unstable-fizz.browser.production.min.js +10 -0
- package/umd/react-dom-unstable-native-dependencies.development.js +1 -1
- package/umd/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/umd/react-dom.development.js +4010 -3117
- package/umd/react-dom.production.min.js +207 -201
- package/umd/react-dom.profiling.min.js +212 -208
- package/unstable-fizz.browser.js +7 -0
- package/unstable-fizz.js +3 -0
- package/unstable-fizz.node.js +7 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0
|
|
2
2
|
* react-dom-server.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22,7 +22,7 @@ var stream = require('stream');
|
|
|
22
22
|
|
|
23
23
|
// TODO: this is special because it gets imported during build.
|
|
24
24
|
|
|
25
|
-
var ReactVersion = '16.
|
|
25
|
+
var ReactVersion = '16.8.0';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -313,7 +313,6 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
313
313
|
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
314
314
|
};
|
|
315
315
|
|
|
316
|
-
var enableHooks = true;
|
|
317
316
|
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
318
317
|
|
|
319
318
|
|
|
@@ -337,7 +336,10 @@ var warnAboutDeprecatedLifecycles = false;
|
|
|
337
336
|
|
|
338
337
|
|
|
339
338
|
// Only used in www builds.
|
|
340
|
-
var enableSuspenseServerRenderer = false;
|
|
339
|
+
var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
|
|
340
|
+
|
|
341
|
+
// Only used in www builds.
|
|
342
|
+
|
|
341
343
|
|
|
342
344
|
// Only used in www builds.
|
|
343
345
|
|
|
@@ -383,7 +385,8 @@ function validateContextBounds(context, threadID) {
|
|
|
383
385
|
// If we don't have enough slots in this context to store this threadID,
|
|
384
386
|
// fill it in without leaving any holes to ensure that the VM optimizes
|
|
385
387
|
// this as non-holey index properties.
|
|
386
|
-
|
|
388
|
+
// (Note: If `react` package is < 16.6, _threadCount is undefined.)
|
|
389
|
+
for (var i = context._threadCount | 0; i <= threadID; i++) {
|
|
387
390
|
// We assume that this is the same as the defaultValue which might not be
|
|
388
391
|
// true if we're rendering inside a secondary renderer but they are
|
|
389
392
|
// secondary because these use cases are very rare.
|
|
@@ -890,24 +893,13 @@ function createMarkupForCustomAttribute(name, value) {
|
|
|
890
893
|
return name + '=' + quoteAttributeValueForBrowser(value);
|
|
891
894
|
}
|
|
892
895
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
// Inlined Object.is polyfill.
|
|
901
|
-
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
902
|
-
var val1 = arr1[i];
|
|
903
|
-
var val2 = arr2[i];
|
|
904
|
-
if (val1 === val2 && (val1 !== 0 || 1 / val1 === 1 / val2) || val1 !== val1 && val2 !== val2 // eslint-disable-line no-self-compare
|
|
905
|
-
) {
|
|
906
|
-
continue;
|
|
907
|
-
}
|
|
908
|
-
return false;
|
|
909
|
-
}
|
|
910
|
-
return true;
|
|
896
|
+
/**
|
|
897
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
898
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
899
|
+
*/
|
|
900
|
+
function is(x, y) {
|
|
901
|
+
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
|
|
902
|
+
;
|
|
911
903
|
}
|
|
912
904
|
|
|
913
905
|
var currentlyRenderingComponent = null;
|
|
@@ -923,12 +915,47 @@ var renderPhaseUpdates = null;
|
|
|
923
915
|
var numberOfReRenders = 0;
|
|
924
916
|
var RE_RENDER_LIMIT = 25;
|
|
925
917
|
|
|
918
|
+
var isInHookUserCodeInDev = false;
|
|
919
|
+
|
|
920
|
+
// In DEV, this is the name of the currently executing primitive hook
|
|
921
|
+
var currentHookNameInDev = void 0;
|
|
922
|
+
|
|
926
923
|
function resolveCurrentlyRenderingComponent() {
|
|
927
|
-
!(currentlyRenderingComponent !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
924
|
+
!(currentlyRenderingComponent !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)') : void 0;
|
|
925
|
+
{
|
|
926
|
+
!!isInHookUserCodeInDev ? warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks') : void 0;
|
|
927
|
+
}
|
|
928
928
|
return currentlyRenderingComponent;
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
+
function areHookInputsEqual(nextDeps, prevDeps) {
|
|
932
|
+
if (prevDeps === null) {
|
|
933
|
+
{
|
|
934
|
+
warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
|
|
935
|
+
}
|
|
936
|
+
return false;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
{
|
|
940
|
+
// Don't bother comparing lengths in prod because these arrays should be
|
|
941
|
+
// passed inline.
|
|
942
|
+
if (nextDeps.length !== prevDeps.length) {
|
|
943
|
+
warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + nextDeps.join(', ') + ']', '[' + prevDeps.join(', ') + ']');
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
|
|
947
|
+
if (is(nextDeps[i], prevDeps[i])) {
|
|
948
|
+
continue;
|
|
949
|
+
}
|
|
950
|
+
return false;
|
|
951
|
+
}
|
|
952
|
+
return true;
|
|
953
|
+
}
|
|
954
|
+
|
|
931
955
|
function createHook() {
|
|
956
|
+
if (numberOfReRenders > 0) {
|
|
957
|
+
invariant(false, 'Rendered more hooks than during the previous render');
|
|
958
|
+
}
|
|
932
959
|
return {
|
|
933
960
|
memoizedState: null,
|
|
934
961
|
queue: null,
|
|
@@ -963,6 +990,9 @@ function createWorkInProgressHook() {
|
|
|
963
990
|
|
|
964
991
|
function prepareToUseHooks(componentIdentity) {
|
|
965
992
|
currentlyRenderingComponent = componentIdentity;
|
|
993
|
+
{
|
|
994
|
+
isInHookUserCodeInDev = false;
|
|
995
|
+
}
|
|
966
996
|
|
|
967
997
|
// The following should have already been reset
|
|
968
998
|
// didScheduleRenderPhaseUpdate = false;
|
|
@@ -994,6 +1024,9 @@ function finishHooks(Component, props, children, refOrContext) {
|
|
|
994
1024
|
numberOfReRenders = 0;
|
|
995
1025
|
renderPhaseUpdates = null;
|
|
996
1026
|
workInProgressHook = null;
|
|
1027
|
+
{
|
|
1028
|
+
isInHookUserCodeInDev = false;
|
|
1029
|
+
}
|
|
997
1030
|
|
|
998
1031
|
// These were reset above
|
|
999
1032
|
// currentlyRenderingComponent = null;
|
|
@@ -1009,10 +1042,16 @@ function finishHooks(Component, props, children, refOrContext) {
|
|
|
1009
1042
|
function readContext(context, observedBits) {
|
|
1010
1043
|
var threadID = currentThreadID;
|
|
1011
1044
|
validateContextBounds(context, threadID);
|
|
1045
|
+
{
|
|
1046
|
+
!!isInHookUserCodeInDev ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0;
|
|
1047
|
+
}
|
|
1012
1048
|
return context[threadID];
|
|
1013
1049
|
}
|
|
1014
1050
|
|
|
1015
1051
|
function useContext(context, observedBits) {
|
|
1052
|
+
{
|
|
1053
|
+
currentHookNameInDev = 'useContext';
|
|
1054
|
+
}
|
|
1016
1055
|
resolveCurrentlyRenderingComponent();
|
|
1017
1056
|
var threadID = currentThreadID;
|
|
1018
1057
|
validateContextBounds(context, threadID);
|
|
@@ -1024,12 +1063,20 @@ function basicStateReducer(state, action) {
|
|
|
1024
1063
|
}
|
|
1025
1064
|
|
|
1026
1065
|
function useState(initialState) {
|
|
1066
|
+
{
|
|
1067
|
+
currentHookNameInDev = 'useState';
|
|
1068
|
+
}
|
|
1027
1069
|
return useReducer(basicStateReducer,
|
|
1028
1070
|
// useReducer has a special case to support lazy useState initializers
|
|
1029
1071
|
initialState);
|
|
1030
1072
|
}
|
|
1031
1073
|
|
|
1032
|
-
function useReducer(reducer,
|
|
1074
|
+
function useReducer(reducer, initialArg, init) {
|
|
1075
|
+
{
|
|
1076
|
+
if (reducer !== basicStateReducer) {
|
|
1077
|
+
currentHookNameInDev = 'useReducer';
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1033
1080
|
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
1034
1081
|
workInProgressHook = createWorkInProgressHook();
|
|
1035
1082
|
if (isReRender) {
|
|
@@ -1048,7 +1095,13 @@ function useReducer(reducer, initialState, initialAction) {
|
|
|
1048
1095
|
// priority because it will always be the same as the current
|
|
1049
1096
|
// render's.
|
|
1050
1097
|
var _action = update.action;
|
|
1098
|
+
{
|
|
1099
|
+
isInHookUserCodeInDev = true;
|
|
1100
|
+
}
|
|
1051
1101
|
newState = reducer(newState, _action);
|
|
1102
|
+
{
|
|
1103
|
+
isInHookUserCodeInDev = false;
|
|
1104
|
+
}
|
|
1052
1105
|
update = update.next;
|
|
1053
1106
|
} while (update !== null);
|
|
1054
1107
|
|
|
@@ -1059,13 +1112,18 @@ function useReducer(reducer, initialState, initialAction) {
|
|
|
1059
1112
|
}
|
|
1060
1113
|
return [workInProgressHook.memoizedState, _dispatch];
|
|
1061
1114
|
} else {
|
|
1115
|
+
{
|
|
1116
|
+
isInHookUserCodeInDev = true;
|
|
1117
|
+
}
|
|
1118
|
+
var initialState = void 0;
|
|
1062
1119
|
if (reducer === basicStateReducer) {
|
|
1063
1120
|
// Special case for `useState`.
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1121
|
+
initialState = typeof initialArg === 'function' ? initialArg() : initialArg;
|
|
1122
|
+
} else {
|
|
1123
|
+
initialState = init !== undefined ? init(initialArg) : initialArg;
|
|
1124
|
+
}
|
|
1125
|
+
{
|
|
1126
|
+
isInHookUserCodeInDev = false;
|
|
1069
1127
|
}
|
|
1070
1128
|
workInProgressHook.memoizedState = initialState;
|
|
1071
1129
|
var _queue2 = workInProgressHook.queue = {
|
|
@@ -1077,22 +1135,32 @@ function useReducer(reducer, initialState, initialAction) {
|
|
|
1077
1135
|
}
|
|
1078
1136
|
}
|
|
1079
1137
|
|
|
1080
|
-
function useMemo(nextCreate,
|
|
1138
|
+
function useMemo(nextCreate, deps) {
|
|
1081
1139
|
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
1082
1140
|
workInProgressHook = createWorkInProgressHook();
|
|
1083
1141
|
|
|
1084
|
-
var
|
|
1142
|
+
var nextDeps = deps === undefined ? null : deps;
|
|
1085
1143
|
|
|
1086
|
-
if (workInProgressHook !== null
|
|
1144
|
+
if (workInProgressHook !== null) {
|
|
1087
1145
|
var prevState = workInProgressHook.memoizedState;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1146
|
+
if (prevState !== null) {
|
|
1147
|
+
if (nextDeps !== null) {
|
|
1148
|
+
var prevDeps = prevState[1];
|
|
1149
|
+
if (areHookInputsEqual(nextDeps, prevDeps)) {
|
|
1150
|
+
return prevState[0];
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1091
1153
|
}
|
|
1092
1154
|
}
|
|
1093
1155
|
|
|
1156
|
+
{
|
|
1157
|
+
isInHookUserCodeInDev = true;
|
|
1158
|
+
}
|
|
1094
1159
|
var nextValue = nextCreate();
|
|
1095
|
-
|
|
1160
|
+
{
|
|
1161
|
+
isInHookUserCodeInDev = false;
|
|
1162
|
+
}
|
|
1163
|
+
workInProgressHook.memoizedState = [nextValue, nextDeps];
|
|
1096
1164
|
return nextValue;
|
|
1097
1165
|
}
|
|
1098
1166
|
|
|
@@ -1112,11 +1180,10 @@ function useRef(initialValue) {
|
|
|
1112
1180
|
}
|
|
1113
1181
|
}
|
|
1114
1182
|
|
|
1115
|
-
function useMutationEffect(create, inputs) {
|
|
1116
|
-
warning$1(false, 'useMutationEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useMutationEffect should only be used in ' + 'components that render exclusively on the client.');
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
1183
|
function useLayoutEffect(create, inputs) {
|
|
1184
|
+
{
|
|
1185
|
+
currentHookNameInDev = 'useLayoutEffect';
|
|
1186
|
+
}
|
|
1120
1187
|
warning$1(false, 'useLayoutEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client.');
|
|
1121
1188
|
}
|
|
1122
1189
|
|
|
@@ -1153,6 +1220,11 @@ function dispatchAction(componentIdentity, queue, action) {
|
|
|
1153
1220
|
}
|
|
1154
1221
|
}
|
|
1155
1222
|
|
|
1223
|
+
function useCallback(callback, deps) {
|
|
1224
|
+
// Callbacks are passed as they are in the server environment.
|
|
1225
|
+
return callback;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1156
1228
|
function noop() {}
|
|
1157
1229
|
|
|
1158
1230
|
var currentThreadID = 0;
|
|
@@ -1168,17 +1240,14 @@ var Dispatcher = {
|
|
|
1168
1240
|
useReducer: useReducer,
|
|
1169
1241
|
useRef: useRef,
|
|
1170
1242
|
useState: useState,
|
|
1171
|
-
useMutationEffect: useMutationEffect,
|
|
1172
1243
|
useLayoutEffect: useLayoutEffect,
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
useCallback: noop,
|
|
1244
|
+
useCallback: useCallback,
|
|
1245
|
+
// useImperativeHandle is not run in the server environment
|
|
1246
|
+
useImperativeHandle: noop,
|
|
1177
1247
|
// Effects are not run in the server environment.
|
|
1178
|
-
useEffect: noop
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
readContext: readContext
|
|
1248
|
+
useEffect: noop,
|
|
1249
|
+
// Debugging effect
|
|
1250
|
+
useDebugValue: noop
|
|
1182
1251
|
};
|
|
1183
1252
|
|
|
1184
1253
|
var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
@@ -2421,7 +2490,7 @@ var toArray = React.Children.toArray;
|
|
|
2421
2490
|
// Each stack is an array of frames which may contain nested stacks of elements.
|
|
2422
2491
|
var currentDebugStacks = [];
|
|
2423
2492
|
|
|
2424
|
-
var
|
|
2493
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2425
2494
|
var ReactDebugCurrentFrame = void 0;
|
|
2426
2495
|
var prevGetCurrentStackImpl = null;
|
|
2427
2496
|
var getCurrentServerStackImpl = function () {
|
|
@@ -2995,12 +3064,8 @@ var ReactDOMServerRenderer = function () {
|
|
|
2995
3064
|
|
|
2996
3065
|
var prevThreadID = currentThreadID;
|
|
2997
3066
|
setCurrentThreadID(this.threadID);
|
|
2998
|
-
var prevDispatcher =
|
|
2999
|
-
|
|
3000
|
-
ReactCurrentOwner.currentDispatcher = Dispatcher;
|
|
3001
|
-
} else {
|
|
3002
|
-
ReactCurrentOwner.currentDispatcher = DispatcherWithoutHooks;
|
|
3003
|
-
}
|
|
3067
|
+
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
3068
|
+
ReactCurrentDispatcher.current = Dispatcher;
|
|
3004
3069
|
try {
|
|
3005
3070
|
// Markup generated within <Suspense> ends up buffered until we know
|
|
3006
3071
|
// nothing in that boundary suspended
|
|
@@ -3073,7 +3138,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3073
3138
|
}
|
|
3074
3139
|
return out[0];
|
|
3075
3140
|
} finally {
|
|
3076
|
-
|
|
3141
|
+
ReactCurrentDispatcher.current = prevDispatcher;
|
|
3077
3142
|
setCurrentThreadID(prevThreadID);
|
|
3078
3143
|
}
|
|
3079
3144
|
};
|
|
@@ -3566,8 +3631,9 @@ var ReactMarkupReadableStream = function (_Readable) {
|
|
|
3566
3631
|
return _this;
|
|
3567
3632
|
}
|
|
3568
3633
|
|
|
3569
|
-
ReactMarkupReadableStream.prototype._destroy = function _destroy() {
|
|
3634
|
+
ReactMarkupReadableStream.prototype._destroy = function _destroy(err, callback) {
|
|
3570
3635
|
this.partialRenderer.destroy();
|
|
3636
|
+
callback(err);
|
|
3571
3637
|
};
|
|
3572
3638
|
|
|
3573
3639
|
ReactMarkupReadableStream.prototype._read = function _read(size) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0
|
|
2
2
|
* react-dom-server.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
function r(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]);ba(!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)}
|
|
12
12
|
var v="function"===typeof Symbol&&Symbol.for,ca=v?Symbol.for("react.portal"):60106,x=v?Symbol.for("react.fragment"):60107,da=v?Symbol.for("react.strict_mode"):60108,ea=v?Symbol.for("react.profiler"):60114,z=v?Symbol.for("react.provider"):60109,fa=v?Symbol.for("react.context"):60110,ha=v?Symbol.for("react.concurrent_mode"):60111,ia=v?Symbol.for("react.forward_ref"):60112,A=v?Symbol.for("react.suspense"):60113,ja=v?Symbol.for("react.memo"):60115,ka=v?Symbol.for("react.lazy"):60116;
|
|
13
13
|
function C(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case ha:return"ConcurrentMode";case x:return"Fragment";case ca:return"Portal";case ea:return"Profiler";case da:return"StrictMode";case A:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case fa:return"Context.Consumer";case z:return"Context.Provider";case ia:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":
|
|
14
|
-
"ForwardRef");case ja:return C(a.type);case ka:if(a=1===a._status?a._result:null)return C(a)}return null}var la=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ma={};function E(a,b){for(var d=a._threadCount;d<=b;d++)a[d]=a._currentValue2,a._threadCount=d+1}function na(a,b,d){var c=a.contextType;if("object"===typeof c&&null!==c)return E(c,d),c[d];if(a=a.contextTypes){d={};for(var f in a)d[f]=b[f];b=d}else b=ma;return b}for(var F=new Uint16Array(16),G=0;15>G;G++)F[G]=G+1;F[15]=0;
|
|
14
|
+
"ForwardRef");case ja:return C(a.type);case ka:if(a=1===a._status?a._result:null)return C(a)}return null}var la=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ma={};function E(a,b){for(var d=a._threadCount|0;d<=b;d++)a[d]=a._currentValue2,a._threadCount=d+1}function na(a,b,d){var c=a.contextType;if("object"===typeof c&&null!==c)return E(c,d),c[d];if(a=a.contextTypes){d={};for(var f in a)d[f]=b[f];b=d}else b=ma;return b}for(var F=new Uint16Array(16),G=0;15>G;G++)F[G]=G+1;F[15]=0;
|
|
15
15
|
var oa=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pa=Object.prototype.hasOwnProperty,qa={},ra={};
|
|
16
16
|
function sa(a){if(pa.call(ra,a))return!0;if(pa.call(qa,a))return!1;if(oa.test(a))return ra[a]=!0;qa[a]=!0;return!1}function ta(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
|
|
17
17
|
function ua(a,b,d,c){if(null===b||"undefined"===typeof b||ta(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function H(a,b,d,c,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b}var I={};
|
|
@@ -20,32 +20,32 @@ function ua(a,b,d,c){if(null===b||"undefined"===typeof b||ta(a,b,d,c))return!0;i
|
|
|
20
20
|
["capture","download"].forEach(function(a){I[a]=new H(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){I[a]=new H(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){I[a]=new H(a,5,!1,a.toLowerCase(),null)});var J=/[\-:]([a-z])/g;function K(a){return a[1].toUpperCase()}
|
|
21
21
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(J,
|
|
22
22
|
K);I[b]=new H(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(J,K);I[b]=new H(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(J,K);I[b]=new H(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});I.tabIndex=new H("tabIndex",1,!1,"tabindex",null);var va=/["'&<>]/;
|
|
23
|
-
function L(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=va.exec(a);if(b){var d="",c,f=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a}var M=null,N=null,O=null,P=!1,
|
|
24
|
-
function wa(){return{memoizedState:null,queue:null,next:null}}function V(){null===O?null===N?(P=!1,N=O=wa()):(P=!0,O=N):null===O.next?(P=!1,O=O.next=wa()):(P=!0,O=O.next);return O}function xa(a,b,d,c){for(;
|
|
25
|
-
function za(a,b,d){M=U();O=V();if(P){var c=O.queue;b=c.dispatch;if(null!==S&&(d=S.get(c),void 0!==d)){S.delete(c);c=O.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);O.memoizedState=c;return[c,b]}return[O.memoizedState,b]}a===ya?"function"===typeof b
|
|
26
|
-
function Aa(a,b,d){25>T?void 0:r("301");if(a===M)if(
|
|
27
|
-
var X=0,Ba={readContext:function(a){var b=X;E(a,b);return a[b]},useContext:function(a){U();var b=X;E(a,b);return a[b]},useMemo:function(a,b){M=U();O=V();b=void 0
|
|
28
|
-
{current:a},O.memoizedState=a):b},useState:function(a){return za(ya,a)},
|
|
23
|
+
function L(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=va.exec(a);if(b){var d="",c,f=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a}var M=null,N=null,O=null,P=!1,Q=!1,S=null,T=0;function U(){null===M?r("307"):void 0;return M}
|
|
24
|
+
function wa(){0<T&&r("312");return{memoizedState:null,queue:null,next:null}}function V(){null===O?null===N?(P=!1,N=O=wa()):(P=!0,O=N):null===O.next?(P=!1,O=O.next=wa()):(P=!0,O=O.next);return O}function xa(a,b,d,c){for(;Q;)Q=!1,T+=1,O=null,d=a(b,c);N=M=null;T=0;O=S=null;return d}function ya(a,b){return"function"===typeof b?b(a):b}
|
|
25
|
+
function za(a,b,d){M=U();O=V();if(P){var c=O.queue;b=c.dispatch;if(null!==S&&(d=S.get(c),void 0!==d)){S.delete(c);c=O.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);O.memoizedState=c;return[c,b]}return[O.memoizedState,b]}a=a===ya?"function"===typeof b?b():b:void 0!==d?d(b):b;O.memoizedState=a;a=O.queue={last:null,dispatch:null};a=a.dispatch=Aa.bind(null,M,a);return[O.memoizedState,a]}
|
|
26
|
+
function Aa(a,b,d){25>T?void 0:r("301");if(a===M)if(Q=!0,a={action:d,next:null},null===S&&(S=new Map),d=S.get(b),void 0===d)S.set(b,a);else{for(b=d;null!==b.next;)b=b.next;b.next=a}}function W(){}
|
|
27
|
+
var X=0,Ba={readContext:function(a){var b=X;E(a,b);return a[b]},useContext:function(a){U();var b=X;E(a,b);return a[b]},useMemo:function(a,b){M=U();O=V();b=void 0===b?null:b;if(null!==O){var d=O.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f<c.length&&f<b.length;f++){var e=b[f],h=c[f];if((e!==h||0===e&&1/e!==1/h)&&(e===e||h===h)){c=!1;break a}}c=!0}}if(c)return d[0]}}a=a();O.memoizedState=[a,b];return a},useReducer:za,useRef:function(a){M=U();O=V();var b=O.memoizedState;
|
|
28
|
+
return null===b?(a={current:a},O.memoizedState=a):b},useState:function(a){return za(ya,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:W,useEffect:W,useDebugValue:W},Ca={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Da(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
|
|
29
29
|
var Ea={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Fa=p({menuitem:!0},Ea),Y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,
|
|
30
30
|
gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ga=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Ga.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})});
|
|
31
|
-
var Ha=/([A-Z])/g,Ia=/^ms-/,Z=q.Children.toArray,Ja=la.
|
|
32
|
-
function Sa(a,b,d){function c(f
|
|
33
|
-
e,l),k=xa(c
|
|
34
|
-
h;g=null;h=!1;if(m&&1===l.length)k.state=l[0];else{t=m?l[0]:k.state;var u=!0;for(m=m?1:0;m<l.length;m++){var w=l[m];w="function"===typeof w?w.call(k,t,
|
|
31
|
+
var Ha=/([A-Z])/g,Ia=/^ms-/,Z=q.Children.toArray,Ja=la.ReactCurrentDispatcher,Ka={listing:!0,pre:!0,textarea:!0},La=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ma={},Na={};function Oa(a){if(void 0===a||null===a)return a;var b="";q.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Pa=Object.prototype.hasOwnProperty,Qa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ra(a,b){void 0===a&&r("152",C(b)||"Component")}
|
|
32
|
+
function Sa(a,b,d){function c(c,f){var e=na(f,b,d),g=[],h=!1,l={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===g)return null},enqueueReplaceState:function(a,b){h=!0;g=[b]},enqueueSetState:function(a,b){if(null===g)return null;g.push(b)}},k=void 0;if(f.prototype&&f.prototype.isReactComponent){if(k=new f(c.props,e,l),"function"===typeof f.getDerivedStateFromProps){var t=f.getDerivedStateFromProps.call(null,c.props,k.state);null!=t&&(k.state=p({},k.state,t))}}else if(M={},k=f(c.props,
|
|
33
|
+
e,l),k=xa(f,c.props,k,e),null==k||null==k.render){a=k;Ra(a,f);return}k.props=c.props;k.context=e;k.updater=l;l=k.state;void 0===l&&(k.state=l=null);if("function"===typeof k.UNSAFE_componentWillMount||"function"===typeof k.componentWillMount)if("function"===typeof k.componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&k.componentWillMount(),"function"===typeof k.UNSAFE_componentWillMount&&"function"!==typeof f.getDerivedStateFromProps&&k.UNSAFE_componentWillMount(),g.length){l=g;var m=
|
|
34
|
+
h;g=null;h=!1;if(m&&1===l.length)k.state=l[0];else{t=m?l[0]:k.state;var u=!0;for(m=m?1:0;m<l.length;m++){var w=l[m];w="function"===typeof w?w.call(k,t,c.props,e):w;null!=w&&(u?(u=!1,t=p({},t,w)):p(t,w))}k.state=t}}else g=null;a=k.render();Ra(a,f);c=void 0;if("function"===typeof k.getChildContext&&(e=f.childContextTypes,"object"===typeof e)){c=k.getChildContext();for(var R in c)R in e?void 0:r("108",C(f)||"Unknown",R)}c&&(b=p({},b,c))}for(;q.isValidElement(a);){var f=a,e=f.type;if("function"!==typeof e)break;
|
|
35
35
|
c(f,e)}return{child:a,context:b}}
|
|
36
36
|
var Ta=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");q.isValidElement(b)?b.type!==x?b=[b]:(b=b.props.children,b=q.isValidElement(b)?[b]:Z(b)):b=Z(b);b={type:null,domNamespace:Ca.html,children:b,childIndex:0,context:ma,footer:""};var c=F[0];if(0===c){var f=F;c=f.length;var e=2*c;65536>=e?void 0:r("304");var h=new Uint16Array(e);h.set(f);F=h;F[0]=c+1;for(f=c;f<e-1;f++)F[f]=f+1;F[e-1]=0}else F[0]=F[c];this.threadID=c;this.stack=[b];this.exhausted=
|
|
37
37
|
!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;var a=this.threadID;F[a]=F[0];F[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,f=this.threadID;E(c,f);var e=c[f];this.contextStack[b]=c;this.contextValueStack[b]=e;c[f]=a.props.value};a.prototype.popProvider=function(){var a=
|
|
38
|
-
this.contextIndex,d=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;d[this.threadID]=c};a.prototype.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=Ja.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
this.contextIndex,d=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;d[this.threadID]=c};a.prototype.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=Ja.current;Ja.current=Ba;try{for(var f=[""],e=!1;f[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;F[h]=F[0];F[0]=h;break}var g=this.stack[this.stack.length-1];if(e||g.childIndex>=g.children.length){var D=g.footer;""!==
|
|
39
|
+
D&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===g.type)this.currentSelectValue=null;else if(null!=g.type&&null!=g.type.type&&g.type.type.$$typeof===z)this.popProvider(g.type);else if(g.type===A){this.suspenseDepth--;var B=f.pop();if(e){e=!1;var n=g.fallbackFrame;n?void 0:r("303");this.stack.push(n);continue}else f[this.suspenseDepth]+=B}f[this.suspenseDepth]+=D}else{var l=g.children[g.childIndex++],k="";try{k+=this.render(l,g.context,g.domNamespace)}catch(t){throw t;}finally{}f.length<=
|
|
40
|
+
this.suspenseDepth&&f.push("");f[this.suspenseDepth]+=k}}return f[0]}finally{Ja.current=c,X=b}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return L(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+L(c);this.previousWasTextNode=!0;return L(c)}d=Sa(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!q.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;b===ca?r("257"):void 0;
|
|
41
|
+
r("258",b.toString())}a=Z(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case da:case ha:case ea:case x:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case A:r("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case ia:M={};var e=b.render(a.props,a.ref);e=xa(b.render,a.props,e,a.ref);e=Z(e);this.stack.push({type:null,
|
|
42
|
+
domNamespace:c,children:e,childIndex:0,context:d,footer:""});return"";case ja:return a=[q.createElement(b.type,p({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case z:return b=Z(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case fa:b=a.type;e=a.props;var h=this.threadID;E(b,h);b=Z(e.children(b[h]));this.stack.push({type:a,domNamespace:c,children:b,
|
|
43
|
+
childIndex:0,context:d,footer:""});return"";case ka:r("295")}r("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();c===Ca.html&&Da(b);Ma.hasOwnProperty(b)||(La.test(b)?void 0:r("65",b),Ma[b]=!0);var e=a.props;if("input"===b)e=p({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:e.defaultChecked});else if("textarea"===b){var h=e.value;if(null==h){h=e.defaultValue;var g=e.children;
|
|
44
|
+
null!=g&&(null!=h?r("92"):void 0,Array.isArray(g)&&(1>=g.length?void 0:r("93"),g=g[0]),h=""+g);null==h&&(h="")}e=p({},e,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=e.value?e.value:e.defaultValue,e=p({},e,{value:void 0});else if("option"===b){g=this.currentSelectValue;var D=Oa(e.children);if(null!=g){var B=null!=e.value?e.value+"":D;h=!1;if(Array.isArray(g))for(var n=0;n<g.length;n++){if(""+g[n]===B){h=!0;break}}else h=""+g===B;e=p({selected:void 0,children:void 0},
|
|
45
|
+
e,{selected:h,children:D})}}if(h=e)Fa[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?r("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?r("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?void 0:r("61")),null!=h.style&&"object"!==typeof h.style?r("62",""):void 0;h=e;g=this.makeStaticMarkup;D=1===this.stack.length;B="<"+a.type;for(y in h)if(Pa.call(h,y)){var l=h[y];if(null!=l){if("style"===y){n=void 0;var k="",t="";for(n in l)if(l.hasOwnProperty(n)){var m=
|
|
46
|
+
0===n.indexOf("--"),u=l[n];if(null!=u){var w=n;if(Na.hasOwnProperty(w))w=Na[w];else{var R=w.replace(Ha,"-$1").toLowerCase().replace(Ia,"-ms-");w=Na[w]=R}k+=t+w+":";t=n;m=null==u||"boolean"===typeof u||""===u?"":m||"number"!==typeof u||0===u||Y.hasOwnProperty(t)&&Y[t]?(""+u).trim():u+"px";k+=m;t=";"}}l=k||null}n=null;b:if(m=b,u=h,-1===m.indexOf("-"))m="string"===typeof u.is;else switch(m){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":m=
|
|
47
47
|
!1;break b;default:m=!0}if(m)Qa.hasOwnProperty(y)||(n=y,n=sa(n)&&null!=l?n+"="+('"'+L(l)+'"'):"");else{m=y;n=l;l=I.hasOwnProperty(m)?I[m]:null;if(u="style"!==m)u=null!==l?0===l.type:!(2<m.length)||"o"!==m[0]&&"O"!==m[0]||"n"!==m[1]&&"N"!==m[1]?!1:!0;u||ua(m,n,l,!1)?n="":null!==l?(m=l.attributeName,l=l.type,n=3===l||4===l&&!0===n?m+'=""':m+"="+('"'+L(n)+'"')):n=sa(m)?m+"="+('"'+L(n)+'"'):""}n&&(B+=" "+n)}}g||D&&(B+=' data-reactroot=""');var y=B;h="";Ea.hasOwnProperty(b)?y+="/>":(y+=">",h="</"+a.type+
|
|
48
48
|
">");a:{g=e.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,"string"===typeof g||"number"===typeof g){g=L(g);break a}g=null}null!=g?(e=[],Ka[b]&&"\n"===g.charAt(0)&&(y+="\n"),y+=g):e=Z(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?Da(a):"http://www.w3.org/2000/svg"===c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:e,childIndex:0,context:d,footer:h});this.previousWasTextNode=
|
|
49
49
|
!1;return y};return a}();function Ua(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}
|
|
50
|
-
var Va=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.partialRenderer=new Ta(d,c);return f}Ua(b,a);b.prototype._destroy=function(){this.partialRenderer.destroy()};b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.destroy(c)}};
|
|
51
|
-
return b}(aa.Readable),Wa={renderToString:function(a){a=new Ta(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Ta(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(a){return new Va(a,!1)},renderToStaticNodeStream:function(a){return new Va(a,!0)},version:"16.
|
|
50
|
+
var Va=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.partialRenderer=new Ta(d,c);return f}Ua(b,a);b.prototype._destroy=function(a,b){this.partialRenderer.destroy();b(a)};b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.destroy(c)}};
|
|
51
|
+
return b}(aa.Readable),Wa={renderToString:function(a){a=new Ta(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Ta(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(a){return new Va(a,!1)},renderToStaticNodeStream:function(a){return new Va(a,!0)},version:"16.8.0"},Xa={default:Wa},Ya=Xa&&Wa||Xa;module.exports=Ya.default||Ya;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -831,6 +831,7 @@ var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
|
|
|
831
831
|
// Note that events in this list will *not* be listened to at the top level
|
|
832
832
|
// unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
|
|
833
833
|
|
|
834
|
+
// for .act's return value
|
|
834
835
|
var findDOMNode = ReactDOM.findDOMNode;
|
|
835
836
|
// Keep in sync with ReactDOMUnstableNativeDependencies.js
|
|
836
837
|
// and ReactDOM.js:
|
|
@@ -939,6 +940,9 @@ function validateClassInstance(inst, methodName) {
|
|
|
939
940
|
invariant(false, '%s(...): the first argument must be a React class instance. Instead received: %s.', methodName, received);
|
|
940
941
|
}
|
|
941
942
|
|
|
943
|
+
// stub element used by act() when flushing effects
|
|
944
|
+
var actContainerElement = document.createElement('div');
|
|
945
|
+
|
|
942
946
|
/**
|
|
943
947
|
* Utilities for making it easy to test React components.
|
|
944
948
|
*
|
|
@@ -1133,7 +1137,34 @@ var ReactTestUtils = {
|
|
|
1133
1137
|
},
|
|
1134
1138
|
|
|
1135
1139
|
Simulate: null,
|
|
1136
|
-
SimulateNative: {}
|
|
1140
|
+
SimulateNative: {},
|
|
1141
|
+
|
|
1142
|
+
act: function (callback) {
|
|
1143
|
+
// note: keep these warning messages in sync with
|
|
1144
|
+
// createReactNoop.js and ReactTestRenderer.js
|
|
1145
|
+
var result = ReactDOM.unstable_batchedUpdates(callback);
|
|
1146
|
+
{
|
|
1147
|
+
if (result !== undefined) {
|
|
1148
|
+
var addendum = void 0;
|
|
1149
|
+
if (result !== null && typeof result.then === 'function') {
|
|
1150
|
+
addendum = '\n\nIt looks like you wrote ReactTestUtils.act(async () => ...), ' + 'or returned a Promise from the callback passed to it. ' + 'Putting asynchronous logic inside ReactTestUtils.act(...) is not supported.\n';
|
|
1151
|
+
} else {
|
|
1152
|
+
addendum = ' You returned: ' + result;
|
|
1153
|
+
}
|
|
1154
|
+
warningWithoutStack$1(false, 'The callback passed to ReactTestUtils.act(...) function must not return anything.%s', addendum);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
ReactDOM.render(React.createElement('div', null), actContainerElement);
|
|
1158
|
+
// we want the user to not expect a return,
|
|
1159
|
+
// but we want to warn if they use it like they can await on it.
|
|
1160
|
+
return {
|
|
1161
|
+
then: function () {
|
|
1162
|
+
{
|
|
1163
|
+
warningWithoutStack$1(false, 'Do not await the result of calling ReactTestUtils.act(...), it is not a Promise.');
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1137
1168
|
};
|
|
1138
1169
|
|
|
1139
1170
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.8.0
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,14 +20,14 @@ A&&(E=document.createElement("div").style,"AnimationEvent"in window||(delete C.a
|
|
|
20
20
|
var G=F("animationend"),H=F("animationiteration"),I=F("animationstart"),J=F("transitionend"),K=m.findDOMNode,N=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,O=N[0],P=N[4],Q=N[5],R=N[6],S=N[7],aa=N[8],T=N[9],ba=N[10];function U(){}
|
|
21
21
|
function ca(a,b){if(!a)return[];a=t(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}
|
|
22
22
|
function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;p("286",b,a)}}
|
|
23
|
-
var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===
|
|
24
|
-
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?ca(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)||
|
|
25
|
-
d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){V(a,"findRenderedDOMComponentWithClass");a=W.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){V(a,"scryRenderedDOMComponentsWithTag");return W.findAllInRenderedTree(a,function(a){return W.isDOMComponent(a)&&
|
|
26
|
-
b){V(a,"findRenderedDOMComponentWithTag");a=W.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){V(a,"scryRenderedComponentsWithType");return W.findAllInRenderedTree(a,function(a){return W.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){V(a,
|
|
27
|
-
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{}
|
|
28
|
-
function
|
|
29
|
-
function
|
|
23
|
+
var da=document.createElement("div"),W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return l.isValidElement(a)},isElementOfType:function(a,b){return l.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&l.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===
|
|
24
|
+
typeof a.setState},isCompositeComponentWithType:function(a,b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?ca(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);Array.isArray(b)||
|
|
25
|
+
(void 0===b?p("11"):void 0,b=b.split(/\s+/));return b.every(function(a){return-1!==d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){V(a,"findRenderedDOMComponentWithClass");a=W.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){V(a,"scryRenderedDOMComponentsWithTag");return W.findAllInRenderedTree(a,function(a){return W.isDOMComponent(a)&&
|
|
26
|
+
a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,b){V(a,"findRenderedDOMComponentWithTag");a=W.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){V(a,"scryRenderedComponentsWithType");return W.findAllInRenderedTree(a,function(a){return W.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){V(a,
|
|
27
|
+
"findRenderedComponentWithType");a=W.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return l.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){m.unstable_batchedUpdates(a);
|
|
28
|
+
m.render(l.createElement("div",null),da);return{then:function(){}}}};function ea(a){return function(b,c){l.isValidElement(b)?p("228"):void 0;W.isCompositeComponent(b)?p("229"):void 0;var e=P[a],d=new U;d.target=b;d.type=a.toLowerCase();var k=O(b),f=new w(e,k,d,b);f.persist();g(f,c);e.phasedRegistrationNames?Q(f):R(f);m.unstable_batchedUpdates(function(){S(b);ba(f)});aa()}}W.Simulate={};var X=void 0;for(X in P)W.Simulate[X]=ea(X);
|
|
29
|
+
function fa(a,b){return function(c,e){var d=new U(a);g(d,e);W.isDOMComponent(c)?(c=K(c),d.target=c,T(b,d)):c.tagName&&(d.target=c,T(b,d))}}
|
|
30
30
|
[["abort","abort"],[G,"animationEnd"],[H,"animationIteration"],[I,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit","dragExit"],
|
|
31
31
|
["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove","mouseMove"],
|
|
32
32
|
["mouseout","mouseOut"],["mouseover","mouseOver"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["playing","playing"],["progress","progress"],["ratechange","rateChange"],["scroll","scroll"],["seeked","seeked"],["seeking","seeking"],["selectionchange","selectionChange"],["stalled","stalled"],["suspend","suspend"],["textInput","textInput"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchmove","touchMove"],["touchstart",
|
|
33
|
-
"touchStart"],[J,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];W.SimulateNative[b]=
|
|
33
|
+
"touchStart"],[J,"transitionEnd"],["volumechange","volumeChange"],["waiting","waiting"],["wheel","wheel"]].forEach(function(a){var b=a[1];W.SimulateNative[b]=fa(b,a[0])});var Y={default:W},Z=Y&&W||Y;module.exports=Z.default||Z;
|