react 0.0.0-ec372faef → 0.0.0-experimental-00d4f95c2
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-jsx-dev-runtime.development.js +1 -2
- package/cjs/react-jsx-runtime.development.js +1 -2
- package/cjs/react-unstable-shared-subset.development.js +2168 -1
- package/cjs/react-unstable-shared-subset.production.min.js +15 -1
- package/cjs/react.development.js +79 -14
- package/cjs/react.production.min.js +12 -9
- package/package.json +1 -1
- package/umd/react.development.js +79 -14
- package/umd/react.production.min.js +23 -21
- package/umd/react.profiling.min.js +28 -26
|
@@ -6,4 +6,18 @@
|
|
|
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';
|
|
9
|
+
'use strict';var l=require("object-assign"),n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60112;exports.Suspense=60113;exports.unstable_SuspenseList=60120;var r=60115,t=60116;exports.unstable_DebugTracingMode=60129;
|
|
10
|
+
if("function"===typeof Symbol&&Symbol.for){var u=Symbol.for;n=u("react.element");p=u("react.portal");exports.Fragment=u("react.fragment");exports.StrictMode=u("react.strict_mode");exports.Profiler=u("react.profiler");q=u("react.forward_ref");exports.Suspense=u("react.suspense");exports.unstable_SuspenseList=u("react.suspense_list");r=u("react.memo");t=u("react.lazy");exports.unstable_DebugTracingMode=u("react.debug_trace_mode")}var v="function"===typeof Symbol&&Symbol.iterator;
|
|
11
|
+
function w(a){if(null===a||"object"!==typeof a)return null;a=v&&a[v]||a["@@iterator"];return"function"===typeof a?a:null}function x(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,e=1;e<arguments.length;e++)b+="&args[]="+encodeURIComponent(arguments[e]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
12
|
+
var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z={};function A(a,b,e){this.props=a;this.context=b;this.refs=z;this.updater=e||y}A.prototype.isReactComponent={};A.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(x(85));this.updater.enqueueSetState(this,a,b,"setState")};A.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
|
|
13
|
+
function B(){}B.prototype=A.prototype;function C(a,b,e){this.props=a;this.context=b;this.refs=z;this.updater=e||y}var D=C.prototype=new B;D.constructor=C;l(D,A.prototype);D.isPureReactComponent=!0;var E={current:null},F=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0};function H(a,b){return{$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function I(a){return"object"===typeof a&&null!==a&&a.$$typeof===n}
|
|
14
|
+
function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var J=/\/+/g;function K(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
15
|
+
function L(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n:case p:h=!0}}if(h)return h=a,c=c(h),a=""===d?"."+K(h,0):d,Array.isArray(c)?(e="",null!=a&&(e=a.replace(J,"$&/")+"/"),L(c,b,e,"",function(a){return a})):null!=c&&(I(c)&&(c=H(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(J,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(Array.isArray(a))for(var g=
|
|
16
|
+
0;g<a.length;g++){k=a[g];var f=d+K(k,g);h+=L(k,b,e,f,c)}else if(f=w(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+K(k,g++),h+=L(k,b,e,f,c);else if("object"===k)throw b=""+a,Error(x(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function M(a,b,e){if(null==a)return a;var d=[],c=0;L(a,d,"","",function(a){return b.call(e,a,c++)});return d}
|
|
17
|
+
function N(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var O={current:null},P={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:l};
|
|
18
|
+
exports.Children={map:M,forEach:function(a,b,e){M(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;M(a,function(){b++});return b},toArray:function(a){return M(a,function(a){return a})||[]},only:function(a){if(!I(a))throw Error(x(143));return a}};exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P;
|
|
19
|
+
exports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(x(267,a));var d=l({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=E.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)F.call(b,f)&&!G.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:n,type:a.type,
|
|
20
|
+
key:c,ref:k,props:d,_owner:h}};exports.createElement=function(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)F.call(b,d)&&!G.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:n,type:a,key:k,ref:h,props:c,_owner:E.current}};exports.createRef=function(){return{current:null}};
|
|
21
|
+
exports.forwardRef=function(a){return{$$typeof:q,render:a}};exports.isValidElement=I;exports.lazy=function(a){return{$$typeof:t,_payload:{_status:-1,_result:a},_init:N}};exports.memo=function(a,b){return{$$typeof:r,type:a,compare:void 0===b?null:b}};exports.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};exports.unstable_getCacheForType=function(a){return O.current.getCacheForType(a)};
|
|
22
|
+
exports.unstable_useDeferredValue=function(a){return O.current.useDeferredValue(a)};exports.unstable_useMutableSource=function(a,b,e){return O.current.useMutableSource(a,b,e)};exports.unstable_useOpaqueIdentifier=function(){return O.current.useOpaqueIdentifier()};exports.useCallback=function(a,b){return O.current.useCallback(a,b)};exports.useContext=function(a,b){return O.current.useContext(a,b)};exports.useDebugValue=function(){};exports.useMemo=function(a,b){return O.current.useMemo(a,b)};
|
|
23
|
+
exports.version="17.0.2-experimental-00d4f95c2";
|
package/cjs/react.development.js
CHANGED
|
@@ -15,7 +15,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
15
15
|
|
|
16
16
|
var _assign = require('object-assign');
|
|
17
17
|
|
|
18
|
-
var ReactVersion = '17.0.2-
|
|
18
|
+
var ReactVersion = '17.0.2-experimental-00d4f95c2';
|
|
19
19
|
|
|
20
20
|
// ATTENTION
|
|
21
21
|
// When adding new symbols to this file,
|
|
@@ -31,15 +31,15 @@ var REACT_PROVIDER_TYPE = 0xeacd;
|
|
|
31
31
|
var REACT_CONTEXT_TYPE = 0xeace;
|
|
32
32
|
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
33
33
|
exports.Suspense = 0xead1;
|
|
34
|
-
|
|
34
|
+
exports.unstable_SuspenseList = 0xead8;
|
|
35
35
|
var REACT_MEMO_TYPE = 0xead3;
|
|
36
36
|
var REACT_LAZY_TYPE = 0xead4;
|
|
37
37
|
var REACT_SCOPE_TYPE = 0xead7;
|
|
38
38
|
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
39
|
-
|
|
39
|
+
exports.unstable_DebugTracingMode = 0xeae1;
|
|
40
40
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
exports.unstable_LegacyHidden = 0xeae3;
|
|
42
|
+
exports.unstable_Cache = 0xeae4;
|
|
43
43
|
|
|
44
44
|
if (typeof Symbol === 'function' && Symbol.for) {
|
|
45
45
|
var symbolFor = Symbol.for;
|
|
@@ -52,15 +52,15 @@ if (typeof Symbol === 'function' && Symbol.for) {
|
|
|
52
52
|
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
53
53
|
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
54
54
|
exports.Suspense = symbolFor('react.suspense');
|
|
55
|
-
|
|
55
|
+
exports.unstable_SuspenseList = symbolFor('react.suspense_list');
|
|
56
56
|
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
57
57
|
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
58
58
|
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
59
59
|
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
60
|
-
|
|
60
|
+
exports.unstable_DebugTracingMode = symbolFor('react.debug_trace_mode');
|
|
61
61
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
exports.unstable_LegacyHidden = symbolFor('react.legacy_hidden');
|
|
63
|
+
exports.unstable_Cache = symbolFor('react.cache');
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
@@ -490,10 +490,10 @@ function getComponentNameFromType(type) {
|
|
|
490
490
|
case exports.Suspense:
|
|
491
491
|
return 'Suspense';
|
|
492
492
|
|
|
493
|
-
case
|
|
493
|
+
case exports.unstable_SuspenseList:
|
|
494
494
|
return 'SuspenseList';
|
|
495
495
|
|
|
496
|
-
case
|
|
496
|
+
case exports.unstable_Cache:
|
|
497
497
|
return 'Cache';
|
|
498
498
|
}
|
|
499
499
|
|
|
@@ -1409,7 +1409,6 @@ function forwardRef(render) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
1411
|
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1412
|
-
var enableCache = false; // Only used in www builds.
|
|
1413
1412
|
|
|
1414
1413
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1415
1414
|
|
|
@@ -1425,7 +1424,7 @@ function isValidElementType(type) {
|
|
|
1425
1424
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1426
1425
|
|
|
1427
1426
|
|
|
1428
|
-
if (type === exports.Fragment || type === exports.Profiler || type ===
|
|
1427
|
+
if (type === exports.Fragment || type === exports.Profiler || type === exports.unstable_DebugTracingMode || type === exports.StrictMode || type === exports.Suspense || type === exports.unstable_SuspenseList || type === exports.unstable_LegacyHidden || enableScopeAPI || type === exports.unstable_Cache) {
|
|
1429
1428
|
return true;
|
|
1430
1429
|
}
|
|
1431
1430
|
|
|
@@ -1490,6 +1489,12 @@ function resolveDispatcher() {
|
|
|
1490
1489
|
|
|
1491
1490
|
return dispatcher;
|
|
1492
1491
|
}
|
|
1492
|
+
|
|
1493
|
+
function getCacheForType(resourceType) {
|
|
1494
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1495
|
+
|
|
1496
|
+
return dispatcher.getCacheForType(resourceType);
|
|
1497
|
+
}
|
|
1493
1498
|
function useContext(Context, unstable_observedBits) {
|
|
1494
1499
|
var dispatcher = resolveDispatcher();
|
|
1495
1500
|
|
|
@@ -1551,6 +1556,27 @@ function useDebugValue(value, formatterFn) {
|
|
|
1551
1556
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1552
1557
|
}
|
|
1553
1558
|
}
|
|
1559
|
+
function useTransition() {
|
|
1560
|
+
var dispatcher = resolveDispatcher();
|
|
1561
|
+
return dispatcher.useTransition();
|
|
1562
|
+
}
|
|
1563
|
+
function useDeferredValue(value) {
|
|
1564
|
+
var dispatcher = resolveDispatcher();
|
|
1565
|
+
return dispatcher.useDeferredValue(value);
|
|
1566
|
+
}
|
|
1567
|
+
function useOpaqueIdentifier() {
|
|
1568
|
+
var dispatcher = resolveDispatcher();
|
|
1569
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1570
|
+
}
|
|
1571
|
+
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1572
|
+
var dispatcher = resolveDispatcher();
|
|
1573
|
+
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
1574
|
+
}
|
|
1575
|
+
function useCacheRefresh() {
|
|
1576
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1577
|
+
|
|
1578
|
+
return dispatcher.useCacheRefresh();
|
|
1579
|
+
}
|
|
1554
1580
|
|
|
1555
1581
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
1556
1582
|
// replaying on render function. This currently only patches the object
|
|
@@ -1855,7 +1881,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
|
1855
1881
|
case exports.Suspense:
|
|
1856
1882
|
return describeBuiltInComponentFrame('Suspense');
|
|
1857
1883
|
|
|
1858
|
-
case
|
|
1884
|
+
case exports.unstable_SuspenseList:
|
|
1859
1885
|
return describeBuiltInComponentFrame('SuspenseList');
|
|
1860
1886
|
}
|
|
1861
1887
|
|
|
@@ -2288,6 +2314,37 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
2288
2314
|
return newElement;
|
|
2289
2315
|
}
|
|
2290
2316
|
|
|
2317
|
+
function createMutableSource(source, getVersion) {
|
|
2318
|
+
var mutableSource = {
|
|
2319
|
+
_getVersion: getVersion,
|
|
2320
|
+
_source: source,
|
|
2321
|
+
_workInProgressVersionPrimary: null,
|
|
2322
|
+
_workInProgressVersionSecondary: null
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2325
|
+
{
|
|
2326
|
+
mutableSource._currentPrimaryRenderer = null;
|
|
2327
|
+
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
|
2328
|
+
// See https://github.com/facebook/react/issues/19948
|
|
2329
|
+
|
|
2330
|
+
mutableSource._currentlyRenderingFiber = null;
|
|
2331
|
+
mutableSource._initialVersionAsOfFirstRender = null;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
return mutableSource;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
function startTransition(scope) {
|
|
2338
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
2339
|
+
ReactCurrentBatchConfig.transition = 1;
|
|
2340
|
+
|
|
2341
|
+
try {
|
|
2342
|
+
scope();
|
|
2343
|
+
} finally {
|
|
2344
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2291
2348
|
var createElement$1 = createElementWithValidation ;
|
|
2292
2349
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
2293
2350
|
var createFactory = createFactoryWithValidation ;
|
|
@@ -2312,6 +2369,14 @@ exports.forwardRef = forwardRef;
|
|
|
2312
2369
|
exports.isValidElement = isValidElement;
|
|
2313
2370
|
exports.lazy = lazy;
|
|
2314
2371
|
exports.memo = memo;
|
|
2372
|
+
exports.unstable_createMutableSource = createMutableSource;
|
|
2373
|
+
exports.unstable_getCacheForType = getCacheForType;
|
|
2374
|
+
exports.unstable_startTransition = startTransition;
|
|
2375
|
+
exports.unstable_useCacheRefresh = useCacheRefresh;
|
|
2376
|
+
exports.unstable_useDeferredValue = useDeferredValue;
|
|
2377
|
+
exports.unstable_useMutableSource = useMutableSource;
|
|
2378
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
2379
|
+
exports.unstable_useTransition = useTransition;
|
|
2315
2380
|
exports.useCallback = useCallback;
|
|
2316
2381
|
exports.useContext = useContext;
|
|
2317
2382
|
exports.useDebugValue = useDebugValue;
|
|
@@ -6,18 +6,21 @@
|
|
|
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';var l=require("object-assign"),m=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;
|
|
10
|
-
if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;m=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy")
|
|
11
|
-
function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return"function"===typeof a?a:null}
|
|
12
|
-
var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};
|
|
13
|
-
function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}var F=E.prototype=new D;
|
|
9
|
+
'use strict';var l=require("object-assign"),m=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;exports.unstable_SuspenseList=60120;var u=60115,v=60116;exports.unstable_DebugTracingMode=60129;exports.unstable_LegacyHidden=60131;exports.unstable_Cache=60132;
|
|
10
|
+
if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;m=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");exports.unstable_SuspenseList=w("react.suspense_list");u=w("react.memo");v=w("react.lazy");exports.unstable_DebugTracingMode=w("react.debug_trace_mode");exports.unstable_LegacyHidden=
|
|
11
|
+
w("react.legacy_hidden");exports.unstable_Cache=w("react.cache")}var x="function"===typeof Symbol&&Symbol.iterator;function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return"function"===typeof a?a:null}
|
|
12
|
+
function z(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};
|
|
13
|
+
function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,"setState")};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A}var F=E.prototype=new D;
|
|
14
|
+
F.constructor=E;l(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
15
|
function J(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,e)&&!I.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),n=0;n<g;n++)f[n]=arguments[n+2];d.children=f}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return{$$typeof:m,type:a,key:k,ref:h,props:d,_owner:G.current}}
|
|
15
16
|
function K(a,b){return{$$typeof:m,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return"object"===typeof a&&null!==a&&a.$$typeof===m}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
16
17
|
function O(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case m:case p:h=!0}}if(h)return h=a,d=d(h),a=""===e?"."+N(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
|
|
17
18
|
0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(k,b,c,f,d)}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N(k,g++),h+=O(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}
|
|
18
|
-
function Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var R={current:null},S={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:
|
|
19
|
-
exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=
|
|
19
|
+
function Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}var R={current:null},S={transition:0},T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:S,ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:l};
|
|
20
|
+
exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
|
|
20
21
|
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=l({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var n=0;n<f;n++)g[n]=arguments[n+2];e.children=g}return{$$typeof:m,type:a.type,
|
|
21
22
|
key:d,ref:k,props:e,_owner:h}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};exports.isValidElement=L;
|
|
22
|
-
exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.
|
|
23
|
-
exports.
|
|
23
|
+
exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};exports.unstable_getCacheForType=function(a){return R.current.getCacheForType(a)};
|
|
24
|
+
exports.unstable_startTransition=function(a){var b=S.transition;S.transition=1;try{a()}finally{S.transition=b}};exports.unstable_useCacheRefresh=function(){return R.current.useCacheRefresh()};exports.unstable_useDeferredValue=function(a){return R.current.useDeferredValue(a)};exports.unstable_useMutableSource=function(a,b,c){return R.current.useMutableSource(a,b,c)};exports.unstable_useOpaqueIdentifier=function(){return R.current.useOpaqueIdentifier()};exports.unstable_useTransition=function(){return R.current.useTransition()};
|
|
25
|
+
exports.useCallback=function(a,b){return R.current.useCallback(a,b)};exports.useContext=function(a,b){return R.current.useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return R.current.useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return R.current.useImperativeHandle(a,b,c)};exports.useLayoutEffect=function(a,b){return R.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return R.current.useMemo(a,b)};
|
|
26
|
+
exports.useReducer=function(a,b,c){return R.current.useReducer(a,b,c)};exports.useRef=function(a){return R.current.useRef(a)};exports.useState=function(a){return R.current.useState(a)};exports.version="17.0.2-experimental-00d4f95c2";
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
(global = global || self, factory(global.React = {}));
|
|
13
13
|
}(this, (function (exports) { 'use strict';
|
|
14
14
|
|
|
15
|
-
var ReactVersion = '17.0.2-
|
|
15
|
+
var ReactVersion = '17.0.2-experimental-00d4f95c2';
|
|
16
16
|
|
|
17
17
|
// ATTENTION
|
|
18
18
|
// When adding new symbols to this file,
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
var REACT_CONTEXT_TYPE = 0xeace;
|
|
29
29
|
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
30
30
|
exports.Suspense = 0xead1;
|
|
31
|
-
|
|
31
|
+
exports.unstable_SuspenseList = 0xead8;
|
|
32
32
|
var REACT_MEMO_TYPE = 0xead3;
|
|
33
33
|
var REACT_LAZY_TYPE = 0xead4;
|
|
34
34
|
var REACT_SCOPE_TYPE = 0xead7;
|
|
35
35
|
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
36
|
-
|
|
36
|
+
exports.unstable_DebugTracingMode = 0xeae1;
|
|
37
37
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
exports.unstable_LegacyHidden = 0xeae3;
|
|
39
|
+
exports.unstable_Cache = 0xeae4;
|
|
40
40
|
|
|
41
41
|
if (typeof Symbol === 'function' && Symbol.for) {
|
|
42
42
|
var symbolFor = Symbol.for;
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
50
50
|
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
51
51
|
exports.Suspense = symbolFor('react.suspense');
|
|
52
|
-
|
|
52
|
+
exports.unstable_SuspenseList = symbolFor('react.suspense_list');
|
|
53
53
|
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
54
54
|
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
55
55
|
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
56
56
|
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
57
|
-
|
|
57
|
+
exports.unstable_DebugTracingMode = symbolFor('react.debug_trace_mode');
|
|
58
58
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
exports.unstable_LegacyHidden = symbolFor('react.legacy_hidden');
|
|
60
|
+
exports.unstable_Cache = symbolFor('react.cache');
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
@@ -515,10 +515,10 @@
|
|
|
515
515
|
case exports.Suspense:
|
|
516
516
|
return 'Suspense';
|
|
517
517
|
|
|
518
|
-
case
|
|
518
|
+
case exports.unstable_SuspenseList:
|
|
519
519
|
return 'SuspenseList';
|
|
520
520
|
|
|
521
|
-
case
|
|
521
|
+
case exports.unstable_Cache:
|
|
522
522
|
return 'Cache';
|
|
523
523
|
}
|
|
524
524
|
|
|
@@ -1434,7 +1434,6 @@
|
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
1436
|
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
1437
|
-
var enableCache = false; // Only used in www builds.
|
|
1438
1437
|
|
|
1439
1438
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
1440
1439
|
|
|
@@ -1450,7 +1449,7 @@
|
|
|
1450
1449
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
1451
1450
|
|
|
1452
1451
|
|
|
1453
|
-
if (type === exports.Fragment || type === exports.Profiler || type ===
|
|
1452
|
+
if (type === exports.Fragment || type === exports.Profiler || type === exports.unstable_DebugTracingMode || type === exports.StrictMode || type === exports.Suspense || type === exports.unstable_SuspenseList || type === exports.unstable_LegacyHidden || enableScopeAPI || type === exports.unstable_Cache) {
|
|
1454
1453
|
return true;
|
|
1455
1454
|
}
|
|
1456
1455
|
|
|
@@ -1515,6 +1514,12 @@
|
|
|
1515
1514
|
|
|
1516
1515
|
return dispatcher;
|
|
1517
1516
|
}
|
|
1517
|
+
|
|
1518
|
+
function getCacheForType(resourceType) {
|
|
1519
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1520
|
+
|
|
1521
|
+
return dispatcher.getCacheForType(resourceType);
|
|
1522
|
+
}
|
|
1518
1523
|
function useContext(Context, unstable_observedBits) {
|
|
1519
1524
|
var dispatcher = resolveDispatcher();
|
|
1520
1525
|
|
|
@@ -1576,6 +1581,27 @@
|
|
|
1576
1581
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1577
1582
|
}
|
|
1578
1583
|
}
|
|
1584
|
+
function useTransition() {
|
|
1585
|
+
var dispatcher = resolveDispatcher();
|
|
1586
|
+
return dispatcher.useTransition();
|
|
1587
|
+
}
|
|
1588
|
+
function useDeferredValue(value) {
|
|
1589
|
+
var dispatcher = resolveDispatcher();
|
|
1590
|
+
return dispatcher.useDeferredValue(value);
|
|
1591
|
+
}
|
|
1592
|
+
function useOpaqueIdentifier() {
|
|
1593
|
+
var dispatcher = resolveDispatcher();
|
|
1594
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1595
|
+
}
|
|
1596
|
+
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1597
|
+
var dispatcher = resolveDispatcher();
|
|
1598
|
+
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
1599
|
+
}
|
|
1600
|
+
function useCacheRefresh() {
|
|
1601
|
+
var dispatcher = resolveDispatcher(); // $FlowFixMe This is unstable, thus optional
|
|
1602
|
+
|
|
1603
|
+
return dispatcher.useCacheRefresh();
|
|
1604
|
+
}
|
|
1579
1605
|
|
|
1580
1606
|
// Helpers to patch console.logs to avoid logging during side-effect free
|
|
1581
1607
|
// replaying on render function. This currently only patches the object
|
|
@@ -1880,7 +1906,7 @@
|
|
|
1880
1906
|
case exports.Suspense:
|
|
1881
1907
|
return describeBuiltInComponentFrame('Suspense');
|
|
1882
1908
|
|
|
1883
|
-
case
|
|
1909
|
+
case exports.unstable_SuspenseList:
|
|
1884
1910
|
return describeBuiltInComponentFrame('SuspenseList');
|
|
1885
1911
|
}
|
|
1886
1912
|
|
|
@@ -2313,6 +2339,26 @@
|
|
|
2313
2339
|
return newElement;
|
|
2314
2340
|
}
|
|
2315
2341
|
|
|
2342
|
+
function createMutableSource(source, getVersion) {
|
|
2343
|
+
var mutableSource = {
|
|
2344
|
+
_getVersion: getVersion,
|
|
2345
|
+
_source: source,
|
|
2346
|
+
_workInProgressVersionPrimary: null,
|
|
2347
|
+
_workInProgressVersionSecondary: null
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
{
|
|
2351
|
+
mutableSource._currentPrimaryRenderer = null;
|
|
2352
|
+
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
|
2353
|
+
// See https://github.com/facebook/react/issues/19948
|
|
2354
|
+
|
|
2355
|
+
mutableSource._currentlyRenderingFiber = null;
|
|
2356
|
+
mutableSource._initialVersionAsOfFirstRender = null;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
return mutableSource;
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2316
2362
|
var enableSchedulerDebugging = false;
|
|
2317
2363
|
var enableProfiling = false;
|
|
2318
2364
|
|
|
@@ -3281,6 +3327,17 @@
|
|
|
3281
3327
|
ReactSharedInternals$1.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
3282
3328
|
}
|
|
3283
3329
|
|
|
3330
|
+
function startTransition(scope) {
|
|
3331
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
3332
|
+
ReactCurrentBatchConfig.transition = 1;
|
|
3333
|
+
|
|
3334
|
+
try {
|
|
3335
|
+
scope();
|
|
3336
|
+
} finally {
|
|
3337
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3284
3341
|
var createElement$1 = createElementWithValidation ;
|
|
3285
3342
|
var cloneElement$1 = cloneElementWithValidation ;
|
|
3286
3343
|
var createFactory = createFactoryWithValidation ;
|
|
@@ -3305,6 +3362,14 @@
|
|
|
3305
3362
|
exports.isValidElement = isValidElement;
|
|
3306
3363
|
exports.lazy = lazy;
|
|
3307
3364
|
exports.memo = memo;
|
|
3365
|
+
exports.unstable_createMutableSource = createMutableSource;
|
|
3366
|
+
exports.unstable_getCacheForType = getCacheForType;
|
|
3367
|
+
exports.unstable_startTransition = startTransition;
|
|
3368
|
+
exports.unstable_useCacheRefresh = useCacheRefresh;
|
|
3369
|
+
exports.unstable_useDeferredValue = useDeferredValue;
|
|
3370
|
+
exports.unstable_useMutableSource = useMutableSource;
|
|
3371
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
3372
|
+
exports.unstable_useTransition = useTransition;
|
|
3308
3373
|
exports.useCallback = useCallback;
|
|
3309
3374
|
exports.useContext = useContext;
|
|
3310
3375
|
exports.useDebugValue = useDebugValue;
|
|
@@ -6,25 +6,27 @@
|
|
|
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
|
-
(function(){'use strict';(function(c,
|
|
10
|
-
a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function
|
|
11
|
-
|
|
12
|
-
typeof a&&null!==a&&null!=a.key?
|
|
13
|
-
a)),b.push(
|
|
14
|
-
a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function
|
|
15
|
-
|
|
16
|
-
b&&
|
|
17
|
-
b){z=
|
|
18
|
-
"function"===typeof Symbol&&Symbol.iterator,
|
|
19
|
-
{};
|
|
20
|
-
"function"===typeof performance.now){var
|
|
21
|
-
"function"!==typeof
|
|
22
|
-
|
|
23
|
-
c}},unstable_scheduleCallback:function(a,b,c){var d=
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
(function(){'use strict';(function(c,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports):"function"===typeof define&&define.amd?define(["exports"],w):(c=c||self,w(c.React={}))})(this,function(c){function w(a){if(null===a||"object"!==typeof a)return null;a=V&&a[V]||a["@@iterator"];return"function"===typeof a?a:null}function A(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,k=1;k<arguments.length;k++)b+="&args[]="+encodeURIComponent(arguments[k]);return"Minified React error #"+
|
|
10
|
+
a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(a,b,k){this.props=a;this.context=b;this.refs=W;this.updater=k||X}function Y(){}function J(a,b,k){this.props=a;this.context=b;this.refs=W;this.updater=k||X}function Z(a,b,k){var m,c={},aa=null,x=null;if(null!=b)for(m in void 0!==b.ref&&(x=b.ref),void 0!==b.key&&(aa=""+b.key),b)ba.call(b,m)&&!ca.hasOwnProperty(m)&&(c[m]=b[m]);var d=arguments.length-2;if(1===d)c.children=
|
|
11
|
+
k;else if(1<d){for(var f=Array(d),e=0;e<d;e++)f[e]=arguments[e+2];c.children=f}if(a&&a.defaultProps)for(m in d=a.defaultProps,d)void 0===c[m]&&(c[m]=d[m]);return{$$typeof:v,type:a,key:aa,ref:x,props:c,_owner:K.current}}function sa(a,b){return{$$typeof:v,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return"object"===typeof a&&null!==a&&a.$$typeof===v}function ta(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}function M(a,b){return"object"===
|
|
12
|
+
typeof a&&null!==a&&null!=a.key?ta(""+a.key):b.toString(36)}function B(a,b,k,c,h){var m=typeof a;if("undefined"===m||"boolean"===m)a=null;var d=!1;if(null===a)d=!0;else switch(m){case "string":case "number":d=!0;break;case "object":switch(a.$$typeof){case v:case da:d=!0}}if(d)return d=a,h=h(d),a=""===c?"."+M(d,0):c,Array.isArray(h)?(k="",null!=a&&(k=a.replace(ea,"$&/")+"/"),B(h,b,k,"",function(a){return a})):null!=h&&(L(h)&&(h=sa(h,k+(!h.key||d&&d.key===h.key?"":(""+h.key).replace(ea,"$&/")+"/")+
|
|
13
|
+
a)),b.push(h)),1;d=0;c=""===c?".":c+":";if(Array.isArray(a))for(var e=0;e<a.length;e++){m=a[e];var f=c+M(m,e);d+=B(m,b,k,f,h)}else if(f=w(a),"function"===typeof f)for(a=f.call(a),e=0;!(m=a.next()).done;)m=m.value,f=c+M(m,e++),d+=B(m,b,k,f,h);else if("object"===m)throw b=""+a,Error(A(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return d}function C(a,b,k){if(null==a)return a;var c=[],d=0;B(a,c,"","",function(a){return b.call(k,a,d++)});return c}function ua(a){if(-1===
|
|
14
|
+
a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}if(1===a._status)return a._result;throw a._result;}function N(a,b){var k=a.length;a.push(b);a:for(;;){var c=k-1>>>1,d=a[c];if(void 0!==d&&0<D(d,b))a[c]=b,a[k]=d,k=c;else break a}}function n(a){a=a[0];return void 0===a?null:a}function E(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,h=a.length;d<
|
|
15
|
+
h;){var e=2*(d+1)-1,g=a[e],l=e+1,f=a[l];if(void 0!==g&&0>D(g,c))void 0!==f&&0>D(f,g)?(a[d]=f,a[l]=c,d=l):(a[d]=g,a[e]=c,d=e);else if(void 0!==f&&0>D(f,c))a[d]=f,a[l]=c,d=l;else break a}}return b}return null}function D(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}function O(a){for(var b=n(q);null!==b;){if(null===b.callback)E(q);else if(b.startTime<=a)E(q),b.sortIndex=b.expirationTime,N(p,b);else break;b=n(q)}}function P(a){y=!1;O(a);if(!r)if(null!==n(p))r=!0,Q(R);else{var b=n(q);null!==
|
|
16
|
+
b&&S(P,b.startTime-a)}}function R(a,b){r=!1;y&&(y=!1,fa(z),z=-1);F=!0;var c=e;try{O(b);for(l=n(p);null!==l&&(!(l.expirationTime>b)||a&&!ha());){var d=l.callback;if("function"===typeof d){l.callback=null;e=l.priorityLevel;var h=d(l.expirationTime<=b);b=t();"function"===typeof h?l.callback=h:l===n(p)&&E(p);O(b)}else E(p);l=n(p)}if(null!==l)var g=!0;else{var x=n(q);null!==x&&S(P,x.startTime-b);g=!1}return g}finally{l=null,e=c,F=!1}}function ha(){return t()>=ia}function Q(a){G=a;H||(H=!0,T())}function S(a,
|
|
17
|
+
b){z=va(function(){a(t())},b)}var v=60103,da=60106;c.Fragment=60107;c.StrictMode=60108;c.Profiler=60114;var ja=60109,ka=60110,la=60112;c.Suspense=60113;c.unstable_SuspenseList=60120;var ma=60115,na=60116;c.unstable_DebugTracingMode=60129;c.unstable_LegacyHidden=60131;c.unstable_Cache=60132;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;v=d("react.element");da=d("react.portal");c.Fragment=d("react.fragment");c.StrictMode=d("react.strict_mode");c.Profiler=d("react.profiler");ja=d("react.provider");
|
|
18
|
+
ka=d("react.context");la=d("react.forward_ref");c.Suspense=d("react.suspense");c.unstable_SuspenseList=d("react.suspense_list");ma=d("react.memo");na=d("react.lazy");c.unstable_DebugTracingMode=d("react.debug_trace_mode");c.unstable_LegacyHidden=d("react.legacy_hidden");c.unstable_Cache=d("react.cache")}var V="function"===typeof Symbol&&Symbol.iterator,wa=Object.prototype.hasOwnProperty,U=Object.assign||function(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");
|
|
19
|
+
for(var c=Object(a),d=1;d<arguments.length;d++){var h=arguments[d];if(null!=h){var e=void 0;h=Object(h);for(e in h)wa.call(h,e)&&(c[e]=h[e])}}return c},X={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},W={};u.prototype.isReactComponent={};u.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(A(85));this.updater.enqueueSetState(this,a,b,"setState")};u.prototype.forceUpdate=
|
|
20
|
+
function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Y.prototype=u.prototype;d=J.prototype=new Y;d.constructor=J;U(d,u.prototype);d.isPureReactComponent=!0;var K={current:null},ba=Object.prototype.hasOwnProperty,ca={key:!0,ref:!0,__self:!0,__source:!0},ea=/\/+/g,g={current:null},I={transition:0};if("object"===typeof performance&&"function"===typeof performance.now){var xa=performance;var t=function(){return xa.now()}}else{var oa=Date,ya=oa.now();t=function(){return oa.now()-ya}}var p=
|
|
21
|
+
[],q=[],za=1,l=null,e=3,F=!1,r=!1,y=!1,va=window.setTimeout,fa=window.clearTimeout,pa=window.setImmediate;"undefined"!==typeof console&&(d=window.cancelAnimationFrame,"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"));
|
|
22
|
+
var H=!1,G=null,z=-1,qa=5,ia=0,ra=function(){if(null!==G){var a=t();ia=a+qa;var b=!0;try{b=G(!0,a)}finally{b?T():(H=!1,G=null)}}else H=!1};if("function"===typeof pa)var T=function(){pa(ra)};else{d=new MessageChannel;var Aa=d.port2;d.port1.onmessage=ra;T=function(){Aa.postMessage(null)}}var Ba=0;d={ReactCurrentDispatcher:g,ReactCurrentOwner:K,IsSomeRendererActing:{current:!1},ReactCurrentBatchConfig:I,assign:U,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,
|
|
23
|
+
unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=e;e=a;try{return b()}finally{e=c}},unstable_next:function(a){switch(e){case 1:case 2:case 3:var b=3;break;default:b=e}var c=e;e=b;try{return a()}finally{e=c}},unstable_scheduleCallback:function(a,b,c){var d=t();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=
|
|
24
|
+
1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:za++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,N(q,a),null===n(p)&&a===n(q)&&(y?(fa(z),z=-1):y=!0,S(P,c-d))):(a.sortIndex=e,N(p,a),r||F||(r=!0,Q(R)));return a},unstable_cancelCallback:function(a){a.callback=null},unstable_wrapCallback:function(a){var b=e;return function(){var c=e;e=b;try{return a.apply(this,arguments)}finally{e=c}}},unstable_getCurrentPriorityLevel:function(){return e},unstable_shouldYield:ha,
|
|
25
|
+
unstable_requestPaint:function(){},unstable_continueExecution:function(){r||F||(r=!0,Q(R))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return n(p)},get unstable_now(){return t},unstable_forceFrameRate:function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):qa=0<a?Math.floor(1E3/a):5},unstable_Profiling:null},SchedulerTracing:{__proto__:null,__interactionsRef:null,__subscriberRef:null,
|
|
26
|
+
unstable_clear:function(a){return a()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Ba},unstable_trace:function(a,b,c){return c()},unstable_wrap:function(a){return a},unstable_subscribe:function(a){},unstable_unsubscribe:function(a){}}};c.Children={map:C,forEach:function(a,b,c){C(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;C(a,function(){b++});return b},toArray:function(a){return C(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(A(143));
|
|
27
|
+
return a}};c.Component=u;c.PureComponent=J;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;c.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(A(267,a));var d=U({},a.props),e=a.key,k=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,g=K.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(f in b)ba.call(b,f)&&!ca.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==l?l[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=c;else if(1<
|
|
28
|
+
f){l=Array(f);for(var n=0;n<f;n++)l[n]=arguments[n+2];d.children=l}return{$$typeof:v,type:a.type,key:e,ref:k,props:d,_owner:g}};c.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:ka,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:ja,_context:a};return a.Consumer=a};c.createElement=Z;c.createFactory=function(a){var b=Z.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:la,
|
|
29
|
+
render:a}};c.isValidElement=L;c.lazy=function(a){return{$$typeof:na,_payload:{_status:-1,_result:a},_init:ua}};c.memo=function(a,b){return{$$typeof:ma,type:a,compare:void 0===b?null:b}};c.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};c.unstable_getCacheForType=function(a){return g.current.getCacheForType(a)};c.unstable_startTransition=function(a){var b=I.transition;I.transition=1;try{a()}finally{I.transition=
|
|
30
|
+
b}};c.unstable_useCacheRefresh=function(){return g.current.useCacheRefresh()};c.unstable_useDeferredValue=function(a){return g.current.useDeferredValue(a)};c.unstable_useMutableSource=function(a,b,c){return g.current.useMutableSource(a,b,c)};c.unstable_useOpaqueIdentifier=function(){return g.current.useOpaqueIdentifier()};c.unstable_useTransition=function(){return g.current.useTransition()};c.useCallback=function(a,b){return g.current.useCallback(a,b)};c.useContext=function(a,b){return g.current.useContext(a,
|
|
31
|
+
b)};c.useDebugValue=function(a,b){};c.useEffect=function(a,b){return g.current.useEffect(a,b)};c.useImperativeHandle=function(a,b,c){return g.current.useImperativeHandle(a,b,c)};c.useLayoutEffect=function(a,b){return g.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return g.current.useMemo(a,b)};c.useReducer=function(a,b,c){return g.current.useReducer(a,b,c)};c.useRef=function(a){return g.current.useRef(a)};c.useState=function(a){return g.current.useState(a)};c.version="17.0.2-experimental-00d4f95c2"});
|
|
30
32
|
})();
|