@expo/cli 1.0.0-canary-20250404-87e2506 → 1.0.0-canary-20250630-547cd82
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/README.md +33 -24
- package/build/bin/cli +1 -1
- package/build/metro-require/require.js +6 -4
- package/build/src/api/user/actions.js +25 -11
- package/build/src/api/user/actions.js.map +1 -1
- package/build/src/customize/templates.js +15 -1
- package/build/src/customize/templates.js.map +1 -1
- package/build/src/export/exportApp.js +26 -14
- package/build/src/export/exportApp.js.map +1 -1
- package/build/src/export/exportAsync.js +6 -0
- package/build/src/export/exportAsync.js.map +1 -1
- package/build/src/export/exportHermes.js +2 -2
- package/build/src/export/exportHermes.js.map +1 -1
- package/build/src/export/persistMetroAssets.js.map +1 -1
- package/build/src/install/checkPackages.js +22 -4
- package/build/src/install/checkPackages.js.map +1 -1
- package/build/src/install/index.js +3 -1
- package/build/src/install/index.js.map +1 -1
- package/build/src/install/resolveOptions.js +7 -2
- package/build/src/install/resolveOptions.js.map +1 -1
- package/build/src/install/utils/checkPackagesCompatibility.js +1 -1
- package/build/src/install/utils/checkPackagesCompatibility.js.map +1 -1
- package/build/src/lint/ESlintPrerequisite.js +32 -48
- package/build/src/lint/ESlintPrerequisite.js.map +1 -1
- package/build/src/lint/index.js +45 -47
- package/build/src/lint/index.js.map +1 -1
- package/build/src/lint/lintAsync.js +150 -4
- package/build/src/lint/lintAsync.js.map +1 -1
- package/build/src/lint/resolveOptions.js +115 -0
- package/build/src/lint/resolveOptions.js.map +1 -0
- package/build/src/prebuild/renameTemplateAppName.js +4 -1
- package/build/src/prebuild/renameTemplateAppName.js.map +1 -1
- package/build/src/prebuild/resolveTemplate.js +4 -4
- package/build/src/prebuild/resolveTemplate.js.map +1 -1
- package/build/src/prebuild/updatePackageJson.js +19 -9
- package/build/src/prebuild/updatePackageJson.js.map +1 -1
- package/build/src/run/android/resolveOptions.js +13 -1
- package/build/src/run/android/resolveOptions.js.map +1 -1
- package/build/src/run/android/runAndroidAsync.js +39 -17
- package/build/src/run/android/runAndroidAsync.js.map +1 -1
- package/build/src/run/ios/XcodeBuild.js +3 -3
- package/build/src/run/ios/XcodeBuild.js.map +1 -1
- package/build/src/run/ios/options/resolveOptions.js +13 -1
- package/build/src/run/ios/options/resolveOptions.js.map +1 -1
- package/build/src/run/ios/runIosAsync.js +38 -7
- package/build/src/run/ios/runIosAsync.js.map +1 -1
- package/build/src/start/doctor/SecurityBinPrerequisite.js +1 -1
- package/build/src/start/doctor/SecurityBinPrerequisite.js.map +1 -1
- package/build/src/start/doctor/apple/XcodePrerequisite.js +1 -1
- package/build/src/start/doctor/apple/XcodePrerequisite.js.map +1 -1
- package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js +1 -1
- package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js.map +1 -1
- package/build/src/start/doctor/dependencies/resolvePackages.js +1 -1
- package/build/src/start/doctor/dependencies/resolvePackages.js.map +1 -1
- package/build/src/start/doctor/ngrok/ExternalModule.js +1 -1
- package/build/src/start/doctor/ngrok/ExternalModule.js.map +1 -1
- package/build/src/start/index.js +1 -1
- package/build/src/start/index.js.map +1 -1
- package/build/src/start/platforms/PlatformManager.js +1 -1
- package/build/src/start/platforms/PlatformManager.js.map +1 -1
- package/build/src/start/platforms/android/AndroidPlatformManager.js +1 -1
- package/build/src/start/platforms/android/AndroidPlatformManager.js.map +1 -1
- package/build/src/start/platforms/android/getDevices.js +1 -1
- package/build/src/start/platforms/android/getDevices.js.map +1 -1
- package/build/src/start/platforms/ios/AppleDeviceManager.js +1 -1
- package/build/src/start/platforms/ios/AppleDeviceManager.js.map +1 -1
- package/build/src/start/platforms/ios/xcrun.js +1 -1
- package/build/src/start/platforms/ios/xcrun.js.map +1 -1
- package/build/src/start/project/dotExpo.js +5 -0
- package/build/src/start/project/dotExpo.js.map +1 -1
- package/build/src/start/resolveOptions.js +3 -0
- package/build/src/start/resolveOptions.js.map +1 -1
- package/build/src/start/server/metro/MetroBundlerDevServer.js +38 -26
- package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
- package/build/src/start/server/metro/MetroTerminalReporter.js +29 -2
- package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
- package/build/src/start/server/metro/createExpoFallbackResolver.js +6 -4
- package/build/src/start/server/metro/createExpoFallbackResolver.js.map +1 -1
- package/build/src/start/server/metro/createJResolver.js +2 -2
- package/build/src/start/server/metro/createJResolver.js.map +1 -1
- package/build/src/start/server/metro/createServerComponentsMiddleware.js +16 -5
- package/build/src/start/server/metro/createServerComponentsMiddleware.js.map +1 -1
- package/build/src/start/server/metro/debugging/createDebugMiddleware.js +19 -19
- package/build/src/start/server/metro/debugging/createDebugMiddleware.js.map +1 -1
- package/build/src/start/server/metro/externals.js +1 -1
- package/build/src/start/server/metro/externals.js.map +1 -1
- package/build/src/start/server/metro/instantiateMetro.js +13 -8
- package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
- package/build/src/start/server/metro/log-box/LogBoxSymbolication.js +21 -2
- package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
- package/build/src/start/server/metro/log-box/formatProjectFilePath.js +15 -12
- package/build/src/start/server/metro/log-box/formatProjectFilePath.js.map +1 -1
- package/build/src/start/server/metro/metroErrorInterface.js +19 -8
- package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
- package/build/src/start/server/metro/runServer-fork.js +1 -1
- package/build/src/start/server/metro/runServer-fork.js.map +1 -1
- package/build/src/start/server/metro/withMetroMultiPlatform.js +8 -2
- package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
- package/build/src/start/server/middleware/CorsMiddleware.js +1 -1
- package/build/src/start/server/middleware/CorsMiddleware.js.map +1 -1
- package/build/src/start/server/middleware/ManifestMiddleware.js +4 -8
- package/build/src/start/server/middleware/ManifestMiddleware.js.map +1 -1
- package/build/src/start/server/middleware/inspector/JsInspector.js +2 -25
- package/build/src/start/server/middleware/inspector/JsInspector.js.map +1 -1
- package/build/src/start/server/middleware/metroOptions.js +2 -26
- package/build/src/start/server/middleware/metroOptions.js.map +1 -1
- package/build/src/utils/build-cache-providers/helpers.js +61 -0
- package/build/src/utils/build-cache-providers/helpers.js.map +1 -0
- package/build/src/utils/build-cache-providers/index.js +283 -0
- package/build/src/utils/build-cache-providers/index.js.map +1 -0
- package/build/src/utils/codesigning.js +14 -2
- package/build/src/utils/codesigning.js.map +1 -1
- package/build/src/utils/exit.js +0 -1
- package/build/src/utils/exit.js.map +1 -1
- package/build/src/utils/ip.js +7 -104
- package/build/src/utils/ip.js.map +1 -1
- package/build/src/utils/modifyConfigAsync.js +1 -1
- package/build/src/utils/modifyConfigAsync.js.map +1 -1
- package/build/src/utils/resolveArgs.js +8 -0
- package/build/src/utils/resolveArgs.js.map +1 -1
- package/build/src/utils/scheme.js +1 -1
- package/build/src/utils/scheme.js.map +1 -1
- package/build/src/utils/telemetry/clients/FetchClient.js +2 -2
- package/build/src/utils/telemetry/clients/FetchClient.js.map +1 -1
- package/build/src/utils/telemetry/utils/context.js +1 -1
- package/build/src/utils/tsconfig/evaluateTsConfig.js +7 -2
- package/build/src/utils/tsconfig/evaluateTsConfig.js.map +1 -1
- package/build/src/utils/variadic.js +63 -6
- package/build/src/utils/variadic.js.map +1 -1
- package/package.json +20 -20
- package/static/canary/react-is/cjs/react-is.development.js +118 -185
- package/static/canary/react-is/cjs/react-is.production.js +2 -2
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +16582 -26565
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +3495 -3357
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +3929 -3801
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16869 -27032
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3535 -3428
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4198 -4095
- package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +387 -684
- package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -9
- package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +137 -195
- package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -5
- package/static/canary/scheduler/cjs/scheduler.development.js +339 -600
- package/static/canary/scheduler/cjs/scheduler.native.development.js +324 -512
- package/static/canary/scheduler/cjs/scheduler.native.production.js +6 -5
- package/static/canary/scheduler/cjs/scheduler.production.js +16 -17
- package/static/canary-full/react/cjs/react-compiler-runtime.development.js +13 -68
- package/static/canary-full/react/cjs/react-jsx-dev-runtime.development.js +317 -1251
- package/static/canary-full/react/cjs/react-jsx-dev-runtime.react-server.development.js +353 -1286
- package/static/canary-full/react/cjs/react-jsx-runtime.development.js +326 -1279
- package/static/canary-full/react/cjs/react-jsx-runtime.react-server.development.js +353 -1286
- package/static/canary-full/react/cjs/react.development.js +1204 -2771
- package/static/canary-full/react/cjs/react.production.js +25 -20
- package/static/canary-full/react/cjs/react.react-server.development.js +783 -2162
- package/static/canary-full/react/cjs/react.react-server.production.js +13 -63
- package/static/canary-full/react/package.json +1 -1
- package/static/canary-full/react-dom/cjs/react-dom-client.development.js +24847 -37099
- package/static/canary-full/react-dom/cjs/react-dom-client.production.js +8261 -7475
- package/static/canary-full/react-dom/cjs/react-dom-profiling.development.js +25252 -37571
- package/static/canary-full/react-dom/cjs/react-dom-profiling.profiling.js +9442 -8662
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.development.js +8944 -11568
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.production.js +1378 -944
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.development.js +8944 -11568
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.production.js +1386 -954
- package/static/canary-full/react-dom/cjs/react-dom-server.browser.development.js +9344 -11600
- package/static/canary-full/react-dom/cjs/react-dom-server.browser.production.js +1545 -954
- package/static/canary-full/react-dom/cjs/react-dom-server.bun.development.js +8286 -11064
- package/static/canary-full/react-dom/cjs/react-dom-server.bun.production.js +1437 -976
- package/static/canary-full/react-dom/cjs/react-dom-server.edge.development.js +9356 -11609
- package/static/canary-full/react-dom/cjs/react-dom-server.edge.production.js +1542 -970
- package/static/canary-full/react-dom/cjs/react-dom-server.node.development.js +9227 -11571
- package/static/canary-full/react-dom/cjs/react-dom-server.node.production.js +1787 -1183
- package/static/canary-full/react-dom/cjs/react-dom-test-utils.development.js +13 -59
- package/static/canary-full/react-dom/cjs/react-dom.development.js +402 -604
- package/static/canary-full/react-dom/cjs/react-dom.production.js +4 -3
- package/static/canary-full/react-dom/cjs/react-dom.react-server.development.js +322 -382
- package/static/canary-full/react-dom/cjs/react-dom.react-server.production.js +6 -7
- package/static/canary-full/react-dom/package.json +5 -5
- package/static/canary-full/react-dom/static.browser.js +1 -0
- package/static/canary-full/react-dom/static.edge.js +1 -0
- package/static/canary-full/react-dom/static.node.js +1 -0
- package/static/template/eslint.config.js +10 -0
|
@@ -64,9 +64,10 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
|
64
64
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
65
65
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
66
66
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
67
|
-
|
|
68
|
-
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
67
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
69
68
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
69
|
+
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
70
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
70
71
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
71
72
|
isArrayImpl = Array.isArray;
|
|
72
73
|
function murmurhash3_32_gc(key, seed) {
|
|
@@ -122,7 +123,31 @@ function murmurhash3_32_gc(key, seed) {
|
|
|
122
123
|
4294967295;
|
|
123
124
|
return (h1 ^ (h1 >>> 16)) >>> 0;
|
|
124
125
|
}
|
|
125
|
-
var
|
|
126
|
+
var channel = new MessageChannel(),
|
|
127
|
+
taskQueue = [];
|
|
128
|
+
channel.port1.onmessage = function () {
|
|
129
|
+
var task = taskQueue.shift();
|
|
130
|
+
task && task();
|
|
131
|
+
};
|
|
132
|
+
function scheduleWork(callback) {
|
|
133
|
+
taskQueue.push(callback);
|
|
134
|
+
channel.port2.postMessage(null);
|
|
135
|
+
}
|
|
136
|
+
function handleErrorInNextTick(error) {
|
|
137
|
+
setTimeout(function () {
|
|
138
|
+
throw error;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
var LocalPromise = Promise,
|
|
142
|
+
scheduleMicrotask =
|
|
143
|
+
"function" === typeof queueMicrotask
|
|
144
|
+
? queueMicrotask
|
|
145
|
+
: function (callback) {
|
|
146
|
+
LocalPromise.resolve(null)
|
|
147
|
+
.then(callback)
|
|
148
|
+
.catch(handleErrorInNextTick);
|
|
149
|
+
},
|
|
150
|
+
currentView = null,
|
|
126
151
|
writtenBytes = 0;
|
|
127
152
|
function writeChunk(destination, chunk) {
|
|
128
153
|
if (0 !== chunk.byteLength)
|
|
@@ -405,7 +430,7 @@ function createRenderState(
|
|
|
405
430
|
fontPreloads: "",
|
|
406
431
|
highImagePreloads: "",
|
|
407
432
|
remainingCapacity:
|
|
408
|
-
"number" === typeof maxHeadersLength ? maxHeadersLength : 2e3
|
|
433
|
+
2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
|
409
434
|
}
|
|
410
435
|
: null;
|
|
411
436
|
onHeaders = {
|
|
@@ -413,8 +438,7 @@ function createRenderState(
|
|
|
413
438
|
segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
|
|
414
439
|
boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
|
|
415
440
|
startInlineScript: inlineScriptWithNonce,
|
|
416
|
-
|
|
417
|
-
headChunks: null,
|
|
441
|
+
preamble: createPreambleState(),
|
|
418
442
|
externalRuntimeScript: null,
|
|
419
443
|
bootstrapChunks: externalRuntimeConfig,
|
|
420
444
|
importMapChunks: bootstrapScriptContent,
|
|
@@ -468,8 +492,8 @@ function createRenderState(
|
|
|
468
492
|
"string" === typeof scriptConfig || null == scriptConfig.crossOrigin
|
|
469
493
|
? void 0
|
|
470
494
|
: "use-credentials" === scriptConfig.crossOrigin
|
|
471
|
-
|
|
472
|
-
|
|
495
|
+
? "use-credentials"
|
|
496
|
+
: ""));
|
|
473
497
|
scriptConfig = resumableState;
|
|
474
498
|
var href = maxHeadersLength;
|
|
475
499
|
scriptConfig.scriptResources[href] = null;
|
|
@@ -523,8 +547,8 @@ function createRenderState(
|
|
|
523
547
|
null == bootstrapScriptContent.crossOrigin
|
|
524
548
|
? void 0
|
|
525
549
|
: "use-credentials" === bootstrapScriptContent.crossOrigin
|
|
526
|
-
|
|
527
|
-
|
|
550
|
+
? "use-credentials"
|
|
551
|
+
: "")),
|
|
528
552
|
(bootstrapScriptContent = resumableState),
|
|
529
553
|
(scriptConfig = importMap),
|
|
530
554
|
(bootstrapScriptContent.scriptResources[scriptConfig] = null),
|
|
@@ -581,6 +605,14 @@ function createResumableState(
|
|
|
581
605
|
moduleScriptResources: {}
|
|
582
606
|
};
|
|
583
607
|
}
|
|
608
|
+
function createPreambleState() {
|
|
609
|
+
return {
|
|
610
|
+
htmlChunks: null,
|
|
611
|
+
headChunks: null,
|
|
612
|
+
bodyChunks: null,
|
|
613
|
+
contribution: 0
|
|
614
|
+
};
|
|
615
|
+
}
|
|
584
616
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
|
585
617
|
return {
|
|
586
618
|
insertionMode: insertionMode,
|
|
@@ -591,10 +623,10 @@ function createFormatContext(insertionMode, selectedValue, tagScope) {
|
|
|
591
623
|
function createRootFormatContext(namespaceURI) {
|
|
592
624
|
return createFormatContext(
|
|
593
625
|
"http://www.w3.org/2000/svg" === namespaceURI
|
|
594
|
-
? 3
|
|
595
|
-
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
|
596
626
|
? 4
|
|
597
|
-
:
|
|
627
|
+
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
|
628
|
+
? 5
|
|
629
|
+
: 0,
|
|
598
630
|
null,
|
|
599
631
|
0
|
|
600
632
|
);
|
|
@@ -610,31 +642,32 @@ function getChildFormatContext(parentContext, type, props) {
|
|
|
610
642
|
parentContext.tagScope
|
|
611
643
|
);
|
|
612
644
|
case "svg":
|
|
613
|
-
return createFormatContext(
|
|
645
|
+
return createFormatContext(4, null, parentContext.tagScope);
|
|
614
646
|
case "picture":
|
|
615
647
|
return createFormatContext(2, null, parentContext.tagScope | 2);
|
|
616
648
|
case "math":
|
|
617
|
-
return createFormatContext(
|
|
649
|
+
return createFormatContext(5, null, parentContext.tagScope);
|
|
618
650
|
case "foreignObject":
|
|
619
651
|
return createFormatContext(2, null, parentContext.tagScope);
|
|
620
652
|
case "table":
|
|
621
|
-
return createFormatContext(
|
|
653
|
+
return createFormatContext(6, null, parentContext.tagScope);
|
|
622
654
|
case "thead":
|
|
623
655
|
case "tbody":
|
|
624
656
|
case "tfoot":
|
|
625
|
-
return createFormatContext(
|
|
657
|
+
return createFormatContext(7, null, parentContext.tagScope);
|
|
626
658
|
case "colgroup":
|
|
627
|
-
return createFormatContext(
|
|
659
|
+
return createFormatContext(9, null, parentContext.tagScope);
|
|
628
660
|
case "tr":
|
|
629
|
-
return createFormatContext(
|
|
661
|
+
return createFormatContext(8, null, parentContext.tagScope);
|
|
662
|
+
case "head":
|
|
663
|
+
if (2 > parentContext.insertionMode)
|
|
664
|
+
return createFormatContext(3, null, parentContext.tagScope);
|
|
665
|
+
break;
|
|
666
|
+
case "html":
|
|
667
|
+
if (0 === parentContext.insertionMode)
|
|
668
|
+
return createFormatContext(1, null, parentContext.tagScope);
|
|
630
669
|
}
|
|
631
|
-
return
|
|
632
|
-
? createFormatContext(2, null, parentContext.tagScope)
|
|
633
|
-
: 0 === parentContext.insertionMode
|
|
634
|
-
? "html" === type
|
|
635
|
-
? createFormatContext(1, null, parentContext.tagScope)
|
|
636
|
-
: createFormatContext(2, null, parentContext.tagScope)
|
|
637
|
-
: 1 === parentContext.insertionMode
|
|
670
|
+
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
|
|
638
671
|
? createFormatContext(2, null, parentContext.tagScope)
|
|
639
672
|
: parentContext;
|
|
640
673
|
}
|
|
@@ -729,17 +762,25 @@ var actionJavaScriptURL = stringToPrecomputedChunk(
|
|
|
729
762
|
startHiddenInputChunk = stringToPrecomputedChunk('<input type="hidden"');
|
|
730
763
|
function pushAdditionalFormField(value, key) {
|
|
731
764
|
this.push(startHiddenInputChunk);
|
|
732
|
-
|
|
765
|
+
validateAdditionalFormField(value);
|
|
733
766
|
pushStringAttribute(this, "name", key);
|
|
734
767
|
pushStringAttribute(this, "value", value);
|
|
735
768
|
this.push(endOfStartTagSelfClosing);
|
|
736
769
|
}
|
|
770
|
+
function validateAdditionalFormField(value) {
|
|
771
|
+
if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
|
|
772
|
+
}
|
|
737
773
|
function getCustomFormFields(resumableState, formAction) {
|
|
738
774
|
if ("function" === typeof formAction.$$FORM_ACTION) {
|
|
739
775
|
var id = resumableState.nextFormID++;
|
|
740
776
|
resumableState = resumableState.idPrefix + id;
|
|
741
777
|
try {
|
|
742
|
-
|
|
778
|
+
var customFields = formAction.$$FORM_ACTION(resumableState);
|
|
779
|
+
if (customFields) {
|
|
780
|
+
var formData = customFields.data;
|
|
781
|
+
null != formData && formData.forEach(validateAdditionalFormField);
|
|
782
|
+
}
|
|
783
|
+
return customFields;
|
|
743
784
|
} catch (x) {
|
|
744
785
|
if ("object" === typeof x && null !== x && "function" === typeof x.then)
|
|
745
786
|
throw x;
|
|
@@ -1138,6 +1179,29 @@ function pushScriptImpl(target, props) {
|
|
|
1138
1179
|
target.push(endChunkForTag("script"));
|
|
1139
1180
|
return null;
|
|
1140
1181
|
}
|
|
1182
|
+
function pushStartSingletonElement(target, props, tag) {
|
|
1183
|
+
target.push(startChunkForTag(tag));
|
|
1184
|
+
var innerHTML = (tag = null),
|
|
1185
|
+
propKey;
|
|
1186
|
+
for (propKey in props)
|
|
1187
|
+
if (hasOwnProperty.call(props, propKey)) {
|
|
1188
|
+
var propValue = props[propKey];
|
|
1189
|
+
if (null != propValue)
|
|
1190
|
+
switch (propKey) {
|
|
1191
|
+
case "children":
|
|
1192
|
+
tag = propValue;
|
|
1193
|
+
break;
|
|
1194
|
+
case "dangerouslySetInnerHTML":
|
|
1195
|
+
innerHTML = propValue;
|
|
1196
|
+
break;
|
|
1197
|
+
default:
|
|
1198
|
+
pushAttribute(target, propKey, propValue);
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
target.push(endOfStartTag);
|
|
1202
|
+
pushInnerHTML(target, innerHTML, tag);
|
|
1203
|
+
return tag;
|
|
1204
|
+
}
|
|
1141
1205
|
function pushStartGenericElement(target, props, tag) {
|
|
1142
1206
|
target.push(startChunkForTag(tag));
|
|
1143
1207
|
var innerHTML = (tag = null),
|
|
@@ -1183,6 +1247,7 @@ function pushStartInstance(
|
|
|
1183
1247
|
props,
|
|
1184
1248
|
resumableState,
|
|
1185
1249
|
renderState,
|
|
1250
|
+
preambleState,
|
|
1186
1251
|
hoistableState,
|
|
1187
1252
|
formatContext,
|
|
1188
1253
|
textEmbedded,
|
|
@@ -1615,28 +1680,72 @@ function pushStartInstance(
|
|
|
1615
1680
|
}
|
|
1616
1681
|
target$jscomp$0.push(endOfStartTag);
|
|
1617
1682
|
return null;
|
|
1683
|
+
case "object":
|
|
1684
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
|
1685
|
+
var children$jscomp$5 = null,
|
|
1686
|
+
innerHTML$jscomp$4 = null,
|
|
1687
|
+
propKey$jscomp$7;
|
|
1688
|
+
for (propKey$jscomp$7 in props)
|
|
1689
|
+
if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
|
1690
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
|
1691
|
+
if (null != propValue$jscomp$7)
|
|
1692
|
+
switch (propKey$jscomp$7) {
|
|
1693
|
+
case "children":
|
|
1694
|
+
children$jscomp$5 = propValue$jscomp$7;
|
|
1695
|
+
break;
|
|
1696
|
+
case "dangerouslySetInnerHTML":
|
|
1697
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
|
1698
|
+
break;
|
|
1699
|
+
case "data":
|
|
1700
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
|
1701
|
+
if ("" === sanitizedValue) break;
|
|
1702
|
+
target$jscomp$0.push(
|
|
1703
|
+
attributeSeparator,
|
|
1704
|
+
stringToChunk("data"),
|
|
1705
|
+
attributeAssign,
|
|
1706
|
+
stringToChunk(escapeTextForBrowser(sanitizedValue)),
|
|
1707
|
+
attributeEnd
|
|
1708
|
+
);
|
|
1709
|
+
break;
|
|
1710
|
+
default:
|
|
1711
|
+
pushAttribute(
|
|
1712
|
+
target$jscomp$0,
|
|
1713
|
+
propKey$jscomp$7,
|
|
1714
|
+
propValue$jscomp$7
|
|
1715
|
+
);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
target$jscomp$0.push(endOfStartTag);
|
|
1719
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
1720
|
+
if ("string" === typeof children$jscomp$5) {
|
|
1721
|
+
target$jscomp$0.push(
|
|
1722
|
+
stringToChunk(escapeTextForBrowser(children$jscomp$5))
|
|
1723
|
+
);
|
|
1724
|
+
var JSCompiler_inline_result$jscomp$2 = null;
|
|
1725
|
+
} else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
|
|
1726
|
+
return JSCompiler_inline_result$jscomp$2;
|
|
1618
1727
|
case "title":
|
|
1619
1728
|
if (
|
|
1620
|
-
|
|
1729
|
+
4 === formatContext.insertionMode ||
|
|
1621
1730
|
formatContext.tagScope & 1 ||
|
|
1622
1731
|
null != props.itemProp
|
|
1623
1732
|
)
|
|
1624
|
-
var JSCompiler_inline_result$jscomp$
|
|
1733
|
+
var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
|
|
1625
1734
|
target$jscomp$0,
|
|
1626
1735
|
props
|
|
1627
1736
|
);
|
|
1628
1737
|
else
|
|
1629
1738
|
isFallback
|
|
1630
|
-
? (JSCompiler_inline_result$jscomp$
|
|
1739
|
+
? (JSCompiler_inline_result$jscomp$3 = null)
|
|
1631
1740
|
: (pushTitleImpl(renderState.hoistableChunks, props),
|
|
1632
|
-
(JSCompiler_inline_result$jscomp$
|
|
1633
|
-
return JSCompiler_inline_result$jscomp$
|
|
1741
|
+
(JSCompiler_inline_result$jscomp$3 = void 0));
|
|
1742
|
+
return JSCompiler_inline_result$jscomp$3;
|
|
1634
1743
|
case "link":
|
|
1635
1744
|
var rel = props.rel,
|
|
1636
1745
|
href = props.href,
|
|
1637
1746
|
precedence = props.precedence;
|
|
1638
1747
|
if (
|
|
1639
|
-
|
|
1748
|
+
4 === formatContext.insertionMode ||
|
|
1640
1749
|
formatContext.tagScope & 1 ||
|
|
1641
1750
|
null != props.itemProp ||
|
|
1642
1751
|
"string" !== typeof rel ||
|
|
@@ -1644,7 +1753,7 @@ function pushStartInstance(
|
|
|
1644
1753
|
"" === href
|
|
1645
1754
|
) {
|
|
1646
1755
|
pushLinkImpl(target$jscomp$0, props);
|
|
1647
|
-
var JSCompiler_inline_result$jscomp$
|
|
1756
|
+
var JSCompiler_inline_result$jscomp$4 = null;
|
|
1648
1757
|
} else if ("stylesheet" === props.rel)
|
|
1649
1758
|
if (
|
|
1650
1759
|
"string" !== typeof precedence ||
|
|
@@ -1652,7 +1761,7 @@ function pushStartInstance(
|
|
|
1652
1761
|
props.onLoad ||
|
|
1653
1762
|
props.onError
|
|
1654
1763
|
)
|
|
1655
|
-
JSCompiler_inline_result$jscomp$
|
|
1764
|
+
JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
|
1656
1765
|
target$jscomp$0,
|
|
1657
1766
|
props
|
|
1658
1767
|
);
|
|
@@ -1695,19 +1804,19 @@ function pushStartInstance(
|
|
|
1695
1804
|
hoistableState.stylesheets.add(resource$9);
|
|
1696
1805
|
}
|
|
1697
1806
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
1698
|
-
JSCompiler_inline_result$jscomp$
|
|
1807
|
+
JSCompiler_inline_result$jscomp$4 = null;
|
|
1699
1808
|
}
|
|
1700
1809
|
else
|
|
1701
1810
|
props.onLoad || props.onError
|
|
1702
|
-
? (JSCompiler_inline_result$jscomp$
|
|
1811
|
+
? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
|
1703
1812
|
target$jscomp$0,
|
|
1704
1813
|
props
|
|
1705
1814
|
))
|
|
1706
1815
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
|
1707
|
-
(JSCompiler_inline_result$jscomp$
|
|
1816
|
+
(JSCompiler_inline_result$jscomp$4 = isFallback
|
|
1708
1817
|
? null
|
|
1709
1818
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
1710
|
-
return JSCompiler_inline_result$jscomp$
|
|
1819
|
+
return JSCompiler_inline_result$jscomp$4;
|
|
1711
1820
|
case "script":
|
|
1712
1821
|
var asyncProp = props.async;
|
|
1713
1822
|
if (
|
|
@@ -1718,11 +1827,11 @@ function pushStartInstance(
|
|
|
1718
1827
|
"symbol" === typeof asyncProp ||
|
|
1719
1828
|
props.onLoad ||
|
|
1720
1829
|
props.onError ||
|
|
1721
|
-
|
|
1830
|
+
4 === formatContext.insertionMode ||
|
|
1722
1831
|
formatContext.tagScope & 1 ||
|
|
1723
1832
|
null != props.itemProp
|
|
1724
1833
|
)
|
|
1725
|
-
var JSCompiler_inline_result$jscomp$
|
|
1834
|
+
var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
|
|
1726
1835
|
target$jscomp$0,
|
|
1727
1836
|
props
|
|
1728
1837
|
);
|
|
@@ -1752,14 +1861,14 @@ function pushStartInstance(
|
|
|
1752
1861
|
pushScriptImpl(resource$jscomp$0, scriptProps);
|
|
1753
1862
|
}
|
|
1754
1863
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
1755
|
-
JSCompiler_inline_result$jscomp$
|
|
1864
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
|
1756
1865
|
}
|
|
1757
|
-
return JSCompiler_inline_result$jscomp$
|
|
1866
|
+
return JSCompiler_inline_result$jscomp$5;
|
|
1758
1867
|
case "style":
|
|
1759
1868
|
var precedence$jscomp$0 = props.precedence,
|
|
1760
1869
|
href$jscomp$0 = props.href;
|
|
1761
1870
|
if (
|
|
1762
|
-
|
|
1871
|
+
4 === formatContext.insertionMode ||
|
|
1763
1872
|
formatContext.tagScope & 1 ||
|
|
1764
1873
|
null != props.itemProp ||
|
|
1765
1874
|
"string" !== typeof precedence$jscomp$0 ||
|
|
@@ -1767,34 +1876,34 @@ function pushStartInstance(
|
|
|
1767
1876
|
"" === href$jscomp$0
|
|
1768
1877
|
) {
|
|
1769
1878
|
target$jscomp$0.push(startChunkForTag("style"));
|
|
1770
|
-
var children$jscomp$
|
|
1771
|
-
innerHTML$jscomp$
|
|
1772
|
-
propKey$jscomp$
|
|
1773
|
-
for (propKey$jscomp$
|
|
1774
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1775
|
-
var propValue$jscomp$
|
|
1776
|
-
if (null != propValue$jscomp$
|
|
1777
|
-
switch (propKey$jscomp$
|
|
1879
|
+
var children$jscomp$6 = null,
|
|
1880
|
+
innerHTML$jscomp$5 = null,
|
|
1881
|
+
propKey$jscomp$8;
|
|
1882
|
+
for (propKey$jscomp$8 in props)
|
|
1883
|
+
if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
|
1884
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
|
1885
|
+
if (null != propValue$jscomp$8)
|
|
1886
|
+
switch (propKey$jscomp$8) {
|
|
1778
1887
|
case "children":
|
|
1779
|
-
children$jscomp$
|
|
1888
|
+
children$jscomp$6 = propValue$jscomp$8;
|
|
1780
1889
|
break;
|
|
1781
1890
|
case "dangerouslySetInnerHTML":
|
|
1782
|
-
innerHTML$jscomp$
|
|
1891
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
|
1783
1892
|
break;
|
|
1784
1893
|
default:
|
|
1785
1894
|
pushAttribute(
|
|
1786
1895
|
target$jscomp$0,
|
|
1787
|
-
propKey$jscomp$
|
|
1788
|
-
propValue$jscomp$
|
|
1896
|
+
propKey$jscomp$8,
|
|
1897
|
+
propValue$jscomp$8
|
|
1789
1898
|
);
|
|
1790
1899
|
}
|
|
1791
1900
|
}
|
|
1792
1901
|
target$jscomp$0.push(endOfStartTag);
|
|
1793
|
-
var child = Array.isArray(children$jscomp$
|
|
1794
|
-
? 2 > children$jscomp$
|
|
1795
|
-
? children$jscomp$
|
|
1902
|
+
var child = Array.isArray(children$jscomp$6)
|
|
1903
|
+
? 2 > children$jscomp$6.length
|
|
1904
|
+
? children$jscomp$6[0]
|
|
1796
1905
|
: null
|
|
1797
|
-
: children$jscomp$
|
|
1906
|
+
: children$jscomp$6;
|
|
1798
1907
|
"function" !== typeof child &&
|
|
1799
1908
|
"symbol" !== typeof child &&
|
|
1800
1909
|
null !== child &&
|
|
@@ -1802,9 +1911,9 @@ function pushStartInstance(
|
|
|
1802
1911
|
target$jscomp$0.push(
|
|
1803
1912
|
stringToChunk(("" + child).replace(styleRegex, styleReplacer))
|
|
1804
1913
|
);
|
|
1805
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
|
1914
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
|
|
1806
1915
|
target$jscomp$0.push(endChunkForTag("style"));
|
|
1807
|
-
var JSCompiler_inline_result$jscomp$
|
|
1916
|
+
var JSCompiler_inline_result$jscomp$6 = null;
|
|
1808
1917
|
} else {
|
|
1809
1918
|
var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
|
|
1810
1919
|
if (
|
|
@@ -1828,26 +1937,26 @@ function pushStartInstance(
|
|
|
1828
1937
|
}),
|
|
1829
1938
|
renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
|
|
1830
1939
|
var target = styleQueue$jscomp$0.rules,
|
|
1831
|
-
children$jscomp$
|
|
1832
|
-
innerHTML$jscomp$
|
|
1833
|
-
propKey$jscomp$
|
|
1834
|
-
for (propKey$jscomp$
|
|
1835
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1836
|
-
var propValue$jscomp$
|
|
1837
|
-
if (null != propValue$jscomp$
|
|
1838
|
-
switch (propKey$jscomp$
|
|
1940
|
+
children$jscomp$7 = null,
|
|
1941
|
+
innerHTML$jscomp$6 = null,
|
|
1942
|
+
propKey$jscomp$9;
|
|
1943
|
+
for (propKey$jscomp$9 in props)
|
|
1944
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
1945
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
1946
|
+
if (null != propValue$jscomp$9)
|
|
1947
|
+
switch (propKey$jscomp$9) {
|
|
1839
1948
|
case "children":
|
|
1840
|
-
children$jscomp$
|
|
1949
|
+
children$jscomp$7 = propValue$jscomp$9;
|
|
1841
1950
|
break;
|
|
1842
1951
|
case "dangerouslySetInnerHTML":
|
|
1843
|
-
innerHTML$jscomp$
|
|
1952
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
1844
1953
|
}
|
|
1845
1954
|
}
|
|
1846
|
-
var child$jscomp$0 = Array.isArray(children$jscomp$
|
|
1847
|
-
? 2 > children$jscomp$
|
|
1848
|
-
? children$jscomp$
|
|
1955
|
+
var child$jscomp$0 = Array.isArray(children$jscomp$7)
|
|
1956
|
+
? 2 > children$jscomp$7.length
|
|
1957
|
+
? children$jscomp$7[0]
|
|
1849
1958
|
: null
|
|
1850
|
-
: children$jscomp$
|
|
1959
|
+
: children$jscomp$7;
|
|
1851
1960
|
"function" !== typeof child$jscomp$0 &&
|
|
1852
1961
|
"symbol" !== typeof child$jscomp$0 &&
|
|
1853
1962
|
null !== child$jscomp$0 &&
|
|
@@ -1857,80 +1966,80 @@ function pushStartInstance(
|
|
|
1857
1966
|
("" + child$jscomp$0).replace(styleRegex, styleReplacer)
|
|
1858
1967
|
)
|
|
1859
1968
|
);
|
|
1860
|
-
pushInnerHTML(target, innerHTML$jscomp$
|
|
1969
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
|
|
1861
1970
|
}
|
|
1862
1971
|
styleQueue$jscomp$0 &&
|
|
1863
1972
|
hoistableState &&
|
|
1864
1973
|
hoistableState.styles.add(styleQueue$jscomp$0);
|
|
1865
1974
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
1866
|
-
JSCompiler_inline_result$jscomp$
|
|
1975
|
+
JSCompiler_inline_result$jscomp$6 = void 0;
|
|
1867
1976
|
}
|
|
1868
|
-
return JSCompiler_inline_result$jscomp$
|
|
1977
|
+
return JSCompiler_inline_result$jscomp$6;
|
|
1869
1978
|
case "meta":
|
|
1870
1979
|
if (
|
|
1871
|
-
|
|
1980
|
+
4 === formatContext.insertionMode ||
|
|
1872
1981
|
formatContext.tagScope & 1 ||
|
|
1873
1982
|
null != props.itemProp
|
|
1874
1983
|
)
|
|
1875
|
-
var JSCompiler_inline_result$jscomp$
|
|
1984
|
+
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
|
1876
1985
|
target$jscomp$0,
|
|
1877
1986
|
props,
|
|
1878
1987
|
"meta"
|
|
1879
1988
|
);
|
|
1880
1989
|
else
|
|
1881
1990
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
1882
|
-
(JSCompiler_inline_result$jscomp$
|
|
1991
|
+
(JSCompiler_inline_result$jscomp$7 = isFallback
|
|
1883
1992
|
? null
|
|
1884
1993
|
: "string" === typeof props.charSet
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
return JSCompiler_inline_result$jscomp$
|
|
1994
|
+
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
|
1995
|
+
: "viewport" === props.name
|
|
1996
|
+
? pushSelfClosing(renderState.viewportChunks, props, "meta")
|
|
1997
|
+
: pushSelfClosing(renderState.hoistableChunks, props, "meta"));
|
|
1998
|
+
return JSCompiler_inline_result$jscomp$7;
|
|
1890
1999
|
case "listing":
|
|
1891
2000
|
case "pre":
|
|
1892
2001
|
target$jscomp$0.push(startChunkForTag(type));
|
|
1893
|
-
var children$jscomp$
|
|
1894
|
-
innerHTML$jscomp$
|
|
1895
|
-
propKey$jscomp$
|
|
1896
|
-
for (propKey$jscomp$
|
|
1897
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1898
|
-
var propValue$jscomp$
|
|
1899
|
-
if (null != propValue$jscomp$
|
|
1900
|
-
switch (propKey$jscomp$
|
|
2002
|
+
var children$jscomp$8 = null,
|
|
2003
|
+
innerHTML$jscomp$7 = null,
|
|
2004
|
+
propKey$jscomp$10;
|
|
2005
|
+
for (propKey$jscomp$10 in props)
|
|
2006
|
+
if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
|
2007
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
|
2008
|
+
if (null != propValue$jscomp$10)
|
|
2009
|
+
switch (propKey$jscomp$10) {
|
|
1901
2010
|
case "children":
|
|
1902
|
-
children$jscomp$
|
|
2011
|
+
children$jscomp$8 = propValue$jscomp$10;
|
|
1903
2012
|
break;
|
|
1904
2013
|
case "dangerouslySetInnerHTML":
|
|
1905
|
-
innerHTML$jscomp$
|
|
2014
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
|
1906
2015
|
break;
|
|
1907
2016
|
default:
|
|
1908
2017
|
pushAttribute(
|
|
1909
2018
|
target$jscomp$0,
|
|
1910
|
-
propKey$jscomp$
|
|
1911
|
-
propValue$jscomp$
|
|
2019
|
+
propKey$jscomp$10,
|
|
2020
|
+
propValue$jscomp$10
|
|
1912
2021
|
);
|
|
1913
2022
|
}
|
|
1914
2023
|
}
|
|
1915
2024
|
target$jscomp$0.push(endOfStartTag);
|
|
1916
|
-
if (null != innerHTML$jscomp$
|
|
1917
|
-
if (null != children$jscomp$
|
|
2025
|
+
if (null != innerHTML$jscomp$7) {
|
|
2026
|
+
if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
|
|
1918
2027
|
if (
|
|
1919
|
-
"object" !== typeof innerHTML$jscomp$
|
|
1920
|
-
!("__html" in innerHTML$jscomp$
|
|
2028
|
+
"object" !== typeof innerHTML$jscomp$7 ||
|
|
2029
|
+
!("__html" in innerHTML$jscomp$7)
|
|
1921
2030
|
)
|
|
1922
2031
|
throw Error(formatProdErrorMessage(61));
|
|
1923
|
-
var html = innerHTML$jscomp$
|
|
2032
|
+
var html = innerHTML$jscomp$7.__html;
|
|
1924
2033
|
null !== html &&
|
|
1925
2034
|
void 0 !== html &&
|
|
1926
2035
|
("string" === typeof html && 0 < html.length && "\n" === html[0]
|
|
1927
2036
|
? target$jscomp$0.push(leadingNewline, stringToChunk(html))
|
|
1928
2037
|
: target$jscomp$0.push(stringToChunk("" + html)));
|
|
1929
2038
|
}
|
|
1930
|
-
"string" === typeof children$jscomp$
|
|
1931
|
-
"\n" === children$jscomp$
|
|
2039
|
+
"string" === typeof children$jscomp$8 &&
|
|
2040
|
+
"\n" === children$jscomp$8[0] &&
|
|
1932
2041
|
target$jscomp$0.push(leadingNewline);
|
|
1933
|
-
return children$jscomp$
|
|
2042
|
+
return children$jscomp$8;
|
|
1934
2043
|
case "img":
|
|
1935
2044
|
var src = props.src,
|
|
1936
2045
|
srcSet = props.srcSet;
|
|
@@ -1972,7 +2081,7 @@ function pushStartInstance(
|
|
|
1972
2081
|
) {
|
|
1973
2082
|
resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
|
|
1974
2083
|
var input = props.crossOrigin;
|
|
1975
|
-
var JSCompiler_inline_result$jscomp$
|
|
2084
|
+
var JSCompiler_inline_result$jscomp$8 =
|
|
1976
2085
|
"string" === typeof input
|
|
1977
2086
|
? "use-credentials" === input
|
|
1978
2087
|
? input
|
|
@@ -1982,19 +2091,20 @@ function pushStartInstance(
|
|
|
1982
2091
|
header;
|
|
1983
2092
|
headers &&
|
|
1984
2093
|
0 < headers.remainingCapacity &&
|
|
2094
|
+
"string" !== typeof props.srcSet &&
|
|
1985
2095
|
("high" === props.fetchPriority ||
|
|
1986
2096
|
500 > headers.highImagePreloads.length) &&
|
|
1987
2097
|
((header = getPreloadAsHeader(src, "image", {
|
|
1988
2098
|
imageSrcSet: props.srcSet,
|
|
1989
2099
|
imageSizes: props.sizes,
|
|
1990
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
|
2100
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
|
1991
2101
|
integrity: props.integrity,
|
|
1992
2102
|
nonce: props.nonce,
|
|
1993
2103
|
type: props.type,
|
|
1994
2104
|
fetchPriority: props.fetchPriority,
|
|
1995
2105
|
referrerPolicy: props.refererPolicy
|
|
1996
2106
|
})),
|
|
1997
|
-
|
|
2107
|
+
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
1998
2108
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
1999
2109
|
headers.highImagePreloads && (headers.highImagePreloads += ", "),
|
|
2000
2110
|
(headers.highImagePreloads += header))
|
|
@@ -2005,7 +2115,7 @@ function pushStartInstance(
|
|
|
2005
2115
|
href: srcSet ? void 0 : src,
|
|
2006
2116
|
imageSrcSet: srcSet,
|
|
2007
2117
|
imageSizes: sizes,
|
|
2008
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
|
2118
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
|
2009
2119
|
integrity: props.integrity,
|
|
2010
2120
|
type: props.type,
|
|
2011
2121
|
fetchPriority: props.fetchPriority,
|
|
@@ -2041,58 +2151,79 @@ function pushStartInstance(
|
|
|
2041
2151
|
case "missing-glyph":
|
|
2042
2152
|
break;
|
|
2043
2153
|
case "head":
|
|
2044
|
-
if (2 > formatContext.insertionMode
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2154
|
+
if (2 > formatContext.insertionMode) {
|
|
2155
|
+
var preamble = preambleState || renderState.preamble;
|
|
2156
|
+
if (preamble.headChunks)
|
|
2157
|
+
throw Error(formatProdErrorMessage(545, "`<head>`"));
|
|
2158
|
+
preamble.headChunks = [];
|
|
2159
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
2160
|
+
preamble.headChunks,
|
|
2048
2161
|
props,
|
|
2049
2162
|
"head"
|
|
2050
2163
|
);
|
|
2051
2164
|
} else
|
|
2052
|
-
JSCompiler_inline_result$jscomp$
|
|
2165
|
+
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2053
2166
|
target$jscomp$0,
|
|
2054
2167
|
props,
|
|
2055
2168
|
"head"
|
|
2056
2169
|
);
|
|
2057
|
-
return JSCompiler_inline_result$jscomp$
|
|
2170
|
+
return JSCompiler_inline_result$jscomp$9;
|
|
2171
|
+
case "body":
|
|
2172
|
+
if (2 > formatContext.insertionMode) {
|
|
2173
|
+
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
|
2174
|
+
if (preamble$jscomp$0.bodyChunks)
|
|
2175
|
+
throw Error(formatProdErrorMessage(545, "`<body>`"));
|
|
2176
|
+
preamble$jscomp$0.bodyChunks = [];
|
|
2177
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
2178
|
+
preamble$jscomp$0.bodyChunks,
|
|
2179
|
+
props,
|
|
2180
|
+
"body"
|
|
2181
|
+
);
|
|
2182
|
+
} else
|
|
2183
|
+
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2184
|
+
target$jscomp$0,
|
|
2185
|
+
props,
|
|
2186
|
+
"body"
|
|
2187
|
+
);
|
|
2188
|
+
return JSCompiler_inline_result$jscomp$10;
|
|
2058
2189
|
case "html":
|
|
2059
|
-
if (
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
var JSCompiler_inline_result$jscomp$
|
|
2065
|
-
|
|
2190
|
+
if (0 === formatContext.insertionMode) {
|
|
2191
|
+
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
|
2192
|
+
if (preamble$jscomp$1.htmlChunks)
|
|
2193
|
+
throw Error(formatProdErrorMessage(545, "`<html>`"));
|
|
2194
|
+
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
|
2195
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
2196
|
+
preamble$jscomp$1.htmlChunks,
|
|
2066
2197
|
props,
|
|
2067
2198
|
"html"
|
|
2068
2199
|
);
|
|
2069
2200
|
} else
|
|
2070
|
-
JSCompiler_inline_result$jscomp$
|
|
2201
|
+
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
2071
2202
|
target$jscomp$0,
|
|
2072
2203
|
props,
|
|
2073
2204
|
"html"
|
|
2074
2205
|
);
|
|
2075
|
-
return JSCompiler_inline_result$jscomp$
|
|
2206
|
+
return JSCompiler_inline_result$jscomp$11;
|
|
2076
2207
|
default:
|
|
2077
2208
|
if (-1 !== type.indexOf("-")) {
|
|
2078
2209
|
target$jscomp$0.push(startChunkForTag(type));
|
|
2079
|
-
var children$jscomp$
|
|
2080
|
-
innerHTML$jscomp$
|
|
2081
|
-
propKey$jscomp$
|
|
2082
|
-
for (propKey$jscomp$
|
|
2083
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2084
|
-
var propValue$jscomp$
|
|
2085
|
-
if (null != propValue$jscomp$
|
|
2086
|
-
var attributeName = propKey$jscomp$
|
|
2087
|
-
switch (propKey$jscomp$
|
|
2210
|
+
var children$jscomp$9 = null,
|
|
2211
|
+
innerHTML$jscomp$8 = null,
|
|
2212
|
+
propKey$jscomp$11;
|
|
2213
|
+
for (propKey$jscomp$11 in props)
|
|
2214
|
+
if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
|
2215
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
|
2216
|
+
if (null != propValue$jscomp$11) {
|
|
2217
|
+
var attributeName = propKey$jscomp$11;
|
|
2218
|
+
switch (propKey$jscomp$11) {
|
|
2088
2219
|
case "children":
|
|
2089
|
-
children$jscomp$
|
|
2220
|
+
children$jscomp$9 = propValue$jscomp$11;
|
|
2090
2221
|
break;
|
|
2091
2222
|
case "dangerouslySetInnerHTML":
|
|
2092
|
-
innerHTML$jscomp$
|
|
2223
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
|
2093
2224
|
break;
|
|
2094
2225
|
case "style":
|
|
2095
|
-
pushStyleAttribute(target$jscomp$0, propValue$jscomp$
|
|
2226
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
|
2096
2227
|
break;
|
|
2097
2228
|
case "suppressContentEditableWarning":
|
|
2098
2229
|
case "suppressHydrationWarning":
|
|
@@ -2102,18 +2233,18 @@ function pushStartInstance(
|
|
|
2102
2233
|
attributeName = "class";
|
|
2103
2234
|
default:
|
|
2104
2235
|
if (
|
|
2105
|
-
isAttributeNameSafe(propKey$jscomp$
|
|
2106
|
-
"function" !== typeof propValue$jscomp$
|
|
2107
|
-
"symbol" !== typeof propValue$jscomp$
|
|
2108
|
-
!1 !== propValue$jscomp$
|
|
2236
|
+
isAttributeNameSafe(propKey$jscomp$11) &&
|
|
2237
|
+
"function" !== typeof propValue$jscomp$11 &&
|
|
2238
|
+
"symbol" !== typeof propValue$jscomp$11 &&
|
|
2239
|
+
!1 !== propValue$jscomp$11
|
|
2109
2240
|
) {
|
|
2110
|
-
if (!0 === propValue$jscomp$
|
|
2111
|
-
else if ("object" === typeof propValue$jscomp$
|
|
2241
|
+
if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
|
|
2242
|
+
else if ("object" === typeof propValue$jscomp$11) continue;
|
|
2112
2243
|
target$jscomp$0.push(
|
|
2113
2244
|
attributeSeparator,
|
|
2114
2245
|
stringToChunk(attributeName),
|
|
2115
2246
|
attributeAssign,
|
|
2116
|
-
stringToChunk(escapeTextForBrowser(propValue$jscomp$
|
|
2247
|
+
stringToChunk(escapeTextForBrowser(propValue$jscomp$11)),
|
|
2117
2248
|
attributeEnd
|
|
2118
2249
|
);
|
|
2119
2250
|
}
|
|
@@ -2121,8 +2252,8 @@ function pushStartInstance(
|
|
|
2121
2252
|
}
|
|
2122
2253
|
}
|
|
2123
2254
|
target$jscomp$0.push(endOfStartTag);
|
|
2124
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
|
2125
|
-
return children$jscomp$
|
|
2255
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
2256
|
+
return children$jscomp$9;
|
|
2126
2257
|
}
|
|
2127
2258
|
}
|
|
2128
2259
|
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
@@ -2135,6 +2266,21 @@ function endChunkForTag(tag) {
|
|
|
2135
2266
|
endTagCache.set(tag, chunk));
|
|
2136
2267
|
return chunk;
|
|
2137
2268
|
}
|
|
2269
|
+
function hoistPreambleState(renderState, preambleState) {
|
|
2270
|
+
renderState = renderState.preamble;
|
|
2271
|
+
null === renderState.htmlChunks &&
|
|
2272
|
+
preambleState.htmlChunks &&
|
|
2273
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
|
2274
|
+
(preambleState.contribution |= 1));
|
|
2275
|
+
null === renderState.headChunks &&
|
|
2276
|
+
preambleState.headChunks &&
|
|
2277
|
+
((renderState.headChunks = preambleState.headChunks),
|
|
2278
|
+
(preambleState.contribution |= 4));
|
|
2279
|
+
null === renderState.bodyChunks &&
|
|
2280
|
+
preambleState.bodyChunks &&
|
|
2281
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
|
2282
|
+
(preambleState.contribution |= 2));
|
|
2283
|
+
}
|
|
2138
2284
|
function writeBootstrap(destination, renderState) {
|
|
2139
2285
|
renderState = renderState.bootstrapChunks;
|
|
2140
2286
|
for (var i = 0; i < renderState.length - 1; i++)
|
|
@@ -2172,6 +2318,16 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
|
2172
2318
|
writeChunk(destination, stringToChunk(id.toString(16)));
|
|
2173
2319
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
|
2174
2320
|
}
|
|
2321
|
+
var boundaryPreambleContributionChunkStart =
|
|
2322
|
+
stringToPrecomputedChunk("\x3c!--"),
|
|
2323
|
+
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e");
|
|
2324
|
+
function writePreambleContribution(destination, preambleState) {
|
|
2325
|
+
preambleState = preambleState.contribution;
|
|
2326
|
+
0 !== preambleState &&
|
|
2327
|
+
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
|
2328
|
+
writeChunk(destination, stringToChunk("" + preambleState)),
|
|
2329
|
+
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
|
2330
|
+
}
|
|
2175
2331
|
var startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
|
2176
2332
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
|
2177
2333
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
|
@@ -2203,6 +2359,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
|
|
|
2203
2359
|
switch (formatContext.insertionMode) {
|
|
2204
2360
|
case 0:
|
|
2205
2361
|
case 1:
|
|
2362
|
+
case 3:
|
|
2206
2363
|
case 2:
|
|
2207
2364
|
return (
|
|
2208
2365
|
writeChunk(destination, startSegmentHTML),
|
|
@@ -2210,42 +2367,42 @@ function writeStartSegment(destination, renderState, formatContext, id) {
|
|
|
2210
2367
|
writeChunk(destination, stringToChunk(id.toString(16))),
|
|
2211
2368
|
writeChunkAndReturn(destination, startSegmentHTML2)
|
|
2212
2369
|
);
|
|
2213
|
-
case
|
|
2370
|
+
case 4:
|
|
2214
2371
|
return (
|
|
2215
2372
|
writeChunk(destination, startSegmentSVG),
|
|
2216
2373
|
writeChunk(destination, renderState.segmentPrefix),
|
|
2217
2374
|
writeChunk(destination, stringToChunk(id.toString(16))),
|
|
2218
2375
|
writeChunkAndReturn(destination, startSegmentSVG2)
|
|
2219
2376
|
);
|
|
2220
|
-
case
|
|
2377
|
+
case 5:
|
|
2221
2378
|
return (
|
|
2222
2379
|
writeChunk(destination, startSegmentMathML),
|
|
2223
2380
|
writeChunk(destination, renderState.segmentPrefix),
|
|
2224
2381
|
writeChunk(destination, stringToChunk(id.toString(16))),
|
|
2225
2382
|
writeChunkAndReturn(destination, startSegmentMathML2)
|
|
2226
2383
|
);
|
|
2227
|
-
case
|
|
2384
|
+
case 6:
|
|
2228
2385
|
return (
|
|
2229
2386
|
writeChunk(destination, startSegmentTable),
|
|
2230
2387
|
writeChunk(destination, renderState.segmentPrefix),
|
|
2231
2388
|
writeChunk(destination, stringToChunk(id.toString(16))),
|
|
2232
2389
|
writeChunkAndReturn(destination, startSegmentTable2)
|
|
2233
2390
|
);
|
|
2234
|
-
case
|
|
2391
|
+
case 7:
|
|
2235
2392
|
return (
|
|
2236
2393
|
writeChunk(destination, startSegmentTableBody),
|
|
2237
2394
|
writeChunk(destination, renderState.segmentPrefix),
|
|
2238
2395
|
writeChunk(destination, stringToChunk(id.toString(16))),
|
|
2239
2396
|
writeChunkAndReturn(destination, startSegmentTableBody2)
|
|
2240
2397
|
);
|
|
2241
|
-
case
|
|
2398
|
+
case 8:
|
|
2242
2399
|
return (
|
|
2243
2400
|
writeChunk(destination, startSegmentTableRow),
|
|
2244
2401
|
writeChunk(destination, renderState.segmentPrefix),
|
|
2245
2402
|
writeChunk(destination, stringToChunk(id.toString(16))),
|
|
2246
2403
|
writeChunkAndReturn(destination, startSegmentTableRow2)
|
|
2247
2404
|
);
|
|
2248
|
-
case
|
|
2405
|
+
case 9:
|
|
2249
2406
|
return (
|
|
2250
2407
|
writeChunk(destination, startSegmentColGroup),
|
|
2251
2408
|
writeChunk(destination, renderState.segmentPrefix),
|
|
@@ -2260,19 +2417,20 @@ function writeEndSegment(destination, formatContext) {
|
|
|
2260
2417
|
switch (formatContext.insertionMode) {
|
|
2261
2418
|
case 0:
|
|
2262
2419
|
case 1:
|
|
2420
|
+
case 3:
|
|
2263
2421
|
case 2:
|
|
2264
2422
|
return writeChunkAndReturn(destination, endSegmentHTML);
|
|
2265
|
-
case 3:
|
|
2266
|
-
return writeChunkAndReturn(destination, endSegmentSVG);
|
|
2267
2423
|
case 4:
|
|
2268
|
-
return writeChunkAndReturn(destination,
|
|
2424
|
+
return writeChunkAndReturn(destination, endSegmentSVG);
|
|
2269
2425
|
case 5:
|
|
2270
|
-
return writeChunkAndReturn(destination,
|
|
2426
|
+
return writeChunkAndReturn(destination, endSegmentMathML);
|
|
2271
2427
|
case 6:
|
|
2272
|
-
return writeChunkAndReturn(destination,
|
|
2428
|
+
return writeChunkAndReturn(destination, endSegmentTable);
|
|
2273
2429
|
case 7:
|
|
2274
|
-
return writeChunkAndReturn(destination,
|
|
2430
|
+
return writeChunkAndReturn(destination, endSegmentTableBody);
|
|
2275
2431
|
case 8:
|
|
2432
|
+
return writeChunkAndReturn(destination, endSegmentTableRow);
|
|
2433
|
+
case 9:
|
|
2276
2434
|
return writeChunkAndReturn(destination, endSegmentColGroup);
|
|
2277
2435
|
default:
|
|
2278
2436
|
throw Error(formatProdErrorMessage(397));
|
|
@@ -2291,10 +2449,10 @@ var completeBoundaryScript1Full = stringToPrecomputedChunk(
|
|
|
2291
2449
|
),
|
|
2292
2450
|
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
|
2293
2451
|
completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
|
|
2294
|
-
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(
|
|
2452
|
+
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
|
|
2295
2453
|
),
|
|
2296
2454
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
|
2297
|
-
'$RM=new Map;\n$RR=function(
|
|
2455
|
+
'$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
|
|
2298
2456
|
),
|
|
2299
2457
|
completeBoundaryWithStylesScript1Partial = stringToPrecomputedChunk('$RR("'),
|
|
2300
2458
|
completeBoundaryScript2 = stringToPrecomputedChunk('","'),
|
|
@@ -2614,7 +2772,7 @@ function prefetchDNS(href) {
|
|
|
2614
2772
|
escapeHrefForLinkHeaderURLContextReplacer
|
|
2615
2773
|
) +
|
|
2616
2774
|
">; rel=dns-prefetch"),
|
|
2617
|
-
|
|
2775
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
2618
2776
|
JSCompiler_temp
|
|
2619
2777
|
? ((renderState.resets.dns[href] = null),
|
|
2620
2778
|
resumableState.preconnects && (resumableState.preconnects += ", "),
|
|
@@ -2637,8 +2795,8 @@ function preconnect(href, crossOrigin) {
|
|
|
2637
2795
|
"use-credentials" === crossOrigin
|
|
2638
2796
|
? "credentials"
|
|
2639
2797
|
: "string" === typeof crossOrigin
|
|
2640
|
-
|
|
2641
|
-
|
|
2798
|
+
? "anonymous"
|
|
2799
|
+
: "default";
|
|
2642
2800
|
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
|
2643
2801
|
resumableState.connectResources[bucket][href] = null;
|
|
2644
2802
|
resumableState = renderState.headers;
|
|
@@ -2663,7 +2821,7 @@ function preconnect(href, crossOrigin) {
|
|
|
2663
2821
|
}
|
|
2664
2822
|
JSCompiler_temp =
|
|
2665
2823
|
((header = JSCompiler_temp),
|
|
2666
|
-
|
|
2824
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
2667
2825
|
}
|
|
2668
2826
|
JSCompiler_temp
|
|
2669
2827
|
? ((renderState.resets.connect[bucket][href] = null),
|
|
@@ -2703,9 +2861,10 @@ function preload(href, as, options) {
|
|
|
2703
2861
|
var header;
|
|
2704
2862
|
resumableState &&
|
|
2705
2863
|
0 < resumableState.remainingCapacity &&
|
|
2864
|
+
"string" !== typeof imageSrcSet &&
|
|
2706
2865
|
"high" === fetchPriority &&
|
|
2707
2866
|
((header = getPreloadAsHeader(href, as, options)),
|
|
2708
|
-
|
|
2867
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2))
|
|
2709
2868
|
? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
|
|
2710
2869
|
resumableState.highImagePreloads &&
|
|
2711
2870
|
(resumableState.highImagePreloads += ", "),
|
|
@@ -2771,7 +2930,7 @@ function preload(href, as, options) {
|
|
|
2771
2930
|
0 < resumableState.remainingCapacity &&
|
|
2772
2931
|
"font" === as &&
|
|
2773
2932
|
((key = getPreloadAsHeader(href, as, options)),
|
|
2774
|
-
|
|
2933
|
+
0 <= (resumableState.remainingCapacity -= key.length + 2))
|
|
2775
2934
|
)
|
|
2776
2935
|
(renderState.resets.font[href] = PRELOAD_NO_CREDS),
|
|
2777
2936
|
resumableState.fontPreloads &&
|
|
@@ -2994,7 +3153,8 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
|
2994
3153
|
function hoistStylesheetDependency(stylesheet) {
|
|
2995
3154
|
this.stylesheets.add(stylesheet);
|
|
2996
3155
|
}
|
|
2997
|
-
var
|
|
3156
|
+
var bind = Function.prototype.bind,
|
|
3157
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
2998
3158
|
function getComponentNameFromType(type) {
|
|
2999
3159
|
if (null == type) return null;
|
|
3000
3160
|
if ("function" === typeof type)
|
|
@@ -3005,8 +3165,6 @@ function getComponentNameFromType(type) {
|
|
|
3005
3165
|
switch (type) {
|
|
3006
3166
|
case REACT_FRAGMENT_TYPE:
|
|
3007
3167
|
return "Fragment";
|
|
3008
|
-
case REACT_PORTAL_TYPE:
|
|
3009
|
-
return "Portal";
|
|
3010
3168
|
case REACT_PROFILER_TYPE:
|
|
3011
3169
|
return "Profiler";
|
|
3012
3170
|
case REACT_STRICT_MODE_TYPE:
|
|
@@ -3015,9 +3173,13 @@ function getComponentNameFromType(type) {
|
|
|
3015
3173
|
return "Suspense";
|
|
3016
3174
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
3017
3175
|
return "SuspenseList";
|
|
3176
|
+
case REACT_ACTIVITY_TYPE:
|
|
3177
|
+
return "Activity";
|
|
3018
3178
|
}
|
|
3019
3179
|
if ("object" === typeof type)
|
|
3020
3180
|
switch (type.$$typeof) {
|
|
3181
|
+
case REACT_PORTAL_TYPE:
|
|
3182
|
+
return "Portal";
|
|
3021
3183
|
case REACT_CONTEXT_TYPE:
|
|
3022
3184
|
return (type.displayName || "Context") + ".Provider";
|
|
3023
3185
|
case REACT_CONSUMER_TYPE:
|
|
@@ -3093,18 +3255,15 @@ function switchContext(newSnapshot) {
|
|
|
3093
3255
|
(null === prev
|
|
3094
3256
|
? pushAllNext(newSnapshot)
|
|
3095
3257
|
: null === newSnapshot
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3258
|
+
? popAllPrevious(prev)
|
|
3259
|
+
: prev.depth === newSnapshot.depth
|
|
3260
|
+
? popToNearestCommonAncestor(prev, newSnapshot)
|
|
3261
|
+
: prev.depth > newSnapshot.depth
|
|
3262
|
+
? popPreviousToCommonLevel(prev, newSnapshot)
|
|
3263
|
+
: popNextToCommonLevel(prev, newSnapshot),
|
|
3102
3264
|
(currentActiveSnapshot = newSnapshot));
|
|
3103
3265
|
}
|
|
3104
3266
|
var classComponentUpdater = {
|
|
3105
|
-
isMounted: function () {
|
|
3106
|
-
return !1;
|
|
3107
|
-
},
|
|
3108
3267
|
enqueueSetState: function (inst, payload) {
|
|
3109
3268
|
inst = inst._reactInternals;
|
|
3110
3269
|
null !== inst.queue && inst.queue.push(payload);
|
|
@@ -3237,9 +3396,9 @@ function createWorkInProgressHook() {
|
|
|
3237
3396
|
(firstWorkInProgressHook = workInProgressHook = createHook()))
|
|
3238
3397
|
: ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
|
|
3239
3398
|
: null === workInProgressHook.next
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3399
|
+
? ((isReRender = !1),
|
|
3400
|
+
(workInProgressHook = workInProgressHook.next = createHook()))
|
|
3401
|
+
: ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
|
|
3243
3402
|
return workInProgressHook;
|
|
3244
3403
|
}
|
|
3245
3404
|
function getThenableStateAfterSuspending() {
|
|
@@ -3286,8 +3445,8 @@ function useReducer(reducer, initialArg, init) {
|
|
|
3286
3445
|
? initialArg()
|
|
3287
3446
|
: initialArg
|
|
3288
3447
|
: void 0 !== init
|
|
3289
|
-
|
|
3290
|
-
|
|
3448
|
+
? init(initialArg)
|
|
3449
|
+
: initialArg;
|
|
3291
3450
|
workInProgressHook.memoizedState = reducer;
|
|
3292
3451
|
reducer = workInProgressHook.queue = { last: null, dispatch: null };
|
|
3293
3452
|
reducer = reducer.dispatch = dispatchAction.bind(
|
|
@@ -3416,94 +3575,101 @@ function unsupportedRefresh() {
|
|
|
3416
3575
|
}
|
|
3417
3576
|
function noop$1() {}
|
|
3418
3577
|
var HooksDispatcher = {
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3578
|
+
readContext: function (context) {
|
|
3579
|
+
return context._currentValue;
|
|
3580
|
+
},
|
|
3581
|
+
use: function (usable) {
|
|
3582
|
+
if (null !== usable && "object" === typeof usable) {
|
|
3583
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
3584
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
|
3585
|
+
}
|
|
3586
|
+
throw Error(formatProdErrorMessage(438, String(usable)));
|
|
3587
|
+
},
|
|
3588
|
+
useContext: function (context) {
|
|
3589
|
+
resolveCurrentlyRenderingComponent();
|
|
3590
|
+
return context._currentValue;
|
|
3591
|
+
},
|
|
3592
|
+
useMemo: useMemo,
|
|
3593
|
+
useReducer: useReducer,
|
|
3594
|
+
useRef: function (initialValue) {
|
|
3595
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
3596
|
+
workInProgressHook = createWorkInProgressHook();
|
|
3597
|
+
var previousRef = workInProgressHook.memoizedState;
|
|
3598
|
+
return null === previousRef
|
|
3599
|
+
? ((initialValue = { current: initialValue }),
|
|
3600
|
+
(workInProgressHook.memoizedState = initialValue))
|
|
3601
|
+
: previousRef;
|
|
3602
|
+
},
|
|
3603
|
+
useState: function (initialState) {
|
|
3604
|
+
return useReducer(basicStateReducer, initialState);
|
|
3605
|
+
},
|
|
3606
|
+
useInsertionEffect: noop$1,
|
|
3607
|
+
useLayoutEffect: noop$1,
|
|
3608
|
+
useCallback: function (callback, deps) {
|
|
3609
|
+
return useMemo(function () {
|
|
3610
|
+
return callback;
|
|
3611
|
+
}, deps);
|
|
3612
|
+
},
|
|
3613
|
+
useImperativeHandle: noop$1,
|
|
3614
|
+
useEffect: noop$1,
|
|
3615
|
+
useDebugValue: noop$1,
|
|
3616
|
+
useDeferredValue: function (value, initialValue) {
|
|
3617
|
+
resolveCurrentlyRenderingComponent();
|
|
3618
|
+
return void 0 !== initialValue ? initialValue : value;
|
|
3619
|
+
},
|
|
3620
|
+
useTransition: function () {
|
|
3621
|
+
resolveCurrentlyRenderingComponent();
|
|
3622
|
+
return [!1, unsupportedStartTransition];
|
|
3623
|
+
},
|
|
3624
|
+
useId: function () {
|
|
3625
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
3626
|
+
var overflow = JSCompiler_inline_result.overflow;
|
|
3627
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3628
|
+
JSCompiler_inline_result =
|
|
3629
|
+
(
|
|
3630
|
+
JSCompiler_inline_result &
|
|
3631
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3632
|
+
).toString(32) + overflow;
|
|
3633
|
+
var resumableState = currentResumableState;
|
|
3634
|
+
if (null === resumableState) throw Error(formatProdErrorMessage(404));
|
|
3635
|
+
overflow = localIdCounter++;
|
|
3636
|
+
JSCompiler_inline_result =
|
|
3637
|
+
"\u00ab" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
3638
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3639
|
+
return JSCompiler_inline_result + "\u00bb";
|
|
3640
|
+
},
|
|
3641
|
+
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3642
|
+
if (void 0 === getServerSnapshot)
|
|
3643
|
+
throw Error(formatProdErrorMessage(407));
|
|
3644
|
+
return getServerSnapshot();
|
|
3645
|
+
},
|
|
3646
|
+
useOptimistic: function (passthrough) {
|
|
3647
|
+
resolveCurrentlyRenderingComponent();
|
|
3648
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
3649
|
+
},
|
|
3650
|
+
useActionState: useActionState,
|
|
3651
|
+
useFormState: useActionState,
|
|
3652
|
+
useHostTransitionStatus: function () {
|
|
3653
|
+
resolveCurrentlyRenderingComponent();
|
|
3654
|
+
return sharedNotPendingObject;
|
|
3655
|
+
},
|
|
3656
|
+
useMemoCache: function (size) {
|
|
3657
|
+
for (var data = Array(size), i = 0; i < size; i++)
|
|
3658
|
+
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
3659
|
+
return data;
|
|
3660
|
+
},
|
|
3661
|
+
useCacheRefresh: function () {
|
|
3662
|
+
return unsupportedRefresh;
|
|
3426
3663
|
}
|
|
3427
|
-
throw Error(formatProdErrorMessage(438, String(usable)));
|
|
3428
|
-
},
|
|
3429
|
-
useContext: function (context) {
|
|
3430
|
-
resolveCurrentlyRenderingComponent();
|
|
3431
|
-
return context._currentValue;
|
|
3432
|
-
},
|
|
3433
|
-
useMemo: useMemo,
|
|
3434
|
-
useReducer: useReducer,
|
|
3435
|
-
useRef: function (initialValue) {
|
|
3436
|
-
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
3437
|
-
workInProgressHook = createWorkInProgressHook();
|
|
3438
|
-
var previousRef = workInProgressHook.memoizedState;
|
|
3439
|
-
return null === previousRef
|
|
3440
|
-
? ((initialValue = { current: initialValue }),
|
|
3441
|
-
(workInProgressHook.memoizedState = initialValue))
|
|
3442
|
-
: previousRef;
|
|
3443
|
-
},
|
|
3444
|
-
useState: function (initialState) {
|
|
3445
|
-
return useReducer(basicStateReducer, initialState);
|
|
3446
|
-
},
|
|
3447
|
-
useInsertionEffect: noop$1,
|
|
3448
|
-
useLayoutEffect: noop$1,
|
|
3449
|
-
useCallback: function (callback, deps) {
|
|
3450
|
-
return useMemo(function () {
|
|
3451
|
-
return callback;
|
|
3452
|
-
}, deps);
|
|
3453
|
-
},
|
|
3454
|
-
useImperativeHandle: noop$1,
|
|
3455
|
-
useEffect: noop$1,
|
|
3456
|
-
useDebugValue: noop$1,
|
|
3457
|
-
useDeferredValue: function (value, initialValue) {
|
|
3458
|
-
resolveCurrentlyRenderingComponent();
|
|
3459
|
-
return void 0 !== initialValue ? initialValue : value;
|
|
3460
|
-
},
|
|
3461
|
-
useTransition: function () {
|
|
3462
|
-
resolveCurrentlyRenderingComponent();
|
|
3463
|
-
return [!1, unsupportedStartTransition];
|
|
3464
3664
|
},
|
|
3465
|
-
|
|
3466
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
3467
|
-
var overflow = JSCompiler_inline_result.overflow;
|
|
3468
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3469
|
-
JSCompiler_inline_result =
|
|
3470
|
-
(
|
|
3471
|
-
JSCompiler_inline_result &
|
|
3472
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3473
|
-
).toString(32) + overflow;
|
|
3474
|
-
var resumableState = currentResumableState;
|
|
3475
|
-
if (null === resumableState) throw Error(formatProdErrorMessage(404));
|
|
3476
|
-
overflow = localIdCounter++;
|
|
3477
|
-
JSCompiler_inline_result =
|
|
3478
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
3479
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3480
|
-
return JSCompiler_inline_result + ":";
|
|
3481
|
-
},
|
|
3482
|
-
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3483
|
-
if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
|
|
3484
|
-
return getServerSnapshot();
|
|
3485
|
-
},
|
|
3486
|
-
useCacheRefresh: function () {
|
|
3487
|
-
return unsupportedRefresh;
|
|
3488
|
-
},
|
|
3489
|
-
useHostTransitionStatus: function () {
|
|
3490
|
-
resolveCurrentlyRenderingComponent();
|
|
3491
|
-
return sharedNotPendingObject;
|
|
3492
|
-
},
|
|
3493
|
-
useOptimistic: function (passthrough) {
|
|
3494
|
-
resolveCurrentlyRenderingComponent();
|
|
3495
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
3496
|
-
}
|
|
3497
|
-
};
|
|
3498
|
-
HooksDispatcher.useFormState = useActionState;
|
|
3499
|
-
HooksDispatcher.useActionState = useActionState;
|
|
3500
|
-
var currentResumableState = null,
|
|
3665
|
+
currentResumableState = null,
|
|
3501
3666
|
DefaultAsyncDispatcher = {
|
|
3502
3667
|
getCacheForType: function () {
|
|
3503
3668
|
throw Error(formatProdErrorMessage(248));
|
|
3504
3669
|
}
|
|
3505
3670
|
},
|
|
3506
|
-
prefix
|
|
3671
|
+
prefix,
|
|
3672
|
+
suffix;
|
|
3507
3673
|
function describeBuiltInComponentFrame(name) {
|
|
3508
3674
|
if (void 0 === prefix)
|
|
3509
3675
|
try {
|
|
@@ -3511,8 +3677,14 @@ function describeBuiltInComponentFrame(name) {
|
|
|
3511
3677
|
} catch (x) {
|
|
3512
3678
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
3513
3679
|
prefix = (match && match[1]) || "";
|
|
3680
|
+
suffix =
|
|
3681
|
+
-1 < x.stack.indexOf("\n at")
|
|
3682
|
+
? " (<anonymous>)"
|
|
3683
|
+
: -1 < x.stack.indexOf("@")
|
|
3684
|
+
? "@unknown:0:0"
|
|
3685
|
+
: "";
|
|
3514
3686
|
}
|
|
3515
|
-
return "\n" + prefix + name;
|
|
3687
|
+
return "\n" + prefix + name + suffix;
|
|
3516
3688
|
}
|
|
3517
3689
|
var reentry = !1;
|
|
3518
3690
|
function describeNativeComponentFrame(fn, construct) {
|
|
@@ -3520,62 +3692,64 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3520
3692
|
reentry = !0;
|
|
3521
3693
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
3522
3694
|
Error.prepareStackTrace = void 0;
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
};
|
|
3530
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
3531
|
-
set: function () {
|
|
3695
|
+
try {
|
|
3696
|
+
var RunInRootFrame = {
|
|
3697
|
+
DetermineComponentFrameRoot: function () {
|
|
3698
|
+
try {
|
|
3699
|
+
if (construct) {
|
|
3700
|
+
var Fake = function () {
|
|
3532
3701
|
throw Error();
|
|
3702
|
+
};
|
|
3703
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
3704
|
+
set: function () {
|
|
3705
|
+
throw Error();
|
|
3706
|
+
}
|
|
3707
|
+
});
|
|
3708
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
3709
|
+
try {
|
|
3710
|
+
Reflect.construct(Fake, []);
|
|
3711
|
+
} catch (x) {
|
|
3712
|
+
var control = x;
|
|
3713
|
+
}
|
|
3714
|
+
Reflect.construct(fn, [], Fake);
|
|
3715
|
+
} else {
|
|
3716
|
+
try {
|
|
3717
|
+
Fake.call();
|
|
3718
|
+
} catch (x$24) {
|
|
3719
|
+
control = x$24;
|
|
3720
|
+
}
|
|
3721
|
+
fn.call(Fake.prototype);
|
|
3533
3722
|
}
|
|
3534
|
-
});
|
|
3535
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
|
3536
|
-
try {
|
|
3537
|
-
Reflect.construct(Fake, []);
|
|
3538
|
-
} catch (x) {
|
|
3539
|
-
var control = x;
|
|
3540
|
-
}
|
|
3541
|
-
Reflect.construct(fn, [], Fake);
|
|
3542
3723
|
} else {
|
|
3543
3724
|
try {
|
|
3544
|
-
|
|
3545
|
-
} catch (x$
|
|
3546
|
-
control = x$
|
|
3725
|
+
throw Error();
|
|
3726
|
+
} catch (x$25) {
|
|
3727
|
+
control = x$25;
|
|
3547
3728
|
}
|
|
3548
|
-
fn
|
|
3729
|
+
(Fake = fn()) &&
|
|
3730
|
+
"function" === typeof Fake.catch &&
|
|
3731
|
+
Fake.catch(function () {});
|
|
3549
3732
|
}
|
|
3550
|
-
}
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
} catch (x$25) {
|
|
3554
|
-
control = x$25;
|
|
3555
|
-
}
|
|
3556
|
-
(Fake = fn()) &&
|
|
3557
|
-
"function" === typeof Fake.catch &&
|
|
3558
|
-
Fake.catch(function () {});
|
|
3733
|
+
} catch (sample) {
|
|
3734
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
3735
|
+
return [sample.stack, control.stack];
|
|
3559
3736
|
}
|
|
3560
|
-
|
|
3561
|
-
if (sample && control && "string" === typeof sample.stack)
|
|
3562
|
-
return [sample.stack, control.stack];
|
|
3737
|
+
return [null, null];
|
|
3563
3738
|
}
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
try {
|
|
3739
|
+
};
|
|
3740
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
|
3741
|
+
"DetermineComponentFrameRoot";
|
|
3742
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
3743
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
3744
|
+
"name"
|
|
3745
|
+
);
|
|
3746
|
+
namePropDescriptor &&
|
|
3747
|
+
namePropDescriptor.configurable &&
|
|
3748
|
+
Object.defineProperty(
|
|
3749
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
3750
|
+
"name",
|
|
3751
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
3752
|
+
);
|
|
3579
3753
|
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
|
|
3580
3754
|
sampleStack = _RunInRootFrame$Deter[0],
|
|
3581
3755
|
controlStack = _RunInRootFrame$Deter[1];
|
|
@@ -3646,11 +3820,116 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3646
3820
|
? describeBuiltInComponentFrame(previousPrepareStackTrace)
|
|
3647
3821
|
: "";
|
|
3648
3822
|
}
|
|
3823
|
+
function describeComponentStackByType(type) {
|
|
3824
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
3825
|
+
if ("function" === typeof type)
|
|
3826
|
+
return type.prototype && type.prototype.isReactComponent
|
|
3827
|
+
? describeNativeComponentFrame(type, !0)
|
|
3828
|
+
: describeNativeComponentFrame(type, !1);
|
|
3829
|
+
if ("object" === typeof type && null !== type) {
|
|
3830
|
+
switch (type.$$typeof) {
|
|
3831
|
+
case REACT_FORWARD_REF_TYPE:
|
|
3832
|
+
return describeNativeComponentFrame(type.render, !1);
|
|
3833
|
+
case REACT_MEMO_TYPE:
|
|
3834
|
+
return describeNativeComponentFrame(type.type, !1);
|
|
3835
|
+
case REACT_LAZY_TYPE:
|
|
3836
|
+
var lazyComponent = type,
|
|
3837
|
+
payload = lazyComponent._payload;
|
|
3838
|
+
lazyComponent = lazyComponent._init;
|
|
3839
|
+
try {
|
|
3840
|
+
type = lazyComponent(payload);
|
|
3841
|
+
} catch (x) {
|
|
3842
|
+
return describeBuiltInComponentFrame("Lazy");
|
|
3843
|
+
}
|
|
3844
|
+
return describeComponentStackByType(type);
|
|
3845
|
+
}
|
|
3846
|
+
if ("string" === typeof type.name)
|
|
3847
|
+
return (
|
|
3848
|
+
(payload = type.env),
|
|
3849
|
+
describeBuiltInComponentFrame(
|
|
3850
|
+
type.name + (payload ? " [" + payload + "]" : "")
|
|
3851
|
+
)
|
|
3852
|
+
);
|
|
3853
|
+
}
|
|
3854
|
+
switch (type) {
|
|
3855
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
3856
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
3857
|
+
case REACT_SUSPENSE_TYPE:
|
|
3858
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
3859
|
+
}
|
|
3860
|
+
return "";
|
|
3861
|
+
}
|
|
3649
3862
|
function defaultErrorHandler(error) {
|
|
3650
|
-
|
|
3863
|
+
if (
|
|
3864
|
+
"object" === typeof error &&
|
|
3865
|
+
null !== error &&
|
|
3866
|
+
"string" === typeof error.environmentName
|
|
3867
|
+
) {
|
|
3868
|
+
var JSCompiler_inline_result = error.environmentName;
|
|
3869
|
+
error = [error].slice(0);
|
|
3870
|
+
"string" === typeof error[0]
|
|
3871
|
+
? error.splice(
|
|
3872
|
+
0,
|
|
3873
|
+
1,
|
|
3874
|
+
"%c%s%c " + error[0],
|
|
3875
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
3876
|
+
" " + JSCompiler_inline_result + " ",
|
|
3877
|
+
""
|
|
3878
|
+
)
|
|
3879
|
+
: error.splice(
|
|
3880
|
+
0,
|
|
3881
|
+
0,
|
|
3882
|
+
"%c%s%c ",
|
|
3883
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
3884
|
+
" " + JSCompiler_inline_result + " ",
|
|
3885
|
+
""
|
|
3886
|
+
);
|
|
3887
|
+
error.unshift(console);
|
|
3888
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
|
3889
|
+
JSCompiler_inline_result();
|
|
3890
|
+
} else console.error(error);
|
|
3651
3891
|
return null;
|
|
3652
3892
|
}
|
|
3653
3893
|
function noop() {}
|
|
3894
|
+
function RequestInstance(
|
|
3895
|
+
resumableState,
|
|
3896
|
+
renderState,
|
|
3897
|
+
rootFormatContext,
|
|
3898
|
+
progressiveChunkSize,
|
|
3899
|
+
onError,
|
|
3900
|
+
onAllReady,
|
|
3901
|
+
onShellReady,
|
|
3902
|
+
onShellError,
|
|
3903
|
+
onFatalError,
|
|
3904
|
+
onPostpone,
|
|
3905
|
+
formState
|
|
3906
|
+
) {
|
|
3907
|
+
var abortSet = new Set();
|
|
3908
|
+
this.destination = null;
|
|
3909
|
+
this.flushScheduled = !1;
|
|
3910
|
+
this.resumableState = resumableState;
|
|
3911
|
+
this.renderState = renderState;
|
|
3912
|
+
this.rootFormatContext = rootFormatContext;
|
|
3913
|
+
this.progressiveChunkSize =
|
|
3914
|
+
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
3915
|
+
this.status = 10;
|
|
3916
|
+
this.fatalError = null;
|
|
3917
|
+
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
3918
|
+
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
3919
|
+
this.abortableTasks = abortSet;
|
|
3920
|
+
this.pingedTasks = [];
|
|
3921
|
+
this.clientRenderedBoundaries = [];
|
|
3922
|
+
this.completedBoundaries = [];
|
|
3923
|
+
this.partialBoundaries = [];
|
|
3924
|
+
this.trackedPostpones = null;
|
|
3925
|
+
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
3926
|
+
this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
|
|
3927
|
+
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
|
3928
|
+
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
3929
|
+
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
3930
|
+
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
3931
|
+
this.formState = void 0 === formState ? null : formState;
|
|
3932
|
+
}
|
|
3654
3933
|
function createRequest(
|
|
3655
3934
|
children,
|
|
3656
3935
|
resumableState,
|
|
@@ -3665,36 +3944,19 @@ function createRequest(
|
|
|
3665
3944
|
onPostpone,
|
|
3666
3945
|
formState
|
|
3667
3946
|
) {
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
allPendingTasks: 0,
|
|
3682
|
-
pendingRootTasks: 0,
|
|
3683
|
-
completedRootSegment: null,
|
|
3684
|
-
abortableTasks: abortSet,
|
|
3685
|
-
pingedTasks: pingedTasks,
|
|
3686
|
-
clientRenderedBoundaries: [],
|
|
3687
|
-
completedBoundaries: [],
|
|
3688
|
-
partialBoundaries: [],
|
|
3689
|
-
trackedPostpones: null,
|
|
3690
|
-
onError: void 0 === onError ? defaultErrorHandler : onError,
|
|
3691
|
-
onPostpone: void 0 === onPostpone ? noop : onPostpone,
|
|
3692
|
-
onAllReady: void 0 === onAllReady ? noop : onAllReady,
|
|
3693
|
-
onShellReady: void 0 === onShellReady ? noop : onShellReady,
|
|
3694
|
-
onShellError: void 0 === onShellError ? noop : onShellError,
|
|
3695
|
-
onFatalError: void 0 === onFatalError ? noop : onFatalError,
|
|
3696
|
-
formState: void 0 === formState ? null : formState
|
|
3697
|
-
};
|
|
3947
|
+
resumableState = new RequestInstance(
|
|
3948
|
+
resumableState,
|
|
3949
|
+
renderState,
|
|
3950
|
+
rootFormatContext,
|
|
3951
|
+
progressiveChunkSize,
|
|
3952
|
+
onError,
|
|
3953
|
+
onAllReady,
|
|
3954
|
+
onShellReady,
|
|
3955
|
+
onShellError,
|
|
3956
|
+
onFatalError,
|
|
3957
|
+
onPostpone,
|
|
3958
|
+
formState
|
|
3959
|
+
);
|
|
3698
3960
|
renderState = createPendingSegment(
|
|
3699
3961
|
resumableState,
|
|
3700
3962
|
0,
|
|
@@ -3712,26 +3974,72 @@ function createRequest(
|
|
|
3712
3974
|
null,
|
|
3713
3975
|
renderState,
|
|
3714
3976
|
null,
|
|
3715
|
-
|
|
3977
|
+
null,
|
|
3978
|
+
resumableState.abortableTasks,
|
|
3716
3979
|
null,
|
|
3717
3980
|
rootFormatContext,
|
|
3718
|
-
emptyContextObject,
|
|
3719
3981
|
null,
|
|
3720
3982
|
emptyTreeContext,
|
|
3721
3983
|
null,
|
|
3722
3984
|
!1
|
|
3723
3985
|
);
|
|
3724
|
-
|
|
3986
|
+
pushComponentStack(children);
|
|
3987
|
+
resumableState.pingedTasks.push(children);
|
|
3725
3988
|
return resumableState;
|
|
3726
3989
|
}
|
|
3990
|
+
function createPrerenderRequest(
|
|
3991
|
+
children,
|
|
3992
|
+
resumableState,
|
|
3993
|
+
renderState,
|
|
3994
|
+
rootFormatContext,
|
|
3995
|
+
progressiveChunkSize,
|
|
3996
|
+
onError,
|
|
3997
|
+
onAllReady,
|
|
3998
|
+
onShellReady,
|
|
3999
|
+
onShellError,
|
|
4000
|
+
onFatalError,
|
|
4001
|
+
onPostpone
|
|
4002
|
+
) {
|
|
4003
|
+
children = createRequest(
|
|
4004
|
+
children,
|
|
4005
|
+
resumableState,
|
|
4006
|
+
renderState,
|
|
4007
|
+
rootFormatContext,
|
|
4008
|
+
progressiveChunkSize,
|
|
4009
|
+
onError,
|
|
4010
|
+
onAllReady,
|
|
4011
|
+
onShellReady,
|
|
4012
|
+
onShellError,
|
|
4013
|
+
onFatalError,
|
|
4014
|
+
onPostpone,
|
|
4015
|
+
void 0
|
|
4016
|
+
);
|
|
4017
|
+
children.trackedPostpones = {
|
|
4018
|
+
workingMap: new Map(),
|
|
4019
|
+
rootNodes: [],
|
|
4020
|
+
rootSlots: null
|
|
4021
|
+
};
|
|
4022
|
+
return children;
|
|
4023
|
+
}
|
|
3727
4024
|
var currentRequest = null;
|
|
3728
4025
|
function pingTask(request, task) {
|
|
3729
4026
|
request.pingedTasks.push(task);
|
|
3730
4027
|
1 === request.pingedTasks.length &&
|
|
3731
4028
|
((request.flushScheduled = null !== request.destination),
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
4029
|
+
null !== request.trackedPostpones || 10 === request.status
|
|
4030
|
+
? scheduleMicrotask(function () {
|
|
4031
|
+
return performWork(request);
|
|
4032
|
+
})
|
|
4033
|
+
: scheduleWork(function () {
|
|
4034
|
+
return performWork(request);
|
|
4035
|
+
}));
|
|
4036
|
+
}
|
|
4037
|
+
function createSuspenseBoundary(
|
|
4038
|
+
request,
|
|
4039
|
+
fallbackAbortableTasks,
|
|
4040
|
+
contentPreamble,
|
|
4041
|
+
fallbackPreamble
|
|
4042
|
+
) {
|
|
3735
4043
|
return {
|
|
3736
4044
|
status: 0,
|
|
3737
4045
|
rootSegmentID: -1,
|
|
@@ -3743,6 +4051,8 @@ function createSuspenseBoundary(request, fallbackAbortableTasks) {
|
|
|
3743
4051
|
errorDigest: null,
|
|
3744
4052
|
contentState: createHoistableState(),
|
|
3745
4053
|
fallbackState: createHoistableState(),
|
|
4054
|
+
contentPreamble: contentPreamble,
|
|
4055
|
+
fallbackPreamble: fallbackPreamble,
|
|
3746
4056
|
trackedContentKeyPath: null,
|
|
3747
4057
|
trackedFallbackNode: null
|
|
3748
4058
|
};
|
|
@@ -3754,11 +4064,11 @@ function createRenderTask(
|
|
|
3754
4064
|
childIndex,
|
|
3755
4065
|
blockedBoundary,
|
|
3756
4066
|
blockedSegment,
|
|
4067
|
+
blockedPreamble,
|
|
3757
4068
|
hoistableState,
|
|
3758
4069
|
abortSet,
|
|
3759
4070
|
keyPath,
|
|
3760
4071
|
formatContext,
|
|
3761
|
-
legacyContext,
|
|
3762
4072
|
context,
|
|
3763
4073
|
treeContext,
|
|
3764
4074
|
componentStack,
|
|
@@ -3777,11 +4087,11 @@ function createRenderTask(
|
|
|
3777
4087
|
},
|
|
3778
4088
|
blockedBoundary: blockedBoundary,
|
|
3779
4089
|
blockedSegment: blockedSegment,
|
|
4090
|
+
blockedPreamble: blockedPreamble,
|
|
3780
4091
|
hoistableState: hoistableState,
|
|
3781
4092
|
abortSet: abortSet,
|
|
3782
4093
|
keyPath: keyPath,
|
|
3783
4094
|
formatContext: formatContext,
|
|
3784
|
-
legacyContext: legacyContext,
|
|
3785
4095
|
context: context,
|
|
3786
4096
|
treeContext: treeContext,
|
|
3787
4097
|
componentStack: componentStack,
|
|
@@ -3802,7 +4112,6 @@ function createReplayTask(
|
|
|
3802
4112
|
abortSet,
|
|
3803
4113
|
keyPath,
|
|
3804
4114
|
formatContext,
|
|
3805
|
-
legacyContext,
|
|
3806
4115
|
context,
|
|
3807
4116
|
treeContext,
|
|
3808
4117
|
componentStack,
|
|
@@ -3822,11 +4131,11 @@ function createReplayTask(
|
|
|
3822
4131
|
},
|
|
3823
4132
|
blockedBoundary: blockedBoundary,
|
|
3824
4133
|
blockedSegment: null,
|
|
4134
|
+
blockedPreamble: null,
|
|
3825
4135
|
hoistableState: hoistableState,
|
|
3826
4136
|
abortSet: abortSet,
|
|
3827
4137
|
keyPath: keyPath,
|
|
3828
4138
|
formatContext: formatContext,
|
|
3829
|
-
legacyContext: legacyContext,
|
|
3830
4139
|
context: context,
|
|
3831
4140
|
treeContext: treeContext,
|
|
3832
4141
|
componentStack: componentStack,
|
|
@@ -3846,58 +4155,66 @@ function createPendingSegment(
|
|
|
3846
4155
|
) {
|
|
3847
4156
|
return {
|
|
3848
4157
|
status: 0,
|
|
4158
|
+
parentFlushed: !1,
|
|
3849
4159
|
id: -1,
|
|
3850
4160
|
index: index,
|
|
3851
|
-
parentFlushed: !1,
|
|
3852
4161
|
chunks: [],
|
|
3853
4162
|
children: [],
|
|
4163
|
+
preambleChildren: [],
|
|
3854
4164
|
parentFormatContext: parentFormatContext,
|
|
3855
4165
|
boundary: boundary,
|
|
3856
4166
|
lastPushedText: lastPushedText,
|
|
3857
4167
|
textEmbedded: textEmbedded
|
|
3858
4168
|
};
|
|
3859
4169
|
}
|
|
3860
|
-
function
|
|
3861
|
-
|
|
4170
|
+
function pushComponentStack(task) {
|
|
4171
|
+
var node = task.node;
|
|
4172
|
+
if ("object" === typeof node && null !== node)
|
|
4173
|
+
switch (node.$$typeof) {
|
|
4174
|
+
case REACT_ELEMENT_TYPE:
|
|
4175
|
+
task.componentStack = { parent: task.componentStack, type: node.type };
|
|
4176
|
+
}
|
|
3862
4177
|
}
|
|
3863
|
-
function getThrownInfo(
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
4178
|
+
function getThrownInfo(node$jscomp$0) {
|
|
4179
|
+
var errorInfo = {};
|
|
4180
|
+
node$jscomp$0 &&
|
|
4181
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
4182
|
+
configurable: !0,
|
|
4183
|
+
enumerable: !0,
|
|
4184
|
+
get: function () {
|
|
4185
|
+
try {
|
|
4186
|
+
var info = "",
|
|
4187
|
+
node = node$jscomp$0;
|
|
4188
|
+
do
|
|
4189
|
+
(info += describeComponentStackByType(node.type)),
|
|
4190
|
+
(node = node.parent);
|
|
4191
|
+
while (node);
|
|
4192
|
+
var JSCompiler_inline_result = info;
|
|
4193
|
+
} catch (x) {
|
|
4194
|
+
JSCompiler_inline_result =
|
|
4195
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
|
3877
4196
|
}
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
JSCompiler_temp = { componentStack: JSCompiler_temp };
|
|
3886
|
-
} else JSCompiler_temp = {};
|
|
3887
|
-
return JSCompiler_temp;
|
|
4197
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
4198
|
+
value: JSCompiler_inline_result
|
|
4199
|
+
});
|
|
4200
|
+
return JSCompiler_inline_result;
|
|
4201
|
+
}
|
|
4202
|
+
});
|
|
4203
|
+
return errorInfo;
|
|
3888
4204
|
}
|
|
3889
4205
|
function logRecoverableError(request, error, errorInfo) {
|
|
3890
|
-
request = request.onError
|
|
3891
|
-
|
|
4206
|
+
request = request.onError;
|
|
4207
|
+
error = request(error, errorInfo);
|
|
4208
|
+
if (null == error || "string" === typeof error) return error;
|
|
3892
4209
|
}
|
|
3893
4210
|
function fatalError(request, error) {
|
|
3894
|
-
var onShellError = request.onShellError
|
|
3895
|
-
|
|
3896
|
-
onShellError = request.onFatalError;
|
|
4211
|
+
var onShellError = request.onShellError,
|
|
4212
|
+
onFatalError = request.onFatalError;
|
|
3897
4213
|
onShellError(error);
|
|
4214
|
+
onFatalError(error);
|
|
3898
4215
|
null !== request.destination
|
|
3899
|
-
? ((request.status =
|
|
3900
|
-
: ((request.status =
|
|
4216
|
+
? ((request.status = 14), closeWithError(request.destination, error))
|
|
4217
|
+
: ((request.status = 13), (request.fatalError = error));
|
|
3901
4218
|
}
|
|
3902
4219
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
|
3903
4220
|
var prevThenableState = task.thenableState;
|
|
@@ -3950,171 +4267,179 @@ function finishFunctionComponent(
|
|
|
3950
4267
|
renderNode(request, task, children, -1),
|
|
3951
4268
|
(task.treeContext = keyPath))
|
|
3952
4269
|
: didEmitActionStateMarkers
|
|
3953
|
-
|
|
3954
|
-
|
|
4270
|
+
? renderNode(request, task, children, -1)
|
|
4271
|
+
: renderNodeDestructive(request, task, children, -1);
|
|
3955
4272
|
task.keyPath = actionStateCount;
|
|
3956
4273
|
}
|
|
3957
4274
|
function renderElement(request, task, keyPath, type, props, ref) {
|
|
3958
4275
|
if ("function" === typeof type)
|
|
3959
4276
|
if (type.prototype && type.prototype.isReactComponent) {
|
|
3960
|
-
var
|
|
4277
|
+
var newProps = props;
|
|
3961
4278
|
if ("ref" in props) {
|
|
3962
|
-
|
|
4279
|
+
newProps = {};
|
|
3963
4280
|
for (var propName in props)
|
|
3964
|
-
"ref" !== propName &&
|
|
3965
|
-
(JSCompiler_inline_result[propName] = props[propName]);
|
|
4281
|
+
"ref" !== propName && (newProps[propName] = props[propName]);
|
|
3966
4282
|
}
|
|
3967
4283
|
var defaultProps = type.defaultProps;
|
|
3968
4284
|
if (defaultProps) {
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
props
|
|
3974
|
-
));
|
|
3975
|
-
for (var propName$31 in defaultProps)
|
|
3976
|
-
void 0 === JSCompiler_inline_result[propName$31] &&
|
|
3977
|
-
(JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
|
|
4285
|
+
newProps === props && (newProps = assign({}, newProps, props));
|
|
4286
|
+
for (var propName$33 in defaultProps)
|
|
4287
|
+
void 0 === newProps[propName$33] &&
|
|
4288
|
+
(newProps[propName$33] = defaultProps[propName$33]);
|
|
3978
4289
|
}
|
|
3979
|
-
props =
|
|
3980
|
-
|
|
3981
|
-
defaultProps =
|
|
4290
|
+
props = newProps;
|
|
4291
|
+
newProps = emptyContextObject;
|
|
4292
|
+
defaultProps = type.contextType;
|
|
4293
|
+
"object" === typeof defaultProps &&
|
|
4294
|
+
null !== defaultProps &&
|
|
4295
|
+
(newProps = defaultProps._currentValue);
|
|
4296
|
+
newProps = new type(props, newProps);
|
|
4297
|
+
var initialState = void 0 !== newProps.state ? newProps.state : null;
|
|
4298
|
+
newProps.updater = classComponentUpdater;
|
|
4299
|
+
newProps.props = props;
|
|
4300
|
+
newProps.state = initialState;
|
|
4301
|
+
defaultProps = { queue: [], replace: !1 };
|
|
4302
|
+
newProps._reactInternals = defaultProps;
|
|
3982
4303
|
ref = type.contextType;
|
|
3983
|
-
|
|
3984
|
-
null !== ref
|
|
3985
|
-
|
|
3986
|
-
defaultProps = new type(JSCompiler_inline_result, defaultProps);
|
|
3987
|
-
propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
|
|
3988
|
-
defaultProps.updater = classComponentUpdater;
|
|
3989
|
-
defaultProps.props = JSCompiler_inline_result;
|
|
3990
|
-
defaultProps.state = propName$31;
|
|
3991
|
-
ref = { queue: [], replace: !1 };
|
|
3992
|
-
defaultProps._reactInternals = ref;
|
|
3993
|
-
var contextType = type.contextType;
|
|
3994
|
-
defaultProps.context =
|
|
3995
|
-
"object" === typeof contextType && null !== contextType
|
|
3996
|
-
? contextType._currentValue
|
|
4304
|
+
newProps.context =
|
|
4305
|
+
"object" === typeof ref && null !== ref
|
|
4306
|
+
? ref._currentValue
|
|
3997
4307
|
: emptyContextObject;
|
|
3998
|
-
|
|
3999
|
-
"function" === typeof
|
|
4000
|
-
((
|
|
4001
|
-
(
|
|
4002
|
-
null ===
|
|
4003
|
-
?
|
|
4004
|
-
: assign({},
|
|
4005
|
-
(
|
|
4308
|
+
ref = type.getDerivedStateFromProps;
|
|
4309
|
+
"function" === typeof ref &&
|
|
4310
|
+
((ref = ref(props, initialState)),
|
|
4311
|
+
(initialState =
|
|
4312
|
+
null === ref || void 0 === ref
|
|
4313
|
+
? initialState
|
|
4314
|
+
: assign({}, initialState, ref)),
|
|
4315
|
+
(newProps.state = initialState));
|
|
4006
4316
|
if (
|
|
4007
4317
|
"function" !== typeof type.getDerivedStateFromProps &&
|
|
4008
|
-
"function" !== typeof
|
|
4009
|
-
("function" === typeof
|
|
4010
|
-
"function" === typeof
|
|
4318
|
+
"function" !== typeof newProps.getSnapshotBeforeUpdate &&
|
|
4319
|
+
("function" === typeof newProps.UNSAFE_componentWillMount ||
|
|
4320
|
+
"function" === typeof newProps.componentWillMount)
|
|
4011
4321
|
)
|
|
4012
4322
|
if (
|
|
4013
|
-
((type =
|
|
4014
|
-
"function" === typeof
|
|
4015
|
-
|
|
4016
|
-
"function" === typeof
|
|
4017
|
-
|
|
4018
|
-
type !==
|
|
4323
|
+
((type = newProps.state),
|
|
4324
|
+
"function" === typeof newProps.componentWillMount &&
|
|
4325
|
+
newProps.componentWillMount(),
|
|
4326
|
+
"function" === typeof newProps.UNSAFE_componentWillMount &&
|
|
4327
|
+
newProps.UNSAFE_componentWillMount(),
|
|
4328
|
+
type !== newProps.state &&
|
|
4019
4329
|
classComponentUpdater.enqueueReplaceState(
|
|
4020
|
-
|
|
4021
|
-
|
|
4330
|
+
newProps,
|
|
4331
|
+
newProps.state,
|
|
4022
4332
|
null
|
|
4023
4333
|
),
|
|
4024
|
-
null !==
|
|
4334
|
+
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
|
4025
4335
|
)
|
|
4026
4336
|
if (
|
|
4027
|
-
((type =
|
|
4028
|
-
(
|
|
4029
|
-
(
|
|
4030
|
-
(
|
|
4031
|
-
|
|
4337
|
+
((type = defaultProps.queue),
|
|
4338
|
+
(ref = defaultProps.replace),
|
|
4339
|
+
(defaultProps.queue = null),
|
|
4340
|
+
(defaultProps.replace = !1),
|
|
4341
|
+
ref && 1 === type.length)
|
|
4032
4342
|
)
|
|
4033
|
-
|
|
4343
|
+
newProps.state = type[0];
|
|
4034
4344
|
else {
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
for (
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
?
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
void 0
|
|
4050
|
-
)
|
|
4051
|
-
: propName),
|
|
4052
|
-
null != propName &&
|
|
4053
|
-
(propName$31
|
|
4054
|
-
? ((propName$31 = !1), (ref = assign({}, ref, propName)))
|
|
4055
|
-
: assign(ref, propName));
|
|
4056
|
-
defaultProps.state = ref;
|
|
4345
|
+
defaultProps = ref ? type[0] : newProps.state;
|
|
4346
|
+
initialState = !0;
|
|
4347
|
+
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
|
4348
|
+
(propName$33 = type[ref]),
|
|
4349
|
+
(propName$33 =
|
|
4350
|
+
"function" === typeof propName$33
|
|
4351
|
+
? propName$33.call(newProps, defaultProps, props, void 0)
|
|
4352
|
+
: propName$33),
|
|
4353
|
+
null != propName$33 &&
|
|
4354
|
+
(initialState
|
|
4355
|
+
? ((initialState = !1),
|
|
4356
|
+
(defaultProps = assign({}, defaultProps, propName$33)))
|
|
4357
|
+
: assign(defaultProps, propName$33));
|
|
4358
|
+
newProps.state = defaultProps;
|
|
4057
4359
|
}
|
|
4058
|
-
else
|
|
4059
|
-
type =
|
|
4060
|
-
|
|
4360
|
+
else defaultProps.queue = null;
|
|
4361
|
+
type = newProps.render();
|
|
4362
|
+
if (12 === request.status) throw null;
|
|
4363
|
+
props = task.keyPath;
|
|
4061
4364
|
task.keyPath = keyPath;
|
|
4062
4365
|
renderNodeDestructive(request, task, type, -1);
|
|
4063
|
-
task.keyPath =
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
(
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
),
|
|
4082
|
-
(task.
|
|
4083
|
-
else if ("string" === typeof type) {
|
|
4084
|
-
JSCompiler_inline_result = task.componentStack;
|
|
4085
|
-
task.componentStack = createBuiltInComponentStack(task, type);
|
|
4086
|
-
defaultProps = task.blockedSegment;
|
|
4087
|
-
if (null === defaultProps)
|
|
4088
|
-
(defaultProps = props.children),
|
|
4089
|
-
(ref = task.formatContext),
|
|
4090
|
-
(propName$31 = task.keyPath),
|
|
4091
|
-
(task.formatContext = getChildFormatContext(ref, type, props)),
|
|
4366
|
+
task.keyPath = props;
|
|
4367
|
+
} else {
|
|
4368
|
+
type = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
4369
|
+
if (12 === request.status) throw null;
|
|
4370
|
+
finishFunctionComponent(
|
|
4371
|
+
request,
|
|
4372
|
+
task,
|
|
4373
|
+
keyPath,
|
|
4374
|
+
type,
|
|
4375
|
+
0 !== localIdCounter,
|
|
4376
|
+
actionStateCounter,
|
|
4377
|
+
actionStateMatchingIndex
|
|
4378
|
+
);
|
|
4379
|
+
}
|
|
4380
|
+
else if ("string" === typeof type)
|
|
4381
|
+
if (((newProps = task.blockedSegment), null === newProps))
|
|
4382
|
+
(newProps = props.children),
|
|
4383
|
+
(defaultProps = task.formatContext),
|
|
4384
|
+
(initialState = task.keyPath),
|
|
4385
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props)),
|
|
4092
4386
|
(task.keyPath = keyPath),
|
|
4093
|
-
renderNode(request, task,
|
|
4094
|
-
(task.formatContext =
|
|
4095
|
-
(task.keyPath =
|
|
4387
|
+
renderNode(request, task, newProps, -1),
|
|
4388
|
+
(task.formatContext = defaultProps),
|
|
4389
|
+
(task.keyPath = initialState);
|
|
4096
4390
|
else {
|
|
4097
|
-
|
|
4098
|
-
|
|
4391
|
+
ref = pushStartInstance(
|
|
4392
|
+
newProps.chunks,
|
|
4099
4393
|
type,
|
|
4100
4394
|
props,
|
|
4101
4395
|
request.resumableState,
|
|
4102
4396
|
request.renderState,
|
|
4397
|
+
task.blockedPreamble,
|
|
4103
4398
|
task.hoistableState,
|
|
4104
4399
|
task.formatContext,
|
|
4105
|
-
|
|
4400
|
+
newProps.lastPushedText,
|
|
4106
4401
|
task.isFallback
|
|
4107
4402
|
);
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
task.formatContext = getChildFormatContext(ref, type, props);
|
|
4403
|
+
newProps.lastPushedText = !1;
|
|
4404
|
+
defaultProps = task.formatContext;
|
|
4405
|
+
initialState = task.keyPath;
|
|
4112
4406
|
task.keyPath = keyPath;
|
|
4113
|
-
|
|
4114
|
-
task.formatContext =
|
|
4115
|
-
|
|
4407
|
+
3 ===
|
|
4408
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props))
|
|
4409
|
+
.insertionMode
|
|
4410
|
+
? ((keyPath = createPendingSegment(
|
|
4411
|
+
request,
|
|
4412
|
+
0,
|
|
4413
|
+
null,
|
|
4414
|
+
task.formatContext,
|
|
4415
|
+
!1,
|
|
4416
|
+
!1
|
|
4417
|
+
)),
|
|
4418
|
+
newProps.preambleChildren.push(keyPath),
|
|
4419
|
+
(keyPath = createRenderTask(
|
|
4420
|
+
request,
|
|
4421
|
+
null,
|
|
4422
|
+
ref,
|
|
4423
|
+
-1,
|
|
4424
|
+
task.blockedBoundary,
|
|
4425
|
+
keyPath,
|
|
4426
|
+
task.blockedPreamble,
|
|
4427
|
+
task.hoistableState,
|
|
4428
|
+
request.abortableTasks,
|
|
4429
|
+
task.keyPath,
|
|
4430
|
+
task.formatContext,
|
|
4431
|
+
task.context,
|
|
4432
|
+
task.treeContext,
|
|
4433
|
+
task.componentStack,
|
|
4434
|
+
task.isFallback
|
|
4435
|
+
)),
|
|
4436
|
+
pushComponentStack(keyPath),
|
|
4437
|
+
request.pingedTasks.push(keyPath))
|
|
4438
|
+
: renderNode(request, task, ref, -1);
|
|
4439
|
+
task.formatContext = defaultProps;
|
|
4440
|
+
task.keyPath = initialState;
|
|
4116
4441
|
a: {
|
|
4117
|
-
|
|
4442
|
+
task = newProps.chunks;
|
|
4118
4443
|
request = request.resumableState;
|
|
4119
4444
|
switch (type) {
|
|
4120
4445
|
case "title":
|
|
@@ -4137,26 +4462,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4137
4462
|
case "wbr":
|
|
4138
4463
|
break a;
|
|
4139
4464
|
case "body":
|
|
4140
|
-
if (1 >=
|
|
4465
|
+
if (1 >= defaultProps.insertionMode) {
|
|
4141
4466
|
request.hasBody = !0;
|
|
4142
4467
|
break a;
|
|
4143
4468
|
}
|
|
4144
4469
|
break;
|
|
4145
4470
|
case "html":
|
|
4146
|
-
if (0 ===
|
|
4471
|
+
if (0 === defaultProps.insertionMode) {
|
|
4147
4472
|
request.hasHtml = !0;
|
|
4148
4473
|
break a;
|
|
4149
4474
|
}
|
|
4475
|
+
break;
|
|
4476
|
+
case "head":
|
|
4477
|
+
if (1 >= defaultProps.insertionMode) break a;
|
|
4150
4478
|
}
|
|
4151
|
-
|
|
4479
|
+
task.push(endChunkForTag(type));
|
|
4152
4480
|
}
|
|
4153
|
-
|
|
4481
|
+
newProps.lastPushedText = !1;
|
|
4154
4482
|
}
|
|
4155
|
-
|
|
4156
|
-
} else {
|
|
4483
|
+
else {
|
|
4157
4484
|
switch (type) {
|
|
4158
4485
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
4159
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
4160
4486
|
case REACT_STRICT_MODE_TYPE:
|
|
4161
4487
|
case REACT_PROFILER_TYPE:
|
|
4162
4488
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -4165,7 +4491,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4165
4491
|
renderNodeDestructive(request, task, props.children, -1);
|
|
4166
4492
|
task.keyPath = type;
|
|
4167
4493
|
return;
|
|
4168
|
-
case
|
|
4494
|
+
case REACT_ACTIVITY_TYPE:
|
|
4169
4495
|
"hidden" !== props.mode &&
|
|
4170
4496
|
((type = task.keyPath),
|
|
4171
4497
|
(task.keyPath = keyPath),
|
|
@@ -4173,14 +4499,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4173
4499
|
(task.keyPath = type));
|
|
4174
4500
|
return;
|
|
4175
4501
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
4176
|
-
type = task.
|
|
4177
|
-
task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
|
|
4178
|
-
JSCompiler_inline_result = task.keyPath;
|
|
4502
|
+
type = task.keyPath;
|
|
4179
4503
|
task.keyPath = keyPath;
|
|
4180
4504
|
renderNodeDestructive(request, task, props.children, -1);
|
|
4181
|
-
task.keyPath =
|
|
4182
|
-
task.componentStack = type;
|
|
4505
|
+
task.keyPath = type;
|
|
4183
4506
|
return;
|
|
4507
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
4184
4508
|
case REACT_SCOPE_TYPE:
|
|
4185
4509
|
throw Error(formatProdErrorMessage(343));
|
|
4186
4510
|
case REACT_SUSPENSE_TYPE:
|
|
@@ -4194,31 +4518,35 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4194
4518
|
task.keyPath = type;
|
|
4195
4519
|
}
|
|
4196
4520
|
} else {
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
var
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4521
|
+
type = task.keyPath;
|
|
4522
|
+
var parentBoundary = task.blockedBoundary;
|
|
4523
|
+
ref = task.blockedPreamble;
|
|
4524
|
+
var parentHoistableState = task.hoistableState;
|
|
4525
|
+
propName$33 = task.blockedSegment;
|
|
4526
|
+
propName = props.fallback;
|
|
4527
|
+
props = props.children;
|
|
4528
|
+
var fallbackAbortSet = new Set();
|
|
4529
|
+
var newBoundary =
|
|
4530
|
+
2 > task.formatContext.insertionMode
|
|
4531
|
+
? createSuspenseBoundary(
|
|
4532
|
+
request,
|
|
4533
|
+
fallbackAbortSet,
|
|
4534
|
+
createPreambleState(),
|
|
4535
|
+
createPreambleState()
|
|
4536
|
+
)
|
|
4537
|
+
: createSuspenseBoundary(request, fallbackAbortSet, null, null);
|
|
4210
4538
|
null !== request.trackedPostpones &&
|
|
4211
|
-
(
|
|
4212
|
-
|
|
4539
|
+
(newBoundary.trackedContentKeyPath = keyPath);
|
|
4540
|
+
var boundarySegment = createPendingSegment(
|
|
4213
4541
|
request,
|
|
4214
|
-
|
|
4215
|
-
|
|
4542
|
+
propName$33.chunks.length,
|
|
4543
|
+
newBoundary,
|
|
4216
4544
|
task.formatContext,
|
|
4217
4545
|
!1,
|
|
4218
4546
|
!1
|
|
4219
4547
|
);
|
|
4220
|
-
|
|
4221
|
-
|
|
4548
|
+
propName$33.children.push(boundarySegment);
|
|
4549
|
+
propName$33.lastPushedText = !1;
|
|
4222
4550
|
var contentRootSegment = createPendingSegment(
|
|
4223
4551
|
request,
|
|
4224
4552
|
0,
|
|
@@ -4228,107 +4556,132 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4228
4556
|
!1
|
|
4229
4557
|
);
|
|
4230
4558
|
contentRootSegment.parentFlushed = !0;
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
(
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4559
|
+
if (null !== request.trackedPostpones) {
|
|
4560
|
+
newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
4561
|
+
defaultProps = [newProps[1], newProps[2], [], null];
|
|
4562
|
+
request.trackedPostpones.workingMap.set(newProps, defaultProps);
|
|
4563
|
+
newBoundary.trackedFallbackNode = defaultProps;
|
|
4564
|
+
task.blockedSegment = boundarySegment;
|
|
4565
|
+
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
4566
|
+
task.keyPath = newProps;
|
|
4567
|
+
boundarySegment.status = 6;
|
|
4568
|
+
try {
|
|
4569
|
+
renderNode(request, task, propName, -1),
|
|
4570
|
+
boundarySegment.lastPushedText &&
|
|
4571
|
+
boundarySegment.textEmbedded &&
|
|
4572
|
+
boundarySegment.chunks.push(textSeparator),
|
|
4573
|
+
(boundarySegment.status = 1);
|
|
4574
|
+
} catch (thrownValue) {
|
|
4575
|
+
throw (
|
|
4576
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
|
4577
|
+
thrownValue)
|
|
4578
|
+
);
|
|
4579
|
+
} finally {
|
|
4580
|
+
(task.blockedSegment = propName$33),
|
|
4581
|
+
(task.blockedPreamble = ref),
|
|
4582
|
+
(task.keyPath = type);
|
|
4248
4583
|
}
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4584
|
+
task = createRenderTask(
|
|
4585
|
+
request,
|
|
4586
|
+
null,
|
|
4587
|
+
props,
|
|
4588
|
+
-1,
|
|
4589
|
+
newBoundary,
|
|
4590
|
+
contentRootSegment,
|
|
4591
|
+
newBoundary.contentPreamble,
|
|
4592
|
+
newBoundary.contentState,
|
|
4593
|
+
task.abortSet,
|
|
4594
|
+
keyPath,
|
|
4595
|
+
task.formatContext,
|
|
4596
|
+
task.context,
|
|
4597
|
+
task.treeContext,
|
|
4598
|
+
task.componentStack,
|
|
4599
|
+
task.isFallback
|
|
4600
|
+
);
|
|
4601
|
+
pushComponentStack(task);
|
|
4602
|
+
request.pingedTasks.push(task);
|
|
4603
|
+
} else {
|
|
4604
|
+
task.blockedBoundary = newBoundary;
|
|
4605
|
+
task.blockedPreamble = newBoundary.contentPreamble;
|
|
4606
|
+
task.hoistableState = newBoundary.contentState;
|
|
4607
|
+
task.blockedSegment = contentRootSegment;
|
|
4608
|
+
task.keyPath = keyPath;
|
|
4609
|
+
contentRootSegment.status = 6;
|
|
4610
|
+
try {
|
|
4611
|
+
if (
|
|
4612
|
+
(renderNode(request, task, props, -1),
|
|
4613
|
+
contentRootSegment.lastPushedText &&
|
|
4614
|
+
contentRootSegment.textEmbedded &&
|
|
4615
|
+
contentRootSegment.chunks.push(textSeparator),
|
|
4616
|
+
(contentRootSegment.status = 1),
|
|
4617
|
+
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
4618
|
+
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
|
4619
|
+
) {
|
|
4620
|
+
newBoundary.status = 1;
|
|
4621
|
+
0 === request.pendingRootTasks &&
|
|
4622
|
+
task.blockedPreamble &&
|
|
4623
|
+
preparePreamble(request);
|
|
4624
|
+
break a;
|
|
4625
|
+
}
|
|
4626
|
+
} catch (thrownValue$28) {
|
|
4627
|
+
(newBoundary.status = 4),
|
|
4628
|
+
12 === request.status
|
|
4629
|
+
? ((contentRootSegment.status = 3),
|
|
4630
|
+
(newProps = request.fatalError))
|
|
4631
|
+
: ((contentRootSegment.status = 4),
|
|
4632
|
+
(newProps = thrownValue$28)),
|
|
4633
|
+
(defaultProps = getThrownInfo(task.componentStack)),
|
|
4634
|
+
(initialState = logRecoverableError(
|
|
4635
|
+
request,
|
|
4636
|
+
newProps,
|
|
4637
|
+
defaultProps
|
|
4638
|
+
)),
|
|
4639
|
+
(newBoundary.errorDigest = initialState),
|
|
4640
|
+
untrackBoundary(request, newBoundary);
|
|
4641
|
+
} finally {
|
|
4642
|
+
(task.blockedBoundary = parentBoundary),
|
|
4643
|
+
(task.blockedPreamble = ref),
|
|
4644
|
+
(task.hoistableState = parentHoistableState),
|
|
4645
|
+
(task.blockedSegment = propName$33),
|
|
4646
|
+
(task.keyPath = type);
|
|
4647
|
+
}
|
|
4648
|
+
task = createRenderTask(
|
|
4649
|
+
request,
|
|
4650
|
+
null,
|
|
4651
|
+
propName,
|
|
4652
|
+
-1,
|
|
4653
|
+
parentBoundary,
|
|
4654
|
+
boundarySegment,
|
|
4655
|
+
newBoundary.fallbackPreamble,
|
|
4656
|
+
newBoundary.fallbackState,
|
|
4657
|
+
fallbackAbortSet,
|
|
4658
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
4659
|
+
task.formatContext,
|
|
4660
|
+
task.context,
|
|
4661
|
+
task.treeContext,
|
|
4662
|
+
task.componentStack,
|
|
4663
|
+
!0
|
|
4664
|
+
);
|
|
4665
|
+
pushComponentStack(task);
|
|
4666
|
+
request.pingedTasks.push(task);
|
|
4269
4667
|
}
|
|
4270
|
-
JSCompiler_inline_result = [
|
|
4271
|
-
keyPath[0],
|
|
4272
|
-
"Suspense Fallback",
|
|
4273
|
-
keyPath[2]
|
|
4274
|
-
];
|
|
4275
|
-
defaultProps = request.trackedPostpones;
|
|
4276
|
-
null !== defaultProps &&
|
|
4277
|
-
((previousComponentStack = [
|
|
4278
|
-
JSCompiler_inline_result[1],
|
|
4279
|
-
JSCompiler_inline_result[2],
|
|
4280
|
-
[],
|
|
4281
|
-
null
|
|
4282
|
-
]),
|
|
4283
|
-
defaultProps.workingMap.set(
|
|
4284
|
-
JSCompiler_inline_result,
|
|
4285
|
-
previousComponentStack
|
|
4286
|
-
),
|
|
4287
|
-
5 === contextType.status
|
|
4288
|
-
? (defaultProps.workingMap.get(keyPath)[4] =
|
|
4289
|
-
previousComponentStack)
|
|
4290
|
-
: (contextType.trackedFallbackNode = previousComponentStack));
|
|
4291
|
-
task = createRenderTask(
|
|
4292
|
-
request,
|
|
4293
|
-
null,
|
|
4294
|
-
propName$31,
|
|
4295
|
-
-1,
|
|
4296
|
-
ref,
|
|
4297
|
-
propName,
|
|
4298
|
-
contextType.fallbackState,
|
|
4299
|
-
props,
|
|
4300
|
-
JSCompiler_inline_result,
|
|
4301
|
-
task.formatContext,
|
|
4302
|
-
task.legacyContext,
|
|
4303
|
-
task.context,
|
|
4304
|
-
task.treeContext,
|
|
4305
|
-
type,
|
|
4306
|
-
!0
|
|
4307
|
-
);
|
|
4308
|
-
request.pingedTasks.push(task);
|
|
4309
4668
|
}
|
|
4310
4669
|
return;
|
|
4311
4670
|
}
|
|
4312
4671
|
if ("object" === typeof type && null !== type)
|
|
4313
4672
|
switch (type.$$typeof) {
|
|
4314
4673
|
case REACT_FORWARD_REF_TYPE:
|
|
4315
|
-
JSCompiler_inline_result = task.componentStack;
|
|
4316
|
-
task.componentStack = {
|
|
4317
|
-
tag: 1,
|
|
4318
|
-
parent: task.componentStack,
|
|
4319
|
-
type: type.render
|
|
4320
|
-
};
|
|
4321
4674
|
if ("ref" in props)
|
|
4322
|
-
for (
|
|
4323
|
-
"ref" !==
|
|
4324
|
-
(
|
|
4325
|
-
else
|
|
4675
|
+
for (newBoundary in ((newProps = {}), props))
|
|
4676
|
+
"ref" !== newBoundary &&
|
|
4677
|
+
(newProps[newBoundary] = props[newBoundary]);
|
|
4678
|
+
else newProps = props;
|
|
4326
4679
|
type = renderWithHooks(
|
|
4327
4680
|
request,
|
|
4328
4681
|
task,
|
|
4329
4682
|
keyPath,
|
|
4330
4683
|
type.render,
|
|
4331
|
-
|
|
4684
|
+
newProps,
|
|
4332
4685
|
ref
|
|
4333
4686
|
);
|
|
4334
4687
|
finishFunctionComponent(
|
|
@@ -4340,7 +4693,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4340
4693
|
actionStateCounter,
|
|
4341
4694
|
actionStateMatchingIndex
|
|
4342
4695
|
);
|
|
4343
|
-
task.componentStack = JSCompiler_inline_result;
|
|
4344
4696
|
return;
|
|
4345
4697
|
case REACT_MEMO_TYPE:
|
|
4346
4698
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
@@ -4348,16 +4700,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4348
4700
|
case REACT_PROVIDER_TYPE:
|
|
4349
4701
|
case REACT_CONTEXT_TYPE:
|
|
4350
4702
|
defaultProps = props.children;
|
|
4351
|
-
|
|
4703
|
+
newProps = task.keyPath;
|
|
4352
4704
|
props = props.value;
|
|
4353
|
-
|
|
4705
|
+
initialState = type._currentValue;
|
|
4354
4706
|
type._currentValue = props;
|
|
4355
|
-
|
|
4707
|
+
ref = currentActiveSnapshot;
|
|
4356
4708
|
currentActiveSnapshot = type = {
|
|
4357
|
-
parent:
|
|
4358
|
-
depth: null ===
|
|
4709
|
+
parent: ref,
|
|
4710
|
+
depth: null === ref ? 0 : ref.depth + 1,
|
|
4359
4711
|
context: type,
|
|
4360
|
-
parentValue:
|
|
4712
|
+
parentValue: initialState,
|
|
4361
4713
|
value: props
|
|
4362
4714
|
};
|
|
4363
4715
|
task.context = type;
|
|
@@ -4368,7 +4720,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4368
4720
|
request.context._currentValue = request.parentValue;
|
|
4369
4721
|
request = currentActiveSnapshot = request.parent;
|
|
4370
4722
|
task.context = request;
|
|
4371
|
-
task.keyPath =
|
|
4723
|
+
task.keyPath = newProps;
|
|
4372
4724
|
return;
|
|
4373
4725
|
case REACT_CONSUMER_TYPE:
|
|
4374
4726
|
props = props.children;
|
|
@@ -4379,12 +4731,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4379
4731
|
task.keyPath = props;
|
|
4380
4732
|
return;
|
|
4381
4733
|
case REACT_LAZY_TYPE:
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
type
|
|
4386
|
-
renderElement(request, task, keyPath, type, props, void 0);
|
|
4387
|
-
task.componentStack = JSCompiler_inline_result;
|
|
4734
|
+
newProps = type._init;
|
|
4735
|
+
type = newProps(type._payload);
|
|
4736
|
+
if (12 === request.status) throw null;
|
|
4737
|
+
renderElement(request, task, keyPath, type, props, ref);
|
|
4388
4738
|
return;
|
|
4389
4739
|
}
|
|
4390
4740
|
throw Error(
|
|
@@ -4419,23 +4769,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
|
4419
4769
|
(task.replay = prevReplay), (task.blockedSegment = null);
|
|
4420
4770
|
}
|
|
4421
4771
|
}
|
|
4422
|
-
function renderNodeDestructive(request, task, node
|
|
4423
|
-
|
|
4424
|
-
resumeNode(request, task, task.replay.slots, node
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4772
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
|
4773
|
+
null !== task.replay && "number" === typeof task.replay.slots
|
|
4774
|
+
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
4775
|
+
: ((task.node = node),
|
|
4776
|
+
(task.childIndex = childIndex),
|
|
4777
|
+
(node = task.componentStack),
|
|
4778
|
+
pushComponentStack(task),
|
|
4779
|
+
retryNode(request, task),
|
|
4780
|
+
(task.componentStack = node));
|
|
4781
|
+
}
|
|
4782
|
+
function retryNode(request, task) {
|
|
4783
|
+
var node = task.node,
|
|
4784
|
+
childIndex = task.childIndex;
|
|
4785
|
+
if (null !== node) {
|
|
4786
|
+
if ("object" === typeof node) {
|
|
4787
|
+
switch (node.$$typeof) {
|
|
4432
4788
|
case REACT_ELEMENT_TYPE:
|
|
4433
|
-
var type = node
|
|
4434
|
-
key = node
|
|
4435
|
-
props = node
|
|
4436
|
-
node
|
|
4437
|
-
var ref = void 0 !== node
|
|
4438
|
-
|
|
4789
|
+
var type = node.type,
|
|
4790
|
+
key = node.key,
|
|
4791
|
+
props = node.props;
|
|
4792
|
+
node = props.ref;
|
|
4793
|
+
var ref = void 0 !== node ? node : null,
|
|
4794
|
+
name = getComponentNameFromType(type),
|
|
4439
4795
|
keyOrIndex =
|
|
4440
4796
|
null == key ? (-1 === childIndex ? 0 : childIndex) : key;
|
|
4441
4797
|
key = [task.keyPath, name, keyOrIndex];
|
|
@@ -4443,18 +4799,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4443
4799
|
a: {
|
|
4444
4800
|
var replay = task.replay;
|
|
4445
4801
|
childIndex = replay.nodes;
|
|
4446
|
-
for (
|
|
4447
|
-
node$jscomp$0 =
|
|
4448
|
-
node$jscomp$0
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
var childNodes = node[2];
|
|
4457
|
-
name = node[3];
|
|
4802
|
+
for (node = 0; node < childIndex.length; node++) {
|
|
4803
|
+
var node$jscomp$0 = childIndex[node];
|
|
4804
|
+
if (keyOrIndex === node$jscomp$0[1]) {
|
|
4805
|
+
if (4 === node$jscomp$0.length) {
|
|
4806
|
+
if (null !== name && name !== node$jscomp$0[0])
|
|
4807
|
+
throw Error(
|
|
4808
|
+
formatProdErrorMessage(490, node$jscomp$0[0], name)
|
|
4809
|
+
);
|
|
4810
|
+
var childNodes = node$jscomp$0[2];
|
|
4811
|
+
name = node$jscomp$0[3];
|
|
4458
4812
|
keyOrIndex = task.node;
|
|
4459
4813
|
task.replay = {
|
|
4460
4814
|
nodes: childNodes,
|
|
@@ -4481,14 +4835,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4481
4835
|
x)
|
|
4482
4836
|
);
|
|
4483
4837
|
task.replay.pendingTasks--;
|
|
4484
|
-
props = getThrownInfo(
|
|
4485
|
-
key =
|
|
4486
|
-
request = task.blockedBoundary;
|
|
4838
|
+
props = getThrownInfo(task.componentStack);
|
|
4839
|
+
key = task.blockedBoundary;
|
|
4487
4840
|
type = x;
|
|
4488
|
-
props = logRecoverableError(
|
|
4841
|
+
props = logRecoverableError(request, type, props);
|
|
4489
4842
|
abortRemainingReplayNodes(
|
|
4490
|
-
key,
|
|
4491
4843
|
request,
|
|
4844
|
+
key,
|
|
4492
4845
|
childNodes,
|
|
4493
4846
|
name,
|
|
4494
4847
|
type,
|
|
@@ -4507,29 +4860,39 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4507
4860
|
);
|
|
4508
4861
|
b: {
|
|
4509
4862
|
replay = void 0;
|
|
4510
|
-
type = node[5];
|
|
4511
|
-
ref = node[2];
|
|
4512
|
-
name = node[3];
|
|
4513
|
-
keyOrIndex =
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
prevKeyPath = task.keyPath,
|
|
4863
|
+
type = node$jscomp$0[5];
|
|
4864
|
+
ref = node$jscomp$0[2];
|
|
4865
|
+
name = node$jscomp$0[3];
|
|
4866
|
+
keyOrIndex =
|
|
4867
|
+
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
|
4868
|
+
node$jscomp$0 =
|
|
4869
|
+
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
4870
|
+
var prevKeyPath = task.keyPath,
|
|
4519
4871
|
previousReplaySet = task.replay,
|
|
4520
4872
|
parentBoundary = task.blockedBoundary,
|
|
4521
4873
|
parentHoistableState = task.hoistableState,
|
|
4522
|
-
content = props.children
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4874
|
+
content = props.children,
|
|
4875
|
+
fallback = props.fallback,
|
|
4876
|
+
fallbackAbortSet = new Set();
|
|
4877
|
+
props =
|
|
4878
|
+
2 > task.formatContext.insertionMode
|
|
4879
|
+
? createSuspenseBoundary(
|
|
4880
|
+
request,
|
|
4881
|
+
fallbackAbortSet,
|
|
4882
|
+
createPreambleState(),
|
|
4883
|
+
createPreambleState()
|
|
4884
|
+
)
|
|
4885
|
+
: createSuspenseBoundary(
|
|
4886
|
+
request,
|
|
4887
|
+
fallbackAbortSet,
|
|
4888
|
+
null,
|
|
4889
|
+
null
|
|
4890
|
+
);
|
|
4891
|
+
props.parentFlushed = !0;
|
|
4892
|
+
props.rootSegmentID = type;
|
|
4893
|
+
task.blockedBoundary = props;
|
|
4894
|
+
task.hoistableState = props.contentState;
|
|
4895
|
+
task.keyPath = key;
|
|
4533
4896
|
task.replay = {
|
|
4534
4897
|
nodes: ref,
|
|
4535
4898
|
slots: name,
|
|
@@ -4543,58 +4906,53 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4543
4906
|
)
|
|
4544
4907
|
throw Error(formatProdErrorMessage(488));
|
|
4545
4908
|
task.replay.pendingTasks--;
|
|
4546
|
-
if (
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
) {
|
|
4550
|
-
resumedBoundary.status = 1;
|
|
4551
|
-
request.completedBoundaries.push(resumedBoundary);
|
|
4909
|
+
if (0 === props.pendingTasks && 0 === props.status) {
|
|
4910
|
+
props.status = 1;
|
|
4911
|
+
request.completedBoundaries.push(props);
|
|
4552
4912
|
break b;
|
|
4553
4913
|
}
|
|
4554
4914
|
} catch (error) {
|
|
4555
|
-
(
|
|
4556
|
-
(childNodes = getThrownInfo(
|
|
4557
|
-
request,
|
|
4558
|
-
task.componentStack
|
|
4559
|
-
)),
|
|
4915
|
+
(props.status = 4),
|
|
4916
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
|
4560
4917
|
(replay = logRecoverableError(
|
|
4561
4918
|
request,
|
|
4562
4919
|
error,
|
|
4563
4920
|
childNodes
|
|
4564
4921
|
)),
|
|
4565
|
-
(
|
|
4922
|
+
(props.errorDigest = replay),
|
|
4566
4923
|
task.replay.pendingTasks--,
|
|
4567
|
-
request.clientRenderedBoundaries.push(
|
|
4568
|
-
resumedBoundary
|
|
4569
|
-
);
|
|
4924
|
+
request.clientRenderedBoundaries.push(props);
|
|
4570
4925
|
} finally {
|
|
4571
4926
|
(task.blockedBoundary = parentBoundary),
|
|
4572
4927
|
(task.hoistableState = parentHoistableState),
|
|
4573
4928
|
(task.replay = previousReplaySet),
|
|
4574
|
-
(task.keyPath = prevKeyPath)
|
|
4575
|
-
(task.componentStack = previousComponentStack);
|
|
4929
|
+
(task.keyPath = prevKeyPath);
|
|
4576
4930
|
}
|
|
4577
4931
|
task = createReplayTask(
|
|
4578
4932
|
request,
|
|
4579
4933
|
null,
|
|
4580
|
-
{
|
|
4581
|
-
|
|
4934
|
+
{
|
|
4935
|
+
nodes: keyOrIndex,
|
|
4936
|
+
slots: node$jscomp$0,
|
|
4937
|
+
pendingTasks: 0
|
|
4938
|
+
},
|
|
4939
|
+
fallback,
|
|
4582
4940
|
-1,
|
|
4583
4941
|
parentBoundary,
|
|
4584
|
-
|
|
4942
|
+
props.fallbackState,
|
|
4585
4943
|
fallbackAbortSet,
|
|
4586
4944
|
[key[0], "Suspense Fallback", key[2]],
|
|
4587
4945
|
task.formatContext,
|
|
4588
|
-
task.legacyContext,
|
|
4589
4946
|
task.context,
|
|
4590
4947
|
task.treeContext,
|
|
4591
|
-
|
|
4948
|
+
task.componentStack,
|
|
4592
4949
|
!0
|
|
4593
4950
|
);
|
|
4951
|
+
pushComponentStack(task);
|
|
4594
4952
|
request.pingedTasks.push(task);
|
|
4595
4953
|
}
|
|
4596
4954
|
}
|
|
4597
|
-
childIndex.splice(node
|
|
4955
|
+
childIndex.splice(node, 1);
|
|
4598
4956
|
break a;
|
|
4599
4957
|
}
|
|
4600
4958
|
}
|
|
@@ -4604,81 +4962,69 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4604
4962
|
case REACT_PORTAL_TYPE:
|
|
4605
4963
|
throw Error(formatProdErrorMessage(257));
|
|
4606
4964
|
case REACT_LAZY_TYPE:
|
|
4607
|
-
childNodes =
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
task.componentStack = childNodes;
|
|
4612
|
-
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
|
4965
|
+
childNodes = node._init;
|
|
4966
|
+
node = childNodes(node._payload);
|
|
4967
|
+
if (12 === request.status) throw null;
|
|
4968
|
+
renderNodeDestructive(request, task, node, childIndex);
|
|
4613
4969
|
return;
|
|
4614
4970
|
}
|
|
4615
|
-
if (isArrayImpl(node
|
|
4616
|
-
renderChildrenArray(request, task, node
|
|
4971
|
+
if (isArrayImpl(node)) {
|
|
4972
|
+
renderChildrenArray(request, task, node, childIndex);
|
|
4617
4973
|
return;
|
|
4618
4974
|
}
|
|
4619
|
-
null === node
|
|
4975
|
+
null === node || "object" !== typeof node
|
|
4620
4976
|
? (childNodes = null)
|
|
4621
4977
|
: ((childNodes =
|
|
4622
|
-
(MAYBE_ITERATOR_SYMBOL && node
|
|
4623
|
-
node
|
|
4978
|
+
(MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
|
|
4979
|
+
node["@@iterator"]),
|
|
4624
4980
|
(childNodes = "function" === typeof childNodes ? childNodes : null));
|
|
4625
|
-
if (childNodes && (childNodes = childNodes.call(node
|
|
4626
|
-
node
|
|
4627
|
-
if (!node
|
|
4981
|
+
if (childNodes && (childNodes = childNodes.call(node))) {
|
|
4982
|
+
node = childNodes.next();
|
|
4983
|
+
if (!node.done) {
|
|
4628
4984
|
props = [];
|
|
4629
|
-
do
|
|
4630
|
-
|
|
4631
|
-
(node$jscomp$0 = childNodes.next());
|
|
4632
|
-
while (!node$jscomp$0.done);
|
|
4985
|
+
do props.push(node.value), (node = childNodes.next());
|
|
4986
|
+
while (!node.done);
|
|
4633
4987
|
renderChildrenArray(request, task, props, childIndex);
|
|
4634
4988
|
}
|
|
4635
4989
|
return;
|
|
4636
4990
|
}
|
|
4637
|
-
if ("function" === typeof node
|
|
4991
|
+
if ("function" === typeof node.then)
|
|
4638
4992
|
return (
|
|
4639
4993
|
(task.thenableState = null),
|
|
4640
|
-
renderNodeDestructive(
|
|
4641
|
-
request,
|
|
4642
|
-
task,
|
|
4643
|
-
unwrapThenable(node$jscomp$0),
|
|
4644
|
-
childIndex
|
|
4645
|
-
)
|
|
4994
|
+
renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
|
|
4646
4995
|
);
|
|
4647
|
-
if (node
|
|
4996
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE)
|
|
4648
4997
|
return renderNodeDestructive(
|
|
4649
4998
|
request,
|
|
4650
4999
|
task,
|
|
4651
|
-
node
|
|
5000
|
+
node._currentValue,
|
|
4652
5001
|
childIndex
|
|
4653
5002
|
);
|
|
4654
|
-
childIndex = Object.prototype.toString.call(node
|
|
5003
|
+
childIndex = Object.prototype.toString.call(node);
|
|
4655
5004
|
throw Error(
|
|
4656
5005
|
formatProdErrorMessage(
|
|
4657
5006
|
31,
|
|
4658
5007
|
"[object Object]" === childIndex
|
|
4659
|
-
? "object with keys {" + Object.keys(node
|
|
5008
|
+
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
|
4660
5009
|
: childIndex
|
|
4661
5010
|
)
|
|
4662
5011
|
);
|
|
4663
5012
|
}
|
|
4664
|
-
if ("string" === typeof node
|
|
5013
|
+
if ("string" === typeof node)
|
|
4665
5014
|
(childIndex = task.blockedSegment),
|
|
4666
5015
|
null !== childIndex &&
|
|
4667
5016
|
(childIndex.lastPushedText = pushTextInstance(
|
|
4668
5017
|
childIndex.chunks,
|
|
4669
|
-
node
|
|
5018
|
+
node,
|
|
4670
5019
|
request.renderState,
|
|
4671
5020
|
childIndex.lastPushedText
|
|
4672
5021
|
));
|
|
4673
|
-
else if (
|
|
4674
|
-
"number" === typeof node$jscomp$0 ||
|
|
4675
|
-
"bigint" === typeof node$jscomp$0
|
|
4676
|
-
)
|
|
5022
|
+
else if ("number" === typeof node || "bigint" === typeof node)
|
|
4677
5023
|
(childIndex = task.blockedSegment),
|
|
4678
5024
|
null !== childIndex &&
|
|
4679
5025
|
(childIndex.lastPushedText = pushTextInstance(
|
|
4680
5026
|
childIndex.chunks,
|
|
4681
|
-
"" + node
|
|
5027
|
+
"" + node,
|
|
4682
5028
|
request.renderState,
|
|
4683
5029
|
childIndex.lastPushedText
|
|
4684
5030
|
));
|
|
@@ -4714,7 +5060,7 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
4714
5060
|
)
|
|
4715
5061
|
throw x;
|
|
4716
5062
|
task.replay.pendingTasks--;
|
|
4717
|
-
children = getThrownInfo(
|
|
5063
|
+
children = getThrownInfo(task.componentStack);
|
|
4718
5064
|
var boundary = task.blockedBoundary,
|
|
4719
5065
|
error = x;
|
|
4720
5066
|
children = logRecoverableError(request, error, children);
|
|
@@ -4769,9 +5115,56 @@ function untrackBoundary(request, boundary) {
|
|
|
4769
5115
|
void 0 !== boundary &&
|
|
4770
5116
|
((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
|
|
4771
5117
|
}
|
|
5118
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
5119
|
+
return createReplayTask(
|
|
5120
|
+
request,
|
|
5121
|
+
thenableState,
|
|
5122
|
+
task.replay,
|
|
5123
|
+
task.node,
|
|
5124
|
+
task.childIndex,
|
|
5125
|
+
task.blockedBoundary,
|
|
5126
|
+
task.hoistableState,
|
|
5127
|
+
task.abortSet,
|
|
5128
|
+
task.keyPath,
|
|
5129
|
+
task.formatContext,
|
|
5130
|
+
task.context,
|
|
5131
|
+
task.treeContext,
|
|
5132
|
+
task.componentStack,
|
|
5133
|
+
task.isFallback
|
|
5134
|
+
);
|
|
5135
|
+
}
|
|
5136
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
5137
|
+
var segment = task.blockedSegment,
|
|
5138
|
+
newSegment = createPendingSegment(
|
|
5139
|
+
request,
|
|
5140
|
+
segment.chunks.length,
|
|
5141
|
+
null,
|
|
5142
|
+
task.formatContext,
|
|
5143
|
+
segment.lastPushedText,
|
|
5144
|
+
!0
|
|
5145
|
+
);
|
|
5146
|
+
segment.children.push(newSegment);
|
|
5147
|
+
segment.lastPushedText = !1;
|
|
5148
|
+
return createRenderTask(
|
|
5149
|
+
request,
|
|
5150
|
+
thenableState,
|
|
5151
|
+
task.node,
|
|
5152
|
+
task.childIndex,
|
|
5153
|
+
task.blockedBoundary,
|
|
5154
|
+
newSegment,
|
|
5155
|
+
task.blockedPreamble,
|
|
5156
|
+
task.hoistableState,
|
|
5157
|
+
task.abortSet,
|
|
5158
|
+
task.keyPath,
|
|
5159
|
+
task.formatContext,
|
|
5160
|
+
task.context,
|
|
5161
|
+
task.treeContext,
|
|
5162
|
+
task.componentStack,
|
|
5163
|
+
task.isFallback
|
|
5164
|
+
);
|
|
5165
|
+
}
|
|
4772
5166
|
function renderNode(request, task, node, childIndex) {
|
|
4773
5167
|
var previousFormatContext = task.formatContext,
|
|
4774
|
-
previousLegacyContext = task.legacyContext,
|
|
4775
5168
|
previousContext = task.context,
|
|
4776
5169
|
previousKeyPath = task.keyPath,
|
|
4777
5170
|
previousTreeContext = task.treeContext,
|
|
@@ -4787,37 +5180,32 @@ function renderNode(request, task, node, childIndex) {
|
|
|
4787
5180
|
thrownValue === SuspenseException
|
|
4788
5181
|
? getSuspendedThenable()
|
|
4789
5182
|
: thrownValue),
|
|
4790
|
-
"object" === typeof node &&
|
|
4791
|
-
null !== node &&
|
|
4792
|
-
"function" === typeof node.then)
|
|
5183
|
+
"object" === typeof node && null !== node)
|
|
4793
5184
|
) {
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
request,
|
|
4797
|
-
|
|
4798
|
-
task.
|
|
4799
|
-
task.
|
|
4800
|
-
task.
|
|
4801
|
-
task.
|
|
4802
|
-
task.
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
task
|
|
4809
|
-
|
|
4810
|
-
task.
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
task.componentStack = previousComponentStack;
|
|
4819
|
-
switchContext(previousContext);
|
|
4820
|
-
return;
|
|
5185
|
+
if ("function" === typeof node.then) {
|
|
5186
|
+
childIndex = getThenableStateAfterSuspending();
|
|
5187
|
+
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
5188
|
+
node.then(request, request);
|
|
5189
|
+
task.formatContext = previousFormatContext;
|
|
5190
|
+
task.context = previousContext;
|
|
5191
|
+
task.keyPath = previousKeyPath;
|
|
5192
|
+
task.treeContext = previousTreeContext;
|
|
5193
|
+
task.componentStack = previousComponentStack;
|
|
5194
|
+
switchContext(previousContext);
|
|
5195
|
+
return;
|
|
5196
|
+
}
|
|
5197
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
5198
|
+
node = getThenableStateAfterSuspending();
|
|
5199
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
5200
|
+
request.pingedTasks.push(node);
|
|
5201
|
+
task.formatContext = previousFormatContext;
|
|
5202
|
+
task.context = previousContext;
|
|
5203
|
+
task.keyPath = previousKeyPath;
|
|
5204
|
+
task.treeContext = previousTreeContext;
|
|
5205
|
+
task.componentStack = previousComponentStack;
|
|
5206
|
+
switchContext(previousContext);
|
|
5207
|
+
return;
|
|
5208
|
+
}
|
|
4821
5209
|
}
|
|
4822
5210
|
}
|
|
4823
5211
|
else {
|
|
@@ -4825,62 +5213,45 @@ function renderNode(request, task, node, childIndex) {
|
|
|
4825
5213
|
chunkLength = segment.chunks.length;
|
|
4826
5214
|
try {
|
|
4827
5215
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
4828
|
-
} catch (thrownValue$
|
|
5216
|
+
} catch (thrownValue$48) {
|
|
4829
5217
|
if (
|
|
4830
5218
|
(resetHooksState(),
|
|
4831
5219
|
(segment.children.length = childrenLength),
|
|
4832
5220
|
(segment.chunks.length = chunkLength),
|
|
4833
5221
|
(node =
|
|
4834
|
-
thrownValue$
|
|
5222
|
+
thrownValue$48 === SuspenseException
|
|
4835
5223
|
? getSuspendedThenable()
|
|
4836
|
-
: thrownValue$
|
|
4837
|
-
"object" === typeof node &&
|
|
4838
|
-
null !== node &&
|
|
4839
|
-
"function" === typeof node.then)
|
|
5224
|
+
: thrownValue$48),
|
|
5225
|
+
"object" === typeof node && null !== node)
|
|
4840
5226
|
) {
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
request,
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
task.
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
task.
|
|
4858
|
-
task.
|
|
4859
|
-
|
|
4860
|
-
task.
|
|
4861
|
-
task.
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
task.context,
|
|
4866
|
-
task.treeContext,
|
|
4867
|
-
null !== task.componentStack ? task.componentStack.parent : null,
|
|
4868
|
-
task.isFallback
|
|
4869
|
-
).ping;
|
|
4870
|
-
node.then(request, request);
|
|
4871
|
-
task.formatContext = previousFormatContext;
|
|
4872
|
-
task.legacyContext = previousLegacyContext;
|
|
4873
|
-
task.context = previousContext;
|
|
4874
|
-
task.keyPath = previousKeyPath;
|
|
4875
|
-
task.treeContext = previousTreeContext;
|
|
4876
|
-
task.componentStack = previousComponentStack;
|
|
4877
|
-
switchContext(previousContext);
|
|
4878
|
-
return;
|
|
5227
|
+
if ("function" === typeof node.then) {
|
|
5228
|
+
childIndex = getThenableStateAfterSuspending();
|
|
5229
|
+
request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
|
|
5230
|
+
node.then(request, request);
|
|
5231
|
+
task.formatContext = previousFormatContext;
|
|
5232
|
+
task.context = previousContext;
|
|
5233
|
+
task.keyPath = previousKeyPath;
|
|
5234
|
+
task.treeContext = previousTreeContext;
|
|
5235
|
+
task.componentStack = previousComponentStack;
|
|
5236
|
+
switchContext(previousContext);
|
|
5237
|
+
return;
|
|
5238
|
+
}
|
|
5239
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
5240
|
+
node = getThenableStateAfterSuspending();
|
|
5241
|
+
node = spawnNewSuspendedRenderTask(request, task, node);
|
|
5242
|
+
request.pingedTasks.push(node);
|
|
5243
|
+
task.formatContext = previousFormatContext;
|
|
5244
|
+
task.context = previousContext;
|
|
5245
|
+
task.keyPath = previousKeyPath;
|
|
5246
|
+
task.treeContext = previousTreeContext;
|
|
5247
|
+
task.componentStack = previousComponentStack;
|
|
5248
|
+
switchContext(previousContext);
|
|
5249
|
+
return;
|
|
5250
|
+
}
|
|
4879
5251
|
}
|
|
4880
5252
|
}
|
|
4881
5253
|
}
|
|
4882
5254
|
task.formatContext = previousFormatContext;
|
|
4883
|
-
task.legacyContext = previousLegacyContext;
|
|
4884
5255
|
task.context = previousContext;
|
|
4885
5256
|
task.keyPath = previousKeyPath;
|
|
4886
5257
|
task.treeContext = previousTreeContext;
|
|
@@ -4915,7 +5286,12 @@ function abortRemainingReplayNodes(
|
|
|
4915
5286
|
node = node[5];
|
|
4916
5287
|
var request = request$jscomp$0,
|
|
4917
5288
|
errorDigest = errorDigest$jscomp$0,
|
|
4918
|
-
resumedBoundary = createSuspenseBoundary(
|
|
5289
|
+
resumedBoundary = createSuspenseBoundary(
|
|
5290
|
+
request,
|
|
5291
|
+
new Set(),
|
|
5292
|
+
null,
|
|
5293
|
+
null
|
|
5294
|
+
);
|
|
4919
5295
|
resumedBoundary.parentFlushed = !0;
|
|
4920
5296
|
resumedBoundary.rootSegmentID = node;
|
|
4921
5297
|
resumedBoundary.status = 4;
|
|
@@ -4938,26 +5314,30 @@ function abortRemainingReplayNodes(
|
|
|
4938
5314
|
function abortTask(task, request, error) {
|
|
4939
5315
|
var boundary = task.blockedBoundary,
|
|
4940
5316
|
segment = task.blockedSegment;
|
|
4941
|
-
null !== segment
|
|
5317
|
+
if (null !== segment) {
|
|
5318
|
+
if (6 === segment.status) return;
|
|
5319
|
+
segment.status = 3;
|
|
5320
|
+
}
|
|
5321
|
+
segment = getThrownInfo(task.componentStack);
|
|
4942
5322
|
if (null === boundary) {
|
|
4943
|
-
if (
|
|
4944
|
-
|
|
4945
|
-
if (null ===
|
|
4946
|
-
logRecoverableError(request, error,
|
|
5323
|
+
if (13 !== request.status && 14 !== request.status) {
|
|
5324
|
+
boundary = task.replay;
|
|
5325
|
+
if (null === boundary) {
|
|
5326
|
+
logRecoverableError(request, error, segment);
|
|
4947
5327
|
fatalError(request, error);
|
|
4948
5328
|
return;
|
|
4949
5329
|
}
|
|
4950
|
-
|
|
4951
|
-
0 ===
|
|
4952
|
-
0 <
|
|
4953
|
-
((
|
|
5330
|
+
boundary.pendingTasks--;
|
|
5331
|
+
0 === boundary.pendingTasks &&
|
|
5332
|
+
0 < boundary.nodes.length &&
|
|
5333
|
+
((task = logRecoverableError(request, error, segment)),
|
|
4954
5334
|
abortRemainingReplayNodes(
|
|
4955
5335
|
request,
|
|
4956
5336
|
null,
|
|
4957
|
-
|
|
4958
|
-
|
|
5337
|
+
boundary.nodes,
|
|
5338
|
+
boundary.slots,
|
|
4959
5339
|
error,
|
|
4960
|
-
|
|
5340
|
+
task
|
|
4961
5341
|
));
|
|
4962
5342
|
request.pendingRootTasks--;
|
|
4963
5343
|
0 === request.pendingRootTasks && completeShell(request);
|
|
@@ -4966,8 +5346,8 @@ function abortTask(task, request, error) {
|
|
|
4966
5346
|
boundary.pendingTasks--,
|
|
4967
5347
|
4 !== boundary.status &&
|
|
4968
5348
|
((boundary.status = 4),
|
|
4969
|
-
(task =
|
|
4970
|
-
(
|
|
5349
|
+
(task = logRecoverableError(request, error, segment)),
|
|
5350
|
+
(boundary.status = 4),
|
|
4971
5351
|
(boundary.errorDigest = task),
|
|
4972
5352
|
untrackBoundary(request, boundary),
|
|
4973
5353
|
boundary.parentFlushed &&
|
|
@@ -5021,7 +5401,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
5021
5401
|
referrerPolicy: props$jscomp$0.referrerPolicy,
|
|
5022
5402
|
media: props$jscomp$0.media
|
|
5023
5403
|
});
|
|
5024
|
-
if (
|
|
5404
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2))
|
|
5025
5405
|
(renderState.resets.style[key] = PRELOAD_NO_CREDS),
|
|
5026
5406
|
linkHeader && (linkHeader += ", "),
|
|
5027
5407
|
(linkHeader += header),
|
|
@@ -5042,6 +5422,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
5042
5422
|
}
|
|
5043
5423
|
function completeShell(request) {
|
|
5044
5424
|
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
|
|
5425
|
+
null === request.trackedPostpones && preparePreamble(request);
|
|
5045
5426
|
request.onShellError = noop;
|
|
5046
5427
|
request = request.onShellReady;
|
|
5047
5428
|
request();
|
|
@@ -5054,6 +5435,7 @@ function completeAll(request) {
|
|
|
5054
5435
|
: null === request.completedRootSegment ||
|
|
5055
5436
|
5 !== request.completedRootSegment.status
|
|
5056
5437
|
);
|
|
5438
|
+
preparePreamble(request);
|
|
5057
5439
|
request = request.onAllReady;
|
|
5058
5440
|
request();
|
|
5059
5441
|
}
|
|
@@ -5092,7 +5474,11 @@ function finishedTask(request, boundary, segment) {
|
|
|
5092
5474
|
request.completedBoundaries.push(boundary),
|
|
5093
5475
|
1 === boundary.status &&
|
|
5094
5476
|
(boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
|
|
5095
|
-
boundary.fallbackAbortableTasks.clear()
|
|
5477
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
5478
|
+
0 === request.pendingRootTasks &&
|
|
5479
|
+
null === request.trackedPostpones &&
|
|
5480
|
+
null !== boundary.contentPreamble &&
|
|
5481
|
+
preparePreamble(request)))
|
|
5096
5482
|
: null !== segment &&
|
|
5097
5483
|
segment.parentFlushed &&
|
|
5098
5484
|
1 === segment.status &&
|
|
@@ -5104,7 +5490,7 @@ function finishedTask(request, boundary, segment) {
|
|
|
5104
5490
|
0 === request.allPendingTasks && completeAll(request);
|
|
5105
5491
|
}
|
|
5106
5492
|
function performWork(request$jscomp$2) {
|
|
5107
|
-
if (2 !== request$jscomp$2.status) {
|
|
5493
|
+
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
|
5108
5494
|
var prevContext = currentActiveSnapshot,
|
|
5109
5495
|
prevDispatcher = ReactSharedInternals.H;
|
|
5110
5496
|
ReactSharedInternals.H = HooksDispatcher;
|
|
@@ -5126,12 +5512,15 @@ function performWork(request$jscomp$2) {
|
|
|
5126
5512
|
if (0 !== task.replay.pendingTasks) {
|
|
5127
5513
|
switchContext(task.context);
|
|
5128
5514
|
try {
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5515
|
+
"number" === typeof task.replay.slots
|
|
5516
|
+
? resumeNode(
|
|
5517
|
+
request$jscomp$0,
|
|
5518
|
+
task,
|
|
5519
|
+
task.replay.slots,
|
|
5520
|
+
task.node,
|
|
5521
|
+
task.childIndex
|
|
5522
|
+
)
|
|
5523
|
+
: retryNode(request$jscomp$0, task);
|
|
5135
5524
|
if (
|
|
5136
5525
|
1 === task.replay.pendingTasks &&
|
|
5137
5526
|
0 < task.replay.nodes.length
|
|
@@ -5154,19 +5543,17 @@ function performWork(request$jscomp$2) {
|
|
|
5154
5543
|
var ping = task.ping;
|
|
5155
5544
|
x.then(ping, ping);
|
|
5156
5545
|
task.thenableState = getThenableStateAfterSuspending();
|
|
5157
|
-
null !== task.componentStack &&
|
|
5158
|
-
(task.componentStack = task.componentStack.parent);
|
|
5159
5546
|
} else {
|
|
5160
5547
|
task.replay.pendingTasks--;
|
|
5161
5548
|
task.abortSet.delete(task);
|
|
5162
|
-
var errorInfo = getThrownInfo(
|
|
5163
|
-
request$jscomp$0,
|
|
5164
|
-
task.componentStack
|
|
5165
|
-
);
|
|
5549
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
5166
5550
|
request = void 0;
|
|
5167
5551
|
var request$jscomp$1 = request$jscomp$0,
|
|
5168
5552
|
boundary = task.blockedBoundary,
|
|
5169
|
-
error$jscomp$0 =
|
|
5553
|
+
error$jscomp$0 =
|
|
5554
|
+
12 === request$jscomp$0.status
|
|
5555
|
+
? request$jscomp$0.fatalError
|
|
5556
|
+
: x,
|
|
5170
5557
|
replayNodes = task.replay.nodes,
|
|
5171
5558
|
resumeSlots = task.replay.slots;
|
|
5172
5559
|
request = logRecoverableError(
|
|
@@ -5197,11 +5584,12 @@ function performWork(request$jscomp$2) {
|
|
|
5197
5584
|
(request$jscomp$1 = segment),
|
|
5198
5585
|
0 === request$jscomp$1.status)
|
|
5199
5586
|
) {
|
|
5587
|
+
request$jscomp$1.status = 6;
|
|
5200
5588
|
switchContext(task.context);
|
|
5201
5589
|
var childrenLength = request$jscomp$1.children.length,
|
|
5202
5590
|
chunkLength = request$jscomp$1.chunks.length;
|
|
5203
5591
|
try {
|
|
5204
|
-
|
|
5592
|
+
retryNode(request, task),
|
|
5205
5593
|
request$jscomp$1.lastPushedText &&
|
|
5206
5594
|
request$jscomp$1.textEmbedded &&
|
|
5207
5595
|
request$jscomp$1.chunks.push(textSeparator),
|
|
@@ -5215,22 +5603,20 @@ function performWork(request$jscomp$2) {
|
|
|
5215
5603
|
var x$jscomp$0 =
|
|
5216
5604
|
thrownValue === SuspenseException
|
|
5217
5605
|
? getSuspendedThenable()
|
|
5218
|
-
:
|
|
5606
|
+
: 12 === request.status
|
|
5607
|
+
? request.fatalError
|
|
5608
|
+
: thrownValue;
|
|
5219
5609
|
if (
|
|
5220
5610
|
"object" === typeof x$jscomp$0 &&
|
|
5221
5611
|
null !== x$jscomp$0 &&
|
|
5222
5612
|
"function" === typeof x$jscomp$0.then
|
|
5223
5613
|
) {
|
|
5614
|
+
request$jscomp$1.status = 0;
|
|
5615
|
+
task.thenableState = getThenableStateAfterSuspending();
|
|
5224
5616
|
var ping$jscomp$0 = task.ping;
|
|
5225
5617
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
5226
|
-
task.thenableState = getThenableStateAfterSuspending();
|
|
5227
|
-
null !== task.componentStack &&
|
|
5228
|
-
(task.componentStack = task.componentStack.parent);
|
|
5229
5618
|
} else {
|
|
5230
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
|
5231
|
-
request,
|
|
5232
|
-
task.componentStack
|
|
5233
|
-
);
|
|
5619
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
5234
5620
|
task.abortSet.delete(task);
|
|
5235
5621
|
request$jscomp$1.status = 4;
|
|
5236
5622
|
var boundary$jscomp$0 = task.blockedBoundary;
|
|
@@ -5247,9 +5633,11 @@ function performWork(request$jscomp$2) {
|
|
|
5247
5633
|
(boundary$jscomp$0.errorDigest = request$jscomp$0),
|
|
5248
5634
|
untrackBoundary(request, boundary$jscomp$0),
|
|
5249
5635
|
boundary$jscomp$0.parentFlushed &&
|
|
5250
|
-
request.clientRenderedBoundaries.push(
|
|
5251
|
-
|
|
5252
|
-
|
|
5636
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0),
|
|
5637
|
+
0 === request.pendingRootTasks &&
|
|
5638
|
+
null === request.trackedPostpones &&
|
|
5639
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
|
5640
|
+
preparePreamble(request)));
|
|
5253
5641
|
request.allPendingTasks--;
|
|
5254
5642
|
0 === request.allPendingTasks && completeAll(request);
|
|
5255
5643
|
}
|
|
@@ -5272,6 +5660,82 @@ function performWork(request$jscomp$2) {
|
|
|
5272
5660
|
}
|
|
5273
5661
|
}
|
|
5274
5662
|
}
|
|
5663
|
+
function preparePreambleFromSubtree(
|
|
5664
|
+
request,
|
|
5665
|
+
segment,
|
|
5666
|
+
collectedPreambleSegments
|
|
5667
|
+
) {
|
|
5668
|
+
segment.preambleChildren.length &&
|
|
5669
|
+
collectedPreambleSegments.push(segment.preambleChildren);
|
|
5670
|
+
for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
|
|
5671
|
+
pendingPreambles =
|
|
5672
|
+
preparePreambleFromSegment(
|
|
5673
|
+
request,
|
|
5674
|
+
segment.children[i],
|
|
5675
|
+
collectedPreambleSegments
|
|
5676
|
+
) || pendingPreambles;
|
|
5677
|
+
return pendingPreambles;
|
|
5678
|
+
}
|
|
5679
|
+
function preparePreambleFromSegment(
|
|
5680
|
+
request,
|
|
5681
|
+
segment,
|
|
5682
|
+
collectedPreambleSegments
|
|
5683
|
+
) {
|
|
5684
|
+
var boundary = segment.boundary;
|
|
5685
|
+
if (null === boundary)
|
|
5686
|
+
return preparePreambleFromSubtree(
|
|
5687
|
+
request,
|
|
5688
|
+
segment,
|
|
5689
|
+
collectedPreambleSegments
|
|
5690
|
+
);
|
|
5691
|
+
var preamble = boundary.contentPreamble,
|
|
5692
|
+
fallbackPreamble = boundary.fallbackPreamble;
|
|
5693
|
+
if (null === preamble || null === fallbackPreamble) return !1;
|
|
5694
|
+
switch (boundary.status) {
|
|
5695
|
+
case 1:
|
|
5696
|
+
hoistPreambleState(request.renderState, preamble);
|
|
5697
|
+
segment = boundary.completedSegments[0];
|
|
5698
|
+
if (!segment) throw Error(formatProdErrorMessage(391));
|
|
5699
|
+
return preparePreambleFromSubtree(
|
|
5700
|
+
request,
|
|
5701
|
+
segment,
|
|
5702
|
+
collectedPreambleSegments
|
|
5703
|
+
);
|
|
5704
|
+
case 5:
|
|
5705
|
+
if (null !== request.trackedPostpones) return !0;
|
|
5706
|
+
case 4:
|
|
5707
|
+
if (1 === segment.status)
|
|
5708
|
+
return (
|
|
5709
|
+
hoistPreambleState(request.renderState, fallbackPreamble),
|
|
5710
|
+
preparePreambleFromSubtree(
|
|
5711
|
+
request,
|
|
5712
|
+
segment,
|
|
5713
|
+
collectedPreambleSegments
|
|
5714
|
+
)
|
|
5715
|
+
);
|
|
5716
|
+
default:
|
|
5717
|
+
return !0;
|
|
5718
|
+
}
|
|
5719
|
+
}
|
|
5720
|
+
function preparePreamble(request) {
|
|
5721
|
+
if (
|
|
5722
|
+
request.completedRootSegment &&
|
|
5723
|
+
null === request.completedPreambleSegments
|
|
5724
|
+
) {
|
|
5725
|
+
var collectedPreambleSegments = [],
|
|
5726
|
+
hasPendingPreambles = preparePreambleFromSegment(
|
|
5727
|
+
request,
|
|
5728
|
+
request.completedRootSegment,
|
|
5729
|
+
collectedPreambleSegments
|
|
5730
|
+
),
|
|
5731
|
+
preamble = request.renderState.preamble;
|
|
5732
|
+
if (
|
|
5733
|
+
!1 === hasPendingPreambles ||
|
|
5734
|
+
(preamble.headChunks && preamble.bodyChunks)
|
|
5735
|
+
)
|
|
5736
|
+
request.completedPreambleSegments = collectedPreambleSegments;
|
|
5737
|
+
}
|
|
5738
|
+
}
|
|
5275
5739
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
5276
5740
|
segment.parentFlushed = !0;
|
|
5277
5741
|
switch (segment.status) {
|
|
@@ -5314,21 +5778,27 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
5314
5778
|
if (null === boundary)
|
|
5315
5779
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
5316
5780
|
boundary.parentFlushed = !0;
|
|
5317
|
-
if (4 === boundary.status)
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5781
|
+
if (4 === boundary.status) {
|
|
5782
|
+
var errorDigest = boundary.errorDigest;
|
|
5783
|
+
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
5784
|
+
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
5785
|
+
errorDigest &&
|
|
5786
|
+
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
|
5787
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(errorDigest))),
|
|
5788
|
+
writeChunk(
|
|
5789
|
+
destination,
|
|
5790
|
+
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
|
5791
|
+
));
|
|
5792
|
+
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
|
5793
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
5794
|
+
(request = boundary.fallbackPreamble) &&
|
|
5795
|
+
writePreambleContribution(destination, request);
|
|
5796
|
+
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
|
5797
|
+
}
|
|
5798
|
+
if (1 !== boundary.status)
|
|
5799
|
+
return (
|
|
5800
|
+
0 === boundary.status &&
|
|
5801
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
5332
5802
|
0 < boundary.completedSegments.length &&
|
|
5333
5803
|
request.partialBoundaries.push(boundary),
|
|
5334
5804
|
writeStartPendingSuspenseBoundary(
|
|
@@ -5343,26 +5813,31 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
5343
5813
|
hoistStylesheetDependency,
|
|
5344
5814
|
hoistableState
|
|
5345
5815
|
)),
|
|
5346
|
-
flushSubtree(request, destination, segment, hoistableState)
|
|
5347
|
-
|
|
5348
|
-
|
|
5816
|
+
flushSubtree(request, destination, segment, hoistableState),
|
|
5817
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
|
5818
|
+
);
|
|
5819
|
+
if (boundary.byteSize > request.progressiveChunkSize)
|
|
5820
|
+
return (
|
|
5821
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
5349
5822
|
request.completedBoundaries.push(boundary),
|
|
5350
5823
|
writeStartPendingSuspenseBoundary(
|
|
5351
5824
|
destination,
|
|
5352
5825
|
request.renderState,
|
|
5353
5826
|
boundary.rootSegmentID
|
|
5354
5827
|
),
|
|
5355
|
-
flushSubtree(request, destination, segment, hoistableState)
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5828
|
+
flushSubtree(request, destination, segment, hoistableState),
|
|
5829
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
|
5830
|
+
);
|
|
5831
|
+
hoistableState &&
|
|
5832
|
+
((segment = boundary.contentState),
|
|
5833
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
|
5834
|
+
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
|
5835
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
5836
|
+
segment = boundary.completedSegments;
|
|
5837
|
+
if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
|
|
5838
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
|
5839
|
+
(request = boundary.contentPreamble) &&
|
|
5840
|
+
writePreambleContribution(destination, request);
|
|
5366
5841
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
|
5367
5842
|
}
|
|
5368
5843
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
|
@@ -5405,13 +5880,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
5405
5880
|
? ((completedSegments.instructions |= 10),
|
|
5406
5881
|
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
|
5407
5882
|
: 0 === (completedSegments.instructions & 8)
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5883
|
+
? ((completedSegments.instructions |= 8),
|
|
5884
|
+
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
|
5885
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
|
5411
5886
|
: 0 === (completedSegments.instructions & 2)
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5887
|
+
? ((completedSegments.instructions |= 2),
|
|
5888
|
+
writeChunk(destination, completeBoundaryScript1Full))
|
|
5889
|
+
: writeChunk(destination, completeBoundaryScript1Partial);
|
|
5415
5890
|
completedSegments = stringToChunk(i.toString(16));
|
|
5416
5891
|
writeChunk(destination, request.boundaryPrefix);
|
|
5417
5892
|
writeChunk(destination, completedSegments);
|
|
@@ -5467,9 +5942,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
5467
5942
|
completedRootSegment = request.completedRootSegment;
|
|
5468
5943
|
if (null !== completedRootSegment) {
|
|
5469
5944
|
if (5 === completedRootSegment.status) return;
|
|
5945
|
+
var completedPreambleSegments = request.completedPreambleSegments;
|
|
5946
|
+
if (null === completedPreambleSegments) return;
|
|
5470
5947
|
var renderState = request.renderState,
|
|
5471
|
-
|
|
5472
|
-
|
|
5948
|
+
preamble = renderState.preamble,
|
|
5949
|
+
htmlChunks = preamble.htmlChunks,
|
|
5950
|
+
headChunks = preamble.headChunks,
|
|
5473
5951
|
i$jscomp$0;
|
|
5474
5952
|
if (htmlChunks) {
|
|
5475
5953
|
for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
|
|
@@ -5510,10 +5988,27 @@ function flushCompletedQueues(request, destination) {
|
|
|
5510
5988
|
var hoistableChunks = renderState.hoistableChunks;
|
|
5511
5989
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
|
5512
5990
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5991
|
+
for (
|
|
5992
|
+
renderState = hoistableChunks.length = 0;
|
|
5993
|
+
renderState < completedPreambleSegments.length;
|
|
5994
|
+
renderState++
|
|
5995
|
+
) {
|
|
5996
|
+
var segments = completedPreambleSegments[renderState];
|
|
5997
|
+
for (preamble = 0; preamble < segments.length; preamble++)
|
|
5998
|
+
flushSegment(request, destination, segments[preamble], null);
|
|
5999
|
+
}
|
|
6000
|
+
var preamble$jscomp$0 = request.renderState.preamble,
|
|
6001
|
+
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
6002
|
+
(preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) &&
|
|
5516
6003
|
writeChunk(destination, endChunkForTag("head"));
|
|
6004
|
+
var bodyChunks = preamble$jscomp$0.bodyChunks;
|
|
6005
|
+
if (bodyChunks)
|
|
6006
|
+
for (
|
|
6007
|
+
completedPreambleSegments = 0;
|
|
6008
|
+
completedPreambleSegments < bodyChunks.length;
|
|
6009
|
+
completedPreambleSegments++
|
|
6010
|
+
)
|
|
6011
|
+
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
5517
6012
|
flushSegment(request, destination, completedRootSegment, null);
|
|
5518
6013
|
request.completedRootSegment = null;
|
|
5519
6014
|
writeBootstrap(destination, request.renderState);
|
|
@@ -5608,11 +6103,11 @@ function flushCompletedQueues(request, destination) {
|
|
|
5608
6103
|
writtenBytes = 0;
|
|
5609
6104
|
var partialBoundaries = request.partialBoundaries;
|
|
5610
6105
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
5611
|
-
var boundary$
|
|
6106
|
+
var boundary$51 = partialBoundaries[i];
|
|
5612
6107
|
a: {
|
|
5613
6108
|
clientRenderedBoundaries = request;
|
|
5614
6109
|
boundary = destination;
|
|
5615
|
-
var completedSegments = boundary$
|
|
6110
|
+
var completedSegments = boundary$51.completedSegments;
|
|
5616
6111
|
for (
|
|
5617
6112
|
JSCompiler_inline_result = 0;
|
|
5618
6113
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -5622,7 +6117,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
5622
6117
|
!flushPartiallyCompletedSegment(
|
|
5623
6118
|
clientRenderedBoundaries,
|
|
5624
6119
|
boundary,
|
|
5625
|
-
boundary$
|
|
6120
|
+
boundary$51,
|
|
5626
6121
|
completedSegments[JSCompiler_inline_result]
|
|
5627
6122
|
)
|
|
5628
6123
|
) {
|
|
@@ -5634,7 +6129,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
5634
6129
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
5635
6130
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
5636
6131
|
boundary,
|
|
5637
|
-
boundary$
|
|
6132
|
+
boundary$51.contentState,
|
|
5638
6133
|
clientRenderedBoundaries.renderState
|
|
5639
6134
|
);
|
|
5640
6135
|
}
|
|
@@ -5666,30 +6161,61 @@ function flushCompletedQueues(request, destination) {
|
|
|
5666
6161
|
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
|
5667
6162
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
5668
6163
|
completeWriting(destination),
|
|
6164
|
+
(request.status = 14),
|
|
5669
6165
|
destination.close(),
|
|
5670
6166
|
(request.destination = null))
|
|
5671
6167
|
: completeWriting(destination);
|
|
5672
6168
|
}
|
|
5673
6169
|
}
|
|
6170
|
+
function startWork(request) {
|
|
6171
|
+
request.flushScheduled = null !== request.destination;
|
|
6172
|
+
scheduleMicrotask(function () {
|
|
6173
|
+
return performWork(request);
|
|
6174
|
+
});
|
|
6175
|
+
scheduleWork(function () {
|
|
6176
|
+
10 === request.status && (request.status = 11);
|
|
6177
|
+
null === request.trackedPostpones &&
|
|
6178
|
+
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
6179
|
+
});
|
|
6180
|
+
}
|
|
5674
6181
|
function enqueueFlush(request) {
|
|
5675
|
-
|
|
5676
|
-
!1 === request.flushScheduled &&
|
|
6182
|
+
!1 === request.flushScheduled &&
|
|
5677
6183
|
0 === request.pingedTasks.length &&
|
|
5678
|
-
null !== request.destination
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
6184
|
+
null !== request.destination &&
|
|
6185
|
+
((request.flushScheduled = !0),
|
|
6186
|
+
scheduleWork(function () {
|
|
6187
|
+
var destination = request.destination;
|
|
6188
|
+
destination
|
|
6189
|
+
? flushCompletedQueues(request, destination)
|
|
6190
|
+
: (request.flushScheduled = !1);
|
|
6191
|
+
}));
|
|
6192
|
+
}
|
|
6193
|
+
function startFlowing(request, destination) {
|
|
6194
|
+
if (13 === request.status)
|
|
6195
|
+
(request.status = 14), closeWithError(destination, request.fatalError);
|
|
6196
|
+
else if (14 !== request.status && null === request.destination) {
|
|
6197
|
+
request.destination = destination;
|
|
6198
|
+
try {
|
|
6199
|
+
flushCompletedQueues(request, destination);
|
|
6200
|
+
} catch (error) {
|
|
6201
|
+
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
6202
|
+
}
|
|
5685
6203
|
}
|
|
5686
6204
|
}
|
|
5687
6205
|
function abort(request, reason) {
|
|
6206
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
5688
6207
|
try {
|
|
5689
6208
|
var abortableTasks = request.abortableTasks;
|
|
5690
6209
|
if (0 < abortableTasks.size) {
|
|
5691
6210
|
var error =
|
|
5692
|
-
void 0 === reason
|
|
6211
|
+
void 0 === reason
|
|
6212
|
+
? Error(formatProdErrorMessage(432))
|
|
6213
|
+
: "object" === typeof reason &&
|
|
6214
|
+
null !== reason &&
|
|
6215
|
+
"function" === typeof reason.then
|
|
6216
|
+
? Error(formatProdErrorMessage(530))
|
|
6217
|
+
: reason;
|
|
6218
|
+
request.fatalError = error;
|
|
5693
6219
|
abortableTasks.forEach(function (task) {
|
|
5694
6220
|
return abortTask(task, request, error);
|
|
5695
6221
|
});
|
|
@@ -5697,10 +6223,89 @@ function abort(request, reason) {
|
|
|
5697
6223
|
}
|
|
5698
6224
|
null !== request.destination &&
|
|
5699
6225
|
flushCompletedQueues(request, request.destination);
|
|
5700
|
-
} catch (error$
|
|
5701
|
-
logRecoverableError(request, error$
|
|
6226
|
+
} catch (error$53) {
|
|
6227
|
+
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
|
|
5702
6228
|
}
|
|
5703
6229
|
}
|
|
6230
|
+
function ensureCorrectIsomorphicReactVersion() {
|
|
6231
|
+
var isomorphicReactPackageVersion = React.version;
|
|
6232
|
+
if ("19.2.0-canary-5252281c-20250408" !== isomorphicReactPackageVersion)
|
|
6233
|
+
throw Error(
|
|
6234
|
+
formatProdErrorMessage(
|
|
6235
|
+
527,
|
|
6236
|
+
isomorphicReactPackageVersion,
|
|
6237
|
+
"19.2.0-canary-5252281c-20250408"
|
|
6238
|
+
)
|
|
6239
|
+
);
|
|
6240
|
+
}
|
|
6241
|
+
ensureCorrectIsomorphicReactVersion();
|
|
6242
|
+
ensureCorrectIsomorphicReactVersion();
|
|
6243
|
+
exports.prerender = function (children, options) {
|
|
6244
|
+
return new Promise(function (resolve, reject) {
|
|
6245
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
|
6246
|
+
onHeadersImpl;
|
|
6247
|
+
onHeaders &&
|
|
6248
|
+
(onHeadersImpl = function (headersDescriptor) {
|
|
6249
|
+
onHeaders(new Headers(headersDescriptor));
|
|
6250
|
+
});
|
|
6251
|
+
var resources = createResumableState(
|
|
6252
|
+
options ? options.identifierPrefix : void 0,
|
|
6253
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
6254
|
+
options ? options.bootstrapScriptContent : void 0,
|
|
6255
|
+
options ? options.bootstrapScripts : void 0,
|
|
6256
|
+
options ? options.bootstrapModules : void 0
|
|
6257
|
+
),
|
|
6258
|
+
request = createPrerenderRequest(
|
|
6259
|
+
children,
|
|
6260
|
+
resources,
|
|
6261
|
+
createRenderState(
|
|
6262
|
+
resources,
|
|
6263
|
+
void 0,
|
|
6264
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
6265
|
+
options ? options.importMap : void 0,
|
|
6266
|
+
onHeadersImpl,
|
|
6267
|
+
options ? options.maxHeadersLength : void 0
|
|
6268
|
+
),
|
|
6269
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
6270
|
+
options ? options.progressiveChunkSize : void 0,
|
|
6271
|
+
options ? options.onError : void 0,
|
|
6272
|
+
function () {
|
|
6273
|
+
var result = {
|
|
6274
|
+
prelude: new ReadableStream(
|
|
6275
|
+
{
|
|
6276
|
+
type: "bytes",
|
|
6277
|
+
pull: function (controller) {
|
|
6278
|
+
startFlowing(request, controller);
|
|
6279
|
+
},
|
|
6280
|
+
cancel: function (reason) {
|
|
6281
|
+
request.destination = null;
|
|
6282
|
+
abort(request, reason);
|
|
6283
|
+
}
|
|
6284
|
+
},
|
|
6285
|
+
{ highWaterMark: 0 }
|
|
6286
|
+
)
|
|
6287
|
+
};
|
|
6288
|
+
resolve(result);
|
|
6289
|
+
},
|
|
6290
|
+
void 0,
|
|
6291
|
+
void 0,
|
|
6292
|
+
reject,
|
|
6293
|
+
options ? options.onPostpone : void 0
|
|
6294
|
+
);
|
|
6295
|
+
if (options && options.signal) {
|
|
6296
|
+
var signal = options.signal;
|
|
6297
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
6298
|
+
else {
|
|
6299
|
+
var listener = function () {
|
|
6300
|
+
abort(request, signal.reason);
|
|
6301
|
+
signal.removeEventListener("abort", listener);
|
|
6302
|
+
};
|
|
6303
|
+
signal.addEventListener("abort", listener);
|
|
6304
|
+
}
|
|
6305
|
+
}
|
|
6306
|
+
startWork(request);
|
|
6307
|
+
});
|
|
6308
|
+
};
|
|
5704
6309
|
exports.renderToReadableStream = function (children, options) {
|
|
5705
6310
|
return new Promise(function (resolve, reject) {
|
|
5706
6311
|
var onFatalError,
|
|
@@ -5742,18 +6347,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
5742
6347
|
{
|
|
5743
6348
|
type: "bytes",
|
|
5744
6349
|
pull: function (controller) {
|
|
5745
|
-
|
|
5746
|
-
(request.status = 2),
|
|
5747
|
-
closeWithError(controller, request.fatalError);
|
|
5748
|
-
else if (2 !== request.status && null === request.destination) {
|
|
5749
|
-
request.destination = controller;
|
|
5750
|
-
try {
|
|
5751
|
-
flushCompletedQueues(request, controller);
|
|
5752
|
-
} catch (error) {
|
|
5753
|
-
logRecoverableError(request, error, {}),
|
|
5754
|
-
fatalError(request, error);
|
|
5755
|
-
}
|
|
5756
|
-
}
|
|
6350
|
+
startFlowing(request, controller);
|
|
5757
6351
|
},
|
|
5758
6352
|
cancel: function (reason) {
|
|
5759
6353
|
request.destination = null;
|
|
@@ -5784,10 +6378,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
5784
6378
|
signal.addEventListener("abort", listener);
|
|
5785
6379
|
}
|
|
5786
6380
|
}
|
|
5787
|
-
request
|
|
5788
|
-
performWork(request);
|
|
5789
|
-
null === request.trackedPostpones &&
|
|
5790
|
-
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
6381
|
+
startWork(request);
|
|
5791
6382
|
});
|
|
5792
6383
|
};
|
|
5793
|
-
exports.version = "19.
|
|
6384
|
+
exports.version = "19.2.0-canary-5252281c-20250408";
|