@vitejs/plugin-rsc 0.4.34 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser-D8OPzpF5.js → browser-B4C0Zb4m.js} +1 -1
- package/dist/{browser-CQv7Z3J4.d.ts → browser-C8KlM-b7.d.ts} +2 -2
- package/dist/{browser-DwWQeoll.d.ts → browser-CDBRiZjk.d.ts} +1 -1
- package/dist/{browser-7NhxQxuk.js → browser-U86erGOy.js} +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +23 -5
- package/dist/chunk-Cdb3zUqJ.js +30 -0
- package/dist/{cjs-BamOAUgw.js → cjs-zUv66MZg.js} +3 -3
- package/dist/core/browser.d.ts +1 -1
- package/dist/core/browser.js +3 -3
- package/dist/core/plugin.js +1 -1
- package/dist/core/rsc.d.ts +2 -2
- package/dist/core/rsc.js +3 -3
- package/dist/core/ssr.d.ts +2 -2
- package/dist/core/ssr.js +3 -3
- package/dist/{dist-DiJnRA1C.js → dist-CNbFy2EZ.js} +1 -1
- package/dist/{encryption-runtime-B8xcnJoN.d.ts → encryption-runtime-BDgc4dBr.d.ts} +1 -1
- package/dist/{encryption-runtime-DT6dtlC5.js → encryption-runtime-D5_PLt4C.js} +4 -4
- package/dist/{encryption-utils-BDwwcMVT.js → encryption-utils-DdqSKS_O.js} +1 -1
- package/dist/{index-CPkExgij.d.ts → index-BY8KUQhI.d.ts} +1 -1
- package/dist/{index-B04iFwO5.d.ts → index-DJ0AhQ9B.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/picocolors-BRKobevN.js +74 -0
- package/dist/{plugin-CZbI4rhS.js → plugin-4UFT-s0w.js} +1 -1
- package/dist/{plugin-BLedJFh7.js → plugin-DNwmUjn4.js} +32 -22
- package/dist/{plugin-DCLI7Wh8.d.ts → plugin-fbbM1muv.d.ts} +2 -6
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +8 -8
- package/dist/plugins/cjs.js +3 -3
- package/dist/react/browser.d.ts +3 -3
- package/dist/react/browser.js +4 -4
- package/dist/react/rsc.d.ts +3 -3
- package/dist/react/rsc.js +4 -4
- package/dist/react/ssr.d.ts +3 -3
- package/dist/react/ssr.js +4 -4
- package/dist/{rpc-CUvSZurk.js → rpc-nwJuNojy.js} +1 -1
- package/dist/{rsc-JJjz3Z0i.d.ts → rsc-03j1e3xp.d.ts} +4 -4
- package/dist/{rsc-BdCB3621.js → rsc-B_DQ_Sju.js} +2 -2
- package/dist/{rsc-3bkzqdsJ.d.ts → rsc-OCbFObYE.d.ts} +2 -2
- package/dist/{rsc-GFzFWyhT.js → rsc-bL1QvQCm.js} +3 -3
- package/dist/rsc.d.ts +4 -4
- package/dist/rsc.js +24 -7
- package/dist/{shared-CXg_u-4h.js → shared-C8PSRwR2.js} +1 -1
- package/dist/{shared-n-ykEs15.js → shared-DlspEItJ.js} +1 -1
- package/dist/{ssr-BrSGyrxe.d.ts → ssr-Dgbl_mOS.d.ts} +1 -1
- package/dist/{ssr-Cd4SbAaO.js → ssr-DzY6rnEv.js} +2 -2
- package/dist/{ssr-Cm2FP2zD.js → ssr-EH7rBPkK.js} +3 -3
- package/dist/{ssr-CMjeQ9AS.d.ts → ssr-fBV4xXen.d.ts} +2 -2
- package/dist/ssr.d.ts +3 -3
- package/dist/ssr.js +54 -6
- package/dist/transforms/index.d.ts +1 -1
- package/dist/transforms/index.js +2 -2
- package/dist/{transforms-CpF3zNE0.js → transforms-CSPqW3RX.js} +3 -2
- package/dist/utils/encryption-runtime.d.ts +1 -1
- package/dist/utils/encryption-runtime.js +6 -6
- package/dist/utils/rpc.js +1 -1
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +2964 -774
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +554 -312
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +2721 -724
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +541 -300
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +2955 -858
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +652 -332
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.unbundled.development.js +2956 -861
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.unbundled.production.js +652 -332
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-plugin.js +6 -2
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +1931 -713
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +544 -295
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +1926 -715
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +542 -299
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +2719 -743
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +725 -338
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.unbundled.development.js +2703 -727
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.unbundled.production.js +725 -338
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/dist/vendor/react-server-dom/server.node.js +3 -1
- package/dist/vendor/react-server-dom/server.node.unbundled.js +3 -1
- package/dist/vendor/react-server-dom/static.browser.js +1 -3
- package/dist/vendor/react-server-dom/static.edge.js +1 -3
- package/dist/vendor/react-server-dom/static.node.js +2 -3
- package/dist/vendor/react-server-dom/static.node.unbundled.js +1 -3
- package/package.json +11 -10
- package/types/index.d.ts +0 -4
- package/dist/browser--ZREVnM9.js +0 -22
- package/dist/client-C7Eok9hc.js +0 -23
- package/dist/extra/browser.d.ts +0 -14
- package/dist/extra/browser.js +0 -88
- package/dist/extra/rsc.d.ts +0 -2
- package/dist/extra/rsc.js +0 -56
- package/dist/extra/ssr.d.ts +0 -14
- package/dist/extra/ssr.js +0 -37
- package/dist/rsc-CiAoLCx8.js +0 -21
- package/dist/rsc-c22DF1A7.d.ts +0 -16
- package/dist/rsc-html-stream/browser.d.ts +0 -5
- package/dist/rsc-html-stream/browser.js +0 -8
- package/dist/rsc-html-stream/ssr.d.ts +0 -7
- package/dist/rsc-html-stream/ssr.js +0 -8
- package/dist/server-DMhFuTz_.js +0 -72
- package/dist/ssr-BQwZitKq.js +0 -53
- package/types/virtual.d.ts +0 -5
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js
CHANGED
|
@@ -11,27 +11,6 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
-
function _defineProperty(obj, key, value) {
|
|
15
|
-
a: if ("object" == typeof key && key) {
|
|
16
|
-
var e = key[Symbol.toPrimitive];
|
|
17
|
-
if (void 0 !== e) {
|
|
18
|
-
key = e.call(key, "string");
|
|
19
|
-
if ("object" != typeof key) break a;
|
|
20
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
21
|
-
}
|
|
22
|
-
key = String(key);
|
|
23
|
-
}
|
|
24
|
-
key = "symbol" == typeof key ? key : key + "";
|
|
25
|
-
key in obj
|
|
26
|
-
? Object.defineProperty(obj, key, {
|
|
27
|
-
value: value,
|
|
28
|
-
enumerable: !0,
|
|
29
|
-
configurable: !0,
|
|
30
|
-
writable: !0
|
|
31
|
-
})
|
|
32
|
-
: (obj[key] = value);
|
|
33
|
-
return obj;
|
|
34
|
-
}
|
|
35
14
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
36
15
|
if (bundlerConfig) {
|
|
37
16
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -172,11 +151,8 @@
|
|
|
172
151
|
return !0;
|
|
173
152
|
}
|
|
174
153
|
function objectName(object) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
.replace(/^\[object (.*)\]$/, function (m, p0) {
|
|
178
|
-
return p0;
|
|
179
|
-
});
|
|
154
|
+
object = Object.prototype.toString.call(object);
|
|
155
|
+
return object.slice(8, object.length - 1);
|
|
180
156
|
}
|
|
181
157
|
function describeKeyForErrorMessage(key) {
|
|
182
158
|
var encodedKey = JSON.stringify(key);
|
|
@@ -785,10 +761,10 @@
|
|
|
785
761
|
filename.startsWith("/") && (filename = "file://" + filename);
|
|
786
762
|
sourceMap
|
|
787
763
|
? ((col +=
|
|
788
|
-
"\n//# sourceURL=
|
|
764
|
+
"\n//# sourceURL=about://React/" +
|
|
789
765
|
encodeURIComponent(environmentName) +
|
|
790
766
|
"/" +
|
|
791
|
-
filename +
|
|
767
|
+
encodeURI(filename) +
|
|
792
768
|
"?s" +
|
|
793
769
|
fakeServerFunctionIdx++),
|
|
794
770
|
(col += "\n//# sourceMappingURL=" + sourceMap))
|
|
@@ -910,7 +886,7 @@
|
|
|
910
886
|
case REACT_PORTAL_TYPE:
|
|
911
887
|
return "Portal";
|
|
912
888
|
case REACT_CONTEXT_TYPE:
|
|
913
|
-
return
|
|
889
|
+
return type.displayName || "Context";
|
|
914
890
|
case REACT_CONSUMER_TYPE:
|
|
915
891
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
916
892
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -936,12 +912,487 @@
|
|
|
936
912
|
}
|
|
937
913
|
return null;
|
|
938
914
|
}
|
|
939
|
-
function
|
|
915
|
+
function getArrayKind(array) {
|
|
916
|
+
for (var kind = 0, i = 0; i < array.length; i++) {
|
|
917
|
+
var value = array[i];
|
|
918
|
+
if ("object" === typeof value && null !== value)
|
|
919
|
+
if (
|
|
920
|
+
isArrayImpl(value) &&
|
|
921
|
+
2 === value.length &&
|
|
922
|
+
"string" === typeof value[0]
|
|
923
|
+
) {
|
|
924
|
+
if (0 !== kind && 3 !== kind) return 1;
|
|
925
|
+
kind = 3;
|
|
926
|
+
} else return 1;
|
|
927
|
+
else {
|
|
928
|
+
if (
|
|
929
|
+
"function" === typeof value ||
|
|
930
|
+
("string" === typeof value && 50 < value.length) ||
|
|
931
|
+
(0 !== kind && 2 !== kind)
|
|
932
|
+
)
|
|
933
|
+
return 1;
|
|
934
|
+
kind = 2;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
return kind;
|
|
938
|
+
}
|
|
939
|
+
function addObjectToProperties(object, properties, indent, prefix) {
|
|
940
|
+
for (var key in object)
|
|
941
|
+
hasOwnProperty.call(object, key) &&
|
|
942
|
+
"_" !== key[0] &&
|
|
943
|
+
addValueToProperties(key, object[key], properties, indent, prefix);
|
|
944
|
+
}
|
|
945
|
+
function addValueToProperties(
|
|
946
|
+
propertyName,
|
|
947
|
+
value,
|
|
948
|
+
properties,
|
|
949
|
+
indent,
|
|
950
|
+
prefix
|
|
951
|
+
) {
|
|
952
|
+
switch (typeof value) {
|
|
953
|
+
case "object":
|
|
954
|
+
if (null === value) {
|
|
955
|
+
value = "null";
|
|
956
|
+
break;
|
|
957
|
+
} else {
|
|
958
|
+
if (value.$$typeof === REACT_ELEMENT_TYPE) {
|
|
959
|
+
var typeName = getComponentNameFromType(value.type) || "\u2026",
|
|
960
|
+
key = value.key;
|
|
961
|
+
value = value.props;
|
|
962
|
+
var propsKeys = Object.keys(value),
|
|
963
|
+
propsLength = propsKeys.length;
|
|
964
|
+
if (null == key && 0 === propsLength) {
|
|
965
|
+
value = "<" + typeName + " />";
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
if (
|
|
969
|
+
3 > indent ||
|
|
970
|
+
(1 === propsLength &&
|
|
971
|
+
"children" === propsKeys[0] &&
|
|
972
|
+
null == key)
|
|
973
|
+
) {
|
|
974
|
+
value = "<" + typeName + " \u2026 />";
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
properties.push([
|
|
978
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
979
|
+
"<" + typeName
|
|
980
|
+
]);
|
|
981
|
+
null !== key &&
|
|
982
|
+
addValueToProperties(
|
|
983
|
+
"key",
|
|
984
|
+
key,
|
|
985
|
+
properties,
|
|
986
|
+
indent + 1,
|
|
987
|
+
prefix
|
|
988
|
+
);
|
|
989
|
+
propertyName = !1;
|
|
990
|
+
for (var propKey in value)
|
|
991
|
+
"children" === propKey
|
|
992
|
+
? null != value.children &&
|
|
993
|
+
(!isArrayImpl(value.children) ||
|
|
994
|
+
0 < value.children.length) &&
|
|
995
|
+
(propertyName = !0)
|
|
996
|
+
: hasOwnProperty.call(value, propKey) &&
|
|
997
|
+
"_" !== propKey[0] &&
|
|
998
|
+
addValueToProperties(
|
|
999
|
+
propKey,
|
|
1000
|
+
value[propKey],
|
|
1001
|
+
properties,
|
|
1002
|
+
indent + 1,
|
|
1003
|
+
prefix
|
|
1004
|
+
);
|
|
1005
|
+
properties.push([
|
|
1006
|
+
"",
|
|
1007
|
+
propertyName ? ">\u2026</" + typeName + ">" : "/>"
|
|
1008
|
+
]);
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
typeName = Object.prototype.toString.call(value);
|
|
1012
|
+
typeName = typeName.slice(8, typeName.length - 1);
|
|
1013
|
+
if ("Array" === typeName)
|
|
1014
|
+
if (
|
|
1015
|
+
((propKey = getArrayKind(value)),
|
|
1016
|
+
2 === propKey || 0 === propKey)
|
|
1017
|
+
) {
|
|
1018
|
+
value = JSON.stringify(value);
|
|
1019
|
+
break;
|
|
1020
|
+
} else if (3 === propKey) {
|
|
1021
|
+
properties.push([
|
|
1022
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1023
|
+
""
|
|
1024
|
+
]);
|
|
1025
|
+
for (
|
|
1026
|
+
propertyName = 0;
|
|
1027
|
+
propertyName < value.length;
|
|
1028
|
+
propertyName++
|
|
1029
|
+
)
|
|
1030
|
+
(typeName = value[propertyName]),
|
|
1031
|
+
addValueToProperties(
|
|
1032
|
+
typeName[0],
|
|
1033
|
+
typeName[1],
|
|
1034
|
+
properties,
|
|
1035
|
+
indent + 1,
|
|
1036
|
+
prefix
|
|
1037
|
+
);
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1040
|
+
if ("Promise" === typeName) {
|
|
1041
|
+
if ("fulfilled" === value.status) {
|
|
1042
|
+
if (
|
|
1043
|
+
((typeName = properties.length),
|
|
1044
|
+
addValueToProperties(
|
|
1045
|
+
propertyName,
|
|
1046
|
+
value.value,
|
|
1047
|
+
properties,
|
|
1048
|
+
indent,
|
|
1049
|
+
prefix
|
|
1050
|
+
),
|
|
1051
|
+
properties.length > typeName)
|
|
1052
|
+
) {
|
|
1053
|
+
properties = properties[typeName];
|
|
1054
|
+
properties[1] =
|
|
1055
|
+
"Promise<" + (properties[1] || "Object") + ">";
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
} else if (
|
|
1059
|
+
"rejected" === value.status &&
|
|
1060
|
+
((typeName = properties.length),
|
|
1061
|
+
addValueToProperties(
|
|
1062
|
+
propertyName,
|
|
1063
|
+
value.reason,
|
|
1064
|
+
properties,
|
|
1065
|
+
indent,
|
|
1066
|
+
prefix
|
|
1067
|
+
),
|
|
1068
|
+
properties.length > typeName)
|
|
1069
|
+
) {
|
|
1070
|
+
properties = properties[typeName];
|
|
1071
|
+
properties[1] = "Rejected Promise<" + properties[1] + ">";
|
|
1072
|
+
return;
|
|
1073
|
+
}
|
|
1074
|
+
properties.push([
|
|
1075
|
+
"\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1076
|
+
"Promise"
|
|
1077
|
+
]);
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1080
|
+
"Object" === typeName &&
|
|
1081
|
+
(propKey = Object.getPrototypeOf(value)) &&
|
|
1082
|
+
"function" === typeof propKey.constructor &&
|
|
1083
|
+
(typeName = propKey.constructor.name);
|
|
1084
|
+
properties.push([
|
|
1085
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1086
|
+
"Object" === typeName ? (3 > indent ? "" : "\u2026") : typeName
|
|
1087
|
+
]);
|
|
1088
|
+
3 > indent &&
|
|
1089
|
+
addObjectToProperties(value, properties, indent + 1, prefix);
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
case "function":
|
|
1093
|
+
value = "" === value.name ? "() => {}" : value.name + "() {}";
|
|
1094
|
+
break;
|
|
1095
|
+
case "string":
|
|
1096
|
+
value =
|
|
1097
|
+
"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects." ===
|
|
1098
|
+
value
|
|
1099
|
+
? "\u2026"
|
|
1100
|
+
: JSON.stringify(value);
|
|
1101
|
+
break;
|
|
1102
|
+
case "undefined":
|
|
1103
|
+
value = "undefined";
|
|
1104
|
+
break;
|
|
1105
|
+
case "boolean":
|
|
1106
|
+
value = value ? "true" : "false";
|
|
1107
|
+
break;
|
|
1108
|
+
default:
|
|
1109
|
+
value = String(value);
|
|
1110
|
+
}
|
|
1111
|
+
properties.push([
|
|
1112
|
+
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1113
|
+
value
|
|
1114
|
+
]);
|
|
1115
|
+
}
|
|
1116
|
+
function getIODescription(value) {
|
|
1117
|
+
try {
|
|
1118
|
+
switch (typeof value) {
|
|
1119
|
+
case "object":
|
|
1120
|
+
if (null === value) return "";
|
|
1121
|
+
if (value instanceof Error) return String(value.message);
|
|
1122
|
+
if ("string" === typeof value.url) return value.url;
|
|
1123
|
+
if ("string" === typeof value.href) return value.href;
|
|
1124
|
+
if ("string" === typeof value.src) return value.src;
|
|
1125
|
+
if ("string" === typeof value.currentSrc) return value.currentSrc;
|
|
1126
|
+
if ("string" === typeof value.command) return value.command;
|
|
1127
|
+
if (
|
|
1128
|
+
"object" === typeof value.request &&
|
|
1129
|
+
null !== value.request &&
|
|
1130
|
+
"string" === typeof value.request.url
|
|
1131
|
+
)
|
|
1132
|
+
return value.request.url;
|
|
1133
|
+
if (
|
|
1134
|
+
"object" === typeof value.response &&
|
|
1135
|
+
null !== value.response &&
|
|
1136
|
+
"string" === typeof value.response.url
|
|
1137
|
+
)
|
|
1138
|
+
return value.response.url;
|
|
1139
|
+
if (
|
|
1140
|
+
"string" === typeof value.id ||
|
|
1141
|
+
"number" === typeof value.id ||
|
|
1142
|
+
"bigint" === typeof value.id
|
|
1143
|
+
)
|
|
1144
|
+
return String(value.id);
|
|
1145
|
+
if ("string" === typeof value.name) return value.name;
|
|
1146
|
+
var str = value.toString();
|
|
1147
|
+
return str.startsWith("[object ") ||
|
|
1148
|
+
5 > str.length ||
|
|
1149
|
+
500 < str.length
|
|
1150
|
+
? ""
|
|
1151
|
+
: str;
|
|
1152
|
+
case "string":
|
|
1153
|
+
return 5 > value.length || 500 < value.length ? "" : value;
|
|
1154
|
+
case "number":
|
|
1155
|
+
case "bigint":
|
|
1156
|
+
return String(value);
|
|
1157
|
+
default:
|
|
1158
|
+
return "";
|
|
1159
|
+
}
|
|
1160
|
+
} catch (x) {
|
|
1161
|
+
return "";
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
function markAllTracksInOrder() {
|
|
1165
|
+
supportsUserTiming &&
|
|
1166
|
+
(console.timeStamp(
|
|
1167
|
+
"Server Requests Track",
|
|
1168
|
+
0.001,
|
|
1169
|
+
0.001,
|
|
1170
|
+
"Server Requests \u269b",
|
|
1171
|
+
void 0,
|
|
1172
|
+
"primary-light"
|
|
1173
|
+
),
|
|
1174
|
+
console.timeStamp(
|
|
1175
|
+
"Server Components Track",
|
|
1176
|
+
0.001,
|
|
1177
|
+
0.001,
|
|
1178
|
+
"Primary",
|
|
1179
|
+
"Server Components \u269b",
|
|
1180
|
+
"primary-light"
|
|
1181
|
+
));
|
|
1182
|
+
}
|
|
1183
|
+
function getIOColor(functionName) {
|
|
1184
|
+
switch (functionName.charCodeAt(0) % 3) {
|
|
1185
|
+
case 0:
|
|
1186
|
+
return "tertiary-light";
|
|
1187
|
+
case 1:
|
|
1188
|
+
return "tertiary";
|
|
1189
|
+
default:
|
|
1190
|
+
return "tertiary-dark";
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
function getIOLongName(ioInfo, description, env, rootEnv) {
|
|
1194
|
+
ioInfo = ioInfo.name;
|
|
1195
|
+
description =
|
|
1196
|
+
"" === description ? ioInfo : ioInfo + " (" + description + ")";
|
|
1197
|
+
return env === rootEnv || void 0 === env
|
|
1198
|
+
? description
|
|
1199
|
+
: description + " [" + env + "]";
|
|
1200
|
+
}
|
|
1201
|
+
function getIOShortName(ioInfo, description, env, rootEnv) {
|
|
1202
|
+
ioInfo = ioInfo.name;
|
|
1203
|
+
env = env === rootEnv || void 0 === env ? "" : " [" + env + "]";
|
|
1204
|
+
var desc = "";
|
|
1205
|
+
rootEnv = 30 - ioInfo.length - env.length;
|
|
1206
|
+
if (1 < rootEnv) {
|
|
1207
|
+
var l = description.length;
|
|
1208
|
+
if (0 < l && l <= rootEnv) desc = " (" + description + ")";
|
|
1209
|
+
else if (
|
|
1210
|
+
description.startsWith("http://") ||
|
|
1211
|
+
description.startsWith("https://") ||
|
|
1212
|
+
description.startsWith("/")
|
|
1213
|
+
) {
|
|
1214
|
+
var queryIdx = description.indexOf("?");
|
|
1215
|
+
-1 === queryIdx && (queryIdx = description.length);
|
|
1216
|
+
47 === description.charCodeAt(queryIdx - 1) && queryIdx--;
|
|
1217
|
+
desc = description.lastIndexOf("/", queryIdx - 1);
|
|
1218
|
+
queryIdx - desc < rootEnv
|
|
1219
|
+
? (desc = " (\u2026" + description.slice(desc, queryIdx) + ")")
|
|
1220
|
+
: ((l = description.slice(desc, desc + rootEnv / 2)),
|
|
1221
|
+
(description = description.slice(
|
|
1222
|
+
queryIdx - rootEnv / 2,
|
|
1223
|
+
queryIdx
|
|
1224
|
+
)),
|
|
1225
|
+
(desc =
|
|
1226
|
+
" (" +
|
|
1227
|
+
(0 < desc ? "\u2026" : "") +
|
|
1228
|
+
l +
|
|
1229
|
+
"\u2026" +
|
|
1230
|
+
description +
|
|
1231
|
+
")"));
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
return ioInfo + desc + env;
|
|
1235
|
+
}
|
|
1236
|
+
function logComponentAwait(
|
|
1237
|
+
asyncInfo,
|
|
1238
|
+
trackIdx,
|
|
1239
|
+
startTime,
|
|
1240
|
+
endTime,
|
|
1241
|
+
rootEnv,
|
|
1242
|
+
value
|
|
1243
|
+
) {
|
|
1244
|
+
if (supportsUserTiming && 0 < endTime) {
|
|
1245
|
+
var description = getIODescription(value),
|
|
1246
|
+
name = getIOShortName(
|
|
1247
|
+
asyncInfo.awaited,
|
|
1248
|
+
description,
|
|
1249
|
+
asyncInfo.env,
|
|
1250
|
+
rootEnv
|
|
1251
|
+
),
|
|
1252
|
+
entryName = "await " + name;
|
|
1253
|
+
name = getIOColor(name);
|
|
1254
|
+
var debugTask = asyncInfo.debugTask || asyncInfo.awaited.debugTask;
|
|
1255
|
+
if (debugTask) {
|
|
1256
|
+
var properties = [];
|
|
1257
|
+
"object" === typeof value && null !== value
|
|
1258
|
+
? addObjectToProperties(value, properties, 0, "")
|
|
1259
|
+
: void 0 !== value &&
|
|
1260
|
+
addValueToProperties("awaited value", value, properties, 0, "");
|
|
1261
|
+
asyncInfo = getIOLongName(
|
|
1262
|
+
asyncInfo.awaited,
|
|
1263
|
+
description,
|
|
1264
|
+
asyncInfo.env,
|
|
1265
|
+
rootEnv
|
|
1266
|
+
);
|
|
1267
|
+
debugTask.run(
|
|
1268
|
+
performance.measure.bind(performance, entryName, {
|
|
1269
|
+
start: 0 > startTime ? 0 : startTime,
|
|
1270
|
+
end: endTime,
|
|
1271
|
+
detail: {
|
|
1272
|
+
devtools: {
|
|
1273
|
+
color: name,
|
|
1274
|
+
track: trackNames[trackIdx],
|
|
1275
|
+
trackGroup: "Server Components \u269b",
|
|
1276
|
+
properties: properties,
|
|
1277
|
+
tooltipText: asyncInfo
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
})
|
|
1281
|
+
);
|
|
1282
|
+
} else
|
|
1283
|
+
console.timeStamp(
|
|
1284
|
+
entryName,
|
|
1285
|
+
0 > startTime ? 0 : startTime,
|
|
1286
|
+
endTime,
|
|
1287
|
+
trackNames[trackIdx],
|
|
1288
|
+
"Server Components \u269b",
|
|
1289
|
+
name
|
|
1290
|
+
);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
function logIOInfoErrored(ioInfo, rootEnv, error) {
|
|
1294
|
+
var startTime = ioInfo.start,
|
|
1295
|
+
endTime = ioInfo.end;
|
|
1296
|
+
if (supportsUserTiming && 0 <= endTime) {
|
|
1297
|
+
var description = getIODescription(error),
|
|
1298
|
+
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1299
|
+
debugTask = ioInfo.debugTask;
|
|
1300
|
+
debugTask
|
|
1301
|
+
? ((error = [
|
|
1302
|
+
[
|
|
1303
|
+
"rejected with",
|
|
1304
|
+
"object" === typeof error &&
|
|
1305
|
+
null !== error &&
|
|
1306
|
+
"string" === typeof error.message
|
|
1307
|
+
? String(error.message)
|
|
1308
|
+
: String(error)
|
|
1309
|
+
]
|
|
1310
|
+
]),
|
|
1311
|
+
(ioInfo =
|
|
1312
|
+
getIOLongName(ioInfo, description, ioInfo.env, rootEnv) +
|
|
1313
|
+
" Rejected"),
|
|
1314
|
+
debugTask.run(
|
|
1315
|
+
performance.measure.bind(performance, "\u200b" + entryName, {
|
|
1316
|
+
start: 0 > startTime ? 0 : startTime,
|
|
1317
|
+
end: endTime,
|
|
1318
|
+
detail: {
|
|
1319
|
+
devtools: {
|
|
1320
|
+
color: "error",
|
|
1321
|
+
track: "Server Requests \u269b",
|
|
1322
|
+
properties: error,
|
|
1323
|
+
tooltipText: ioInfo
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
})
|
|
1327
|
+
))
|
|
1328
|
+
: console.timeStamp(
|
|
1329
|
+
entryName,
|
|
1330
|
+
0 > startTime ? 0 : startTime,
|
|
1331
|
+
endTime,
|
|
1332
|
+
"Server Requests \u269b",
|
|
1333
|
+
void 0,
|
|
1334
|
+
"error"
|
|
1335
|
+
);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
function logIOInfo(ioInfo, rootEnv, value) {
|
|
1339
|
+
var startTime = ioInfo.start,
|
|
1340
|
+
endTime = ioInfo.end;
|
|
1341
|
+
if (supportsUserTiming && 0 <= endTime) {
|
|
1342
|
+
var description = getIODescription(value),
|
|
1343
|
+
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1344
|
+
color = getIOColor(entryName),
|
|
1345
|
+
debugTask = ioInfo.debugTask;
|
|
1346
|
+
if (debugTask) {
|
|
1347
|
+
var properties = [];
|
|
1348
|
+
"object" === typeof value && null !== value
|
|
1349
|
+
? addObjectToProperties(value, properties, 0, "")
|
|
1350
|
+
: void 0 !== value &&
|
|
1351
|
+
addValueToProperties("Resolved", value, properties, 0, "");
|
|
1352
|
+
ioInfo = getIOLongName(ioInfo, description, ioInfo.env, rootEnv);
|
|
1353
|
+
debugTask.run(
|
|
1354
|
+
performance.measure.bind(performance, "\u200b" + entryName, {
|
|
1355
|
+
start: 0 > startTime ? 0 : startTime,
|
|
1356
|
+
end: endTime,
|
|
1357
|
+
detail: {
|
|
1358
|
+
devtools: {
|
|
1359
|
+
color: color,
|
|
1360
|
+
track: "Server Requests \u269b",
|
|
1361
|
+
properties: properties,
|
|
1362
|
+
tooltipText: ioInfo
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
})
|
|
1366
|
+
);
|
|
1367
|
+
} else
|
|
1368
|
+
console.timeStamp(
|
|
1369
|
+
entryName,
|
|
1370
|
+
0 > startTime ? 0 : startTime,
|
|
1371
|
+
endTime,
|
|
1372
|
+
"Server Requests \u269b",
|
|
1373
|
+
void 0,
|
|
1374
|
+
color
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
function ReactPromise(status, value, reason) {
|
|
940
1379
|
this.status = status;
|
|
941
1380
|
this.value = value;
|
|
942
1381
|
this.reason = reason;
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
1382
|
+
this._children = [];
|
|
1383
|
+
this._debugChunk = null;
|
|
1384
|
+
this._debugInfo = [];
|
|
1385
|
+
}
|
|
1386
|
+
function unwrapWeakResponse(weakResponse) {
|
|
1387
|
+
weakResponse = weakResponse.weak.deref();
|
|
1388
|
+
if (void 0 === weakResponse)
|
|
1389
|
+
throw Error(
|
|
1390
|
+
"We did not expect to receive new data after GC:ing the response."
|
|
1391
|
+
);
|
|
1392
|
+
return weakResponse;
|
|
1393
|
+
}
|
|
1394
|
+
function closeDebugChannel(debugChannel) {
|
|
1395
|
+
debugChannel.callback && debugChannel.callback("");
|
|
945
1396
|
}
|
|
946
1397
|
function readChunk(chunk) {
|
|
947
1398
|
switch (chunk.status) {
|
|
@@ -956,26 +1407,111 @@
|
|
|
956
1407
|
return chunk.value;
|
|
957
1408
|
case "pending":
|
|
958
1409
|
case "blocked":
|
|
1410
|
+
case "halted":
|
|
959
1411
|
throw chunk;
|
|
960
1412
|
default:
|
|
961
1413
|
throw chunk.reason;
|
|
962
1414
|
}
|
|
963
1415
|
}
|
|
1416
|
+
function getRoot(weakResponse) {
|
|
1417
|
+
weakResponse = unwrapWeakResponse(weakResponse);
|
|
1418
|
+
return getChunk(weakResponse, 0);
|
|
1419
|
+
}
|
|
964
1420
|
function createPendingChunk(response) {
|
|
965
|
-
|
|
1421
|
+
0 === response._pendingChunks++ &&
|
|
1422
|
+
((response._weakResponse.response = response),
|
|
1423
|
+
null !== response._pendingInitialRender &&
|
|
1424
|
+
(clearTimeout(response._pendingInitialRender),
|
|
1425
|
+
(response._pendingInitialRender = null)));
|
|
1426
|
+
return new ReactPromise("pending", null, null);
|
|
1427
|
+
}
|
|
1428
|
+
function releasePendingChunk(response, chunk) {
|
|
1429
|
+
"pending" === chunk.status &&
|
|
1430
|
+
0 === --response._pendingChunks &&
|
|
1431
|
+
((response._weakResponse.response = null),
|
|
1432
|
+
(response._pendingInitialRender = setTimeout(
|
|
1433
|
+
flushInitialRenderPerformance.bind(null, response),
|
|
1434
|
+
100
|
|
1435
|
+
)));
|
|
1436
|
+
}
|
|
1437
|
+
function moveDebugInfoFromChunkToInnerValue(chunk, value) {
|
|
1438
|
+
value = resolveLazy(value);
|
|
1439
|
+
"object" !== typeof value ||
|
|
1440
|
+
null === value ||
|
|
1441
|
+
(!isArrayImpl(value) &&
|
|
1442
|
+
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
1443
|
+
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
1444
|
+
value.$$typeof !== REACT_LAZY_TYPE) ||
|
|
1445
|
+
((chunk = chunk._debugInfo.splice(0)),
|
|
1446
|
+
isArrayImpl(value._debugInfo)
|
|
1447
|
+
? value._debugInfo.unshift.apply(value._debugInfo, chunk)
|
|
1448
|
+
: Object.defineProperty(value, "_debugInfo", {
|
|
1449
|
+
configurable: !1,
|
|
1450
|
+
enumerable: !1,
|
|
1451
|
+
writable: !0,
|
|
1452
|
+
value: chunk
|
|
1453
|
+
}));
|
|
1454
|
+
}
|
|
1455
|
+
function wakeChunk(listeners, value, chunk) {
|
|
1456
|
+
for (var i = 0; i < listeners.length; i++) {
|
|
1457
|
+
var listener = listeners[i];
|
|
1458
|
+
"function" === typeof listener
|
|
1459
|
+
? listener(value)
|
|
1460
|
+
: fulfillReference(listener, value, chunk);
|
|
1461
|
+
}
|
|
1462
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1463
|
+
}
|
|
1464
|
+
function rejectChunk(listeners, error) {
|
|
1465
|
+
for (var i = 0; i < listeners.length; i++) {
|
|
1466
|
+
var listener = listeners[i];
|
|
1467
|
+
"function" === typeof listener
|
|
1468
|
+
? listener(error)
|
|
1469
|
+
: rejectReference(listener, error);
|
|
1470
|
+
}
|
|
966
1471
|
}
|
|
967
|
-
function
|
|
968
|
-
|
|
1472
|
+
function resolveBlockedCycle(resolvedChunk, reference) {
|
|
1473
|
+
var referencedChunk = reference.handler.chunk;
|
|
1474
|
+
if (null === referencedChunk) return null;
|
|
1475
|
+
if (referencedChunk === resolvedChunk) return reference.handler;
|
|
1476
|
+
reference = referencedChunk.value;
|
|
1477
|
+
if (null !== reference)
|
|
1478
|
+
for (
|
|
1479
|
+
referencedChunk = 0;
|
|
1480
|
+
referencedChunk < reference.length;
|
|
1481
|
+
referencedChunk++
|
|
1482
|
+
) {
|
|
1483
|
+
var listener = reference[referencedChunk];
|
|
1484
|
+
if (
|
|
1485
|
+
"function" !== typeof listener &&
|
|
1486
|
+
((listener = resolveBlockedCycle(resolvedChunk, listener)),
|
|
1487
|
+
null !== listener)
|
|
1488
|
+
)
|
|
1489
|
+
return listener;
|
|
1490
|
+
}
|
|
1491
|
+
return null;
|
|
969
1492
|
}
|
|
970
1493
|
function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) {
|
|
971
1494
|
switch (chunk.status) {
|
|
972
1495
|
case "fulfilled":
|
|
973
|
-
wakeChunk(resolveListeners, chunk.value);
|
|
1496
|
+
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
974
1497
|
break;
|
|
975
|
-
case "pending":
|
|
976
1498
|
case "blocked":
|
|
1499
|
+
for (var i = 0; i < resolveListeners.length; i++) {
|
|
1500
|
+
var listener = resolveListeners[i];
|
|
1501
|
+
if ("function" !== typeof listener) {
|
|
1502
|
+
var cyclicHandler = resolveBlockedCycle(chunk, listener);
|
|
1503
|
+
null !== cyclicHandler &&
|
|
1504
|
+
(fulfillReference(listener, cyclicHandler.value, chunk),
|
|
1505
|
+
resolveListeners.splice(i, 1),
|
|
1506
|
+
i--,
|
|
1507
|
+
null !== rejectListeners &&
|
|
1508
|
+
((listener = rejectListeners.indexOf(listener)),
|
|
1509
|
+
-1 !== listener && rejectListeners.splice(listener, 1)));
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
case "pending":
|
|
977
1513
|
if (chunk.value)
|
|
978
|
-
for (
|
|
1514
|
+
for (i = 0; i < resolveListeners.length; i++)
|
|
979
1515
|
chunk.value.push(resolveListeners[i]);
|
|
980
1516
|
else chunk.value = resolveListeners;
|
|
981
1517
|
if (chunk.reason) {
|
|
@@ -989,76 +1525,228 @@
|
|
|
989
1525
|
} else chunk.reason = rejectListeners;
|
|
990
1526
|
break;
|
|
991
1527
|
case "rejected":
|
|
992
|
-
rejectListeners &&
|
|
1528
|
+
rejectListeners && rejectChunk(rejectListeners, chunk.reason);
|
|
993
1529
|
}
|
|
994
1530
|
}
|
|
995
|
-
function triggerErrorOnChunk(chunk, error) {
|
|
1531
|
+
function triggerErrorOnChunk(response, chunk, error) {
|
|
996
1532
|
if ("pending" !== chunk.status && "blocked" !== chunk.status)
|
|
997
1533
|
chunk.reason.error(error);
|
|
998
1534
|
else {
|
|
1535
|
+
releasePendingChunk(response, chunk);
|
|
999
1536
|
var listeners = chunk.reason;
|
|
1537
|
+
if ("pending" === chunk.status && null != chunk._debugChunk) {
|
|
1538
|
+
var prevHandler = initializingHandler,
|
|
1539
|
+
prevChunk = initializingChunk;
|
|
1540
|
+
initializingHandler = null;
|
|
1541
|
+
chunk.status = "blocked";
|
|
1542
|
+
chunk.value = null;
|
|
1543
|
+
chunk.reason = null;
|
|
1544
|
+
initializingChunk = chunk;
|
|
1545
|
+
try {
|
|
1546
|
+
initializeDebugChunk(response, chunk);
|
|
1547
|
+
} finally {
|
|
1548
|
+
(initializingHandler = prevHandler),
|
|
1549
|
+
(initializingChunk = prevChunk);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1000
1552
|
chunk.status = "rejected";
|
|
1001
1553
|
chunk.reason = error;
|
|
1002
|
-
null !== listeners &&
|
|
1554
|
+
null !== listeners && rejectChunk(listeners, error);
|
|
1003
1555
|
}
|
|
1004
1556
|
}
|
|
1557
|
+
function createResolvedModelChunk(response, value) {
|
|
1558
|
+
return new ReactPromise("resolved_model", value, response);
|
|
1559
|
+
}
|
|
1005
1560
|
function createResolvedIteratorResultChunk(response, value, done) {
|
|
1006
1561
|
return new ReactPromise(
|
|
1007
1562
|
"resolved_model",
|
|
1008
1563
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') +
|
|
1009
1564
|
value +
|
|
1010
1565
|
"}",
|
|
1011
|
-
null,
|
|
1012
1566
|
response
|
|
1013
1567
|
);
|
|
1014
1568
|
}
|
|
1015
|
-
function resolveIteratorResultChunk(chunk, value, done) {
|
|
1569
|
+
function resolveIteratorResultChunk(response, chunk, value, done) {
|
|
1016
1570
|
resolveModelChunk(
|
|
1571
|
+
response,
|
|
1017
1572
|
chunk,
|
|
1018
1573
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') +
|
|
1019
1574
|
value +
|
|
1020
1575
|
"}"
|
|
1021
1576
|
);
|
|
1022
1577
|
}
|
|
1023
|
-
function resolveModelChunk(chunk, value) {
|
|
1578
|
+
function resolveModelChunk(response, chunk, value) {
|
|
1024
1579
|
if ("pending" !== chunk.status) chunk.reason.enqueueModel(value);
|
|
1025
1580
|
else {
|
|
1581
|
+
releasePendingChunk(response, chunk);
|
|
1026
1582
|
var resolveListeners = chunk.value,
|
|
1027
1583
|
rejectListeners = chunk.reason;
|
|
1028
1584
|
chunk.status = "resolved_model";
|
|
1029
1585
|
chunk.value = value;
|
|
1586
|
+
chunk.reason = response;
|
|
1030
1587
|
null !== resolveListeners &&
|
|
1031
1588
|
(initializeModelChunk(chunk),
|
|
1032
1589
|
wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
|
|
1033
1590
|
}
|
|
1034
1591
|
}
|
|
1035
|
-
function resolveModuleChunk(chunk, value) {
|
|
1592
|
+
function resolveModuleChunk(response, chunk, value) {
|
|
1036
1593
|
if ("pending" === chunk.status || "blocked" === chunk.status) {
|
|
1037
|
-
|
|
1038
|
-
|
|
1594
|
+
releasePendingChunk(response, chunk);
|
|
1595
|
+
response = chunk.value;
|
|
1596
|
+
var rejectListeners = chunk.reason;
|
|
1039
1597
|
chunk.status = "resolved_module";
|
|
1040
1598
|
chunk.value = value;
|
|
1041
|
-
|
|
1599
|
+
value = value[1];
|
|
1600
|
+
for (var debugInfo = [], i = 0; i < value.length; ) {
|
|
1601
|
+
var chunkId = value[i++];
|
|
1602
|
+
value[i++];
|
|
1603
|
+
var href = void 0,
|
|
1604
|
+
target = debugInfo,
|
|
1605
|
+
ioInfo = chunkIOInfoCache.get(chunkId);
|
|
1606
|
+
if (void 0 === ioInfo) {
|
|
1607
|
+
var scriptFilename = __webpack_get_script_filename__(chunkId);
|
|
1608
|
+
try {
|
|
1609
|
+
href = new URL(scriptFilename, document.baseURI).href;
|
|
1610
|
+
} catch (_) {
|
|
1611
|
+
href = scriptFilename;
|
|
1612
|
+
}
|
|
1613
|
+
var end = (ioInfo = -1);
|
|
1614
|
+
scriptFilename = 0;
|
|
1615
|
+
if ("function" === typeof performance.getEntriesByType)
|
|
1616
|
+
for (
|
|
1617
|
+
var resourceEntries = performance.getEntriesByType("resource"),
|
|
1618
|
+
i$jscomp$0 = 0;
|
|
1619
|
+
i$jscomp$0 < resourceEntries.length;
|
|
1620
|
+
i$jscomp$0++
|
|
1621
|
+
) {
|
|
1622
|
+
var resourceEntry = resourceEntries[i$jscomp$0];
|
|
1623
|
+
resourceEntry.name === href &&
|
|
1624
|
+
((ioInfo = resourceEntry.startTime),
|
|
1625
|
+
(end = ioInfo + resourceEntry.duration),
|
|
1626
|
+
(scriptFilename = resourceEntry.transferSize || 0));
|
|
1627
|
+
}
|
|
1628
|
+
resourceEntries = Promise.resolve(href);
|
|
1629
|
+
resourceEntries.status = "fulfilled";
|
|
1630
|
+
resourceEntries.value = { chunkId: chunkId, href: href };
|
|
1631
|
+
i$jscomp$0 = Error("react-stack-top-frame");
|
|
1632
|
+
i$jscomp$0.stack.startsWith("Error: react-stack-top-frame")
|
|
1633
|
+
? (i$jscomp$0.stack =
|
|
1634
|
+
"Error: react-stack-top-frame\n at Client Component Bundle (" +
|
|
1635
|
+
href +
|
|
1636
|
+
":1:1)\n at Client Component Bundle (" +
|
|
1637
|
+
href +
|
|
1638
|
+
":1:1)")
|
|
1639
|
+
: (i$jscomp$0.stack =
|
|
1640
|
+
"Client Component Bundle@" +
|
|
1641
|
+
href +
|
|
1642
|
+
":1:1\nClient Component Bundle@" +
|
|
1643
|
+
href +
|
|
1644
|
+
":1:1");
|
|
1645
|
+
ioInfo = {
|
|
1646
|
+
name: "script",
|
|
1647
|
+
start: ioInfo,
|
|
1648
|
+
end: end,
|
|
1649
|
+
value: resourceEntries,
|
|
1650
|
+
debugStack: i$jscomp$0
|
|
1651
|
+
};
|
|
1652
|
+
0 < scriptFilename && (ioInfo.byteSize = scriptFilename);
|
|
1653
|
+
chunkIOInfoCache.set(chunkId, ioInfo);
|
|
1654
|
+
}
|
|
1655
|
+
target.push({ awaited: ioInfo });
|
|
1656
|
+
}
|
|
1657
|
+
null !== debugInfo &&
|
|
1658
|
+
chunk._debugInfo.push.apply(chunk._debugInfo, debugInfo);
|
|
1659
|
+
null !== response &&
|
|
1042
1660
|
(initializeModuleChunk(chunk),
|
|
1043
|
-
wakeChunkIfInitialized(chunk,
|
|
1661
|
+
wakeChunkIfInitialized(chunk, response, rejectListeners));
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
function initializeDebugChunk(response, chunk) {
|
|
1665
|
+
var debugChunk = chunk._debugChunk;
|
|
1666
|
+
if (null !== debugChunk) {
|
|
1667
|
+
var debugInfo = chunk._debugInfo;
|
|
1668
|
+
try {
|
|
1669
|
+
if ("resolved_model" === debugChunk.status) {
|
|
1670
|
+
for (
|
|
1671
|
+
var idx = debugInfo.length, c = debugChunk._debugChunk;
|
|
1672
|
+
null !== c;
|
|
1673
|
+
|
|
1674
|
+
)
|
|
1675
|
+
"fulfilled" !== c.status && idx++, (c = c._debugChunk);
|
|
1676
|
+
initializeModelChunk(debugChunk);
|
|
1677
|
+
switch (debugChunk.status) {
|
|
1678
|
+
case "fulfilled":
|
|
1679
|
+
debugInfo[idx] = initializeDebugInfo(
|
|
1680
|
+
response,
|
|
1681
|
+
debugChunk.value
|
|
1682
|
+
);
|
|
1683
|
+
break;
|
|
1684
|
+
case "blocked":
|
|
1685
|
+
case "pending":
|
|
1686
|
+
waitForReference(
|
|
1687
|
+
debugChunk,
|
|
1688
|
+
debugInfo,
|
|
1689
|
+
"" + idx,
|
|
1690
|
+
response,
|
|
1691
|
+
initializeDebugInfo,
|
|
1692
|
+
[""],
|
|
1693
|
+
!0
|
|
1694
|
+
);
|
|
1695
|
+
break;
|
|
1696
|
+
default:
|
|
1697
|
+
throw debugChunk.reason;
|
|
1698
|
+
}
|
|
1699
|
+
} else
|
|
1700
|
+
switch (debugChunk.status) {
|
|
1701
|
+
case "fulfilled":
|
|
1702
|
+
break;
|
|
1703
|
+
case "blocked":
|
|
1704
|
+
case "pending":
|
|
1705
|
+
waitForReference(
|
|
1706
|
+
debugChunk,
|
|
1707
|
+
{},
|
|
1708
|
+
"debug",
|
|
1709
|
+
response,
|
|
1710
|
+
initializeDebugInfo,
|
|
1711
|
+
[""],
|
|
1712
|
+
!0
|
|
1713
|
+
);
|
|
1714
|
+
break;
|
|
1715
|
+
default:
|
|
1716
|
+
throw debugChunk.reason;
|
|
1717
|
+
}
|
|
1718
|
+
} catch (error) {
|
|
1719
|
+
triggerErrorOnChunk(response, chunk, error);
|
|
1720
|
+
}
|
|
1044
1721
|
}
|
|
1045
1722
|
}
|
|
1046
1723
|
function initializeModelChunk(chunk) {
|
|
1047
|
-
var prevHandler = initializingHandler
|
|
1724
|
+
var prevHandler = initializingHandler,
|
|
1725
|
+
prevChunk = initializingChunk;
|
|
1048
1726
|
initializingHandler = null;
|
|
1049
|
-
var resolvedModel = chunk.value
|
|
1727
|
+
var resolvedModel = chunk.value,
|
|
1728
|
+
response = chunk.reason;
|
|
1050
1729
|
chunk.status = "blocked";
|
|
1051
1730
|
chunk.value = null;
|
|
1052
1731
|
chunk.reason = null;
|
|
1732
|
+
initializingChunk = chunk;
|
|
1733
|
+
initializeDebugChunk(response, chunk);
|
|
1053
1734
|
try {
|
|
1054
|
-
var value = JSON.parse(resolvedModel,
|
|
1735
|
+
var value = JSON.parse(resolvedModel, response._fromJSON),
|
|
1055
1736
|
resolveListeners = chunk.value;
|
|
1056
|
-
null !== resolveListeners
|
|
1057
|
-
(
|
|
1058
|
-
|
|
1059
|
-
|
|
1737
|
+
if (null !== resolveListeners)
|
|
1738
|
+
for (
|
|
1739
|
+
chunk.value = null, chunk.reason = null, resolvedModel = 0;
|
|
1740
|
+
resolvedModel < resolveListeners.length;
|
|
1741
|
+
resolvedModel++
|
|
1742
|
+
) {
|
|
1743
|
+
var listener = resolveListeners[resolvedModel];
|
|
1744
|
+
"function" === typeof listener
|
|
1745
|
+
? listener(value)
|
|
1746
|
+
: fulfillReference(listener, value, chunk);
|
|
1747
|
+
}
|
|
1060
1748
|
if (null !== initializingHandler) {
|
|
1061
|
-
if (initializingHandler.errored) throw initializingHandler.
|
|
1749
|
+
if (initializingHandler.errored) throw initializingHandler.reason;
|
|
1062
1750
|
if (0 < initializingHandler.deps) {
|
|
1063
1751
|
initializingHandler.value = value;
|
|
1064
1752
|
initializingHandler.chunk = chunk;
|
|
@@ -1067,10 +1755,11 @@
|
|
|
1067
1755
|
}
|
|
1068
1756
|
chunk.status = "fulfilled";
|
|
1069
1757
|
chunk.value = value;
|
|
1758
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1070
1759
|
} catch (error) {
|
|
1071
1760
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1072
1761
|
} finally {
|
|
1073
|
-
initializingHandler = prevHandler;
|
|
1762
|
+
(initializingHandler = prevHandler), (initializingChunk = prevChunk);
|
|
1074
1763
|
}
|
|
1075
1764
|
}
|
|
1076
1765
|
function initializeModuleChunk(chunk) {
|
|
@@ -1082,12 +1771,22 @@
|
|
|
1082
1771
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1083
1772
|
}
|
|
1084
1773
|
}
|
|
1085
|
-
function reportGlobalError(
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1774
|
+
function reportGlobalError(weakResponse, error) {
|
|
1775
|
+
if (void 0 !== weakResponse.weak.deref()) {
|
|
1776
|
+
var response = unwrapWeakResponse(weakResponse);
|
|
1777
|
+
response._closed = !0;
|
|
1778
|
+
response._closedReason = error;
|
|
1779
|
+
response._chunks.forEach(function (chunk) {
|
|
1780
|
+
"pending" === chunk.status &&
|
|
1781
|
+
triggerErrorOnChunk(response, chunk, error);
|
|
1782
|
+
});
|
|
1783
|
+
weakResponse = response._debugChannel;
|
|
1784
|
+
void 0 !== weakResponse &&
|
|
1785
|
+
(closeDebugChannel(weakResponse),
|
|
1786
|
+
(response._debugChannel = void 0),
|
|
1787
|
+
null !== debugChannelRegistry &&
|
|
1788
|
+
debugChannelRegistry.unregister(response));
|
|
1789
|
+
}
|
|
1091
1790
|
}
|
|
1092
1791
|
function nullRefGetter() {
|
|
1093
1792
|
return null;
|
|
@@ -1108,14 +1807,69 @@
|
|
|
1108
1807
|
return "<...>";
|
|
1109
1808
|
}
|
|
1110
1809
|
}
|
|
1111
|
-
function
|
|
1810
|
+
function initializeElement(response, element, lazyNode) {
|
|
1811
|
+
var stack = element._debugStack,
|
|
1812
|
+
owner = element._owner;
|
|
1813
|
+
null === owner && (element._owner = response._debugRootOwner);
|
|
1814
|
+
var env = response._rootEnvironmentName;
|
|
1815
|
+
null !== owner && null != owner.env && (env = owner.env);
|
|
1816
|
+
var normalizedStackTrace = null;
|
|
1817
|
+
null === owner && null != response._debugRootStack
|
|
1818
|
+
? (normalizedStackTrace = response._debugRootStack)
|
|
1819
|
+
: null !== stack &&
|
|
1820
|
+
(normalizedStackTrace = createFakeJSXCallStackInDEV(
|
|
1821
|
+
response,
|
|
1822
|
+
stack,
|
|
1823
|
+
env
|
|
1824
|
+
));
|
|
1825
|
+
element._debugStack = normalizedStackTrace;
|
|
1826
|
+
normalizedStackTrace = null;
|
|
1827
|
+
supportsCreateTask &&
|
|
1828
|
+
null !== stack &&
|
|
1829
|
+
((normalizedStackTrace = console.createTask.bind(
|
|
1830
|
+
console,
|
|
1831
|
+
getTaskName(element.type)
|
|
1832
|
+
)),
|
|
1833
|
+
(stack = buildFakeCallStack(
|
|
1834
|
+
response,
|
|
1835
|
+
stack,
|
|
1836
|
+
env,
|
|
1837
|
+
!1,
|
|
1838
|
+
normalizedStackTrace
|
|
1839
|
+
)),
|
|
1840
|
+
(env = null === owner ? null : initializeFakeTask(response, owner)),
|
|
1841
|
+
null === env
|
|
1842
|
+
? ((env = response._debugRootTask),
|
|
1843
|
+
(normalizedStackTrace = null != env ? env.run(stack) : stack()))
|
|
1844
|
+
: (normalizedStackTrace = env.run(stack)));
|
|
1845
|
+
element._debugTask = normalizedStackTrace;
|
|
1846
|
+
null !== owner && initializeFakeStack(response, owner);
|
|
1847
|
+
null !== lazyNode &&
|
|
1848
|
+
(lazyNode._store &&
|
|
1849
|
+
lazyNode._store.validated &&
|
|
1850
|
+
!element._store.validated &&
|
|
1851
|
+
(element._store.validated = lazyNode._store.validated),
|
|
1852
|
+
"fulfilled" === lazyNode._payload.status &&
|
|
1853
|
+
lazyNode._debugInfo &&
|
|
1854
|
+
((response = lazyNode._debugInfo.splice(0)),
|
|
1855
|
+
element._debugInfo
|
|
1856
|
+
? element._debugInfo.unshift.apply(element._debugInfo, response)
|
|
1857
|
+
: Object.defineProperty(element, "_debugInfo", {
|
|
1858
|
+
configurable: !1,
|
|
1859
|
+
enumerable: !1,
|
|
1860
|
+
writable: !0,
|
|
1861
|
+
value: response
|
|
1862
|
+
})));
|
|
1863
|
+
Object.freeze(element.props);
|
|
1864
|
+
}
|
|
1865
|
+
function createLazyChunkWrapper(chunk, validated) {
|
|
1112
1866
|
var lazyType = {
|
|
1113
1867
|
$$typeof: REACT_LAZY_TYPE,
|
|
1114
1868
|
_payload: chunk,
|
|
1115
1869
|
_init: readChunk
|
|
1116
1870
|
};
|
|
1117
|
-
|
|
1118
|
-
lazyType.
|
|
1871
|
+
lazyType._debugInfo = chunk._debugInfo;
|
|
1872
|
+
lazyType._store = { validated: validated };
|
|
1119
1873
|
return lazyType;
|
|
1120
1874
|
}
|
|
1121
1875
|
function getChunk(response, id) {
|
|
@@ -1123,85 +1877,176 @@
|
|
|
1123
1877
|
chunk = chunks.get(id);
|
|
1124
1878
|
chunk ||
|
|
1125
1879
|
((chunk = response._closed
|
|
1126
|
-
? new ReactPromise("rejected", null, response._closedReason
|
|
1880
|
+
? new ReactPromise("rejected", null, response._closedReason)
|
|
1127
1881
|
: createPendingChunk(response)),
|
|
1128
1882
|
chunks.set(id, chunk));
|
|
1129
1883
|
return chunk;
|
|
1130
1884
|
}
|
|
1885
|
+
function fulfillReference(reference, value, fulfilledChunk) {
|
|
1886
|
+
for (
|
|
1887
|
+
var response = reference.response,
|
|
1888
|
+
handler = reference.handler,
|
|
1889
|
+
parentObject = reference.parentObject,
|
|
1890
|
+
key = reference.key,
|
|
1891
|
+
map = reference.map,
|
|
1892
|
+
path = reference.path,
|
|
1893
|
+
i = 1;
|
|
1894
|
+
i < path.length;
|
|
1895
|
+
i++
|
|
1896
|
+
) {
|
|
1897
|
+
for (
|
|
1898
|
+
;
|
|
1899
|
+
"object" === typeof value &&
|
|
1900
|
+
null !== value &&
|
|
1901
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
1902
|
+
|
|
1903
|
+
)
|
|
1904
|
+
if (((value = value._payload), value === handler.chunk))
|
|
1905
|
+
value = handler.value;
|
|
1906
|
+
else {
|
|
1907
|
+
switch (value.status) {
|
|
1908
|
+
case "resolved_model":
|
|
1909
|
+
initializeModelChunk(value);
|
|
1910
|
+
break;
|
|
1911
|
+
case "resolved_module":
|
|
1912
|
+
initializeModuleChunk(value);
|
|
1913
|
+
}
|
|
1914
|
+
switch (value.status) {
|
|
1915
|
+
case "fulfilled":
|
|
1916
|
+
value = value.value;
|
|
1917
|
+
continue;
|
|
1918
|
+
case "blocked":
|
|
1919
|
+
var cyclicHandler = resolveBlockedCycle(value, reference);
|
|
1920
|
+
if (null !== cyclicHandler) {
|
|
1921
|
+
value = cyclicHandler.value;
|
|
1922
|
+
continue;
|
|
1923
|
+
}
|
|
1924
|
+
case "pending":
|
|
1925
|
+
path.splice(0, i - 1);
|
|
1926
|
+
null === value.value
|
|
1927
|
+
? (value.value = [reference])
|
|
1928
|
+
: value.value.push(reference);
|
|
1929
|
+
null === value.reason
|
|
1930
|
+
? (value.reason = [reference])
|
|
1931
|
+
: value.reason.push(reference);
|
|
1932
|
+
return;
|
|
1933
|
+
case "halted":
|
|
1934
|
+
return;
|
|
1935
|
+
default:
|
|
1936
|
+
rejectReference(reference, value.reason);
|
|
1937
|
+
return;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
value = value[path[i]];
|
|
1941
|
+
}
|
|
1942
|
+
for (
|
|
1943
|
+
;
|
|
1944
|
+
"object" === typeof value &&
|
|
1945
|
+
null !== value &&
|
|
1946
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
1947
|
+
|
|
1948
|
+
)
|
|
1949
|
+
if (((path = value._payload), path === handler.chunk))
|
|
1950
|
+
value = handler.value;
|
|
1951
|
+
else {
|
|
1952
|
+
switch (path.status) {
|
|
1953
|
+
case "resolved_model":
|
|
1954
|
+
initializeModelChunk(path);
|
|
1955
|
+
break;
|
|
1956
|
+
case "resolved_module":
|
|
1957
|
+
initializeModuleChunk(path);
|
|
1958
|
+
}
|
|
1959
|
+
switch (path.status) {
|
|
1960
|
+
case "fulfilled":
|
|
1961
|
+
value = path.value;
|
|
1962
|
+
continue;
|
|
1963
|
+
}
|
|
1964
|
+
break;
|
|
1965
|
+
}
|
|
1966
|
+
response = map(response, value, parentObject, key);
|
|
1967
|
+
parentObject[key] = response;
|
|
1968
|
+
"" === key && null === handler.value && (handler.value = response);
|
|
1969
|
+
if (
|
|
1970
|
+
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
1971
|
+
"object" === typeof handler.value &&
|
|
1972
|
+
null !== handler.value &&
|
|
1973
|
+
handler.value.$$typeof === REACT_ELEMENT_TYPE
|
|
1974
|
+
)
|
|
1975
|
+
switch (((reference = handler.value), key)) {
|
|
1976
|
+
case "3":
|
|
1977
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
1978
|
+
reference.props = response;
|
|
1979
|
+
break;
|
|
1980
|
+
case "4":
|
|
1981
|
+
reference._owner = response;
|
|
1982
|
+
break;
|
|
1983
|
+
case "5":
|
|
1984
|
+
reference._debugStack = response;
|
|
1985
|
+
break;
|
|
1986
|
+
default:
|
|
1987
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
1988
|
+
}
|
|
1989
|
+
else
|
|
1990
|
+
reference.isDebug ||
|
|
1991
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
1992
|
+
handler.deps--;
|
|
1993
|
+
0 === handler.deps &&
|
|
1994
|
+
((fulfilledChunk = handler.chunk),
|
|
1995
|
+
null !== fulfilledChunk &&
|
|
1996
|
+
"blocked" === fulfilledChunk.status &&
|
|
1997
|
+
((key = fulfilledChunk.value),
|
|
1998
|
+
(fulfilledChunk.status = "fulfilled"),
|
|
1999
|
+
(fulfilledChunk.value = handler.value),
|
|
2000
|
+
(fulfilledChunk.reason = handler.reason),
|
|
2001
|
+
null !== key && wakeChunk(key, handler.value, fulfilledChunk)));
|
|
2002
|
+
}
|
|
2003
|
+
function rejectReference(reference, error) {
|
|
2004
|
+
var handler = reference.handler;
|
|
2005
|
+
reference = reference.response;
|
|
2006
|
+
if (!handler.errored) {
|
|
2007
|
+
var blockedValue = handler.value;
|
|
2008
|
+
handler.errored = !0;
|
|
2009
|
+
handler.value = null;
|
|
2010
|
+
handler.reason = error;
|
|
2011
|
+
handler = handler.chunk;
|
|
2012
|
+
if (null !== handler && "blocked" === handler.status) {
|
|
2013
|
+
if (
|
|
2014
|
+
"object" === typeof blockedValue &&
|
|
2015
|
+
null !== blockedValue &&
|
|
2016
|
+
blockedValue.$$typeof === REACT_ELEMENT_TYPE
|
|
2017
|
+
) {
|
|
2018
|
+
var erroredComponent = {
|
|
2019
|
+
name: getComponentNameFromType(blockedValue.type) || "",
|
|
2020
|
+
owner: blockedValue._owner
|
|
2021
|
+
};
|
|
2022
|
+
erroredComponent.debugStack = blockedValue._debugStack;
|
|
2023
|
+
supportsCreateTask &&
|
|
2024
|
+
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2025
|
+
handler._debugInfo.push(erroredComponent);
|
|
2026
|
+
}
|
|
2027
|
+
triggerErrorOnChunk(reference, handler, error);
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
1131
2031
|
function waitForReference(
|
|
1132
2032
|
referencedChunk,
|
|
1133
2033
|
parentObject,
|
|
1134
2034
|
key,
|
|
1135
2035
|
response,
|
|
1136
2036
|
map,
|
|
1137
|
-
path
|
|
2037
|
+
path,
|
|
2038
|
+
isAwaitingDebugInfo
|
|
1138
2039
|
) {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
path.splice(0, i - 1);
|
|
1147
|
-
value.then(fulfill, reject);
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
value = value[path[i]];
|
|
1151
|
-
}
|
|
1152
|
-
i = map(response, value, parentObject, key);
|
|
1153
|
-
parentObject[key] = i;
|
|
1154
|
-
"" === key && null === handler.value && (handler.value = i);
|
|
1155
|
-
if (
|
|
1156
|
-
parentObject[0] === REACT_ELEMENT_TYPE &&
|
|
1157
|
-
"object" === typeof handler.value &&
|
|
1158
|
-
null !== handler.value &&
|
|
1159
|
-
handler.value.$$typeof === REACT_ELEMENT_TYPE
|
|
2040
|
+
if (
|
|
2041
|
+
!(
|
|
2042
|
+
(void 0 !== response._debugChannel &&
|
|
2043
|
+
response._debugChannel.hasReadable) ||
|
|
2044
|
+
"pending" !== referencedChunk.status ||
|
|
2045
|
+
parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2046
|
+
("4" !== key && "5" !== key)
|
|
1160
2047
|
)
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
value.props = i;
|
|
1164
|
-
break;
|
|
1165
|
-
case "4":
|
|
1166
|
-
value._owner = i;
|
|
1167
|
-
}
|
|
1168
|
-
handler.deps--;
|
|
1169
|
-
0 === handler.deps &&
|
|
1170
|
-
((i = handler.chunk),
|
|
1171
|
-
null !== i &&
|
|
1172
|
-
"blocked" === i.status &&
|
|
1173
|
-
((value = i.value),
|
|
1174
|
-
(i.status = "fulfilled"),
|
|
1175
|
-
(i.value = handler.value),
|
|
1176
|
-
null !== value && wakeChunk(value, handler.value)));
|
|
1177
|
-
}
|
|
1178
|
-
function reject(error) {
|
|
1179
|
-
if (!handler.errored) {
|
|
1180
|
-
var blockedValue = handler.value;
|
|
1181
|
-
handler.errored = !0;
|
|
1182
|
-
handler.value = error;
|
|
1183
|
-
var chunk = handler.chunk;
|
|
1184
|
-
if (null !== chunk && "blocked" === chunk.status) {
|
|
1185
|
-
if (
|
|
1186
|
-
"object" === typeof blockedValue &&
|
|
1187
|
-
null !== blockedValue &&
|
|
1188
|
-
blockedValue.$$typeof === REACT_ELEMENT_TYPE
|
|
1189
|
-
) {
|
|
1190
|
-
var erroredComponent = {
|
|
1191
|
-
name: getComponentNameFromType(blockedValue.type) || "",
|
|
1192
|
-
owner: blockedValue._owner
|
|
1193
|
-
};
|
|
1194
|
-
erroredComponent.debugStack = blockedValue._debugStack;
|
|
1195
|
-
supportsCreateTask &&
|
|
1196
|
-
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
1197
|
-
(chunk._debugInfo || (chunk._debugInfo = [])).push(
|
|
1198
|
-
erroredComponent
|
|
1199
|
-
);
|
|
1200
|
-
}
|
|
1201
|
-
triggerErrorOnChunk(chunk, error);
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
2048
|
+
)
|
|
2049
|
+
return null;
|
|
1205
2050
|
if (initializingHandler) {
|
|
1206
2051
|
var handler = initializingHandler;
|
|
1207
2052
|
handler.deps++;
|
|
@@ -1210,10 +2055,25 @@
|
|
|
1210
2055
|
parent: null,
|
|
1211
2056
|
chunk: null,
|
|
1212
2057
|
value: null,
|
|
2058
|
+
reason: null,
|
|
1213
2059
|
deps: 1,
|
|
1214
2060
|
errored: !1
|
|
1215
2061
|
};
|
|
1216
|
-
|
|
2062
|
+
parentObject = {
|
|
2063
|
+
response: response,
|
|
2064
|
+
handler: handler,
|
|
2065
|
+
parentObject: parentObject,
|
|
2066
|
+
key: key,
|
|
2067
|
+
map: map,
|
|
2068
|
+
path: path
|
|
2069
|
+
};
|
|
2070
|
+
parentObject.isDebug = isAwaitingDebugInfo;
|
|
2071
|
+
null === referencedChunk.value
|
|
2072
|
+
? (referencedChunk.value = [parentObject])
|
|
2073
|
+
: referencedChunk.value.push(parentObject);
|
|
2074
|
+
null === referencedChunk.reason
|
|
2075
|
+
? (referencedChunk.reason = [parentObject])
|
|
2076
|
+
: referencedChunk.reason.push(parentObject);
|
|
1217
2077
|
return null;
|
|
1218
2078
|
}
|
|
1219
2079
|
function loadServerReference(response, metaData, parentObject, key) {
|
|
@@ -1225,17 +2085,18 @@
|
|
|
1225
2085
|
response._debugFindSourceMapURL
|
|
1226
2086
|
);
|
|
1227
2087
|
var serverReference = resolveServerReference(
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
2088
|
+
response._serverReferenceConfig,
|
|
2089
|
+
metaData.id
|
|
2090
|
+
),
|
|
2091
|
+
promise = preloadModule(serverReference);
|
|
2092
|
+
if (promise)
|
|
2093
|
+
metaData.bound && (promise = Promise.all([promise, metaData.bound]));
|
|
2094
|
+
else if (metaData.bound) promise = Promise.resolve(metaData.bound);
|
|
1234
2095
|
else
|
|
1235
2096
|
return (
|
|
1236
|
-
(
|
|
1237
|
-
registerBoundServerReference(
|
|
1238
|
-
|
|
2097
|
+
(promise = requireModule(serverReference)),
|
|
2098
|
+
registerBoundServerReference(promise, metaData.id, metaData.bound),
|
|
2099
|
+
promise
|
|
1239
2100
|
);
|
|
1240
2101
|
if (initializingHandler) {
|
|
1241
2102
|
var handler = initializingHandler;
|
|
@@ -1245,10 +2106,11 @@
|
|
|
1245
2106
|
parent: null,
|
|
1246
2107
|
chunk: null,
|
|
1247
2108
|
value: null,
|
|
2109
|
+
reason: null,
|
|
1248
2110
|
deps: 1,
|
|
1249
2111
|
errored: !1
|
|
1250
2112
|
};
|
|
1251
|
-
|
|
2113
|
+
promise.then(
|
|
1252
2114
|
function () {
|
|
1253
2115
|
var resolvedValue = requireModule(serverReference);
|
|
1254
2116
|
if (metaData.bound) {
|
|
@@ -1286,13 +2148,15 @@
|
|
|
1286
2148
|
((boundArgs = resolvedValue.value),
|
|
1287
2149
|
(resolvedValue.status = "fulfilled"),
|
|
1288
2150
|
(resolvedValue.value = handler.value),
|
|
1289
|
-
null !== boundArgs &&
|
|
2151
|
+
null !== boundArgs &&
|
|
2152
|
+
wakeChunk(boundArgs, handler.value, resolvedValue)));
|
|
1290
2153
|
},
|
|
1291
2154
|
function (error) {
|
|
1292
2155
|
if (!handler.errored) {
|
|
1293
2156
|
var blockedValue = handler.value;
|
|
1294
2157
|
handler.errored = !0;
|
|
1295
|
-
handler.value =
|
|
2158
|
+
handler.value = null;
|
|
2159
|
+
handler.reason = error;
|
|
1296
2160
|
var chunk = handler.chunk;
|
|
1297
2161
|
if (null !== chunk && "blocked" === chunk.status) {
|
|
1298
2162
|
if (
|
|
@@ -1307,79 +2171,184 @@
|
|
|
1307
2171
|
erroredComponent.debugStack = blockedValue._debugStack;
|
|
1308
2172
|
supportsCreateTask &&
|
|
1309
2173
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
1310
|
-
|
|
1311
|
-
erroredComponent
|
|
1312
|
-
);
|
|
2174
|
+
chunk._debugInfo.push(erroredComponent);
|
|
1313
2175
|
}
|
|
1314
|
-
triggerErrorOnChunk(chunk, error);
|
|
2176
|
+
triggerErrorOnChunk(response, chunk, error);
|
|
1315
2177
|
}
|
|
1316
2178
|
}
|
|
1317
2179
|
}
|
|
1318
2180
|
);
|
|
1319
2181
|
return null;
|
|
1320
2182
|
}
|
|
2183
|
+
function resolveLazy(value) {
|
|
2184
|
+
for (
|
|
2185
|
+
;
|
|
2186
|
+
"object" === typeof value &&
|
|
2187
|
+
null !== value &&
|
|
2188
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2189
|
+
|
|
2190
|
+
) {
|
|
2191
|
+
var payload = value._payload;
|
|
2192
|
+
if ("fulfilled" === payload.status) value = payload.value;
|
|
2193
|
+
else break;
|
|
2194
|
+
}
|
|
2195
|
+
return value;
|
|
2196
|
+
}
|
|
2197
|
+
function transferReferencedDebugInfo(parentChunk, referencedChunk) {
|
|
2198
|
+
if (null !== parentChunk) {
|
|
2199
|
+
referencedChunk = referencedChunk._debugInfo;
|
|
2200
|
+
parentChunk = parentChunk._debugInfo;
|
|
2201
|
+
for (var i = 0; i < referencedChunk.length; ++i) {
|
|
2202
|
+
var debugInfoEntry = referencedChunk[i];
|
|
2203
|
+
null == debugInfoEntry.name && parentChunk.push(debugInfoEntry);
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
1321
2207
|
function getOutlinedModel(response, reference, parentObject, key, map) {
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
2208
|
+
var path = reference.split(":");
|
|
2209
|
+
reference = parseInt(path[0], 16);
|
|
2210
|
+
reference = getChunk(response, reference);
|
|
2211
|
+
null !== initializingChunk &&
|
|
2212
|
+
isArrayImpl(initializingChunk._children) &&
|
|
2213
|
+
initializingChunk._children.push(reference);
|
|
2214
|
+
switch (reference.status) {
|
|
1326
2215
|
case "resolved_model":
|
|
1327
|
-
initializeModelChunk(
|
|
2216
|
+
initializeModelChunk(reference);
|
|
1328
2217
|
break;
|
|
1329
2218
|
case "resolved_module":
|
|
1330
|
-
initializeModuleChunk(
|
|
2219
|
+
initializeModuleChunk(reference);
|
|
1331
2220
|
}
|
|
1332
|
-
switch (
|
|
2221
|
+
switch (reference.status) {
|
|
1333
2222
|
case "fulfilled":
|
|
1334
|
-
for (var value =
|
|
1335
|
-
for (
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
2223
|
+
for (var value = reference.value, i = 1; i < path.length; i++) {
|
|
2224
|
+
for (
|
|
2225
|
+
;
|
|
2226
|
+
"object" === typeof value &&
|
|
2227
|
+
null !== value &&
|
|
2228
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2229
|
+
|
|
2230
|
+
) {
|
|
2231
|
+
value = value._payload;
|
|
2232
|
+
switch (value.status) {
|
|
2233
|
+
case "resolved_model":
|
|
2234
|
+
initializeModelChunk(value);
|
|
2235
|
+
break;
|
|
2236
|
+
case "resolved_module":
|
|
2237
|
+
initializeModuleChunk(value);
|
|
2238
|
+
}
|
|
2239
|
+
switch (value.status) {
|
|
2240
|
+
case "fulfilled":
|
|
2241
|
+
value = value.value;
|
|
2242
|
+
break;
|
|
2243
|
+
case "blocked":
|
|
2244
|
+
case "pending":
|
|
2245
|
+
return waitForReference(
|
|
2246
|
+
value,
|
|
2247
|
+
parentObject,
|
|
2248
|
+
key,
|
|
2249
|
+
response,
|
|
2250
|
+
map,
|
|
2251
|
+
path.slice(i - 1),
|
|
2252
|
+
!1
|
|
2253
|
+
);
|
|
2254
|
+
case "halted":
|
|
2255
|
+
return (
|
|
2256
|
+
initializingHandler
|
|
2257
|
+
? ((parentObject = initializingHandler),
|
|
2258
|
+
parentObject.deps++)
|
|
2259
|
+
: (initializingHandler = {
|
|
2260
|
+
parent: null,
|
|
2261
|
+
chunk: null,
|
|
2262
|
+
value: null,
|
|
2263
|
+
reason: null,
|
|
2264
|
+
deps: 1,
|
|
2265
|
+
errored: !1
|
|
2266
|
+
}),
|
|
2267
|
+
null
|
|
2268
|
+
);
|
|
2269
|
+
default:
|
|
2270
|
+
return (
|
|
2271
|
+
initializingHandler
|
|
2272
|
+
? ((initializingHandler.errored = !0),
|
|
2273
|
+
(initializingHandler.value = null),
|
|
2274
|
+
(initializingHandler.reason = value.reason))
|
|
2275
|
+
: (initializingHandler = {
|
|
2276
|
+
parent: null,
|
|
2277
|
+
chunk: null,
|
|
2278
|
+
value: null,
|
|
2279
|
+
reason: value.reason,
|
|
2280
|
+
deps: 0,
|
|
2281
|
+
errored: !0
|
|
2282
|
+
}),
|
|
2283
|
+
null
|
|
2284
|
+
);
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
value = value[path[i]];
|
|
2288
|
+
}
|
|
2289
|
+
for (
|
|
2290
|
+
;
|
|
2291
|
+
"object" === typeof value &&
|
|
2292
|
+
null !== value &&
|
|
2293
|
+
value.$$typeof === REACT_LAZY_TYPE;
|
|
2294
|
+
|
|
2295
|
+
) {
|
|
2296
|
+
path = value._payload;
|
|
2297
|
+
switch (path.status) {
|
|
2298
|
+
case "resolved_model":
|
|
2299
|
+
initializeModelChunk(path);
|
|
2300
|
+
break;
|
|
2301
|
+
case "resolved_module":
|
|
2302
|
+
initializeModuleChunk(path);
|
|
2303
|
+
}
|
|
2304
|
+
switch (path.status) {
|
|
2305
|
+
case "fulfilled":
|
|
2306
|
+
value = path.value;
|
|
2307
|
+
continue;
|
|
2308
|
+
}
|
|
2309
|
+
break;
|
|
1348
2310
|
}
|
|
1349
2311
|
response = map(response, value, parentObject, key);
|
|
1350
|
-
|
|
1351
|
-
("
|
|
1352
|
-
|
|
1353
|
-
(!isArrayImpl(response) &&
|
|
1354
|
-
"function" !== typeof response[ASYNC_ITERATOR] &&
|
|
1355
|
-
response.$$typeof !== REACT_ELEMENT_TYPE) ||
|
|
1356
|
-
response._debugInfo ||
|
|
1357
|
-
Object.defineProperty(response, "_debugInfo", {
|
|
1358
|
-
configurable: !1,
|
|
1359
|
-
enumerable: !1,
|
|
1360
|
-
writable: !0,
|
|
1361
|
-
value: id._debugInfo
|
|
1362
|
-
}));
|
|
2312
|
+
(parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2313
|
+
("4" !== key && "5" !== key)) &&
|
|
2314
|
+
transferReferencedDebugInfo(initializingChunk, reference);
|
|
1363
2315
|
return response;
|
|
1364
2316
|
case "pending":
|
|
1365
2317
|
case "blocked":
|
|
1366
2318
|
return waitForReference(
|
|
1367
|
-
|
|
2319
|
+
reference,
|
|
1368
2320
|
parentObject,
|
|
1369
2321
|
key,
|
|
1370
2322
|
response,
|
|
1371
2323
|
map,
|
|
1372
|
-
|
|
2324
|
+
path,
|
|
2325
|
+
!1
|
|
2326
|
+
);
|
|
2327
|
+
case "halted":
|
|
2328
|
+
return (
|
|
2329
|
+
initializingHandler
|
|
2330
|
+
? ((parentObject = initializingHandler), parentObject.deps++)
|
|
2331
|
+
: (initializingHandler = {
|
|
2332
|
+
parent: null,
|
|
2333
|
+
chunk: null,
|
|
2334
|
+
value: null,
|
|
2335
|
+
reason: null,
|
|
2336
|
+
deps: 1,
|
|
2337
|
+
errored: !1
|
|
2338
|
+
}),
|
|
2339
|
+
null
|
|
1373
2340
|
);
|
|
1374
2341
|
default:
|
|
1375
2342
|
return (
|
|
1376
2343
|
initializingHandler
|
|
1377
2344
|
? ((initializingHandler.errored = !0),
|
|
1378
|
-
(initializingHandler.value =
|
|
2345
|
+
(initializingHandler.value = null),
|
|
2346
|
+
(initializingHandler.reason = reference.reason))
|
|
1379
2347
|
: (initializingHandler = {
|
|
1380
2348
|
parent: null,
|
|
1381
2349
|
chunk: null,
|
|
1382
|
-
value:
|
|
2350
|
+
value: null,
|
|
2351
|
+
reason: reference.reason,
|
|
1383
2352
|
deps: 0,
|
|
1384
2353
|
errored: !0
|
|
1385
2354
|
}),
|
|
@@ -1402,12 +2371,63 @@
|
|
|
1402
2371
|
response.append(model[i][0], model[i][1]);
|
|
1403
2372
|
return response;
|
|
1404
2373
|
}
|
|
2374
|
+
function applyConstructor(response, model, parentObject) {
|
|
2375
|
+
Object.setPrototypeOf(parentObject, model.prototype);
|
|
2376
|
+
}
|
|
2377
|
+
function defineLazyGetter(response, chunk, parentObject, key) {
|
|
2378
|
+
Object.defineProperty(parentObject, key, {
|
|
2379
|
+
get: function () {
|
|
2380
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk);
|
|
2381
|
+
switch (chunk.status) {
|
|
2382
|
+
case "fulfilled":
|
|
2383
|
+
return chunk.value;
|
|
2384
|
+
case "rejected":
|
|
2385
|
+
throw chunk.reason;
|
|
2386
|
+
}
|
|
2387
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2388
|
+
},
|
|
2389
|
+
enumerable: !0,
|
|
2390
|
+
configurable: !1
|
|
2391
|
+
});
|
|
2392
|
+
return null;
|
|
2393
|
+
}
|
|
1405
2394
|
function extractIterator(response, model) {
|
|
1406
2395
|
return model[Symbol.iterator]();
|
|
1407
2396
|
}
|
|
1408
2397
|
function createModel(response, model) {
|
|
1409
2398
|
return model;
|
|
1410
2399
|
}
|
|
2400
|
+
function getInferredFunctionApproximate(code) {
|
|
2401
|
+
code = code.startsWith("Object.defineProperty(")
|
|
2402
|
+
? code.slice(22)
|
|
2403
|
+
: code.startsWith("(")
|
|
2404
|
+
? code.slice(1)
|
|
2405
|
+
: code;
|
|
2406
|
+
if (code.startsWith("async function")) {
|
|
2407
|
+
var idx = code.indexOf("(", 14);
|
|
2408
|
+
if (-1 !== idx)
|
|
2409
|
+
return (
|
|
2410
|
+
(code = code.slice(14, idx).trim()),
|
|
2411
|
+
(0, eval)("({" + JSON.stringify(code) + ":async function(){}})")[
|
|
2412
|
+
code
|
|
2413
|
+
]
|
|
2414
|
+
);
|
|
2415
|
+
} else if (code.startsWith("function")) {
|
|
2416
|
+
if (((idx = code.indexOf("(", 8)), -1 !== idx))
|
|
2417
|
+
return (
|
|
2418
|
+
(code = code.slice(8, idx).trim()),
|
|
2419
|
+
(0, eval)("({" + JSON.stringify(code) + ":function(){}})")[code]
|
|
2420
|
+
);
|
|
2421
|
+
} else if (
|
|
2422
|
+
code.startsWith("class") &&
|
|
2423
|
+
((idx = code.indexOf("{", 5)), -1 !== idx)
|
|
2424
|
+
)
|
|
2425
|
+
return (
|
|
2426
|
+
(code = code.slice(5, idx).trim()),
|
|
2427
|
+
(0, eval)("({" + JSON.stringify(code) + ":class{}})")[code]
|
|
2428
|
+
);
|
|
2429
|
+
return function () {};
|
|
2430
|
+
}
|
|
1411
2431
|
function parseModelString(response, parentObject, key, value) {
|
|
1412
2432
|
if ("$" === value[0]) {
|
|
1413
2433
|
if ("$" === value)
|
|
@@ -1418,6 +2438,7 @@
|
|
|
1418
2438
|
parent: initializingHandler,
|
|
1419
2439
|
chunk: null,
|
|
1420
2440
|
value: null,
|
|
2441
|
+
reason: null,
|
|
1421
2442
|
deps: 0,
|
|
1422
2443
|
errored: !1
|
|
1423
2444
|
}),
|
|
@@ -1430,24 +2451,30 @@
|
|
|
1430
2451
|
return (
|
|
1431
2452
|
(parentObject = parseInt(value.slice(2), 16)),
|
|
1432
2453
|
(response = getChunk(response, parentObject)),
|
|
1433
|
-
|
|
2454
|
+
null !== initializingChunk &&
|
|
2455
|
+
isArrayImpl(initializingChunk._children) &&
|
|
2456
|
+
initializingChunk._children.push(response),
|
|
2457
|
+
createLazyChunkWrapper(response, 0)
|
|
1434
2458
|
);
|
|
1435
2459
|
case "@":
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
2460
|
+
return (
|
|
2461
|
+
(parentObject = parseInt(value.slice(2), 16)),
|
|
2462
|
+
(response = getChunk(response, parentObject)),
|
|
2463
|
+
null !== initializingChunk &&
|
|
2464
|
+
isArrayImpl(initializingChunk._children) &&
|
|
2465
|
+
initializingChunk._children.push(response),
|
|
2466
|
+
response
|
|
2467
|
+
);
|
|
1439
2468
|
case "S":
|
|
1440
2469
|
return Symbol.for(value.slice(2));
|
|
1441
2470
|
case "F":
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
loadServerReference
|
|
1450
|
-
)
|
|
2471
|
+
var ref = value.slice(2);
|
|
2472
|
+
return getOutlinedModel(
|
|
2473
|
+
response,
|
|
2474
|
+
ref,
|
|
2475
|
+
parentObject,
|
|
2476
|
+
key,
|
|
2477
|
+
loadServerReference
|
|
1451
2478
|
);
|
|
1452
2479
|
case "T":
|
|
1453
2480
|
parentObject = "$" + value.slice(2);
|
|
@@ -1459,36 +2486,30 @@
|
|
|
1459
2486
|
return response.get(parentObject);
|
|
1460
2487
|
case "Q":
|
|
1461
2488
|
return (
|
|
1462
|
-
(
|
|
1463
|
-
getOutlinedModel(response,
|
|
2489
|
+
(ref = value.slice(2)),
|
|
2490
|
+
getOutlinedModel(response, ref, parentObject, key, createMap)
|
|
1464
2491
|
);
|
|
1465
2492
|
case "W":
|
|
1466
2493
|
return (
|
|
1467
|
-
(
|
|
1468
|
-
getOutlinedModel(response,
|
|
2494
|
+
(ref = value.slice(2)),
|
|
2495
|
+
getOutlinedModel(response, ref, parentObject, key, createSet)
|
|
1469
2496
|
);
|
|
1470
2497
|
case "B":
|
|
1471
2498
|
return (
|
|
1472
|
-
(
|
|
1473
|
-
getOutlinedModel(response,
|
|
2499
|
+
(ref = value.slice(2)),
|
|
2500
|
+
getOutlinedModel(response, ref, parentObject, key, createBlob)
|
|
1474
2501
|
);
|
|
1475
2502
|
case "K":
|
|
1476
2503
|
return (
|
|
1477
|
-
(
|
|
1478
|
-
getOutlinedModel(
|
|
1479
|
-
response,
|
|
1480
|
-
value,
|
|
1481
|
-
parentObject,
|
|
1482
|
-
key,
|
|
1483
|
-
createFormData
|
|
1484
|
-
)
|
|
2504
|
+
(ref = value.slice(2)),
|
|
2505
|
+
getOutlinedModel(response, ref, parentObject, key, createFormData)
|
|
1485
2506
|
);
|
|
1486
2507
|
case "Z":
|
|
1487
2508
|
return (
|
|
1488
|
-
(
|
|
2509
|
+
(ref = value.slice(2)),
|
|
1489
2510
|
getOutlinedModel(
|
|
1490
2511
|
response,
|
|
1491
|
-
|
|
2512
|
+
ref,
|
|
1492
2513
|
parentObject,
|
|
1493
2514
|
key,
|
|
1494
2515
|
resolveErrorDev
|
|
@@ -1496,10 +2517,10 @@
|
|
|
1496
2517
|
);
|
|
1497
2518
|
case "i":
|
|
1498
2519
|
return (
|
|
1499
|
-
(
|
|
2520
|
+
(ref = value.slice(2)),
|
|
1500
2521
|
getOutlinedModel(
|
|
1501
2522
|
response,
|
|
1502
|
-
|
|
2523
|
+
ref,
|
|
1503
2524
|
parentObject,
|
|
1504
2525
|
key,
|
|
1505
2526
|
extractIterator
|
|
@@ -1517,27 +2538,72 @@
|
|
|
1517
2538
|
return new Date(Date.parse(value.slice(2)));
|
|
1518
2539
|
case "n":
|
|
1519
2540
|
return BigInt(value.slice(2));
|
|
2541
|
+
case "P":
|
|
2542
|
+
return (
|
|
2543
|
+
(ref = value.slice(2)),
|
|
2544
|
+
getOutlinedModel(
|
|
2545
|
+
response,
|
|
2546
|
+
ref,
|
|
2547
|
+
parentObject,
|
|
2548
|
+
key,
|
|
2549
|
+
applyConstructor
|
|
2550
|
+
)
|
|
2551
|
+
);
|
|
1520
2552
|
case "E":
|
|
2553
|
+
response = value.slice(2);
|
|
1521
2554
|
try {
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
2555
|
+
if (!mightHaveStaticConstructor.test(response))
|
|
2556
|
+
return (0, eval)(response);
|
|
2557
|
+
} catch (x) {}
|
|
2558
|
+
try {
|
|
2559
|
+
if (
|
|
2560
|
+
((ref = getInferredFunctionApproximate(response)),
|
|
2561
|
+
response.startsWith("Object.defineProperty("))
|
|
2562
|
+
) {
|
|
2563
|
+
var idx = response.lastIndexOf(',"name",{value:"');
|
|
2564
|
+
if (-1 !== idx) {
|
|
2565
|
+
var name = JSON.parse(
|
|
2566
|
+
response.slice(idx + 16 - 1, response.length - 2)
|
|
2567
|
+
);
|
|
2568
|
+
Object.defineProperty(ref, "name", { value: name });
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
} catch (_) {
|
|
2572
|
+
ref = function () {};
|
|
1525
2573
|
}
|
|
2574
|
+
return ref;
|
|
1526
2575
|
case "Y":
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
2576
|
+
if (
|
|
2577
|
+
2 < value.length &&
|
|
2578
|
+
(ref = response._debugChannel && response._debugChannel.callback)
|
|
2579
|
+
) {
|
|
2580
|
+
if ("@" === value[2])
|
|
2581
|
+
return (
|
|
2582
|
+
(parentObject = value.slice(3)),
|
|
2583
|
+
(key = parseInt(parentObject, 16)),
|
|
2584
|
+
response._chunks.has(key) || ref("P:" + parentObject),
|
|
2585
|
+
getChunk(response, key)
|
|
2586
|
+
);
|
|
2587
|
+
value = value.slice(2);
|
|
2588
|
+
idx = parseInt(value, 16);
|
|
2589
|
+
response._chunks.has(idx) || ref("Q:" + value);
|
|
2590
|
+
ref = getChunk(response, idx);
|
|
2591
|
+
return "fulfilled" === ref.status
|
|
2592
|
+
? ref.value
|
|
2593
|
+
: defineLazyGetter(response, ref, parentObject, key);
|
|
2594
|
+
}
|
|
2595
|
+
Object.defineProperty(parentObject, key, {
|
|
2596
|
+
get: function () {
|
|
2597
|
+
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2598
|
+
},
|
|
2599
|
+
enumerable: !0,
|
|
2600
|
+
configurable: !1
|
|
2601
|
+
});
|
|
2602
|
+
return null;
|
|
1537
2603
|
default:
|
|
1538
2604
|
return (
|
|
1539
|
-
(
|
|
1540
|
-
getOutlinedModel(response,
|
|
2605
|
+
(ref = value.slice(1)),
|
|
2606
|
+
getOutlinedModel(response, ref, parentObject, key, createModel)
|
|
1541
2607
|
);
|
|
1542
2608
|
}
|
|
1543
2609
|
}
|
|
@@ -1558,7 +2624,8 @@
|
|
|
1558
2624
|
temporaryReferences,
|
|
1559
2625
|
findSourceMapURL,
|
|
1560
2626
|
replayConsole,
|
|
1561
|
-
environmentName
|
|
2627
|
+
environmentName,
|
|
2628
|
+
debugChannel
|
|
1562
2629
|
) {
|
|
1563
2630
|
var chunks = new Map();
|
|
1564
2631
|
this._bundlerConfig = bundlerConfig;
|
|
@@ -1570,11 +2637,13 @@
|
|
|
1570
2637
|
this._chunks = chunks;
|
|
1571
2638
|
this._stringDecoder = new TextDecoder();
|
|
1572
2639
|
this._fromJSON = null;
|
|
1573
|
-
this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
|
|
1574
|
-
this._buffer = [];
|
|
1575
2640
|
this._closed = !1;
|
|
1576
2641
|
this._closedReason = null;
|
|
1577
2642
|
this._tempRefs = temporaryReferences;
|
|
2643
|
+
this._timeOrigin = 0;
|
|
2644
|
+
this._pendingInitialRender = null;
|
|
2645
|
+
this._pendingChunks = 0;
|
|
2646
|
+
this._weakResponse = { weak: new WeakRef(this), response: this };
|
|
1578
2647
|
this._debugRootOwner = bundlerConfig =
|
|
1579
2648
|
void 0 === ReactSharedInteralsServer ||
|
|
1580
2649
|
null === ReactSharedInteralsServer.A
|
|
@@ -1587,36 +2656,100 @@
|
|
|
1587
2656
|
(this._debugRootTask = console.createTask(
|
|
1588
2657
|
'"use ' + environmentName.toLowerCase() + '"'
|
|
1589
2658
|
));
|
|
2659
|
+
this._debugStartTime = performance.now();
|
|
1590
2660
|
this._debugFindSourceMapURL = findSourceMapURL;
|
|
2661
|
+
this._debugChannel = debugChannel;
|
|
2662
|
+
this._blockedConsole = null;
|
|
1591
2663
|
this._replayConsole = replayConsole;
|
|
1592
2664
|
this._rootEnvironmentName = environmentName;
|
|
2665
|
+
debugChannel &&
|
|
2666
|
+
(null === debugChannelRegistry
|
|
2667
|
+
? (closeDebugChannel(debugChannel), (this._debugChannel = void 0))
|
|
2668
|
+
: debugChannelRegistry.register(this, debugChannel, this));
|
|
2669
|
+
replayConsole && markAllTracksInOrder();
|
|
1593
2670
|
this._fromJSON = createFromJSONCallback(this);
|
|
1594
2671
|
}
|
|
1595
|
-
function
|
|
1596
|
-
var
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
:
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
2672
|
+
function createStreamState(weakResponse, streamDebugValue) {
|
|
2673
|
+
var streamState = {
|
|
2674
|
+
_rowState: 0,
|
|
2675
|
+
_rowID: 0,
|
|
2676
|
+
_rowTag: 0,
|
|
2677
|
+
_rowLength: 0,
|
|
2678
|
+
_buffer: []
|
|
2679
|
+
};
|
|
2680
|
+
weakResponse = unwrapWeakResponse(weakResponse);
|
|
2681
|
+
var debugValuePromise = Promise.resolve(streamDebugValue);
|
|
2682
|
+
debugValuePromise.status = "fulfilled";
|
|
2683
|
+
debugValuePromise.value = streamDebugValue;
|
|
2684
|
+
streamState._debugInfo = {
|
|
2685
|
+
name: "RSC stream",
|
|
2686
|
+
start: weakResponse._debugStartTime,
|
|
2687
|
+
end: weakResponse._debugStartTime,
|
|
2688
|
+
byteSize: 0,
|
|
2689
|
+
value: debugValuePromise,
|
|
2690
|
+
owner: weakResponse._debugRootOwner,
|
|
2691
|
+
debugStack: weakResponse._debugRootStack,
|
|
2692
|
+
debugTask: weakResponse._debugRootTask
|
|
2693
|
+
};
|
|
2694
|
+
streamState._debugTargetChunkSize = MIN_CHUNK_SIZE;
|
|
2695
|
+
return streamState;
|
|
1604
2696
|
}
|
|
1605
|
-
function
|
|
1606
|
-
var
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
2697
|
+
function incrementChunkDebugInfo(streamState, chunkLength) {
|
|
2698
|
+
var debugInfo = streamState._debugInfo,
|
|
2699
|
+
endTime = performance.now(),
|
|
2700
|
+
previousEndTime = debugInfo.end;
|
|
2701
|
+
chunkLength = debugInfo.byteSize + chunkLength;
|
|
2702
|
+
chunkLength > streamState._debugTargetChunkSize ||
|
|
2703
|
+
endTime > previousEndTime + 10
|
|
2704
|
+
? ((streamState._debugInfo = {
|
|
2705
|
+
name: debugInfo.name,
|
|
2706
|
+
start: debugInfo.start,
|
|
2707
|
+
end: endTime,
|
|
2708
|
+
byteSize: chunkLength,
|
|
2709
|
+
value: debugInfo.value,
|
|
2710
|
+
owner: debugInfo.owner,
|
|
2711
|
+
debugStack: debugInfo.debugStack,
|
|
2712
|
+
debugTask: debugInfo.debugTask
|
|
2713
|
+
}),
|
|
2714
|
+
(streamState._debugTargetChunkSize = chunkLength + MIN_CHUNK_SIZE))
|
|
2715
|
+
: ((debugInfo.end = endTime), (debugInfo.byteSize = chunkLength));
|
|
2716
|
+
}
|
|
2717
|
+
function addDebugInfo(chunk, debugInfo) {
|
|
2718
|
+
var value = resolveLazy(chunk.value);
|
|
2719
|
+
"object" !== typeof value ||
|
|
2720
|
+
null === value ||
|
|
2721
|
+
(!isArrayImpl(value) &&
|
|
2722
|
+
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
2723
|
+
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
2724
|
+
value.$$typeof !== REACT_LAZY_TYPE)
|
|
2725
|
+
? chunk._debugInfo.push.apply(chunk._debugInfo, debugInfo)
|
|
2726
|
+
: isArrayImpl(value._debugInfo)
|
|
2727
|
+
? value._debugInfo.push.apply(value._debugInfo, debugInfo)
|
|
2728
|
+
: Object.defineProperty(value, "_debugInfo", {
|
|
2729
|
+
configurable: !1,
|
|
2730
|
+
enumerable: !1,
|
|
2731
|
+
writable: !0,
|
|
2732
|
+
value: debugInfo
|
|
2733
|
+
});
|
|
2734
|
+
}
|
|
2735
|
+
function resolveChunkDebugInfo(streamState, chunk) {
|
|
2736
|
+
streamState = [{ awaited: streamState._debugInfo }];
|
|
2737
|
+
"pending" === chunk.status || "blocked" === chunk.status
|
|
2738
|
+
? ((streamState = addDebugInfo.bind(null, chunk, streamState)),
|
|
2739
|
+
chunk.then(streamState, streamState))
|
|
2740
|
+
: addDebugInfo(chunk, streamState);
|
|
1611
2741
|
}
|
|
1612
|
-
function resolveBuffer(response, id, buffer) {
|
|
2742
|
+
function resolveBuffer(response, id, buffer, streamState) {
|
|
1613
2743
|
var chunks = response._chunks,
|
|
1614
2744
|
chunk = chunks.get(id);
|
|
1615
2745
|
chunk && "pending" !== chunk.status
|
|
1616
2746
|
? chunk.reason.enqueueValue(buffer)
|
|
1617
|
-
:
|
|
2747
|
+
: (chunk && releasePendingChunk(response, chunk),
|
|
2748
|
+
(response = new ReactPromise("fulfilled", buffer, null)),
|
|
2749
|
+
resolveChunkDebugInfo(streamState, response),
|
|
2750
|
+
chunks.set(id, response));
|
|
1618
2751
|
}
|
|
1619
|
-
function resolveModule(response, id, model) {
|
|
2752
|
+
function resolveModule(response, id, model, streamState) {
|
|
1620
2753
|
var chunks = response._chunks,
|
|
1621
2754
|
chunk = chunks.get(id);
|
|
1622
2755
|
model = JSON.parse(model, response._fromJSON);
|
|
@@ -1626,48 +2759,78 @@
|
|
|
1626
2759
|
);
|
|
1627
2760
|
if ((model = preloadModule(clientReference))) {
|
|
1628
2761
|
if (chunk) {
|
|
2762
|
+
releasePendingChunk(response, chunk);
|
|
1629
2763
|
var blockedChunk = chunk;
|
|
1630
2764
|
blockedChunk.status = "blocked";
|
|
1631
2765
|
} else
|
|
1632
|
-
(blockedChunk = new ReactPromise("blocked", null, null
|
|
2766
|
+
(blockedChunk = new ReactPromise("blocked", null, null)),
|
|
1633
2767
|
chunks.set(id, blockedChunk);
|
|
2768
|
+
resolveChunkDebugInfo(streamState, blockedChunk);
|
|
1634
2769
|
model.then(
|
|
1635
2770
|
function () {
|
|
1636
|
-
return resolveModuleChunk(blockedChunk, clientReference);
|
|
2771
|
+
return resolveModuleChunk(response, blockedChunk, clientReference);
|
|
1637
2772
|
},
|
|
1638
2773
|
function (error) {
|
|
1639
|
-
return triggerErrorOnChunk(blockedChunk, error);
|
|
2774
|
+
return triggerErrorOnChunk(response, blockedChunk, error);
|
|
1640
2775
|
}
|
|
1641
2776
|
);
|
|
1642
2777
|
} else
|
|
1643
2778
|
chunk
|
|
1644
|
-
?
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
);
|
|
2779
|
+
? (resolveChunkDebugInfo(streamState, chunk),
|
|
2780
|
+
resolveModuleChunk(response, chunk, clientReference))
|
|
2781
|
+
: ((chunk = new ReactPromise(
|
|
2782
|
+
"resolved_module",
|
|
2783
|
+
clientReference,
|
|
2784
|
+
null
|
|
2785
|
+
)),
|
|
2786
|
+
resolveChunkDebugInfo(streamState, chunk),
|
|
2787
|
+
chunks.set(id, chunk));
|
|
1654
2788
|
}
|
|
1655
|
-
function resolveStream(response, id, stream, controller) {
|
|
2789
|
+
function resolveStream(response, id, stream, controller, streamState) {
|
|
1656
2790
|
var chunks = response._chunks,
|
|
1657
2791
|
chunk = chunks.get(id);
|
|
1658
|
-
chunk
|
|
1659
|
-
|
|
1660
|
-
((
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
(chunk
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
2792
|
+
if (chunk) {
|
|
2793
|
+
if (
|
|
2794
|
+
(resolveChunkDebugInfo(streamState, chunk),
|
|
2795
|
+
"pending" === chunk.status)
|
|
2796
|
+
) {
|
|
2797
|
+
releasePendingChunk(response, chunk);
|
|
2798
|
+
id = chunk.value;
|
|
2799
|
+
if (null != chunk._debugChunk) {
|
|
2800
|
+
streamState = initializingHandler;
|
|
2801
|
+
chunks = initializingChunk;
|
|
2802
|
+
initializingHandler = null;
|
|
2803
|
+
chunk.status = "blocked";
|
|
2804
|
+
chunk.value = null;
|
|
2805
|
+
chunk.reason = null;
|
|
2806
|
+
initializingChunk = chunk;
|
|
2807
|
+
try {
|
|
2808
|
+
if (
|
|
2809
|
+
(initializeDebugChunk(response, chunk),
|
|
2810
|
+
null !== initializingHandler &&
|
|
2811
|
+
!initializingHandler.errored &&
|
|
2812
|
+
0 < initializingHandler.deps)
|
|
2813
|
+
) {
|
|
2814
|
+
initializingHandler.value = stream;
|
|
2815
|
+
initializingHandler.reason = controller;
|
|
2816
|
+
initializingHandler.chunk = chunk;
|
|
2817
|
+
return;
|
|
2818
|
+
}
|
|
2819
|
+
} finally {
|
|
2820
|
+
(initializingHandler = streamState), (initializingChunk = chunks);
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
chunk.status = "fulfilled";
|
|
2824
|
+
chunk.value = stream;
|
|
2825
|
+
chunk.reason = controller;
|
|
2826
|
+
null !== id && wakeChunk(id, chunk.value, chunk);
|
|
2827
|
+
}
|
|
2828
|
+
} else
|
|
2829
|
+
(response = new ReactPromise("fulfilled", stream, controller)),
|
|
2830
|
+
resolveChunkDebugInfo(streamState, response),
|
|
2831
|
+
chunks.set(id, response);
|
|
1669
2832
|
}
|
|
1670
|
-
function startReadableStream(response, id, type) {
|
|
2833
|
+
function startReadableStream(response, id, type, streamState) {
|
|
1671
2834
|
var controller = null;
|
|
1672
2835
|
type = new ReadableStream({
|
|
1673
2836
|
type: type,
|
|
@@ -1676,73 +2839,75 @@
|
|
|
1676
2839
|
}
|
|
1677
2840
|
});
|
|
1678
2841
|
var previousBlockedChunk = null;
|
|
1679
|
-
resolveStream(
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
2842
|
+
resolveStream(
|
|
2843
|
+
response,
|
|
2844
|
+
id,
|
|
2845
|
+
type,
|
|
2846
|
+
{
|
|
2847
|
+
enqueueValue: function (value) {
|
|
2848
|
+
null === previousBlockedChunk
|
|
2849
|
+
? controller.enqueue(value)
|
|
2850
|
+
: previousBlockedChunk.then(function () {
|
|
2851
|
+
controller.enqueue(value);
|
|
2852
|
+
});
|
|
2853
|
+
},
|
|
2854
|
+
enqueueModel: function (json) {
|
|
2855
|
+
if (null === previousBlockedChunk) {
|
|
2856
|
+
var chunk = createResolvedModelChunk(response, json);
|
|
2857
|
+
initializeModelChunk(chunk);
|
|
2858
|
+
"fulfilled" === chunk.status
|
|
2859
|
+
? controller.enqueue(chunk.value)
|
|
2860
|
+
: (chunk.then(
|
|
2861
|
+
function (v) {
|
|
2862
|
+
return controller.enqueue(v);
|
|
2863
|
+
},
|
|
2864
|
+
function (e) {
|
|
2865
|
+
return controller.error(e);
|
|
2866
|
+
}
|
|
2867
|
+
),
|
|
2868
|
+
(previousBlockedChunk = chunk));
|
|
2869
|
+
} else {
|
|
2870
|
+
chunk = previousBlockedChunk;
|
|
2871
|
+
var _chunk3 = createPendingChunk(response);
|
|
2872
|
+
_chunk3.then(
|
|
2873
|
+
function (v) {
|
|
2874
|
+
return controller.enqueue(v);
|
|
2875
|
+
},
|
|
2876
|
+
function (e) {
|
|
2877
|
+
return controller.error(e);
|
|
2878
|
+
}
|
|
2879
|
+
);
|
|
2880
|
+
previousBlockedChunk = _chunk3;
|
|
2881
|
+
chunk.then(function () {
|
|
2882
|
+
previousBlockedChunk === _chunk3 &&
|
|
2883
|
+
(previousBlockedChunk = null);
|
|
2884
|
+
resolveModelChunk(response, _chunk3, json);
|
|
1685
2885
|
});
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
null
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
} else {
|
|
1708
|
-
chunk = previousBlockedChunk;
|
|
1709
|
-
var _chunk3 = createPendingChunk(response);
|
|
1710
|
-
_chunk3.then(
|
|
1711
|
-
function (v) {
|
|
1712
|
-
return controller.enqueue(v);
|
|
1713
|
-
},
|
|
1714
|
-
function (e) {
|
|
1715
|
-
return controller.error(e);
|
|
1716
|
-
}
|
|
1717
|
-
);
|
|
1718
|
-
previousBlockedChunk = _chunk3;
|
|
1719
|
-
chunk.then(function () {
|
|
1720
|
-
previousBlockedChunk === _chunk3 && (previousBlockedChunk = null);
|
|
1721
|
-
resolveModelChunk(_chunk3, json);
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
},
|
|
1725
|
-
close: function () {
|
|
1726
|
-
if (null === previousBlockedChunk) controller.close();
|
|
1727
|
-
else {
|
|
1728
|
-
var blockedChunk = previousBlockedChunk;
|
|
1729
|
-
previousBlockedChunk = null;
|
|
1730
|
-
blockedChunk.then(function () {
|
|
1731
|
-
return controller.close();
|
|
1732
|
-
});
|
|
2886
|
+
}
|
|
2887
|
+
},
|
|
2888
|
+
close: function () {
|
|
2889
|
+
if (null === previousBlockedChunk) controller.close();
|
|
2890
|
+
else {
|
|
2891
|
+
var blockedChunk = previousBlockedChunk;
|
|
2892
|
+
previousBlockedChunk = null;
|
|
2893
|
+
blockedChunk.then(function () {
|
|
2894
|
+
return controller.close();
|
|
2895
|
+
});
|
|
2896
|
+
}
|
|
2897
|
+
},
|
|
2898
|
+
error: function (error) {
|
|
2899
|
+
if (null === previousBlockedChunk) controller.error(error);
|
|
2900
|
+
else {
|
|
2901
|
+
var blockedChunk = previousBlockedChunk;
|
|
2902
|
+
previousBlockedChunk = null;
|
|
2903
|
+
blockedChunk.then(function () {
|
|
2904
|
+
return controller.error(error);
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
1733
2907
|
}
|
|
1734
2908
|
},
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
else {
|
|
1738
|
-
var blockedChunk = previousBlockedChunk;
|
|
1739
|
-
previousBlockedChunk = null;
|
|
1740
|
-
blockedChunk.then(function () {
|
|
1741
|
-
return controller.error(error);
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
});
|
|
2909
|
+
streamState
|
|
2910
|
+
);
|
|
1746
2911
|
}
|
|
1747
2912
|
function asyncIterator() {
|
|
1748
2913
|
return this;
|
|
@@ -1752,30 +2917,30 @@
|
|
|
1752
2917
|
next[ASYNC_ITERATOR] = asyncIterator;
|
|
1753
2918
|
return next;
|
|
1754
2919
|
}
|
|
1755
|
-
function startAsyncIterable(response, id, iterator) {
|
|
2920
|
+
function startAsyncIterable(response, id, iterator, streamState) {
|
|
1756
2921
|
var buffer = [],
|
|
1757
2922
|
closed = !1,
|
|
1758
2923
|
nextWriteIndex = 0,
|
|
1759
|
-
iterable =
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
2924
|
+
iterable = {};
|
|
2925
|
+
iterable[ASYNC_ITERATOR] = function () {
|
|
2926
|
+
var nextReadIndex = 0;
|
|
2927
|
+
return createIterator(function (arg) {
|
|
2928
|
+
if (void 0 !== arg)
|
|
2929
|
+
throw Error(
|
|
2930
|
+
"Values cannot be passed to next() of AsyncIterables passed to Client Components."
|
|
2931
|
+
);
|
|
2932
|
+
if (nextReadIndex === buffer.length) {
|
|
2933
|
+
if (closed)
|
|
2934
|
+
return new ReactPromise(
|
|
2935
|
+
"fulfilled",
|
|
2936
|
+
{ done: !0, value: void 0 },
|
|
2937
|
+
null
|
|
1765
2938
|
);
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
"fulfilled",
|
|
1770
|
-
{ done: !0, value: void 0 },
|
|
1771
|
-
null,
|
|
1772
|
-
response
|
|
1773
|
-
);
|
|
1774
|
-
buffer[nextReadIndex] = createPendingChunk(response);
|
|
1775
|
-
}
|
|
1776
|
-
return buffer[nextReadIndex++];
|
|
1777
|
-
});
|
|
2939
|
+
buffer[nextReadIndex] = createPendingChunk(response);
|
|
2940
|
+
}
|
|
2941
|
+
return buffer[nextReadIndex++];
|
|
1778
2942
|
});
|
|
2943
|
+
};
|
|
1779
2944
|
resolveStream(
|
|
1780
2945
|
response,
|
|
1781
2946
|
id,
|
|
@@ -1786,8 +2951,7 @@
|
|
|
1786
2951
|
buffer[nextWriteIndex] = new ReactPromise(
|
|
1787
2952
|
"fulfilled",
|
|
1788
2953
|
{ done: !1, value: value },
|
|
1789
|
-
null
|
|
1790
|
-
response
|
|
2954
|
+
null
|
|
1791
2955
|
);
|
|
1792
2956
|
else {
|
|
1793
2957
|
var chunk = buffer[nextWriteIndex],
|
|
@@ -1811,7 +2975,12 @@
|
|
|
1811
2975
|
value,
|
|
1812
2976
|
!1
|
|
1813
2977
|
))
|
|
1814
|
-
: resolveIteratorResultChunk(
|
|
2978
|
+
: resolveIteratorResultChunk(
|
|
2979
|
+
response,
|
|
2980
|
+
buffer[nextWriteIndex],
|
|
2981
|
+
value,
|
|
2982
|
+
!1
|
|
2983
|
+
);
|
|
1815
2984
|
nextWriteIndex++;
|
|
1816
2985
|
},
|
|
1817
2986
|
close: function (value) {
|
|
@@ -1822,9 +2991,15 @@
|
|
|
1822
2991
|
value,
|
|
1823
2992
|
!0
|
|
1824
2993
|
))
|
|
1825
|
-
: resolveIteratorResultChunk(
|
|
2994
|
+
: resolveIteratorResultChunk(
|
|
2995
|
+
response,
|
|
2996
|
+
buffer[nextWriteIndex],
|
|
2997
|
+
value,
|
|
2998
|
+
!0
|
|
2999
|
+
);
|
|
1826
3000
|
for (nextWriteIndex++; nextWriteIndex < buffer.length; )
|
|
1827
3001
|
resolveIteratorResultChunk(
|
|
3002
|
+
response,
|
|
1828
3003
|
buffer[nextWriteIndex++],
|
|
1829
3004
|
'"$undefined"',
|
|
1830
3005
|
!0
|
|
@@ -1838,78 +3013,45 @@
|
|
|
1838
3013
|
nextWriteIndex < buffer.length;
|
|
1839
3014
|
|
|
1840
3015
|
)
|
|
1841
|
-
triggerErrorOnChunk(buffer[nextWriteIndex++], error);
|
|
3016
|
+
triggerErrorOnChunk(response, buffer[nextWriteIndex++], error);
|
|
1842
3017
|
}
|
|
1843
|
-
}
|
|
3018
|
+
},
|
|
3019
|
+
streamState
|
|
1844
3020
|
);
|
|
1845
3021
|
}
|
|
1846
|
-
function stopStream(response, id, row) {
|
|
1847
|
-
(response = response._chunks.get(id)) &&
|
|
1848
|
-
"fulfilled" === response.status &&
|
|
1849
|
-
response.reason.close("" === row ? '"$undefined"' : row);
|
|
1850
|
-
}
|
|
1851
3022
|
function resolveErrorDev(response, errorInfo) {
|
|
1852
3023
|
var name = errorInfo.name,
|
|
1853
3024
|
env = errorInfo.env;
|
|
1854
|
-
|
|
3025
|
+
var error = buildFakeCallStack(
|
|
1855
3026
|
response,
|
|
1856
3027
|
errorInfo.stack,
|
|
1857
3028
|
env,
|
|
3029
|
+
!1,
|
|
1858
3030
|
Error.bind(
|
|
1859
3031
|
null,
|
|
1860
3032
|
errorInfo.message ||
|
|
1861
3033
|
"An error occurred in the Server Components render but no message was provided"
|
|
1862
3034
|
)
|
|
1863
3035
|
);
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
code = response[0];
|
|
1884
|
-
var as = response[1];
|
|
1885
|
-
3 === response.length
|
|
1886
|
-
? model.L(code, as, response[2])
|
|
1887
|
-
: model.L(code, as);
|
|
1888
|
-
break;
|
|
1889
|
-
case "m":
|
|
1890
|
-
"string" === typeof response
|
|
1891
|
-
? model.m(response)
|
|
1892
|
-
: model.m(response[0], response[1]);
|
|
1893
|
-
break;
|
|
1894
|
-
case "X":
|
|
1895
|
-
"string" === typeof response
|
|
1896
|
-
? model.X(response)
|
|
1897
|
-
: model.X(response[0], response[1]);
|
|
1898
|
-
break;
|
|
1899
|
-
case "S":
|
|
1900
|
-
"string" === typeof response
|
|
1901
|
-
? model.S(response)
|
|
1902
|
-
: model.S(
|
|
1903
|
-
response[0],
|
|
1904
|
-
0 === response[1] ? void 0 : response[1],
|
|
1905
|
-
3 === response.length ? response[2] : void 0
|
|
1906
|
-
);
|
|
1907
|
-
break;
|
|
1908
|
-
case "M":
|
|
1909
|
-
"string" === typeof response
|
|
1910
|
-
? model.M(response)
|
|
1911
|
-
: model.M(response[0], response[1]);
|
|
1912
|
-
}
|
|
3036
|
+
var ownerTask = null;
|
|
3037
|
+
null != errorInfo.owner &&
|
|
3038
|
+
((errorInfo = errorInfo.owner.slice(1)),
|
|
3039
|
+
(errorInfo = getOutlinedModel(
|
|
3040
|
+
response,
|
|
3041
|
+
errorInfo,
|
|
3042
|
+
{},
|
|
3043
|
+
"",
|
|
3044
|
+
createModel
|
|
3045
|
+
)),
|
|
3046
|
+
null !== errorInfo &&
|
|
3047
|
+
(ownerTask = initializeFakeTask(response, errorInfo)));
|
|
3048
|
+
null === ownerTask
|
|
3049
|
+
? ((response = getRootTask(response, env)),
|
|
3050
|
+
(error = null != response ? response.run(error) : error()))
|
|
3051
|
+
: (error = ownerTask.run(error));
|
|
3052
|
+
error.name = name;
|
|
3053
|
+
error.environmentName = env;
|
|
3054
|
+
return error;
|
|
1913
3055
|
}
|
|
1914
3056
|
function createFakeFunction(
|
|
1915
3057
|
name,
|
|
@@ -1917,41 +3059,90 @@
|
|
|
1917
3059
|
sourceMap,
|
|
1918
3060
|
line,
|
|
1919
3061
|
col,
|
|
3062
|
+
enclosingLine,
|
|
3063
|
+
enclosingCol,
|
|
1920
3064
|
environmentName
|
|
1921
3065
|
) {
|
|
1922
3066
|
name || (name = "<anonymous>");
|
|
1923
3067
|
var encodedName = JSON.stringify(name);
|
|
1924
|
-
1
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
3068
|
+
1 > enclosingLine ? (enclosingLine = 0) : enclosingLine--;
|
|
3069
|
+
1 > enclosingCol ? (enclosingCol = 0) : enclosingCol--;
|
|
3070
|
+
1 > line ? (line = 0) : line--;
|
|
3071
|
+
1 > col ? (col = 0) : col--;
|
|
3072
|
+
if (
|
|
3073
|
+
line < enclosingLine ||
|
|
3074
|
+
(line === enclosingLine && col < enclosingCol)
|
|
3075
|
+
)
|
|
3076
|
+
enclosingCol = enclosingLine = 0;
|
|
3077
|
+
1 > line
|
|
3078
|
+
? ((line = encodedName.length + 3),
|
|
3079
|
+
(enclosingCol -= line),
|
|
3080
|
+
0 > enclosingCol && (enclosingCol = 0),
|
|
3081
|
+
(col = col - enclosingCol - line - 3),
|
|
3082
|
+
0 > col && (col = 0),
|
|
3083
|
+
(encodedName =
|
|
1935
3084
|
"({" +
|
|
1936
3085
|
encodedName +
|
|
1937
|
-
":
|
|
1938
|
-
" ".repeat(
|
|
1939
|
-
"_
|
|
3086
|
+
":" +
|
|
3087
|
+
" ".repeat(enclosingCol) +
|
|
3088
|
+
"_=>" +
|
|
3089
|
+
" ".repeat(col) +
|
|
3090
|
+
"_()})"))
|
|
3091
|
+
: 1 > enclosingLine
|
|
3092
|
+
? ((enclosingCol -= encodedName.length + 3),
|
|
3093
|
+
0 > enclosingCol && (enclosingCol = 0),
|
|
3094
|
+
(encodedName =
|
|
3095
|
+
"({" +
|
|
3096
|
+
encodedName +
|
|
3097
|
+
":" +
|
|
3098
|
+
" ".repeat(enclosingCol) +
|
|
3099
|
+
"_=>" +
|
|
3100
|
+
"\n".repeat(line - enclosingLine) +
|
|
3101
|
+
" ".repeat(col) +
|
|
3102
|
+
"_()})"))
|
|
3103
|
+
: enclosingLine === line
|
|
3104
|
+
? ((col = col - enclosingCol - 3),
|
|
3105
|
+
0 > col && (col = 0),
|
|
3106
|
+
(encodedName =
|
|
3107
|
+
"\n".repeat(enclosingLine - 1) +
|
|
3108
|
+
"({" +
|
|
3109
|
+
encodedName +
|
|
3110
|
+
":\n" +
|
|
3111
|
+
" ".repeat(enclosingCol) +
|
|
3112
|
+
"_=>" +
|
|
3113
|
+
" ".repeat(col) +
|
|
3114
|
+
"_()})"))
|
|
3115
|
+
: (encodedName =
|
|
3116
|
+
"\n".repeat(enclosingLine - 1) +
|
|
3117
|
+
"({" +
|
|
3118
|
+
encodedName +
|
|
3119
|
+
":\n" +
|
|
3120
|
+
" ".repeat(enclosingCol) +
|
|
3121
|
+
"_=>" +
|
|
3122
|
+
"\n".repeat(line - enclosingLine) +
|
|
3123
|
+
" ".repeat(col) +
|
|
3124
|
+
"_()})");
|
|
3125
|
+
encodedName =
|
|
3126
|
+
1 > enclosingLine
|
|
3127
|
+
? encodedName +
|
|
3128
|
+
"\n/* This module was rendered by a Server Component. Turn on Source Maps to see the server source. */"
|
|
3129
|
+
: "/* This module was rendered by a Server Component. Turn on Source Maps to see the server source. */" +
|
|
3130
|
+
encodedName;
|
|
1940
3131
|
filename.startsWith("/") && (filename = "file://" + filename);
|
|
1941
3132
|
sourceMap
|
|
1942
|
-
? ((
|
|
1943
|
-
"\n//# sourceURL=
|
|
3133
|
+
? ((encodedName +=
|
|
3134
|
+
"\n//# sourceURL=about://React/" +
|
|
1944
3135
|
encodeURIComponent(environmentName) +
|
|
1945
3136
|
"/" +
|
|
1946
3137
|
encodeURI(filename) +
|
|
1947
3138
|
"?" +
|
|
1948
3139
|
fakeFunctionIdx++),
|
|
1949
|
-
(
|
|
1950
|
-
: (
|
|
1951
|
-
?
|
|
1952
|
-
:
|
|
3140
|
+
(encodedName += "\n//# sourceMappingURL=" + sourceMap))
|
|
3141
|
+
: (encodedName = filename
|
|
3142
|
+
? encodedName + ("\n//# sourceURL=" + encodeURI(filename))
|
|
3143
|
+
: encodedName + "\n//# sourceURL=<anonymous>");
|
|
1953
3144
|
try {
|
|
1954
|
-
var fn = (0, eval)(
|
|
3145
|
+
var fn = (0, eval)(encodedName)[name];
|
|
1955
3146
|
} catch (x) {
|
|
1956
3147
|
fn = function (_) {
|
|
1957
3148
|
return _();
|
|
@@ -1959,16 +3150,28 @@
|
|
|
1959
3150
|
}
|
|
1960
3151
|
return fn;
|
|
1961
3152
|
}
|
|
1962
|
-
function buildFakeCallStack(
|
|
3153
|
+
function buildFakeCallStack(
|
|
3154
|
+
response,
|
|
3155
|
+
stack,
|
|
3156
|
+
environmentName,
|
|
3157
|
+
useEnclosingLine,
|
|
3158
|
+
innerCall
|
|
3159
|
+
) {
|
|
1963
3160
|
for (var i = 0; i < stack.length; i++) {
|
|
1964
3161
|
var frame = stack[i],
|
|
1965
|
-
frameKey =
|
|
3162
|
+
frameKey =
|
|
3163
|
+
frame.join("-") +
|
|
3164
|
+
"-" +
|
|
3165
|
+
environmentName +
|
|
3166
|
+
(useEnclosingLine ? "-e" : "-n"),
|
|
1966
3167
|
fn = fakeFunctionCache.get(frameKey);
|
|
1967
3168
|
if (void 0 === fn) {
|
|
1968
3169
|
fn = frame[0];
|
|
1969
3170
|
var filename = frame[1],
|
|
1970
|
-
line = frame[2]
|
|
1971
|
-
|
|
3171
|
+
line = frame[2],
|
|
3172
|
+
col = frame[3],
|
|
3173
|
+
enclosingLine = frame[4];
|
|
3174
|
+
frame = frame[5];
|
|
1972
3175
|
var findSourceMapURL = response._debugFindSourceMapURL;
|
|
1973
3176
|
findSourceMapURL = findSourceMapURL
|
|
1974
3177
|
? findSourceMapURL(filename, environmentName)
|
|
@@ -1978,7 +3181,9 @@
|
|
|
1978
3181
|
filename,
|
|
1979
3182
|
findSourceMapURL,
|
|
1980
3183
|
line,
|
|
1981
|
-
|
|
3184
|
+
col,
|
|
3185
|
+
useEnclosingLine ? line : enclosingLine,
|
|
3186
|
+
useEnclosingLine ? col : frame,
|
|
1982
3187
|
environmentName
|
|
1983
3188
|
);
|
|
1984
3189
|
fakeFunctionCache.set(frameKey, fn);
|
|
@@ -1999,75 +3204,79 @@
|
|
|
1999
3204
|
: rootTask
|
|
2000
3205
|
: null;
|
|
2001
3206
|
}
|
|
2002
|
-
function initializeFakeTask(response, debugInfo
|
|
3207
|
+
function initializeFakeTask(response, debugInfo) {
|
|
2003
3208
|
if (!supportsCreateTask || null == debugInfo.stack) return null;
|
|
2004
|
-
var
|
|
3209
|
+
var cachedEntry = debugInfo.debugTask;
|
|
3210
|
+
if (void 0 !== cachedEntry) return cachedEntry;
|
|
3211
|
+
var useEnclosingLine = void 0 === debugInfo.key,
|
|
3212
|
+
stack = debugInfo.stack,
|
|
2005
3213
|
env =
|
|
2006
3214
|
null == debugInfo.env ? response._rootEnvironmentName : debugInfo.env;
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
: initializeFakeTask(response, debugInfo.owner, env)),
|
|
2013
|
-
buildFakeTask(
|
|
2014
|
-
response,
|
|
2015
|
-
debugInfo,
|
|
2016
|
-
stack,
|
|
2017
|
-
'"use ' + childEnvironmentName.toLowerCase() + '"',
|
|
2018
|
-
env
|
|
2019
|
-
)
|
|
2020
|
-
);
|
|
2021
|
-
childEnvironmentName = debugInfo.debugTask;
|
|
2022
|
-
if (void 0 !== childEnvironmentName) return childEnvironmentName;
|
|
2023
|
-
childEnvironmentName =
|
|
3215
|
+
cachedEntry =
|
|
3216
|
+
null == debugInfo.owner || null == debugInfo.owner.env
|
|
3217
|
+
? response._rootEnvironmentName
|
|
3218
|
+
: debugInfo.owner.env;
|
|
3219
|
+
var ownerTask =
|
|
2024
3220
|
null == debugInfo.owner
|
|
2025
3221
|
? null
|
|
2026
|
-
: initializeFakeTask(response, debugInfo.owner
|
|
2027
|
-
|
|
3222
|
+
: initializeFakeTask(response, debugInfo.owner);
|
|
3223
|
+
env =
|
|
3224
|
+
env !== cachedEntry
|
|
3225
|
+
? '"use ' + env.toLowerCase() + '"'
|
|
3226
|
+
: void 0 !== debugInfo.key
|
|
3227
|
+
? "<" + (debugInfo.name || "...") + ">"
|
|
3228
|
+
: void 0 !== debugInfo.name
|
|
3229
|
+
? debugInfo.name || "unknown"
|
|
3230
|
+
: "await " + (debugInfo.awaited.name || "unknown");
|
|
3231
|
+
env = console.createTask.bind(console, env);
|
|
3232
|
+
useEnclosingLine = buildFakeCallStack(
|
|
2028
3233
|
response,
|
|
2029
|
-
childEnvironmentName,
|
|
2030
3234
|
stack,
|
|
2031
|
-
|
|
3235
|
+
cachedEntry,
|
|
3236
|
+
useEnclosingLine,
|
|
2032
3237
|
env
|
|
2033
|
-
)
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
3238
|
+
);
|
|
3239
|
+
null === ownerTask
|
|
3240
|
+
? ((response = getRootTask(response, cachedEntry)),
|
|
3241
|
+
(response =
|
|
3242
|
+
null != response
|
|
3243
|
+
? response.run(useEnclosingLine)
|
|
3244
|
+
: useEnclosingLine()))
|
|
3245
|
+
: (response = ownerTask.run(useEnclosingLine));
|
|
3246
|
+
return (debugInfo.debugTask = response);
|
|
2042
3247
|
}
|
|
2043
3248
|
function fakeJSXCallSite() {
|
|
2044
3249
|
return Error("react-stack-top-frame");
|
|
2045
3250
|
}
|
|
2046
3251
|
function initializeFakeStack(response, debugInfo) {
|
|
2047
|
-
void 0 === debugInfo.debugStack
|
|
2048
|
-
|
|
3252
|
+
if (void 0 === debugInfo.debugStack) {
|
|
3253
|
+
null != debugInfo.stack &&
|
|
2049
3254
|
(debugInfo.debugStack = createFakeJSXCallStackInDEV(
|
|
2050
3255
|
response,
|
|
2051
3256
|
debugInfo.stack,
|
|
2052
3257
|
null == debugInfo.env ? "" : debugInfo.env
|
|
2053
|
-
))
|
|
2054
|
-
|
|
2055
|
-
|
|
3258
|
+
));
|
|
3259
|
+
var owner = debugInfo.owner;
|
|
3260
|
+
null != owner &&
|
|
3261
|
+
(initializeFakeStack(response, owner),
|
|
3262
|
+
void 0 === owner.debugLocation &&
|
|
3263
|
+
null != debugInfo.debugStack &&
|
|
3264
|
+
(owner.debugLocation = debugInfo.debugStack));
|
|
3265
|
+
}
|
|
2056
3266
|
}
|
|
2057
|
-
function
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
(response._debugInfo || (response._debugInfo = [])).push(debugInfo);
|
|
3267
|
+
function initializeDebugInfo(response, debugInfo) {
|
|
3268
|
+
void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
|
|
3269
|
+
if (null == debugInfo.owner && null != response._debugRootOwner) {
|
|
3270
|
+
var _componentInfoOrAsyncInfo = debugInfo;
|
|
3271
|
+
_componentInfoOrAsyncInfo.owner = response._debugRootOwner;
|
|
3272
|
+
_componentInfoOrAsyncInfo.stack = null;
|
|
3273
|
+
_componentInfoOrAsyncInfo.debugStack = response._debugRootStack;
|
|
3274
|
+
_componentInfoOrAsyncInfo.debugTask = response._debugRootTask;
|
|
3275
|
+
} else
|
|
3276
|
+
void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo);
|
|
3277
|
+
"number" === typeof debugInfo.time &&
|
|
3278
|
+
(debugInfo = { time: debugInfo.time + response._timeOrigin });
|
|
3279
|
+
return debugInfo;
|
|
2071
3280
|
}
|
|
2072
3281
|
function getCurrentStackInDEV() {
|
|
2073
3282
|
var owner = currentOwnerInDEV;
|
|
@@ -2124,24 +3333,83 @@
|
|
|
2124
3333
|
}
|
|
2125
3334
|
return JSCompiler_inline_result$jscomp$0;
|
|
2126
3335
|
}
|
|
2127
|
-
function resolveConsoleEntry(response,
|
|
3336
|
+
function resolveConsoleEntry(response, json) {
|
|
2128
3337
|
if (response._replayConsole) {
|
|
2129
|
-
var
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
3338
|
+
var blockedChunk = response._blockedConsole;
|
|
3339
|
+
if (null == blockedChunk)
|
|
3340
|
+
(blockedChunk = createResolvedModelChunk(response, json)),
|
|
3341
|
+
initializeModelChunk(blockedChunk),
|
|
3342
|
+
"fulfilled" === blockedChunk.status
|
|
3343
|
+
? replayConsoleWithCallStackInDEV(response, blockedChunk.value)
|
|
3344
|
+
: (blockedChunk.then(
|
|
3345
|
+
function (v) {
|
|
3346
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
|
3347
|
+
},
|
|
3348
|
+
function () {}
|
|
3349
|
+
),
|
|
3350
|
+
(response._blockedConsole = blockedChunk));
|
|
3351
|
+
else {
|
|
3352
|
+
var _chunk4 = createPendingChunk(response);
|
|
3353
|
+
_chunk4.then(
|
|
3354
|
+
function (v) {
|
|
3355
|
+
return replayConsoleWithCallStackInDEV(response, v);
|
|
3356
|
+
},
|
|
3357
|
+
function () {}
|
|
3358
|
+
);
|
|
3359
|
+
response._blockedConsole = _chunk4;
|
|
3360
|
+
var unblock = function () {
|
|
3361
|
+
response._blockedConsole === _chunk4 &&
|
|
3362
|
+
(response._blockedConsole = null);
|
|
3363
|
+
resolveModelChunk(response, _chunk4, json);
|
|
3364
|
+
};
|
|
3365
|
+
blockedChunk.then(unblock, unblock);
|
|
3366
|
+
}
|
|
2143
3367
|
}
|
|
2144
3368
|
}
|
|
3369
|
+
function initializeIOInfo(response, ioInfo) {
|
|
3370
|
+
void 0 !== ioInfo.stack &&
|
|
3371
|
+
(initializeFakeTask(response, ioInfo),
|
|
3372
|
+
initializeFakeStack(response, ioInfo));
|
|
3373
|
+
ioInfo.start += response._timeOrigin;
|
|
3374
|
+
ioInfo.end += response._timeOrigin;
|
|
3375
|
+
if (response._replayConsole) {
|
|
3376
|
+
response = response._rootEnvironmentName;
|
|
3377
|
+
var promise = ioInfo.value;
|
|
3378
|
+
if (promise)
|
|
3379
|
+
switch (promise.status) {
|
|
3380
|
+
case "fulfilled":
|
|
3381
|
+
logIOInfo(ioInfo, response, promise.value);
|
|
3382
|
+
break;
|
|
3383
|
+
case "rejected":
|
|
3384
|
+
logIOInfoErrored(ioInfo, response, promise.reason);
|
|
3385
|
+
break;
|
|
3386
|
+
default:
|
|
3387
|
+
promise.then(
|
|
3388
|
+
logIOInfo.bind(null, ioInfo, response),
|
|
3389
|
+
logIOInfoErrored.bind(null, ioInfo, response)
|
|
3390
|
+
);
|
|
3391
|
+
}
|
|
3392
|
+
else logIOInfo(ioInfo, response, void 0);
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
function resolveIOInfo(response, id, model) {
|
|
3396
|
+
var chunks = response._chunks,
|
|
3397
|
+
chunk = chunks.get(id);
|
|
3398
|
+
chunk
|
|
3399
|
+
? (resolveModelChunk(response, chunk, model),
|
|
3400
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk))
|
|
3401
|
+
: ((chunk = createResolvedModelChunk(response, model)),
|
|
3402
|
+
chunks.set(id, chunk),
|
|
3403
|
+
initializeModelChunk(chunk));
|
|
3404
|
+
"fulfilled" === chunk.status
|
|
3405
|
+
? initializeIOInfo(response, chunk.value)
|
|
3406
|
+
: chunk.then(
|
|
3407
|
+
function (v) {
|
|
3408
|
+
initializeIOInfo(response, v);
|
|
3409
|
+
},
|
|
3410
|
+
function () {}
|
|
3411
|
+
);
|
|
3412
|
+
}
|
|
2145
3413
|
function mergeBuffer(buffer, lastChunk) {
|
|
2146
3414
|
for (
|
|
2147
3415
|
var l = buffer.length, byteLength = lastChunk.length, i = 0;
|
|
@@ -2150,8 +3418,8 @@
|
|
|
2150
3418
|
)
|
|
2151
3419
|
byteLength += buffer[i].byteLength;
|
|
2152
3420
|
byteLength = new Uint8Array(byteLength);
|
|
2153
|
-
for (var
|
|
2154
|
-
var chunk = buffer[
|
|
3421
|
+
for (var _i3 = (i = 0); _i3 < l; _i3++) {
|
|
3422
|
+
var chunk = buffer[_i3];
|
|
2155
3423
|
byteLength.set(chunk, i);
|
|
2156
3424
|
i += chunk.byteLength;
|
|
2157
3425
|
}
|
|
@@ -2164,7 +3432,8 @@
|
|
|
2164
3432
|
buffer,
|
|
2165
3433
|
lastChunk,
|
|
2166
3434
|
constructor,
|
|
2167
|
-
bytesPerElement
|
|
3435
|
+
bytesPerElement,
|
|
3436
|
+
streamState
|
|
2168
3437
|
) {
|
|
2169
3438
|
buffer =
|
|
2170
3439
|
0 === buffer.length && 0 === lastChunk.byteOffset % bytesPerElement
|
|
@@ -2175,52 +3444,684 @@
|
|
|
2175
3444
|
buffer.byteOffset,
|
|
2176
3445
|
buffer.byteLength / bytesPerElement
|
|
2177
3446
|
);
|
|
2178
|
-
resolveBuffer(response, id, constructor);
|
|
3447
|
+
resolveBuffer(response, id, constructor, streamState);
|
|
3448
|
+
}
|
|
3449
|
+
function flushComponentPerformance(
|
|
3450
|
+
response$jscomp$0,
|
|
3451
|
+
root,
|
|
3452
|
+
trackIdx$jscomp$6,
|
|
3453
|
+
trackTime,
|
|
3454
|
+
parentEndTime
|
|
3455
|
+
) {
|
|
3456
|
+
if (!isArrayImpl(root._children)) {
|
|
3457
|
+
var previousResult = root._children,
|
|
3458
|
+
previousEndTime = previousResult.endTime;
|
|
3459
|
+
if (
|
|
3460
|
+
-Infinity < parentEndTime &&
|
|
3461
|
+
parentEndTime < previousEndTime &&
|
|
3462
|
+
null !== previousResult.component
|
|
3463
|
+
) {
|
|
3464
|
+
var componentInfo = previousResult.component,
|
|
3465
|
+
trackIdx = trackIdx$jscomp$6,
|
|
3466
|
+
startTime = parentEndTime;
|
|
3467
|
+
if (supportsUserTiming && 0 <= previousEndTime && 10 > trackIdx) {
|
|
3468
|
+
var color =
|
|
3469
|
+
componentInfo.env === response$jscomp$0._rootEnvironmentName
|
|
3470
|
+
? "primary-light"
|
|
3471
|
+
: "secondary-light",
|
|
3472
|
+
entryName = componentInfo.name + " [deduped]",
|
|
3473
|
+
debugTask = componentInfo.debugTask;
|
|
3474
|
+
debugTask
|
|
3475
|
+
? debugTask.run(
|
|
3476
|
+
console.timeStamp.bind(
|
|
3477
|
+
console,
|
|
3478
|
+
entryName,
|
|
3479
|
+
0 > startTime ? 0 : startTime,
|
|
3480
|
+
previousEndTime,
|
|
3481
|
+
trackNames[trackIdx],
|
|
3482
|
+
"Server Components \u269b",
|
|
3483
|
+
color
|
|
3484
|
+
)
|
|
3485
|
+
)
|
|
3486
|
+
: console.timeStamp(
|
|
3487
|
+
entryName,
|
|
3488
|
+
0 > startTime ? 0 : startTime,
|
|
3489
|
+
previousEndTime,
|
|
3490
|
+
trackNames[trackIdx],
|
|
3491
|
+
"Server Components \u269b",
|
|
3492
|
+
color
|
|
3493
|
+
);
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
previousResult.track = trackIdx$jscomp$6;
|
|
3497
|
+
return previousResult;
|
|
3498
|
+
}
|
|
3499
|
+
var children = root._children,
|
|
3500
|
+
debugInfo = root._debugInfo;
|
|
3501
|
+
if (debugInfo) {
|
|
3502
|
+
for (var startTime$jscomp$0 = 0, i = 0; i < debugInfo.length; i++) {
|
|
3503
|
+
var info = debugInfo[i];
|
|
3504
|
+
"number" === typeof info.time && (startTime$jscomp$0 = info.time);
|
|
3505
|
+
if ("string" === typeof info.name) {
|
|
3506
|
+
startTime$jscomp$0 < trackTime && trackIdx$jscomp$6++;
|
|
3507
|
+
trackTime = startTime$jscomp$0;
|
|
3508
|
+
break;
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
for (var _i4 = debugInfo.length - 1; 0 <= _i4; _i4--) {
|
|
3512
|
+
var _info = debugInfo[_i4];
|
|
3513
|
+
if ("number" === typeof _info.time && _info.time > parentEndTime) {
|
|
3514
|
+
parentEndTime = _info.time;
|
|
3515
|
+
break;
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
var result = {
|
|
3520
|
+
track: trackIdx$jscomp$6,
|
|
3521
|
+
endTime: -Infinity,
|
|
3522
|
+
component: null
|
|
3523
|
+
};
|
|
3524
|
+
root._children = result;
|
|
3525
|
+
for (
|
|
3526
|
+
var childrenEndTime = -Infinity,
|
|
3527
|
+
childTrackIdx = trackIdx$jscomp$6,
|
|
3528
|
+
childTrackTime = trackTime,
|
|
3529
|
+
_i5 = 0;
|
|
3530
|
+
_i5 < children.length;
|
|
3531
|
+
_i5++
|
|
3532
|
+
) {
|
|
3533
|
+
var childResult = flushComponentPerformance(
|
|
3534
|
+
response$jscomp$0,
|
|
3535
|
+
children[_i5],
|
|
3536
|
+
childTrackIdx,
|
|
3537
|
+
childTrackTime,
|
|
3538
|
+
parentEndTime
|
|
3539
|
+
);
|
|
3540
|
+
null !== childResult.component &&
|
|
3541
|
+
(result.component = childResult.component);
|
|
3542
|
+
childTrackIdx = childResult.track;
|
|
3543
|
+
var childEndTime = childResult.endTime;
|
|
3544
|
+
childEndTime > childTrackTime && (childTrackTime = childEndTime);
|
|
3545
|
+
childEndTime > childrenEndTime && (childrenEndTime = childEndTime);
|
|
3546
|
+
}
|
|
3547
|
+
if (debugInfo)
|
|
3548
|
+
for (
|
|
3549
|
+
var componentEndTime = 0,
|
|
3550
|
+
isLastComponent = !0,
|
|
3551
|
+
endTime = -1,
|
|
3552
|
+
endTimeIdx = -1,
|
|
3553
|
+
_i6 = debugInfo.length - 1;
|
|
3554
|
+
0 <= _i6;
|
|
3555
|
+
_i6--
|
|
3556
|
+
) {
|
|
3557
|
+
var _info2 = debugInfo[_i6];
|
|
3558
|
+
if ("number" === typeof _info2.time) {
|
|
3559
|
+
0 === componentEndTime && (componentEndTime = _info2.time);
|
|
3560
|
+
var time = _info2.time;
|
|
3561
|
+
if (-1 < endTimeIdx)
|
|
3562
|
+
for (var j = endTimeIdx - 1; j > _i6; j--) {
|
|
3563
|
+
var candidateInfo = debugInfo[j];
|
|
3564
|
+
if ("string" === typeof candidateInfo.name) {
|
|
3565
|
+
componentEndTime > childrenEndTime &&
|
|
3566
|
+
(childrenEndTime = componentEndTime);
|
|
3567
|
+
var componentInfo$jscomp$0 = candidateInfo,
|
|
3568
|
+
response = response$jscomp$0,
|
|
3569
|
+
componentInfo$jscomp$1 = componentInfo$jscomp$0,
|
|
3570
|
+
trackIdx$jscomp$0 = trackIdx$jscomp$6,
|
|
3571
|
+
startTime$jscomp$1 = time,
|
|
3572
|
+
componentEndTime$jscomp$0 = componentEndTime,
|
|
3573
|
+
childrenEndTime$jscomp$0 = childrenEndTime;
|
|
3574
|
+
if (
|
|
3575
|
+
isLastComponent &&
|
|
3576
|
+
"rejected" === root.status &&
|
|
3577
|
+
root.reason !== response._closedReason
|
|
3578
|
+
) {
|
|
3579
|
+
var componentInfo$jscomp$2 = componentInfo$jscomp$1,
|
|
3580
|
+
trackIdx$jscomp$1 = trackIdx$jscomp$0,
|
|
3581
|
+
startTime$jscomp$2 = startTime$jscomp$1,
|
|
3582
|
+
childrenEndTime$jscomp$1 = childrenEndTime$jscomp$0,
|
|
3583
|
+
error = root.reason;
|
|
3584
|
+
if (supportsUserTiming) {
|
|
3585
|
+
var env = componentInfo$jscomp$2.env,
|
|
3586
|
+
name = componentInfo$jscomp$2.name,
|
|
3587
|
+
entryName$jscomp$0 =
|
|
3588
|
+
env === response._rootEnvironmentName ||
|
|
3589
|
+
void 0 === env
|
|
3590
|
+
? name
|
|
3591
|
+
: name + " [" + env + "]",
|
|
3592
|
+
properties = [
|
|
3593
|
+
[
|
|
3594
|
+
"Error",
|
|
3595
|
+
"object" === typeof error &&
|
|
3596
|
+
null !== error &&
|
|
3597
|
+
"string" === typeof error.message
|
|
3598
|
+
? String(error.message)
|
|
3599
|
+
: String(error)
|
|
3600
|
+
]
|
|
3601
|
+
];
|
|
3602
|
+
null != componentInfo$jscomp$2.key &&
|
|
3603
|
+
addValueToProperties(
|
|
3604
|
+
"key",
|
|
3605
|
+
componentInfo$jscomp$2.key,
|
|
3606
|
+
properties,
|
|
3607
|
+
0,
|
|
3608
|
+
""
|
|
3609
|
+
);
|
|
3610
|
+
null != componentInfo$jscomp$2.props &&
|
|
3611
|
+
addObjectToProperties(
|
|
3612
|
+
componentInfo$jscomp$2.props,
|
|
3613
|
+
properties,
|
|
3614
|
+
0,
|
|
3615
|
+
""
|
|
3616
|
+
);
|
|
3617
|
+
performance.measure("\u200b" + entryName$jscomp$0, {
|
|
3618
|
+
start: 0 > startTime$jscomp$2 ? 0 : startTime$jscomp$2,
|
|
3619
|
+
end: childrenEndTime$jscomp$1,
|
|
3620
|
+
detail: {
|
|
3621
|
+
devtools: {
|
|
3622
|
+
color: "error",
|
|
3623
|
+
track: trackNames[trackIdx$jscomp$1],
|
|
3624
|
+
trackGroup: "Server Components \u269b",
|
|
3625
|
+
tooltipText: entryName$jscomp$0 + " Errored",
|
|
3626
|
+
properties: properties
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
});
|
|
3630
|
+
}
|
|
3631
|
+
} else {
|
|
3632
|
+
var componentInfo$jscomp$3 = componentInfo$jscomp$1,
|
|
3633
|
+
trackIdx$jscomp$2 = trackIdx$jscomp$0,
|
|
3634
|
+
startTime$jscomp$3 = startTime$jscomp$1,
|
|
3635
|
+
childrenEndTime$jscomp$2 = childrenEndTime$jscomp$0;
|
|
3636
|
+
if (
|
|
3637
|
+
supportsUserTiming &&
|
|
3638
|
+
0 <= childrenEndTime$jscomp$2 &&
|
|
3639
|
+
10 > trackIdx$jscomp$2
|
|
3640
|
+
) {
|
|
3641
|
+
var env$jscomp$0 = componentInfo$jscomp$3.env,
|
|
3642
|
+
name$jscomp$0 = componentInfo$jscomp$3.name,
|
|
3643
|
+
isPrimaryEnv =
|
|
3644
|
+
env$jscomp$0 === response._rootEnvironmentName,
|
|
3645
|
+
selfTime =
|
|
3646
|
+
componentEndTime$jscomp$0 - startTime$jscomp$3,
|
|
3647
|
+
color$jscomp$0 =
|
|
3648
|
+
0.5 > selfTime
|
|
3649
|
+
? isPrimaryEnv
|
|
3650
|
+
? "primary-light"
|
|
3651
|
+
: "secondary-light"
|
|
3652
|
+
: 50 > selfTime
|
|
3653
|
+
? isPrimaryEnv
|
|
3654
|
+
? "primary"
|
|
3655
|
+
: "secondary"
|
|
3656
|
+
: 500 > selfTime
|
|
3657
|
+
? isPrimaryEnv
|
|
3658
|
+
? "primary-dark"
|
|
3659
|
+
: "secondary-dark"
|
|
3660
|
+
: "error",
|
|
3661
|
+
entryName$jscomp$1 =
|
|
3662
|
+
isPrimaryEnv || void 0 === env$jscomp$0
|
|
3663
|
+
? name$jscomp$0
|
|
3664
|
+
: name$jscomp$0 + " [" + env$jscomp$0 + "]",
|
|
3665
|
+
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask;
|
|
3666
|
+
if (debugTask$jscomp$0) {
|
|
3667
|
+
var properties$jscomp$0 = [];
|
|
3668
|
+
null != componentInfo$jscomp$3.key &&
|
|
3669
|
+
addValueToProperties(
|
|
3670
|
+
"key",
|
|
3671
|
+
componentInfo$jscomp$3.key,
|
|
3672
|
+
properties$jscomp$0,
|
|
3673
|
+
0,
|
|
3674
|
+
""
|
|
3675
|
+
);
|
|
3676
|
+
null != componentInfo$jscomp$3.props &&
|
|
3677
|
+
addObjectToProperties(
|
|
3678
|
+
componentInfo$jscomp$3.props,
|
|
3679
|
+
properties$jscomp$0,
|
|
3680
|
+
0,
|
|
3681
|
+
""
|
|
3682
|
+
);
|
|
3683
|
+
debugTask$jscomp$0.run(
|
|
3684
|
+
performance.measure.bind(
|
|
3685
|
+
performance,
|
|
3686
|
+
"\u200b" + entryName$jscomp$1,
|
|
3687
|
+
{
|
|
3688
|
+
start:
|
|
3689
|
+
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3690
|
+
end: childrenEndTime$jscomp$2,
|
|
3691
|
+
detail: {
|
|
3692
|
+
devtools: {
|
|
3693
|
+
color: color$jscomp$0,
|
|
3694
|
+
track: trackNames[trackIdx$jscomp$2],
|
|
3695
|
+
trackGroup: "Server Components \u269b",
|
|
3696
|
+
properties: properties$jscomp$0
|
|
3697
|
+
}
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
)
|
|
3701
|
+
);
|
|
3702
|
+
} else
|
|
3703
|
+
console.timeStamp(
|
|
3704
|
+
"\u200b" + entryName$jscomp$1,
|
|
3705
|
+
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3706
|
+
childrenEndTime$jscomp$2,
|
|
3707
|
+
trackNames[trackIdx$jscomp$2],
|
|
3708
|
+
"Server Components \u269b",
|
|
3709
|
+
color$jscomp$0
|
|
3710
|
+
);
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
componentEndTime = time;
|
|
3714
|
+
result.component = componentInfo$jscomp$0;
|
|
3715
|
+
isLastComponent = !1;
|
|
3716
|
+
} else if (
|
|
3717
|
+
candidateInfo.awaited &&
|
|
3718
|
+
null != candidateInfo.awaited.env
|
|
3719
|
+
) {
|
|
3720
|
+
endTime > childrenEndTime && (childrenEndTime = endTime);
|
|
3721
|
+
var asyncInfo = candidateInfo,
|
|
3722
|
+
env$jscomp$1 = response$jscomp$0._rootEnvironmentName,
|
|
3723
|
+
promise = asyncInfo.awaited.value;
|
|
3724
|
+
if (promise) {
|
|
3725
|
+
var thenable = promise;
|
|
3726
|
+
switch (thenable.status) {
|
|
3727
|
+
case "fulfilled":
|
|
3728
|
+
logComponentAwait(
|
|
3729
|
+
asyncInfo,
|
|
3730
|
+
trackIdx$jscomp$6,
|
|
3731
|
+
time,
|
|
3732
|
+
endTime,
|
|
3733
|
+
env$jscomp$1,
|
|
3734
|
+
thenable.value
|
|
3735
|
+
);
|
|
3736
|
+
break;
|
|
3737
|
+
case "rejected":
|
|
3738
|
+
var asyncInfo$jscomp$0 = asyncInfo,
|
|
3739
|
+
trackIdx$jscomp$3 = trackIdx$jscomp$6,
|
|
3740
|
+
startTime$jscomp$4 = time,
|
|
3741
|
+
endTime$jscomp$0 = endTime,
|
|
3742
|
+
rootEnv = env$jscomp$1,
|
|
3743
|
+
error$jscomp$0 = thenable.reason;
|
|
3744
|
+
if (supportsUserTiming && 0 < endTime$jscomp$0) {
|
|
3745
|
+
var description = getIODescription(error$jscomp$0),
|
|
3746
|
+
entryName$jscomp$2 =
|
|
3747
|
+
"await " +
|
|
3748
|
+
getIOShortName(
|
|
3749
|
+
asyncInfo$jscomp$0.awaited,
|
|
3750
|
+
description,
|
|
3751
|
+
asyncInfo$jscomp$0.env,
|
|
3752
|
+
rootEnv
|
|
3753
|
+
),
|
|
3754
|
+
debugTask$jscomp$1 =
|
|
3755
|
+
asyncInfo$jscomp$0.debugTask ||
|
|
3756
|
+
asyncInfo$jscomp$0.awaited.debugTask;
|
|
3757
|
+
if (debugTask$jscomp$1) {
|
|
3758
|
+
var properties$jscomp$1 = [
|
|
3759
|
+
[
|
|
3760
|
+
"Rejected",
|
|
3761
|
+
"object" === typeof error$jscomp$0 &&
|
|
3762
|
+
null !== error$jscomp$0 &&
|
|
3763
|
+
"string" === typeof error$jscomp$0.message
|
|
3764
|
+
? String(error$jscomp$0.message)
|
|
3765
|
+
: String(error$jscomp$0)
|
|
3766
|
+
]
|
|
3767
|
+
],
|
|
3768
|
+
tooltipText =
|
|
3769
|
+
getIOLongName(
|
|
3770
|
+
asyncInfo$jscomp$0.awaited,
|
|
3771
|
+
description,
|
|
3772
|
+
asyncInfo$jscomp$0.env,
|
|
3773
|
+
rootEnv
|
|
3774
|
+
) + " Rejected";
|
|
3775
|
+
debugTask$jscomp$1.run(
|
|
3776
|
+
performance.measure.bind(
|
|
3777
|
+
performance,
|
|
3778
|
+
entryName$jscomp$2,
|
|
3779
|
+
{
|
|
3780
|
+
start:
|
|
3781
|
+
0 > startTime$jscomp$4
|
|
3782
|
+
? 0
|
|
3783
|
+
: startTime$jscomp$4,
|
|
3784
|
+
end: endTime$jscomp$0,
|
|
3785
|
+
detail: {
|
|
3786
|
+
devtools: {
|
|
3787
|
+
color: "error",
|
|
3788
|
+
track: trackNames[trackIdx$jscomp$3],
|
|
3789
|
+
trackGroup: "Server Components \u269b",
|
|
3790
|
+
properties: properties$jscomp$1,
|
|
3791
|
+
tooltipText: tooltipText
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
)
|
|
3796
|
+
);
|
|
3797
|
+
} else
|
|
3798
|
+
console.timeStamp(
|
|
3799
|
+
entryName$jscomp$2,
|
|
3800
|
+
0 > startTime$jscomp$4 ? 0 : startTime$jscomp$4,
|
|
3801
|
+
endTime$jscomp$0,
|
|
3802
|
+
trackNames[trackIdx$jscomp$3],
|
|
3803
|
+
"Server Components \u269b",
|
|
3804
|
+
"error"
|
|
3805
|
+
);
|
|
3806
|
+
}
|
|
3807
|
+
break;
|
|
3808
|
+
default:
|
|
3809
|
+
logComponentAwait(
|
|
3810
|
+
asyncInfo,
|
|
3811
|
+
trackIdx$jscomp$6,
|
|
3812
|
+
time,
|
|
3813
|
+
endTime,
|
|
3814
|
+
env$jscomp$1,
|
|
3815
|
+
void 0
|
|
3816
|
+
);
|
|
3817
|
+
}
|
|
3818
|
+
} else
|
|
3819
|
+
logComponentAwait(
|
|
3820
|
+
asyncInfo,
|
|
3821
|
+
trackIdx$jscomp$6,
|
|
3822
|
+
time,
|
|
3823
|
+
endTime,
|
|
3824
|
+
env$jscomp$1,
|
|
3825
|
+
void 0
|
|
3826
|
+
);
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
else {
|
|
3830
|
+
endTime = time;
|
|
3831
|
+
for (var _j = debugInfo.length - 1; _j > _i6; _j--) {
|
|
3832
|
+
var _candidateInfo = debugInfo[_j];
|
|
3833
|
+
if ("string" === typeof _candidateInfo.name) {
|
|
3834
|
+
componentEndTime > childrenEndTime &&
|
|
3835
|
+
(childrenEndTime = componentEndTime);
|
|
3836
|
+
var _componentInfo = _candidateInfo,
|
|
3837
|
+
_env = response$jscomp$0._rootEnvironmentName,
|
|
3838
|
+
componentInfo$jscomp$4 = _componentInfo,
|
|
3839
|
+
trackIdx$jscomp$4 = trackIdx$jscomp$6,
|
|
3840
|
+
startTime$jscomp$5 = time,
|
|
3841
|
+
childrenEndTime$jscomp$3 = childrenEndTime;
|
|
3842
|
+
if (supportsUserTiming) {
|
|
3843
|
+
var env$jscomp$2 = componentInfo$jscomp$4.env,
|
|
3844
|
+
name$jscomp$1 = componentInfo$jscomp$4.name,
|
|
3845
|
+
entryName$jscomp$3 =
|
|
3846
|
+
env$jscomp$2 === _env || void 0 === env$jscomp$2
|
|
3847
|
+
? name$jscomp$1
|
|
3848
|
+
: name$jscomp$1 + " [" + env$jscomp$2 + "]",
|
|
3849
|
+
properties$jscomp$2 = [
|
|
3850
|
+
[
|
|
3851
|
+
"Aborted",
|
|
3852
|
+
"The stream was aborted before this Component finished rendering."
|
|
3853
|
+
]
|
|
3854
|
+
];
|
|
3855
|
+
null != componentInfo$jscomp$4.key &&
|
|
3856
|
+
addValueToProperties(
|
|
3857
|
+
"key",
|
|
3858
|
+
componentInfo$jscomp$4.key,
|
|
3859
|
+
properties$jscomp$2,
|
|
3860
|
+
0,
|
|
3861
|
+
""
|
|
3862
|
+
);
|
|
3863
|
+
null != componentInfo$jscomp$4.props &&
|
|
3864
|
+
addObjectToProperties(
|
|
3865
|
+
componentInfo$jscomp$4.props,
|
|
3866
|
+
properties$jscomp$2,
|
|
3867
|
+
0,
|
|
3868
|
+
""
|
|
3869
|
+
);
|
|
3870
|
+
performance.measure("\u200b" + entryName$jscomp$3, {
|
|
3871
|
+
start: 0 > startTime$jscomp$5 ? 0 : startTime$jscomp$5,
|
|
3872
|
+
end: childrenEndTime$jscomp$3,
|
|
3873
|
+
detail: {
|
|
3874
|
+
devtools: {
|
|
3875
|
+
color: "warning",
|
|
3876
|
+
track: trackNames[trackIdx$jscomp$4],
|
|
3877
|
+
trackGroup: "Server Components \u269b",
|
|
3878
|
+
tooltipText: entryName$jscomp$3 + " Aborted",
|
|
3879
|
+
properties: properties$jscomp$2
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
});
|
|
3883
|
+
}
|
|
3884
|
+
componentEndTime = time;
|
|
3885
|
+
result.component = _componentInfo;
|
|
3886
|
+
isLastComponent = !1;
|
|
3887
|
+
} else if (
|
|
3888
|
+
_candidateInfo.awaited &&
|
|
3889
|
+
null != _candidateInfo.awaited.env
|
|
3890
|
+
) {
|
|
3891
|
+
var _asyncInfo = _candidateInfo,
|
|
3892
|
+
_env2 = response$jscomp$0._rootEnvironmentName;
|
|
3893
|
+
_asyncInfo.awaited.end > endTime &&
|
|
3894
|
+
(endTime = _asyncInfo.awaited.end);
|
|
3895
|
+
endTime > childrenEndTime && (childrenEndTime = endTime);
|
|
3896
|
+
var asyncInfo$jscomp$1 = _asyncInfo,
|
|
3897
|
+
trackIdx$jscomp$5 = trackIdx$jscomp$6,
|
|
3898
|
+
startTime$jscomp$6 = time,
|
|
3899
|
+
endTime$jscomp$1 = endTime,
|
|
3900
|
+
rootEnv$jscomp$0 = _env2;
|
|
3901
|
+
if (supportsUserTiming && 0 < endTime$jscomp$1) {
|
|
3902
|
+
var entryName$jscomp$4 =
|
|
3903
|
+
"await " +
|
|
3904
|
+
getIOShortName(
|
|
3905
|
+
asyncInfo$jscomp$1.awaited,
|
|
3906
|
+
"",
|
|
3907
|
+
asyncInfo$jscomp$1.env,
|
|
3908
|
+
rootEnv$jscomp$0
|
|
3909
|
+
),
|
|
3910
|
+
debugTask$jscomp$2 =
|
|
3911
|
+
asyncInfo$jscomp$1.debugTask ||
|
|
3912
|
+
asyncInfo$jscomp$1.awaited.debugTask;
|
|
3913
|
+
if (debugTask$jscomp$2) {
|
|
3914
|
+
var tooltipText$jscomp$0 =
|
|
3915
|
+
getIOLongName(
|
|
3916
|
+
asyncInfo$jscomp$1.awaited,
|
|
3917
|
+
"",
|
|
3918
|
+
asyncInfo$jscomp$1.env,
|
|
3919
|
+
rootEnv$jscomp$0
|
|
3920
|
+
) + " Aborted";
|
|
3921
|
+
debugTask$jscomp$2.run(
|
|
3922
|
+
performance.measure.bind(
|
|
3923
|
+
performance,
|
|
3924
|
+
entryName$jscomp$4,
|
|
3925
|
+
{
|
|
3926
|
+
start:
|
|
3927
|
+
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
3928
|
+
end: endTime$jscomp$1,
|
|
3929
|
+
detail: {
|
|
3930
|
+
devtools: {
|
|
3931
|
+
color: "warning",
|
|
3932
|
+
track: trackNames[trackIdx$jscomp$5],
|
|
3933
|
+
trackGroup: "Server Components \u269b",
|
|
3934
|
+
properties: [
|
|
3935
|
+
[
|
|
3936
|
+
"Aborted",
|
|
3937
|
+
"The stream was aborted before this Promise resolved."
|
|
3938
|
+
]
|
|
3939
|
+
],
|
|
3940
|
+
tooltipText: tooltipText$jscomp$0
|
|
3941
|
+
}
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3944
|
+
)
|
|
3945
|
+
);
|
|
3946
|
+
} else
|
|
3947
|
+
console.timeStamp(
|
|
3948
|
+
entryName$jscomp$4,
|
|
3949
|
+
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
3950
|
+
endTime$jscomp$1,
|
|
3951
|
+
trackNames[trackIdx$jscomp$5],
|
|
3952
|
+
"Server Components \u269b",
|
|
3953
|
+
"warning"
|
|
3954
|
+
);
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
endTime = time;
|
|
3960
|
+
endTimeIdx = _i6;
|
|
3961
|
+
}
|
|
3962
|
+
}
|
|
3963
|
+
result.endTime = childrenEndTime;
|
|
3964
|
+
return result;
|
|
3965
|
+
}
|
|
3966
|
+
function flushInitialRenderPerformance(response) {
|
|
3967
|
+
if (response._replayConsole) {
|
|
3968
|
+
var rootChunk = getChunk(response, 0);
|
|
3969
|
+
isArrayImpl(rootChunk._children) &&
|
|
3970
|
+
(markAllTracksInOrder(),
|
|
3971
|
+
flushComponentPerformance(
|
|
3972
|
+
response,
|
|
3973
|
+
rootChunk,
|
|
3974
|
+
0,
|
|
3975
|
+
-Infinity,
|
|
3976
|
+
-Infinity
|
|
3977
|
+
));
|
|
3978
|
+
}
|
|
2179
3979
|
}
|
|
2180
|
-
function processFullBinaryRow(
|
|
3980
|
+
function processFullBinaryRow(
|
|
3981
|
+
response,
|
|
3982
|
+
streamState,
|
|
3983
|
+
id,
|
|
3984
|
+
tag,
|
|
3985
|
+
buffer,
|
|
3986
|
+
chunk
|
|
3987
|
+
) {
|
|
2181
3988
|
switch (tag) {
|
|
2182
3989
|
case 65:
|
|
2183
|
-
resolveBuffer(
|
|
3990
|
+
resolveBuffer(
|
|
3991
|
+
response,
|
|
3992
|
+
id,
|
|
3993
|
+
mergeBuffer(buffer, chunk).buffer,
|
|
3994
|
+
streamState
|
|
3995
|
+
);
|
|
2184
3996
|
return;
|
|
2185
3997
|
case 79:
|
|
2186
|
-
resolveTypedArray(
|
|
3998
|
+
resolveTypedArray(
|
|
3999
|
+
response,
|
|
4000
|
+
id,
|
|
4001
|
+
buffer,
|
|
4002
|
+
chunk,
|
|
4003
|
+
Int8Array,
|
|
4004
|
+
1,
|
|
4005
|
+
streamState
|
|
4006
|
+
);
|
|
2187
4007
|
return;
|
|
2188
4008
|
case 111:
|
|
2189
4009
|
resolveBuffer(
|
|
2190
4010
|
response,
|
|
2191
4011
|
id,
|
|
2192
|
-
0 === buffer.length ? chunk : mergeBuffer(buffer, chunk)
|
|
4012
|
+
0 === buffer.length ? chunk : mergeBuffer(buffer, chunk),
|
|
4013
|
+
streamState
|
|
2193
4014
|
);
|
|
2194
4015
|
return;
|
|
2195
4016
|
case 85:
|
|
2196
|
-
resolveTypedArray(
|
|
4017
|
+
resolveTypedArray(
|
|
4018
|
+
response,
|
|
4019
|
+
id,
|
|
4020
|
+
buffer,
|
|
4021
|
+
chunk,
|
|
4022
|
+
Uint8ClampedArray,
|
|
4023
|
+
1,
|
|
4024
|
+
streamState
|
|
4025
|
+
);
|
|
2197
4026
|
return;
|
|
2198
4027
|
case 83:
|
|
2199
|
-
resolveTypedArray(
|
|
4028
|
+
resolveTypedArray(
|
|
4029
|
+
response,
|
|
4030
|
+
id,
|
|
4031
|
+
buffer,
|
|
4032
|
+
chunk,
|
|
4033
|
+
Int16Array,
|
|
4034
|
+
2,
|
|
4035
|
+
streamState
|
|
4036
|
+
);
|
|
2200
4037
|
return;
|
|
2201
4038
|
case 115:
|
|
2202
|
-
resolveTypedArray(
|
|
4039
|
+
resolveTypedArray(
|
|
4040
|
+
response,
|
|
4041
|
+
id,
|
|
4042
|
+
buffer,
|
|
4043
|
+
chunk,
|
|
4044
|
+
Uint16Array,
|
|
4045
|
+
2,
|
|
4046
|
+
streamState
|
|
4047
|
+
);
|
|
2203
4048
|
return;
|
|
2204
4049
|
case 76:
|
|
2205
|
-
resolveTypedArray(
|
|
4050
|
+
resolveTypedArray(
|
|
4051
|
+
response,
|
|
4052
|
+
id,
|
|
4053
|
+
buffer,
|
|
4054
|
+
chunk,
|
|
4055
|
+
Int32Array,
|
|
4056
|
+
4,
|
|
4057
|
+
streamState
|
|
4058
|
+
);
|
|
2206
4059
|
return;
|
|
2207
4060
|
case 108:
|
|
2208
|
-
resolveTypedArray(
|
|
4061
|
+
resolveTypedArray(
|
|
4062
|
+
response,
|
|
4063
|
+
id,
|
|
4064
|
+
buffer,
|
|
4065
|
+
chunk,
|
|
4066
|
+
Uint32Array,
|
|
4067
|
+
4,
|
|
4068
|
+
streamState
|
|
4069
|
+
);
|
|
2209
4070
|
return;
|
|
2210
4071
|
case 71:
|
|
2211
|
-
resolveTypedArray(
|
|
4072
|
+
resolveTypedArray(
|
|
4073
|
+
response,
|
|
4074
|
+
id,
|
|
4075
|
+
buffer,
|
|
4076
|
+
chunk,
|
|
4077
|
+
Float32Array,
|
|
4078
|
+
4,
|
|
4079
|
+
streamState
|
|
4080
|
+
);
|
|
2212
4081
|
return;
|
|
2213
4082
|
case 103:
|
|
2214
|
-
resolveTypedArray(
|
|
4083
|
+
resolveTypedArray(
|
|
4084
|
+
response,
|
|
4085
|
+
id,
|
|
4086
|
+
buffer,
|
|
4087
|
+
chunk,
|
|
4088
|
+
Float64Array,
|
|
4089
|
+
8,
|
|
4090
|
+
streamState
|
|
4091
|
+
);
|
|
2215
4092
|
return;
|
|
2216
4093
|
case 77:
|
|
2217
|
-
resolveTypedArray(
|
|
4094
|
+
resolveTypedArray(
|
|
4095
|
+
response,
|
|
4096
|
+
id,
|
|
4097
|
+
buffer,
|
|
4098
|
+
chunk,
|
|
4099
|
+
BigInt64Array,
|
|
4100
|
+
8,
|
|
4101
|
+
streamState
|
|
4102
|
+
);
|
|
2218
4103
|
return;
|
|
2219
4104
|
case 109:
|
|
2220
|
-
resolveTypedArray(
|
|
4105
|
+
resolveTypedArray(
|
|
4106
|
+
response,
|
|
4107
|
+
id,
|
|
4108
|
+
buffer,
|
|
4109
|
+
chunk,
|
|
4110
|
+
BigUint64Array,
|
|
4111
|
+
8,
|
|
4112
|
+
streamState
|
|
4113
|
+
);
|
|
2221
4114
|
return;
|
|
2222
4115
|
case 86:
|
|
2223
|
-
resolveTypedArray(
|
|
4116
|
+
resolveTypedArray(
|
|
4117
|
+
response,
|
|
4118
|
+
id,
|
|
4119
|
+
buffer,
|
|
4120
|
+
chunk,
|
|
4121
|
+
DataView,
|
|
4122
|
+
1,
|
|
4123
|
+
streamState
|
|
4124
|
+
);
|
|
2224
4125
|
return;
|
|
2225
4126
|
}
|
|
2226
4127
|
for (
|
|
@@ -2230,62 +4131,242 @@
|
|
|
2230
4131
|
)
|
|
2231
4132
|
row += stringDecoder.decode(buffer[i], decoderOptions);
|
|
2232
4133
|
row += stringDecoder.decode(chunk);
|
|
2233
|
-
processFullStringRow(response, id, tag, row);
|
|
4134
|
+
processFullStringRow(response, streamState, id, tag, row);
|
|
2234
4135
|
}
|
|
2235
|
-
function processFullStringRow(response, id, tag, row) {
|
|
4136
|
+
function processFullStringRow(response, streamState, id, tag, row) {
|
|
2236
4137
|
switch (tag) {
|
|
2237
4138
|
case 73:
|
|
2238
|
-
resolveModule(response, id, row);
|
|
4139
|
+
resolveModule(response, id, row, streamState);
|
|
2239
4140
|
break;
|
|
2240
4141
|
case 72:
|
|
2241
|
-
|
|
4142
|
+
id = row[0];
|
|
4143
|
+
streamState = row.slice(1);
|
|
4144
|
+
response = JSON.parse(streamState, response._fromJSON);
|
|
4145
|
+
streamState = ReactDOMSharedInternals.d;
|
|
4146
|
+
switch (id) {
|
|
4147
|
+
case "D":
|
|
4148
|
+
streamState.D(response);
|
|
4149
|
+
break;
|
|
4150
|
+
case "C":
|
|
4151
|
+
"string" === typeof response
|
|
4152
|
+
? streamState.C(response)
|
|
4153
|
+
: streamState.C(response[0], response[1]);
|
|
4154
|
+
break;
|
|
4155
|
+
case "L":
|
|
4156
|
+
id = response[0];
|
|
4157
|
+
row = response[1];
|
|
4158
|
+
3 === response.length
|
|
4159
|
+
? streamState.L(id, row, response[2])
|
|
4160
|
+
: streamState.L(id, row);
|
|
4161
|
+
break;
|
|
4162
|
+
case "m":
|
|
4163
|
+
"string" === typeof response
|
|
4164
|
+
? streamState.m(response)
|
|
4165
|
+
: streamState.m(response[0], response[1]);
|
|
4166
|
+
break;
|
|
4167
|
+
case "X":
|
|
4168
|
+
"string" === typeof response
|
|
4169
|
+
? streamState.X(response)
|
|
4170
|
+
: streamState.X(response[0], response[1]);
|
|
4171
|
+
break;
|
|
4172
|
+
case "S":
|
|
4173
|
+
"string" === typeof response
|
|
4174
|
+
? streamState.S(response)
|
|
4175
|
+
: streamState.S(
|
|
4176
|
+
response[0],
|
|
4177
|
+
0 === response[1] ? void 0 : response[1],
|
|
4178
|
+
3 === response.length ? response[2] : void 0
|
|
4179
|
+
);
|
|
4180
|
+
break;
|
|
4181
|
+
case "M":
|
|
4182
|
+
"string" === typeof response
|
|
4183
|
+
? streamState.M(response)
|
|
4184
|
+
: streamState.M(response[0], response[1]);
|
|
4185
|
+
}
|
|
2242
4186
|
break;
|
|
2243
4187
|
case 69:
|
|
4188
|
+
tag = response._chunks;
|
|
4189
|
+
var chunk = tag.get(id);
|
|
2244
4190
|
row = JSON.parse(row);
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
row = response._chunks;
|
|
2248
|
-
var chunk = row.get(id);
|
|
4191
|
+
var error = resolveErrorDev(response, row);
|
|
4192
|
+
error.digest = row.digest;
|
|
2249
4193
|
chunk
|
|
2250
|
-
?
|
|
2251
|
-
|
|
4194
|
+
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4195
|
+
triggerErrorOnChunk(response, chunk, error))
|
|
4196
|
+
: ((response = new ReactPromise("rejected", null, error)),
|
|
4197
|
+
resolveChunkDebugInfo(streamState, response),
|
|
4198
|
+
tag.set(id, response));
|
|
2252
4199
|
break;
|
|
2253
4200
|
case 84:
|
|
2254
|
-
|
|
4201
|
+
tag = response._chunks;
|
|
4202
|
+
(chunk = tag.get(id)) && "pending" !== chunk.status
|
|
4203
|
+
? chunk.reason.enqueueValue(row)
|
|
4204
|
+
: (chunk && releasePendingChunk(response, chunk),
|
|
4205
|
+
(response = new ReactPromise("fulfilled", row, null)),
|
|
4206
|
+
resolveChunkDebugInfo(streamState, response),
|
|
4207
|
+
tag.set(id, response));
|
|
2255
4208
|
break;
|
|
2256
4209
|
case 78:
|
|
4210
|
+
response._timeOrigin = +row - performance.timeOrigin;
|
|
4211
|
+
break;
|
|
2257
4212
|
case 68:
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
4213
|
+
id = getChunk(response, id);
|
|
4214
|
+
"fulfilled" !== id.status &&
|
|
4215
|
+
"rejected" !== id.status &&
|
|
4216
|
+
"halted" !== id.status &&
|
|
4217
|
+
"blocked" !== id.status &&
|
|
4218
|
+
"resolved_module" !== id.status &&
|
|
4219
|
+
((streamState = id._debugChunk),
|
|
4220
|
+
(tag = createResolvedModelChunk(response, row)),
|
|
4221
|
+
(tag._debugChunk = streamState),
|
|
4222
|
+
(id._debugChunk = tag),
|
|
4223
|
+
initializeDebugChunk(response, id),
|
|
4224
|
+
"blocked" !== tag.status ||
|
|
4225
|
+
(void 0 !== response._debugChannel &&
|
|
4226
|
+
response._debugChannel.hasReadable) ||
|
|
4227
|
+
'"' !== row[0] ||
|
|
4228
|
+
"$" !== row[1] ||
|
|
4229
|
+
((streamState = row.slice(2, row.length - 1).split(":")),
|
|
4230
|
+
(streamState = parseInt(streamState[0], 16)),
|
|
4231
|
+
"pending" === getChunk(response, streamState).status &&
|
|
4232
|
+
(id._debugChunk = null)));
|
|
4233
|
+
break;
|
|
4234
|
+
case 74:
|
|
4235
|
+
resolveIOInfo(response, id, row);
|
|
2268
4236
|
break;
|
|
2269
4237
|
case 87:
|
|
2270
4238
|
resolveConsoleEntry(response, row);
|
|
2271
4239
|
break;
|
|
2272
4240
|
case 82:
|
|
2273
|
-
startReadableStream(response, id, void 0);
|
|
4241
|
+
startReadableStream(response, id, void 0, streamState);
|
|
2274
4242
|
break;
|
|
2275
4243
|
case 114:
|
|
2276
|
-
startReadableStream(response, id, "bytes");
|
|
4244
|
+
startReadableStream(response, id, "bytes", streamState);
|
|
2277
4245
|
break;
|
|
2278
4246
|
case 88:
|
|
2279
|
-
startAsyncIterable(response, id, !1);
|
|
4247
|
+
startAsyncIterable(response, id, !1, streamState);
|
|
2280
4248
|
break;
|
|
2281
4249
|
case 120:
|
|
2282
|
-
startAsyncIterable(response, id, !0);
|
|
4250
|
+
startAsyncIterable(response, id, !0, streamState);
|
|
2283
4251
|
break;
|
|
2284
4252
|
case 67:
|
|
2285
|
-
|
|
4253
|
+
(response = response._chunks.get(id)) &&
|
|
4254
|
+
"fulfilled" === response.status &&
|
|
4255
|
+
response.reason.close("" === row ? '"$undefined"' : row);
|
|
2286
4256
|
break;
|
|
2287
4257
|
default:
|
|
2288
|
-
|
|
4258
|
+
if ("" === row) {
|
|
4259
|
+
if (
|
|
4260
|
+
((streamState = response._chunks),
|
|
4261
|
+
(row = streamState.get(id)) ||
|
|
4262
|
+
streamState.set(id, (row = createPendingChunk(response))),
|
|
4263
|
+
"pending" === row.status || "blocked" === row.status)
|
|
4264
|
+
)
|
|
4265
|
+
releasePendingChunk(response, row),
|
|
4266
|
+
(response = row),
|
|
4267
|
+
(response.status = "halted"),
|
|
4268
|
+
(response.value = null),
|
|
4269
|
+
(response.reason = null);
|
|
4270
|
+
} else
|
|
4271
|
+
(tag = response._chunks),
|
|
4272
|
+
(chunk = tag.get(id))
|
|
4273
|
+
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4274
|
+
resolveModelChunk(response, chunk, row))
|
|
4275
|
+
: ((response = createResolvedModelChunk(response, row)),
|
|
4276
|
+
resolveChunkDebugInfo(streamState, response),
|
|
4277
|
+
tag.set(id, response));
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
function processBinaryChunk(weakResponse, streamState, chunk) {
|
|
4281
|
+
if (void 0 !== weakResponse.weak.deref()) {
|
|
4282
|
+
var response = unwrapWeakResponse(weakResponse),
|
|
4283
|
+
i = 0,
|
|
4284
|
+
rowState = streamState._rowState;
|
|
4285
|
+
weakResponse = streamState._rowID;
|
|
4286
|
+
var rowTag = streamState._rowTag,
|
|
4287
|
+
rowLength = streamState._rowLength,
|
|
4288
|
+
buffer = streamState._buffer,
|
|
4289
|
+
chunkLength = chunk.length;
|
|
4290
|
+
for (
|
|
4291
|
+
incrementChunkDebugInfo(streamState, chunkLength);
|
|
4292
|
+
i < chunkLength;
|
|
4293
|
+
|
|
4294
|
+
) {
|
|
4295
|
+
var lastIdx = -1;
|
|
4296
|
+
switch (rowState) {
|
|
4297
|
+
case 0:
|
|
4298
|
+
lastIdx = chunk[i++];
|
|
4299
|
+
58 === lastIdx
|
|
4300
|
+
? (rowState = 1)
|
|
4301
|
+
: (weakResponse =
|
|
4302
|
+
(weakResponse << 4) |
|
|
4303
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4304
|
+
continue;
|
|
4305
|
+
case 1:
|
|
4306
|
+
rowState = chunk[i];
|
|
4307
|
+
84 === rowState ||
|
|
4308
|
+
65 === rowState ||
|
|
4309
|
+
79 === rowState ||
|
|
4310
|
+
111 === rowState ||
|
|
4311
|
+
85 === rowState ||
|
|
4312
|
+
83 === rowState ||
|
|
4313
|
+
115 === rowState ||
|
|
4314
|
+
76 === rowState ||
|
|
4315
|
+
108 === rowState ||
|
|
4316
|
+
71 === rowState ||
|
|
4317
|
+
103 === rowState ||
|
|
4318
|
+
77 === rowState ||
|
|
4319
|
+
109 === rowState ||
|
|
4320
|
+
86 === rowState
|
|
4321
|
+
? ((rowTag = rowState), (rowState = 2), i++)
|
|
4322
|
+
: (64 < rowState && 91 > rowState) ||
|
|
4323
|
+
35 === rowState ||
|
|
4324
|
+
114 === rowState ||
|
|
4325
|
+
120 === rowState
|
|
4326
|
+
? ((rowTag = rowState), (rowState = 3), i++)
|
|
4327
|
+
: ((rowTag = 0), (rowState = 3));
|
|
4328
|
+
continue;
|
|
4329
|
+
case 2:
|
|
4330
|
+
lastIdx = chunk[i++];
|
|
4331
|
+
44 === lastIdx
|
|
4332
|
+
? (rowState = 4)
|
|
4333
|
+
: (rowLength =
|
|
4334
|
+
(rowLength << 4) |
|
|
4335
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4336
|
+
continue;
|
|
4337
|
+
case 3:
|
|
4338
|
+
lastIdx = chunk.indexOf(10, i);
|
|
4339
|
+
break;
|
|
4340
|
+
case 4:
|
|
4341
|
+
(lastIdx = i + rowLength),
|
|
4342
|
+
lastIdx > chunk.length && (lastIdx = -1);
|
|
4343
|
+
}
|
|
4344
|
+
var offset = chunk.byteOffset + i;
|
|
4345
|
+
if (-1 < lastIdx)
|
|
4346
|
+
(rowLength = new Uint8Array(chunk.buffer, offset, lastIdx - i)),
|
|
4347
|
+
processFullBinaryRow(
|
|
4348
|
+
response,
|
|
4349
|
+
streamState,
|
|
4350
|
+
weakResponse,
|
|
4351
|
+
rowTag,
|
|
4352
|
+
buffer,
|
|
4353
|
+
rowLength
|
|
4354
|
+
),
|
|
4355
|
+
(i = lastIdx),
|
|
4356
|
+
3 === rowState && i++,
|
|
4357
|
+
(rowLength = weakResponse = rowTag = rowState = 0),
|
|
4358
|
+
(buffer.length = 0);
|
|
4359
|
+
else {
|
|
4360
|
+
chunk = new Uint8Array(chunk.buffer, offset, chunk.byteLength - i);
|
|
4361
|
+
buffer.push(chunk);
|
|
4362
|
+
rowLength -= chunk.byteLength;
|
|
4363
|
+
break;
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
streamState._rowState = rowState;
|
|
4367
|
+
streamState._rowID = weakResponse;
|
|
4368
|
+
streamState._rowTag = rowTag;
|
|
4369
|
+
streamState._rowLength = rowLength;
|
|
2289
4370
|
}
|
|
2290
4371
|
}
|
|
2291
4372
|
function createFromJSONCallback(response) {
|
|
@@ -2293,106 +4374,109 @@
|
|
|
2293
4374
|
if ("string" === typeof value)
|
|
2294
4375
|
return parseModelString(response, this, key, value);
|
|
2295
4376
|
if ("object" === typeof value && null !== value) {
|
|
2296
|
-
if (value[0] === REACT_ELEMENT_TYPE)
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
"rejected",
|
|
2369
|
-
null,
|
|
2370
|
-
stack.value,
|
|
2371
|
-
response
|
|
2372
|
-
)),
|
|
2373
|
-
(stack = {
|
|
2374
|
-
name: getComponentNameFromType(value.type) || "",
|
|
2375
|
-
owner: value._owner
|
|
2376
|
-
}),
|
|
2377
|
-
(stack.debugStack = value._debugStack),
|
|
2378
|
-
supportsCreateTask && (stack.debugTask = value._debugTask),
|
|
2379
|
-
(key._debugInfo = [stack]),
|
|
2380
|
-
(value = createLazyChunkWrapper(key)))
|
|
2381
|
-
: 0 < stack.deps &&
|
|
2382
|
-
((key = new ReactPromise("blocked", null, null, response)),
|
|
2383
|
-
(stack.value = value),
|
|
2384
|
-
(stack.chunk = key),
|
|
2385
|
-
(value = Object.freeze.bind(Object, value.props)),
|
|
2386
|
-
key.then(value, value),
|
|
2387
|
-
(value = createLazyChunkWrapper(key))))
|
|
2388
|
-
: Object.freeze(value.props);
|
|
2389
|
-
}
|
|
2390
|
-
return value;
|
|
4377
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
4378
|
+
b: {
|
|
4379
|
+
var owner = value[4],
|
|
4380
|
+
stack = value[5];
|
|
4381
|
+
key = value[6];
|
|
4382
|
+
value = {
|
|
4383
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
4384
|
+
type: value[1],
|
|
4385
|
+
key: value[2],
|
|
4386
|
+
props: value[3],
|
|
4387
|
+
_owner: void 0 === owner ? null : owner
|
|
4388
|
+
};
|
|
4389
|
+
Object.defineProperty(value, "ref", {
|
|
4390
|
+
enumerable: !1,
|
|
4391
|
+
get: nullRefGetter
|
|
4392
|
+
});
|
|
4393
|
+
value._store = {};
|
|
4394
|
+
Object.defineProperty(value._store, "validated", {
|
|
4395
|
+
configurable: !1,
|
|
4396
|
+
enumerable: !1,
|
|
4397
|
+
writable: !0,
|
|
4398
|
+
value: key
|
|
4399
|
+
});
|
|
4400
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
4401
|
+
configurable: !1,
|
|
4402
|
+
enumerable: !1,
|
|
4403
|
+
writable: !0,
|
|
4404
|
+
value: null
|
|
4405
|
+
});
|
|
4406
|
+
Object.defineProperty(value, "_debugStack", {
|
|
4407
|
+
configurable: !1,
|
|
4408
|
+
enumerable: !1,
|
|
4409
|
+
writable: !0,
|
|
4410
|
+
value: void 0 === stack ? null : stack
|
|
4411
|
+
});
|
|
4412
|
+
Object.defineProperty(value, "_debugTask", {
|
|
4413
|
+
configurable: !1,
|
|
4414
|
+
enumerable: !1,
|
|
4415
|
+
writable: !0,
|
|
4416
|
+
value: null
|
|
4417
|
+
});
|
|
4418
|
+
if (null !== initializingHandler) {
|
|
4419
|
+
owner = initializingHandler;
|
|
4420
|
+
initializingHandler = owner.parent;
|
|
4421
|
+
if (owner.errored) {
|
|
4422
|
+
stack = new ReactPromise("rejected", null, owner.reason);
|
|
4423
|
+
initializeElement(response, value, null);
|
|
4424
|
+
owner = {
|
|
4425
|
+
name: getComponentNameFromType(value.type) || "",
|
|
4426
|
+
owner: value._owner
|
|
4427
|
+
};
|
|
4428
|
+
owner.debugStack = value._debugStack;
|
|
4429
|
+
supportsCreateTask && (owner.debugTask = value._debugTask);
|
|
4430
|
+
stack._debugInfo = [owner];
|
|
4431
|
+
key = createLazyChunkWrapper(stack, key);
|
|
4432
|
+
break b;
|
|
4433
|
+
}
|
|
4434
|
+
if (0 < owner.deps) {
|
|
4435
|
+
stack = new ReactPromise("blocked", null, null);
|
|
4436
|
+
owner.value = value;
|
|
4437
|
+
owner.chunk = stack;
|
|
4438
|
+
key = createLazyChunkWrapper(stack, key);
|
|
4439
|
+
value = initializeElement.bind(null, response, value, key);
|
|
4440
|
+
stack.then(value, value);
|
|
4441
|
+
break b;
|
|
4442
|
+
}
|
|
4443
|
+
}
|
|
4444
|
+
initializeElement(response, value, null);
|
|
4445
|
+
key = value;
|
|
4446
|
+
}
|
|
4447
|
+
else key = value;
|
|
4448
|
+
return key;
|
|
2391
4449
|
}
|
|
2392
4450
|
return value;
|
|
2393
4451
|
};
|
|
2394
4452
|
}
|
|
4453
|
+
function close(weakResponse) {
|
|
4454
|
+
reportGlobalError(weakResponse, Error("Connection closed."));
|
|
4455
|
+
}
|
|
4456
|
+
function createDebugCallbackFromWritableStream(debugWritable) {
|
|
4457
|
+
var textEncoder = new TextEncoder(),
|
|
4458
|
+
writer = debugWritable.getWriter();
|
|
4459
|
+
return function (message) {
|
|
4460
|
+
"" === message
|
|
4461
|
+
? writer.close()
|
|
4462
|
+
: writer
|
|
4463
|
+
.write(textEncoder.encode(message + "\n"))
|
|
4464
|
+
.catch(console.error);
|
|
4465
|
+
};
|
|
4466
|
+
}
|
|
2395
4467
|
function createResponseFromOptions(options) {
|
|
4468
|
+
var debugChannel =
|
|
4469
|
+
options && void 0 !== options.debugChannel
|
|
4470
|
+
? {
|
|
4471
|
+
hasReadable: void 0 !== options.debugChannel.readable,
|
|
4472
|
+
callback:
|
|
4473
|
+
void 0 !== options.debugChannel.writable
|
|
4474
|
+
? createDebugCallbackFromWritableStream(
|
|
4475
|
+
options.debugChannel.writable
|
|
4476
|
+
)
|
|
4477
|
+
: null
|
|
4478
|
+
}
|
|
4479
|
+
: void 0;
|
|
2396
4480
|
return new ResponseInstance(
|
|
2397
4481
|
null,
|
|
2398
4482
|
null,
|
|
@@ -2405,104 +4489,139 @@
|
|
|
2405
4489
|
: void 0,
|
|
2406
4490
|
options && options.findSourceMapURL ? options.findSourceMapURL : void 0,
|
|
2407
4491
|
options ? !1 !== options.replayConsoleLogs : !0,
|
|
2408
|
-
options && options.environmentName ? options.environmentName : void 0
|
|
2409
|
-
|
|
4492
|
+
options && options.environmentName ? options.environmentName : void 0,
|
|
4493
|
+
debugChannel
|
|
4494
|
+
)._weakResponse;
|
|
2410
4495
|
}
|
|
2411
|
-
function
|
|
4496
|
+
function startReadingFromUniversalStream(
|
|
4497
|
+
response$jscomp$0,
|
|
4498
|
+
stream,
|
|
4499
|
+
onDone
|
|
4500
|
+
) {
|
|
2412
4501
|
function progress(_ref) {
|
|
2413
4502
|
var value = _ref.value;
|
|
2414
|
-
if (_ref.done)
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
4503
|
+
if (_ref.done) return onDone();
|
|
4504
|
+
if (value instanceof ArrayBuffer)
|
|
4505
|
+
processBinaryChunk(
|
|
4506
|
+
response$jscomp$0,
|
|
4507
|
+
streamState,
|
|
4508
|
+
new Uint8Array(value)
|
|
4509
|
+
);
|
|
4510
|
+
else if ("string" === typeof value) {
|
|
4511
|
+
if (
|
|
4512
|
+
((_ref = streamState), void 0 !== response$jscomp$0.weak.deref())
|
|
4513
|
+
) {
|
|
4514
|
+
var response = unwrapWeakResponse(response$jscomp$0),
|
|
4515
|
+
i = 0,
|
|
4516
|
+
rowState = _ref._rowState,
|
|
4517
|
+
rowID = _ref._rowID,
|
|
4518
|
+
rowTag = _ref._rowTag,
|
|
4519
|
+
rowLength = _ref._rowLength,
|
|
4520
|
+
buffer = _ref._buffer,
|
|
2423
4521
|
chunkLength = value.length;
|
|
2424
|
-
|
|
4522
|
+
for (
|
|
4523
|
+
incrementChunkDebugInfo(_ref, chunkLength);
|
|
4524
|
+
i < chunkLength;
|
|
2425
4525
|
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
(buffer.length
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
4526
|
+
) {
|
|
4527
|
+
var lastIdx = -1;
|
|
4528
|
+
switch (rowState) {
|
|
4529
|
+
case 0:
|
|
4530
|
+
lastIdx = value.charCodeAt(i++);
|
|
4531
|
+
58 === lastIdx
|
|
4532
|
+
? (rowState = 1)
|
|
4533
|
+
: (rowID =
|
|
4534
|
+
(rowID << 4) |
|
|
4535
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4536
|
+
continue;
|
|
4537
|
+
case 1:
|
|
4538
|
+
rowState = value.charCodeAt(i);
|
|
4539
|
+
84 === rowState ||
|
|
4540
|
+
65 === rowState ||
|
|
4541
|
+
79 === rowState ||
|
|
4542
|
+
111 === rowState ||
|
|
4543
|
+
85 === rowState ||
|
|
4544
|
+
83 === rowState ||
|
|
4545
|
+
115 === rowState ||
|
|
4546
|
+
76 === rowState ||
|
|
4547
|
+
108 === rowState ||
|
|
4548
|
+
71 === rowState ||
|
|
4549
|
+
103 === rowState ||
|
|
4550
|
+
77 === rowState ||
|
|
4551
|
+
109 === rowState ||
|
|
4552
|
+
86 === rowState
|
|
4553
|
+
? ((rowTag = rowState), (rowState = 2), i++)
|
|
4554
|
+
: (64 < rowState && 91 > rowState) ||
|
|
4555
|
+
114 === rowState ||
|
|
4556
|
+
120 === rowState
|
|
4557
|
+
? ((rowTag = rowState), (rowState = 3), i++)
|
|
4558
|
+
: ((rowTag = 0), (rowState = 3));
|
|
4559
|
+
continue;
|
|
4560
|
+
case 2:
|
|
4561
|
+
lastIdx = value.charCodeAt(i++);
|
|
4562
|
+
44 === lastIdx
|
|
4563
|
+
? (rowState = 4)
|
|
4564
|
+
: (rowLength =
|
|
4565
|
+
(rowLength << 4) |
|
|
4566
|
+
(96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
|
|
4567
|
+
continue;
|
|
4568
|
+
case 3:
|
|
4569
|
+
lastIdx = value.indexOf("\n", i);
|
|
4570
|
+
break;
|
|
4571
|
+
case 4:
|
|
4572
|
+
if (84 !== rowTag)
|
|
4573
|
+
throw Error(
|
|
4574
|
+
"Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams."
|
|
4575
|
+
);
|
|
4576
|
+
if (rowLength < value.length || value.length > 3 * rowLength)
|
|
4577
|
+
throw Error(
|
|
4578
|
+
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
4579
|
+
);
|
|
4580
|
+
lastIdx = value.length;
|
|
4581
|
+
}
|
|
4582
|
+
if (-1 < lastIdx) {
|
|
4583
|
+
if (0 < buffer.length)
|
|
4584
|
+
throw Error(
|
|
4585
|
+
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
4586
|
+
);
|
|
4587
|
+
i = value.slice(i, lastIdx);
|
|
4588
|
+
processFullStringRow(response, _ref, rowID, rowTag, i);
|
|
4589
|
+
i = lastIdx;
|
|
4590
|
+
3 === rowState && i++;
|
|
4591
|
+
rowLength = rowID = rowTag = rowState = 0;
|
|
4592
|
+
buffer.length = 0;
|
|
4593
|
+
} else if (value.length !== i)
|
|
4594
|
+
throw Error(
|
|
4595
|
+
"String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
|
|
4596
|
+
);
|
|
2493
4597
|
}
|
|
4598
|
+
_ref._rowState = rowState;
|
|
4599
|
+
_ref._rowID = rowID;
|
|
4600
|
+
_ref._rowTag = rowTag;
|
|
4601
|
+
_ref._rowLength = rowLength;
|
|
2494
4602
|
}
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
4603
|
+
} else processBinaryChunk(response$jscomp$0, streamState, value);
|
|
4604
|
+
return reader.read().then(progress).catch(error);
|
|
4605
|
+
}
|
|
4606
|
+
function error(e) {
|
|
4607
|
+
reportGlobalError(response$jscomp$0, e);
|
|
4608
|
+
}
|
|
4609
|
+
var streamState = createStreamState(response$jscomp$0, stream),
|
|
4610
|
+
reader = stream.getReader();
|
|
4611
|
+
reader.read().then(progress).catch(error);
|
|
4612
|
+
}
|
|
4613
|
+
function startReadingFromStream(response, stream, onDone, debugValue) {
|
|
4614
|
+
function progress(_ref2) {
|
|
4615
|
+
var value = _ref2.value;
|
|
4616
|
+
if (_ref2.done) return onDone();
|
|
4617
|
+
processBinaryChunk(response, streamState, value);
|
|
4618
|
+
return reader.read().then(progress).catch(error);
|
|
2501
4619
|
}
|
|
2502
4620
|
function error(e) {
|
|
2503
4621
|
reportGlobalError(response, e);
|
|
2504
4622
|
}
|
|
2505
|
-
var
|
|
4623
|
+
var streamState = createStreamState(response, debugValue),
|
|
4624
|
+
reader = stream.getReader();
|
|
2506
4625
|
reader.read().then(progress).catch(error);
|
|
2507
4626
|
}
|
|
2508
4627
|
var React = require("react"),
|
|
@@ -2518,15 +4637,15 @@
|
|
|
2518
4637
|
? flightChunk
|
|
2519
4638
|
: webpackGetChunkFilename(chunkId);
|
|
2520
4639
|
};
|
|
2521
|
-
var
|
|
4640
|
+
var chunkIOInfoCache = new Map(),
|
|
4641
|
+
ReactDOMSharedInternals =
|
|
2522
4642
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
2523
4643
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
2524
4644
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
2525
4645
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
2526
4646
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
2527
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
2528
|
-
|
|
2529
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
4647
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
4648
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
2530
4649
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
2531
4650
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
2532
4651
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -2547,7 +4666,17 @@
|
|
|
2547
4666
|
v8FrameRegExp =
|
|
2548
4667
|
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$/,
|
|
2549
4668
|
jscSpiderMonkeyFrameRegExp = /(?:(.*)@)?(.*):(\d+):(\d+)/,
|
|
4669
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
2550
4670
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
4671
|
+
supportsUserTiming =
|
|
4672
|
+
"undefined" !== typeof console &&
|
|
4673
|
+
"function" === typeof console.timeStamp &&
|
|
4674
|
+
"undefined" !== typeof performance &&
|
|
4675
|
+
"function" === typeof performance.measure,
|
|
4676
|
+
trackNames =
|
|
4677
|
+
"Primary Parallel Parallel\u200b Parallel\u200b\u200b Parallel\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b".split(
|
|
4678
|
+
" "
|
|
4679
|
+
),
|
|
2551
4680
|
prefix,
|
|
2552
4681
|
suffix;
|
|
2553
4682
|
new ("function" === typeof WeakMap ? WeakMap : Map)();
|
|
@@ -2558,6 +4687,7 @@
|
|
|
2558
4687
|
ReactSharedInteralsServer;
|
|
2559
4688
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
2560
4689
|
ReactPromise.prototype.then = function (resolve, reject) {
|
|
4690
|
+
var _this = this;
|
|
2561
4691
|
switch (this.status) {
|
|
2562
4692
|
case "resolved_model":
|
|
2563
4693
|
initializeModelChunk(this);
|
|
@@ -2565,24 +4695,46 @@
|
|
|
2565
4695
|
case "resolved_module":
|
|
2566
4696
|
initializeModuleChunk(this);
|
|
2567
4697
|
}
|
|
4698
|
+
var resolveCallback = resolve,
|
|
4699
|
+
rejectCallback = reject,
|
|
4700
|
+
wrapperPromise = new Promise(function (res, rej) {
|
|
4701
|
+
resolve = function (value) {
|
|
4702
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
4703
|
+
res(value);
|
|
4704
|
+
};
|
|
4705
|
+
reject = function (reason) {
|
|
4706
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
4707
|
+
rej(reason);
|
|
4708
|
+
};
|
|
4709
|
+
});
|
|
4710
|
+
wrapperPromise.then(resolveCallback, rejectCallback);
|
|
2568
4711
|
switch (this.status) {
|
|
2569
4712
|
case "fulfilled":
|
|
2570
|
-
resolve(this.value);
|
|
4713
|
+
"function" === typeof resolve && resolve(this.value);
|
|
2571
4714
|
break;
|
|
2572
4715
|
case "pending":
|
|
2573
4716
|
case "blocked":
|
|
2574
|
-
resolve &&
|
|
4717
|
+
"function" === typeof resolve &&
|
|
2575
4718
|
(null === this.value && (this.value = []),
|
|
2576
4719
|
this.value.push(resolve));
|
|
2577
|
-
reject &&
|
|
4720
|
+
"function" === typeof reject &&
|
|
2578
4721
|
(null === this.reason && (this.reason = []),
|
|
2579
4722
|
this.reason.push(reject));
|
|
2580
4723
|
break;
|
|
4724
|
+
case "halted":
|
|
4725
|
+
break;
|
|
2581
4726
|
default:
|
|
2582
|
-
reject && reject(this.reason);
|
|
4727
|
+
"function" === typeof reject && reject(this.reason);
|
|
2583
4728
|
}
|
|
2584
4729
|
};
|
|
2585
|
-
var
|
|
4730
|
+
var debugChannelRegistry =
|
|
4731
|
+
"function" === typeof FinalizationRegistry
|
|
4732
|
+
? new FinalizationRegistry(closeDebugChannel)
|
|
4733
|
+
: null,
|
|
4734
|
+
initializingHandler = null,
|
|
4735
|
+
initializingChunk = null,
|
|
4736
|
+
mightHaveStaticConstructor = /\bclass\b.*\bstatic\b/,
|
|
4737
|
+
MIN_CHUNK_SIZE = 65536,
|
|
2586
4738
|
supportsCreateTask = !!console.createTask,
|
|
2587
4739
|
fakeFunctionCache = new Map(),
|
|
2588
4740
|
fakeFunctionIdx = 0,
|
|
@@ -2592,6 +4744,7 @@
|
|
|
2592
4744
|
response,
|
|
2593
4745
|
stack,
|
|
2594
4746
|
environmentName,
|
|
4747
|
+
!1,
|
|
2595
4748
|
fakeJSXCallSite
|
|
2596
4749
|
)();
|
|
2597
4750
|
}
|
|
@@ -2602,14 +4755,12 @@
|
|
|
2602
4755
|
),
|
|
2603
4756
|
currentOwnerInDEV = null,
|
|
2604
4757
|
replayConsoleWithCallStack = {
|
|
2605
|
-
react_stack_bottom_frame: function (
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
args
|
|
2612
|
-
) {
|
|
4758
|
+
react_stack_bottom_frame: function (response, payload) {
|
|
4759
|
+
var methodName = payload[0],
|
|
4760
|
+
stackTrace = payload[1],
|
|
4761
|
+
owner = payload[2],
|
|
4762
|
+
env = payload[3];
|
|
4763
|
+
payload = payload.slice(4);
|
|
2613
4764
|
var prevStack = ReactSharedInternals.getCurrentStack;
|
|
2614
4765
|
ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
|
|
2615
4766
|
currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
|
|
@@ -2623,13 +4774,13 @@
|
|
|
2623
4774
|
case "table":
|
|
2624
4775
|
var JSCompiler_inline_result = bind.apply(
|
|
2625
4776
|
console[methodName],
|
|
2626
|
-
[console].concat(
|
|
4777
|
+
[console].concat(payload)
|
|
2627
4778
|
);
|
|
2628
4779
|
break a;
|
|
2629
4780
|
case "assert":
|
|
2630
4781
|
offset = 1;
|
|
2631
4782
|
}
|
|
2632
|
-
var newArgs =
|
|
4783
|
+
var newArgs = payload.slice(0);
|
|
2633
4784
|
"string" === typeof newArgs[offset]
|
|
2634
4785
|
? newArgs.splice(
|
|
2635
4786
|
offset,
|
|
@@ -2642,7 +4793,7 @@
|
|
|
2642
4793
|
: newArgs.splice(
|
|
2643
4794
|
offset,
|
|
2644
4795
|
0,
|
|
2645
|
-
"%c%s%c
|
|
4796
|
+
"%c%s%c",
|
|
2646
4797
|
"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",
|
|
2647
4798
|
" " + env + " ",
|
|
2648
4799
|
""
|
|
@@ -2657,10 +4808,11 @@
|
|
|
2657
4808
|
response,
|
|
2658
4809
|
stackTrace,
|
|
2659
4810
|
env,
|
|
4811
|
+
!1,
|
|
2660
4812
|
JSCompiler_inline_result
|
|
2661
4813
|
);
|
|
2662
4814
|
if (null != owner) {
|
|
2663
|
-
var task = initializeFakeTask(response, owner
|
|
4815
|
+
var task = initializeFakeTask(response, owner);
|
|
2664
4816
|
initializeFakeStack(response, owner);
|
|
2665
4817
|
if (null !== task) {
|
|
2666
4818
|
task.run(callStack);
|
|
@@ -2686,15 +4838,15 @@
|
|
|
2686
4838
|
try {
|
|
2687
4839
|
hook.inject(internals);
|
|
2688
4840
|
} catch (err) {
|
|
2689
|
-
console.error("React instrumentation encountered an error: %
|
|
4841
|
+
console.error("React instrumentation encountered an error: %o.", err);
|
|
2690
4842
|
}
|
|
2691
4843
|
return hook.checkDCE ? !0 : !1;
|
|
2692
4844
|
})({
|
|
2693
4845
|
bundleType: 1,
|
|
2694
|
-
version: "19.
|
|
4846
|
+
version: "19.2.0",
|
|
2695
4847
|
rendererPackageName: "react-server-dom-webpack",
|
|
2696
4848
|
currentDispatcherRef: ReactSharedInternals,
|
|
2697
|
-
reconcilerVersion: "19.
|
|
4849
|
+
reconcilerVersion: "19.2.0",
|
|
2698
4850
|
getCurrentComponentInfo: function () {
|
|
2699
4851
|
return currentOwnerInDEV;
|
|
2700
4852
|
}
|
|
@@ -2703,18 +4855,56 @@
|
|
|
2703
4855
|
var response = createResponseFromOptions(options);
|
|
2704
4856
|
promiseForResponse.then(
|
|
2705
4857
|
function (r) {
|
|
2706
|
-
|
|
4858
|
+
if (
|
|
4859
|
+
options &&
|
|
4860
|
+
options.debugChannel &&
|
|
4861
|
+
options.debugChannel.readable
|
|
4862
|
+
) {
|
|
4863
|
+
var streamDoneCount = 0,
|
|
4864
|
+
handleDone = function () {
|
|
4865
|
+
2 === ++streamDoneCount && close(response);
|
|
4866
|
+
};
|
|
4867
|
+
startReadingFromUniversalStream(
|
|
4868
|
+
response,
|
|
4869
|
+
options.debugChannel.readable,
|
|
4870
|
+
handleDone
|
|
4871
|
+
);
|
|
4872
|
+
startReadingFromStream(response, r.body, handleDone, r);
|
|
4873
|
+
} else
|
|
4874
|
+
startReadingFromStream(
|
|
4875
|
+
response,
|
|
4876
|
+
r.body,
|
|
4877
|
+
close.bind(null, response),
|
|
4878
|
+
r
|
|
4879
|
+
);
|
|
2707
4880
|
},
|
|
2708
4881
|
function (e) {
|
|
2709
4882
|
reportGlobalError(response, e);
|
|
2710
4883
|
}
|
|
2711
4884
|
);
|
|
2712
|
-
return
|
|
4885
|
+
return getRoot(response);
|
|
2713
4886
|
};
|
|
2714
4887
|
exports.createFromReadableStream = function (stream, options) {
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
4888
|
+
var response = createResponseFromOptions(options);
|
|
4889
|
+
if (options && options.debugChannel && options.debugChannel.readable) {
|
|
4890
|
+
var streamDoneCount = 0,
|
|
4891
|
+
handleDone = function () {
|
|
4892
|
+
2 === ++streamDoneCount && close(response);
|
|
4893
|
+
};
|
|
4894
|
+
startReadingFromUniversalStream(
|
|
4895
|
+
response,
|
|
4896
|
+
options.debugChannel.readable,
|
|
4897
|
+
handleDone
|
|
4898
|
+
);
|
|
4899
|
+
startReadingFromStream(response, stream, handleDone, stream);
|
|
4900
|
+
} else
|
|
4901
|
+
startReadingFromStream(
|
|
4902
|
+
response,
|
|
4903
|
+
stream,
|
|
4904
|
+
close.bind(null, response),
|
|
4905
|
+
stream
|
|
4906
|
+
);
|
|
4907
|
+
return getRoot(response);
|
|
2718
4908
|
};
|
|
2719
4909
|
exports.createServerReference = function (
|
|
2720
4910
|
id,
|