react 16.6.0 → 16.6.1
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 +142 -53
- package/cjs/react.production.min.js +4 -4
- package/package.json +2 -2
- package/umd/react.development.js +159 -123
- package/umd/react.production.min.js +24 -24
- package/umd/react.profiling.min.js +28 -29
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,7 +20,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
|
|
|
20
20
|
|
|
21
21
|
// TODO: this is special because it gets imported during build.
|
|
22
22
|
|
|
23
|
-
var ReactVersion = '16.6.
|
|
23
|
+
var ReactVersion = '16.6.1';
|
|
24
24
|
|
|
25
25
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
26
26
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -33,6 +33,7 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
|
|
|
33
33
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
34
34
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
35
35
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
36
|
+
|
|
36
37
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
37
38
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
38
39
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
@@ -53,6 +54,43 @@ function getIteratorFn(maybeIterable) {
|
|
|
53
54
|
return null;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
var enableHooks = false;
|
|
58
|
+
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
// In some cases, StrictMode should also double-render lifecycles.
|
|
62
|
+
// This can be confusing for tests though,
|
|
63
|
+
// And it can be bad for performance in production.
|
|
64
|
+
// This feature flag can be used to control the behavior:
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
68
|
+
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Gather advanced timing metrics for Profiler subtrees.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// Trace which interactions trigger each commit.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// Only used in www builds.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// Only used in www builds.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
// React Fire: prevent the value and checked attributes from syncing
|
|
87
|
+
// with their related DOM properties
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
91
|
+
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
92
|
+
var enableStableConcurrentModeAPIs = false;
|
|
93
|
+
|
|
56
94
|
/**
|
|
57
95
|
* Use invariant() to assert state which your program assumes to be true.
|
|
58
96
|
*
|
|
@@ -177,63 +215,24 @@ var warningWithoutStack = function () {};
|
|
|
177
215
|
return;
|
|
178
216
|
}
|
|
179
217
|
if (typeof console !== 'undefined') {
|
|
180
|
-
var
|
|
218
|
+
var argsWithFormat = args.map(function (item) {
|
|
181
219
|
return '' + item;
|
|
182
|
-
})
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
f = _args$map[5],
|
|
189
|
-
g = _args$map[6],
|
|
190
|
-
h = _args$map[7];
|
|
191
|
-
|
|
192
|
-
var message = 'Warning: ' + format;
|
|
193
|
-
|
|
194
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
195
|
-
// https://github.com/facebook/react/issues/13610
|
|
196
|
-
switch (args.length) {
|
|
197
|
-
case 0:
|
|
198
|
-
console.error(message);
|
|
199
|
-
break;
|
|
200
|
-
case 1:
|
|
201
|
-
console.error(message, a);
|
|
202
|
-
break;
|
|
203
|
-
case 2:
|
|
204
|
-
console.error(message, a, b);
|
|
205
|
-
break;
|
|
206
|
-
case 3:
|
|
207
|
-
console.error(message, a, b, c);
|
|
208
|
-
break;
|
|
209
|
-
case 4:
|
|
210
|
-
console.error(message, a, b, c, d);
|
|
211
|
-
break;
|
|
212
|
-
case 5:
|
|
213
|
-
console.error(message, a, b, c, d, e);
|
|
214
|
-
break;
|
|
215
|
-
case 6:
|
|
216
|
-
console.error(message, a, b, c, d, e, f);
|
|
217
|
-
break;
|
|
218
|
-
case 7:
|
|
219
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
220
|
-
break;
|
|
221
|
-
case 8:
|
|
222
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
223
|
-
break;
|
|
224
|
-
default:
|
|
225
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
226
|
-
}
|
|
220
|
+
});
|
|
221
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
222
|
+
|
|
223
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
224
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
225
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
227
226
|
}
|
|
228
227
|
try {
|
|
229
228
|
// --- Welcome to debugging React ---
|
|
230
229
|
// This error was thrown as a convenience so that you can use this stack
|
|
231
230
|
// to find the callsite that caused this warning to fire.
|
|
232
231
|
var argIndex = 0;
|
|
233
|
-
var
|
|
232
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
234
233
|
return args[argIndex++];
|
|
235
234
|
});
|
|
236
|
-
throw new Error(
|
|
235
|
+
throw new Error(message);
|
|
237
236
|
} catch (x) {}
|
|
238
237
|
};
|
|
239
238
|
}
|
|
@@ -1369,7 +1368,9 @@ function lazy(ctor) {
|
|
|
1369
1368
|
|
|
1370
1369
|
function forwardRef(render) {
|
|
1371
1370
|
{
|
|
1372
|
-
if (
|
|
1371
|
+
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1372
|
+
warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
|
|
1373
|
+
} else if (typeof render !== 'function') {
|
|
1373
1374
|
warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
|
|
1374
1375
|
} else {
|
|
1375
1376
|
!(
|
|
@@ -1407,6 +1408,75 @@ function memo(type, compare) {
|
|
|
1407
1408
|
};
|
|
1408
1409
|
}
|
|
1409
1410
|
|
|
1411
|
+
function resolveDispatcher() {
|
|
1412
|
+
var dispatcher = ReactCurrentOwner.currentDispatcher;
|
|
1413
|
+
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
1414
|
+
return dispatcher;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
function useContext(Context, observedBits) {
|
|
1418
|
+
var dispatcher = resolveDispatcher();
|
|
1419
|
+
{
|
|
1420
|
+
// TODO: add a more generic warning for invalid values.
|
|
1421
|
+
if (Context._context !== undefined) {
|
|
1422
|
+
var realContext = Context._context;
|
|
1423
|
+
// Don't deduplicate because this legitimately causes bugs
|
|
1424
|
+
// and nobody should be using this in existing code.
|
|
1425
|
+
if (realContext.Consumer === Context) {
|
|
1426
|
+
warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
|
|
1427
|
+
} else if (realContext.Provider === Context) {
|
|
1428
|
+
warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
return dispatcher.useContext(Context, observedBits);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
function useState(initialState) {
|
|
1436
|
+
var dispatcher = resolveDispatcher();
|
|
1437
|
+
return dispatcher.useState(initialState);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
function useReducer(reducer, initialState, initialAction) {
|
|
1441
|
+
var dispatcher = resolveDispatcher();
|
|
1442
|
+
return dispatcher.useReducer(reducer, initialState, initialAction);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
function useRef(initialValue) {
|
|
1446
|
+
var dispatcher = resolveDispatcher();
|
|
1447
|
+
return dispatcher.useRef(initialValue);
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
function useEffect(create, inputs) {
|
|
1451
|
+
var dispatcher = resolveDispatcher();
|
|
1452
|
+
return dispatcher.useEffect(create, inputs);
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
function useMutationEffect(create, inputs) {
|
|
1456
|
+
var dispatcher = resolveDispatcher();
|
|
1457
|
+
return dispatcher.useMutationEffect(create, inputs);
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
function useLayoutEffect(create, inputs) {
|
|
1461
|
+
var dispatcher = resolveDispatcher();
|
|
1462
|
+
return dispatcher.useLayoutEffect(create, inputs);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
function useCallback(callback, inputs) {
|
|
1466
|
+
var dispatcher = resolveDispatcher();
|
|
1467
|
+
return dispatcher.useCallback(callback, inputs);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
function useMemo(create, inputs) {
|
|
1471
|
+
var dispatcher = resolveDispatcher();
|
|
1472
|
+
return dispatcher.useMemo(create, inputs);
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
function useImperativeMethods(ref, create, inputs) {
|
|
1476
|
+
var dispatcher = resolveDispatcher();
|
|
1477
|
+
return dispatcher.useImperativeMethods(ref, create, inputs);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1410
1480
|
/**
|
|
1411
1481
|
* ReactElementValidator provides a wrapper around a element factory
|
|
1412
1482
|
* which validates the props passed to the element. This is intended to be
|
|
@@ -1709,9 +1779,7 @@ var React = {
|
|
|
1709
1779
|
|
|
1710
1780
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
1711
1781
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
1712
|
-
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
|
|
1713
1782
|
Suspense: REACT_SUSPENSE_TYPE,
|
|
1714
|
-
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
1715
1783
|
|
|
1716
1784
|
createElement: createElementWithValidation,
|
|
1717
1785
|
cloneElement: cloneElementWithValidation,
|
|
@@ -1723,6 +1791,27 @@ var React = {
|
|
|
1723
1791
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
|
1724
1792
|
};
|
|
1725
1793
|
|
|
1794
|
+
if (enableStableConcurrentModeAPIs) {
|
|
1795
|
+
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1796
|
+
React.Profiler = REACT_PROFILER_TYPE;
|
|
1797
|
+
} else {
|
|
1798
|
+
React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1799
|
+
React.unstable_Profiler = REACT_PROFILER_TYPE;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
if (enableHooks) {
|
|
1803
|
+
React.useCallback = useCallback;
|
|
1804
|
+
React.useContext = useContext;
|
|
1805
|
+
React.useEffect = useEffect;
|
|
1806
|
+
React.useImperativeMethods = useImperativeMethods;
|
|
1807
|
+
React.useLayoutEffect = useLayoutEffect;
|
|
1808
|
+
React.useMemo = useMemo;
|
|
1809
|
+
React.useMutationEffect = useMutationEffect;
|
|
1810
|
+
React.useReducer = useReducer;
|
|
1811
|
+
React.useRef = useRef;
|
|
1812
|
+
React.useState = useState;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1726
1815
|
|
|
1727
1816
|
|
|
1728
1817
|
var React$2 = Object.freeze({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -19,6 +19,6 @@ function T(a,b,e,c){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var
|
|
|
19
19
|
0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(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 V(a,b,e){return null==a?0:T(a,"",b,e)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}
|
|
20
20
|
function da(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,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),c.push(a))}function W(a,b,e,c,d){var g="";null!=e&&(g=(""+e).replace(P,"$&/")+"/");b=R(b,g,c,d);V(a,da,b);S(b)}
|
|
21
21
|
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=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D("143");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
|
|
22
|
-
_currentValue:a,_currentValue2:a,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
_currentValue:a,_currentValue2:a,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,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!==
|
|
23
|
+
b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.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:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.6.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,
|
|
24
|
+
assign:k}};X.unstable_ConcurrentMode=x;X.unstable_Profiler=u;var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react"
|
|
6
6
|
],
|
|
7
|
-
"version": "16.6.
|
|
7
|
+
"version": "16.6.1",
|
|
8
8
|
"homepage": "https://reactjs.org/",
|
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
|
10
10
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"loose-envify": "^1.1.0",
|
|
25
25
|
"object-assign": "^4.1.1",
|
|
26
26
|
"prop-types": "^15.6.2",
|
|
27
|
-
"scheduler": "^0.
|
|
27
|
+
"scheduler": "^0.11.0"
|
|
28
28
|
},
|
|
29
29
|
"browserify": {
|
|
30
30
|
"transform": [
|
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
// TODO: this is special because it gets imported during build.
|
|
19
19
|
|
|
20
|
-
var ReactVersion = '16.6.
|
|
20
|
+
var ReactVersion = '16.6.1';
|
|
21
21
|
|
|
22
22
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
23
23
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -30,6 +30,7 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
|
|
|
30
30
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
31
31
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
32
32
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
33
|
+
|
|
33
34
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
34
35
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
35
36
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
@@ -50,6 +51,43 @@ function getIteratorFn(maybeIterable) {
|
|
|
50
51
|
return null;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
var enableHooks = false;
|
|
55
|
+
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// In some cases, StrictMode should also double-render lifecycles.
|
|
59
|
+
// This can be confusing for tests though,
|
|
60
|
+
// And it can be bad for performance in production.
|
|
61
|
+
// This feature flag can be used to control the behavior:
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
65
|
+
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
// Gather advanced timing metrics for Profiler subtrees.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Trace which interactions trigger each commit.
|
|
75
|
+
var enableSchedulerTracing = true;
|
|
76
|
+
|
|
77
|
+
// Only used in www builds.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// Only used in www builds.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// React Fire: prevent the value and checked attributes from syncing
|
|
84
|
+
// with their related DOM properties
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
88
|
+
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
89
|
+
var enableStableConcurrentModeAPIs = false;
|
|
90
|
+
|
|
53
91
|
/*
|
|
54
92
|
object-assign
|
|
55
93
|
(c) Sindre Sorhus
|
|
@@ -265,63 +303,24 @@ var warningWithoutStack = function () {};
|
|
|
265
303
|
return;
|
|
266
304
|
}
|
|
267
305
|
if (typeof console !== 'undefined') {
|
|
268
|
-
var
|
|
306
|
+
var argsWithFormat = args.map(function (item) {
|
|
269
307
|
return '' + item;
|
|
270
|
-
})
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
f = _args$map[5],
|
|
277
|
-
g = _args$map[6],
|
|
278
|
-
h = _args$map[7];
|
|
279
|
-
|
|
280
|
-
var message = 'Warning: ' + format;
|
|
281
|
-
|
|
282
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
283
|
-
// https://github.com/facebook/react/issues/13610
|
|
284
|
-
switch (args.length) {
|
|
285
|
-
case 0:
|
|
286
|
-
console.error(message);
|
|
287
|
-
break;
|
|
288
|
-
case 1:
|
|
289
|
-
console.error(message, a);
|
|
290
|
-
break;
|
|
291
|
-
case 2:
|
|
292
|
-
console.error(message, a, b);
|
|
293
|
-
break;
|
|
294
|
-
case 3:
|
|
295
|
-
console.error(message, a, b, c);
|
|
296
|
-
break;
|
|
297
|
-
case 4:
|
|
298
|
-
console.error(message, a, b, c, d);
|
|
299
|
-
break;
|
|
300
|
-
case 5:
|
|
301
|
-
console.error(message, a, b, c, d, e);
|
|
302
|
-
break;
|
|
303
|
-
case 6:
|
|
304
|
-
console.error(message, a, b, c, d, e, f);
|
|
305
|
-
break;
|
|
306
|
-
case 7:
|
|
307
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
308
|
-
break;
|
|
309
|
-
case 8:
|
|
310
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
311
|
-
break;
|
|
312
|
-
default:
|
|
313
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
314
|
-
}
|
|
308
|
+
});
|
|
309
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
310
|
+
|
|
311
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
312
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
313
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
315
314
|
}
|
|
316
315
|
try {
|
|
317
316
|
// --- Welcome to debugging React ---
|
|
318
317
|
// This error was thrown as a convenience so that you can use this stack
|
|
319
318
|
// to find the callsite that caused this warning to fire.
|
|
320
319
|
var argIndex = 0;
|
|
321
|
-
var
|
|
320
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
322
321
|
return args[argIndex++];
|
|
323
322
|
});
|
|
324
|
-
throw new Error(
|
|
323
|
+
throw new Error(message);
|
|
325
324
|
} catch (x) {}
|
|
326
325
|
};
|
|
327
326
|
}
|
|
@@ -559,6 +558,7 @@ var IDLE_PRIORITY = maxSigned31BitInt;
|
|
|
559
558
|
// Callbacks are stored as a circular, doubly linked list.
|
|
560
559
|
var firstCallbackNode = null;
|
|
561
560
|
|
|
561
|
+
var currentDidTimeout = false;
|
|
562
562
|
var currentPriorityLevel = NormalPriority;
|
|
563
563
|
var currentEventStartTime = -1;
|
|
564
564
|
var currentExpirationTime = -1;
|
|
@@ -570,35 +570,6 @@ var isHostCallbackScheduled = false;
|
|
|
570
570
|
|
|
571
571
|
var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
|
|
572
572
|
|
|
573
|
-
var timeRemaining;
|
|
574
|
-
if (hasNativePerformanceNow) {
|
|
575
|
-
timeRemaining = function () {
|
|
576
|
-
if (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime) {
|
|
577
|
-
// A higher priority callback was scheduled. Yield so we can switch to
|
|
578
|
-
// working on that.
|
|
579
|
-
return 0;
|
|
580
|
-
}
|
|
581
|
-
// We assume that if we have a performance timer that the rAF callback
|
|
582
|
-
// gets a performance timer value. Not sure if this is always true.
|
|
583
|
-
var remaining = getFrameDeadline() - performance.now();
|
|
584
|
-
return remaining > 0 ? remaining : 0;
|
|
585
|
-
};
|
|
586
|
-
} else {
|
|
587
|
-
timeRemaining = function () {
|
|
588
|
-
// Fallback to Date.now()
|
|
589
|
-
if (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime) {
|
|
590
|
-
return 0;
|
|
591
|
-
}
|
|
592
|
-
var remaining = getFrameDeadline() - Date.now();
|
|
593
|
-
return remaining > 0 ? remaining : 0;
|
|
594
|
-
};
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
var deadlineObject = {
|
|
598
|
-
timeRemaining: timeRemaining,
|
|
599
|
-
didTimeout: false
|
|
600
|
-
};
|
|
601
|
-
|
|
602
573
|
function ensureHostCallbackIsScheduled() {
|
|
603
574
|
if (isExecutingCallback) {
|
|
604
575
|
// Don't schedule work yet; wait until the next time we yield.
|
|
@@ -643,7 +614,7 @@ function flushFirstCallback() {
|
|
|
643
614
|
currentExpirationTime = expirationTime;
|
|
644
615
|
var continuationCallback;
|
|
645
616
|
try {
|
|
646
|
-
continuationCallback = callback(
|
|
617
|
+
continuationCallback = callback();
|
|
647
618
|
} finally {
|
|
648
619
|
currentPriorityLevel = previousPriorityLevel;
|
|
649
620
|
currentExpirationTime = previousExpirationTime;
|
|
@@ -703,7 +674,6 @@ function flushImmediateWork() {
|
|
|
703
674
|
// Confirm we've exited the outer most event handler
|
|
704
675
|
currentEventStartTime === -1 && firstCallbackNode !== null && firstCallbackNode.priorityLevel === ImmediatePriority) {
|
|
705
676
|
isExecutingCallback = true;
|
|
706
|
-
deadlineObject.didTimeout = true;
|
|
707
677
|
try {
|
|
708
678
|
do {
|
|
709
679
|
flushFirstCallback();
|
|
@@ -724,7 +694,8 @@ function flushImmediateWork() {
|
|
|
724
694
|
|
|
725
695
|
function flushWork(didTimeout) {
|
|
726
696
|
isExecutingCallback = true;
|
|
727
|
-
|
|
697
|
+
var previousDidTimeout = currentDidTimeout;
|
|
698
|
+
currentDidTimeout = didTimeout;
|
|
728
699
|
try {
|
|
729
700
|
if (didTimeout) {
|
|
730
701
|
// Flush all the expired callbacks without yielding.
|
|
@@ -746,11 +717,12 @@ function flushWork(didTimeout) {
|
|
|
746
717
|
if (firstCallbackNode !== null) {
|
|
747
718
|
do {
|
|
748
719
|
flushFirstCallback();
|
|
749
|
-
} while (firstCallbackNode !== null &&
|
|
720
|
+
} while (firstCallbackNode !== null && !shouldYieldToHost());
|
|
750
721
|
}
|
|
751
722
|
}
|
|
752
723
|
} finally {
|
|
753
724
|
isExecutingCallback = false;
|
|
725
|
+
currentDidTimeout = previousDidTimeout;
|
|
754
726
|
if (firstCallbackNode !== null) {
|
|
755
727
|
// There's still work remaining. Request another callback.
|
|
756
728
|
ensureHostCallbackIsScheduled();
|
|
@@ -905,6 +877,10 @@ function unstable_getCurrentPriorityLevel() {
|
|
|
905
877
|
return currentPriorityLevel;
|
|
906
878
|
}
|
|
907
879
|
|
|
880
|
+
function unstable_shouldYield() {
|
|
881
|
+
return !currentDidTimeout && (firstCallbackNode !== null && firstCallbackNode.expirationTime < currentExpirationTime || shouldYieldToHost());
|
|
882
|
+
}
|
|
883
|
+
|
|
908
884
|
// The remaining code is essentially a polyfill for requestIdleCallback. It
|
|
909
885
|
// works by scheduling a requestAnimationFrame, storing the time for the start
|
|
910
886
|
// of the frame, then scheduling a postMessage which gets scheduled after paint.
|
|
@@ -967,14 +943,14 @@ if (hasNativePerformanceNow) {
|
|
|
967
943
|
|
|
968
944
|
var requestHostCallback;
|
|
969
945
|
var cancelHostCallback;
|
|
970
|
-
var
|
|
946
|
+
var shouldYieldToHost;
|
|
971
947
|
|
|
972
948
|
if (typeof window !== 'undefined' && window._schedMock) {
|
|
973
949
|
// Dynamic injection, only for testing purposes.
|
|
974
950
|
var impl = window._schedMock;
|
|
975
951
|
requestHostCallback = impl[0];
|
|
976
952
|
cancelHostCallback = impl[1];
|
|
977
|
-
|
|
953
|
+
shouldYieldToHost = impl[2];
|
|
978
954
|
} else if (
|
|
979
955
|
// If Scheduler runs in a non-DOM environment, it falls back to a naive
|
|
980
956
|
// implementation using setTimeout.
|
|
@@ -1009,8 +985,8 @@ typeof window.addEventListener !== 'function') {
|
|
|
1009
985
|
cancelHostCallback = function () {
|
|
1010
986
|
_callback = null;
|
|
1011
987
|
};
|
|
1012
|
-
|
|
1013
|
-
return
|
|
988
|
+
shouldYieldToHost = function () {
|
|
989
|
+
return false;
|
|
1014
990
|
};
|
|
1015
991
|
getCurrentTime = function () {
|
|
1016
992
|
return _currentTime === -1 ? 0 : _currentTime;
|
|
@@ -1041,8 +1017,8 @@ typeof window.addEventListener !== 'function') {
|
|
|
1041
1017
|
var previousFrameTime = 33;
|
|
1042
1018
|
var activeFrameTime = 33;
|
|
1043
1019
|
|
|
1044
|
-
|
|
1045
|
-
return frameDeadline;
|
|
1020
|
+
shouldYieldToHost = function () {
|
|
1021
|
+
return frameDeadline <= getCurrentTime();
|
|
1046
1022
|
};
|
|
1047
1023
|
|
|
1048
1024
|
// We use the postMessage trick to defer idle work until after the repaint.
|
|
@@ -1161,37 +1137,6 @@ typeof window.addEventListener !== 'function') {
|
|
|
1161
1137
|
};
|
|
1162
1138
|
}
|
|
1163
1139
|
|
|
1164
|
-
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
1168
|
-
// This can be confusing for tests though,
|
|
1169
|
-
// And it can be bad for performance in production.
|
|
1170
|
-
// This feature flag can be used to control the behavior:
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
1174
|
-
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
// Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
// Gather advanced timing metrics for Profiler subtrees.
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
// Trace which interactions trigger each commit.
|
|
1184
|
-
var enableSchedulerTracing = true;
|
|
1185
|
-
|
|
1186
|
-
// Only used in www builds.
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
// Only used in www builds.
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
// React Fire: prevent the value and checked attributes from syncing
|
|
1193
|
-
// with their related DOM properties
|
|
1194
|
-
|
|
1195
1140
|
var DEFAULT_THREAD_ID = 0;
|
|
1196
1141
|
|
|
1197
1142
|
// Counters used to generate unique IDs.
|
|
@@ -1706,6 +1651,7 @@ var ReactSharedInternals = {
|
|
|
1706
1651
|
objectAssign(ReactSharedInternals, {
|
|
1707
1652
|
Scheduler: {
|
|
1708
1653
|
unstable_cancelCallback: unstable_cancelCallback,
|
|
1654
|
+
unstable_shouldYield: unstable_shouldYield,
|
|
1709
1655
|
unstable_now: getCurrentTime,
|
|
1710
1656
|
unstable_scheduleCallback: unstable_scheduleCallback,
|
|
1711
1657
|
unstable_runWithPriority: unstable_runWithPriority,
|
|
@@ -2500,7 +2446,9 @@ function lazy(ctor) {
|
|
|
2500
2446
|
|
|
2501
2447
|
function forwardRef(render) {
|
|
2502
2448
|
{
|
|
2503
|
-
if (
|
|
2449
|
+
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
2450
|
+
warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
|
|
2451
|
+
} else if (typeof render !== 'function') {
|
|
2504
2452
|
warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
|
|
2505
2453
|
} else {
|
|
2506
2454
|
!(
|
|
@@ -2538,6 +2486,75 @@ function memo(type, compare) {
|
|
|
2538
2486
|
};
|
|
2539
2487
|
}
|
|
2540
2488
|
|
|
2489
|
+
function resolveDispatcher() {
|
|
2490
|
+
var dispatcher = ReactCurrentOwner.currentDispatcher;
|
|
2491
|
+
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
2492
|
+
return dispatcher;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
function useContext(Context, observedBits) {
|
|
2496
|
+
var dispatcher = resolveDispatcher();
|
|
2497
|
+
{
|
|
2498
|
+
// TODO: add a more generic warning for invalid values.
|
|
2499
|
+
if (Context._context !== undefined) {
|
|
2500
|
+
var realContext = Context._context;
|
|
2501
|
+
// Don't deduplicate because this legitimately causes bugs
|
|
2502
|
+
// and nobody should be using this in existing code.
|
|
2503
|
+
if (realContext.Consumer === Context) {
|
|
2504
|
+
warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
|
|
2505
|
+
} else if (realContext.Provider === Context) {
|
|
2506
|
+
warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
return dispatcher.useContext(Context, observedBits);
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
function useState(initialState) {
|
|
2514
|
+
var dispatcher = resolveDispatcher();
|
|
2515
|
+
return dispatcher.useState(initialState);
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
function useReducer(reducer, initialState, initialAction) {
|
|
2519
|
+
var dispatcher = resolveDispatcher();
|
|
2520
|
+
return dispatcher.useReducer(reducer, initialState, initialAction);
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
function useRef(initialValue) {
|
|
2524
|
+
var dispatcher = resolveDispatcher();
|
|
2525
|
+
return dispatcher.useRef(initialValue);
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
function useEffect(create, inputs) {
|
|
2529
|
+
var dispatcher = resolveDispatcher();
|
|
2530
|
+
return dispatcher.useEffect(create, inputs);
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
function useMutationEffect(create, inputs) {
|
|
2534
|
+
var dispatcher = resolveDispatcher();
|
|
2535
|
+
return dispatcher.useMutationEffect(create, inputs);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
function useLayoutEffect(create, inputs) {
|
|
2539
|
+
var dispatcher = resolveDispatcher();
|
|
2540
|
+
return dispatcher.useLayoutEffect(create, inputs);
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
function useCallback(callback, inputs) {
|
|
2544
|
+
var dispatcher = resolveDispatcher();
|
|
2545
|
+
return dispatcher.useCallback(callback, inputs);
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
function useMemo(create, inputs) {
|
|
2549
|
+
var dispatcher = resolveDispatcher();
|
|
2550
|
+
return dispatcher.useMemo(create, inputs);
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
function useImperativeMethods(ref, create, inputs) {
|
|
2554
|
+
var dispatcher = resolveDispatcher();
|
|
2555
|
+
return dispatcher.useImperativeMethods(ref, create, inputs);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2541
2558
|
/**
|
|
2542
2559
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2543
2560
|
*
|
|
@@ -2945,9 +2962,7 @@ var React = {
|
|
|
2945
2962
|
|
|
2946
2963
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
2947
2964
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
2948
|
-
unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
|
|
2949
2965
|
Suspense: REACT_SUSPENSE_TYPE,
|
|
2950
|
-
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
2951
2966
|
|
|
2952
2967
|
createElement: createElementWithValidation,
|
|
2953
2968
|
cloneElement: cloneElementWithValidation,
|
|
@@ -2959,6 +2974,27 @@ var React = {
|
|
|
2959
2974
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
|
2960
2975
|
};
|
|
2961
2976
|
|
|
2977
|
+
if (enableStableConcurrentModeAPIs) {
|
|
2978
|
+
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2979
|
+
React.Profiler = REACT_PROFILER_TYPE;
|
|
2980
|
+
} else {
|
|
2981
|
+
React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2982
|
+
React.unstable_Profiler = REACT_PROFILER_TYPE;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
if (enableHooks) {
|
|
2986
|
+
React.useCallback = useCallback;
|
|
2987
|
+
React.useContext = useContext;
|
|
2988
|
+
React.useEffect = useEffect;
|
|
2989
|
+
React.useImperativeMethods = useImperativeMethods;
|
|
2990
|
+
React.useLayoutEffect = useLayoutEffect;
|
|
2991
|
+
React.useMemo = useMemo;
|
|
2992
|
+
React.useMutationEffect = useMutationEffect;
|
|
2993
|
+
React.useReducer = useReducer;
|
|
2994
|
+
React.useRef = useRef;
|
|
2995
|
+
React.useState = useState;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2962
2998
|
|
|
2963
2999
|
|
|
2964
3000
|
var React$2 = Object.freeze({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,26 +6,26 @@
|
|
|
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(
|
|
10
|
-
1;throw a;}}function p(a){for(var b=arguments.length-1,
|
|
11
|
-
|
|
12
|
-
d
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
'use strict';(function(N,p){"object"===typeof exports&&"undefined"!==typeof module?module.exports=p():"function"===typeof define&&define.amd?define(p):N.React=p()})(this,function(){function N(a,b,d,f,n,g,c,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var e=[d,f,n,g,c,h],ta=0;a=Error(b.replace(/%s/g,function(){return e[ta++]}));a.name="Invariant Violation"}a.framesToPop=
|
|
10
|
+
1;throw a;}}function p(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=0;f<b;f++)d+="&args[]="+encodeURIComponent(arguments[f+1]);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. ",d)}function q(a,b,d){this.props=a;this.context=b;this.refs=ca;this.updater=d||da}function ea(){}function O(a,b,d){this.props=a;this.context=b;this.refs=ca;this.updater=
|
|
11
|
+
d||da}function v(){if(!w){var a=c.expirationTime;D?P():D=!0;E(ua,a)}}function Q(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;d=a.callback;b=a.expirationTime;a=a.priorityLevel;var f=k,n=F;k=a;F=b;try{var g=d()}finally{k=f,F=n}if("function"===typeof g)if(g={callback:g,priorityLevel:a,expirationTime:b,next:null,previous:null},null===c)c=g.next=g.previous=g;else{d=null;a=c;do{if(a.expirationTime>=b){d=a;break}a=a.next}while(a!==c);null===d?d=
|
|
12
|
+
c:d===c&&(c=g,v());b=d.previous;b.next=d.previous=g;g.next=d;g.previous=b}}function R(){if(-1===m&&null!==c&&1===c.priorityLevel){w=!0;try{do Q();while(null!==c&&1===c.priorityLevel)}finally{w=!1,null!==c?v():D=!1}}}function ua(a){w=!0;var b=G;G=a;try{if(a)for(;null!==c;){var d=l();if(c.expirationTime<=d){do Q();while(null!==c&&c.expirationTime<=d)}else break}else if(null!==c){do Q();while(null!==c&&!H())}}finally{w=!1,G=b,null!==c?v():D=!1,R()}}function fa(a,b,d){var f=void 0,n={},c=null,e=null;
|
|
13
|
+
if(null!=b)for(f in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(c=""+b.key),b)ha.call(b,f)&&!ia.hasOwnProperty(f)&&(n[f]=b[f]);var h=arguments.length-2;if(1===h)n.children=d;else if(1<h){for(var k=Array(h),l=0;l<h;l++)k[l]=arguments[l+2];n.children=k}if(a&&a.defaultProps)for(f in h=a.defaultProps,h)void 0===n[f]&&(n[f]=h[f]);return{$$typeof:x,type:a,key:c,ref:e,props:n,_owner:S.current}}function va(a,b){return{$$typeof:x,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function T(a){return"object"===
|
|
14
|
+
typeof a&&null!==a&&a.$$typeof===x}function wa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function ja(a,b,d,f){if(I.length){var c=I.pop();c.result=a;c.keyPrefix=b;c.func=d;c.context=f;c.count=0;return c}return{result:a,keyPrefix:b,func:d,context:f,count:0}}function ka(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>I.length&&I.push(a)}function U(a,b,d,f){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;var g=!1;if(null===
|
|
15
|
+
a)g=!0;else switch(c){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case x:case xa:g=!0}}if(g)return d(f,a,""===b?"."+V(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var e=0;e<a.length;e++){c=a[e];var h=b+V(c,e);g+=U(c,h,d,f)}else if(null===a||"object"!==typeof a?h=null:(h=la&&a[la]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),e=0;!(c=a.next()).done;)c=c.value,h=b+V(c,e++),g+=U(c,h,d,f);else"object"===c&&(d=""+a,p("31",
|
|
16
|
+
"[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function W(a,b,d){return null==a?0:U(a,"",b,d)}function V(a,b){return"object"===typeof a&&null!==a&&null!=a.key?wa(a.key):b.toString(36)}function ya(a,b,d){a.func.call(a.context,b,a.count++)}function za(a,b,d){var f=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X(a,f,d,function(a){return a}):null!=a&&(T(a)&&(a=va(a,c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(ma,"$&/")+"/")+
|
|
17
|
+
d)),f.push(a))}function X(a,b,d,f,c){var e="";null!=d&&(e=(""+d).replace(ma,"$&/")+"/");b=ja(b,e,f,c);W(a,za,b);ka(b)}var e="function"===typeof Symbol&&Symbol.for,x=e?Symbol.for("react.element"):60103,xa=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,Aa=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,Ba=e?Symbol.for("react.provider"):60109,Ca=e?Symbol.for("react.context"):60110,Da=e?Symbol.for("react.concurrent_mode"):60111,Ea=e?Symbol.for("react.forward_ref"):
|
|
18
|
+
60112,Fa=e?Symbol.for("react.suspense"):60113,Ga=e?Symbol.for("react.memo"):60115,Ha=e?Symbol.for("react.lazy"):60116,la="function"===typeof Symbol&&Symbol.iterator,na=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,J=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;
|
|
19
|
+
var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(f){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var d=Object(a);for(var c,e=1;e<arguments.length;e++){var g=Object(arguments[e]);for(var k in g)Ia.call(g,k)&&(d[k]=g[k]);if(na){c=na(g);for(var h=0;h<c.length;h++)Ja.call(g,c[h])&&(d[c[h]]=g[c[h]])}}return d},
|
|
20
|
+
da={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,d){},enqueueReplaceState:function(a,b,d,c){},enqueueSetState:function(a,b,d,c){}},ca={};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=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ea.prototype=q.prototype;e=O.prototype=new ea;e.constructor=O;J(e,q.prototype);
|
|
21
|
+
e.isPureReactComponent=!0;var c=null,G=!1,k=3,m=-1,F=-1,w=!1,D=!1,Ka=Date,La="function"===typeof setTimeout?setTimeout:void 0,Ma="function"===typeof clearTimeout?clearTimeout:void 0,oa="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,pa="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,qa,ra,Y=function(a){qa=oa(function(b){Ma(ra);a(b)});ra=La(function(){pa(qa);a(l())},100)};if("object"===typeof performance&&"function"===typeof performance.now){var Na=performance;
|
|
22
|
+
var l=function(){return Na.now()}}else l=function(){return Ka.now()};if("undefined"!==typeof window&&window._schedMock){e=window._schedMock;var E=e[0];var P=e[1];var H=e[2]}else if("undefined"===typeof window||"function"!==typeof window.addEventListener){var y=null,z=-1,sa=function(a,b){if(null!==y){var d=y;y=null;try{z=b,d(a)}finally{z=-1}}};E=function(a,b){-1!==z?setTimeout(E,0,a,b):(y=a,setTimeout(sa,b,!0,b),setTimeout(sa,1073741823,!1,1073741823))};P=function(){y=null};H=function(){return!1};
|
|
23
|
+
l=function(){return-1===z?0:z}}else{"undefined"!==typeof console&&("function"!==typeof oa&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof pa&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var u=null,K=!1,A=-1,B=!1,Z=!1,L=0,M=33,C=33;H=function(){return L<=l()};var aa=
|
|
24
|
+
"__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){if(a.source===window&&a.data===aa){K=!1;a=u;var b=A;u=null;A=-1;var d=l(),c=!1;if(0>=L-d)if(-1!==b&&b<=d)c=!0;else{B||(B=!0,Y(ba));u=a;A=b;return}if(null!==a){Z=!0;try{a(c)}finally{Z=!1}}}},!1);var ba=function(a){if(null!==u){Y(ba);var b=a-L+C;b<C&&M<C?(8>b&&(b=8),C=b<M?M:b):M=b;L=a+C;K||(K=!0,window.postMessage(aa,"*"))}else B=!1};E=function(a,b){u=a;A=b;Z||0>b?window.postMessage(aa,"*"):B||(B=
|
|
25
|
+
!0,Y(ba))};P=function(){u=null;K=!1;A=-1}}var Oa=0,S={current:null,currentDispatcher:null};e={ReactCurrentOwner:S,assign:J};J(e,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}},unstable_shouldYield:function(){return!G&&(null!==c&&c.expirationTime<F||H())},unstable_now:l,unstable_scheduleCallback:function(a,b){var d=-1!==m?m:l();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=
|
|
26
|
+
d+b.timeout;else switch(k){case 1:b=d+-1;break;case 2:b=d+250;break;case 4:b=d+1073741823;break;default:b=d+5E3}a={callback:a,priorityLevel:k,expirationTime:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,v();else{d=null;var f=c;do{if(f.expirationTime>b){d=f;break}f=f.next}while(f!==c);null===d?d=c:d===c&&(c=a,v());b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:break;default:a=3}var d=k,c=m;
|
|
27
|
+
k=a;m=l();try{return b()}finally{k=d,m=c,R()}},unstable_wrapCallback:function(a){var b=k;return function(){var d=k,c=m;k=b;m=l();try{return a.apply(this,arguments)}finally{k=d,m=c,R()}}},unstable_getCurrentPriorityLevel:function(){return k}},SchedulerTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Oa},unstable_subscribe:function(a){},unstable_trace:function(a,b,d){return d()},
|
|
28
|
+
unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var ha=Object.prototype.hasOwnProperty,ia={key:!0,ref:!0,__self:!0,__source:!0},ma=/\/+/g,I=[];r={Children:{map:function(a,b,d){if(null==a)return a;var c=[];X(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=ja(null,null,b,d);W(a,ya,b);ka(b)},count:function(a){return W(a,function(){return null},null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){T(a)?void 0:p("143");
|
|
29
|
+
return a}},createRef:function(){return{current:null}},Component:q,PureComponent:O,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ca,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,Provider:null,Consumer:null};a.Provider={$$typeof:Ba,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Ea,render:a}},lazy:function(a){return{$$typeof:Ha,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Ga,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:Aa,
|
|
30
|
+
Suspense:Fa,createElement:fa,cloneElement:function(a,b,d){null===a||void 0===a?p("267",a):void 0;var c=void 0,e=J({},a.props),g=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=S.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)ha.call(b,c)&&!ia.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];e.children=
|
|
31
|
+
l}return{$$typeof:x,type:a.type,key:g,ref:k,props:e,_owner:h}},createFactory:function(a){var b=fa.bind(null,a);b.type=a;return b},isValidElement:T,version:"16.6.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e};r.unstable_ConcurrentMode=Da;r.unstable_Profiler=t;t=(t={default:r},r)||t;return t.default||t});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.profiling.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,31 +6,30 @@
|
|
|
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(
|
|
10
|
-
1;throw a;}}function r(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);
|
|
11
|
-
c||ha}function
|
|
12
|
-
f:c===f&&(f=
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
null
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
c
|
|
32
|
-
if(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
ja.bind(null,a);b.type=a;return b},isValidElement:V,version:"16.6.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:g};u=(aa={default:u},u)||aa;return u.default||u});
|
|
9
|
+
'use strict';(function(Q,r){"object"===typeof exports&&"undefined"!==typeof module?module.exports=r():"function"===typeof define&&define.amd?define(r):Q.React=r()})(this,function(){function Q(a,b,c,d,e,g,f,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var wa=[c,d,e,g,f,h],k=0;a=Error(b.replace(/%s/g,function(){return wa[k++]}));a.name="Invariant Violation"}a.framesToPop=
|
|
10
|
+
1;throw a;}}function r(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);Q(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function u(a,b,c){this.props=a;this.context=b;this.refs=fa;this.updater=c||ha}function ia(){}function R(a,b,c){this.props=a;this.context=b;this.refs=fa;this.updater=
|
|
11
|
+
c||ha}function y(){if(!z){var a=f.expirationTime;G?S():G=!0;H(xa,a)}}function T(){var a=f,b=f.next;if(f===b)f=null;else{var c=f.previous;f=c.next=b;b.previous=c}a.next=a.previous=null;c=a.callback;b=a.expirationTime;a=a.priorityLevel;var d=l,e=I;l=a;I=b;try{var g=c()}finally{l=d,I=e}if("function"===typeof g)if(g={callback:g,priorityLevel:a,expirationTime:b,next:null,previous:null},null===f)f=g.next=g.previous=g;else{c=null;a=f;do{if(a.expirationTime>=b){c=a;break}a=a.next}while(a!==f);null===c?c=
|
|
12
|
+
f:c===f&&(f=g,y());b=c.previous;b.next=c.previous=g;g.next=c;g.previous=b}}function U(){if(-1===q&&null!==f&&1===f.priorityLevel){z=!0;try{do T();while(null!==f&&1===f.priorityLevel)}finally{z=!1,null!==f?y():G=!1}}}function xa(a){z=!0;var b=J;J=a;try{if(a)for(;null!==f;){var c=p();if(f.expirationTime<=c){do T();while(null!==f&&f.expirationTime<=c)}else break}else if(null!==f){do T();while(null!==f&&!K())}}finally{z=!1,J=b,null!==f?y():G=!1,U()}}function ya(a){var b=!1,c=null;n.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||
|
|
13
|
+
(b=!0,c=e)}});if(b)throw c;}function za(a){var b=!1,c=null;n.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function Aa(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(g){c||(c=!0,d=g)}});if(c)throw d;}function Ba(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkStarted(a,b)}catch(g){c||(c=!0,d=g)}});if(c)throw d;}function Ca(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkStopped(a,b)}catch(g){c||(c=
|
|
14
|
+
!0,d=g)}});if(c)throw d;}function Da(a,b){var c=!1,d=null;n.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(g){c||(c=!0,d=g)}});if(c)throw d;}function ja(a,b,c){var d=void 0,e={},g=null,f=null;if(null!=b)for(d in void 0!==b.ref&&(f=b.ref),void 0!==b.key&&(g=""+b.key),b)ka.call(b,d)&&!la.hasOwnProperty(d)&&(e[d]=b[d]);var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){for(var k=Array(h),l=0;l<h;l++)k[l]=arguments[l+2];e.children=k}if(a&&a.defaultProps)for(d in h=a.defaultProps,h)void 0===
|
|
15
|
+
e[d]&&(e[d]=h[d]);return{$$typeof:A,type:a,key:g,ref:f,props:e,_owner:V.current}}function Ea(a,b){return{$$typeof:A,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function W(a){return"object"===typeof a&&null!==a&&a.$$typeof===A}function Fa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function ma(a,b,c,d){if(L.length){var e=L.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}}
|
|
16
|
+
function na(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>L.length&&L.push(a)}function X(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case A:case Ga:g=!0}}if(g)return c(d,a,""===b?"."+Y(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var h=b+Y(e,f);g+=X(e,h,c,d)}else if(null===a||"object"!==typeof a?
|
|
17
|
+
h=null:(h=oa&&a[oa]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),f=0;!(e=a.next()).done;)e=e.value,h=b+Y(e,f++),g+=X(e,h,c,d);else"object"===e&&(c=""+a,r("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function Z(a,b,c){return null==a?0:X(a,"",b,c)}function Y(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Fa(a.key):b.toString(36)}function Ha(a,b,c){a.func.call(a.context,b,a.count++)}function Ia(a,b,c){var d=
|
|
18
|
+
a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?aa(a,d,c,function(a){return a}):null!=a&&(W(a)&&(a=Ea(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(pa,"$&/")+"/")+c)),d.push(a))}function aa(a,b,c,d,e){var g="";null!=c&&(g=(""+c).replace(pa,"$&/")+"/");b=ma(b,g,d,e);Z(a,Ia,b);na(b)}var k="function"===typeof Symbol&&Symbol.for,A=k?Symbol.for("react.element"):60103,Ga=k?Symbol.for("react.portal"):60106,v=k?Symbol.for("react.fragment"):60107,Ja=k?Symbol.for("react.strict_mode"):
|
|
19
|
+
60108,w=k?Symbol.for("react.profiler"):60114,Ka=k?Symbol.for("react.provider"):60109,La=k?Symbol.for("react.context"):60110,Ma=k?Symbol.for("react.concurrent_mode"):60111,Na=k?Symbol.for("react.forward_ref"):60112,Oa=k?Symbol.for("react.suspense"):60113,Pa=k?Symbol.for("react.memo"):60115,Qa=k?Symbol.for("react.lazy"):60116,oa="function"===typeof Symbol&&Symbol.iterator,qa=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,Sa=Object.prototype.propertyIsEnumerable,M=function(){try{if(!Object.assign)return!1;
|
|
20
|
+
var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
21
|
+
var c=Object(a);for(var d,e=1;e<arguments.length;e++){var g=Object(arguments[e]);for(var f in g)Ra.call(g,f)&&(c[f]=g[f]);if(qa){d=qa(g);for(var h=0;h<d.length;h++)Sa.call(g,d[h])&&(c[d[h]]=g[d[h]])}}return c},ha={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},fa={};u.prototype.isReactComponent={};u.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?r("85"):void 0;this.updater.enqueueSetState(this,
|
|
22
|
+
a,b,"setState")};u.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};ia.prototype=u.prototype;k=R.prototype=new ia;k.constructor=R;M(k,u.prototype);k.isPureReactComponent=!0;var f=null,J=!1,l=3,q=-1,I=-1,z=!1,G=!1,Ta=Date,Ua="function"===typeof setTimeout?setTimeout:void 0,Va="function"===typeof clearTimeout?clearTimeout:void 0,ra="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,sa="function"===typeof cancelAnimationFrame?cancelAnimationFrame:
|
|
23
|
+
void 0,ta,ua,ba=function(a){ta=ra(function(b){Va(ua);a(b)});ua=Ua(function(){sa(ta);a(p())},100)};if("object"===typeof performance&&"function"===typeof performance.now){var Wa=performance;var p=function(){return Wa.now()}}else p=function(){return Ta.now()};if("undefined"!==typeof window&&window._schedMock){k=window._schedMock;var H=k[0];var S=k[1];var K=k[2]}else if("undefined"===typeof window||"function"!==typeof window.addEventListener){var B=null,C=-1,va=function(a,b){if(null!==B){var c=B;B=null;
|
|
24
|
+
try{C=b,c(a)}finally{C=-1}}};H=function(a,b){-1!==C?setTimeout(H,0,a,b):(B=a,setTimeout(va,b,!0,b),setTimeout(va,1073741823,!1,1073741823))};S=function(){B=null};K=function(){return!1};p=function(){return-1===C?0:C}}else{"undefined"!==typeof console&&("function"!==typeof ra&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof sa&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));
|
|
25
|
+
var x=null,N=!1,D=-1,E=!1,ca=!1,O=0,P=33,F=33;K=function(){return O<=p()};var da="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){if(a.source===window&&a.data===da){N=!1;a=x;var b=D;x=null;D=-1;var c=p(),d=!1;if(0>=O-c)if(-1!==b&&b<=c)d=!0;else{E||(E=!0,ba(ea));x=a;D=b;return}if(null!==a){ca=!0;try{a(d)}finally{ca=!1}}}},!1);var ea=function(a){if(null!==x){ba(ea);var b=a-O+F;b<F&&P<F?(8>b&&(b=8),F=b<P?P:b):P=b;O=a+F;N||(N=!0,window.postMessage(da,
|
|
26
|
+
"*"))}else E=!1};H=function(a,b){x=a;D=b;ca||0>b?window.postMessage(da,"*"):E||(E=!0,ba(ea))};S=function(){x=null;N=!1;D=-1}}var Xa=0,Ya=0,m=null,t=null;m={current:new Set};t={current:null};var n=null;n=new Set;var V={current:null,currentDispatcher:null};k={ReactCurrentOwner:V,assign:M};M(k,{Scheduler:{unstable_cancelCallback:function(a){var b=a.next;if(null!==b){if(b===a)f=null;else{a===f&&(f=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}},unstable_shouldYield:function(){return!J&&
|
|
27
|
+
(null!==f&&f.expirationTime<I||K())},unstable_now:p,unstable_scheduleCallback:function(a,b){var c=-1!==q?q:p();if("object"===typeof b&&null!==b&&"number"===typeof b.timeout)b=c+b.timeout;else switch(l){case 1:b=c+-1;break;case 2:b=c+250;break;case 4:b=c+1073741823;break;default:b=c+5E3}a={callback:a,priorityLevel:l,expirationTime:b,next:null,previous:null};if(null===f)f=a.next=a.previous=a,y();else{c=null;var d=f;do{if(d.expirationTime>b){c=d;break}d=d.next}while(d!==f);null===c?c=f:c===f&&(f=a,y());
|
|
28
|
+
b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a},unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:break;default:a=3}var c=l,d=q;l=a;q=p();try{return b()}finally{l=c,q=d,U()}},unstable_wrapCallback:function(a){var b=l;return function(){var c=l,d=q;l=b;q=p();try{return a.apply(this,arguments)}finally{l=c,q=d,U()}}},unstable_getCurrentPriorityLevel:function(){return l}},SchedulerTracing:{__interactionsRef:m,__subscriberRef:t,unstable_clear:function(a){var b=
|
|
29
|
+
m.current;m.current=new Set;try{return a()}finally{m.current=b}},unstable_getCurrent:function(){return m.current},unstable_getThreadID:function(){return++Ya},unstable_subscribe:function(a){n.add(a);1===n.size&&(t.current={onInteractionScheduledWorkCompleted:za,onInteractionTraced:ya,onWorkCanceled:Da,onWorkScheduled:Aa,onWorkStarted:Ba,onWorkStopped:Ca})},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:Xa++,name:a,timestamp:b},f=m.current,
|
|
30
|
+
k=new Set(f);k.add(e);m.current=k;var h=t.current,l=void 0;try{if(null!==h)h.onInteractionTraced(e)}finally{try{if(null!==h)h.onWorkStarted(k,d)}finally{try{l=c()}finally{m.current=f;try{if(null!==h)h.onWorkStopped(k,d)}finally{if(e.__count--,null!==h&&0===e.__count)h.onInteractionScheduledWorkCompleted(e)}}}}return l},unstable_unsubscribe:function(a){n.delete(a);0===n.size&&(t.current=null)},unstable_wrap:function(a){function b(){var b=m.current;m.current=d;e=t.current;try{var g=void 0;try{if(null!==
|
|
31
|
+
e)e.onWorkStarted(d,c)}finally{try{g=a.apply(void 0,arguments)}finally{if(m.current=b,null!==e)e.onWorkStopped(d,c)}}return g}finally{f||(f=!0,d.forEach(function(a){a.__count--;if(null!==e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=m.current,e=t.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){e=t.current;try{if(null!==e)e.onWorkCanceled(d,c)}finally{d.forEach(function(a){a.__count--;
|
|
32
|
+
if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b}}});var ka=Object.prototype.hasOwnProperty,la={key:!0,ref:!0,__self:!0,__source:!0},pa=/\/+/g,L=[];v={Children:{map:function(a,b,c){if(null==a)return a;var d=[];aa(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=ma(null,null,b,c);Z(a,Ha,b);na(b)},count:function(a){return Z(a,function(){return null},null)},toArray:function(a){var b=[];aa(a,b,null,function(a){return a});return b},only:function(a){W(a)?void 0:
|
|
33
|
+
r("143");return a}},createRef:function(){return{current:null}},Component:u,PureComponent:R,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:La,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,Provider:null,Consumer:null};a.Provider={$$typeof:Ka,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:Na,render:a}},lazy:function(a){return{$$typeof:Qa,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:Pa,type:a,compare:void 0===b?null:b}},Fragment:v,
|
|
34
|
+
StrictMode:Ja,Suspense:Oa,createElement:ja,cloneElement:function(a,b,c){null===a||void 0===a?r("267",a):void 0;var d=void 0,e=M({},a.props),f=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=V.current);void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(d in b)ka.call(b,d)&&!la.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==l?l[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<d){l=Array(d);for(var m=0;m<d;m++)l[m]=arguments[m+
|
|
35
|
+
2];e.children=l}return{$$typeof:A,type:a.type,key:f,ref:k,props:e,_owner:h}},createFactory:function(a){var b=ja.bind(null,a);b.type=a;return b},isValidElement:W,version:"16.6.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:k};v.unstable_ConcurrentMode=Ma;v.unstable_Profiler=w;w=(w={default:v},v)||w;return w.default||w});
|