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