react-dom 16.10.0 → 16.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-info.json +4 -4
- package/cjs/react-dom-server.browser.development.js +122 -177
- package/cjs/react-dom-server.browser.production.min.js +29 -29
- package/cjs/react-dom-server.node.development.js +116 -167
- package/cjs/react-dom-server.node.production.min.js +17 -17
- package/cjs/react-dom-test-utils.development.js +55 -91
- package/cjs/react-dom-test-utils.production.min.js +9 -9
- package/cjs/react-dom-unstable-fizz.browser.development.js +9 -5
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +3 -3
- package/cjs/react-dom-unstable-fizz.node.development.js +23 -10
- package/cjs/react-dom-unstable-fizz.node.production.min.js +4 -3
- package/cjs/react-dom-unstable-flight-client.development.js +357 -0
- package/cjs/react-dom-unstable-flight-client.production.min.js +16 -0
- package/cjs/react-dom-unstable-flight-server.browser.development.js +392 -0
- package/cjs/react-dom-unstable-flight-server.browser.production.min.js +16 -0
- package/cjs/react-dom-unstable-flight-server.node.development.js +415 -0
- package/cjs/react-dom-unstable-flight-server.node.production.min.js +16 -0
- package/cjs/react-dom-unstable-native-dependencies.development.js +28 -48
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +15 -15
- package/cjs/react-dom.development.js +1912 -2046
- package/cjs/react-dom.production.min.js +266 -269
- package/cjs/react-dom.profiling.min.js +252 -255
- package/package.json +8 -3
- package/umd/react-dom-server.browser.development.js +122 -177
- package/umd/react-dom-server.browser.production.min.js +36 -36
- package/umd/react-dom-test-utils.development.js +55 -91
- package/umd/react-dom-test-utils.production.min.js +9 -9
- package/umd/react-dom-unstable-fizz.browser.development.js +9 -5
- package/umd/react-dom-unstable-fizz.browser.production.min.js +3 -3
- package/umd/react-dom-unstable-flight-client.development.js +357 -0
- package/umd/react-dom-unstable-flight-client.production.min.js +14 -0
- package/umd/react-dom-unstable-flight-server.browser.development.js +390 -0
- package/umd/react-dom-unstable-flight-server.browser.production.min.js +14 -0
- package/umd/react-dom-unstable-native-dependencies.development.js +28 -48
- package/umd/react-dom-unstable-native-dependencies.production.min.js +22 -22
- package/umd/react-dom.development.js +1916 -2050
- package/umd/react-dom.production.min.js +230 -232
- package/umd/react-dom.profiling.min.js +237 -239
- package/unstable-flight-client.js +7 -0
- package/unstable-flight-server.browser.js +7 -0
- package/unstable-flight-server.js +3 -0
- package/unstable-flight-server.node.js +7 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-server.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22,19 +22,11 @@ var stream = require('stream');
|
|
|
22
22
|
|
|
23
23
|
// TODO: this is special because it gets imported during build.
|
|
24
24
|
|
|
25
|
-
var ReactVersion = '16.
|
|
25
|
+
var ReactVersion = '16.12.0';
|
|
26
26
|
|
|
27
27
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
28
|
-
// template literal strings. The messages will be
|
|
29
|
-
// build
|
|
30
|
-
|
|
31
|
-
// Do not require this module directly! Use normal `invariant` calls with
|
|
32
|
-
// template literal strings. The messages will be converted to ReactError during
|
|
33
|
-
// build, and in production they will be minified.
|
|
34
|
-
function ReactError(error) {
|
|
35
|
-
error.name = 'Invariant Violation';
|
|
36
|
-
return error;
|
|
37
|
-
}
|
|
28
|
+
// template literal strings. The messages will be replaced with error codes
|
|
29
|
+
// during build.
|
|
38
30
|
|
|
39
31
|
/**
|
|
40
32
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -365,12 +357,8 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
365
357
|
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
366
358
|
};
|
|
367
359
|
|
|
368
|
-
// Helps identify side effects in
|
|
369
|
-
|
|
370
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
371
|
-
// This can be confusing for tests though,
|
|
372
|
-
// And it can be bad for performance in production.
|
|
373
|
-
// This feature flag can be used to control the behavior:
|
|
360
|
+
// Helps identify side effects in render-phase lifecycle hooks and setState
|
|
361
|
+
// reducers by double invoking them in Strict Mode.
|
|
374
362
|
|
|
375
363
|
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
376
364
|
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
@@ -381,10 +369,9 @@ var warnAboutDeprecatedLifecycles = true; // Gather advanced timing metrics for
|
|
|
381
369
|
|
|
382
370
|
// Trace which interactions trigger each commit.
|
|
383
371
|
|
|
384
|
-
//
|
|
385
|
-
|
|
386
|
-
var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
|
|
372
|
+
// SSR experiments
|
|
387
373
|
|
|
374
|
+
var enableSuspenseServerRenderer = false;
|
|
388
375
|
// Only used in www builds.
|
|
389
376
|
|
|
390
377
|
// Only used in www builds.
|
|
@@ -398,9 +385,6 @@ var disableJavaScriptURLs = false; // React Fire: prevent the value and checked
|
|
|
398
385
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
399
386
|
|
|
400
387
|
|
|
401
|
-
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
|
|
402
|
-
// This is a flag so we can fix warnings in RN core before turning it on
|
|
403
|
-
|
|
404
388
|
// Experimental React Flare event system and event components support.
|
|
405
389
|
|
|
406
390
|
var enableFlareAPI = false; // Experimental Host Component support.
|
|
@@ -410,15 +394,11 @@ var enableFundamentalAPI = false; // Experimental Scope support.
|
|
|
410
394
|
var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
|
|
411
395
|
|
|
412
396
|
// We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
|
|
413
|
-
// Till then, we warn about the missing mock, but still fallback to a
|
|
397
|
+
// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
|
|
414
398
|
|
|
415
399
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
416
400
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
417
401
|
|
|
418
|
-
// Changes priority of some events like mousemove to user-blocking priority,
|
|
419
|
-
// but without making them discrete. The flag exists in case it causes
|
|
420
|
-
// starvation problems.
|
|
421
|
-
|
|
422
402
|
// Add a callback property to suspense to notify which promises are currently
|
|
423
403
|
// in the update queue. This allows reporting and tracing of what is causing
|
|
424
404
|
// the user to see a loading state.
|
|
@@ -433,6 +413,8 @@ var enableScopeAPI = false; // New API for JSX transforms to target - https://gi
|
|
|
433
413
|
|
|
434
414
|
var disableLegacyContext = false;
|
|
435
415
|
|
|
416
|
+
// Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
|
|
417
|
+
|
|
436
418
|
var ReactDebugCurrentFrame$1;
|
|
437
419
|
var didWarnAboutInvalidateContextType;
|
|
438
420
|
|
|
@@ -576,13 +558,11 @@ function growThreadCountAndReturnNextAvailable() {
|
|
|
576
558
|
var oldSize = oldArray.length;
|
|
577
559
|
var newSize = oldSize * 2;
|
|
578
560
|
|
|
579
|
-
(
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
throw ReactError(Error("Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic."));
|
|
583
|
-
}
|
|
561
|
+
if (!(newSize <= 0x10000)) {
|
|
562
|
+
{
|
|
563
|
+
throw Error("Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic.");
|
|
584
564
|
}
|
|
585
|
-
}
|
|
565
|
+
}
|
|
586
566
|
|
|
587
567
|
var newArray = new Uint16Array(newSize);
|
|
588
568
|
newArray.set(oldArray);
|
|
@@ -918,13 +898,11 @@ var didWarn = false;
|
|
|
918
898
|
|
|
919
899
|
function sanitizeURL(url) {
|
|
920
900
|
if (disableJavaScriptURLs) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
throw ReactError(Error("React has blocked a javascript: URL as a security precaution." + (ReactDebugCurrentFrame$2.getStackAddendum())));
|
|
925
|
-
}
|
|
901
|
+
if (!!isJavaScriptProtocol.test(url)) {
|
|
902
|
+
{
|
|
903
|
+
throw Error("React has blocked a javascript: URL as a security precaution." + (ReactDebugCurrentFrame$2.getStackAddendum()));
|
|
926
904
|
}
|
|
927
|
-
}
|
|
905
|
+
}
|
|
928
906
|
} else if (true && !didWarn && isJavaScriptProtocol.test(url)) {
|
|
929
907
|
didWarn = true;
|
|
930
908
|
warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
|
|
@@ -1130,13 +1108,11 @@ var isInHookUserCodeInDev = false; // In DEV, this is the name of the currently
|
|
|
1130
1108
|
var currentHookNameInDev;
|
|
1131
1109
|
|
|
1132
1110
|
function resolveCurrentlyRenderingComponent() {
|
|
1133
|
-
(
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
throw ReactError(Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem."));
|
|
1137
|
-
}
|
|
1111
|
+
if (!(currentlyRenderingComponent !== null)) {
|
|
1112
|
+
{
|
|
1113
|
+
throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1138
1114
|
}
|
|
1139
|
-
}
|
|
1115
|
+
}
|
|
1140
1116
|
|
|
1141
1117
|
{
|
|
1142
1118
|
!!isInHookUserCodeInDev ? warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks') : void 0;
|
|
@@ -1175,13 +1151,11 @@ function areHookInputsEqual(nextDeps, prevDeps) {
|
|
|
1175
1151
|
|
|
1176
1152
|
function createHook() {
|
|
1177
1153
|
if (numberOfReRenders > 0) {
|
|
1178
|
-
|
|
1154
|
+
{
|
|
1179
1155
|
{
|
|
1180
|
-
|
|
1181
|
-
throw ReactError(Error("Rendered more hooks than during the previous render"));
|
|
1182
|
-
}
|
|
1156
|
+
throw Error("Rendered more hooks than during the previous render");
|
|
1183
1157
|
}
|
|
1184
|
-
}
|
|
1158
|
+
}
|
|
1185
1159
|
}
|
|
1186
1160
|
|
|
1187
1161
|
return {
|
|
@@ -1443,13 +1417,11 @@ function useLayoutEffect(create, inputs) {
|
|
|
1443
1417
|
}
|
|
1444
1418
|
|
|
1445
1419
|
function dispatchAction(componentIdentity, queue, action) {
|
|
1446
|
-
(
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
throw ReactError(Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."));
|
|
1450
|
-
}
|
|
1420
|
+
if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
|
|
1421
|
+
{
|
|
1422
|
+
throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");
|
|
1451
1423
|
}
|
|
1452
|
-
}
|
|
1424
|
+
}
|
|
1453
1425
|
|
|
1454
1426
|
if (componentIdentity === currentlyRenderingComponent) {
|
|
1455
1427
|
// This is a render phase update. Stash it in a lazily-created map of
|
|
@@ -1497,6 +1469,21 @@ function useResponder(responder, props) {
|
|
|
1497
1469
|
};
|
|
1498
1470
|
}
|
|
1499
1471
|
|
|
1472
|
+
function useDeferredValue(value, config) {
|
|
1473
|
+
resolveCurrentlyRenderingComponent();
|
|
1474
|
+
return value;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
function useTransition(config) {
|
|
1478
|
+
resolveCurrentlyRenderingComponent();
|
|
1479
|
+
|
|
1480
|
+
var startTransition = function (callback) {
|
|
1481
|
+
callback();
|
|
1482
|
+
};
|
|
1483
|
+
|
|
1484
|
+
return [startTransition, false];
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1500
1487
|
function noop() {}
|
|
1501
1488
|
|
|
1502
1489
|
var currentThreadID = 0;
|
|
@@ -1518,7 +1505,9 @@ var Dispatcher = {
|
|
|
1518
1505
|
useEffect: noop,
|
|
1519
1506
|
// Debugging effect
|
|
1520
1507
|
useDebugValue: noop,
|
|
1521
|
-
useResponder: useResponder
|
|
1508
|
+
useResponder: useResponder,
|
|
1509
|
+
useDeferredValue: useDeferredValue,
|
|
1510
|
+
useTransition: useTransition
|
|
1522
1511
|
};
|
|
1523
1512
|
|
|
1524
1513
|
var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
@@ -1642,44 +1631,36 @@ function assertValidProps(tag, props) {
|
|
|
1642
1631
|
|
|
1643
1632
|
|
|
1644
1633
|
if (voidElementTags[tag]) {
|
|
1645
|
-
(
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
throw ReactError(Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + (ReactDebugCurrentFrame$4.getStackAddendum())));
|
|
1649
|
-
}
|
|
1634
|
+
if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
|
|
1635
|
+
{
|
|
1636
|
+
throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." + (ReactDebugCurrentFrame$4.getStackAddendum()));
|
|
1650
1637
|
}
|
|
1651
|
-
}
|
|
1638
|
+
}
|
|
1652
1639
|
}
|
|
1653
1640
|
|
|
1654
1641
|
if (props.dangerouslySetInnerHTML != null) {
|
|
1655
|
-
(
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
throw ReactError(Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."));
|
|
1659
|
-
}
|
|
1642
|
+
if (!(props.children == null)) {
|
|
1643
|
+
{
|
|
1644
|
+
throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");
|
|
1660
1645
|
}
|
|
1661
|
-
}
|
|
1646
|
+
}
|
|
1662
1647
|
|
|
1663
|
-
(
|
|
1664
|
-
|
|
1665
|
-
{
|
|
1666
|
-
throw ReactError(Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."));
|
|
1667
|
-
}
|
|
1648
|
+
if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
|
|
1649
|
+
{
|
|
1650
|
+
throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.");
|
|
1668
1651
|
}
|
|
1669
|
-
}
|
|
1652
|
+
}
|
|
1670
1653
|
}
|
|
1671
1654
|
|
|
1672
1655
|
{
|
|
1673
1656
|
!(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
|
|
1674
1657
|
}
|
|
1675
1658
|
|
|
1676
|
-
(
|
|
1677
|
-
|
|
1678
|
-
{
|
|
1679
|
-
throw ReactError(Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + (ReactDebugCurrentFrame$4.getStackAddendum())));
|
|
1680
|
-
}
|
|
1659
|
+
if (!(props.style == null || typeof props.style === 'object')) {
|
|
1660
|
+
{
|
|
1661
|
+
throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + (ReactDebugCurrentFrame$4.getStackAddendum()));
|
|
1681
1662
|
}
|
|
1682
|
-
}
|
|
1663
|
+
}
|
|
1683
1664
|
}
|
|
1684
1665
|
|
|
1685
1666
|
/**
|
|
@@ -2924,13 +2905,11 @@ var validatedTagCache = {};
|
|
|
2924
2905
|
|
|
2925
2906
|
function validateDangerousTag(tag) {
|
|
2926
2907
|
if (!validatedTagCache.hasOwnProperty(tag)) {
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
throw ReactError(Error("Invalid tag: " + tag));
|
|
2931
|
-
}
|
|
2908
|
+
if (!VALID_TAG_REGEX.test(tag)) {
|
|
2909
|
+
{
|
|
2910
|
+
throw Error("Invalid tag: " + tag);
|
|
2932
2911
|
}
|
|
2933
|
-
}
|
|
2912
|
+
}
|
|
2934
2913
|
|
|
2935
2914
|
validatedTagCache[tag] = true;
|
|
2936
2915
|
}
|
|
@@ -3120,13 +3099,11 @@ function createOpenTagMarkup(tagVerbatim, tagLowercase, props, namespace, makeSt
|
|
|
3120
3099
|
|
|
3121
3100
|
function validateRenderResult(child, type) {
|
|
3122
3101
|
if (child === undefined) {
|
|
3123
|
-
|
|
3102
|
+
{
|
|
3124
3103
|
{
|
|
3125
|
-
|
|
3126
|
-
throw ReactError(Error((getComponentName(type) || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."));
|
|
3127
|
-
}
|
|
3104
|
+
throw Error((getComponentName(type) || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.");
|
|
3128
3105
|
}
|
|
3129
|
-
}
|
|
3106
|
+
}
|
|
3130
3107
|
}
|
|
3131
3108
|
}
|
|
3132
3109
|
|
|
@@ -3342,13 +3319,11 @@ function resolve(child, context, threadID) {
|
|
|
3342
3319
|
childContext = inst.getChildContext();
|
|
3343
3320
|
|
|
3344
3321
|
for (var contextKey in childContext) {
|
|
3345
|
-
(
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
throw ReactError(Error((getComponentName(Component) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes."));
|
|
3349
|
-
}
|
|
3322
|
+
if (!(contextKey in _childContextTypes)) {
|
|
3323
|
+
{
|
|
3324
|
+
throw Error((getComponentName(Component) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes.");
|
|
3350
3325
|
}
|
|
3351
|
-
}
|
|
3326
|
+
}
|
|
3352
3327
|
}
|
|
3353
3328
|
} else {
|
|
3354
3329
|
warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', getComponentName(Component) || 'Unknown');
|
|
@@ -3481,8 +3456,6 @@ function () {
|
|
|
3481
3456
|
};
|
|
3482
3457
|
|
|
3483
3458
|
_proto.read = function read(bytes) {
|
|
3484
|
-
var _this = this;
|
|
3485
|
-
|
|
3486
3459
|
if (this.exhausted) {
|
|
3487
3460
|
return null;
|
|
3488
3461
|
}
|
|
@@ -3530,13 +3503,11 @@ function () {
|
|
|
3530
3503
|
|
|
3531
3504
|
var fallbackFrame = frame.fallbackFrame;
|
|
3532
3505
|
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
throw ReactError(Error("ReactDOMServer did not find an internal fallback frame for Suspense. This is a bug in React. Please file an issue."));
|
|
3537
|
-
}
|
|
3506
|
+
if (!fallbackFrame) {
|
|
3507
|
+
{
|
|
3508
|
+
throw Error("ReactDOMServer did not find an internal fallback frame for Suspense. This is a bug in React. Please file an issue.");
|
|
3538
3509
|
}
|
|
3539
|
-
}
|
|
3510
|
+
}
|
|
3540
3511
|
|
|
3541
3512
|
this.stack.push(fallbackFrame);
|
|
3542
3513
|
out[this.suspenseDepth] += '<!--$!-->'; // Skip flushing output since we're switching to the fallback
|
|
@@ -3566,23 +3537,19 @@ function () {
|
|
|
3566
3537
|
} catch (err) {
|
|
3567
3538
|
if (err != null && typeof err.then === 'function') {
|
|
3568
3539
|
if (enableSuspenseServerRenderer) {
|
|
3569
|
-
(
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
throw ReactError(Error("A React component suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."));
|
|
3573
|
-
}
|
|
3540
|
+
if (!(this.suspenseDepth > 0)) {
|
|
3541
|
+
{
|
|
3542
|
+
throw Error("A React component suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.");
|
|
3574
3543
|
}
|
|
3575
|
-
}
|
|
3544
|
+
}
|
|
3576
3545
|
|
|
3577
3546
|
suspended = true;
|
|
3578
3547
|
} else {
|
|
3579
|
-
|
|
3548
|
+
{
|
|
3580
3549
|
{
|
|
3581
|
-
|
|
3582
|
-
throw ReactError(Error("ReactDOMServer does not yet support Suspense."));
|
|
3583
|
-
}
|
|
3550
|
+
throw Error("ReactDOMServer does not yet support Suspense.");
|
|
3584
3551
|
}
|
|
3585
|
-
}
|
|
3552
|
+
}
|
|
3586
3553
|
}
|
|
3587
3554
|
} else {
|
|
3588
3555
|
throw err;
|
|
@@ -3640,22 +3607,18 @@ function () {
|
|
|
3640
3607
|
// Catch unexpected special types early.
|
|
3641
3608
|
var $$typeof = nextChild.$$typeof;
|
|
3642
3609
|
|
|
3643
|
-
(
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
throw ReactError(Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."));
|
|
3647
|
-
}
|
|
3610
|
+
if (!($$typeof !== REACT_PORTAL_TYPE)) {
|
|
3611
|
+
{
|
|
3612
|
+
throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");
|
|
3648
3613
|
}
|
|
3649
|
-
}
|
|
3614
|
+
} // Catch-all to prevent an infinite loop if React.Children.toArray() supports some new type.
|
|
3650
3615
|
|
|
3651
3616
|
|
|
3652
|
-
|
|
3617
|
+
{
|
|
3653
3618
|
{
|
|
3654
|
-
|
|
3655
|
-
throw ReactError(Error("Unknown element-like object type: " + $$typeof.toString() + ". This is likely a bug in React. Please file an issue."));
|
|
3656
|
-
}
|
|
3619
|
+
throw Error("Unknown element-like object type: " + $$typeof.toString() + ". This is likely a bug in React. Please file an issue.");
|
|
3657
3620
|
}
|
|
3658
|
-
}
|
|
3621
|
+
}
|
|
3659
3622
|
}
|
|
3660
3623
|
|
|
3661
3624
|
var nextChildren = toArray(nextChild);
|
|
@@ -3767,13 +3730,11 @@ function () {
|
|
|
3767
3730
|
this.suspenseDepth++;
|
|
3768
3731
|
return '<!--$-->';
|
|
3769
3732
|
} else {
|
|
3770
|
-
|
|
3733
|
+
{
|
|
3771
3734
|
{
|
|
3772
|
-
|
|
3773
|
-
throw ReactError(Error("ReactDOMServer does not yet support Suspense."));
|
|
3774
|
-
}
|
|
3735
|
+
throw Error("ReactDOMServer does not yet support Suspense.");
|
|
3775
3736
|
}
|
|
3776
|
-
}
|
|
3737
|
+
}
|
|
3777
3738
|
}
|
|
3778
3739
|
}
|
|
3779
3740
|
// eslint-disable-next-line-no-fallthrough
|
|
@@ -3938,13 +3899,11 @@ function () {
|
|
|
3938
3899
|
return open;
|
|
3939
3900
|
}
|
|
3940
3901
|
|
|
3941
|
-
|
|
3902
|
+
{
|
|
3942
3903
|
{
|
|
3943
|
-
|
|
3944
|
-
throw ReactError(Error("ReactDOMServer does not yet support the fundamental API."));
|
|
3945
|
-
}
|
|
3904
|
+
throw Error("ReactDOMServer does not yet support the fundamental API.");
|
|
3946
3905
|
}
|
|
3947
|
-
}
|
|
3906
|
+
}
|
|
3948
3907
|
}
|
|
3949
3908
|
// eslint-disable-next-line-no-fallthrough
|
|
3950
3909
|
|
|
@@ -3985,13 +3944,11 @@ function () {
|
|
|
3985
3944
|
|
|
3986
3945
|
case Pending:
|
|
3987
3946
|
default:
|
|
3988
|
-
|
|
3947
|
+
{
|
|
3989
3948
|
{
|
|
3990
|
-
|
|
3991
|
-
throw ReactError(Error("ReactDOMServer does not yet support lazy-loaded components."));
|
|
3992
|
-
}
|
|
3949
|
+
throw Error("ReactDOMServer does not yet support lazy-loaded components.");
|
|
3993
3950
|
}
|
|
3994
|
-
}
|
|
3951
|
+
}
|
|
3995
3952
|
|
|
3996
3953
|
}
|
|
3997
3954
|
}
|
|
@@ -4019,13 +3976,11 @@ function () {
|
|
|
4019
3976
|
return '';
|
|
4020
3977
|
}
|
|
4021
3978
|
|
|
4022
|
-
|
|
3979
|
+
{
|
|
4023
3980
|
{
|
|
4024
|
-
|
|
4025
|
-
throw ReactError(Error("ReactDOMServer does not yet support scope components."));
|
|
4026
|
-
}
|
|
3981
|
+
throw Error("ReactDOMServer does not yet support scope components.");
|
|
4027
3982
|
}
|
|
4028
|
-
}
|
|
3983
|
+
}
|
|
4029
3984
|
}
|
|
4030
3985
|
}
|
|
4031
3986
|
}
|
|
@@ -4046,13 +4001,11 @@ function () {
|
|
|
4046
4001
|
}
|
|
4047
4002
|
}
|
|
4048
4003
|
|
|
4049
|
-
|
|
4004
|
+
{
|
|
4050
4005
|
{
|
|
4051
|
-
|
|
4052
|
-
throw ReactError(Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (elementType == null ? elementType : typeof elementType) + "." + info));
|
|
4053
|
-
}
|
|
4006
|
+
throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (elementType == null ? elementType : typeof elementType) + "." + info);
|
|
4054
4007
|
}
|
|
4055
|
-
}
|
|
4008
|
+
}
|
|
4056
4009
|
}
|
|
4057
4010
|
};
|
|
4058
4011
|
|
|
@@ -4120,22 +4073,18 @@ function () {
|
|
|
4120
4073
|
warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
|
|
4121
4074
|
}
|
|
4122
4075
|
|
|
4123
|
-
(
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
throw ReactError(Error("If you supply `defaultValue` on a <textarea>, do not pass children."));
|
|
4127
|
-
}
|
|
4076
|
+
if (!(defaultValue == null)) {
|
|
4077
|
+
{
|
|
4078
|
+
throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");
|
|
4128
4079
|
}
|
|
4129
|
-
}
|
|
4080
|
+
}
|
|
4130
4081
|
|
|
4131
4082
|
if (Array.isArray(textareaChildren)) {
|
|
4132
|
-
(
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
throw ReactError(Error("<textarea> can only have at most one child."));
|
|
4136
|
-
}
|
|
4083
|
+
if (!(textareaChildren.length <= 1)) {
|
|
4084
|
+
{
|
|
4085
|
+
throw Error("<textarea> can only have at most one child.");
|
|
4137
4086
|
}
|
|
4138
|
-
}
|
|
4087
|
+
}
|
|
4139
4088
|
|
|
4140
4089
|
textareaChildren = textareaChildren[0];
|
|
4141
4090
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-server.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var k=require("object-assign"),m=require("react"),aa=require("stream");function r(a){for(var b=
|
|
10
|
+
'use strict';var k=require("object-assign"),m=require("react"),aa=require("stream");function r(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
|
|
11
11
|
var u="function"===typeof Symbol&&Symbol.for,ba=u?Symbol.for("react.portal"):60106,v=u?Symbol.for("react.fragment"):60107,ca=u?Symbol.for("react.strict_mode"):60108,da=u?Symbol.for("react.profiler"):60114,x=u?Symbol.for("react.provider"):60109,ea=u?Symbol.for("react.context"):60110,fa=u?Symbol.for("react.concurrent_mode"):60111,ha=u?Symbol.for("react.forward_ref"):60112,B=u?Symbol.for("react.suspense"):60113,ia=u?Symbol.for("react.suspense_list"):60120,ja=u?Symbol.for("react.memo"):60115,ka=u?Symbol.for("react.lazy"):
|
|
12
12
|
60116,la=u?Symbol.for("react.fundamental"):60117,ma=u?Symbol.for("react.scope"):60119,C=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;C.hasOwnProperty("ReactCurrentDispatcher")||(C.ReactCurrentDispatcher={current:null});C.hasOwnProperty("ReactCurrentBatchConfig")||(C.ReactCurrentBatchConfig={suspense:null});
|
|
13
13
|
function na(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b();a._result=b;b.then(function(c){0===a._status&&(c=c.default,a._status=1,a._result=c)},function(c){0===a._status&&(a._status=2,a._result=c)})}}
|
|
@@ -24,32 +24,32 @@ M);K[b]=new J(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:
|
|
|
24
24
|
K.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){K[a]=new J(a,1,!1,a.toLowerCase(),null,!0)});var xa=/["'&<>]/;
|
|
25
25
|
function N(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=xa.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b}a=f!==d?c+a.substring(f,d):c}return a}
|
|
26
26
|
function ya(a,b){var c=K.hasOwnProperty(a)?K[a]:null;var d;if(d="style"!==a)d=null!==c?0===c.type:!(2<a.length)||"o"!==a[0]&&"O"!==a[0]||"n"!==a[1]&&"N"!==a[1]?!1:!0;if(d||wa(a,b,c,!1))return"";if(null!==c){a=c.attributeName;d=c.type;if(3===d||4===d&&!0===b)return a+'=""';c.sanitizeURL&&(b=""+b);return a+"="+('"'+N(b)+'"')}return ua(a)?a+"="+('"'+N(b)+'"'):""}function za(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}
|
|
27
|
-
var Aa="function"===typeof Object.is?Object.is:za,O=null,P=null,Q=null,R=!1,S=!1,U=null,V=0;function W(){if(null===O)throw r(
|
|
27
|
+
var Aa="function"===typeof Object.is?Object.is:za,O=null,P=null,Q=null,R=!1,S=!1,U=null,V=0;function W(){if(null===O)throw Error(r(321));return O}function Ba(){if(0<V)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Ca(){null===Q?null===P?(R=!1,P=Q=Ba()):(R=!0,Q=P):null===Q.next?(R=!1,Q=Q.next=Ba()):(R=!0,Q=Q.next);return Q}function Da(a,b,c,d){for(;S;)S=!1,V+=1,Q=null,c=a(b,d);P=O=null;V=0;Q=U=null;return c}function Ea(a,b){return"function"===typeof b?b(a):b}
|
|
28
28
|
function Fa(a,b,c){O=W();Q=Ca();if(R){var d=Q.queue;b=d.dispatch;if(null!==U&&(c=U.get(d),void 0!==c)){U.delete(d);d=Q.memoizedState;do d=a(d,c.action),c=c.next;while(null!==c);Q.memoizedState=d;return[d,b]}return[Q.memoizedState,b]}a=a===Ea?"function"===typeof b?b():b:void 0!==c?c(b):b;Q.memoizedState=a;a=Q.queue={last:null,dispatch:null};a=a.dispatch=Ga.bind(null,O,a);return[Q.memoizedState,a]}
|
|
29
|
-
function Ga(a,b,c){if(!(25>V))throw r(
|
|
29
|
+
function Ga(a,b,c){if(!(25>V))throw Error(r(301));if(a===O)if(S=!0,a={action:c,next:null},null===U&&(U=new Map),c=U.get(b),void 0===c)U.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}}function Ha(){}
|
|
30
30
|
var X=0,Ia={readContext:function(a){var b=X;E(a,b);return a[b]},useContext:function(a){W();var b=X;E(a,b);return a[b]},useMemo:function(a,b){O=W();Q=Ca();b=void 0===b?null:b;if(null!==Q){var c=Q.memoizedState;if(null!==c&&null!==b){a:{var d=c[1];if(null===d)d=!1;else{for(var f=0;f<d.length&&f<b.length;f++)if(!Aa(b[f],d[f])){d=!1;break a}d=!0}}if(d)return c[0]}}a=a();Q.memoizedState=[a,b];return a},useReducer:Fa,useRef:function(a){O=W();Q=Ca();var b=Q.memoizedState;return null===b?(a={current:a},Q.memoizedState=
|
|
31
|
-
a):b},useState:function(a){return Fa(Ea,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ha,useEffect:Ha,useDebugValue:Ha,useResponder:function(a,b){return{props:b,responder:a}}},Ja={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
|
|
31
|
+
a):b},useState:function(a){return Fa(Ea,a)},useLayoutEffect:function(){},useCallback:function(a){return a},useImperativeHandle:Ha,useEffect:Ha,useDebugValue:Ha,useResponder:function(a,b){return{props:b,responder:a}},useDeferredValue:function(a){W();return a},useTransition:function(){W();return[function(a){a()},!1]}},Ja={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
|
|
32
32
|
function Ka(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
|
|
33
33
|
var La={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ma=k({menuitem:!0},La),Y={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,
|
|
34
34
|
gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Na=["Webkit","ms","Moz","O"];Object.keys(Y).forEach(function(a){Na.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Y[b]=Y[a]})});
|
|
35
|
-
var Oa=/([A-Z])/g,Pa=/^ms-/,Z=m.Children.toArray,Qa=C.ReactCurrentDispatcher,Ra={listing:!0,pre:!0,textarea:!0},Sa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ta={},Ua={};function Va(a){if(void 0===a||null===a)return a;var b="";m.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Wa=Object.prototype.hasOwnProperty,Xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ya(a,b){if(void 0===a)throw r(
|
|
35
|
+
var Oa=/([A-Z])/g,Pa=/^ms-/,Z=m.Children.toArray,Qa=C.ReactCurrentDispatcher,Ra={listing:!0,pre:!0,textarea:!0},Sa=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ta={},Ua={};function Va(a){if(void 0===a||null===a)return a;var b="";m.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Wa=Object.prototype.hasOwnProperty,Xa={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ya(a,b){if(void 0===a)throw Error(r(152,D(b)||"Component"));}
|
|
36
36
|
function Za(a,b,c){function d(d,h){var e=h.prototype&&h.prototype.isReactComponent,f=pa(h,b,c,e),p=[],g=!1,l={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===p)return null},enqueueReplaceState:function(a,c){g=!0;p=[c]},enqueueSetState:function(a,c){if(null===p)return null;p.push(c)}};if(e){if(e=new h(d.props,f,l),"function"===typeof h.getDerivedStateFromProps){var w=h.getDerivedStateFromProps.call(null,d.props,e.state);null!=w&&(e.state=k({},e.state,w))}}else if(O={},e=h(d.props,
|
|
37
37
|
f,l),e=Da(h,d.props,e,f),null==e||null==e.render){a=e;Ya(a,h);return}e.props=d.props;e.context=f;e.updater=l;l=e.state;void 0===l&&(e.state=l=null);if("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount)if("function"===typeof e.componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&"function"!==typeof h.getDerivedStateFromProps&&e.UNSAFE_componentWillMount(),p.length){l=p;var t=
|
|
38
|
-
g;p=null;g=!1;if(t&&1===l.length)e.state=l[0];else{w=t?l[0]:e.state;var y=!0;for(t=t?1:0;t<l.length;t++){var q=l[t];q="function"===typeof q?q.call(e,w,d.props,f):q;null!=q&&(y?(y=!1,w=k({},w,q)):k(w,q))}e.state=w}}else p=null;a=e.render();Ya(a,h);if("function"===typeof e.getChildContext&&(d=h.childContextTypes,"object"===typeof d)){var A=e.getChildContext();for(var T in A)if(!(T in d))throw r(
|
|
38
|
+
g;p=null;g=!1;if(t&&1===l.length)e.state=l[0];else{w=t?l[0]:e.state;var y=!0;for(t=t?1:0;t<l.length;t++){var q=l[t];q="function"===typeof q?q.call(e,w,d.props,f):q;null!=q&&(y?(y=!1,w=k({},w,q)):k(w,q))}e.state=w}}else p=null;a=e.render();Ya(a,h);if("function"===typeof e.getChildContext&&(d=h.childContextTypes,"object"===typeof d)){var A=e.getChildContext();for(var T in A)if(!(T in d))throw Error(r(108,D(h)||"Unknown",T));}A&&(b=k({},b,A))}for(;m.isValidElement(a);){var f=a,h=f.type;if("function"!==
|
|
39
39
|
typeof h)break;d(f,h)}return{child:a,context:b}}
|
|
40
|
-
var $a=function(){function a(a,b){m.isValidElement(a)?a.type!==v?a=[a]:(a=a.props.children,a=m.isValidElement(a)?[a]:Z(a)):a=Z(a);a={type:null,domNamespace:Ja.html,children:a,childIndex:0,context:oa,footer:""};var c=F[0];if(0===c){var d=F;c=d.length;var p=2*c;if(!(65536>=p))throw r(
|
|
40
|
+
var $a=function(){function a(a,b){m.isValidElement(a)?a.type!==v?a=[a]:(a=a.props.children,a=m.isValidElement(a)?[a]:Z(a)):a=Z(a);a={type:null,domNamespace:Ja.html,children:a,childIndex:0,context:oa,footer:""};var c=F[0];if(0===c){var d=F;c=d.length;var p=2*c;if(!(65536>=p))throw Error(r(304));var g=new Uint16Array(p);g.set(d);F=g;F[0]=c+1;for(d=c;d<p-1;d++)F[d]=d+1;F[p-1]=0}else F[0]=F[c];this.threadID=c;this.stack=[a];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=
|
|
41
41
|
b;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}var b=a.prototype;b.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;F[a]=F[0];F[0]=a}};b.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,h=this.threadID;E(c,h);var p=c[h];this.contextStack[b]=c;this.contextValueStack[b]=p;c[h]=a.props.value};b.popProvider=function(){var a=this.contextIndex,b=this.contextStack[a],f=this.contextValueStack[a];
|
|
42
42
|
this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=f};b.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};b.read=function(a){if(this.exhausted)return null;var b=X;X=this.threadID;var c=Qa.current;Qa.current=Ia;try{for(var h=[""],p=!1;h[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var g=this.threadID;F[g]=F[0];F[0]=g;break}var e=this.stack[this.stack.length-1];if(p||e.childIndex>=
|
|
43
|
-
e.children.length){var I=e.footer;""!==I&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===x)this.popProvider(e.type);else if(e.type===B){this.suspenseDepth--;var G=h.pop();if(p){p=!1;var n=e.fallbackFrame;if(!n)throw r(
|
|
44
|
-
w="";try{w+=this.render(l,e.context,e.domNamespace)}catch(t){if(null!=t&&"function"===typeof t.then)throw r(
|
|
45
|
-
b=b.context;if(null===a||!1===a)return"";if(!m.isValidElement(a)){if(null!=a&&null!=a.$$typeof){f=a.$$typeof;if(f===ba)throw r(
|
|
46
|
-
"";case B:throw r(
|
|
47
|
-
context:b,footer:""},this.pushProvider(a),this.stack.push(f),"";case ea:c=a.type;d=a.props;var g=this.threadID;E(c,g);c=Z(d.children(c[g]));this.stack.push({type:a,domNamespace:f,children:c,childIndex:0,context:b,footer:""});return"";case la:throw r(
|
|
48
|
-
}case ma:throw r(
|
|
49
|
-
g)throw r(
|
|
50
|
-
d,{selected:g,children:I})}}if(g=d){if(Ma[c]&&(null!=g.children||null!=g.dangerouslySetInnerHTML))throw r(
|
|
43
|
+
e.children.length){var I=e.footer;""!==I&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===e.type)this.currentSelectValue=null;else if(null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===x)this.popProvider(e.type);else if(e.type===B){this.suspenseDepth--;var G=h.pop();if(p){p=!1;var n=e.fallbackFrame;if(!n)throw Error(r(303));this.stack.push(n);h[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}else h[this.suspenseDepth]+=G}h[this.suspenseDepth]+=I}else{var l=e.children[e.childIndex++],
|
|
44
|
+
w="";try{w+=this.render(l,e.context,e.domNamespace)}catch(t){if(null!=t&&"function"===typeof t.then)throw Error(r(294));throw t;}finally{}h.length<=this.suspenseDepth&&h.push("");h[this.suspenseDepth]+=w}}return h[0]}finally{Qa.current=c,X=b}};b.render=function(a,b,f){if("string"===typeof a||"number"===typeof a){f=""+a;if(""===f)return"";if(this.makeStaticMarkup)return N(f);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+N(f);this.previousWasTextNode=!0;return N(f)}b=Za(a,b,this.threadID);a=b.child;
|
|
45
|
+
b=b.context;if(null===a||!1===a)return"";if(!m.isValidElement(a)){if(null!=a&&null!=a.$$typeof){f=a.$$typeof;if(f===ba)throw Error(r(257));throw Error(r(258,f.toString()));}a=Z(a);this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""});return""}var c=a.type;if("string"===typeof c)return this.renderDOM(a,b,f);switch(c){case ca:case fa:case da:case ia:case v:return a=Z(a.props.children),this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),
|
|
46
|
+
"";case B:throw Error(r(294));}if("object"===typeof c&&null!==c)switch(c.$$typeof){case ha:O={};var d=c.render(a.props,a.ref);d=Da(c.render,a.props,d,a.ref);d=Z(d);this.stack.push({type:null,domNamespace:f,children:d,childIndex:0,context:b,footer:""});return"";case ja:return a=[m.createElement(c.type,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case x:return c=Z(a.props.children),f={type:a,domNamespace:f,children:c,childIndex:0,
|
|
47
|
+
context:b,footer:""},this.pushProvider(a),this.stack.push(f),"";case ea:c=a.type;d=a.props;var g=this.threadID;E(c,g);c=Z(d.children(c[g]));this.stack.push({type:a,domNamespace:f,children:c,childIndex:0,context:b,footer:""});return"";case la:throw Error(r(338));case ka:switch(c=a.type,na(c),c._status){case 1:return a=[m.createElement(c._result,k({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:f,children:a,childIndex:0,context:b,footer:""}),"";case 2:throw c._result;default:throw Error(r(295));
|
|
48
|
+
}case ma:throw Error(r(343));}throw Error(r(130,null==c?c:typeof c,""));};b.renderDOM=function(a,b,f){var c=a.type.toLowerCase();f===Ja.html&&Ka(c);if(!Ta.hasOwnProperty(c)){if(!Sa.test(c))throw Error(r(65,c));Ta[c]=!0}var d=a.props;if("input"===c)d=k({type:void 0},d,{defaultChecked:void 0,defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if("textarea"===c){var g=d.value;if(null==g){g=d.defaultValue;var e=d.children;if(null!=e){if(null!=
|
|
49
|
+
g)throw Error(r(92));if(Array.isArray(e)){if(!(1>=e.length))throw Error(r(93));e=e[0]}g=""+e}null==g&&(g="")}d=k({},d,{value:void 0,children:""+g})}else if("select"===c)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=k({},d,{value:void 0});else if("option"===c){e=this.currentSelectValue;var I=Va(d.children);if(null!=e){var G=null!=d.value?d.value+"":I;g=!1;if(Array.isArray(e))for(var n=0;n<e.length;n++){if(""+e[n]===G){g=!0;break}}else g=""+e===G;d=k({selected:void 0,children:void 0},
|
|
50
|
+
d,{selected:g,children:I})}}if(g=d){if(Ma[c]&&(null!=g.children||null!=g.dangerouslySetInnerHTML))throw Error(r(137,c,""));if(null!=g.dangerouslySetInnerHTML){if(null!=g.children)throw Error(r(60));if(!("object"===typeof g.dangerouslySetInnerHTML&&"__html"in g.dangerouslySetInnerHTML))throw Error(r(61));}if(null!=g.style&&"object"!==typeof g.style)throw Error(r(62,""));}g=d;e=this.makeStaticMarkup;I=1===this.stack.length;G="<"+a.type;for(z in g)if(Wa.call(g,z)){var l=g[z];if(null!=l){if("style"===
|
|
51
51
|
z){n=void 0;var w="",t="";for(n in l)if(l.hasOwnProperty(n)){var y=0===n.indexOf("--"),q=l[n];if(null!=q){if(y)var A=n;else if(A=n,Ua.hasOwnProperty(A))A=Ua[A];else{var T=A.replace(Oa,"-$1").toLowerCase().replace(Pa,"-ms-");A=Ua[A]=T}w+=t+A+":";t=n;y=null==q||"boolean"===typeof q||""===q?"":y||"number"!==typeof q||0===q||Y.hasOwnProperty(t)&&Y[t]?(""+q).trim():q+"px";w+=y;t=";"}}l=w||null}n=null;b:if(y=c,q=g,-1===y.indexOf("-"))y="string"===typeof q.is;else switch(y){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":y=
|
|
52
52
|
!1;break b;default:y=!0}y?Xa.hasOwnProperty(z)||(n=z,n=ua(n)&&null!=l?n+"="+('"'+N(l)+'"'):""):n=ya(z,l);n&&(G+=" "+n)}}e||I&&(G+=' data-reactroot=""');var z=G;g="";La.hasOwnProperty(c)?z+="/>":(z+=">",g="</"+a.type+">");a:{e=d.dangerouslySetInnerHTML;if(null!=e){if(null!=e.__html){e=e.__html;break a}}else if(e=d.children,"string"===typeof e||"number"===typeof e){e=N(e);break a}e=null}null!=e?(d=[],Ra[c]&&"\n"===e.charAt(0)&&(z+="\n"),z+=e):d=Z(d.children);a=a.type;f=null==f||"http://www.w3.org/1999/xhtml"===
|
|
53
53
|
f?Ka(a):"http://www.w3.org/2000/svg"===f&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":f;this.stack.push({domNamespace:f,type:c,children:d,childIndex:0,context:b,footer:g});this.previousWasTextNode=!1;return z};return a}();function ab(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b}
|
|
54
54
|
var bb=function(a){function b(b,c){var d=a.call(this,{})||this;d.partialRenderer=new $a(b,c);return d}ab(b,a);var c=b.prototype;c._destroy=function(a,b){this.partialRenderer.destroy();b(a)};c._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(f){this.destroy(f)}};return b}(aa.Readable),cb={renderToString:function(a){a=new $a(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new $a(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(a){return new bb(a,
|
|
55
|
-
!1)},renderToStaticNodeStream:function(a){return new bb(a,!0)},version:"16.
|
|
55
|
+
!1)},renderToStaticNodeStream:function(a){return new bb(a,!0)},version:"16.12.0"},db={default:cb},eb=db&&cb||db;module.exports=eb.default||eb;
|