react-dom 19.1.0 → 19.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +8914 -5783
- package/cjs/react-dom-client.production.js +4167 -3511
- package/cjs/react-dom-profiling.development.js +8921 -5795
- package/cjs/react-dom-profiling.profiling.js +5894 -4044
- package/cjs/react-dom-server-legacy.browser.development.js +1508 -666
- package/cjs/react-dom-server-legacy.browser.production.js +1228 -517
- package/cjs/react-dom-server-legacy.node.development.js +1508 -666
- package/cjs/react-dom-server-legacy.node.production.js +1237 -517
- package/cjs/react-dom-server.browser.development.js +1997 -820
- package/cjs/react-dom-server.browser.production.js +1626 -600
- package/cjs/react-dom-server.bun.development.js +1586 -720
- package/cjs/react-dom-server.bun.production.js +1355 -577
- package/cjs/react-dom-server.edge.development.js +1997 -820
- package/cjs/react-dom-server.edge.production.js +1638 -603
- package/cjs/react-dom-server.node.development.js +2240 -755
- package/cjs/react-dom-server.node.production.js +1928 -593
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
- package/server.browser.js +1 -3
- package/server.bun.js +1 -3
- package/server.edge.js +1 -3
- package/server.node.js +3 -3
- package/static.node.js +2 -0
|
@@ -17,12 +17,17 @@
|
|
|
17
17
|
function scriptReplacer(match, prefix, s, suffix) {
|
|
18
18
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
|
19
19
|
}
|
|
20
|
+
function getIteratorFn(maybeIterable) {
|
|
21
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
22
|
+
return null;
|
|
23
|
+
maybeIterable =
|
|
24
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
25
|
+
maybeIterable["@@iterator"];
|
|
26
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
27
|
+
}
|
|
20
28
|
function objectName(object) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.replace(/^\[object (.*)\]$/, function (m, p0) {
|
|
24
|
-
return p0;
|
|
25
|
-
});
|
|
29
|
+
object = Object.prototype.toString.call(object);
|
|
30
|
+
return object.slice(8, object.length - 1);
|
|
26
31
|
}
|
|
27
32
|
function describeKeyForErrorMessage(key) {
|
|
28
33
|
var encodedKey = JSON.stringify(key);
|
|
@@ -267,6 +272,11 @@
|
|
|
267
272
|
);
|
|
268
273
|
return content;
|
|
269
274
|
}
|
|
275
|
+
function byteLengthOfChunk(chunk) {
|
|
276
|
+
return "string" === typeof chunk
|
|
277
|
+
? Buffer.byteLength(chunk, "utf8")
|
|
278
|
+
: chunk.byteLength;
|
|
279
|
+
}
|
|
270
280
|
function typeName(value) {
|
|
271
281
|
return (
|
|
272
282
|
("function" === typeof Symbol &&
|
|
@@ -746,23 +756,36 @@
|
|
|
746
756
|
onHeaders,
|
|
747
757
|
maxHeadersLength
|
|
748
758
|
) {
|
|
759
|
+
externalRuntimeConfig =
|
|
760
|
+
"string" === typeof nonce ? nonce : nonce && nonce.script;
|
|
749
761
|
var inlineScriptWithNonce =
|
|
750
|
-
void 0 ===
|
|
762
|
+
void 0 === externalRuntimeConfig
|
|
751
763
|
? startInlineScript
|
|
752
764
|
: stringToPrecomputedChunk(
|
|
753
|
-
'<script nonce="' +
|
|
765
|
+
'<script nonce="' +
|
|
766
|
+
escapeTextForBrowser(externalRuntimeConfig) +
|
|
767
|
+
'"'
|
|
768
|
+
),
|
|
769
|
+
nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style,
|
|
770
|
+
inlineStyleWithNonce =
|
|
771
|
+
void 0 === nonceStyle
|
|
772
|
+
? startInlineStyle
|
|
773
|
+
: stringToPrecomputedChunk(
|
|
774
|
+
'<style nonce="' + escapeTextForBrowser(nonceStyle) + '"'
|
|
754
775
|
),
|
|
755
|
-
idPrefix = resumableState.idPrefix
|
|
756
|
-
|
|
757
|
-
|
|
776
|
+
idPrefix = resumableState.idPrefix,
|
|
777
|
+
bootstrapChunks = [],
|
|
778
|
+
bootstrapScriptContent = resumableState.bootstrapScriptContent,
|
|
758
779
|
bootstrapScripts = resumableState.bootstrapScripts,
|
|
759
780
|
bootstrapModules = resumableState.bootstrapModules;
|
|
760
781
|
void 0 !== bootstrapScriptContent &&
|
|
761
|
-
|
|
762
|
-
|
|
782
|
+
(bootstrapChunks.push(inlineScriptWithNonce),
|
|
783
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
784
|
+
bootstrapChunks.push(
|
|
785
|
+
endOfStartTag,
|
|
763
786
|
escapeEntireInlineScriptContent(bootstrapScriptContent),
|
|
764
787
|
endInlineScript
|
|
765
|
-
);
|
|
788
|
+
));
|
|
766
789
|
bootstrapScriptContent = [];
|
|
767
790
|
void 0 !== importMap &&
|
|
768
791
|
(bootstrapScriptContent.push(importMapScriptStart),
|
|
@@ -792,9 +815,10 @@
|
|
|
792
815
|
segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),
|
|
793
816
|
boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),
|
|
794
817
|
startInlineScript: inlineScriptWithNonce,
|
|
818
|
+
startInlineStyle: inlineStyleWithNonce,
|
|
795
819
|
preamble: createPreambleState(),
|
|
796
820
|
externalRuntimeScript: null,
|
|
797
|
-
bootstrapChunks:
|
|
821
|
+
bootstrapChunks: bootstrapChunks,
|
|
798
822
|
importMapChunks: bootstrapScriptContent,
|
|
799
823
|
onHeaders: onHeaders,
|
|
800
824
|
headers: importMap,
|
|
@@ -821,114 +845,119 @@
|
|
|
821
845
|
scripts: new Map(),
|
|
822
846
|
moduleScripts: new Map()
|
|
823
847
|
},
|
|
824
|
-
nonce:
|
|
848
|
+
nonce: { script: externalRuntimeConfig, style: nonceStyle },
|
|
825
849
|
hoistableState: null,
|
|
826
850
|
stylesToHoist: !1
|
|
827
851
|
};
|
|
828
852
|
if (void 0 !== bootstrapScripts)
|
|
829
|
-
for (importMap = 0; importMap < bootstrapScripts.length; importMap++)
|
|
830
|
-
maxHeadersLength = bootstrapScripts[importMap]
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
externalRuntimeConfig
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
853
|
+
for (importMap = 0; importMap < bootstrapScripts.length; importMap++)
|
|
854
|
+
(maxHeadersLength = bootstrapScripts[importMap]),
|
|
855
|
+
(inlineStyleWithNonce = nonceStyle = void 0),
|
|
856
|
+
(idPrefix = {
|
|
857
|
+
rel: "preload",
|
|
858
|
+
as: "script",
|
|
859
|
+
fetchPriority: "low",
|
|
860
|
+
nonce: nonce
|
|
861
|
+
}),
|
|
862
|
+
"string" === typeof maxHeadersLength
|
|
863
|
+
? (idPrefix.href = inlineScriptWithNonce = maxHeadersLength)
|
|
864
|
+
: ((idPrefix.href = inlineScriptWithNonce = maxHeadersLength.src),
|
|
865
|
+
(idPrefix.integrity = inlineStyleWithNonce =
|
|
866
|
+
"string" === typeof maxHeadersLength.integrity
|
|
867
|
+
? maxHeadersLength.integrity
|
|
868
|
+
: void 0),
|
|
869
|
+
(idPrefix.crossOrigin = nonceStyle =
|
|
870
|
+
"string" === typeof maxHeadersLength ||
|
|
871
|
+
null == maxHeadersLength.crossOrigin
|
|
872
|
+
? void 0
|
|
873
|
+
: "use-credentials" === maxHeadersLength.crossOrigin
|
|
874
|
+
? "use-credentials"
|
|
875
|
+
: "")),
|
|
876
|
+
preloadBootstrapScriptOrModule(
|
|
877
|
+
resumableState,
|
|
878
|
+
onHeaders,
|
|
879
|
+
inlineScriptWithNonce,
|
|
880
|
+
idPrefix
|
|
881
|
+
),
|
|
882
|
+
bootstrapChunks.push(
|
|
883
|
+
startScriptSrc,
|
|
884
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
|
885
|
+
attributeEnd
|
|
886
|
+
),
|
|
887
|
+
externalRuntimeConfig &&
|
|
888
|
+
bootstrapChunks.push(
|
|
889
|
+
scriptNonce,
|
|
890
|
+
escapeTextForBrowser(externalRuntimeConfig),
|
|
891
|
+
attributeEnd
|
|
892
|
+
),
|
|
893
|
+
"string" === typeof inlineStyleWithNonce &&
|
|
894
|
+
bootstrapChunks.push(
|
|
895
|
+
scriptIntegirty,
|
|
896
|
+
escapeTextForBrowser(inlineStyleWithNonce),
|
|
897
|
+
attributeEnd
|
|
898
|
+
),
|
|
899
|
+
"string" === typeof nonceStyle &&
|
|
900
|
+
bootstrapChunks.push(
|
|
901
|
+
scriptCrossOrigin,
|
|
902
|
+
escapeTextForBrowser(nonceStyle),
|
|
903
|
+
attributeEnd
|
|
904
|
+
),
|
|
905
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
906
|
+
bootstrapChunks.push(endAsyncScript);
|
|
879
907
|
if (void 0 !== bootstrapModules)
|
|
880
|
-
for (
|
|
881
|
-
bootstrapScripts =
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
)
|
|
885
|
-
(importMap = bootstrapModules[bootstrapScripts]),
|
|
886
|
-
(idPrefix = inlineScriptWithNonce = void 0),
|
|
887
|
-
(bootstrapScriptContent = {
|
|
908
|
+
for (nonce = 0; nonce < bootstrapModules.length; nonce++)
|
|
909
|
+
(bootstrapScripts = bootstrapModules[nonce]),
|
|
910
|
+
(inlineScriptWithNonce = maxHeadersLength = void 0),
|
|
911
|
+
(nonceStyle = {
|
|
888
912
|
rel: "modulepreload",
|
|
889
913
|
fetchPriority: "low",
|
|
890
|
-
nonce:
|
|
914
|
+
nonce: externalRuntimeConfig
|
|
891
915
|
}),
|
|
892
|
-
"string" === typeof
|
|
893
|
-
? (
|
|
894
|
-
: ((
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
? importMap.integrity
|
|
916
|
+
"string" === typeof bootstrapScripts
|
|
917
|
+
? (nonceStyle.href = importMap = bootstrapScripts)
|
|
918
|
+
: ((nonceStyle.href = importMap = bootstrapScripts.src),
|
|
919
|
+
(nonceStyle.integrity = inlineScriptWithNonce =
|
|
920
|
+
"string" === typeof bootstrapScripts.integrity
|
|
921
|
+
? bootstrapScripts.integrity
|
|
899
922
|
: void 0),
|
|
900
|
-
(
|
|
901
|
-
"string" === typeof
|
|
923
|
+
(nonceStyle.crossOrigin = maxHeadersLength =
|
|
924
|
+
"string" === typeof bootstrapScripts ||
|
|
925
|
+
null == bootstrapScripts.crossOrigin
|
|
902
926
|
? void 0
|
|
903
|
-
: "use-credentials" ===
|
|
927
|
+
: "use-credentials" === bootstrapScripts.crossOrigin
|
|
904
928
|
? "use-credentials"
|
|
905
929
|
: "")),
|
|
906
930
|
preloadBootstrapScriptOrModule(
|
|
907
931
|
resumableState,
|
|
908
932
|
onHeaders,
|
|
909
|
-
|
|
910
|
-
|
|
933
|
+
importMap,
|
|
934
|
+
nonceStyle
|
|
911
935
|
),
|
|
912
|
-
|
|
936
|
+
bootstrapChunks.push(
|
|
913
937
|
startModuleSrc,
|
|
914
|
-
escapeTextForBrowser(
|
|
938
|
+
escapeTextForBrowser(importMap),
|
|
939
|
+
attributeEnd
|
|
915
940
|
),
|
|
916
|
-
|
|
917
|
-
|
|
941
|
+
externalRuntimeConfig &&
|
|
942
|
+
bootstrapChunks.push(
|
|
918
943
|
scriptNonce,
|
|
919
|
-
escapeTextForBrowser(
|
|
944
|
+
escapeTextForBrowser(externalRuntimeConfig),
|
|
945
|
+
attributeEnd
|
|
920
946
|
),
|
|
921
|
-
"string" === typeof
|
|
922
|
-
|
|
947
|
+
"string" === typeof inlineScriptWithNonce &&
|
|
948
|
+
bootstrapChunks.push(
|
|
923
949
|
scriptIntegirty,
|
|
924
|
-
escapeTextForBrowser(
|
|
950
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
|
951
|
+
attributeEnd
|
|
925
952
|
),
|
|
926
|
-
"string" === typeof
|
|
927
|
-
|
|
953
|
+
"string" === typeof maxHeadersLength &&
|
|
954
|
+
bootstrapChunks.push(
|
|
928
955
|
scriptCrossOrigin,
|
|
929
|
-
escapeTextForBrowser(
|
|
956
|
+
escapeTextForBrowser(maxHeadersLength),
|
|
957
|
+
attributeEnd
|
|
930
958
|
),
|
|
931
|
-
|
|
959
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
960
|
+
bootstrapChunks.push(endAsyncScript);
|
|
932
961
|
return onHeaders;
|
|
933
962
|
}
|
|
934
963
|
function createResumableState(
|
|
@@ -959,18 +988,19 @@
|
|
|
959
988
|
};
|
|
960
989
|
}
|
|
961
990
|
function createPreambleState() {
|
|
962
|
-
return {
|
|
963
|
-
htmlChunks: null,
|
|
964
|
-
headChunks: null,
|
|
965
|
-
bodyChunks: null,
|
|
966
|
-
contribution: NoContribution
|
|
967
|
-
};
|
|
991
|
+
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
|
968
992
|
}
|
|
969
|
-
function createFormatContext(
|
|
993
|
+
function createFormatContext(
|
|
994
|
+
insertionMode,
|
|
995
|
+
selectedValue,
|
|
996
|
+
tagScope,
|
|
997
|
+
viewTransition
|
|
998
|
+
) {
|
|
970
999
|
return {
|
|
971
1000
|
insertionMode: insertionMode,
|
|
972
1001
|
selectedValue: selectedValue,
|
|
973
|
-
tagScope: tagScope
|
|
1002
|
+
tagScope: tagScope,
|
|
1003
|
+
viewTransition: viewTransition
|
|
974
1004
|
};
|
|
975
1005
|
}
|
|
976
1006
|
function createRootFormatContext(namespaceURI) {
|
|
@@ -981,67 +1011,62 @@
|
|
|
981
1011
|
? MATHML_MODE
|
|
982
1012
|
: ROOT_HTML_MODE,
|
|
983
1013
|
null,
|
|
984
|
-
0
|
|
1014
|
+
0,
|
|
1015
|
+
null
|
|
985
1016
|
);
|
|
986
1017
|
}
|
|
987
1018
|
function getChildFormatContext(parentContext, type, props) {
|
|
1019
|
+
var subtreeScope = parentContext.tagScope & -25;
|
|
988
1020
|
switch (type) {
|
|
989
1021
|
case "noscript":
|
|
990
|
-
return createFormatContext(
|
|
991
|
-
HTML_MODE,
|
|
992
|
-
null,
|
|
993
|
-
parentContext.tagScope | 1
|
|
994
|
-
);
|
|
1022
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
|
|
995
1023
|
case "select":
|
|
996
1024
|
return createFormatContext(
|
|
997
1025
|
HTML_MODE,
|
|
998
1026
|
null != props.value ? props.value : props.defaultValue,
|
|
999
|
-
|
|
1027
|
+
subtreeScope,
|
|
1028
|
+
null
|
|
1000
1029
|
);
|
|
1001
1030
|
case "svg":
|
|
1002
|
-
return createFormatContext(SVG_MODE, null,
|
|
1031
|
+
return createFormatContext(SVG_MODE, null, subtreeScope, null);
|
|
1003
1032
|
case "picture":
|
|
1004
|
-
return createFormatContext(
|
|
1005
|
-
HTML_MODE,
|
|
1006
|
-
null,
|
|
1007
|
-
parentContext.tagScope | 2
|
|
1008
|
-
);
|
|
1033
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
|
|
1009
1034
|
case "math":
|
|
1010
|
-
return createFormatContext(MATHML_MODE, null,
|
|
1035
|
+
return createFormatContext(MATHML_MODE, null, subtreeScope, null);
|
|
1011
1036
|
case "foreignObject":
|
|
1012
|
-
return createFormatContext(HTML_MODE, null,
|
|
1037
|
+
return createFormatContext(HTML_MODE, null, subtreeScope, null);
|
|
1013
1038
|
case "table":
|
|
1014
|
-
return createFormatContext(
|
|
1015
|
-
HTML_TABLE_MODE,
|
|
1016
|
-
null,
|
|
1017
|
-
parentContext.tagScope
|
|
1018
|
-
);
|
|
1039
|
+
return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
|
|
1019
1040
|
case "thead":
|
|
1020
1041
|
case "tbody":
|
|
1021
1042
|
case "tfoot":
|
|
1022
1043
|
return createFormatContext(
|
|
1023
1044
|
HTML_TABLE_BODY_MODE,
|
|
1024
1045
|
null,
|
|
1025
|
-
|
|
1046
|
+
subtreeScope,
|
|
1047
|
+
null
|
|
1026
1048
|
);
|
|
1027
1049
|
case "colgroup":
|
|
1028
1050
|
return createFormatContext(
|
|
1029
1051
|
HTML_COLGROUP_MODE,
|
|
1030
1052
|
null,
|
|
1031
|
-
|
|
1053
|
+
subtreeScope,
|
|
1054
|
+
null
|
|
1032
1055
|
);
|
|
1033
1056
|
case "tr":
|
|
1034
1057
|
return createFormatContext(
|
|
1035
1058
|
HTML_TABLE_ROW_MODE,
|
|
1036
1059
|
null,
|
|
1037
|
-
|
|
1060
|
+
subtreeScope,
|
|
1061
|
+
null
|
|
1038
1062
|
);
|
|
1039
1063
|
case "head":
|
|
1040
1064
|
if (parentContext.insertionMode < HTML_MODE)
|
|
1041
1065
|
return createFormatContext(
|
|
1042
1066
|
HTML_HEAD_MODE,
|
|
1043
1067
|
null,
|
|
1044
|
-
|
|
1068
|
+
subtreeScope,
|
|
1069
|
+
null
|
|
1045
1070
|
);
|
|
1046
1071
|
break;
|
|
1047
1072
|
case "html":
|
|
@@ -1049,13 +1074,56 @@
|
|
|
1049
1074
|
return createFormatContext(
|
|
1050
1075
|
HTML_HTML_MODE,
|
|
1051
1076
|
null,
|
|
1052
|
-
|
|
1077
|
+
subtreeScope,
|
|
1078
|
+
null
|
|
1053
1079
|
);
|
|
1054
1080
|
}
|
|
1055
1081
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
|
1056
1082
|
parentContext.insertionMode < HTML_MODE
|
|
1057
|
-
? createFormatContext(HTML_MODE, null,
|
|
1058
|
-
: parentContext
|
|
1083
|
+
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
|
1084
|
+
: parentContext.tagScope !== subtreeScope
|
|
1085
|
+
? createFormatContext(
|
|
1086
|
+
parentContext.insertionMode,
|
|
1087
|
+
parentContext.selectedValue,
|
|
1088
|
+
subtreeScope,
|
|
1089
|
+
null
|
|
1090
|
+
)
|
|
1091
|
+
: parentContext;
|
|
1092
|
+
}
|
|
1093
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
|
1094
|
+
return null === parentViewTransition
|
|
1095
|
+
? null
|
|
1096
|
+
: {
|
|
1097
|
+
update: parentViewTransition.update,
|
|
1098
|
+
enter: "none",
|
|
1099
|
+
exit: "none",
|
|
1100
|
+
share: parentViewTransition.update,
|
|
1101
|
+
name: parentViewTransition.autoName,
|
|
1102
|
+
autoName: parentViewTransition.autoName,
|
|
1103
|
+
nameIdx: 0
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
|
1107
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
|
1108
|
+
return createFormatContext(
|
|
1109
|
+
parentContext.insertionMode,
|
|
1110
|
+
parentContext.selectedValue,
|
|
1111
|
+
parentContext.tagScope | 12,
|
|
1112
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
|
1113
|
+
);
|
|
1114
|
+
}
|
|
1115
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
1116
|
+
resumableState = getSuspenseViewTransition(parentContext.viewTransition);
|
|
1117
|
+
var subtreeScope = parentContext.tagScope | 16;
|
|
1118
|
+
null !== resumableState &&
|
|
1119
|
+
"none" !== resumableState.share &&
|
|
1120
|
+
(subtreeScope |= 64);
|
|
1121
|
+
return createFormatContext(
|
|
1122
|
+
parentContext.insertionMode,
|
|
1123
|
+
parentContext.selectedValue,
|
|
1124
|
+
subtreeScope,
|
|
1125
|
+
resumableState
|
|
1126
|
+
);
|
|
1059
1127
|
}
|
|
1060
1128
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
1061
1129
|
if ("" === text) return textEmbedded;
|
|
@@ -1566,13 +1634,26 @@
|
|
|
1566
1634
|
return content;
|
|
1567
1635
|
}
|
|
1568
1636
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
1569
|
-
(resumableState.instructions & 16) === NothingSent
|
|
1570
|
-
|
|
1571
|
-
renderState.
|
|
1572
|
-
renderState.
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1637
|
+
if ((resumableState.instructions & 16) === NothingSent) {
|
|
1638
|
+
resumableState.instructions |= 16;
|
|
1639
|
+
var preamble = renderState.preamble,
|
|
1640
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
|
1641
|
+
(preamble.htmlChunks || preamble.headChunks) &&
|
|
1642
|
+
0 === bootstrapChunks.length
|
|
1643
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
|
1644
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
1645
|
+
bootstrapChunks.push(
|
|
1646
|
+
endOfStartTag,
|
|
1647
|
+
formReplayingRuntimeScript,
|
|
1648
|
+
endInlineScript
|
|
1649
|
+
))
|
|
1650
|
+
: bootstrapChunks.unshift(
|
|
1651
|
+
renderState.startInlineScript,
|
|
1652
|
+
endOfStartTag,
|
|
1653
|
+
formReplayingRuntimeScript,
|
|
1654
|
+
endInlineScript
|
|
1655
|
+
);
|
|
1656
|
+
}
|
|
1576
1657
|
}
|
|
1577
1658
|
function pushLinkImpl(target, props) {
|
|
1578
1659
|
target.push(startChunkForTag("link"));
|
|
@@ -1757,8 +1838,7 @@
|
|
|
1757
1838
|
preambleState,
|
|
1758
1839
|
hoistableState,
|
|
1759
1840
|
formatContext,
|
|
1760
|
-
textEmbedded
|
|
1761
|
-
isFallback
|
|
1841
|
+
textEmbedded
|
|
1762
1842
|
) {
|
|
1763
1843
|
validateProperties$2(type, props);
|
|
1764
1844
|
("input" !== type && "textarea" !== type && "select" !== type) ||
|
|
@@ -2379,8 +2459,8 @@
|
|
|
2379
2459
|
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
|
2380
2460
|
return JSCompiler_inline_result$jscomp$3;
|
|
2381
2461
|
case "title":
|
|
2382
|
-
var
|
|
2383
|
-
|
|
2462
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
|
2463
|
+
isFallback = formatContext.tagScope & 4;
|
|
2384
2464
|
if (hasOwnProperty.call(props, "children")) {
|
|
2385
2465
|
var children$jscomp$6 = props.children,
|
|
2386
2466
|
child = Array.isArray(children$jscomp$6)
|
|
@@ -2409,7 +2489,7 @@
|
|
|
2409
2489
|
));
|
|
2410
2490
|
}
|
|
2411
2491
|
if (
|
|
2412
|
-
insertionMode === SVG_MODE ||
|
|
2492
|
+
formatContext.insertionMode === SVG_MODE ||
|
|
2413
2493
|
noscriptTagInScope ||
|
|
2414
2494
|
null != props.itemProp
|
|
2415
2495
|
)
|
|
@@ -2424,12 +2504,14 @@
|
|
|
2424
2504
|
(JSCompiler_inline_result$jscomp$4 = void 0));
|
|
2425
2505
|
return JSCompiler_inline_result$jscomp$4;
|
|
2426
2506
|
case "link":
|
|
2427
|
-
var
|
|
2507
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
|
2508
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
|
2509
|
+
rel = props.rel,
|
|
2428
2510
|
href = props.href,
|
|
2429
2511
|
precedence = props.precedence;
|
|
2430
2512
|
if (
|
|
2431
2513
|
formatContext.insertionMode === SVG_MODE ||
|
|
2432
|
-
|
|
2514
|
+
noscriptTagInScope$jscomp$0 ||
|
|
2433
2515
|
null != props.itemProp ||
|
|
2434
2516
|
"string" !== typeof rel ||
|
|
2435
2517
|
"string" !== typeof href ||
|
|
@@ -2530,12 +2612,13 @@
|
|
|
2530
2612
|
props
|
|
2531
2613
|
))
|
|
2532
2614
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2533
|
-
(JSCompiler_inline_result$jscomp$5 = isFallback
|
|
2615
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
|
|
2534
2616
|
? null
|
|
2535
2617
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
2536
2618
|
return JSCompiler_inline_result$jscomp$5;
|
|
2537
2619
|
case "script":
|
|
2538
|
-
var
|
|
2620
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
|
2621
|
+
asyncProp = props.async;
|
|
2539
2622
|
if (
|
|
2540
2623
|
"string" !== typeof props.src ||
|
|
2541
2624
|
!props.src ||
|
|
@@ -2545,7 +2628,7 @@
|
|
|
2545
2628
|
props.onLoad ||
|
|
2546
2629
|
props.onError ||
|
|
2547
2630
|
formatContext.insertionMode === SVG_MODE ||
|
|
2548
|
-
|
|
2631
|
+
noscriptTagInScope$jscomp$1 ||
|
|
2549
2632
|
null != props.itemProp
|
|
2550
2633
|
)
|
|
2551
2634
|
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
|
@@ -2583,8 +2666,7 @@
|
|
|
2583
2666
|
}
|
|
2584
2667
|
return JSCompiler_inline_result$jscomp$6;
|
|
2585
2668
|
case "style":
|
|
2586
|
-
var
|
|
2587
|
-
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
|
2669
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
|
|
2588
2670
|
if (hasOwnProperty.call(props, "children")) {
|
|
2589
2671
|
var children$jscomp$7 = props.children,
|
|
2590
2672
|
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
|
@@ -2605,10 +2687,11 @@
|
|
|
2605
2687
|
);
|
|
2606
2688
|
}
|
|
2607
2689
|
var precedence$jscomp$0 = props.precedence,
|
|
2608
|
-
href$jscomp$0 = props.href
|
|
2690
|
+
href$jscomp$0 = props.href,
|
|
2691
|
+
nonce = props.nonce;
|
|
2609
2692
|
if (
|
|
2610
|
-
insertionMode
|
|
2611
|
-
noscriptTagInScope$jscomp$
|
|
2693
|
+
formatContext.insertionMode === SVG_MODE ||
|
|
2694
|
+
noscriptTagInScope$jscomp$2 ||
|
|
2612
2695
|
null != props.itemProp ||
|
|
2613
2696
|
"string" !== typeof precedence$jscomp$0 ||
|
|
2614
2697
|
"string" !== typeof href$jscomp$0 ||
|
|
@@ -2674,47 +2757,64 @@
|
|
|
2674
2757
|
'React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',
|
|
2675
2758
|
href$jscomp$0
|
|
2676
2759
|
);
|
|
2677
|
-
styleQueue$jscomp$0
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2760
|
+
styleQueue$jscomp$0 ||
|
|
2761
|
+
((styleQueue$jscomp$0 = {
|
|
2762
|
+
precedence: escapeTextForBrowser(precedence$jscomp$0),
|
|
2763
|
+
rules: [],
|
|
2764
|
+
hrefs: [],
|
|
2765
|
+
sheets: new Map()
|
|
2766
|
+
}),
|
|
2767
|
+
renderState.styles.set(
|
|
2768
|
+
precedence$jscomp$0,
|
|
2769
|
+
styleQueue$jscomp$0
|
|
2770
|
+
));
|
|
2771
|
+
var nonceStyle = renderState.nonce.style;
|
|
2772
|
+
if (nonceStyle && nonceStyle !== nonce)
|
|
2773
|
+
console.error(
|
|
2774
|
+
'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',
|
|
2775
|
+
precedence$jscomp$0,
|
|
2776
|
+
nonce,
|
|
2777
|
+
nonceStyle
|
|
2778
|
+
);
|
|
2779
|
+
else {
|
|
2780
|
+
!nonceStyle &&
|
|
2781
|
+
nonce &&
|
|
2782
|
+
console.error(
|
|
2783
|
+
'React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',
|
|
2688
2784
|
precedence$jscomp$0,
|
|
2689
|
-
|
|
2690
|
-
)
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2785
|
+
nonce
|
|
2786
|
+
);
|
|
2787
|
+
styleQueue$jscomp$0.hrefs.push(
|
|
2788
|
+
escapeTextForBrowser(href$jscomp$0)
|
|
2789
|
+
);
|
|
2790
|
+
var target = styleQueue$jscomp$0.rules,
|
|
2791
|
+
children$jscomp$9 = null,
|
|
2792
|
+
innerHTML$jscomp$6 = null,
|
|
2793
|
+
propKey$jscomp$9;
|
|
2794
|
+
for (propKey$jscomp$9 in props)
|
|
2795
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
2796
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
2797
|
+
if (null != propValue$jscomp$9)
|
|
2798
|
+
switch (propKey$jscomp$9) {
|
|
2799
|
+
case "children":
|
|
2800
|
+
children$jscomp$9 = propValue$jscomp$9;
|
|
2801
|
+
break;
|
|
2802
|
+
case "dangerouslySetInnerHTML":
|
|
2803
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
var child$jscomp$2 = Array.isArray(children$jscomp$9)
|
|
2807
|
+
? 2 > children$jscomp$9.length
|
|
2808
|
+
? children$jscomp$9[0]
|
|
2809
|
+
: null
|
|
2810
|
+
: children$jscomp$9;
|
|
2811
|
+
"function" !== typeof child$jscomp$2 &&
|
|
2812
|
+
"symbol" !== typeof child$jscomp$2 &&
|
|
2813
|
+
null !== child$jscomp$2 &&
|
|
2814
|
+
void 0 !== child$jscomp$2 &&
|
|
2815
|
+
target.push(escapeStyleTextContent(child$jscomp$2));
|
|
2816
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
|
|
2817
|
+
}
|
|
2718
2818
|
}
|
|
2719
2819
|
styleQueue$jscomp$0 &&
|
|
2720
2820
|
hoistableState &&
|
|
@@ -2724,9 +2824,11 @@
|
|
|
2724
2824
|
}
|
|
2725
2825
|
return JSCompiler_inline_result$jscomp$7;
|
|
2726
2826
|
case "meta":
|
|
2827
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
|
2828
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
|
2727
2829
|
if (
|
|
2728
2830
|
formatContext.insertionMode === SVG_MODE ||
|
|
2729
|
-
|
|
2831
|
+
noscriptTagInScope$jscomp$3 ||
|
|
2730
2832
|
null != props.itemProp
|
|
2731
2833
|
)
|
|
2732
2834
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
|
@@ -2736,7 +2838,7 @@
|
|
|
2736
2838
|
);
|
|
2737
2839
|
else
|
|
2738
2840
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2739
|
-
(JSCompiler_inline_result$jscomp$8 = isFallback
|
|
2841
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
|
2740
2842
|
? null
|
|
2741
2843
|
: "string" === typeof props.charSet
|
|
2742
2844
|
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
|
@@ -2799,17 +2901,18 @@
|
|
|
2799
2901
|
target$jscomp$0.push(leadingNewline);
|
|
2800
2902
|
return children$jscomp$10;
|
|
2801
2903
|
case "img":
|
|
2802
|
-
var
|
|
2904
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
|
2905
|
+
src = props.src,
|
|
2803
2906
|
srcSet = props.srcSet;
|
|
2804
2907
|
if (
|
|
2805
2908
|
!(
|
|
2806
2909
|
"lazy" === props.loading ||
|
|
2807
2910
|
(!src && !srcSet) ||
|
|
2808
2911
|
("string" !== typeof src && null != src) ||
|
|
2809
|
-
("string" !== typeof srcSet && null != srcSet)
|
|
2912
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
|
2913
|
+
"low" === props.fetchPriority ||
|
|
2914
|
+
pictureOrNoScriptTagInScope
|
|
2810
2915
|
) &&
|
|
2811
|
-
"low" !== props.fetchPriority &&
|
|
2812
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
|
2813
2916
|
("string" !== typeof src ||
|
|
2814
2917
|
":" !== src[4] ||
|
|
2815
2918
|
("d" !== src[0] && "D" !== src[0]) ||
|
|
@@ -2823,6 +2926,9 @@
|
|
|
2823
2926
|
("t" !== srcSet[2] && "T" !== srcSet[2]) ||
|
|
2824
2927
|
("a" !== srcSet[3] && "A" !== srcSet[3]))
|
|
2825
2928
|
) {
|
|
2929
|
+
null !== hoistableState &&
|
|
2930
|
+
formatContext.tagScope & 64 &&
|
|
2931
|
+
(hoistableState.suspenseyImages = !0);
|
|
2826
2932
|
var sizes = "string" === typeof props.sizes ? props.sizes : void 0,
|
|
2827
2933
|
key$jscomp$0 = srcSet ? srcSet + "\n" + (sizes || "") : src,
|
|
2828
2934
|
promotablePreloads = renderState.preloads.images,
|
|
@@ -2914,6 +3020,8 @@
|
|
|
2914
3020
|
var preamble = preambleState || renderState.preamble;
|
|
2915
3021
|
if (preamble.headChunks)
|
|
2916
3022
|
throw Error("The `<head>` tag may only be rendered once.");
|
|
3023
|
+
null !== preambleState &&
|
|
3024
|
+
target$jscomp$0.push(headPreambleContributionChunk);
|
|
2917
3025
|
preamble.headChunks = [];
|
|
2918
3026
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
2919
3027
|
preamble.headChunks,
|
|
@@ -2932,6 +3040,8 @@
|
|
|
2932
3040
|
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
|
2933
3041
|
if (preamble$jscomp$0.bodyChunks)
|
|
2934
3042
|
throw Error("The `<body>` tag may only be rendered once.");
|
|
3043
|
+
null !== preambleState &&
|
|
3044
|
+
target$jscomp$0.push(bodyPreambleContributionChunk);
|
|
2935
3045
|
preamble$jscomp$0.bodyChunks = [];
|
|
2936
3046
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
2937
3047
|
preamble$jscomp$0.bodyChunks,
|
|
@@ -2950,6 +3060,8 @@
|
|
|
2950
3060
|
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
|
2951
3061
|
if (preamble$jscomp$1.htmlChunks)
|
|
2952
3062
|
throw Error("The `<html>` tag may only be rendered once.");
|
|
3063
|
+
null !== preambleState &&
|
|
3064
|
+
target$jscomp$0.push(htmlPreambleContributionChunk);
|
|
2953
3065
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
|
2954
3066
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
2955
3067
|
preamble$jscomp$1.htmlChunks,
|
|
@@ -3034,16 +3146,13 @@
|
|
|
3034
3146
|
renderState = renderState.preamble;
|
|
3035
3147
|
null === renderState.htmlChunks &&
|
|
3036
3148
|
preambleState.htmlChunks &&
|
|
3037
|
-
(
|
|
3038
|
-
(preambleState.contribution |= 1));
|
|
3149
|
+
(renderState.htmlChunks = preambleState.htmlChunks);
|
|
3039
3150
|
null === renderState.headChunks &&
|
|
3040
3151
|
preambleState.headChunks &&
|
|
3041
|
-
(
|
|
3042
|
-
(preambleState.contribution |= 4));
|
|
3152
|
+
(renderState.headChunks = preambleState.headChunks);
|
|
3043
3153
|
null === renderState.bodyChunks &&
|
|
3044
3154
|
preambleState.bodyChunks &&
|
|
3045
|
-
(
|
|
3046
|
-
(preambleState.contribution |= 2));
|
|
3155
|
+
(renderState.bodyChunks = preambleState.bodyChunks);
|
|
3047
3156
|
}
|
|
3048
3157
|
function writeBootstrap(destination, renderState) {
|
|
3049
3158
|
renderState = renderState.bootstrapChunks;
|
|
@@ -3065,13 +3174,6 @@
|
|
|
3065
3174
|
writeChunk(destination, id.toString(16));
|
|
3066
3175
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
|
3067
3176
|
}
|
|
3068
|
-
function writePreambleContribution(destination, preambleState) {
|
|
3069
|
-
preambleState = preambleState.contribution;
|
|
3070
|
-
preambleState !== NoContribution &&
|
|
3071
|
-
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
|
3072
|
-
writeChunk(destination, "" + preambleState),
|
|
3073
|
-
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
|
3074
|
-
}
|
|
3075
3177
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
|
3076
3178
|
switch (formatContext.insertionMode) {
|
|
3077
3179
|
case ROOT_HTML_MODE:
|
|
@@ -3205,6 +3307,7 @@
|
|
|
3205
3307
|
);
|
|
3206
3308
|
var i = 0;
|
|
3207
3309
|
if (hrefs.length) {
|
|
3310
|
+
writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
|
|
3208
3311
|
writeChunk(this, lateStyleTagResourceOpen1);
|
|
3209
3312
|
writeChunk(this, styleQueue.precedence);
|
|
3210
3313
|
for (
|
|
@@ -3237,7 +3340,9 @@
|
|
|
3237
3340
|
) {
|
|
3238
3341
|
currentlyRenderingBoundaryHasStylesToHoist = !1;
|
|
3239
3342
|
destinationHasCapacity = !0;
|
|
3343
|
+
currentlyFlushingRenderState = renderState;
|
|
3240
3344
|
hoistableState.styles.forEach(flushStyleTagsLateForBoundary, destination);
|
|
3345
|
+
currentlyFlushingRenderState = null;
|
|
3241
3346
|
hoistableState.stylesheets.forEach(hasStylesToHoist);
|
|
3242
3347
|
currentlyRenderingBoundaryHasStylesToHoist &&
|
|
3243
3348
|
(renderState.stylesToHoist = !0);
|
|
@@ -3261,6 +3366,7 @@
|
|
|
3261
3366
|
var rules = styleQueue.rules,
|
|
3262
3367
|
hrefs = styleQueue.hrefs;
|
|
3263
3368
|
if (!hasStylesheets || hrefs.length) {
|
|
3369
|
+
writeChunk(this, currentlyFlushingRenderState.startInlineStyle);
|
|
3264
3370
|
writeChunk(this, styleTagResourceOpen1);
|
|
3265
3371
|
writeChunk(this, styleQueue.precedence);
|
|
3266
3372
|
styleQueue = 0;
|
|
@@ -3310,6 +3416,15 @@
|
|
|
3310
3416
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
3311
3417
|
styleQueue.sheets.clear();
|
|
3312
3418
|
}
|
|
3419
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
3420
|
+
(resumableState.instructions & SentCompletedShellId) === NothingSent &&
|
|
3421
|
+
((resumableState.instructions |= SentCompletedShellId),
|
|
3422
|
+
target.push(
|
|
3423
|
+
completedShellIdAttributeStart,
|
|
3424
|
+
escapeTextForBrowser("_" + resumableState.idPrefix + "R_"),
|
|
3425
|
+
attributeEnd
|
|
3426
|
+
));
|
|
3427
|
+
}
|
|
3313
3428
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
3314
3429
|
writeChunk(destination, arrayFirstOpenBracket);
|
|
3315
3430
|
var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
|
|
@@ -3421,7 +3536,7 @@
|
|
|
3421
3536
|
writeChunk(destination, escapeJSObjectForInstructionScripts(name));
|
|
3422
3537
|
}
|
|
3423
3538
|
function createHoistableState() {
|
|
3424
|
-
return { styles: new Set(), stylesheets: new Set() };
|
|
3539
|
+
return { styles: new Set(), stylesheets: new Set(), suspenseyImages: !1 };
|
|
3425
3540
|
}
|
|
3426
3541
|
function preloadBootstrapScriptOrModule(
|
|
3427
3542
|
resumableState,
|
|
@@ -3526,6 +3641,16 @@
|
|
|
3526
3641
|
function hoistStylesheetDependency(stylesheet) {
|
|
3527
3642
|
this.stylesheets.add(stylesheet);
|
|
3528
3643
|
}
|
|
3644
|
+
function hoistHoistables(parentState, childState) {
|
|
3645
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
|
3646
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
|
3647
|
+
childState.suspenseyImages && (parentState.suspenseyImages = !0);
|
|
3648
|
+
}
|
|
3649
|
+
function hasSuspenseyContent(hoistableState) {
|
|
3650
|
+
return (
|
|
3651
|
+
0 < hoistableState.stylesheets.size || hoistableState.suspenseyImages
|
|
3652
|
+
);
|
|
3653
|
+
}
|
|
3529
3654
|
function getComponentNameFromType(type) {
|
|
3530
3655
|
if (null == type) return null;
|
|
3531
3656
|
if ("function" === typeof type)
|
|
@@ -3558,7 +3683,7 @@
|
|
|
3558
3683
|
case REACT_PORTAL_TYPE:
|
|
3559
3684
|
return "Portal";
|
|
3560
3685
|
case REACT_CONTEXT_TYPE:
|
|
3561
|
-
return
|
|
3686
|
+
return type.displayName || "Context";
|
|
3562
3687
|
case REACT_CONSUMER_TYPE:
|
|
3563
3688
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
3564
3689
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -3707,13 +3832,12 @@
|
|
|
3707
3832
|
x >>>= 0;
|
|
3708
3833
|
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
3709
3834
|
}
|
|
3710
|
-
function noop
|
|
3835
|
+
function noop() {}
|
|
3711
3836
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
3712
3837
|
index = thenableState[index];
|
|
3713
3838
|
void 0 === index
|
|
3714
3839
|
? thenableState.push(thenable)
|
|
3715
|
-
: index !== thenable &&
|
|
3716
|
-
(thenable.then(noop$2, noop$2), (thenable = index));
|
|
3840
|
+
: index !== thenable && (thenable.then(noop, noop), (thenable = index));
|
|
3717
3841
|
switch (thenable.status) {
|
|
3718
3842
|
case "fulfilled":
|
|
3719
3843
|
return thenable.value;
|
|
@@ -3721,7 +3845,7 @@
|
|
|
3721
3845
|
throw thenable.reason;
|
|
3722
3846
|
default:
|
|
3723
3847
|
"string" === typeof thenable.status
|
|
3724
|
-
? thenable.then(noop
|
|
3848
|
+
? thenable.then(noop, noop)
|
|
3725
3849
|
: ((thenableState = thenable),
|
|
3726
3850
|
(thenableState.status = "pending"),
|
|
3727
3851
|
thenableState.then(
|
|
@@ -3924,6 +4048,11 @@
|
|
|
3924
4048
|
queue.next = componentIdentity;
|
|
3925
4049
|
}
|
|
3926
4050
|
}
|
|
4051
|
+
function throwOnUseEffectEventCall() {
|
|
4052
|
+
throw Error(
|
|
4053
|
+
"A function wrapped in useEffectEvent can't be called during rendering."
|
|
4054
|
+
);
|
|
4055
|
+
}
|
|
3927
4056
|
function unsupportedStartTransition() {
|
|
3928
4057
|
throw Error("startTransition cannot be called during server rendering.");
|
|
3929
4058
|
}
|
|
@@ -4004,7 +4133,6 @@
|
|
|
4004
4133
|
function unsupportedRefresh() {
|
|
4005
4134
|
throw Error("Cache cannot be refreshed during server rendering.");
|
|
4006
4135
|
}
|
|
4007
|
-
function noop$1() {}
|
|
4008
4136
|
function disabledLog() {}
|
|
4009
4137
|
function disableLogs() {
|
|
4010
4138
|
if (0 === disabledDepth) {
|
|
@@ -4058,6 +4186,27 @@
|
|
|
4058
4186
|
error += "\n at " + structuredStackTrace[i].toString();
|
|
4059
4187
|
return error;
|
|
4060
4188
|
}
|
|
4189
|
+
function formatOwnerStack(error) {
|
|
4190
|
+
var prevPrepareStackTrace = Error.prepareStackTrace;
|
|
4191
|
+
Error.prepareStackTrace = prepareStackTrace;
|
|
4192
|
+
error = error.stack;
|
|
4193
|
+
Error.prepareStackTrace = prevPrepareStackTrace;
|
|
4194
|
+
error.startsWith("Error: react-stack-top-frame\n") &&
|
|
4195
|
+
(error = error.slice(29));
|
|
4196
|
+
prevPrepareStackTrace = error.indexOf("\n");
|
|
4197
|
+
-1 !== prevPrepareStackTrace &&
|
|
4198
|
+
(error = error.slice(prevPrepareStackTrace + 1));
|
|
4199
|
+
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
|
|
4200
|
+
-1 !== prevPrepareStackTrace &&
|
|
4201
|
+
(prevPrepareStackTrace = error.lastIndexOf(
|
|
4202
|
+
"\n",
|
|
4203
|
+
prevPrepareStackTrace
|
|
4204
|
+
));
|
|
4205
|
+
if (-1 !== prevPrepareStackTrace)
|
|
4206
|
+
error = error.slice(0, prevPrepareStackTrace);
|
|
4207
|
+
else return "";
|
|
4208
|
+
return error;
|
|
4209
|
+
}
|
|
4061
4210
|
function describeBuiltInComponentFrame(name) {
|
|
4062
4211
|
if (void 0 === prefix)
|
|
4063
4212
|
try {
|
|
@@ -4230,27 +4379,6 @@
|
|
|
4230
4379
|
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
|
4231
4380
|
return sampleLines;
|
|
4232
4381
|
}
|
|
4233
|
-
function formatOwnerStack(error) {
|
|
4234
|
-
var prevPrepareStackTrace = Error.prepareStackTrace;
|
|
4235
|
-
Error.prepareStackTrace = prepareStackTrace;
|
|
4236
|
-
error = error.stack;
|
|
4237
|
-
Error.prepareStackTrace = prevPrepareStackTrace;
|
|
4238
|
-
error.startsWith("Error: react-stack-top-frame\n") &&
|
|
4239
|
-
(error = error.slice(29));
|
|
4240
|
-
prevPrepareStackTrace = error.indexOf("\n");
|
|
4241
|
-
-1 !== prevPrepareStackTrace &&
|
|
4242
|
-
(error = error.slice(prevPrepareStackTrace + 1));
|
|
4243
|
-
prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame");
|
|
4244
|
-
-1 !== prevPrepareStackTrace &&
|
|
4245
|
-
(prevPrepareStackTrace = error.lastIndexOf(
|
|
4246
|
-
"\n",
|
|
4247
|
-
prevPrepareStackTrace
|
|
4248
|
-
));
|
|
4249
|
-
if (-1 !== prevPrepareStackTrace)
|
|
4250
|
-
error = error.slice(0, prevPrepareStackTrace);
|
|
4251
|
-
else return "";
|
|
4252
|
-
return error;
|
|
4253
|
-
}
|
|
4254
4382
|
function describeComponentStackByType(type) {
|
|
4255
4383
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
4256
4384
|
if ("function" === typeof type)
|
|
@@ -4274,13 +4402,26 @@
|
|
|
4274
4402
|
}
|
|
4275
4403
|
return describeComponentStackByType(type);
|
|
4276
4404
|
}
|
|
4277
|
-
if ("string" === typeof type.name)
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
)
|
|
4283
|
-
|
|
4405
|
+
if ("string" === typeof type.name) {
|
|
4406
|
+
a: {
|
|
4407
|
+
payload = type.name;
|
|
4408
|
+
lazyComponent = type.env;
|
|
4409
|
+
type = type.debugLocation;
|
|
4410
|
+
if (null != type) {
|
|
4411
|
+
type = formatOwnerStack(type);
|
|
4412
|
+
var idx = type.lastIndexOf("\n");
|
|
4413
|
+
type = -1 === idx ? type : type.slice(idx + 1);
|
|
4414
|
+
if (-1 !== type.indexOf(payload)) {
|
|
4415
|
+
payload = "\n" + type;
|
|
4416
|
+
break a;
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4419
|
+
payload = describeBuiltInComponentFrame(
|
|
4420
|
+
payload + (lazyComponent ? " [" + lazyComponent + "]" : "")
|
|
4421
|
+
);
|
|
4422
|
+
}
|
|
4423
|
+
return payload;
|
|
4424
|
+
}
|
|
4284
4425
|
}
|
|
4285
4426
|
switch (type) {
|
|
4286
4427
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
@@ -4290,6 +4431,19 @@
|
|
|
4290
4431
|
}
|
|
4291
4432
|
return "";
|
|
4292
4433
|
}
|
|
4434
|
+
function resetOwnerStackLimit() {
|
|
4435
|
+
var now = getCurrentTime();
|
|
4436
|
+
1e3 < now - lastResetTime &&
|
|
4437
|
+
((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
|
|
4438
|
+
(lastResetTime = now));
|
|
4439
|
+
}
|
|
4440
|
+
function isEligibleForOutlining(request, boundary) {
|
|
4441
|
+
return (
|
|
4442
|
+
(500 < boundary.byteSize ||
|
|
4443
|
+
hasSuspenseyContent(boundary.contentState)) &&
|
|
4444
|
+
null === boundary.contentPreamble
|
|
4445
|
+
);
|
|
4446
|
+
}
|
|
4293
4447
|
function defaultErrorHandler(error) {
|
|
4294
4448
|
if (
|
|
4295
4449
|
"object" === typeof error &&
|
|
@@ -4310,7 +4464,7 @@
|
|
|
4310
4464
|
: error.splice(
|
|
4311
4465
|
0,
|
|
4312
4466
|
0,
|
|
4313
|
-
"\u001b[0m\u001b[7m%c%s\u001b[0m%c
|
|
4467
|
+
"\u001b[0m\u001b[7m%c%s\u001b[0m%c",
|
|
4314
4468
|
"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",
|
|
4315
4469
|
" " + JSCompiler_inline_result + " ",
|
|
4316
4470
|
""
|
|
@@ -4321,7 +4475,6 @@
|
|
|
4321
4475
|
} else console.error(error);
|
|
4322
4476
|
return null;
|
|
4323
4477
|
}
|
|
4324
|
-
function noop() {}
|
|
4325
4478
|
function RequestInstance(
|
|
4326
4479
|
resumableState,
|
|
4327
4480
|
renderState,
|
|
@@ -4347,6 +4500,7 @@
|
|
|
4347
4500
|
this.fatalError = null;
|
|
4348
4501
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4349
4502
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
4503
|
+
this.byteSize = 0;
|
|
4350
4504
|
this.abortableTasks = abortSet;
|
|
4351
4505
|
this.pingedTasks = [];
|
|
4352
4506
|
this.clientRenderedBoundaries = [];
|
|
@@ -4376,10 +4530,7 @@
|
|
|
4376
4530
|
onPostpone,
|
|
4377
4531
|
formState
|
|
4378
4532
|
) {
|
|
4379
|
-
|
|
4380
|
-
1e3 < now - lastResetTime &&
|
|
4381
|
-
((ReactSharedInternals.recentlyCreatedOwnerStacks = 0),
|
|
4382
|
-
(lastResetTime = now));
|
|
4533
|
+
resetOwnerStackLimit();
|
|
4383
4534
|
resumableState = new RequestInstance(
|
|
4384
4535
|
resumableState,
|
|
4385
4536
|
renderState,
|
|
@@ -4417,7 +4568,7 @@
|
|
|
4417
4568
|
null,
|
|
4418
4569
|
emptyTreeContext,
|
|
4419
4570
|
null,
|
|
4420
|
-
|
|
4571
|
+
null,
|
|
4421
4572
|
emptyContextObject,
|
|
4422
4573
|
null
|
|
4423
4574
|
);
|
|
@@ -4459,6 +4610,121 @@
|
|
|
4459
4610
|
};
|
|
4460
4611
|
return children;
|
|
4461
4612
|
}
|
|
4613
|
+
function resumeRequest(
|
|
4614
|
+
children,
|
|
4615
|
+
postponedState,
|
|
4616
|
+
renderState,
|
|
4617
|
+
onError,
|
|
4618
|
+
onAllReady,
|
|
4619
|
+
onShellReady,
|
|
4620
|
+
onShellError,
|
|
4621
|
+
onFatalError,
|
|
4622
|
+
onPostpone
|
|
4623
|
+
) {
|
|
4624
|
+
resetOwnerStackLimit();
|
|
4625
|
+
renderState = new RequestInstance(
|
|
4626
|
+
postponedState.resumableState,
|
|
4627
|
+
renderState,
|
|
4628
|
+
postponedState.rootFormatContext,
|
|
4629
|
+
postponedState.progressiveChunkSize,
|
|
4630
|
+
onError,
|
|
4631
|
+
onAllReady,
|
|
4632
|
+
onShellReady,
|
|
4633
|
+
onShellError,
|
|
4634
|
+
onFatalError,
|
|
4635
|
+
onPostpone,
|
|
4636
|
+
null
|
|
4637
|
+
);
|
|
4638
|
+
renderState.nextSegmentId = postponedState.nextSegmentId;
|
|
4639
|
+
if ("number" === typeof postponedState.replaySlots)
|
|
4640
|
+
return (
|
|
4641
|
+
(onError = createPendingSegment(
|
|
4642
|
+
renderState,
|
|
4643
|
+
0,
|
|
4644
|
+
null,
|
|
4645
|
+
postponedState.rootFormatContext,
|
|
4646
|
+
!1,
|
|
4647
|
+
!1
|
|
4648
|
+
)),
|
|
4649
|
+
(onError.parentFlushed = !0),
|
|
4650
|
+
(children = createRenderTask(
|
|
4651
|
+
renderState,
|
|
4652
|
+
null,
|
|
4653
|
+
children,
|
|
4654
|
+
-1,
|
|
4655
|
+
null,
|
|
4656
|
+
onError,
|
|
4657
|
+
null,
|
|
4658
|
+
null,
|
|
4659
|
+
renderState.abortableTasks,
|
|
4660
|
+
null,
|
|
4661
|
+
postponedState.rootFormatContext,
|
|
4662
|
+
null,
|
|
4663
|
+
emptyTreeContext,
|
|
4664
|
+
null,
|
|
4665
|
+
null,
|
|
4666
|
+
emptyContextObject,
|
|
4667
|
+
null
|
|
4668
|
+
)),
|
|
4669
|
+
pushComponentStack(children),
|
|
4670
|
+
renderState.pingedTasks.push(children),
|
|
4671
|
+
renderState
|
|
4672
|
+
);
|
|
4673
|
+
children = createReplayTask(
|
|
4674
|
+
renderState,
|
|
4675
|
+
null,
|
|
4676
|
+
{
|
|
4677
|
+
nodes: postponedState.replayNodes,
|
|
4678
|
+
slots: postponedState.replaySlots,
|
|
4679
|
+
pendingTasks: 0
|
|
4680
|
+
},
|
|
4681
|
+
children,
|
|
4682
|
+
-1,
|
|
4683
|
+
null,
|
|
4684
|
+
null,
|
|
4685
|
+
renderState.abortableTasks,
|
|
4686
|
+
null,
|
|
4687
|
+
postponedState.rootFormatContext,
|
|
4688
|
+
null,
|
|
4689
|
+
emptyTreeContext,
|
|
4690
|
+
null,
|
|
4691
|
+
null,
|
|
4692
|
+
emptyContextObject,
|
|
4693
|
+
null
|
|
4694
|
+
);
|
|
4695
|
+
pushComponentStack(children);
|
|
4696
|
+
renderState.pingedTasks.push(children);
|
|
4697
|
+
return renderState;
|
|
4698
|
+
}
|
|
4699
|
+
function resumeAndPrerenderRequest(
|
|
4700
|
+
children,
|
|
4701
|
+
postponedState,
|
|
4702
|
+
renderState,
|
|
4703
|
+
onError,
|
|
4704
|
+
onAllReady,
|
|
4705
|
+
onShellReady,
|
|
4706
|
+
onShellError,
|
|
4707
|
+
onFatalError,
|
|
4708
|
+
onPostpone
|
|
4709
|
+
) {
|
|
4710
|
+
children = resumeRequest(
|
|
4711
|
+
children,
|
|
4712
|
+
postponedState,
|
|
4713
|
+
renderState,
|
|
4714
|
+
onError,
|
|
4715
|
+
onAllReady,
|
|
4716
|
+
onShellReady,
|
|
4717
|
+
onShellError,
|
|
4718
|
+
onFatalError,
|
|
4719
|
+
onPostpone
|
|
4720
|
+
);
|
|
4721
|
+
children.trackedPostpones = {
|
|
4722
|
+
workingMap: new Map(),
|
|
4723
|
+
rootNodes: [],
|
|
4724
|
+
rootSlots: null
|
|
4725
|
+
};
|
|
4726
|
+
return children;
|
|
4727
|
+
}
|
|
4462
4728
|
function resolveRequest() {
|
|
4463
4729
|
if (currentRequest) return currentRequest;
|
|
4464
4730
|
var store = requestStorage.getStore();
|
|
@@ -4478,15 +4744,17 @@
|
|
|
4478
4744
|
}
|
|
4479
4745
|
function createSuspenseBoundary(
|
|
4480
4746
|
request,
|
|
4747
|
+
row,
|
|
4481
4748
|
fallbackAbortableTasks,
|
|
4482
4749
|
contentPreamble,
|
|
4483
4750
|
fallbackPreamble
|
|
4484
4751
|
) {
|
|
4485
|
-
|
|
4752
|
+
fallbackAbortableTasks = {
|
|
4486
4753
|
status: PENDING,
|
|
4487
4754
|
rootSegmentID: -1,
|
|
4488
4755
|
parentFlushed: !1,
|
|
4489
4756
|
pendingTasks: 0,
|
|
4757
|
+
row: row,
|
|
4490
4758
|
completedSegments: [],
|
|
4491
4759
|
byteSize: 0,
|
|
4492
4760
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
@@ -4501,6 +4769,17 @@
|
|
|
4501
4769
|
errorStack: null,
|
|
4502
4770
|
errorComponentStack: null
|
|
4503
4771
|
};
|
|
4772
|
+
null !== row &&
|
|
4773
|
+
(row.pendingTasks++,
|
|
4774
|
+
(contentPreamble = row.boundaries),
|
|
4775
|
+
null !== contentPreamble &&
|
|
4776
|
+
(request.allPendingTasks++,
|
|
4777
|
+
fallbackAbortableTasks.pendingTasks++,
|
|
4778
|
+
contentPreamble.push(fallbackAbortableTasks)),
|
|
4779
|
+
(request = row.inheritedHoistables),
|
|
4780
|
+
null !== request &&
|
|
4781
|
+
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
|
4782
|
+
return fallbackAbortableTasks;
|
|
4504
4783
|
}
|
|
4505
4784
|
function createRenderTask(
|
|
4506
4785
|
request,
|
|
@@ -4516,8 +4795,8 @@
|
|
|
4516
4795
|
formatContext,
|
|
4517
4796
|
context,
|
|
4518
4797
|
treeContext,
|
|
4798
|
+
row,
|
|
4519
4799
|
componentStack,
|
|
4520
|
-
isFallback,
|
|
4521
4800
|
legacyContext,
|
|
4522
4801
|
debugTask
|
|
4523
4802
|
) {
|
|
@@ -4525,6 +4804,7 @@
|
|
|
4525
4804
|
null === blockedBoundary
|
|
4526
4805
|
? request.pendingRootTasks++
|
|
4527
4806
|
: blockedBoundary.pendingTasks++;
|
|
4807
|
+
null !== row && row.pendingTasks++;
|
|
4528
4808
|
var task = {
|
|
4529
4809
|
replay: null,
|
|
4530
4810
|
node: node,
|
|
@@ -4541,9 +4821,9 @@
|
|
|
4541
4821
|
formatContext: formatContext,
|
|
4542
4822
|
context: context,
|
|
4543
4823
|
treeContext: treeContext,
|
|
4824
|
+
row: row,
|
|
4544
4825
|
componentStack: componentStack,
|
|
4545
|
-
thenableState: thenableState
|
|
4546
|
-
isFallback: isFallback
|
|
4826
|
+
thenableState: thenableState
|
|
4547
4827
|
};
|
|
4548
4828
|
task.debugTask = debugTask;
|
|
4549
4829
|
abortSet.add(task);
|
|
@@ -4562,8 +4842,8 @@
|
|
|
4562
4842
|
formatContext,
|
|
4563
4843
|
context,
|
|
4564
4844
|
treeContext,
|
|
4845
|
+
row,
|
|
4565
4846
|
componentStack,
|
|
4566
|
-
isFallback,
|
|
4567
4847
|
legacyContext,
|
|
4568
4848
|
debugTask
|
|
4569
4849
|
) {
|
|
@@ -4571,6 +4851,7 @@
|
|
|
4571
4851
|
null === blockedBoundary
|
|
4572
4852
|
? request.pendingRootTasks++
|
|
4573
4853
|
: blockedBoundary.pendingTasks++;
|
|
4854
|
+
null !== row && row.pendingTasks++;
|
|
4574
4855
|
replay.pendingTasks++;
|
|
4575
4856
|
var task = {
|
|
4576
4857
|
replay: replay,
|
|
@@ -4588,9 +4869,9 @@
|
|
|
4588
4869
|
formatContext: formatContext,
|
|
4589
4870
|
context: context,
|
|
4590
4871
|
treeContext: treeContext,
|
|
4872
|
+
row: row,
|
|
4591
4873
|
componentStack: componentStack,
|
|
4592
|
-
thenableState: thenableState
|
|
4593
|
-
isFallback: isFallback
|
|
4874
|
+
thenableState: thenableState
|
|
4594
4875
|
};
|
|
4595
4876
|
task.debugTask = debugTask;
|
|
4596
4877
|
abortSet.add(task);
|
|
@@ -4663,7 +4944,28 @@
|
|
|
4663
4944
|
}
|
|
4664
4945
|
return JSCompiler_inline_result$jscomp$0;
|
|
4665
4946
|
}
|
|
4666
|
-
function
|
|
4947
|
+
function pushHaltedAwaitOnComponentStack(task, debugInfo) {
|
|
4948
|
+
if (null != debugInfo)
|
|
4949
|
+
for (var i = debugInfo.length - 1; 0 <= i; i--) {
|
|
4950
|
+
var info = debugInfo[i];
|
|
4951
|
+
if ("string" === typeof info.name) break;
|
|
4952
|
+
if ("number" === typeof info.time) break;
|
|
4953
|
+
if (null != info.awaited) {
|
|
4954
|
+
var bestStack = null == info.debugStack ? info.awaited : info;
|
|
4955
|
+
if (void 0 !== bestStack.debugStack) {
|
|
4956
|
+
task.componentStack = {
|
|
4957
|
+
parent: task.componentStack,
|
|
4958
|
+
type: info,
|
|
4959
|
+
owner: bestStack.owner,
|
|
4960
|
+
stack: bestStack.debugStack
|
|
4961
|
+
};
|
|
4962
|
+
task.debugTask = bestStack.debugTask;
|
|
4963
|
+
break;
|
|
4964
|
+
}
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
}
|
|
4968
|
+
function pushServerComponentStack(task, debugInfo) {
|
|
4667
4969
|
if (null != debugInfo)
|
|
4668
4970
|
for (var i = 0; i < debugInfo.length; i++) {
|
|
4669
4971
|
var componentInfo = debugInfo[i];
|
|
@@ -4703,6 +5005,18 @@
|
|
|
4703
5005
|
pushServerComponentStack(task, node._debugInfo);
|
|
4704
5006
|
}
|
|
4705
5007
|
}
|
|
5008
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
5009
|
+
componentStack
|
|
5010
|
+
) {
|
|
5011
|
+
return null === componentStack
|
|
5012
|
+
? null
|
|
5013
|
+
: {
|
|
5014
|
+
parent: componentStack.parent,
|
|
5015
|
+
type: "Suspense Fallback",
|
|
5016
|
+
owner: componentStack.owner,
|
|
5017
|
+
stack: componentStack.stack
|
|
5018
|
+
};
|
|
5019
|
+
}
|
|
4706
5020
|
function getThrownInfo(node$jscomp$0) {
|
|
4707
5021
|
var errorInfo = {};
|
|
4708
5022
|
node$jscomp$0 &&
|
|
@@ -4774,6 +5088,193 @@
|
|
|
4774
5088
|
? ((request.status = CLOSED), request.destination.destroy(error))
|
|
4775
5089
|
: ((request.status = 13), (request.fatalError = error));
|
|
4776
5090
|
}
|
|
5091
|
+
function finishSuspenseListRow(request, row) {
|
|
5092
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
|
5093
|
+
}
|
|
5094
|
+
function unblockSuspenseListRow(
|
|
5095
|
+
request,
|
|
5096
|
+
unblockedRow,
|
|
5097
|
+
inheritedHoistables
|
|
5098
|
+
) {
|
|
5099
|
+
for (; null !== unblockedRow; ) {
|
|
5100
|
+
null !== inheritedHoistables &&
|
|
5101
|
+
(hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
|
|
5102
|
+
(unblockedRow.inheritedHoistables = inheritedHoistables));
|
|
5103
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
|
5104
|
+
if (null !== unblockedBoundaries) {
|
|
5105
|
+
unblockedRow.boundaries = null;
|
|
5106
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
|
5107
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
|
5108
|
+
null !== inheritedHoistables &&
|
|
5109
|
+
hoistHoistables(
|
|
5110
|
+
unblockedBoundary.contentState,
|
|
5111
|
+
inheritedHoistables
|
|
5112
|
+
);
|
|
5113
|
+
finishedTask(request, unblockedBoundary, null, null);
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
unblockedRow.pendingTasks--;
|
|
5117
|
+
if (0 < unblockedRow.pendingTasks) break;
|
|
5118
|
+
inheritedHoistables = unblockedRow.hoistables;
|
|
5119
|
+
unblockedRow = unblockedRow.next;
|
|
5120
|
+
}
|
|
5121
|
+
}
|
|
5122
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
|
5123
|
+
var boundaries = togetherRow.boundaries;
|
|
5124
|
+
if (
|
|
5125
|
+
null !== boundaries &&
|
|
5126
|
+
togetherRow.pendingTasks === boundaries.length
|
|
5127
|
+
) {
|
|
5128
|
+
for (
|
|
5129
|
+
var allCompleteAndInlinable = !0, i = 0;
|
|
5130
|
+
i < boundaries.length;
|
|
5131
|
+
i++
|
|
5132
|
+
) {
|
|
5133
|
+
var rowBoundary = boundaries[i];
|
|
5134
|
+
if (
|
|
5135
|
+
1 !== rowBoundary.pendingTasks ||
|
|
5136
|
+
rowBoundary.parentFlushed ||
|
|
5137
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
5138
|
+
) {
|
|
5139
|
+
allCompleteAndInlinable = !1;
|
|
5140
|
+
break;
|
|
5141
|
+
}
|
|
5142
|
+
}
|
|
5143
|
+
allCompleteAndInlinable &&
|
|
5144
|
+
unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
|
5145
|
+
}
|
|
5146
|
+
}
|
|
5147
|
+
function createSuspenseListRow(previousRow) {
|
|
5148
|
+
var newRow = {
|
|
5149
|
+
pendingTasks: 1,
|
|
5150
|
+
boundaries: null,
|
|
5151
|
+
hoistables: createHoistableState(),
|
|
5152
|
+
inheritedHoistables: null,
|
|
5153
|
+
together: !1,
|
|
5154
|
+
next: null
|
|
5155
|
+
};
|
|
5156
|
+
null !== previousRow &&
|
|
5157
|
+
0 < previousRow.pendingTasks &&
|
|
5158
|
+
(newRow.pendingTasks++,
|
|
5159
|
+
(newRow.boundaries = []),
|
|
5160
|
+
(previousRow.next = newRow));
|
|
5161
|
+
return newRow;
|
|
5162
|
+
}
|
|
5163
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
5164
|
+
var prevKeyPath = task.keyPath,
|
|
5165
|
+
prevTreeContext = task.treeContext,
|
|
5166
|
+
prevRow = task.row,
|
|
5167
|
+
previousComponentStack = task.componentStack;
|
|
5168
|
+
var previousDebugTask = task.debugTask;
|
|
5169
|
+
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
|
5170
|
+
task.keyPath = keyPath;
|
|
5171
|
+
keyPath = rows.length;
|
|
5172
|
+
var previousSuspenseListRow = null;
|
|
5173
|
+
if (null !== task.replay) {
|
|
5174
|
+
var resumeSlots = task.replay.slots;
|
|
5175
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
|
5176
|
+
for (var n = 0; n < keyPath; n++) {
|
|
5177
|
+
var i =
|
|
5178
|
+
"backwards" !== revealOrder &&
|
|
5179
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
5180
|
+
? n
|
|
5181
|
+
: keyPath - 1 - n,
|
|
5182
|
+
node = rows[i];
|
|
5183
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
5184
|
+
previousSuspenseListRow
|
|
5185
|
+
);
|
|
5186
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
|
5187
|
+
var resumeSegmentID = resumeSlots[i];
|
|
5188
|
+
"number" === typeof resumeSegmentID
|
|
5189
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
|
5190
|
+
delete resumeSlots[i])
|
|
5191
|
+
: renderNode(request, task, node, i);
|
|
5192
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5193
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5194
|
+
}
|
|
5195
|
+
else
|
|
5196
|
+
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
|
5197
|
+
(n =
|
|
5198
|
+
"backwards" !== revealOrder &&
|
|
5199
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
5200
|
+
? resumeSlots
|
|
5201
|
+
: keyPath - 1 - resumeSlots),
|
|
5202
|
+
(i = rows[n]),
|
|
5203
|
+
warnForMissingKey(request, task, i),
|
|
5204
|
+
(task.row = previousSuspenseListRow =
|
|
5205
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
5206
|
+
(task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
|
|
5207
|
+
renderNode(request, task, i, n),
|
|
5208
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5209
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5210
|
+
} else if (
|
|
5211
|
+
"backwards" !== revealOrder &&
|
|
5212
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
5213
|
+
)
|
|
5214
|
+
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
|
5215
|
+
(resumeSlots = rows[revealOrder]),
|
|
5216
|
+
warnForMissingKey(request, task, resumeSlots),
|
|
5217
|
+
(task.row = previousSuspenseListRow =
|
|
5218
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
5219
|
+
(task.treeContext = pushTreeContext(
|
|
5220
|
+
prevTreeContext,
|
|
5221
|
+
keyPath,
|
|
5222
|
+
revealOrder
|
|
5223
|
+
)),
|
|
5224
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
|
5225
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5226
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5227
|
+
else {
|
|
5228
|
+
revealOrder = task.blockedSegment;
|
|
5229
|
+
resumeSlots = revealOrder.children.length;
|
|
5230
|
+
n = revealOrder.chunks.length;
|
|
5231
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
|
5232
|
+
node = rows[i];
|
|
5233
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
5234
|
+
previousSuspenseListRow
|
|
5235
|
+
);
|
|
5236
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
|
5237
|
+
resumeSegmentID = createPendingSegment(
|
|
5238
|
+
request,
|
|
5239
|
+
n,
|
|
5240
|
+
null,
|
|
5241
|
+
task.formatContext,
|
|
5242
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
|
5243
|
+
!0
|
|
5244
|
+
);
|
|
5245
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
|
5246
|
+
task.blockedSegment = resumeSegmentID;
|
|
5247
|
+
warnForMissingKey(request, task, node);
|
|
5248
|
+
try {
|
|
5249
|
+
renderNode(request, task, node, i),
|
|
5250
|
+
resumeSegmentID.lastPushedText &&
|
|
5251
|
+
resumeSegmentID.textEmbedded &&
|
|
5252
|
+
resumeSegmentID.chunks.push(textSeparator),
|
|
5253
|
+
(resumeSegmentID.status = COMPLETED),
|
|
5254
|
+
finishedSegment(request, task.blockedBoundary, resumeSegmentID),
|
|
5255
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
5256
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
5257
|
+
} catch (thrownValue) {
|
|
5258
|
+
throw (
|
|
5259
|
+
((resumeSegmentID.status =
|
|
5260
|
+
12 === request.status ? ABORTED : ERRORED),
|
|
5261
|
+
thrownValue)
|
|
5262
|
+
);
|
|
5263
|
+
}
|
|
5264
|
+
}
|
|
5265
|
+
task.blockedSegment = revealOrder;
|
|
5266
|
+
revealOrder.lastPushedText = !1;
|
|
5267
|
+
}
|
|
5268
|
+
null !== prevRow &&
|
|
5269
|
+
null !== previousSuspenseListRow &&
|
|
5270
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
|
5271
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
|
5272
|
+
task.treeContext = prevTreeContext;
|
|
5273
|
+
task.row = prevRow;
|
|
5274
|
+
task.keyPath = prevKeyPath;
|
|
5275
|
+
task.componentStack = previousComponentStack;
|
|
5276
|
+
task.debugTask = previousDebugTask;
|
|
5277
|
+
}
|
|
4777
5278
|
function renderWithHooks(
|
|
4778
5279
|
request,
|
|
4779
5280
|
task,
|
|
@@ -5258,26 +5759,30 @@
|
|
|
5258
5759
|
type.displayName || type.name || "Component"
|
|
5259
5760
|
);
|
|
5260
5761
|
if ("function" === typeof type.getDerivedStateFromProps) {
|
|
5261
|
-
var
|
|
5262
|
-
|
|
5762
|
+
var componentName$jscomp$4 =
|
|
5763
|
+
getComponentNameFromType(type) || "Unknown";
|
|
5764
|
+
didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5765
|
+
componentName$jscomp$4
|
|
5766
|
+
] ||
|
|
5263
5767
|
(console.error(
|
|
5264
5768
|
"%s: Function components do not support getDerivedStateFromProps.",
|
|
5265
|
-
|
|
5769
|
+
componentName$jscomp$4
|
|
5266
5770
|
),
|
|
5267
|
-
(didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5268
|
-
|
|
5771
|
+
(didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5772
|
+
componentName$jscomp$4
|
|
5773
|
+
] = !0));
|
|
5269
5774
|
}
|
|
5270
5775
|
if (
|
|
5271
5776
|
"object" === typeof type.contextType &&
|
|
5272
5777
|
null !== type.contextType
|
|
5273
5778
|
) {
|
|
5274
|
-
var
|
|
5275
|
-
didWarnAboutContextTypeOnFunctionComponent[
|
|
5779
|
+
var _componentName2 = getComponentNameFromType(type) || "Unknown";
|
|
5780
|
+
didWarnAboutContextTypeOnFunctionComponent[_componentName2] ||
|
|
5276
5781
|
(console.error(
|
|
5277
5782
|
"%s: Function components do not support contextType.",
|
|
5278
|
-
|
|
5783
|
+
_componentName2
|
|
5279
5784
|
),
|
|
5280
|
-
(didWarnAboutContextTypeOnFunctionComponent[
|
|
5785
|
+
(didWarnAboutContextTypeOnFunctionComponent[_componentName2] =
|
|
5281
5786
|
!0));
|
|
5282
5787
|
}
|
|
5283
5788
|
finishFunctionComponent(
|
|
@@ -5311,16 +5816,15 @@
|
|
|
5311
5816
|
task.blockedPreamble,
|
|
5312
5817
|
task.hoistableState,
|
|
5313
5818
|
task.formatContext,
|
|
5314
|
-
segment.lastPushedText
|
|
5315
|
-
task.isFallback
|
|
5819
|
+
segment.lastPushedText
|
|
5316
5820
|
);
|
|
5317
5821
|
segment.lastPushedText = !1;
|
|
5318
|
-
var
|
|
5319
|
-
|
|
5822
|
+
var _prevContext2 = task.formatContext,
|
|
5823
|
+
_prevKeyPath3 = task.keyPath;
|
|
5320
5824
|
task.keyPath = keyPath;
|
|
5321
5825
|
if (
|
|
5322
5826
|
(task.formatContext = getChildFormatContext(
|
|
5323
|
-
|
|
5827
|
+
_prevContext2,
|
|
5324
5828
|
type,
|
|
5325
5829
|
props
|
|
5326
5830
|
)).insertionMode === HTML_HEAD_MODE
|
|
@@ -5334,30 +5838,21 @@
|
|
|
5334
5838
|
!1
|
|
5335
5839
|
);
|
|
5336
5840
|
segment.preambleChildren.push(preambleSegment);
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
task.
|
|
5348
|
-
|
|
5349
|
-
task.context,
|
|
5350
|
-
task.treeContext,
|
|
5351
|
-
task.componentStack,
|
|
5352
|
-
task.isFallback,
|
|
5353
|
-
emptyContextObject,
|
|
5354
|
-
task.debugTask
|
|
5355
|
-
);
|
|
5356
|
-
pushComponentStack(preambleTask);
|
|
5357
|
-
request.pingedTasks.push(preambleTask);
|
|
5841
|
+
task.blockedSegment = preambleSegment;
|
|
5842
|
+
try {
|
|
5843
|
+
(preambleSegment.status = 6),
|
|
5844
|
+
renderNode(request, task, _children, -1),
|
|
5845
|
+
preambleSegment.lastPushedText &&
|
|
5846
|
+
preambleSegment.textEmbedded &&
|
|
5847
|
+
preambleSegment.chunks.push(textSeparator),
|
|
5848
|
+
(preambleSegment.status = COMPLETED),
|
|
5849
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
|
5850
|
+
} finally {
|
|
5851
|
+
task.blockedSegment = segment;
|
|
5852
|
+
}
|
|
5358
5853
|
} else renderNode(request, task, _children, -1);
|
|
5359
|
-
task.formatContext =
|
|
5360
|
-
task.keyPath =
|
|
5854
|
+
task.formatContext = _prevContext2;
|
|
5855
|
+
task.keyPath = _prevKeyPath3;
|
|
5361
5856
|
a: {
|
|
5362
5857
|
var target = segment.chunks,
|
|
5363
5858
|
resumableState = request.resumableState;
|
|
@@ -5382,19 +5877,19 @@
|
|
|
5382
5877
|
case "wbr":
|
|
5383
5878
|
break a;
|
|
5384
5879
|
case "body":
|
|
5385
|
-
if (
|
|
5880
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
|
|
5386
5881
|
resumableState.hasBody = !0;
|
|
5387
5882
|
break a;
|
|
5388
5883
|
}
|
|
5389
5884
|
break;
|
|
5390
5885
|
case "html":
|
|
5391
|
-
if (
|
|
5886
|
+
if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
|
|
5392
5887
|
resumableState.hasHtml = !0;
|
|
5393
5888
|
break a;
|
|
5394
5889
|
}
|
|
5395
5890
|
break;
|
|
5396
5891
|
case "head":
|
|
5397
|
-
if (
|
|
5892
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
|
|
5398
5893
|
}
|
|
5399
5894
|
target.push(endChunkForTag(type));
|
|
5400
5895
|
}
|
|
@@ -5412,18 +5907,94 @@
|
|
|
5412
5907
|
task.keyPath = prevKeyPath$jscomp$1;
|
|
5413
5908
|
return;
|
|
5414
5909
|
case REACT_ACTIVITY_TYPE:
|
|
5415
|
-
|
|
5416
|
-
|
|
5910
|
+
var segment$jscomp$0 = task.blockedSegment;
|
|
5911
|
+
if (null === segment$jscomp$0) {
|
|
5912
|
+
if ("hidden" !== props.mode) {
|
|
5913
|
+
var prevKeyPath$jscomp$2 = task.keyPath;
|
|
5914
|
+
task.keyPath = keyPath;
|
|
5915
|
+
renderNode(request, task, props.children, -1);
|
|
5916
|
+
task.keyPath = prevKeyPath$jscomp$2;
|
|
5917
|
+
}
|
|
5918
|
+
} else if ("hidden" !== props.mode) {
|
|
5919
|
+
segment$jscomp$0.chunks.push(startActivityBoundary);
|
|
5920
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5921
|
+
var _prevKeyPath4 = task.keyPath;
|
|
5417
5922
|
task.keyPath = keyPath;
|
|
5418
|
-
|
|
5419
|
-
task.keyPath =
|
|
5923
|
+
renderNode(request, task, props.children, -1);
|
|
5924
|
+
task.keyPath = _prevKeyPath4;
|
|
5925
|
+
segment$jscomp$0.chunks.push(endActivityBoundary);
|
|
5926
|
+
segment$jscomp$0.lastPushedText = !1;
|
|
5420
5927
|
}
|
|
5421
5928
|
return;
|
|
5422
5929
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5930
|
+
a: {
|
|
5931
|
+
var children$jscomp$0 = props.children,
|
|
5932
|
+
revealOrder = props.revealOrder;
|
|
5933
|
+
if (
|
|
5934
|
+
"forwards" === revealOrder ||
|
|
5935
|
+
"backwards" === revealOrder ||
|
|
5936
|
+
"unstable_legacy-backwards" === revealOrder
|
|
5937
|
+
) {
|
|
5938
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
5939
|
+
renderSuspenseListRows(
|
|
5940
|
+
request,
|
|
5941
|
+
task,
|
|
5942
|
+
keyPath,
|
|
5943
|
+
children$jscomp$0,
|
|
5944
|
+
revealOrder
|
|
5945
|
+
);
|
|
5946
|
+
break a;
|
|
5947
|
+
}
|
|
5948
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
5949
|
+
if (iteratorFn) {
|
|
5950
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
5951
|
+
if (iterator) {
|
|
5952
|
+
validateIterable(
|
|
5953
|
+
task,
|
|
5954
|
+
children$jscomp$0,
|
|
5955
|
+
-1,
|
|
5956
|
+
iterator,
|
|
5957
|
+
iteratorFn
|
|
5958
|
+
);
|
|
5959
|
+
var step = iterator.next();
|
|
5960
|
+
if (!step.done) {
|
|
5961
|
+
var rows = [];
|
|
5962
|
+
do rows.push(step.value), (step = iterator.next());
|
|
5963
|
+
while (!step.done);
|
|
5964
|
+
renderSuspenseListRows(
|
|
5965
|
+
request,
|
|
5966
|
+
task,
|
|
5967
|
+
keyPath,
|
|
5968
|
+
children$jscomp$0,
|
|
5969
|
+
revealOrder
|
|
5970
|
+
);
|
|
5971
|
+
}
|
|
5972
|
+
break a;
|
|
5973
|
+
}
|
|
5974
|
+
}
|
|
5975
|
+
}
|
|
5976
|
+
if ("together" === revealOrder) {
|
|
5977
|
+
var _prevKeyPath2 = task.keyPath,
|
|
5978
|
+
prevRow = task.row,
|
|
5979
|
+
newRow = (task.row = createSuspenseListRow(null));
|
|
5980
|
+
newRow.boundaries = [];
|
|
5981
|
+
newRow.together = !0;
|
|
5982
|
+
task.keyPath = keyPath;
|
|
5983
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5984
|
+
0 === --newRow.pendingTasks &&
|
|
5985
|
+
finishSuspenseListRow(request, newRow);
|
|
5986
|
+
task.keyPath = _prevKeyPath2;
|
|
5987
|
+
task.row = prevRow;
|
|
5988
|
+
null !== prevRow &&
|
|
5989
|
+
0 < newRow.pendingTasks &&
|
|
5990
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
|
5991
|
+
} else {
|
|
5992
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
5993
|
+
task.keyPath = keyPath;
|
|
5994
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
5995
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
5996
|
+
}
|
|
5997
|
+
}
|
|
5427
5998
|
return;
|
|
5428
5999
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
5429
6000
|
case REACT_SCOPE_TYPE:
|
|
@@ -5432,16 +6003,27 @@
|
|
|
5432
6003
|
);
|
|
5433
6004
|
case REACT_SUSPENSE_TYPE:
|
|
5434
6005
|
a: if (null !== task.replay) {
|
|
5435
|
-
var _prevKeyPath = task.keyPath
|
|
6006
|
+
var _prevKeyPath = task.keyPath,
|
|
6007
|
+
_prevContext = task.formatContext,
|
|
6008
|
+
_prevRow = task.row;
|
|
5436
6009
|
task.keyPath = keyPath;
|
|
6010
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
6011
|
+
request.resumableState,
|
|
6012
|
+
_prevContext
|
|
6013
|
+
);
|
|
6014
|
+
task.row = null;
|
|
5437
6015
|
var _content = props.children;
|
|
5438
6016
|
try {
|
|
5439
6017
|
renderNode(request, task, _content, -1);
|
|
5440
6018
|
} finally {
|
|
5441
|
-
task.keyPath = _prevKeyPath
|
|
6019
|
+
(task.keyPath = _prevKeyPath),
|
|
6020
|
+
(task.formatContext = _prevContext),
|
|
6021
|
+
(task.row = _prevRow);
|
|
5442
6022
|
}
|
|
5443
6023
|
} else {
|
|
5444
|
-
var prevKeyPath$jscomp$
|
|
6024
|
+
var prevKeyPath$jscomp$4 = task.keyPath,
|
|
6025
|
+
prevContext$jscomp$0 = task.formatContext,
|
|
6026
|
+
prevRow$jscomp$0 = task.row,
|
|
5445
6027
|
parentBoundary = task.blockedBoundary,
|
|
5446
6028
|
parentPreamble = task.blockedPreamble,
|
|
5447
6029
|
parentHoistableState = task.hoistableState,
|
|
@@ -5453,12 +6035,14 @@
|
|
|
5453
6035
|
task.formatContext.insertionMode < HTML_MODE
|
|
5454
6036
|
? createSuspenseBoundary(
|
|
5455
6037
|
request,
|
|
6038
|
+
task.row,
|
|
5456
6039
|
fallbackAbortSet,
|
|
5457
6040
|
createPreambleState(),
|
|
5458
6041
|
createPreambleState()
|
|
5459
6042
|
)
|
|
5460
6043
|
: createSuspenseBoundary(
|
|
5461
6044
|
request,
|
|
6045
|
+
task.row,
|
|
5462
6046
|
fallbackAbortSet,
|
|
5463
6047
|
null,
|
|
5464
6048
|
null
|
|
@@ -5485,7 +6069,8 @@
|
|
|
5485
6069
|
);
|
|
5486
6070
|
contentRootSegment.parentFlushed = !0;
|
|
5487
6071
|
if (null !== request.trackedPostpones) {
|
|
5488
|
-
var
|
|
6072
|
+
var suspenseComponentStack = task.componentStack,
|
|
6073
|
+
fallbackKeyPath = [
|
|
5489
6074
|
keyPath[0],
|
|
5490
6075
|
"Suspense Fallback",
|
|
5491
6076
|
keyPath[2]
|
|
@@ -5504,22 +6089,33 @@
|
|
|
5504
6089
|
task.blockedSegment = boundarySegment;
|
|
5505
6090
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
5506
6091
|
task.keyPath = fallbackKeyPath;
|
|
6092
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
|
6093
|
+
request.resumableState,
|
|
6094
|
+
prevContext$jscomp$0
|
|
6095
|
+
);
|
|
6096
|
+
task.componentStack =
|
|
6097
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
6098
|
+
suspenseComponentStack
|
|
6099
|
+
);
|
|
5507
6100
|
boundarySegment.status = 6;
|
|
5508
6101
|
try {
|
|
5509
6102
|
renderNode(request, task, fallback, -1),
|
|
5510
6103
|
boundarySegment.lastPushedText &&
|
|
5511
6104
|
boundarySegment.textEmbedded &&
|
|
5512
6105
|
boundarySegment.chunks.push(textSeparator),
|
|
5513
|
-
(boundarySegment.status = COMPLETED)
|
|
6106
|
+
(boundarySegment.status = COMPLETED),
|
|
6107
|
+
finishedSegment(request, parentBoundary, boundarySegment);
|
|
5514
6108
|
} catch (thrownValue) {
|
|
5515
6109
|
throw (
|
|
5516
|
-
((boundarySegment.status =
|
|
6110
|
+
((boundarySegment.status =
|
|
6111
|
+
12 === request.status ? ABORTED : ERRORED),
|
|
5517
6112
|
thrownValue)
|
|
5518
6113
|
);
|
|
5519
6114
|
} finally {
|
|
5520
6115
|
(task.blockedSegment = parentSegment),
|
|
5521
6116
|
(task.blockedPreamble = parentPreamble),
|
|
5522
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
6117
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
|
6118
|
+
(task.formatContext = prevContext$jscomp$0);
|
|
5523
6119
|
}
|
|
5524
6120
|
var suspendedPrimaryTask = createRenderTask(
|
|
5525
6121
|
request,
|
|
@@ -5532,11 +6128,14 @@
|
|
|
5532
6128
|
newBoundary.contentState,
|
|
5533
6129
|
task.abortSet,
|
|
5534
6130
|
keyPath,
|
|
5535
|
-
|
|
6131
|
+
getSuspenseContentFormatContext(
|
|
6132
|
+
request.resumableState,
|
|
6133
|
+
task.formatContext
|
|
6134
|
+
),
|
|
5536
6135
|
task.context,
|
|
5537
6136
|
task.treeContext,
|
|
5538
|
-
|
|
5539
|
-
|
|
6137
|
+
null,
|
|
6138
|
+
suspenseComponentStack,
|
|
5540
6139
|
emptyContextObject,
|
|
5541
6140
|
task.debugTask
|
|
5542
6141
|
);
|
|
@@ -5548,6 +6147,11 @@
|
|
|
5548
6147
|
task.hoistableState = newBoundary.contentState;
|
|
5549
6148
|
task.blockedSegment = contentRootSegment;
|
|
5550
6149
|
task.keyPath = keyPath;
|
|
6150
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
6151
|
+
request.resumableState,
|
|
6152
|
+
prevContext$jscomp$0
|
|
6153
|
+
);
|
|
6154
|
+
task.row = null;
|
|
5551
6155
|
contentRootSegment.status = 6;
|
|
5552
6156
|
try {
|
|
5553
6157
|
if (
|
|
@@ -5556,23 +6160,35 @@
|
|
|
5556
6160
|
contentRootSegment.textEmbedded &&
|
|
5557
6161
|
contentRootSegment.chunks.push(textSeparator),
|
|
5558
6162
|
(contentRootSegment.status = COMPLETED),
|
|
6163
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
|
5559
6164
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
5560
6165
|
0 === newBoundary.pendingTasks &&
|
|
5561
6166
|
newBoundary.status === PENDING)
|
|
5562
6167
|
) {
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
6168
|
+
if (
|
|
6169
|
+
((newBoundary.status = COMPLETED),
|
|
6170
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
6171
|
+
) {
|
|
6172
|
+
null !== prevRow$jscomp$0 &&
|
|
6173
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
6174
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
|
6175
|
+
0 === request.pendingRootTasks &&
|
|
6176
|
+
task.blockedPreamble &&
|
|
6177
|
+
preparePreamble(request);
|
|
6178
|
+
break a;
|
|
6179
|
+
}
|
|
6180
|
+
} else
|
|
6181
|
+
null !== prevRow$jscomp$0 &&
|
|
6182
|
+
prevRow$jscomp$0.together &&
|
|
6183
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
|
5569
6184
|
} catch (thrownValue$2) {
|
|
5570
6185
|
newBoundary.status = CLIENT_RENDERED;
|
|
5571
6186
|
if (12 === request.status) {
|
|
5572
|
-
contentRootSegment.status =
|
|
6187
|
+
contentRootSegment.status = ABORTED;
|
|
5573
6188
|
var error = request.fatalError;
|
|
5574
6189
|
} else
|
|
5575
|
-
(contentRootSegment.status =
|
|
6190
|
+
(contentRootSegment.status = ERRORED),
|
|
6191
|
+
(error = thrownValue$2);
|
|
5576
6192
|
var thrownInfo = getThrownInfo(task.componentStack);
|
|
5577
6193
|
var errorDigest = logRecoverableError(
|
|
5578
6194
|
request,
|
|
@@ -5593,7 +6209,9 @@
|
|
|
5593
6209
|
(task.blockedPreamble = parentPreamble),
|
|
5594
6210
|
(task.hoistableState = parentHoistableState),
|
|
5595
6211
|
(task.blockedSegment = parentSegment),
|
|
5596
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
6212
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
|
6213
|
+
(task.formatContext = prevContext$jscomp$0),
|
|
6214
|
+
(task.row = prevRow$jscomp$0);
|
|
5597
6215
|
}
|
|
5598
6216
|
var suspendedFallbackTask = createRenderTask(
|
|
5599
6217
|
request,
|
|
@@ -5606,11 +6224,16 @@
|
|
|
5606
6224
|
newBoundary.fallbackState,
|
|
5607
6225
|
fallbackAbortSet,
|
|
5608
6226
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5609
|
-
|
|
6227
|
+
getSuspenseFallbackFormatContext(
|
|
6228
|
+
request.resumableState,
|
|
6229
|
+
task.formatContext
|
|
6230
|
+
),
|
|
5610
6231
|
task.context,
|
|
5611
6232
|
task.treeContext,
|
|
5612
|
-
task.
|
|
5613
|
-
|
|
6233
|
+
task.row,
|
|
6234
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
6235
|
+
task.componentStack
|
|
6236
|
+
),
|
|
5614
6237
|
emptyContextObject,
|
|
5615
6238
|
task.debugTask
|
|
5616
6239
|
);
|
|
@@ -5628,7 +6251,7 @@
|
|
|
5628
6251
|
for (var key in props)
|
|
5629
6252
|
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
5630
6253
|
} else propsWithoutRef = props;
|
|
5631
|
-
var children$jscomp$
|
|
6254
|
+
var children$jscomp$1 = renderWithHooks(
|
|
5632
6255
|
request,
|
|
5633
6256
|
task,
|
|
5634
6257
|
keyPath,
|
|
@@ -5640,7 +6263,7 @@
|
|
|
5640
6263
|
request,
|
|
5641
6264
|
task,
|
|
5642
6265
|
keyPath,
|
|
5643
|
-
children$jscomp$
|
|
6266
|
+
children$jscomp$1,
|
|
5644
6267
|
0 !== localIdCounter,
|
|
5645
6268
|
actionStateCounter,
|
|
5646
6269
|
actionStateMatchingIndex
|
|
@@ -5649,12 +6272,11 @@
|
|
|
5649
6272
|
case REACT_MEMO_TYPE:
|
|
5650
6273
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
5651
6274
|
return;
|
|
5652
|
-
case REACT_PROVIDER_TYPE:
|
|
5653
6275
|
case REACT_CONTEXT_TYPE:
|
|
5654
6276
|
var value$jscomp$0 = props.value,
|
|
5655
|
-
children$jscomp$
|
|
6277
|
+
children$jscomp$2 = props.children;
|
|
5656
6278
|
var prevSnapshot = task.context;
|
|
5657
|
-
var prevKeyPath$jscomp$
|
|
6279
|
+
var prevKeyPath$jscomp$5 = task.keyPath;
|
|
5658
6280
|
var prevValue = type._currentValue;
|
|
5659
6281
|
type._currentValue = value$jscomp$0;
|
|
5660
6282
|
void 0 !== type._currentRenderer &&
|
|
@@ -5675,7 +6297,7 @@
|
|
|
5675
6297
|
currentActiveSnapshot = newNode;
|
|
5676
6298
|
task.context = newNode;
|
|
5677
6299
|
task.keyPath = keyPath;
|
|
5678
|
-
renderNodeDestructive(request, task, children$jscomp$
|
|
6300
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
5679
6301
|
var prevSnapshot$jscomp$0 = currentActiveSnapshot;
|
|
5680
6302
|
if (null === prevSnapshot$jscomp$0)
|
|
5681
6303
|
throw Error(
|
|
@@ -5697,7 +6319,7 @@
|
|
|
5697
6319
|
var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
|
|
5698
6320
|
prevSnapshot$jscomp$0.parent);
|
|
5699
6321
|
task.context = JSCompiler_inline_result$jscomp$0;
|
|
5700
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6322
|
+
task.keyPath = prevKeyPath$jscomp$5;
|
|
5701
6323
|
prevSnapshot !== task.context &&
|
|
5702
6324
|
console.error(
|
|
5703
6325
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
|
@@ -5711,10 +6333,10 @@
|
|
|
5711
6333
|
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
|
5712
6334
|
);
|
|
5713
6335
|
var newChildren = render(context$jscomp$0._currentValue),
|
|
5714
|
-
prevKeyPath$jscomp$
|
|
6336
|
+
prevKeyPath$jscomp$6 = task.keyPath;
|
|
5715
6337
|
task.keyPath = keyPath;
|
|
5716
6338
|
renderNodeDestructive(request, task, newChildren, -1);
|
|
5717
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6339
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
5718
6340
|
return;
|
|
5719
6341
|
case REACT_LAZY_TYPE:
|
|
5720
6342
|
var Component = callLazyInitInDEV(type);
|
|
@@ -5755,6 +6377,7 @@
|
|
|
5755
6377
|
(task.blockedSegment = resumedSegment),
|
|
5756
6378
|
renderNode(request, task, node, childIndex),
|
|
5757
6379
|
(resumedSegment.status = COMPLETED),
|
|
6380
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
|
5758
6381
|
null === blockedBoundary
|
|
5759
6382
|
? (request.completedRootSegment = resumedSegment)
|
|
5760
6383
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
|
@@ -5790,9 +6413,9 @@
|
|
|
5790
6413
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
5791
6414
|
);
|
|
5792
6415
|
var childNodes = node[2];
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
task.replay = { nodes: childNodes, slots:
|
|
6416
|
+
name = node[3];
|
|
6417
|
+
keyOrIndex = task.node;
|
|
6418
|
+
task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
|
|
5796
6419
|
try {
|
|
5797
6420
|
renderElement(request, task, keyPath, type, props, ref);
|
|
5798
6421
|
if (
|
|
@@ -5809,21 +6432,26 @@
|
|
|
5809
6432
|
null !== x &&
|
|
5810
6433
|
(x === SuspenseException || "function" === typeof x.then)
|
|
5811
6434
|
)
|
|
5812
|
-
throw (
|
|
6435
|
+
throw (
|
|
6436
|
+
(task.node === keyOrIndex
|
|
6437
|
+
? (task.replay = replay)
|
|
6438
|
+
: childIndex.splice(i, 1),
|
|
6439
|
+
x)
|
|
6440
|
+
);
|
|
5813
6441
|
task.replay.pendingTasks--;
|
|
5814
6442
|
type = getThrownInfo(task.componentStack);
|
|
5815
6443
|
props = request;
|
|
5816
6444
|
request = task.blockedBoundary;
|
|
5817
6445
|
keyPath = x;
|
|
5818
|
-
ref =
|
|
5819
|
-
|
|
6446
|
+
ref = name;
|
|
6447
|
+
name = logRecoverableError(props, keyPath, type, task.debugTask);
|
|
5820
6448
|
abortRemainingReplayNodes(
|
|
5821
6449
|
props,
|
|
5822
6450
|
request,
|
|
5823
6451
|
childNodes,
|
|
5824
6452
|
ref,
|
|
5825
6453
|
keyPath,
|
|
5826
|
-
|
|
6454
|
+
name,
|
|
5827
6455
|
type,
|
|
5828
6456
|
!1
|
|
5829
6457
|
);
|
|
@@ -5838,12 +6466,14 @@
|
|
|
5838
6466
|
);
|
|
5839
6467
|
a: {
|
|
5840
6468
|
replay = void 0;
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
6469
|
+
name = node[5];
|
|
6470
|
+
type = node[2];
|
|
6471
|
+
ref = node[3];
|
|
5844
6472
|
keyOrIndex = null === node[4] ? [] : node[4][2];
|
|
5845
6473
|
node = null === node[4] ? null : node[4][3];
|
|
5846
6474
|
var prevKeyPath = task.keyPath,
|
|
6475
|
+
prevContext = task.formatContext,
|
|
6476
|
+
prevRow = task.row,
|
|
5847
6477
|
previousReplaySet = task.replay,
|
|
5848
6478
|
parentBoundary = task.blockedBoundary,
|
|
5849
6479
|
parentHoistableState = task.hoistableState,
|
|
@@ -5854,22 +6484,29 @@
|
|
|
5854
6484
|
task.formatContext.insertionMode < HTML_MODE
|
|
5855
6485
|
? createSuspenseBoundary(
|
|
5856
6486
|
request,
|
|
6487
|
+
task.row,
|
|
5857
6488
|
fallbackAbortSet,
|
|
5858
6489
|
createPreambleState(),
|
|
5859
6490
|
createPreambleState()
|
|
5860
6491
|
)
|
|
5861
6492
|
: createSuspenseBoundary(
|
|
5862
6493
|
request,
|
|
6494
|
+
task.row,
|
|
5863
6495
|
fallbackAbortSet,
|
|
5864
6496
|
null,
|
|
5865
6497
|
null
|
|
5866
6498
|
);
|
|
5867
6499
|
props.parentFlushed = !0;
|
|
5868
|
-
props.rootSegmentID =
|
|
6500
|
+
props.rootSegmentID = name;
|
|
5869
6501
|
task.blockedBoundary = props;
|
|
5870
6502
|
task.hoistableState = props.contentState;
|
|
5871
6503
|
task.keyPath = keyPath;
|
|
5872
|
-
task.
|
|
6504
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
6505
|
+
request.resumableState,
|
|
6506
|
+
prevContext
|
|
6507
|
+
);
|
|
6508
|
+
task.row = null;
|
|
6509
|
+
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
|
5873
6510
|
try {
|
|
5874
6511
|
renderNode(request, task, content, -1);
|
|
5875
6512
|
if (
|
|
@@ -5901,7 +6538,9 @@
|
|
|
5901
6538
|
(task.blockedBoundary = parentBoundary),
|
|
5902
6539
|
(task.hoistableState = parentHoistableState),
|
|
5903
6540
|
(task.replay = previousReplaySet),
|
|
5904
|
-
(task.keyPath = prevKeyPath)
|
|
6541
|
+
(task.keyPath = prevKeyPath),
|
|
6542
|
+
(task.formatContext = prevContext),
|
|
6543
|
+
(task.row = prevRow);
|
|
5905
6544
|
}
|
|
5906
6545
|
props = createReplayTask(
|
|
5907
6546
|
request,
|
|
@@ -5913,11 +6552,16 @@
|
|
|
5913
6552
|
props.fallbackState,
|
|
5914
6553
|
fallbackAbortSet,
|
|
5915
6554
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5916
|
-
|
|
6555
|
+
getSuspenseFallbackFormatContext(
|
|
6556
|
+
request.resumableState,
|
|
6557
|
+
task.formatContext
|
|
6558
|
+
),
|
|
5917
6559
|
task.context,
|
|
5918
6560
|
task.treeContext,
|
|
5919
|
-
task.
|
|
5920
|
-
|
|
6561
|
+
task.row,
|
|
6562
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
6563
|
+
task.componentStack
|
|
6564
|
+
),
|
|
5921
6565
|
emptyContextObject,
|
|
5922
6566
|
task.debugTask
|
|
5923
6567
|
);
|
|
@@ -5930,6 +6574,35 @@
|
|
|
5930
6574
|
}
|
|
5931
6575
|
}
|
|
5932
6576
|
}
|
|
6577
|
+
function validateIterable(
|
|
6578
|
+
task,
|
|
6579
|
+
iterable,
|
|
6580
|
+
childIndex,
|
|
6581
|
+
iterator,
|
|
6582
|
+
iteratorFn
|
|
6583
|
+
) {
|
|
6584
|
+
if (iterator === iterable) {
|
|
6585
|
+
if (
|
|
6586
|
+
-1 !== childIndex ||
|
|
6587
|
+
null === task.componentStack ||
|
|
6588
|
+
"function" !== typeof task.componentStack.type ||
|
|
6589
|
+
"[object GeneratorFunction]" !==
|
|
6590
|
+
Object.prototype.toString.call(task.componentStack.type) ||
|
|
6591
|
+
"[object Generator]" !== Object.prototype.toString.call(iterator)
|
|
6592
|
+
)
|
|
6593
|
+
didWarnAboutGenerators ||
|
|
6594
|
+
console.error(
|
|
6595
|
+
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
|
6596
|
+
),
|
|
6597
|
+
(didWarnAboutGenerators = !0);
|
|
6598
|
+
} else
|
|
6599
|
+
iterable.entries !== iteratorFn ||
|
|
6600
|
+
didWarnAboutMaps ||
|
|
6601
|
+
(console.error(
|
|
6602
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
6603
|
+
),
|
|
6604
|
+
(didWarnAboutMaps = !0));
|
|
6605
|
+
}
|
|
5933
6606
|
function renderNodeDestructive(request, task, node, childIndex) {
|
|
5934
6607
|
null !== task.replay && "number" === typeof task.replay.slots
|
|
5935
6608
|
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
@@ -6006,52 +6679,27 @@
|
|
|
6006
6679
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
|
6007
6680
|
);
|
|
6008
6681
|
case REACT_LAZY_TYPE:
|
|
6009
|
-
|
|
6682
|
+
type = callLazyInitInDEV(node);
|
|
6010
6683
|
if (12 === request.status) throw null;
|
|
6011
|
-
renderNodeDestructive(request, task,
|
|
6684
|
+
renderNodeDestructive(request, task, type, childIndex);
|
|
6012
6685
|
return;
|
|
6013
6686
|
}
|
|
6014
6687
|
if (isArrayImpl(node)) {
|
|
6015
6688
|
renderChildrenArray(request, task, node, childIndex);
|
|
6016
6689
|
return;
|
|
6017
6690
|
}
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
"function" !== typeof task.componentStack.type ||
|
|
6030
|
-
"[object GeneratorFunction]" !==
|
|
6031
|
-
Object.prototype.toString.call(task.componentStack.type) ||
|
|
6032
|
-
"[object Generator]" !== Object.prototype.toString.call(type)
|
|
6033
|
-
)
|
|
6034
|
-
didWarnAboutGenerators ||
|
|
6035
|
-
console.error(
|
|
6036
|
-
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
|
6037
|
-
),
|
|
6038
|
-
(didWarnAboutGenerators = !0);
|
|
6039
|
-
} else
|
|
6040
|
-
node.entries !== key ||
|
|
6041
|
-
didWarnAboutMaps ||
|
|
6042
|
-
(console.error(
|
|
6043
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
6044
|
-
),
|
|
6045
|
-
(didWarnAboutMaps = !0));
|
|
6046
|
-
node = type.next();
|
|
6047
|
-
if (!node.done) {
|
|
6048
|
-
key = [];
|
|
6049
|
-
do key.push(node.value), (node = type.next());
|
|
6050
|
-
while (!node.done);
|
|
6051
|
-
renderChildrenArray(request, task, key, childIndex);
|
|
6691
|
+
if ((key = getIteratorFn(node)))
|
|
6692
|
+
if ((type = key.call(node))) {
|
|
6693
|
+
validateIterable(task, node, childIndex, type, key);
|
|
6694
|
+
node = type.next();
|
|
6695
|
+
if (!node.done) {
|
|
6696
|
+
key = [];
|
|
6697
|
+
do key.push(node.value), (node = type.next());
|
|
6698
|
+
while (!node.done);
|
|
6699
|
+
renderChildrenArray(request, task, key, childIndex);
|
|
6700
|
+
}
|
|
6701
|
+
return;
|
|
6052
6702
|
}
|
|
6053
|
-
return;
|
|
6054
|
-
}
|
|
6055
6703
|
if ("function" === typeof node.then)
|
|
6056
6704
|
return (
|
|
6057
6705
|
(task.thenableState = null),
|
|
@@ -6110,6 +6758,69 @@
|
|
|
6110
6758
|
));
|
|
6111
6759
|
}
|
|
6112
6760
|
}
|
|
6761
|
+
function warnForMissingKey(request, task, child) {
|
|
6762
|
+
if (
|
|
6763
|
+
null !== child &&
|
|
6764
|
+
"object" === typeof child &&
|
|
6765
|
+
(child.$$typeof === REACT_ELEMENT_TYPE ||
|
|
6766
|
+
child.$$typeof === REACT_PORTAL_TYPE) &&
|
|
6767
|
+
child._store &&
|
|
6768
|
+
((!child._store.validated && null == child.key) ||
|
|
6769
|
+
2 === child._store.validated)
|
|
6770
|
+
) {
|
|
6771
|
+
if ("object" !== typeof child._store)
|
|
6772
|
+
throw Error(
|
|
6773
|
+
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
|
6774
|
+
);
|
|
6775
|
+
child._store.validated = 1;
|
|
6776
|
+
var didWarnForKey = request.didWarnForKey;
|
|
6777
|
+
null == didWarnForKey &&
|
|
6778
|
+
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
|
6779
|
+
request = task.componentStack;
|
|
6780
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
|
6781
|
+
didWarnForKey.add(request);
|
|
6782
|
+
var componentName = getComponentNameFromType(child.type);
|
|
6783
|
+
didWarnForKey = child._owner;
|
|
6784
|
+
var parentOwner = request.owner;
|
|
6785
|
+
request = "";
|
|
6786
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6787
|
+
var name = getComponentNameFromType(parentOwner.type);
|
|
6788
|
+
name &&
|
|
6789
|
+
(request = "\n\nCheck the render method of `" + name + "`.");
|
|
6790
|
+
}
|
|
6791
|
+
request ||
|
|
6792
|
+
(componentName &&
|
|
6793
|
+
(request =
|
|
6794
|
+
"\n\nCheck the top-level render call using <" +
|
|
6795
|
+
componentName +
|
|
6796
|
+
">."));
|
|
6797
|
+
componentName = "";
|
|
6798
|
+
null != didWarnForKey &&
|
|
6799
|
+
parentOwner !== didWarnForKey &&
|
|
6800
|
+
((parentOwner = null),
|
|
6801
|
+
"undefined" !== typeof didWarnForKey.type
|
|
6802
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
|
6803
|
+
: "string" === typeof didWarnForKey.name &&
|
|
6804
|
+
(parentOwner = didWarnForKey.name),
|
|
6805
|
+
parentOwner &&
|
|
6806
|
+
(componentName =
|
|
6807
|
+
" It was passed a child from " + parentOwner + "."));
|
|
6808
|
+
didWarnForKey = task.componentStack;
|
|
6809
|
+
task.componentStack = {
|
|
6810
|
+
parent: task.componentStack,
|
|
6811
|
+
type: child.type,
|
|
6812
|
+
owner: child._owner,
|
|
6813
|
+
stack: child._debugStack
|
|
6814
|
+
};
|
|
6815
|
+
console.error(
|
|
6816
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
6817
|
+
request,
|
|
6818
|
+
componentName
|
|
6819
|
+
);
|
|
6820
|
+
task.componentStack = didWarnForKey;
|
|
6821
|
+
}
|
|
6822
|
+
}
|
|
6823
|
+
}
|
|
6113
6824
|
function renderChildrenArray(request, task, children, childIndex) {
|
|
6114
6825
|
var prevKeyPath = task.keyPath,
|
|
6115
6826
|
previousComponentStack = task.componentStack;
|
|
@@ -6203,81 +6914,115 @@
|
|
|
6203
6914
|
task.debugTask = previousDebugTask;
|
|
6204
6915
|
return;
|
|
6205
6916
|
}
|
|
6206
|
-
for (j = 0; j < replayNodes; j++)
|
|
6207
|
-
childIndex = children[j]
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
if (
|
|
6212
|
-
null !== error &&
|
|
6213
|
-
"object" === typeof error &&
|
|
6214
|
-
(error.$$typeof === REACT_ELEMENT_TYPE ||
|
|
6215
|
-
error.$$typeof === REACT_PORTAL_TYPE) &&
|
|
6216
|
-
error._store &&
|
|
6217
|
-
((!error._store.validated && null == error.key) ||
|
|
6218
|
-
2 === error._store.validated)
|
|
6219
|
-
) {
|
|
6220
|
-
if ("object" !== typeof error._store)
|
|
6221
|
-
throw Error(
|
|
6222
|
-
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
|
6223
|
-
);
|
|
6224
|
-
error._store.validated = 1;
|
|
6225
|
-
thrownInfo = resumeSlots.didWarnForKey;
|
|
6226
|
-
null == thrownInfo &&
|
|
6227
|
-
(thrownInfo = resumeSlots.didWarnForKey = new WeakSet());
|
|
6228
|
-
resumeSlots = node.componentStack;
|
|
6229
|
-
if (null !== resumeSlots && !thrownInfo.has(resumeSlots)) {
|
|
6230
|
-
thrownInfo.add(resumeSlots);
|
|
6231
|
-
var componentName = getComponentNameFromType(error.type);
|
|
6232
|
-
thrownInfo = error._owner;
|
|
6233
|
-
var parentOwner = resumeSlots.owner;
|
|
6234
|
-
resumeSlots = "";
|
|
6235
|
-
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6236
|
-
var name = getComponentNameFromType(parentOwner.type);
|
|
6237
|
-
name &&
|
|
6238
|
-
(resumeSlots =
|
|
6239
|
-
"\n\nCheck the render method of `" + name + "`.");
|
|
6240
|
-
}
|
|
6241
|
-
resumeSlots ||
|
|
6242
|
-
(componentName &&
|
|
6243
|
-
(resumeSlots =
|
|
6244
|
-
"\n\nCheck the top-level render call using <" +
|
|
6245
|
-
componentName +
|
|
6246
|
-
">."));
|
|
6247
|
-
componentName = "";
|
|
6248
|
-
null != thrownInfo &&
|
|
6249
|
-
parentOwner !== thrownInfo &&
|
|
6250
|
-
((parentOwner = null),
|
|
6251
|
-
"undefined" !== typeof thrownInfo.type
|
|
6252
|
-
? (parentOwner = getComponentNameFromType(thrownInfo.type))
|
|
6253
|
-
: "string" === typeof thrownInfo.name &&
|
|
6254
|
-
(parentOwner = thrownInfo.name),
|
|
6255
|
-
parentOwner &&
|
|
6256
|
-
(componentName =
|
|
6257
|
-
" It was passed a child from " + parentOwner + "."));
|
|
6258
|
-
thrownInfo = node.componentStack;
|
|
6259
|
-
node.componentStack = {
|
|
6260
|
-
parent: node.componentStack,
|
|
6261
|
-
type: error.type,
|
|
6262
|
-
owner: error._owner,
|
|
6263
|
-
stack: error._debugStack
|
|
6264
|
-
};
|
|
6265
|
-
console.error(
|
|
6266
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
6267
|
-
resumeSlots,
|
|
6268
|
-
componentName
|
|
6269
|
-
);
|
|
6270
|
-
node.componentStack = thrownInfo;
|
|
6271
|
-
}
|
|
6272
|
-
}
|
|
6273
|
-
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
|
6274
|
-
renderNode(request, task, childIndex, j);
|
|
6275
|
-
}
|
|
6917
|
+
for (j = 0; j < replayNodes; j++)
|
|
6918
|
+
(childIndex = children[j]),
|
|
6919
|
+
warnForMissingKey(request, task, childIndex),
|
|
6920
|
+
(task.treeContext = pushTreeContext(replay, replayNodes, j)),
|
|
6921
|
+
renderNode(request, task, childIndex, j);
|
|
6276
6922
|
task.treeContext = replay;
|
|
6277
6923
|
task.keyPath = prevKeyPath;
|
|
6278
6924
|
task.componentStack = previousComponentStack;
|
|
6279
6925
|
task.debugTask = previousDebugTask;
|
|
6280
6926
|
}
|
|
6927
|
+
function trackPostponedBoundary(request, trackedPostpones, boundary) {
|
|
6928
|
+
boundary.status = POSTPONED;
|
|
6929
|
+
boundary.rootSegmentID = request.nextSegmentId++;
|
|
6930
|
+
request = boundary.trackedContentKeyPath;
|
|
6931
|
+
if (null === request)
|
|
6932
|
+
throw Error(
|
|
6933
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
|
6934
|
+
);
|
|
6935
|
+
var fallbackReplayNode = boundary.trackedFallbackNode,
|
|
6936
|
+
children = [],
|
|
6937
|
+
boundaryNode = trackedPostpones.workingMap.get(request);
|
|
6938
|
+
if (void 0 === boundaryNode)
|
|
6939
|
+
return (
|
|
6940
|
+
(boundary = [
|
|
6941
|
+
request[1],
|
|
6942
|
+
request[2],
|
|
6943
|
+
children,
|
|
6944
|
+
null,
|
|
6945
|
+
fallbackReplayNode,
|
|
6946
|
+
boundary.rootSegmentID
|
|
6947
|
+
]),
|
|
6948
|
+
trackedPostpones.workingMap.set(request, boundary),
|
|
6949
|
+
addToReplayParent(boundary, request[0], trackedPostpones),
|
|
6950
|
+
boundary
|
|
6951
|
+
);
|
|
6952
|
+
boundaryNode[4] = fallbackReplayNode;
|
|
6953
|
+
boundaryNode[5] = boundary.rootSegmentID;
|
|
6954
|
+
return boundaryNode;
|
|
6955
|
+
}
|
|
6956
|
+
function trackPostpone(request, trackedPostpones, task, segment) {
|
|
6957
|
+
segment.status = POSTPONED;
|
|
6958
|
+
var keyPath = task.keyPath,
|
|
6959
|
+
boundary = task.blockedBoundary;
|
|
6960
|
+
if (null === boundary)
|
|
6961
|
+
(segment.id = request.nextSegmentId++),
|
|
6962
|
+
(trackedPostpones.rootSlots = segment.id),
|
|
6963
|
+
null !== request.completedRootSegment &&
|
|
6964
|
+
(request.completedRootSegment.status = POSTPONED);
|
|
6965
|
+
else {
|
|
6966
|
+
if (null !== boundary && boundary.status === PENDING) {
|
|
6967
|
+
var boundaryNode = trackPostponedBoundary(
|
|
6968
|
+
request,
|
|
6969
|
+
trackedPostpones,
|
|
6970
|
+
boundary
|
|
6971
|
+
);
|
|
6972
|
+
if (
|
|
6973
|
+
boundary.trackedContentKeyPath === keyPath &&
|
|
6974
|
+
-1 === task.childIndex
|
|
6975
|
+
) {
|
|
6976
|
+
-1 === segment.id &&
|
|
6977
|
+
(segment.id = segment.parentFlushed
|
|
6978
|
+
? boundary.rootSegmentID
|
|
6979
|
+
: request.nextSegmentId++);
|
|
6980
|
+
boundaryNode[3] = segment.id;
|
|
6981
|
+
return;
|
|
6982
|
+
}
|
|
6983
|
+
}
|
|
6984
|
+
-1 === segment.id &&
|
|
6985
|
+
(segment.id =
|
|
6986
|
+
segment.parentFlushed && null !== boundary
|
|
6987
|
+
? boundary.rootSegmentID
|
|
6988
|
+
: request.nextSegmentId++);
|
|
6989
|
+
if (-1 === task.childIndex)
|
|
6990
|
+
null === keyPath
|
|
6991
|
+
? (trackedPostpones.rootSlots = segment.id)
|
|
6992
|
+
: ((task = trackedPostpones.workingMap.get(keyPath)),
|
|
6993
|
+
void 0 === task
|
|
6994
|
+
? ((task = [keyPath[1], keyPath[2], [], segment.id]),
|
|
6995
|
+
addToReplayParent(task, keyPath[0], trackedPostpones))
|
|
6996
|
+
: (task[3] = segment.id));
|
|
6997
|
+
else {
|
|
6998
|
+
if (null === keyPath)
|
|
6999
|
+
if (((request = trackedPostpones.rootSlots), null === request))
|
|
7000
|
+
request = trackedPostpones.rootSlots = {};
|
|
7001
|
+
else {
|
|
7002
|
+
if ("number" === typeof request)
|
|
7003
|
+
throw Error(
|
|
7004
|
+
"It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
|
|
7005
|
+
);
|
|
7006
|
+
}
|
|
7007
|
+
else if (
|
|
7008
|
+
((boundary = trackedPostpones.workingMap),
|
|
7009
|
+
(boundaryNode = boundary.get(keyPath)),
|
|
7010
|
+
void 0 === boundaryNode)
|
|
7011
|
+
)
|
|
7012
|
+
(request = {}),
|
|
7013
|
+
(boundaryNode = [keyPath[1], keyPath[2], [], request]),
|
|
7014
|
+
boundary.set(keyPath, boundaryNode),
|
|
7015
|
+
addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
|
|
7016
|
+
else if (((request = boundaryNode[3]), null === request))
|
|
7017
|
+
request = boundaryNode[3] = {};
|
|
7018
|
+
else if ("number" === typeof request)
|
|
7019
|
+
throw Error(
|
|
7020
|
+
"It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
|
|
7021
|
+
);
|
|
7022
|
+
request[task.childIndex] = segment.id;
|
|
7023
|
+
}
|
|
7024
|
+
}
|
|
7025
|
+
}
|
|
6281
7026
|
function untrackBoundary(request, boundary) {
|
|
6282
7027
|
request = request.trackedPostpones;
|
|
6283
7028
|
null !== request &&
|
|
@@ -6301,8 +7046,8 @@
|
|
|
6301
7046
|
task.formatContext,
|
|
6302
7047
|
task.context,
|
|
6303
7048
|
task.treeContext,
|
|
7049
|
+
task.row,
|
|
6304
7050
|
task.componentStack,
|
|
6305
|
-
task.isFallback,
|
|
6306
7051
|
emptyContextObject,
|
|
6307
7052
|
task.debugTask
|
|
6308
7053
|
);
|
|
@@ -6333,8 +7078,8 @@
|
|
|
6333
7078
|
task.formatContext,
|
|
6334
7079
|
task.context,
|
|
6335
7080
|
task.treeContext,
|
|
7081
|
+
task.row,
|
|
6336
7082
|
task.componentStack,
|
|
6337
|
-
task.isFallback,
|
|
6338
7083
|
emptyContextObject,
|
|
6339
7084
|
task.debugTask
|
|
6340
7085
|
);
|
|
@@ -6347,7 +7092,8 @@
|
|
|
6347
7092
|
previousComponentStack = task.componentStack,
|
|
6348
7093
|
previousDebugTask = task.debugTask,
|
|
6349
7094
|
segment = task.blockedSegment;
|
|
6350
|
-
if (null === segment)
|
|
7095
|
+
if (null === segment) {
|
|
7096
|
+
segment = task.replay;
|
|
6351
7097
|
try {
|
|
6352
7098
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
6353
7099
|
} catch (thrownValue) {
|
|
@@ -6357,10 +7103,13 @@
|
|
|
6357
7103
|
thrownValue === SuspenseException
|
|
6358
7104
|
? getSuspendedThenable()
|
|
6359
7105
|
: thrownValue),
|
|
6360
|
-
"object" === typeof node && null !== node)
|
|
7106
|
+
12 !== request.status && "object" === typeof node && null !== node)
|
|
6361
7107
|
) {
|
|
6362
7108
|
if ("function" === typeof node.then) {
|
|
6363
|
-
childIndex =
|
|
7109
|
+
childIndex =
|
|
7110
|
+
thrownValue === SuspenseException
|
|
7111
|
+
? getThenableStateAfterSuspending()
|
|
7112
|
+
: null;
|
|
6364
7113
|
request = spawnNewSuspendedReplayTask(
|
|
6365
7114
|
request,
|
|
6366
7115
|
task,
|
|
@@ -6372,12 +7121,16 @@
|
|
|
6372
7121
|
task.keyPath = previousKeyPath;
|
|
6373
7122
|
task.treeContext = previousTreeContext;
|
|
6374
7123
|
task.componentStack = previousComponentStack;
|
|
7124
|
+
task.replay = segment;
|
|
6375
7125
|
task.debugTask = previousDebugTask;
|
|
6376
7126
|
switchContext(previousContext);
|
|
6377
7127
|
return;
|
|
6378
7128
|
}
|
|
6379
7129
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6380
|
-
node =
|
|
7130
|
+
node =
|
|
7131
|
+
thrownValue === SuspenseException
|
|
7132
|
+
? getThenableStateAfterSuspending()
|
|
7133
|
+
: null;
|
|
6381
7134
|
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
6382
7135
|
request.pingedTasks.push(node);
|
|
6383
7136
|
task.formatContext = previousFormatContext;
|
|
@@ -6385,13 +7138,14 @@
|
|
|
6385
7138
|
task.keyPath = previousKeyPath;
|
|
6386
7139
|
task.treeContext = previousTreeContext;
|
|
6387
7140
|
task.componentStack = previousComponentStack;
|
|
7141
|
+
task.replay = segment;
|
|
6388
7142
|
task.debugTask = previousDebugTask;
|
|
6389
7143
|
switchContext(previousContext);
|
|
6390
7144
|
return;
|
|
6391
7145
|
}
|
|
6392
7146
|
}
|
|
6393
7147
|
}
|
|
6394
|
-
else {
|
|
7148
|
+
} else {
|
|
6395
7149
|
var childrenLength = segment.children.length,
|
|
6396
7150
|
chunkLength = segment.chunks.length;
|
|
6397
7151
|
try {
|
|
@@ -6405,16 +7159,16 @@
|
|
|
6405
7159
|
thrownValue$3 === SuspenseException
|
|
6406
7160
|
? getSuspendedThenable()
|
|
6407
7161
|
: thrownValue$3),
|
|
6408
|
-
"object" === typeof node && null !== node)
|
|
7162
|
+
12 !== request.status && "object" === typeof node && null !== node)
|
|
6409
7163
|
) {
|
|
6410
7164
|
if ("function" === typeof node.then) {
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
).ping;
|
|
6417
|
-
|
|
7165
|
+
segment = node;
|
|
7166
|
+
node =
|
|
7167
|
+
thrownValue$3 === SuspenseException
|
|
7168
|
+
? getThenableStateAfterSuspending()
|
|
7169
|
+
: null;
|
|
7170
|
+
request = spawnNewSuspendedRenderTask(request, task, node).ping;
|
|
7171
|
+
segment.then(request, request);
|
|
6418
7172
|
task.formatContext = previousFormatContext;
|
|
6419
7173
|
task.context = previousContext;
|
|
6420
7174
|
task.keyPath = previousKeyPath;
|
|
@@ -6425,9 +7179,12 @@
|
|
|
6425
7179
|
return;
|
|
6426
7180
|
}
|
|
6427
7181
|
if ("Maximum call stack size exceeded" === node.message) {
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
7182
|
+
segment =
|
|
7183
|
+
thrownValue$3 === SuspenseException
|
|
7184
|
+
? getThenableStateAfterSuspending()
|
|
7185
|
+
: null;
|
|
7186
|
+
segment = spawnNewSuspendedRenderTask(request, task, segment);
|
|
7187
|
+
request.pingedTasks.push(segment);
|
|
6431
7188
|
task.formatContext = previousFormatContext;
|
|
6432
7189
|
task.context = previousContext;
|
|
6433
7190
|
task.keyPath = previousKeyPath;
|
|
@@ -6448,9 +7205,11 @@
|
|
|
6448
7205
|
throw node;
|
|
6449
7206
|
}
|
|
6450
7207
|
function abortTaskSoft(task) {
|
|
6451
|
-
var boundary = task.blockedBoundary
|
|
6452
|
-
|
|
6453
|
-
null !==
|
|
7208
|
+
var boundary = task.blockedBoundary,
|
|
7209
|
+
segment = task.blockedSegment;
|
|
7210
|
+
null !== segment &&
|
|
7211
|
+
((segment.status = ABORTED),
|
|
7212
|
+
finishedTask(this, boundary, task.row, segment));
|
|
6454
7213
|
}
|
|
6455
7214
|
function abortRemainingReplayNodes(
|
|
6456
7215
|
request$jscomp$0,
|
|
@@ -6484,6 +7243,7 @@
|
|
|
6484
7243
|
wasAborted = aborted,
|
|
6485
7244
|
resumedBoundary = createSuspenseBoundary(
|
|
6486
7245
|
request,
|
|
7246
|
+
null,
|
|
6487
7247
|
new Set(),
|
|
6488
7248
|
null,
|
|
6489
7249
|
null
|
|
@@ -6528,48 +7288,83 @@
|
|
|
6528
7288
|
segment = task.blockedSegment;
|
|
6529
7289
|
if (null !== segment) {
|
|
6530
7290
|
if (6 === segment.status) return;
|
|
6531
|
-
segment.status =
|
|
7291
|
+
segment.status = ABORTED;
|
|
6532
7292
|
}
|
|
6533
|
-
|
|
7293
|
+
var errorInfo = getThrownInfo(task.componentStack),
|
|
7294
|
+
node = task.node;
|
|
7295
|
+
null !== node &&
|
|
7296
|
+
"object" === typeof node &&
|
|
7297
|
+
pushHaltedAwaitOnComponentStack(task, node._debugInfo);
|
|
6534
7298
|
if (null === boundary) {
|
|
6535
7299
|
if (13 !== request.status && request.status !== CLOSED) {
|
|
6536
7300
|
boundary = task.replay;
|
|
6537
7301
|
if (null === boundary) {
|
|
6538
|
-
|
|
6539
|
-
|
|
7302
|
+
null !== request.trackedPostpones && null !== segment
|
|
7303
|
+
? ((boundary = request.trackedPostpones),
|
|
7304
|
+
logRecoverableError(request, error, errorInfo, task.debugTask),
|
|
7305
|
+
trackPostpone(request, boundary, task, segment),
|
|
7306
|
+
finishedTask(request, null, task.row, segment))
|
|
7307
|
+
: (logRecoverableError(request, error, errorInfo, task.debugTask),
|
|
7308
|
+
fatalError(request, error, errorInfo, task.debugTask));
|
|
6540
7309
|
return;
|
|
6541
7310
|
}
|
|
6542
7311
|
boundary.pendingTasks--;
|
|
6543
7312
|
0 === boundary.pendingTasks &&
|
|
6544
7313
|
0 < boundary.nodes.length &&
|
|
6545
|
-
((
|
|
7314
|
+
((segment = logRecoverableError(request, error, errorInfo, null)),
|
|
6546
7315
|
abortRemainingReplayNodes(
|
|
6547
7316
|
request,
|
|
6548
7317
|
null,
|
|
6549
7318
|
boundary.nodes,
|
|
6550
7319
|
boundary.slots,
|
|
6551
7320
|
error,
|
|
6552
|
-
task,
|
|
6553
7321
|
segment,
|
|
7322
|
+
errorInfo,
|
|
6554
7323
|
!0
|
|
6555
7324
|
));
|
|
6556
7325
|
request.pendingRootTasks--;
|
|
6557
7326
|
0 === request.pendingRootTasks && completeShell(request);
|
|
6558
7327
|
}
|
|
6559
|
-
} else
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
boundary.
|
|
7328
|
+
} else {
|
|
7329
|
+
node = request.trackedPostpones;
|
|
7330
|
+
if (boundary.status !== CLIENT_RENDERED) {
|
|
7331
|
+
if (null !== node && null !== segment)
|
|
7332
|
+
return (
|
|
7333
|
+
logRecoverableError(request, error, errorInfo, task.debugTask),
|
|
7334
|
+
trackPostpone(request, node, task, segment),
|
|
7335
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7336
|
+
return abortTask(fallbackTask, request, error);
|
|
7337
|
+
}),
|
|
7338
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
7339
|
+
finishedTask(request, boundary, task.row, segment)
|
|
7340
|
+
);
|
|
7341
|
+
boundary.status = CLIENT_RENDERED;
|
|
7342
|
+
segment = logRecoverableError(
|
|
7343
|
+
request,
|
|
7344
|
+
error,
|
|
7345
|
+
errorInfo,
|
|
7346
|
+
task.debugTask
|
|
7347
|
+
);
|
|
7348
|
+
boundary.status = CLIENT_RENDERED;
|
|
7349
|
+
encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
|
|
7350
|
+
untrackBoundary(request, boundary);
|
|
7351
|
+
boundary.parentFlushed &&
|
|
7352
|
+
request.clientRenderedBoundaries.push(boundary);
|
|
7353
|
+
}
|
|
7354
|
+
boundary.pendingTasks--;
|
|
7355
|
+
errorInfo = boundary.row;
|
|
7356
|
+
null !== errorInfo &&
|
|
7357
|
+
0 === --errorInfo.pendingTasks &&
|
|
7358
|
+
finishSuspenseListRow(request, errorInfo);
|
|
7359
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7360
|
+
return abortTask(fallbackTask, request, error);
|
|
7361
|
+
});
|
|
7362
|
+
boundary.fallbackAbortableTasks.clear();
|
|
7363
|
+
}
|
|
7364
|
+
task = task.row;
|
|
7365
|
+
null !== task &&
|
|
7366
|
+
0 === --task.pendingTasks &&
|
|
7367
|
+
finishSuspenseListRow(request, task);
|
|
6573
7368
|
request.allPendingTasks--;
|
|
6574
7369
|
0 === request.allPendingTasks && completeAll(request);
|
|
6575
7370
|
}
|
|
@@ -6667,11 +7462,28 @@
|
|
|
6667
7462
|
var childSegment = segment.children[0];
|
|
6668
7463
|
childSegment.id = segment.id;
|
|
6669
7464
|
childSegment.parentFlushed = !0;
|
|
6670
|
-
childSegment.status
|
|
7465
|
+
(childSegment.status !== COMPLETED &&
|
|
7466
|
+
childSegment.status !== ABORTED &&
|
|
7467
|
+
childSegment.status !== ERRORED) ||
|
|
6671
7468
|
queueCompletedSegment(boundary, childSegment);
|
|
6672
7469
|
} else boundary.completedSegments.push(segment);
|
|
6673
7470
|
}
|
|
6674
|
-
function
|
|
7471
|
+
function finishedSegment(request, boundary, segment) {
|
|
7472
|
+
if (null !== byteLengthOfChunk) {
|
|
7473
|
+
segment = segment.chunks;
|
|
7474
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
|
7475
|
+
segmentByteSize += byteLengthOfChunk(segment[i]);
|
|
7476
|
+
null === boundary
|
|
7477
|
+
? (request.byteSize += segmentByteSize)
|
|
7478
|
+
: (boundary.byteSize += segmentByteSize);
|
|
7479
|
+
}
|
|
7480
|
+
}
|
|
7481
|
+
function finishedTask(request, boundary, row, segment) {
|
|
7482
|
+
null !== row &&
|
|
7483
|
+
(0 === --row.pendingTasks
|
|
7484
|
+
? finishSuspenseListRow(request, row)
|
|
7485
|
+
: row.together && tryToResolveTogetherRow(request, row));
|
|
7486
|
+
request.allPendingTasks--;
|
|
6675
7487
|
if (null === boundary) {
|
|
6676
7488
|
if (null !== segment && segment.parentFlushed) {
|
|
6677
7489
|
if (null !== request.completedRootSegment)
|
|
@@ -6682,35 +7494,72 @@
|
|
|
6682
7494
|
}
|
|
6683
7495
|
request.pendingRootTasks--;
|
|
6684
7496
|
0 === request.pendingRootTasks && completeShell(request);
|
|
6685
|
-
} else
|
|
6686
|
-
boundary.pendingTasks
|
|
6687
|
-
|
|
6688
|
-
(
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
7497
|
+
} else if ((boundary.pendingTasks--, boundary.status !== CLIENT_RENDERED))
|
|
7498
|
+
if (0 === boundary.pendingTasks)
|
|
7499
|
+
if (
|
|
7500
|
+
(boundary.status === PENDING && (boundary.status = COMPLETED),
|
|
7501
|
+
null !== segment &&
|
|
7502
|
+
segment.parentFlushed &&
|
|
7503
|
+
(segment.status === COMPLETED || segment.status === ABORTED) &&
|
|
7504
|
+
queueCompletedSegment(boundary, segment),
|
|
7505
|
+
boundary.parentFlushed &&
|
|
7506
|
+
request.completedBoundaries.push(boundary),
|
|
7507
|
+
boundary.status === COMPLETED)
|
|
7508
|
+
)
|
|
7509
|
+
(row = boundary.row),
|
|
7510
|
+
null !== row &&
|
|
7511
|
+
hoistHoistables(row.hoistables, boundary.contentState),
|
|
7512
|
+
isEligibleForOutlining(request, boundary) ||
|
|
7513
|
+
(boundary.fallbackAbortableTasks.forEach(
|
|
7514
|
+
abortTaskSoft,
|
|
7515
|
+
request
|
|
7516
|
+
),
|
|
7517
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
7518
|
+
null !== row &&
|
|
7519
|
+
0 === --row.pendingTasks &&
|
|
7520
|
+
finishSuspenseListRow(request, row)),
|
|
7521
|
+
0 === request.pendingRootTasks &&
|
|
7522
|
+
null === request.trackedPostpones &&
|
|
7523
|
+
null !== boundary.contentPreamble &&
|
|
7524
|
+
preparePreamble(request);
|
|
7525
|
+
else {
|
|
7526
|
+
if (
|
|
7527
|
+
boundary.status === POSTPONED &&
|
|
7528
|
+
((boundary = boundary.row), null !== boundary)
|
|
7529
|
+
) {
|
|
7530
|
+
if (null !== request.trackedPostpones) {
|
|
7531
|
+
row = request.trackedPostpones;
|
|
7532
|
+
var postponedRow = boundary.next;
|
|
7533
|
+
if (
|
|
7534
|
+
null !== postponedRow &&
|
|
7535
|
+
((segment = postponedRow.boundaries), null !== segment)
|
|
7536
|
+
)
|
|
7537
|
+
for (
|
|
7538
|
+
postponedRow.boundaries = null, postponedRow = 0;
|
|
7539
|
+
postponedRow < segment.length;
|
|
7540
|
+
postponedRow++
|
|
7541
|
+
) {
|
|
7542
|
+
var postponedBoundary = segment[postponedRow];
|
|
7543
|
+
trackPostponedBoundary(request, row, postponedBoundary);
|
|
7544
|
+
finishedTask(request, postponedBoundary, null, null);
|
|
7545
|
+
}
|
|
7546
|
+
}
|
|
7547
|
+
0 === --boundary.pendingTasks &&
|
|
7548
|
+
finishSuspenseListRow(request, boundary);
|
|
7549
|
+
}
|
|
7550
|
+
}
|
|
7551
|
+
else
|
|
7552
|
+
null === segment ||
|
|
7553
|
+
!segment.parentFlushed ||
|
|
7554
|
+
(segment.status !== COMPLETED && segment.status !== ABORTED) ||
|
|
7555
|
+
(queueCompletedSegment(boundary, segment),
|
|
7556
|
+
1 === boundary.completedSegments.length &&
|
|
7557
|
+
boundary.parentFlushed &&
|
|
7558
|
+
request.partialBoundaries.push(boundary)),
|
|
7559
|
+
(boundary = boundary.row),
|
|
7560
|
+
null !== boundary &&
|
|
7561
|
+
boundary.together &&
|
|
7562
|
+
tryToResolveTogetherRow(request, boundary);
|
|
6714
7563
|
0 === request.allPendingTasks && completeAll(request);
|
|
6715
7564
|
}
|
|
6716
7565
|
function performWork(request$jscomp$2) {
|
|
@@ -6763,7 +7612,12 @@
|
|
|
6763
7612
|
);
|
|
6764
7613
|
request.replay.pendingTasks--;
|
|
6765
7614
|
request.abortSet.delete(request);
|
|
6766
|
-
finishedTask(
|
|
7615
|
+
finishedTask(
|
|
7616
|
+
request$jscomp$0,
|
|
7617
|
+
request.blockedBoundary,
|
|
7618
|
+
request.row,
|
|
7619
|
+
null
|
|
7620
|
+
);
|
|
6767
7621
|
} catch (thrownValue) {
|
|
6768
7622
|
resetHooksState();
|
|
6769
7623
|
var x =
|
|
@@ -6777,7 +7631,10 @@
|
|
|
6777
7631
|
) {
|
|
6778
7632
|
var ping = request.ping;
|
|
6779
7633
|
x.then(ping, ping);
|
|
6780
|
-
request.thenableState =
|
|
7634
|
+
request.thenableState =
|
|
7635
|
+
thrownValue === SuspenseException
|
|
7636
|
+
? getThenableStateAfterSuspending()
|
|
7637
|
+
: null;
|
|
6781
7638
|
} else {
|
|
6782
7639
|
request.replay.pendingTasks--;
|
|
6783
7640
|
request.abortSet.delete(request);
|
|
@@ -6838,9 +7695,15 @@
|
|
|
6838
7695
|
request$jscomp$1.chunks.push(textSeparator),
|
|
6839
7696
|
errorDigest.abortSet.delete(errorDigest),
|
|
6840
7697
|
(request$jscomp$1.status = COMPLETED),
|
|
7698
|
+
finishedSegment(
|
|
7699
|
+
request,
|
|
7700
|
+
errorDigest.blockedBoundary,
|
|
7701
|
+
request$jscomp$1
|
|
7702
|
+
),
|
|
6841
7703
|
finishedTask(
|
|
6842
7704
|
request,
|
|
6843
7705
|
errorDigest.blockedBoundary,
|
|
7706
|
+
errorDigest.row,
|
|
6844
7707
|
request$jscomp$1
|
|
6845
7708
|
);
|
|
6846
7709
|
} catch (thrownValue) {
|
|
@@ -6854,55 +7717,92 @@
|
|
|
6854
7717
|
? request.fatalError
|
|
6855
7718
|
: thrownValue;
|
|
6856
7719
|
if (
|
|
6857
|
-
|
|
6858
|
-
null !==
|
|
6859
|
-
"function" === typeof x$jscomp$0.then
|
|
7720
|
+
12 === request.status &&
|
|
7721
|
+
null !== request.trackedPostpones
|
|
6860
7722
|
) {
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
var ping$jscomp$0 = errorDigest.ping;
|
|
6864
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6865
|
-
} else {
|
|
6866
|
-
var errorInfo$jscomp$1 = getThrownInfo(
|
|
6867
|
-
errorDigest.componentStack
|
|
6868
|
-
);
|
|
7723
|
+
var trackedPostpones = request.trackedPostpones,
|
|
7724
|
+
thrownInfo = getThrownInfo(errorDigest.componentStack);
|
|
6869
7725
|
errorDigest.abortSet.delete(errorDigest);
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
7726
|
+
logRecoverableError(
|
|
7727
|
+
request,
|
|
7728
|
+
x$jscomp$0,
|
|
7729
|
+
thrownInfo,
|
|
7730
|
+
errorDigest.debugTask
|
|
7731
|
+
);
|
|
7732
|
+
trackPostpone(
|
|
7733
|
+
request,
|
|
7734
|
+
trackedPostpones,
|
|
7735
|
+
errorDigest,
|
|
7736
|
+
request$jscomp$1
|
|
7737
|
+
);
|
|
7738
|
+
finishedTask(
|
|
7739
|
+
request,
|
|
7740
|
+
errorDigest.blockedBoundary,
|
|
7741
|
+
errorDigest.row,
|
|
7742
|
+
request$jscomp$1
|
|
7743
|
+
);
|
|
7744
|
+
} else if (
|
|
7745
|
+
"object" === typeof x$jscomp$0 &&
|
|
7746
|
+
null !== x$jscomp$0 &&
|
|
7747
|
+
"function" === typeof x$jscomp$0.then
|
|
7748
|
+
) {
|
|
7749
|
+
request$jscomp$1.status = PENDING;
|
|
7750
|
+
errorDigest.thenableState =
|
|
7751
|
+
thrownValue === SuspenseException
|
|
7752
|
+
? getThenableStateAfterSuspending()
|
|
7753
|
+
: null;
|
|
7754
|
+
var ping$jscomp$0 = errorDigest.ping;
|
|
7755
|
+
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
7756
|
+
} else {
|
|
7757
|
+
var errorInfo$jscomp$1 = getThrownInfo(
|
|
7758
|
+
errorDigest.componentStack
|
|
7759
|
+
);
|
|
7760
|
+
errorDigest.abortSet.delete(errorDigest);
|
|
7761
|
+
request$jscomp$1.status = ERRORED;
|
|
7762
|
+
var boundary$jscomp$0 = errorDigest.blockedBoundary,
|
|
7763
|
+
row = errorDigest.row,
|
|
7764
|
+
debugTask = errorDigest.debugTask;
|
|
7765
|
+
null !== row &&
|
|
7766
|
+
0 === --row.pendingTasks &&
|
|
7767
|
+
finishSuspenseListRow(request, row);
|
|
7768
|
+
request.allPendingTasks--;
|
|
6873
7769
|
prevTaskInDEV = logRecoverableError(
|
|
6874
7770
|
request,
|
|
6875
7771
|
x$jscomp$0,
|
|
6876
7772
|
errorInfo$jscomp$1,
|
|
6877
7773
|
debugTask
|
|
6878
7774
|
);
|
|
6879
|
-
null === boundary$jscomp$0
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
7775
|
+
if (null === boundary$jscomp$0)
|
|
7776
|
+
fatalError(
|
|
7777
|
+
request,
|
|
7778
|
+
x$jscomp$0,
|
|
7779
|
+
errorInfo$jscomp$1,
|
|
7780
|
+
debugTask
|
|
7781
|
+
);
|
|
7782
|
+
else if (
|
|
7783
|
+
(boundary$jscomp$0.pendingTasks--,
|
|
7784
|
+
boundary$jscomp$0.status !== CLIENT_RENDERED)
|
|
7785
|
+
) {
|
|
7786
|
+
boundary$jscomp$0.status = CLIENT_RENDERED;
|
|
7787
|
+
encodeErrorForBoundary(
|
|
7788
|
+
boundary$jscomp$0,
|
|
7789
|
+
prevTaskInDEV,
|
|
7790
|
+
x$jscomp$0,
|
|
7791
|
+
errorInfo$jscomp$1,
|
|
7792
|
+
!1
|
|
7793
|
+
);
|
|
7794
|
+
untrackBoundary(request, boundary$jscomp$0);
|
|
7795
|
+
var boundaryRow = boundary$jscomp$0.row;
|
|
7796
|
+
null !== boundaryRow &&
|
|
7797
|
+
0 === --boundaryRow.pendingTasks &&
|
|
7798
|
+
finishSuspenseListRow(request, boundaryRow);
|
|
7799
|
+
boundary$jscomp$0.parentFlushed &&
|
|
7800
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
|
7801
|
+
0 === request.pendingRootTasks &&
|
|
7802
|
+
null === request.trackedPostpones &&
|
|
7803
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
|
7804
|
+
preparePreamble(request);
|
|
7805
|
+
}
|
|
6906
7806
|
0 === request.allPendingTasks && completeAll(request);
|
|
6907
7807
|
}
|
|
6908
7808
|
} finally {
|
|
@@ -6964,6 +7864,7 @@
|
|
|
6964
7864
|
switch (boundary.status) {
|
|
6965
7865
|
case COMPLETED:
|
|
6966
7866
|
hoistPreambleState(request.renderState, preamble);
|
|
7867
|
+
request.byteSize += boundary.byteSize;
|
|
6967
7868
|
segment = boundary.completedSegments[0];
|
|
6968
7869
|
if (!segment)
|
|
6969
7870
|
throw Error(
|
|
@@ -6996,17 +7897,17 @@
|
|
|
6996
7897
|
null === request.completedPreambleSegments
|
|
6997
7898
|
) {
|
|
6998
7899
|
var collectedPreambleSegments = [],
|
|
7900
|
+
originalRequestByteSize = request.byteSize,
|
|
6999
7901
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
7000
7902
|
request,
|
|
7001
7903
|
request.completedRootSegment,
|
|
7002
7904
|
collectedPreambleSegments
|
|
7003
7905
|
),
|
|
7004
7906
|
preamble = request.renderState.preamble;
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
(
|
|
7008
|
-
|
|
7009
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
7907
|
+
!1 === hasPendingPreambles ||
|
|
7908
|
+
(preamble.headChunks && preamble.bodyChunks)
|
|
7909
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
7910
|
+
: (request.byteSize = originalRequestByteSize);
|
|
7010
7911
|
}
|
|
7011
7912
|
}
|
|
7012
7913
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -7042,6 +7943,8 @@
|
|
|
7042
7943
|
chunkIdx < chunks.length &&
|
|
7043
7944
|
(r = writeChunkAndReturn(destination, chunks[chunkIdx]));
|
|
7044
7945
|
return r;
|
|
7946
|
+
case ABORTED:
|
|
7947
|
+
return !0;
|
|
7045
7948
|
default:
|
|
7046
7949
|
throw Error(
|
|
7047
7950
|
"Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React."
|
|
@@ -7054,15 +7957,19 @@
|
|
|
7054
7957
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
7055
7958
|
boundary.parentFlushed = !0;
|
|
7056
7959
|
if (boundary.status === CLIENT_RENDERED) {
|
|
7057
|
-
var
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7960
|
+
var row = boundary.row;
|
|
7961
|
+
null !== row &&
|
|
7962
|
+
0 === --row.pendingTasks &&
|
|
7963
|
+
finishSuspenseListRow(request, row);
|
|
7964
|
+
row = boundary.errorDigest;
|
|
7965
|
+
var errorMessage = boundary.errorMessage,
|
|
7966
|
+
errorStack = boundary.errorStack;
|
|
7967
|
+
boundary = boundary.errorComponentStack;
|
|
7061
7968
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
|
7062
7969
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
|
7063
|
-
|
|
7970
|
+
row &&
|
|
7064
7971
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
|
7065
|
-
writeChunk(destination, escapeTextForBrowser(
|
|
7972
|
+
writeChunk(destination, escapeTextForBrowser(row)),
|
|
7066
7973
|
writeChunk(
|
|
7067
7974
|
destination,
|
|
7068
7975
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
|
@@ -7081,23 +7988,18 @@
|
|
|
7081
7988
|
destination,
|
|
7082
7989
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
|
7083
7990
|
));
|
|
7084
|
-
|
|
7991
|
+
boundary &&
|
|
7085
7992
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
|
|
7086
|
-
writeChunk(destination, escapeTextForBrowser(
|
|
7993
|
+
writeChunk(destination, escapeTextForBrowser(boundary)),
|
|
7087
7994
|
writeChunk(
|
|
7088
7995
|
destination,
|
|
7089
7996
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
|
7090
7997
|
));
|
|
7091
7998
|
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
|
7092
7999
|
flushSubtree(request, destination, segment, hoistableState);
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
}
|
|
7097
|
-
if (boundary.status !== COMPLETED)
|
|
7098
|
-
return (
|
|
7099
|
-
boundary.status === PENDING &&
|
|
7100
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
8000
|
+
} else if (boundary.status !== COMPLETED)
|
|
8001
|
+
boundary.status === PENDING &&
|
|
8002
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
7101
8003
|
0 < boundary.completedSegments.length &&
|
|
7102
8004
|
request.partialBoundaries.push(boundary),
|
|
7103
8005
|
writeStartPendingSuspenseBoundary(
|
|
@@ -7106,40 +8008,39 @@
|
|
|
7106
8008
|
boundary.rootSegmentID
|
|
7107
8009
|
),
|
|
7108
8010
|
hoistableState &&
|
|
7109
|
-
(
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
)
|
|
7118
|
-
if (boundary.byteSize > request.progressiveChunkSize)
|
|
7119
|
-
return (
|
|
7120
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
8011
|
+
hoistHoistables(hoistableState, boundary.fallbackState),
|
|
8012
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
8013
|
+
else if (
|
|
8014
|
+
!flushingPartialBoundaries &&
|
|
8015
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8016
|
+
(flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
|
|
8017
|
+
hasSuspenseyContent(boundary.contentState))
|
|
8018
|
+
)
|
|
8019
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
7121
8020
|
request.completedBoundaries.push(boundary),
|
|
7122
8021
|
writeStartPendingSuspenseBoundary(
|
|
7123
8022
|
destination,
|
|
7124
8023
|
request.renderState,
|
|
7125
8024
|
boundary.rootSegmentID
|
|
7126
8025
|
),
|
|
7127
|
-
flushSubtree(request, destination, segment, hoistableState)
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
segment.
|
|
7133
|
-
segment
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
)
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
8026
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
8027
|
+
else {
|
|
8028
|
+
flushedByteSize += boundary.byteSize;
|
|
8029
|
+
hoistableState &&
|
|
8030
|
+
hoistHoistables(hoistableState, boundary.contentState);
|
|
8031
|
+
segment = boundary.row;
|
|
8032
|
+
null !== segment &&
|
|
8033
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8034
|
+
0 === --segment.pendingTasks &&
|
|
8035
|
+
finishSuspenseListRow(request, segment);
|
|
8036
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
8037
|
+
segment = boundary.completedSegments;
|
|
8038
|
+
if (1 !== segment.length)
|
|
8039
|
+
throw Error(
|
|
8040
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
|
8041
|
+
);
|
|
8042
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
|
8043
|
+
}
|
|
7143
8044
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
|
7144
8045
|
}
|
|
7145
8046
|
function flushSegmentContainer(
|
|
@@ -7158,6 +8059,7 @@
|
|
|
7158
8059
|
return writeEndSegment(destination, segment.parentFormatContext);
|
|
7159
8060
|
}
|
|
7160
8061
|
function flushCompletedBoundary(request, destination, boundary) {
|
|
8062
|
+
flushedByteSize = boundary.byteSize;
|
|
7161
8063
|
for (
|
|
7162
8064
|
var completedSegments = boundary.completedSegments, i = 0;
|
|
7163
8065
|
i < completedSegments.length;
|
|
@@ -7170,6 +8072,11 @@
|
|
|
7170
8072
|
completedSegments[i]
|
|
7171
8073
|
);
|
|
7172
8074
|
completedSegments.length = 0;
|
|
8075
|
+
completedSegments = boundary.row;
|
|
8076
|
+
null !== completedSegments &&
|
|
8077
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8078
|
+
0 === --completedSegments.pendingTasks &&
|
|
8079
|
+
finishSuspenseListRow(request, completedSegments);
|
|
7173
8080
|
writeHoistablesForBoundary(
|
|
7174
8081
|
destination,
|
|
7175
8082
|
boundary.contentState,
|
|
@@ -7182,27 +8089,29 @@
|
|
|
7182
8089
|
var requiresStyleInsertion = request.stylesToHoist;
|
|
7183
8090
|
request.stylesToHoist = !1;
|
|
7184
8091
|
writeChunk(destination, request.startInlineScript);
|
|
8092
|
+
writeChunk(destination, endOfStartTag);
|
|
7185
8093
|
requiresStyleInsertion
|
|
7186
|
-
? (completedSegments.instructions &
|
|
8094
|
+
? ((completedSegments.instructions & SentClientRenderFunction) ===
|
|
8095
|
+
NothingSent &&
|
|
8096
|
+
((completedSegments.instructions |= SentClientRenderFunction),
|
|
8097
|
+
writeChunk(destination, clientRenderScriptFunctionOnly)),
|
|
8098
|
+
(completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
8099
|
+
NothingSent &&
|
|
8100
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
8101
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
8102
|
+
(completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
7187
8103
|
NothingSent
|
|
7188
|
-
? ((completedSegments.instructions =
|
|
7189
|
-
completedSegments.instructions |
|
|
7190
|
-
SentStyleInsertionFunction |
|
|
7191
|
-
SentCompleteBoundaryFunction),
|
|
7192
|
-
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
|
7193
|
-
: (completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
7194
|
-
NothingSent
|
|
7195
8104
|
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
|
7196
8105
|
writeChunk(
|
|
7197
8106
|
destination,
|
|
7198
8107
|
completeBoundaryWithStylesScript1FullPartial
|
|
7199
8108
|
))
|
|
7200
|
-
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
|
7201
|
-
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
7202
|
-
NothingSent
|
|
7203
|
-
|
|
7204
|
-
writeChunk(destination,
|
|
7205
|
-
|
|
8109
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial))
|
|
8110
|
+
: ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
8111
|
+
NothingSent &&
|
|
8112
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
8113
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
8114
|
+
writeChunk(destination, completeBoundaryScript1Partial));
|
|
7206
8115
|
completedSegments = i.toString(16);
|
|
7207
8116
|
writeChunk(destination, request.boundaryPrefix);
|
|
7208
8117
|
writeChunk(destination, completedSegments);
|
|
@@ -7248,6 +8157,7 @@
|
|
|
7248
8157
|
boundary = request.resumableState;
|
|
7249
8158
|
request = request.renderState;
|
|
7250
8159
|
writeChunk(destination, request.startInlineScript);
|
|
8160
|
+
writeChunk(destination, endOfStartTag);
|
|
7251
8161
|
(boundary.instructions & SentCompleteSegmentFunction) === NothingSent
|
|
7252
8162
|
? ((boundary.instructions |= SentCompleteSegmentFunction),
|
|
7253
8163
|
writeChunk(destination, completeSegmentScript1Full))
|
|
@@ -7273,7 +8183,9 @@
|
|
|
7273
8183
|
if (completedRootSegment.status === POSTPONED) return;
|
|
7274
8184
|
var completedPreambleSegments = request.completedPreambleSegments;
|
|
7275
8185
|
if (null === completedPreambleSegments) return;
|
|
7276
|
-
|
|
8186
|
+
flushedByteSize = request.byteSize;
|
|
8187
|
+
var resumableState = request.resumableState,
|
|
8188
|
+
renderState = request.renderState,
|
|
7277
8189
|
preamble = renderState.preamble,
|
|
7278
8190
|
htmlChunks = preamble.htmlChunks,
|
|
7279
8191
|
headChunks = preamble.headChunks,
|
|
@@ -7316,7 +8228,9 @@
|
|
|
7316
8228
|
renderState.fontPreloads.clear();
|
|
7317
8229
|
renderState.highImagePreloads.forEach(flushResource, destination);
|
|
7318
8230
|
renderState.highImagePreloads.clear();
|
|
8231
|
+
currentlyFlushingRenderState = renderState;
|
|
7319
8232
|
renderState.styles.forEach(flushStylesInPreamble, destination);
|
|
8233
|
+
currentlyFlushingRenderState = null;
|
|
7320
8234
|
var importMapChunks = renderState.importMapChunks;
|
|
7321
8235
|
for (
|
|
7322
8236
|
i$jscomp$0 = 0;
|
|
@@ -7330,6 +8244,9 @@
|
|
|
7330
8244
|
renderState.scripts.clear();
|
|
7331
8245
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
|
7332
8246
|
renderState.bulkPreloads.clear();
|
|
8247
|
+
htmlChunks ||
|
|
8248
|
+
headChunks ||
|
|
8249
|
+
(resumableState.instructions |= SentCompletedShellId);
|
|
7333
8250
|
var hoistableChunks = renderState.hoistableChunks;
|
|
7334
8251
|
for (
|
|
7335
8252
|
i$jscomp$0 = 0;
|
|
@@ -7338,13 +8255,17 @@
|
|
|
7338
8255
|
)
|
|
7339
8256
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
|
7340
8257
|
for (
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
8258
|
+
resumableState = hoistableChunks.length = 0;
|
|
8259
|
+
resumableState < completedPreambleSegments.length;
|
|
8260
|
+
resumableState++
|
|
7344
8261
|
) {
|
|
7345
|
-
var segments = completedPreambleSegments[
|
|
7346
|
-
for (
|
|
7347
|
-
|
|
8262
|
+
var segments = completedPreambleSegments[resumableState];
|
|
8263
|
+
for (
|
|
8264
|
+
renderState = 0;
|
|
8265
|
+
renderState < segments.length;
|
|
8266
|
+
renderState++
|
|
8267
|
+
)
|
|
8268
|
+
flushSegment(request, destination, segments[renderState], null);
|
|
7348
8269
|
}
|
|
7349
8270
|
var preamble$jscomp$0 = request.renderState.preamble,
|
|
7350
8271
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
@@ -7360,11 +8281,43 @@
|
|
|
7360
8281
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
7361
8282
|
flushSegment(request, destination, completedRootSegment, null);
|
|
7362
8283
|
request.completedRootSegment = null;
|
|
7363
|
-
|
|
8284
|
+
var renderState$jscomp$0 = request.renderState;
|
|
8285
|
+
if (
|
|
8286
|
+
0 !== request.allPendingTasks ||
|
|
8287
|
+
0 !== request.clientRenderedBoundaries.length ||
|
|
8288
|
+
0 !== request.completedBoundaries.length ||
|
|
8289
|
+
(null !== request.trackedPostpones &&
|
|
8290
|
+
(0 !== request.trackedPostpones.rootNodes.length ||
|
|
8291
|
+
null !== request.trackedPostpones.rootSlots))
|
|
8292
|
+
) {
|
|
8293
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
8294
|
+
if (
|
|
8295
|
+
(resumableState$jscomp$0.instructions & SentMarkShellTime) ===
|
|
8296
|
+
NothingSent
|
|
8297
|
+
) {
|
|
8298
|
+
resumableState$jscomp$0.instructions |= SentMarkShellTime;
|
|
8299
|
+
writeChunk(destination, renderState$jscomp$0.startInlineScript);
|
|
8300
|
+
if (
|
|
8301
|
+
(resumableState$jscomp$0.instructions &
|
|
8302
|
+
SentCompletedShellId) ===
|
|
8303
|
+
NothingSent
|
|
8304
|
+
) {
|
|
8305
|
+
resumableState$jscomp$0.instructions |= SentCompletedShellId;
|
|
8306
|
+
var shellId = "_" + resumableState$jscomp$0.idPrefix + "R_";
|
|
8307
|
+
writeChunk(destination, completedShellIdAttributeStart);
|
|
8308
|
+
writeChunk(destination, escapeTextForBrowser(shellId));
|
|
8309
|
+
writeChunk(destination, attributeEnd);
|
|
8310
|
+
}
|
|
8311
|
+
writeChunk(destination, endOfStartTag);
|
|
8312
|
+
writeChunk(destination, shellTimeRuntimeScript);
|
|
8313
|
+
writeChunkAndReturn(destination, endInlineScript);
|
|
8314
|
+
}
|
|
8315
|
+
}
|
|
8316
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
|
7364
8317
|
}
|
|
7365
|
-
var renderState$jscomp$
|
|
8318
|
+
var renderState$jscomp$1 = request.renderState;
|
|
7366
8319
|
completedRootSegment = 0;
|
|
7367
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
|
8320
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
|
7368
8321
|
for (
|
|
7369
8322
|
completedRootSegment = 0;
|
|
7370
8323
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
|
@@ -7375,21 +8328,21 @@
|
|
|
7375
8328
|
viewportChunks$jscomp$0[completedRootSegment]
|
|
7376
8329
|
);
|
|
7377
8330
|
viewportChunks$jscomp$0.length = 0;
|
|
7378
|
-
renderState$jscomp$
|
|
7379
|
-
renderState$jscomp$
|
|
7380
|
-
renderState$jscomp$
|
|
7381
|
-
renderState$jscomp$
|
|
7382
|
-
renderState$jscomp$
|
|
8331
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
|
8332
|
+
renderState$jscomp$1.preconnects.clear();
|
|
8333
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
|
8334
|
+
renderState$jscomp$1.fontPreloads.clear();
|
|
8335
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
|
7383
8336
|
flushResource,
|
|
7384
8337
|
destination
|
|
7385
8338
|
);
|
|
7386
|
-
renderState$jscomp$
|
|
7387
|
-
renderState$jscomp$
|
|
7388
|
-
renderState$jscomp$
|
|
7389
|
-
renderState$jscomp$
|
|
7390
|
-
renderState$jscomp$
|
|
7391
|
-
renderState$jscomp$
|
|
7392
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
|
8339
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
|
8340
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
|
8341
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
|
8342
|
+
renderState$jscomp$1.scripts.clear();
|
|
8343
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
|
8344
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
|
8345
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
|
7393
8346
|
for (
|
|
7394
8347
|
completedRootSegment = 0;
|
|
7395
8348
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
|
@@ -7403,29 +8356,32 @@
|
|
|
7403
8356
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
|
7404
8357
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
|
7405
8358
|
var boundary = clientRenderedBoundaries[i];
|
|
7406
|
-
renderState$jscomp$
|
|
7407
|
-
var resumableState = request.resumableState,
|
|
7408
|
-
renderState$jscomp$
|
|
8359
|
+
renderState$jscomp$1 = destination;
|
|
8360
|
+
var resumableState$jscomp$1 = request.resumableState,
|
|
8361
|
+
renderState$jscomp$2 = request.renderState,
|
|
7409
8362
|
id = boundary.rootSegmentID,
|
|
7410
8363
|
errorDigest = boundary.errorDigest,
|
|
7411
8364
|
errorMessage = boundary.errorMessage,
|
|
7412
8365
|
errorStack = boundary.errorStack,
|
|
7413
8366
|
errorComponentStack = boundary.errorComponentStack;
|
|
7414
8367
|
writeChunk(
|
|
7415
|
-
renderState$jscomp$
|
|
7416
|
-
renderState$jscomp$
|
|
8368
|
+
renderState$jscomp$1,
|
|
8369
|
+
renderState$jscomp$2.startInlineScript
|
|
7417
8370
|
);
|
|
7418
|
-
(
|
|
8371
|
+
writeChunk(renderState$jscomp$1, endOfStartTag);
|
|
8372
|
+
(resumableState$jscomp$1.instructions &
|
|
8373
|
+
SentClientRenderFunction) ===
|
|
7419
8374
|
NothingSent
|
|
7420
|
-
? ((resumableState.instructions |=
|
|
7421
|
-
|
|
7422
|
-
|
|
8375
|
+
? ((resumableState$jscomp$1.instructions |=
|
|
8376
|
+
SentClientRenderFunction),
|
|
8377
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
|
8378
|
+
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
|
7423
8379
|
writeChunk(
|
|
7424
|
-
renderState$jscomp$
|
|
7425
|
-
renderState$jscomp$
|
|
8380
|
+
renderState$jscomp$1,
|
|
8381
|
+
renderState$jscomp$2.boundaryPrefix
|
|
7426
8382
|
);
|
|
7427
|
-
writeChunk(renderState$jscomp$
|
|
7428
|
-
writeChunk(renderState$jscomp$
|
|
8383
|
+
writeChunk(renderState$jscomp$1, id.toString(16));
|
|
8384
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
|
7429
8385
|
if (
|
|
7430
8386
|
errorDigest ||
|
|
7431
8387
|
errorMessage ||
|
|
@@ -7433,42 +8389,42 @@
|
|
|
7433
8389
|
errorComponentStack
|
|
7434
8390
|
)
|
|
7435
8391
|
writeChunk(
|
|
7436
|
-
renderState$jscomp$
|
|
8392
|
+
renderState$jscomp$1,
|
|
7437
8393
|
clientRenderErrorScriptArgInterstitial
|
|
7438
8394
|
),
|
|
7439
8395
|
writeChunk(
|
|
7440
|
-
renderState$jscomp$
|
|
8396
|
+
renderState$jscomp$1,
|
|
7441
8397
|
escapeJSStringsForInstructionScripts(errorDigest || "")
|
|
7442
8398
|
);
|
|
7443
8399
|
if (errorMessage || errorStack || errorComponentStack)
|
|
7444
8400
|
writeChunk(
|
|
7445
|
-
renderState$jscomp$
|
|
8401
|
+
renderState$jscomp$1,
|
|
7446
8402
|
clientRenderErrorScriptArgInterstitial
|
|
7447
8403
|
),
|
|
7448
8404
|
writeChunk(
|
|
7449
|
-
renderState$jscomp$
|
|
8405
|
+
renderState$jscomp$1,
|
|
7450
8406
|
escapeJSStringsForInstructionScripts(errorMessage || "")
|
|
7451
8407
|
);
|
|
7452
8408
|
if (errorStack || errorComponentStack)
|
|
7453
8409
|
writeChunk(
|
|
7454
|
-
renderState$jscomp$
|
|
8410
|
+
renderState$jscomp$1,
|
|
7455
8411
|
clientRenderErrorScriptArgInterstitial
|
|
7456
8412
|
),
|
|
7457
8413
|
writeChunk(
|
|
7458
|
-
renderState$jscomp$
|
|
8414
|
+
renderState$jscomp$1,
|
|
7459
8415
|
escapeJSStringsForInstructionScripts(errorStack || "")
|
|
7460
8416
|
);
|
|
7461
8417
|
errorComponentStack &&
|
|
7462
8418
|
(writeChunk(
|
|
7463
|
-
renderState$jscomp$
|
|
8419
|
+
renderState$jscomp$1,
|
|
7464
8420
|
clientRenderErrorScriptArgInterstitial
|
|
7465
8421
|
),
|
|
7466
8422
|
writeChunk(
|
|
7467
|
-
renderState$jscomp$
|
|
8423
|
+
renderState$jscomp$1,
|
|
7468
8424
|
escapeJSStringsForInstructionScripts(errorComponentStack)
|
|
7469
8425
|
));
|
|
7470
8426
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
|
7471
|
-
renderState$jscomp$
|
|
8427
|
+
renderState$jscomp$1,
|
|
7472
8428
|
clientRenderScriptEnd
|
|
7473
8429
|
);
|
|
7474
8430
|
if (!JSCompiler_inline_result) {
|
|
@@ -7497,14 +8453,15 @@
|
|
|
7497
8453
|
completeWriting(destination);
|
|
7498
8454
|
currentView = new Uint8Array(2048);
|
|
7499
8455
|
writtenBytes = 0;
|
|
7500
|
-
destinationHasCapacity$1 = !0;
|
|
8456
|
+
flushingPartialBoundaries = destinationHasCapacity$1 = !0;
|
|
7501
8457
|
var partialBoundaries = request.partialBoundaries;
|
|
7502
8458
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
7503
8459
|
a: {
|
|
7504
8460
|
clientRenderedBoundaries = request;
|
|
7505
8461
|
boundary = destination;
|
|
7506
|
-
var boundary$jscomp$0 = partialBoundaries[i]
|
|
7507
|
-
|
|
8462
|
+
var boundary$jscomp$0 = partialBoundaries[i];
|
|
8463
|
+
flushedByteSize = boundary$jscomp$0.byteSize;
|
|
8464
|
+
var completedSegments = boundary$jscomp$0.completedSegments;
|
|
7508
8465
|
for (
|
|
7509
8466
|
JSCompiler_inline_result = 0;
|
|
7510
8467
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -7524,6 +8481,17 @@
|
|
|
7524
8481
|
break a;
|
|
7525
8482
|
}
|
|
7526
8483
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8484
|
+
var row = boundary$jscomp$0.row;
|
|
8485
|
+
null !== row &&
|
|
8486
|
+
row.together &&
|
|
8487
|
+
1 === boundary$jscomp$0.pendingTasks &&
|
|
8488
|
+
(1 === row.pendingTasks
|
|
8489
|
+
? unblockSuspenseListRow(
|
|
8490
|
+
clientRenderedBoundaries,
|
|
8491
|
+
row,
|
|
8492
|
+
row.hoistables
|
|
8493
|
+
)
|
|
8494
|
+
: row.pendingTasks--);
|
|
7527
8495
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
7528
8496
|
boundary,
|
|
7529
8497
|
boundary$jscomp$0.contentState,
|
|
@@ -7538,6 +8506,7 @@
|
|
|
7538
8506
|
}
|
|
7539
8507
|
}
|
|
7540
8508
|
partialBoundaries.splice(0, i);
|
|
8509
|
+
flushingPartialBoundaries = !1;
|
|
7541
8510
|
var largeBoundaries = request.completedBoundaries;
|
|
7542
8511
|
for (i = 0; i < largeBoundaries.length; i++)
|
|
7543
8512
|
if (
|
|
@@ -7551,24 +8520,24 @@
|
|
|
7551
8520
|
largeBoundaries.splice(0, i);
|
|
7552
8521
|
}
|
|
7553
8522
|
} finally {
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
8523
|
+
(flushingPartialBoundaries = !1),
|
|
8524
|
+
0 === request.allPendingTasks &&
|
|
8525
|
+
0 === request.clientRenderedBoundaries.length &&
|
|
8526
|
+
0 === request.completedBoundaries.length
|
|
8527
|
+
? ((request.flushScheduled = !1),
|
|
8528
|
+
(i = request.resumableState),
|
|
8529
|
+
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
|
8530
|
+
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
8531
|
+
completeWriting(destination),
|
|
8532
|
+
flushBuffered(destination),
|
|
8533
|
+
0 !== request.abortableTasks.size &&
|
|
8534
|
+
console.error(
|
|
8535
|
+
"There was still abortable task at the root when we closed. This is a bug in React."
|
|
8536
|
+
),
|
|
8537
|
+
(request.status = CLOSED),
|
|
8538
|
+
destination.end(),
|
|
8539
|
+
(request.destination = null))
|
|
8540
|
+
: (completeWriting(destination), flushBuffered(destination));
|
|
7572
8541
|
}
|
|
7573
8542
|
}
|
|
7574
8543
|
function startWork(request) {
|
|
@@ -7630,7 +8599,17 @@
|
|
|
7630
8599
|
: reason;
|
|
7631
8600
|
request.fatalError = error;
|
|
7632
8601
|
abortableTasks.forEach(function (task) {
|
|
7633
|
-
|
|
8602
|
+
var prevTaskInDEV = currentTaskInDEV,
|
|
8603
|
+
prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
|
|
8604
|
+
currentTaskInDEV = task;
|
|
8605
|
+
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
|
8606
|
+
try {
|
|
8607
|
+
abortTask(task, request, error);
|
|
8608
|
+
} finally {
|
|
8609
|
+
(currentTaskInDEV = prevTaskInDEV),
|
|
8610
|
+
(ReactSharedInternals.getCurrentStack =
|
|
8611
|
+
prevGetCurrentStackImpl);
|
|
8612
|
+
}
|
|
7634
8613
|
});
|
|
7635
8614
|
abortableTasks.clear();
|
|
7636
8615
|
}
|
|
@@ -7642,13 +8621,71 @@
|
|
|
7642
8621
|
fatalError(request, error$4, reason, null);
|
|
7643
8622
|
}
|
|
7644
8623
|
}
|
|
8624
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
8625
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
|
8626
|
+
else {
|
|
8627
|
+
var workingMap = trackedPostpones.workingMap,
|
|
8628
|
+
parentNode = workingMap.get(parentKeyPath);
|
|
8629
|
+
void 0 === parentNode &&
|
|
8630
|
+
((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
|
|
8631
|
+
workingMap.set(parentKeyPath, parentNode),
|
|
8632
|
+
addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
|
8633
|
+
parentNode[2].push(node);
|
|
8634
|
+
}
|
|
8635
|
+
}
|
|
8636
|
+
function getPostponedState(request) {
|
|
8637
|
+
var trackedPostpones = request.trackedPostpones;
|
|
8638
|
+
if (
|
|
8639
|
+
null === trackedPostpones ||
|
|
8640
|
+
(0 === trackedPostpones.rootNodes.length &&
|
|
8641
|
+
null === trackedPostpones.rootSlots)
|
|
8642
|
+
)
|
|
8643
|
+
return (request.trackedPostpones = null);
|
|
8644
|
+
if (
|
|
8645
|
+
null === request.completedRootSegment ||
|
|
8646
|
+
(request.completedRootSegment.status !== POSTPONED &&
|
|
8647
|
+
null !== request.completedPreambleSegments)
|
|
8648
|
+
) {
|
|
8649
|
+
var nextSegmentId = request.nextSegmentId;
|
|
8650
|
+
var replaySlots = trackedPostpones.rootSlots;
|
|
8651
|
+
var resumableState = request.resumableState;
|
|
8652
|
+
resumableState.bootstrapScriptContent = void 0;
|
|
8653
|
+
resumableState.bootstrapScripts = void 0;
|
|
8654
|
+
resumableState.bootstrapModules = void 0;
|
|
8655
|
+
} else {
|
|
8656
|
+
nextSegmentId = 0;
|
|
8657
|
+
replaySlots = -1;
|
|
8658
|
+
resumableState = request.resumableState;
|
|
8659
|
+
var renderState = request.renderState;
|
|
8660
|
+
resumableState.nextFormID = 0;
|
|
8661
|
+
resumableState.hasBody = !1;
|
|
8662
|
+
resumableState.hasHtml = !1;
|
|
8663
|
+
resumableState.unknownResources = { font: renderState.resets.font };
|
|
8664
|
+
resumableState.dnsResources = renderState.resets.dns;
|
|
8665
|
+
resumableState.connectResources = renderState.resets.connect;
|
|
8666
|
+
resumableState.imageResources = renderState.resets.image;
|
|
8667
|
+
resumableState.styleResources = renderState.resets.style;
|
|
8668
|
+
resumableState.scriptResources = {};
|
|
8669
|
+
resumableState.moduleUnknownResources = {};
|
|
8670
|
+
resumableState.moduleScriptResources = {};
|
|
8671
|
+
resumableState.instructions = NothingSent;
|
|
8672
|
+
}
|
|
8673
|
+
return {
|
|
8674
|
+
nextSegmentId: nextSegmentId,
|
|
8675
|
+
rootFormatContext: request.rootFormatContext,
|
|
8676
|
+
progressiveChunkSize: request.progressiveChunkSize,
|
|
8677
|
+
resumableState: request.resumableState,
|
|
8678
|
+
replayNodes: trackedPostpones.rootNodes,
|
|
8679
|
+
replaySlots: replaySlots
|
|
8680
|
+
};
|
|
8681
|
+
}
|
|
7645
8682
|
function ensureCorrectIsomorphicReactVersion() {
|
|
7646
8683
|
var isomorphicReactPackageVersion = React.version;
|
|
7647
|
-
if ("19.
|
|
8684
|
+
if ("19.2.3" !== isomorphicReactPackageVersion)
|
|
7648
8685
|
throw Error(
|
|
7649
8686
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7650
8687
|
(isomorphicReactPackageVersion +
|
|
7651
|
-
"\n - react-dom: 19.
|
|
8688
|
+
"\n - react-dom: 19.2.3\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7652
8689
|
);
|
|
7653
8690
|
}
|
|
7654
8691
|
function createDrainHandler(destination, request) {
|
|
@@ -7692,7 +8729,61 @@
|
|
|
7692
8729
|
options ? options.formState : void 0
|
|
7693
8730
|
);
|
|
7694
8731
|
}
|
|
7695
|
-
function
|
|
8732
|
+
function createFakeWritableFromReadableStreamController$1(controller) {
|
|
8733
|
+
return {
|
|
8734
|
+
write: function (chunk) {
|
|
8735
|
+
"string" === typeof chunk && (chunk = textEncoder.encode(chunk));
|
|
8736
|
+
controller.enqueue(chunk);
|
|
8737
|
+
return !0;
|
|
8738
|
+
},
|
|
8739
|
+
end: function () {
|
|
8740
|
+
controller.close();
|
|
8741
|
+
},
|
|
8742
|
+
destroy: function (error) {
|
|
8743
|
+
"function" === typeof controller.error
|
|
8744
|
+
? controller.error(error)
|
|
8745
|
+
: controller.close();
|
|
8746
|
+
}
|
|
8747
|
+
};
|
|
8748
|
+
}
|
|
8749
|
+
function resumeRequestImpl(children, postponedState, options) {
|
|
8750
|
+
return resumeRequest(
|
|
8751
|
+
children,
|
|
8752
|
+
postponedState,
|
|
8753
|
+
createRenderState(
|
|
8754
|
+
postponedState.resumableState,
|
|
8755
|
+
options ? options.nonce : void 0,
|
|
8756
|
+
void 0,
|
|
8757
|
+
void 0,
|
|
8758
|
+
void 0,
|
|
8759
|
+
void 0
|
|
8760
|
+
),
|
|
8761
|
+
options ? options.onError : void 0,
|
|
8762
|
+
options ? options.onAllReady : void 0,
|
|
8763
|
+
options ? options.onShellReady : void 0,
|
|
8764
|
+
options ? options.onShellError : void 0,
|
|
8765
|
+
void 0,
|
|
8766
|
+
options ? options.onPostpone : void 0
|
|
8767
|
+
);
|
|
8768
|
+
}
|
|
8769
|
+
function createFakeWritableFromReadableStreamController(controller) {
|
|
8770
|
+
return {
|
|
8771
|
+
write: function (chunk) {
|
|
8772
|
+
"string" === typeof chunk && (chunk = textEncoder.encode(chunk));
|
|
8773
|
+
controller.enqueue(chunk);
|
|
8774
|
+
return !0;
|
|
8775
|
+
},
|
|
8776
|
+
end: function () {
|
|
8777
|
+
controller.close();
|
|
8778
|
+
},
|
|
8779
|
+
destroy: function (error) {
|
|
8780
|
+
"function" === typeof controller.error
|
|
8781
|
+
? controller.error(error)
|
|
8782
|
+
: controller.close();
|
|
8783
|
+
}
|
|
8784
|
+
};
|
|
8785
|
+
}
|
|
8786
|
+
function createFakeWritableFromReadable(readable) {
|
|
7696
8787
|
return {
|
|
7697
8788
|
write: function (chunk) {
|
|
7698
8789
|
return readable.push(chunk);
|
|
@@ -7716,7 +8807,6 @@
|
|
|
7716
8807
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
7717
8808
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
7718
8809
|
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
7719
|
-
REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
|
|
7720
8810
|
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
7721
8811
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
7722
8812
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
@@ -7889,7 +8979,11 @@
|
|
|
7889
8979
|
"aria-rowcount": 0,
|
|
7890
8980
|
"aria-rowindex": 0,
|
|
7891
8981
|
"aria-rowspan": 0,
|
|
7892
|
-
"aria-setsize": 0
|
|
8982
|
+
"aria-setsize": 0,
|
|
8983
|
+
"aria-braillelabel": 0,
|
|
8984
|
+
"aria-brailleroledescription": 0,
|
|
8985
|
+
"aria-colindextext": 0,
|
|
8986
|
+
"aria-rowindextext": 0
|
|
7893
8987
|
},
|
|
7894
8988
|
warnedProperties$1 = {},
|
|
7895
8989
|
rARIA$1 = RegExp(
|
|
@@ -8782,26 +9876,29 @@
|
|
|
8782
9876
|
SentCompleteBoundaryFunction = 2,
|
|
8783
9877
|
SentClientRenderFunction = 4,
|
|
8784
9878
|
SentStyleInsertionFunction = 8,
|
|
9879
|
+
SentCompletedShellId = 32,
|
|
9880
|
+
SentMarkShellTime = 64,
|
|
8785
9881
|
EXISTS = null,
|
|
8786
9882
|
PRELOAD_NO_CREDS = [];
|
|
8787
9883
|
Object.freeze(PRELOAD_NO_CREDS);
|
|
9884
|
+
var currentlyFlushingRenderState = null;
|
|
8788
9885
|
stringToPrecomputedChunk('"></template>');
|
|
8789
|
-
var startInlineScript = stringToPrecomputedChunk("<script
|
|
9886
|
+
var startInlineScript = stringToPrecomputedChunk("<script"),
|
|
8790
9887
|
endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
|
|
8791
9888
|
startScriptSrc = stringToPrecomputedChunk('<script src="'),
|
|
8792
9889
|
startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
|
|
8793
|
-
scriptNonce = stringToPrecomputedChunk('
|
|
8794
|
-
scriptIntegirty = stringToPrecomputedChunk('
|
|
8795
|
-
scriptCrossOrigin = stringToPrecomputedChunk('
|
|
8796
|
-
endAsyncScript = stringToPrecomputedChunk('
|
|
9890
|
+
scriptNonce = stringToPrecomputedChunk(' nonce="'),
|
|
9891
|
+
scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
|
|
9892
|
+
scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
|
|
9893
|
+
endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
|
|
9894
|
+
startInlineStyle = stringToPrecomputedChunk("<style"),
|
|
8797
9895
|
scriptRegex = /(<\/|<)(s)(cript)/gi,
|
|
8798
9896
|
importMapScriptStart = stringToPrecomputedChunk(
|
|
8799
9897
|
'<script type="importmap">'
|
|
8800
9898
|
),
|
|
8801
9899
|
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
|
|
8802
9900
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
|
8803
|
-
var
|
|
8804
|
-
ROOT_HTML_MODE = 0,
|
|
9901
|
+
var ROOT_HTML_MODE = 0,
|
|
8805
9902
|
HTML_HTML_MODE = 1,
|
|
8806
9903
|
HTML_MODE = 2,
|
|
8807
9904
|
HTML_HEAD_MODE = 3,
|
|
@@ -8846,13 +9943,24 @@
|
|
|
8846
9943
|
formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
|
|
8847
9944
|
formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e"),
|
|
8848
9945
|
styleRegex = /(<\/|<)(s)(tyle)/gi,
|
|
9946
|
+
headPreambleContributionChunk =
|
|
9947
|
+
stringToPrecomputedChunk("\x3c!--head--\x3e"),
|
|
9948
|
+
bodyPreambleContributionChunk =
|
|
9949
|
+
stringToPrecomputedChunk("\x3c!--body--\x3e"),
|
|
9950
|
+
htmlPreambleContributionChunk =
|
|
9951
|
+
stringToPrecomputedChunk("\x3c!--html--\x3e"),
|
|
8849
9952
|
leadingNewline = stringToPrecomputedChunk("\n"),
|
|
8850
9953
|
VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
|
|
8851
9954
|
validatedTagCache = new Map(),
|
|
8852
9955
|
doctypeChunk = stringToPrecomputedChunk("<!DOCTYPE html>"),
|
|
8853
9956
|
endTagCache = new Map(),
|
|
9957
|
+
shellTimeRuntimeScript = stringToPrecomputedChunk(
|
|
9958
|
+
"requestAnimationFrame(function(){$RT=performance.now()});"
|
|
9959
|
+
),
|
|
8854
9960
|
placeholder1 = stringToPrecomputedChunk('<template id="'),
|
|
8855
9961
|
placeholder2 = stringToPrecomputedChunk('"></template>'),
|
|
9962
|
+
startActivityBoundary = stringToPrecomputedChunk("\x3c!--&--\x3e"),
|
|
9963
|
+
endActivityBoundary = stringToPrecomputedChunk("\x3c!--/&--\x3e"),
|
|
8856
9964
|
startCompletedSuspenseBoundary =
|
|
8857
9965
|
stringToPrecomputedChunk("\x3c!--$--\x3e"),
|
|
8858
9966
|
startPendingSuspenseBoundary1 = stringToPrecomputedChunk(
|
|
@@ -8876,9 +9984,6 @@
|
|
|
8876
9984
|
stringToPrecomputedChunk(' data-cstck="'),
|
|
8877
9985
|
clientRenderedSuspenseBoundaryError2 =
|
|
8878
9986
|
stringToPrecomputedChunk("></template>"),
|
|
8879
|
-
boundaryPreambleContributionChunkStart =
|
|
8880
|
-
stringToPrecomputedChunk("\x3c!--"),
|
|
8881
|
-
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e"),
|
|
8882
9987
|
startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
|
8883
9988
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
|
8884
9989
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
|
@@ -8916,15 +10021,12 @@
|
|
|
8916
10021
|
completeSegmentScriptEnd = stringToPrecomputedChunk('")\x3c/script>');
|
|
8917
10022
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
|
8918
10023
|
stringToPrecomputedChunk('" data-pid="');
|
|
8919
|
-
var
|
|
8920
|
-
'$
|
|
10024
|
+
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
|
10025
|
+
'$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
|
|
8921
10026
|
),
|
|
8922
10027
|
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
|
8923
|
-
completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
|
|
8924
|
-
'$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("'
|
|
8925
|
-
),
|
|
8926
10028
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
|
8927
|
-
'$RM=new Map
|
|
10029
|
+
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
|
8928
10030
|
),
|
|
8929
10031
|
completeBoundaryWithStylesScript1Partial =
|
|
8930
10032
|
stringToPrecomputedChunk('$RR("'),
|
|
@@ -8936,7 +10038,10 @@
|
|
|
8936
10038
|
stringToPrecomputedChunk('<template data-rri="" data-bid="');
|
|
8937
10039
|
stringToPrecomputedChunk('" data-sid="');
|
|
8938
10040
|
stringToPrecomputedChunk('" data-sty="');
|
|
8939
|
-
var
|
|
10041
|
+
var clientRenderScriptFunctionOnly = stringToPrecomputedChunk(
|
|
10042
|
+
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
|
|
10043
|
+
),
|
|
10044
|
+
clientRenderScript1Full = stringToPrecomputedChunk(
|
|
8940
10045
|
'$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
|
|
8941
10046
|
),
|
|
8942
10047
|
clientRenderScript1Partial = stringToPrecomputedChunk('$RX("'),
|
|
@@ -8951,7 +10056,7 @@
|
|
|
8951
10056
|
var regexForJSStringsInInstructionScripts = /[<\u2028\u2029]/g,
|
|
8952
10057
|
regexForJSStringsInScripts = /[&><\u2028\u2029]/g,
|
|
8953
10058
|
lateStyleTagResourceOpen1 = stringToPrecomputedChunk(
|
|
8954
|
-
'
|
|
10059
|
+
' media="not all" data-precedence="'
|
|
8955
10060
|
),
|
|
8956
10061
|
lateStyleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
|
|
8957
10062
|
lateStyleTagResourceOpen3 = stringToPrecomputedChunk('">'),
|
|
@@ -8959,13 +10064,14 @@
|
|
|
8959
10064
|
currentlyRenderingBoundaryHasStylesToHoist = !1,
|
|
8960
10065
|
destinationHasCapacity = !0,
|
|
8961
10066
|
stylesheetFlushingQueue = [],
|
|
8962
|
-
styleTagResourceOpen1 = stringToPrecomputedChunk(
|
|
8963
|
-
'<style data-precedence="'
|
|
8964
|
-
),
|
|
10067
|
+
styleTagResourceOpen1 = stringToPrecomputedChunk(' data-precedence="'),
|
|
8965
10068
|
styleTagResourceOpen2 = stringToPrecomputedChunk('" data-href="'),
|
|
8966
10069
|
spaceSeparator = stringToPrecomputedChunk(" "),
|
|
8967
10070
|
styleTagResourceOpen3 = stringToPrecomputedChunk('">'),
|
|
8968
|
-
styleTagResourceClose = stringToPrecomputedChunk("</style>")
|
|
10071
|
+
styleTagResourceClose = stringToPrecomputedChunk("</style>");
|
|
10072
|
+
stringToPrecomputedChunk('<link rel="expect" href="#');
|
|
10073
|
+
stringToPrecomputedChunk('" blocking="render"/>');
|
|
10074
|
+
var completedShellIdAttributeStart = stringToPrecomputedChunk(' id="'),
|
|
8969
10075
|
arrayFirstOpenBracket = stringToPrecomputedChunk("["),
|
|
8970
10076
|
arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
|
|
8971
10077
|
arrayInterstitial = stringToPrecomputedChunk(","),
|
|
@@ -9080,16 +10186,16 @@
|
|
|
9080
10186
|
currentHookNameInDev = "useState";
|
|
9081
10187
|
return useReducer(basicStateReducer, initialState);
|
|
9082
10188
|
},
|
|
9083
|
-
useInsertionEffect: noop
|
|
9084
|
-
useLayoutEffect: noop
|
|
10189
|
+
useInsertionEffect: noop,
|
|
10190
|
+
useLayoutEffect: noop,
|
|
9085
10191
|
useCallback: function (callback, deps) {
|
|
9086
10192
|
return useMemo(function () {
|
|
9087
10193
|
return callback;
|
|
9088
10194
|
}, deps);
|
|
9089
10195
|
},
|
|
9090
|
-
useImperativeHandle: noop
|
|
9091
|
-
useEffect: noop
|
|
9092
|
-
useDebugValue: noop
|
|
10196
|
+
useImperativeHandle: noop,
|
|
10197
|
+
useEffect: noop,
|
|
10198
|
+
useDebugValue: noop,
|
|
9093
10199
|
useDeferredValue: function (value, initialValue) {
|
|
9094
10200
|
resolveCurrentlyRenderingComponent();
|
|
9095
10201
|
return void 0 !== initialValue ? initialValue : value;
|
|
@@ -9110,9 +10216,9 @@
|
|
|
9110
10216
|
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
9111
10217
|
);
|
|
9112
10218
|
overflow = localIdCounter++;
|
|
9113
|
-
treeId = "
|
|
10219
|
+
treeId = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
9114
10220
|
0 < overflow && (treeId += "H" + overflow.toString(32));
|
|
9115
|
-
return treeId + "
|
|
10221
|
+
return treeId + "_";
|
|
9116
10222
|
},
|
|
9117
10223
|
useSyncExternalStore: function (
|
|
9118
10224
|
subscribe,
|
|
@@ -9142,6 +10248,9 @@
|
|
|
9142
10248
|
},
|
|
9143
10249
|
useCacheRefresh: function () {
|
|
9144
10250
|
return unsupportedRefresh;
|
|
10251
|
+
},
|
|
10252
|
+
useEffectEvent: function () {
|
|
10253
|
+
return throwOnUseEffectEventCall;
|
|
9145
10254
|
}
|
|
9146
10255
|
},
|
|
9147
10256
|
currentResumableState = null,
|
|
@@ -9150,6 +10259,9 @@
|
|
|
9150
10259
|
getCacheForType: function () {
|
|
9151
10260
|
throw Error("Not implemented.");
|
|
9152
10261
|
},
|
|
10262
|
+
cacheSignal: function () {
|
|
10263
|
+
throw Error("Not implemented.");
|
|
10264
|
+
},
|
|
9153
10265
|
getOwner: function () {
|
|
9154
10266
|
return null === currentTaskInDEV
|
|
9155
10267
|
? null
|
|
@@ -9172,26 +10284,26 @@
|
|
|
9172
10284
|
"function" === typeof WeakMap ? WeakMap : Map
|
|
9173
10285
|
)();
|
|
9174
10286
|
var callComponent = {
|
|
9175
|
-
|
|
10287
|
+
react_stack_bottom_frame: function (Component, props, secondArg) {
|
|
9176
10288
|
return Component(props, secondArg);
|
|
9177
10289
|
}
|
|
9178
10290
|
},
|
|
9179
10291
|
callComponentInDEV =
|
|
9180
|
-
callComponent
|
|
10292
|
+
callComponent.react_stack_bottom_frame.bind(callComponent),
|
|
9181
10293
|
callRender = {
|
|
9182
|
-
|
|
10294
|
+
react_stack_bottom_frame: function (instance) {
|
|
9183
10295
|
return instance.render();
|
|
9184
10296
|
}
|
|
9185
10297
|
},
|
|
9186
|
-
callRenderInDEV = callRender
|
|
10298
|
+
callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender),
|
|
9187
10299
|
callLazyInit = {
|
|
9188
|
-
|
|
10300
|
+
react_stack_bottom_frame: function (lazy) {
|
|
9189
10301
|
var init = lazy._init;
|
|
9190
10302
|
return init(lazy._payload);
|
|
9191
10303
|
}
|
|
9192
10304
|
},
|
|
9193
10305
|
callLazyInitInDEV =
|
|
9194
|
-
callLazyInit
|
|
10306
|
+
callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
|
|
9195
10307
|
lastResetTime = 0;
|
|
9196
10308
|
if (
|
|
9197
10309
|
"object" === typeof performance &&
|
|
@@ -9211,6 +10323,8 @@
|
|
|
9211
10323
|
PENDING = 0,
|
|
9212
10324
|
COMPLETED = 1,
|
|
9213
10325
|
FLUSHED = 2,
|
|
10326
|
+
ABORTED = 3,
|
|
10327
|
+
ERRORED = 4,
|
|
9214
10328
|
POSTPONED = 5,
|
|
9215
10329
|
CLOSED = 14,
|
|
9216
10330
|
currentRequest = null,
|
|
@@ -9220,9 +10334,86 @@
|
|
|
9220
10334
|
didWarnAboutGetDerivedStateOnFunctionComponent = {},
|
|
9221
10335
|
didWarnAboutReassigningProps = !1,
|
|
9222
10336
|
didWarnAboutGenerators = !1,
|
|
9223
|
-
didWarnAboutMaps = !1
|
|
10337
|
+
didWarnAboutMaps = !1,
|
|
10338
|
+
flushedByteSize = 0,
|
|
10339
|
+
flushingPartialBoundaries = !1;
|
|
9224
10340
|
ensureCorrectIsomorphicReactVersion();
|
|
9225
10341
|
ensureCorrectIsomorphicReactVersion();
|
|
10342
|
+
exports.prerender = function (children, options) {
|
|
10343
|
+
return new Promise(function (resolve, reject) {
|
|
10344
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
|
10345
|
+
onHeadersImpl;
|
|
10346
|
+
onHeaders &&
|
|
10347
|
+
(onHeadersImpl = function (headersDescriptor) {
|
|
10348
|
+
onHeaders(new Headers(headersDescriptor));
|
|
10349
|
+
});
|
|
10350
|
+
var resources = createResumableState(
|
|
10351
|
+
options ? options.identifierPrefix : void 0,
|
|
10352
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
10353
|
+
options ? options.bootstrapScriptContent : void 0,
|
|
10354
|
+
options ? options.bootstrapScripts : void 0,
|
|
10355
|
+
options ? options.bootstrapModules : void 0
|
|
10356
|
+
),
|
|
10357
|
+
request = createPrerenderRequest(
|
|
10358
|
+
children,
|
|
10359
|
+
resources,
|
|
10360
|
+
createRenderState(
|
|
10361
|
+
resources,
|
|
10362
|
+
void 0,
|
|
10363
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
10364
|
+
options ? options.importMap : void 0,
|
|
10365
|
+
onHeadersImpl,
|
|
10366
|
+
options ? options.maxHeadersLength : void 0
|
|
10367
|
+
),
|
|
10368
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
10369
|
+
options ? options.progressiveChunkSize : void 0,
|
|
10370
|
+
options ? options.onError : void 0,
|
|
10371
|
+
function () {
|
|
10372
|
+
var writable,
|
|
10373
|
+
stream = new ReadableStream(
|
|
10374
|
+
{
|
|
10375
|
+
type: "bytes",
|
|
10376
|
+
start: function (controller) {
|
|
10377
|
+
writable =
|
|
10378
|
+
createFakeWritableFromReadableStreamController(
|
|
10379
|
+
controller
|
|
10380
|
+
);
|
|
10381
|
+
},
|
|
10382
|
+
pull: function () {
|
|
10383
|
+
startFlowing(request, writable);
|
|
10384
|
+
},
|
|
10385
|
+
cancel: function (reason) {
|
|
10386
|
+
request.destination = null;
|
|
10387
|
+
abort(request, reason);
|
|
10388
|
+
}
|
|
10389
|
+
},
|
|
10390
|
+
{ highWaterMark: 0 }
|
|
10391
|
+
);
|
|
10392
|
+
stream = {
|
|
10393
|
+
postponed: getPostponedState(request),
|
|
10394
|
+
prelude: stream
|
|
10395
|
+
};
|
|
10396
|
+
resolve(stream);
|
|
10397
|
+
},
|
|
10398
|
+
void 0,
|
|
10399
|
+
void 0,
|
|
10400
|
+
reject,
|
|
10401
|
+
options ? options.onPostpone : void 0
|
|
10402
|
+
);
|
|
10403
|
+
if (options && options.signal) {
|
|
10404
|
+
var signal = options.signal;
|
|
10405
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10406
|
+
else {
|
|
10407
|
+
var listener = function () {
|
|
10408
|
+
abort(request, signal.reason);
|
|
10409
|
+
signal.removeEventListener("abort", listener);
|
|
10410
|
+
};
|
|
10411
|
+
signal.addEventListener("abort", listener);
|
|
10412
|
+
}
|
|
10413
|
+
}
|
|
10414
|
+
startWork(request);
|
|
10415
|
+
});
|
|
10416
|
+
};
|
|
9226
10417
|
exports.prerenderToNodeStream = function (children, options) {
|
|
9227
10418
|
return new Promise(function (resolve, reject) {
|
|
9228
10419
|
var resumableState = createResumableState(
|
|
@@ -9252,8 +10443,12 @@
|
|
|
9252
10443
|
startFlowing(request, writable);
|
|
9253
10444
|
}
|
|
9254
10445
|
}),
|
|
9255
|
-
writable =
|
|
9256
|
-
|
|
10446
|
+
writable = createFakeWritableFromReadable(readable);
|
|
10447
|
+
readable = {
|
|
10448
|
+
postponed: getPostponedState(request),
|
|
10449
|
+
prelude: readable
|
|
10450
|
+
};
|
|
10451
|
+
resolve(readable);
|
|
9257
10452
|
},
|
|
9258
10453
|
void 0,
|
|
9259
10454
|
void 0,
|
|
@@ -9313,5 +10508,295 @@
|
|
|
9313
10508
|
}
|
|
9314
10509
|
};
|
|
9315
10510
|
};
|
|
9316
|
-
exports.
|
|
10511
|
+
exports.renderToReadableStream = function (children, options) {
|
|
10512
|
+
return new Promise(function (resolve, reject) {
|
|
10513
|
+
var onFatalError,
|
|
10514
|
+
onAllReady,
|
|
10515
|
+
allReady = new Promise(function (res, rej) {
|
|
10516
|
+
onAllReady = res;
|
|
10517
|
+
onFatalError = rej;
|
|
10518
|
+
}),
|
|
10519
|
+
onHeaders = options ? options.onHeaders : void 0,
|
|
10520
|
+
onHeadersImpl;
|
|
10521
|
+
onHeaders &&
|
|
10522
|
+
(onHeadersImpl = function (headersDescriptor) {
|
|
10523
|
+
onHeaders(new Headers(headersDescriptor));
|
|
10524
|
+
});
|
|
10525
|
+
var resumableState = createResumableState(
|
|
10526
|
+
options ? options.identifierPrefix : void 0,
|
|
10527
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
10528
|
+
options ? options.bootstrapScriptContent : void 0,
|
|
10529
|
+
options ? options.bootstrapScripts : void 0,
|
|
10530
|
+
options ? options.bootstrapModules : void 0
|
|
10531
|
+
),
|
|
10532
|
+
request = createRequest(
|
|
10533
|
+
children,
|
|
10534
|
+
resumableState,
|
|
10535
|
+
createRenderState(
|
|
10536
|
+
resumableState,
|
|
10537
|
+
options ? options.nonce : void 0,
|
|
10538
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
10539
|
+
options ? options.importMap : void 0,
|
|
10540
|
+
onHeadersImpl,
|
|
10541
|
+
options ? options.maxHeadersLength : void 0
|
|
10542
|
+
),
|
|
10543
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
10544
|
+
options ? options.progressiveChunkSize : void 0,
|
|
10545
|
+
options ? options.onError : void 0,
|
|
10546
|
+
onAllReady,
|
|
10547
|
+
function () {
|
|
10548
|
+
var writable,
|
|
10549
|
+
stream = new ReadableStream(
|
|
10550
|
+
{
|
|
10551
|
+
type: "bytes",
|
|
10552
|
+
start: function (controller) {
|
|
10553
|
+
writable =
|
|
10554
|
+
createFakeWritableFromReadableStreamController$1(
|
|
10555
|
+
controller
|
|
10556
|
+
);
|
|
10557
|
+
},
|
|
10558
|
+
pull: function () {
|
|
10559
|
+
startFlowing(request, writable);
|
|
10560
|
+
},
|
|
10561
|
+
cancel: function (reason) {
|
|
10562
|
+
request.destination = null;
|
|
10563
|
+
abort(request, reason);
|
|
10564
|
+
}
|
|
10565
|
+
},
|
|
10566
|
+
{ highWaterMark: 0 }
|
|
10567
|
+
);
|
|
10568
|
+
stream.allReady = allReady;
|
|
10569
|
+
resolve(stream);
|
|
10570
|
+
},
|
|
10571
|
+
function (error) {
|
|
10572
|
+
allReady.catch(function () {});
|
|
10573
|
+
reject(error);
|
|
10574
|
+
},
|
|
10575
|
+
onFatalError,
|
|
10576
|
+
options ? options.onPostpone : void 0,
|
|
10577
|
+
options ? options.formState : void 0
|
|
10578
|
+
);
|
|
10579
|
+
if (options && options.signal) {
|
|
10580
|
+
var signal = options.signal;
|
|
10581
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10582
|
+
else {
|
|
10583
|
+
var listener = function () {
|
|
10584
|
+
abort(request, signal.reason);
|
|
10585
|
+
signal.removeEventListener("abort", listener);
|
|
10586
|
+
};
|
|
10587
|
+
signal.addEventListener("abort", listener);
|
|
10588
|
+
}
|
|
10589
|
+
}
|
|
10590
|
+
startWork(request);
|
|
10591
|
+
});
|
|
10592
|
+
};
|
|
10593
|
+
exports.resume = function (children, postponedState, options) {
|
|
10594
|
+
return new Promise(function (resolve, reject) {
|
|
10595
|
+
var onFatalError,
|
|
10596
|
+
onAllReady,
|
|
10597
|
+
allReady = new Promise(function (res, rej) {
|
|
10598
|
+
onAllReady = res;
|
|
10599
|
+
onFatalError = rej;
|
|
10600
|
+
}),
|
|
10601
|
+
request = resumeRequest(
|
|
10602
|
+
children,
|
|
10603
|
+
postponedState,
|
|
10604
|
+
createRenderState(
|
|
10605
|
+
postponedState.resumableState,
|
|
10606
|
+
options ? options.nonce : void 0,
|
|
10607
|
+
void 0,
|
|
10608
|
+
void 0,
|
|
10609
|
+
void 0,
|
|
10610
|
+
void 0
|
|
10611
|
+
),
|
|
10612
|
+
options ? options.onError : void 0,
|
|
10613
|
+
onAllReady,
|
|
10614
|
+
function () {
|
|
10615
|
+
var writable,
|
|
10616
|
+
stream = new ReadableStream(
|
|
10617
|
+
{
|
|
10618
|
+
type: "bytes",
|
|
10619
|
+
start: function (controller) {
|
|
10620
|
+
writable =
|
|
10621
|
+
createFakeWritableFromReadableStreamController$1(
|
|
10622
|
+
controller
|
|
10623
|
+
);
|
|
10624
|
+
},
|
|
10625
|
+
pull: function () {
|
|
10626
|
+
startFlowing(request, writable);
|
|
10627
|
+
},
|
|
10628
|
+
cancel: function (reason) {
|
|
10629
|
+
request.destination = null;
|
|
10630
|
+
abort(request, reason);
|
|
10631
|
+
}
|
|
10632
|
+
},
|
|
10633
|
+
{ highWaterMark: 0 }
|
|
10634
|
+
);
|
|
10635
|
+
stream.allReady = allReady;
|
|
10636
|
+
resolve(stream);
|
|
10637
|
+
},
|
|
10638
|
+
function (error) {
|
|
10639
|
+
allReady.catch(function () {});
|
|
10640
|
+
reject(error);
|
|
10641
|
+
},
|
|
10642
|
+
onFatalError,
|
|
10643
|
+
options ? options.onPostpone : void 0
|
|
10644
|
+
);
|
|
10645
|
+
if (options && options.signal) {
|
|
10646
|
+
var signal = options.signal;
|
|
10647
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10648
|
+
else {
|
|
10649
|
+
var listener = function () {
|
|
10650
|
+
abort(request, signal.reason);
|
|
10651
|
+
signal.removeEventListener("abort", listener);
|
|
10652
|
+
};
|
|
10653
|
+
signal.addEventListener("abort", listener);
|
|
10654
|
+
}
|
|
10655
|
+
}
|
|
10656
|
+
startWork(request);
|
|
10657
|
+
});
|
|
10658
|
+
};
|
|
10659
|
+
exports.resumeAndPrerender = function (children, postponedState, options) {
|
|
10660
|
+
return new Promise(function (resolve, reject) {
|
|
10661
|
+
var request = resumeAndPrerenderRequest(
|
|
10662
|
+
children,
|
|
10663
|
+
postponedState,
|
|
10664
|
+
createRenderState(
|
|
10665
|
+
postponedState.resumableState,
|
|
10666
|
+
void 0,
|
|
10667
|
+
void 0,
|
|
10668
|
+
void 0,
|
|
10669
|
+
void 0,
|
|
10670
|
+
void 0
|
|
10671
|
+
),
|
|
10672
|
+
options ? options.onError : void 0,
|
|
10673
|
+
function () {
|
|
10674
|
+
var writable,
|
|
10675
|
+
stream = new ReadableStream(
|
|
10676
|
+
{
|
|
10677
|
+
type: "bytes",
|
|
10678
|
+
start: function (controller) {
|
|
10679
|
+
writable =
|
|
10680
|
+
createFakeWritableFromReadableStreamController(
|
|
10681
|
+
controller
|
|
10682
|
+
);
|
|
10683
|
+
},
|
|
10684
|
+
pull: function () {
|
|
10685
|
+
startFlowing(request, writable);
|
|
10686
|
+
},
|
|
10687
|
+
cancel: function (reason) {
|
|
10688
|
+
request.destination = null;
|
|
10689
|
+
abort(request, reason);
|
|
10690
|
+
}
|
|
10691
|
+
},
|
|
10692
|
+
{ highWaterMark: 0 }
|
|
10693
|
+
);
|
|
10694
|
+
stream = { postponed: getPostponedState(request), prelude: stream };
|
|
10695
|
+
resolve(stream);
|
|
10696
|
+
},
|
|
10697
|
+
void 0,
|
|
10698
|
+
void 0,
|
|
10699
|
+
reject,
|
|
10700
|
+
options ? options.onPostpone : void 0
|
|
10701
|
+
);
|
|
10702
|
+
if (options && options.signal) {
|
|
10703
|
+
var signal = options.signal;
|
|
10704
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10705
|
+
else {
|
|
10706
|
+
var listener = function () {
|
|
10707
|
+
abort(request, signal.reason);
|
|
10708
|
+
signal.removeEventListener("abort", listener);
|
|
10709
|
+
};
|
|
10710
|
+
signal.addEventListener("abort", listener);
|
|
10711
|
+
}
|
|
10712
|
+
}
|
|
10713
|
+
startWork(request);
|
|
10714
|
+
});
|
|
10715
|
+
};
|
|
10716
|
+
exports.resumeAndPrerenderToNodeStream = function (
|
|
10717
|
+
children,
|
|
10718
|
+
postponedState,
|
|
10719
|
+
options
|
|
10720
|
+
) {
|
|
10721
|
+
return new Promise(function (resolve, reject) {
|
|
10722
|
+
var request = resumeAndPrerenderRequest(
|
|
10723
|
+
children,
|
|
10724
|
+
postponedState,
|
|
10725
|
+
createRenderState(
|
|
10726
|
+
postponedState.resumableState,
|
|
10727
|
+
void 0,
|
|
10728
|
+
void 0,
|
|
10729
|
+
void 0,
|
|
10730
|
+
void 0,
|
|
10731
|
+
void 0
|
|
10732
|
+
),
|
|
10733
|
+
options ? options.onError : void 0,
|
|
10734
|
+
function () {
|
|
10735
|
+
var readable = new stream.Readable({
|
|
10736
|
+
read: function () {
|
|
10737
|
+
startFlowing(request, writable);
|
|
10738
|
+
}
|
|
10739
|
+
}),
|
|
10740
|
+
writable = createFakeWritableFromReadable(readable);
|
|
10741
|
+
readable = {
|
|
10742
|
+
postponed: getPostponedState(request),
|
|
10743
|
+
prelude: readable
|
|
10744
|
+
};
|
|
10745
|
+
resolve(readable);
|
|
10746
|
+
},
|
|
10747
|
+
void 0,
|
|
10748
|
+
void 0,
|
|
10749
|
+
reject,
|
|
10750
|
+
options ? options.onPostpone : void 0
|
|
10751
|
+
);
|
|
10752
|
+
if (options && options.signal) {
|
|
10753
|
+
var signal = options.signal;
|
|
10754
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
10755
|
+
else {
|
|
10756
|
+
var listener = function () {
|
|
10757
|
+
abort(request, signal.reason);
|
|
10758
|
+
signal.removeEventListener("abort", listener);
|
|
10759
|
+
};
|
|
10760
|
+
signal.addEventListener("abort", listener);
|
|
10761
|
+
}
|
|
10762
|
+
}
|
|
10763
|
+
startWork(request);
|
|
10764
|
+
});
|
|
10765
|
+
};
|
|
10766
|
+
exports.resumeToPipeableStream = function (
|
|
10767
|
+
children,
|
|
10768
|
+
postponedState,
|
|
10769
|
+
options
|
|
10770
|
+
) {
|
|
10771
|
+
var request = resumeRequestImpl(children, postponedState, options),
|
|
10772
|
+
hasStartedFlowing = !1;
|
|
10773
|
+
startWork(request);
|
|
10774
|
+
return {
|
|
10775
|
+
pipe: function (destination) {
|
|
10776
|
+
if (hasStartedFlowing)
|
|
10777
|
+
throw Error(
|
|
10778
|
+
"React currently only supports piping to one writable stream."
|
|
10779
|
+
);
|
|
10780
|
+
hasStartedFlowing = !0;
|
|
10781
|
+
startFlowing(request, destination);
|
|
10782
|
+
destination.on("drain", createDrainHandler(destination, request));
|
|
10783
|
+
destination.on(
|
|
10784
|
+
"error",
|
|
10785
|
+
createCancelHandler(
|
|
10786
|
+
request,
|
|
10787
|
+
"The destination stream errored while writing data."
|
|
10788
|
+
)
|
|
10789
|
+
);
|
|
10790
|
+
destination.on(
|
|
10791
|
+
"close",
|
|
10792
|
+
createCancelHandler(request, "The destination stream closed early.")
|
|
10793
|
+
);
|
|
10794
|
+
return destination;
|
|
10795
|
+
},
|
|
10796
|
+
abort: function (reason) {
|
|
10797
|
+
abort(request, reason);
|
|
10798
|
+
}
|
|
10799
|
+
};
|
|
10800
|
+
};
|
|
10801
|
+
exports.version = "19.2.3";
|
|
9317
10802
|
})();
|