@cedarjs/vite 7.0.0-canary.3157 → 7.0.0-canary.3159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/react-server-dom-webpack.server.js +1074 -638
- package/package.json +24 -24
|
@@ -54,6 +54,8 @@ var require_react_react_server_production = __commonJS({
|
|
|
54
54
|
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
55
55
|
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
56
56
|
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
57
|
+
var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
|
|
58
|
+
var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
|
|
57
59
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
58
60
|
function getIteratorFn(maybeIterable) {
|
|
59
61
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -198,19 +200,18 @@ var require_react_react_server_production = __commonJS({
|
|
|
198
200
|
}
|
|
199
201
|
function lazyInitializer(payload) {
|
|
200
202
|
if (-1 === payload._status) {
|
|
201
|
-
var ctor = payload._result;
|
|
202
|
-
|
|
203
|
-
ctor.then(
|
|
203
|
+
var ctor = payload._result, thenable = ctor();
|
|
204
|
+
thenable.then(
|
|
204
205
|
function(moduleObject) {
|
|
205
206
|
if (0 === payload._status || -1 === payload._status)
|
|
206
|
-
payload._status = 1, payload._result = moduleObject;
|
|
207
|
+
payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
207
208
|
},
|
|
208
209
|
function(error) {
|
|
209
210
|
if (0 === payload._status || -1 === payload._status)
|
|
210
|
-
payload._status = 2, payload._result = error;
|
|
211
|
+
payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
211
212
|
}
|
|
212
213
|
);
|
|
213
|
-
-1 === payload._status && (payload._status = 0, payload._result =
|
|
214
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
214
215
|
}
|
|
215
216
|
if (1 === payload._status) return payload._result.default;
|
|
216
217
|
throw payload._result;
|
|
@@ -221,7 +222,7 @@ var require_react_react_server_production = __commonJS({
|
|
|
221
222
|
function createCacheNode() {
|
|
222
223
|
return { s: 0, v: void 0, o: null, p: null };
|
|
223
224
|
}
|
|
224
|
-
|
|
225
|
+
var Children = {
|
|
225
226
|
map: mapChildren,
|
|
226
227
|
forEach: function(children, forEachFunc, forEachContext) {
|
|
227
228
|
mapChildren(
|
|
@@ -249,10 +250,13 @@ var require_react_react_server_production = __commonJS({
|
|
|
249
250
|
return children;
|
|
250
251
|
}
|
|
251
252
|
};
|
|
253
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
254
|
+
exports.Children = Children;
|
|
252
255
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
253
256
|
exports.Profiler = REACT_PROFILER_TYPE;
|
|
254
257
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
255
258
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
259
|
+
exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
256
260
|
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
257
261
|
exports.cache = function(fn) {
|
|
258
262
|
return function() {
|
|
@@ -359,7 +363,7 @@ var require_react_react_server_production = __commonJS({
|
|
|
359
363
|
exports.useMemo = function(create, deps) {
|
|
360
364
|
return ReactSharedInternals.H.useMemo(create, deps);
|
|
361
365
|
};
|
|
362
|
-
exports.version = "19.
|
|
366
|
+
exports.version = "19.3.0";
|
|
363
367
|
}
|
|
364
368
|
});
|
|
365
369
|
|
|
@@ -416,6 +420,8 @@ var require_react_react_server_development = __commonJS({
|
|
|
416
420
|
return "SuspenseList";
|
|
417
421
|
case REACT_ACTIVITY_TYPE:
|
|
418
422
|
return "Activity";
|
|
423
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
424
|
+
return "ViewTransition";
|
|
419
425
|
}
|
|
420
426
|
if ("object" === typeof type)
|
|
421
427
|
switch ("number" === typeof type.tag && console.error(
|
|
@@ -679,8 +685,11 @@ var require_react_react_server_development = __commonJS({
|
|
|
679
685
|
}
|
|
680
686
|
function lazyInitializer(payload) {
|
|
681
687
|
if (-1 === payload._status) {
|
|
682
|
-
var ioInfo = payload._ioInfo;
|
|
683
|
-
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now())
|
|
688
|
+
var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
|
|
689
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
|
|
690
|
+
resolveDebugValue = resolve;
|
|
691
|
+
rejectDebugValue = reject;
|
|
692
|
+
}));
|
|
684
693
|
ioInfo = payload._result;
|
|
685
694
|
var thenable = ioInfo();
|
|
686
695
|
thenable.then(
|
|
@@ -689,7 +698,13 @@ var require_react_react_server_development = __commonJS({
|
|
|
689
698
|
payload._status = 1;
|
|
690
699
|
payload._result = moduleObject;
|
|
691
700
|
var _ioInfo = payload._ioInfo;
|
|
692
|
-
null != _ioInfo
|
|
701
|
+
if (null != _ioInfo) {
|
|
702
|
+
_ioInfo.end = performance.now();
|
|
703
|
+
var debugValue = null == moduleObject ? void 0 : moduleObject.default;
|
|
704
|
+
resolveDebugValue(debugValue);
|
|
705
|
+
_ioInfo.value.status = "fulfilled";
|
|
706
|
+
_ioInfo.value.value = debugValue;
|
|
707
|
+
}
|
|
693
708
|
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
694
709
|
}
|
|
695
710
|
},
|
|
@@ -698,14 +713,13 @@ var require_react_react_server_development = __commonJS({
|
|
|
698
713
|
payload._status = 2;
|
|
699
714
|
payload._result = error;
|
|
700
715
|
var _ioInfo2 = payload._ioInfo;
|
|
701
|
-
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
716
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
|
|
702
717
|
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
703
718
|
}
|
|
704
719
|
}
|
|
705
720
|
);
|
|
706
721
|
ioInfo = payload._ioInfo;
|
|
707
722
|
if (null != ioInfo) {
|
|
708
|
-
ioInfo.value = thenable;
|
|
709
723
|
var displayName = thenable.displayName;
|
|
710
724
|
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
711
725
|
}
|
|
@@ -732,7 +746,7 @@ var require_react_react_server_development = __commonJS({
|
|
|
732
746
|
A: null,
|
|
733
747
|
getCurrentStack: null,
|
|
734
748
|
recentlyCreatedOwnerStacks: 0
|
|
735
|
-
}, isArrayImpl = Array.isArray, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), hasOwnProperty = Object.prototype.hasOwnProperty, assign = Object.assign, createTask = console.createTask ? console.createTask : function() {
|
|
749
|
+
}, isArrayImpl = Array.isArray, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), hasOwnProperty = Object.prototype.hasOwnProperty, assign = Object.assign, createTask = console.createTask ? console.createTask : function() {
|
|
736
750
|
return null;
|
|
737
751
|
}, createFakeCallStack = {
|
|
738
752
|
react_stack_bottom_frame: function(callStackForError) {
|
|
@@ -746,7 +760,7 @@ var require_react_react_server_development = __commonJS({
|
|
|
746
760
|
)();
|
|
747
761
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
748
762
|
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g;
|
|
749
|
-
|
|
763
|
+
createFakeCallStack = {
|
|
750
764
|
map: mapChildren,
|
|
751
765
|
forEach: function(children, forEachFunc, forEachContext) {
|
|
752
766
|
mapChildren(
|
|
@@ -777,10 +791,13 @@ var require_react_react_server_development = __commonJS({
|
|
|
777
791
|
return children;
|
|
778
792
|
}
|
|
779
793
|
};
|
|
794
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
795
|
+
exports.Children = createFakeCallStack;
|
|
780
796
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
781
797
|
exports.Profiler = REACT_PROFILER_TYPE;
|
|
782
798
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
783
799
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
800
|
+
exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
784
801
|
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
785
802
|
exports.cache = function(fn) {
|
|
786
803
|
return function() {
|
|
@@ -866,6 +883,7 @@ var require_react_react_server_development = __commonJS({
|
|
|
866
883
|
exports.createElement = function(type, config, children) {
|
|
867
884
|
for (var i = 2; i < arguments.length; i++)
|
|
868
885
|
validateChildKeys(arguments[i]);
|
|
886
|
+
var propName;
|
|
869
887
|
i = {};
|
|
870
888
|
var key = null;
|
|
871
889
|
if (null != config)
|
|
@@ -888,13 +906,13 @@ var require_react_react_server_development = __commonJS({
|
|
|
888
906
|
i,
|
|
889
907
|
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
890
908
|
);
|
|
891
|
-
|
|
909
|
+
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
|
|
892
910
|
return ReactElement(
|
|
893
911
|
type,
|
|
894
912
|
key,
|
|
895
913
|
i,
|
|
896
914
|
getOwner(),
|
|
897
|
-
|
|
915
|
+
childrenLength,
|
|
898
916
|
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
899
917
|
);
|
|
900
918
|
};
|
|
@@ -989,7 +1007,7 @@ var require_react_react_server_development = __commonJS({
|
|
|
989
1007
|
exports.useMemo = function(create, deps) {
|
|
990
1008
|
return resolveDispatcher().useMemo(create, deps);
|
|
991
1009
|
};
|
|
992
|
-
exports.version = "19.
|
|
1010
|
+
exports.version = "19.3.0";
|
|
993
1011
|
})();
|
|
994
1012
|
}
|
|
995
1013
|
});
|
|
@@ -1081,7 +1099,8 @@ var require_react_dom_react_server_production = __commonJS({
|
|
|
1081
1099
|
Internals.d.M(href, {
|
|
1082
1100
|
crossOrigin,
|
|
1083
1101
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
1084
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
1102
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
1103
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
|
|
1085
1104
|
});
|
|
1086
1105
|
}
|
|
1087
1106
|
} else null == options && Internals.d.M(href);
|
|
@@ -1109,11 +1128,13 @@ var require_react_dom_react_server_production = __commonJS({
|
|
|
1109
1128
|
Internals.d.m(href, {
|
|
1110
1129
|
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
1111
1130
|
crossOrigin,
|
|
1112
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1131
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
1132
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
1133
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
|
|
1113
1134
|
});
|
|
1114
1135
|
} else Internals.d.m(href);
|
|
1115
1136
|
};
|
|
1116
|
-
exports.version = "19.
|
|
1137
|
+
exports.version = "19.3.0";
|
|
1117
1138
|
}
|
|
1118
1139
|
});
|
|
1119
1140
|
|
|
@@ -1252,7 +1273,8 @@ var require_react_dom_react_server_development = __commonJS({
|
|
|
1252
1273
|
), Internals.d.M(href, {
|
|
1253
1274
|
crossOrigin: encountered,
|
|
1254
1275
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
1255
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
1276
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
1277
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
|
|
1256
1278
|
});
|
|
1257
1279
|
} else null == options && Internals.d.M(href);
|
|
1258
1280
|
};
|
|
@@ -1297,10 +1319,12 @@ var require_react_dom_react_server_development = __commonJS({
|
|
|
1297
1319
|
), Internals.d.m(href, {
|
|
1298
1320
|
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
1299
1321
|
crossOrigin: encountered,
|
|
1300
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1322
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
1323
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
1324
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
|
|
1301
1325
|
})) : Internals.d.m(href));
|
|
1302
1326
|
};
|
|
1303
|
-
exports.version = "19.
|
|
1327
|
+
exports.version = "19.3.0";
|
|
1304
1328
|
})();
|
|
1305
1329
|
}
|
|
1306
1330
|
});
|
|
@@ -1345,6 +1369,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1345
1369
|
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
1346
1370
|
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
1347
1371
|
var REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel");
|
|
1372
|
+
var REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition");
|
|
1348
1373
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
1349
1374
|
function getIteratorFn(maybeIterable) {
|
|
1350
1375
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -1352,22 +1377,19 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1352
1377
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
1353
1378
|
}
|
|
1354
1379
|
var ASYNC_ITERATOR = Symbol.asyncIterator;
|
|
1380
|
+
var REACT_OPTIMISTIC_KEY = /* @__PURE__ */ Symbol.for("react.optimistic_key");
|
|
1355
1381
|
var scheduleMicrotask = queueMicrotask;
|
|
1356
1382
|
var currentView = null;
|
|
1357
1383
|
var writtenBytes = 0;
|
|
1358
1384
|
var destinationHasCapacity = true;
|
|
1359
|
-
function
|
|
1360
|
-
destination = destination.write(view);
|
|
1361
|
-
destinationHasCapacity = destinationHasCapacity && destination;
|
|
1362
|
-
}
|
|
1363
|
-
function writeChunkAndReturn(destination, chunk) {
|
|
1385
|
+
function writeChunk(destination, chunk) {
|
|
1364
1386
|
if ("string" === typeof chunk) {
|
|
1365
1387
|
if (0 !== chunk.length)
|
|
1366
|
-
if (
|
|
1388
|
+
if (4096 < 3 * chunk.length)
|
|
1367
1389
|
0 < writtenBytes && (writeToDestination(
|
|
1368
1390
|
destination,
|
|
1369
1391
|
currentView.subarray(0, writtenBytes)
|
|
1370
|
-
), currentView = new Uint8Array(
|
|
1392
|
+
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk);
|
|
1371
1393
|
else {
|
|
1372
1394
|
var target = currentView;
|
|
1373
1395
|
0 < writtenBytes && (target = currentView.subarray(writtenBytes));
|
|
@@ -1377,17 +1399,24 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1377
1399
|
read < chunk.length && (writeToDestination(
|
|
1378
1400
|
destination,
|
|
1379
1401
|
currentView.subarray(0, writtenBytes)
|
|
1380
|
-
), currentView = new Uint8Array(
|
|
1402
|
+
), currentView = new Uint8Array(4096), writtenBytes = textEncoder.encodeInto(
|
|
1381
1403
|
chunk.slice(read),
|
|
1382
1404
|
currentView
|
|
1383
1405
|
).written);
|
|
1384
|
-
|
|
1406
|
+
4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0);
|
|
1385
1407
|
}
|
|
1386
1408
|
} else
|
|
1387
|
-
0 !== chunk.byteLength && (
|
|
1409
|
+
0 !== chunk.byteLength && (4096 < chunk.byteLength ? (0 < writtenBytes && (writeToDestination(
|
|
1388
1410
|
destination,
|
|
1389
1411
|
currentView.subarray(0, writtenBytes)
|
|
1390
|
-
), currentView = new Uint8Array(
|
|
1412
|
+
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk)) : (target = currentView.length - writtenBytes, target < chunk.byteLength && (0 === target ? writeToDestination(destination, currentView) : (currentView.set(chunk.subarray(0, target), writtenBytes), writtenBytes += target, writeToDestination(destination, currentView), chunk = chunk.subarray(target)), currentView = new Uint8Array(4096), writtenBytes = 0), currentView.set(chunk, writtenBytes), writtenBytes += chunk.byteLength, 4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0)));
|
|
1413
|
+
}
|
|
1414
|
+
function writeToDestination(destination, view) {
|
|
1415
|
+
destination = destination.write(view);
|
|
1416
|
+
destinationHasCapacity = destinationHasCapacity && destination;
|
|
1417
|
+
}
|
|
1418
|
+
function writeChunkAndReturn(destination, chunk) {
|
|
1419
|
+
writeChunk(destination, chunk);
|
|
1391
1420
|
return destinationHasCapacity;
|
|
1392
1421
|
}
|
|
1393
1422
|
var textEncoder = new util.TextEncoder();
|
|
@@ -1428,7 +1457,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1428
1457
|
};
|
|
1429
1458
|
var PROMISE_PROTOTYPE = Promise.prototype;
|
|
1430
1459
|
var deepProxyHandlers = {
|
|
1431
|
-
get: function(target, name) {
|
|
1460
|
+
get: function(target, name, receiver) {
|
|
1432
1461
|
switch (name) {
|
|
1433
1462
|
case "$$typeof":
|
|
1434
1463
|
return target.$$typeof;
|
|
@@ -1451,9 +1480,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1451
1480
|
case Symbol.toStringTag:
|
|
1452
1481
|
return Object.prototype[Symbol.toStringTag];
|
|
1453
1482
|
case "Provider":
|
|
1454
|
-
|
|
1455
|
-
"Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."
|
|
1456
|
-
);
|
|
1483
|
+
return receiver;
|
|
1457
1484
|
case "then":
|
|
1458
1485
|
throw Error(
|
|
1459
1486
|
"Cannot await or return from a thenable. You cannot await a client module from a server component."
|
|
@@ -1700,7 +1727,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1700
1727
|
});
|
|
1701
1728
|
break;
|
|
1702
1729
|
case "stylesheet":
|
|
1703
|
-
preload(srcSet, "
|
|
1730
|
+
preload(srcSet, "style", {
|
|
1704
1731
|
crossOrigin: props.crossOrigin,
|
|
1705
1732
|
integrity: props.integrity,
|
|
1706
1733
|
nonce: props.nonce,
|
|
@@ -1722,7 +1749,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1722
1749
|
var requestStorage = new async_hooks.AsyncLocalStorage();
|
|
1723
1750
|
var TEMPORARY_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.temporary.reference");
|
|
1724
1751
|
var proxyHandlers = {
|
|
1725
|
-
get: function(target, name) {
|
|
1752
|
+
get: function(target, name, receiver) {
|
|
1726
1753
|
switch (name) {
|
|
1727
1754
|
case "$$typeof":
|
|
1728
1755
|
return target.$$typeof;
|
|
@@ -1741,9 +1768,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1741
1768
|
case Symbol.toStringTag:
|
|
1742
1769
|
return Object.prototype[Symbol.toStringTag];
|
|
1743
1770
|
case "Provider":
|
|
1744
|
-
|
|
1745
|
-
"Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."
|
|
1746
|
-
);
|
|
1771
|
+
return receiver;
|
|
1747
1772
|
case "then":
|
|
1748
1773
|
return;
|
|
1749
1774
|
}
|
|
@@ -1780,7 +1805,12 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1780
1805
|
case "fulfilled":
|
|
1781
1806
|
return thenable.value;
|
|
1782
1807
|
case "rejected":
|
|
1783
|
-
|
|
1808
|
+
thenableState2 = thenable.reason;
|
|
1809
|
+
if (void 0 === thenableState2 && !("reason" in thenable))
|
|
1810
|
+
throw Error(
|
|
1811
|
+
"A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."
|
|
1812
|
+
);
|
|
1813
|
+
throw thenableState2;
|
|
1784
1814
|
default:
|
|
1785
1815
|
"string" === typeof thenable.status ? thenable.then(noop, noop) : (thenableState2 = thenable, thenableState2.status = "pending", thenableState2.then(
|
|
1786
1816
|
function(fulfilledValue) {
|
|
@@ -1860,9 +1890,9 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1860
1890
|
},
|
|
1861
1891
|
useCacheRefresh: function() {
|
|
1862
1892
|
return unsupportedRefresh;
|
|
1863
|
-
}
|
|
1893
|
+
},
|
|
1894
|
+
useEffectEvent: unsupportedHook
|
|
1864
1895
|
};
|
|
1865
|
-
HooksDispatcher.useEffectEvent = unsupportedHook;
|
|
1866
1896
|
function unsupportedHook() {
|
|
1867
1897
|
throw Error("This Hook is not supported in Server Components.");
|
|
1868
1898
|
}
|
|
@@ -1943,6 +1973,8 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1943
1973
|
return "Suspense";
|
|
1944
1974
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
1945
1975
|
return "SuspenseList";
|
|
1976
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
1977
|
+
return "ViewTransition";
|
|
1946
1978
|
}
|
|
1947
1979
|
if ("object" === typeof type)
|
|
1948
1980
|
switch (type.$$typeof) {
|
|
@@ -1996,10 +2028,11 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1996
2028
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1997
2029
|
var ObjectPrototype$1 = Object.prototype;
|
|
1998
2030
|
var stringify = JSON.stringify;
|
|
2031
|
+
var NEXT_TWO_CHUNKS_ARE_ATOMIC = /* @__PURE__ */ Symbol();
|
|
1999
2032
|
function defaultErrorHandler(error) {
|
|
2000
2033
|
console.error(error);
|
|
2001
2034
|
}
|
|
2002
|
-
function RequestInstance(type, model, bundlerConfig, onError,
|
|
2035
|
+
function RequestInstance(type, model, bundlerConfig, onError, onAllReady, onFatalError, identifierPrefix, temporaryReferences) {
|
|
2003
2036
|
if (null !== ReactSharedInternalsServer.A && ReactSharedInternalsServer.A !== DefaultAsyncDispatcher)
|
|
2004
2037
|
throw Error("Currently React only supports one RSC renderer at a time.");
|
|
2005
2038
|
ReactSharedInternalsServer.A = DefaultAsyncDispatcher;
|
|
@@ -2023,12 +2056,13 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2023
2056
|
this.writtenClientReferences = /* @__PURE__ */ new Map();
|
|
2024
2057
|
this.writtenServerReferences = /* @__PURE__ */ new Map();
|
|
2025
2058
|
this.writtenObjects = /* @__PURE__ */ new WeakMap();
|
|
2059
|
+
this.writtenImportStrings = /* @__PURE__ */ new Map();
|
|
2060
|
+
this.writtenImportStringsSize = 0;
|
|
2026
2061
|
this.temporaryReferences = temporaryReferences;
|
|
2027
2062
|
this.identifierPrefix = identifierPrefix || "";
|
|
2028
2063
|
this.identifierCount = 1;
|
|
2029
2064
|
this.taintCleanupQueue = [];
|
|
2030
2065
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
2031
|
-
this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
|
|
2032
2066
|
this.onAllReady = onAllReady;
|
|
2033
2067
|
this.onFatalError = onFatalError;
|
|
2034
2068
|
type = createTask(this, model, null, false, 0, abortSet);
|
|
@@ -2041,22 +2075,36 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2041
2075
|
return store ? store : null;
|
|
2042
2076
|
}
|
|
2043
2077
|
function serializeThenable(request, task, thenable) {
|
|
2044
|
-
var newTask = createTask(
|
|
2045
|
-
request,
|
|
2046
|
-
thenable,
|
|
2047
|
-
task.keyPath,
|
|
2048
|
-
task.implicitSlot,
|
|
2049
|
-
task.formatContext,
|
|
2050
|
-
request.abortableTasks
|
|
2051
|
-
);
|
|
2052
2078
|
switch (thenable.status) {
|
|
2053
2079
|
case "fulfilled":
|
|
2054
|
-
return
|
|
2080
|
+
return task = createTask(
|
|
2081
|
+
request,
|
|
2082
|
+
thenable,
|
|
2083
|
+
task.keyPath,
|
|
2084
|
+
task.implicitSlot,
|
|
2085
|
+
task.formatContext,
|
|
2086
|
+
request.abortableTasks
|
|
2087
|
+
), task.model = thenable.value, pingTask(request, task), task.id;
|
|
2055
2088
|
case "rejected":
|
|
2056
|
-
return
|
|
2089
|
+
return task = createTask(
|
|
2090
|
+
request,
|
|
2091
|
+
thenable,
|
|
2092
|
+
task.keyPath,
|
|
2093
|
+
task.implicitSlot,
|
|
2094
|
+
task.formatContext,
|
|
2095
|
+
request.abortableTasks
|
|
2096
|
+
), erroredTask(request, task, thenable.reason), task.id;
|
|
2057
2097
|
default:
|
|
2098
|
+
var newTask$12 = createTask(
|
|
2099
|
+
request,
|
|
2100
|
+
thenable,
|
|
2101
|
+
task.keyPath,
|
|
2102
|
+
task.implicitSlot,
|
|
2103
|
+
task.formatContext,
|
|
2104
|
+
request.abortableTasks
|
|
2105
|
+
);
|
|
2058
2106
|
if (12 === request.status)
|
|
2059
|
-
return request.abortableTasks.delete(newTask), 21 === request.type ? (haltTask(newTask), finishHaltedTask(newTask, request)) : (task = request.fatalError, abortTask(newTask), finishAbortedTask(newTask, request, task)), newTask.id;
|
|
2107
|
+
return request.abortableTasks.delete(newTask$12), 21 === request.type ? (haltTask(newTask$12), finishHaltedTask(newTask$12, request)) : (task = request.fatalError, abortTask(newTask$12), finishAbortedTask(newTask$12, request, task)), newTask$12.id;
|
|
2060
2108
|
"string" !== typeof thenable.status && (thenable.status = "pending", thenable.then(
|
|
2061
2109
|
function(fulfilledValue) {
|
|
2062
2110
|
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
@@ -2065,17 +2113,17 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2065
2113
|
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
2066
2114
|
}
|
|
2067
2115
|
));
|
|
2116
|
+
thenable.then(
|
|
2117
|
+
function(value) {
|
|
2118
|
+
newTask$12.model = value;
|
|
2119
|
+
pingTask(request, newTask$12);
|
|
2120
|
+
},
|
|
2121
|
+
function(reason) {
|
|
2122
|
+
0 === newTask$12.status && (erroredTask(request, newTask$12, reason), enqueueFlush(request));
|
|
2123
|
+
}
|
|
2124
|
+
);
|
|
2125
|
+
return newTask$12.id;
|
|
2068
2126
|
}
|
|
2069
|
-
thenable.then(
|
|
2070
|
-
function(value) {
|
|
2071
|
-
newTask.model = value;
|
|
2072
|
-
pingTask(request, newTask);
|
|
2073
|
-
},
|
|
2074
|
-
function(reason) {
|
|
2075
|
-
0 === newTask.status && (erroredTask(request, newTask, reason), enqueueFlush(request));
|
|
2076
|
-
}
|
|
2077
|
-
);
|
|
2078
|
-
return newTask.id;
|
|
2079
2127
|
}
|
|
2080
2128
|
function serializeReadableStream(request, task, stream2) {
|
|
2081
2129
|
function progress(entry) {
|
|
@@ -2087,9 +2135,15 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2087
2135
|
), enqueueFlush(request), callOnAllReadyIfReady(request);
|
|
2088
2136
|
else
|
|
2089
2137
|
try {
|
|
2090
|
-
streamTask.model = entry.value,
|
|
2091
|
-
|
|
2092
|
-
|
|
2138
|
+
request.pendingChunks++, streamTask.model = entry.value, isByteStream ? emitTypedArrayChunk(
|
|
2139
|
+
request,
|
|
2140
|
+
streamTask.id,
|
|
2141
|
+
"b",
|
|
2142
|
+
streamTask.model,
|
|
2143
|
+
false
|
|
2144
|
+
) : tryStreamTask(request, streamTask), enqueueFlush(request), reader.read().then(progress, error);
|
|
2145
|
+
} catch (x$13) {
|
|
2146
|
+
error(x$13);
|
|
2093
2147
|
}
|
|
2094
2148
|
}
|
|
2095
2149
|
function error(reason) {
|
|
@@ -2111,7 +2165,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2111
2165
|
} catch (x) {
|
|
2112
2166
|
supportsBYOB = false;
|
|
2113
2167
|
}
|
|
2114
|
-
var reader = stream2.getReader(), streamTask = createTask(
|
|
2168
|
+
var isByteStream = supportsBYOB, reader = stream2.getReader(), streamTask = createTask(
|
|
2115
2169
|
request,
|
|
2116
2170
|
task.model,
|
|
2117
2171
|
task.keyPath,
|
|
@@ -2120,7 +2174,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2120
2174
|
request.abortableTasks
|
|
2121
2175
|
);
|
|
2122
2176
|
request.pendingChunks++;
|
|
2123
|
-
task = streamTask.id.toString(16) + ":" + (
|
|
2177
|
+
task = streamTask.id.toString(16) + ":" + (isByteStream ? "r" : "R") + "\n";
|
|
2124
2178
|
request.completedRegularChunks.push(task);
|
|
2125
2179
|
request.cacheController.signal.addEventListener("abort", abortStream);
|
|
2126
2180
|
reader.read().then(progress, error);
|
|
@@ -2156,8 +2210,8 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2156
2210
|
} else
|
|
2157
2211
|
try {
|
|
2158
2212
|
streamTask.model = entry.value, request.pendingChunks++, tryStreamTask(request, streamTask), enqueueFlush(request), iterator.next().then(progress, error);
|
|
2159
|
-
} catch (x$
|
|
2160
|
-
error(x$
|
|
2213
|
+
} catch (x$14) {
|
|
2214
|
+
error(x$14);
|
|
2161
2215
|
}
|
|
2162
2216
|
}
|
|
2163
2217
|
function error(reason) {
|
|
@@ -2244,7 +2298,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2244
2298
|
props = processServerComponentReturnValue(request, task, Component, props);
|
|
2245
2299
|
Component = task.keyPath;
|
|
2246
2300
|
prevThenableState = task.implicitSlot;
|
|
2247
|
-
null !== key ? task.keyPath = null === Component ? key : Component + "," + key : null === Component && (task.implicitSlot = true);
|
|
2301
|
+
null !== key ? task.keyPath = key === REACT_OPTIMISTIC_KEY || Component === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : null === Component ? key : Component + "," + key : null === Component && (task.implicitSlot = true);
|
|
2248
2302
|
request = renderModelDestructive(request, task, emptyRoot, "", props);
|
|
2249
2303
|
task.keyPath = Component;
|
|
2250
2304
|
task.implicitSlot = prevThenableState;
|
|
@@ -2302,7 +2356,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2302
2356
|
"string" === typeof type && (ref = task.formatContext, init = getChildFormatContext(ref, type, props), ref !== init && null != props.children && outlineModelWithFormatContext(request, props.children, init));
|
|
2303
2357
|
request = key;
|
|
2304
2358
|
key = task.keyPath;
|
|
2305
|
-
null === request ? request = key : null !== key && (request = key + "," + request);
|
|
2359
|
+
null === request ? request = key : null !== key && (request = key === REACT_OPTIMISTIC_KEY || request === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : key + "," + request);
|
|
2306
2360
|
props = [REACT_ELEMENT_TYPE, type, request, props];
|
|
2307
2361
|
task = task.implicitSlot && null !== request ? [props] : props;
|
|
2308
2362
|
return task;
|
|
@@ -2317,8 +2371,18 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2317
2371
|
}));
|
|
2318
2372
|
}
|
|
2319
2373
|
function createTask(request, model, keyPath, implicitSlot, formatContext, abortSet) {
|
|
2374
|
+
return createTaskWithID(
|
|
2375
|
+
request,
|
|
2376
|
+
request.nextChunkId++,
|
|
2377
|
+
model,
|
|
2378
|
+
keyPath,
|
|
2379
|
+
implicitSlot,
|
|
2380
|
+
formatContext,
|
|
2381
|
+
abortSet
|
|
2382
|
+
);
|
|
2383
|
+
}
|
|
2384
|
+
function createTaskWithID(request, id, model, keyPath, implicitSlot, formatContext, abortSet) {
|
|
2320
2385
|
request.pendingChunks++;
|
|
2321
|
-
var id = request.nextChunkId++;
|
|
2322
2386
|
"object" !== typeof model || null === model || null !== keyPath || implicitSlot || request.writtenObjects.set(model, serializeByValueID(id));
|
|
2323
2387
|
var task = {
|
|
2324
2388
|
id,
|
|
@@ -2330,45 +2394,72 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2330
2394
|
ping: function() {
|
|
2331
2395
|
return pingTask(request, task);
|
|
2332
2396
|
},
|
|
2333
|
-
toJSON: function(parentPropertyName, value) {
|
|
2334
|
-
serializedSize += parentPropertyName.length;
|
|
2335
|
-
var prevKeyPath = task.keyPath, prevImplicitSlot = task.implicitSlot;
|
|
2336
|
-
try {
|
|
2337
|
-
var JSCompiler_inline_result = renderModelDestructive(
|
|
2338
|
-
request,
|
|
2339
|
-
task,
|
|
2340
|
-
this,
|
|
2341
|
-
parentPropertyName,
|
|
2342
|
-
value
|
|
2343
|
-
);
|
|
2344
|
-
} catch (thrownValue) {
|
|
2345
|
-
if (parentPropertyName = task.model, parentPropertyName = "object" === typeof parentPropertyName && null !== parentPropertyName && (parentPropertyName.$$typeof === REACT_ELEMENT_TYPE || parentPropertyName.$$typeof === REACT_LAZY_TYPE), 12 === request.status)
|
|
2346
|
-
task.status = 3, 21 === request.type ? (prevKeyPath = request.nextChunkId++, prevKeyPath = parentPropertyName ? serializeLazyID(prevKeyPath) : serializeByValueID(prevKeyPath), JSCompiler_inline_result = prevKeyPath) : (prevKeyPath = request.fatalError, JSCompiler_inline_result = parentPropertyName ? serializeLazyID(prevKeyPath) : serializeByValueID(prevKeyPath));
|
|
2347
|
-
else if (value = thrownValue === SuspenseException ? getSuspendedThenable() : thrownValue, "object" === typeof value && null !== value && "function" === typeof value.then) {
|
|
2348
|
-
JSCompiler_inline_result = createTask(
|
|
2349
|
-
request,
|
|
2350
|
-
task.model,
|
|
2351
|
-
task.keyPath,
|
|
2352
|
-
task.implicitSlot,
|
|
2353
|
-
task.formatContext,
|
|
2354
|
-
request.abortableTasks
|
|
2355
|
-
);
|
|
2356
|
-
var ping = JSCompiler_inline_result.ping;
|
|
2357
|
-
value.then(ping, ping);
|
|
2358
|
-
JSCompiler_inline_result.thenableState = getThenableStateAfterSuspending();
|
|
2359
|
-
task.keyPath = prevKeyPath;
|
|
2360
|
-
task.implicitSlot = prevImplicitSlot;
|
|
2361
|
-
JSCompiler_inline_result = parentPropertyName ? serializeLazyID(JSCompiler_inline_result.id) : serializeByValueID(JSCompiler_inline_result.id);
|
|
2362
|
-
} else
|
|
2363
|
-
task.keyPath = prevKeyPath, task.implicitSlot = prevImplicitSlot, request.pendingChunks++, prevKeyPath = request.nextChunkId++, prevImplicitSlot = logRecoverableError(request, value, task), emitErrorChunk(request, prevKeyPath, prevImplicitSlot), JSCompiler_inline_result = parentPropertyName ? serializeLazyID(prevKeyPath) : serializeByValueID(prevKeyPath);
|
|
2364
|
-
}
|
|
2365
|
-
return JSCompiler_inline_result;
|
|
2366
|
-
},
|
|
2367
2397
|
thenableState: null
|
|
2368
2398
|
};
|
|
2369
2399
|
abortSet.add(task);
|
|
2370
2400
|
return task;
|
|
2371
2401
|
}
|
|
2402
|
+
function resolveModel(request, task, parent, parentPropertyName, value) {
|
|
2403
|
+
var jsonValue = value;
|
|
2404
|
+
null !== value && "object" === typeof value && "function" === typeof value.toJSON && (jsonValue = value.toJSON(parentPropertyName));
|
|
2405
|
+
serializedSize += parentPropertyName.length;
|
|
2406
|
+
value = task.keyPath;
|
|
2407
|
+
var prevImplicitSlot = task.implicitSlot;
|
|
2408
|
+
try {
|
|
2409
|
+
var JSCompiler_inline_result = renderModelDestructive(
|
|
2410
|
+
request,
|
|
2411
|
+
task,
|
|
2412
|
+
parent,
|
|
2413
|
+
parentPropertyName,
|
|
2414
|
+
jsonValue
|
|
2415
|
+
);
|
|
2416
|
+
} catch (thrownValue) {
|
|
2417
|
+
parent = task.model, parent = "object" === typeof parent && null !== parent && (parent.$$typeof === REACT_ELEMENT_TYPE || parent.$$typeof === REACT_LAZY_TYPE), 12 === request.status ? (task.status = 3, 21 === request.type ? (value = request.nextChunkId++, value = parent ? serializeLazyID(value) : serializeByValueID(value), JSCompiler_inline_result = value) : (value = request.fatalError, JSCompiler_inline_result = parent ? serializeLazyID(value) : serializeByValueID(value))) : (parentPropertyName = thrownValue === SuspenseException ? getSuspendedThenable() : thrownValue, "object" === typeof parentPropertyName && null !== parentPropertyName && "function" === typeof parentPropertyName.then ? (jsonValue = createTask(
|
|
2418
|
+
request,
|
|
2419
|
+
task.model,
|
|
2420
|
+
task.keyPath,
|
|
2421
|
+
task.implicitSlot,
|
|
2422
|
+
task.formatContext,
|
|
2423
|
+
request.abortableTasks
|
|
2424
|
+
), JSCompiler_inline_result = jsonValue.ping, parentPropertyName.then(
|
|
2425
|
+
JSCompiler_inline_result,
|
|
2426
|
+
JSCompiler_inline_result
|
|
2427
|
+
), jsonValue.thenableState = getThenableStateAfterSuspending(), task.keyPath = value, task.implicitSlot = prevImplicitSlot, JSCompiler_inline_result = parent ? serializeLazyID(jsonValue.id) : serializeByValueID(jsonValue.id)) : (task.keyPath = value, task.implicitSlot = prevImplicitSlot, request.pendingChunks++, value = request.nextChunkId++, prevImplicitSlot = logRecoverableError(
|
|
2428
|
+
request,
|
|
2429
|
+
parentPropertyName,
|
|
2430
|
+
task
|
|
2431
|
+
), emitErrorChunk(request, value, prevImplicitSlot), JSCompiler_inline_result = parent ? serializeLazyID(value) : serializeByValueID(value)));
|
|
2432
|
+
}
|
|
2433
|
+
value = JSCompiler_inline_result;
|
|
2434
|
+
if (null === value || "object" !== typeof value) return value;
|
|
2435
|
+
if (isArrayImpl(value)) {
|
|
2436
|
+
var resolved$16 = [];
|
|
2437
|
+
for (prevImplicitSlot = 0; prevImplicitSlot < value.length; prevImplicitSlot++)
|
|
2438
|
+
resolved$16[prevImplicitSlot] = resolveModel(
|
|
2439
|
+
request,
|
|
2440
|
+
task,
|
|
2441
|
+
value,
|
|
2442
|
+
"" + prevImplicitSlot,
|
|
2443
|
+
value[prevImplicitSlot]
|
|
2444
|
+
);
|
|
2445
|
+
return resolved$16;
|
|
2446
|
+
}
|
|
2447
|
+
prevImplicitSlot = {};
|
|
2448
|
+
for (resolved$16 in value)
|
|
2449
|
+
hasOwnProperty.call(value, resolved$16) && (parent = resolveModel(
|
|
2450
|
+
request,
|
|
2451
|
+
task,
|
|
2452
|
+
value,
|
|
2453
|
+
resolved$16,
|
|
2454
|
+
value[resolved$16]
|
|
2455
|
+
), "__proto__" === resolved$16 ? Object.defineProperty(prevImplicitSlot, resolved$16, {
|
|
2456
|
+
value: parent,
|
|
2457
|
+
enumerable: true,
|
|
2458
|
+
writable: true,
|
|
2459
|
+
configurable: true
|
|
2460
|
+
}) : prevImplicitSlot[resolved$16] = parent);
|
|
2461
|
+
return prevImplicitSlot;
|
|
2462
|
+
}
|
|
2372
2463
|
function serializeByValueID(id) {
|
|
2373
2464
|
return "$" + id.toString(16);
|
|
2374
2465
|
}
|
|
@@ -2401,8 +2492,27 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2401
2492
|
'The module "' + modulePath + '" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.'
|
|
2402
2493
|
);
|
|
2403
2494
|
var JSCompiler_inline_result = true === resolvedModuleData.async || true === clientReference.$$async ? [resolvedModuleData.id, resolvedModuleData.chunks, existingId, 1] : [resolvedModuleData.id, resolvedModuleData.chunks, existingId];
|
|
2495
|
+
var copy = transformImportMetadata(request, JSCompiler_inline_result, 0);
|
|
2496
|
+
if (copy !== NOT_PLAIN_IMPORT_METADATA)
|
|
2497
|
+
var JSCompiler_temp = stringify(copy);
|
|
2498
|
+
else
|
|
2499
|
+
b: {
|
|
2500
|
+
clientReference = importStringRequest;
|
|
2501
|
+
importStringRequest = request;
|
|
2502
|
+
try {
|
|
2503
|
+
JSCompiler_temp = stringify(
|
|
2504
|
+
JSCompiler_inline_result,
|
|
2505
|
+
importMetadataReplacer
|
|
2506
|
+
);
|
|
2507
|
+
break b;
|
|
2508
|
+
} finally {
|
|
2509
|
+
importStringRequest = clientReference;
|
|
2510
|
+
}
|
|
2511
|
+
JSCompiler_temp = void 0;
|
|
2512
|
+
}
|
|
2513
|
+
var JSCompiler_inline_result$jscomp$0 = JSCompiler_temp;
|
|
2404
2514
|
request.pendingChunks++;
|
|
2405
|
-
var importId = request.nextChunkId++,
|
|
2515
|
+
var importId = request.nextChunkId++, processedChunk = importId.toString(16) + ":I" + JSCompiler_inline_result$jscomp$0 + "\n";
|
|
2406
2516
|
request.completedImportChunks.push(processedChunk);
|
|
2407
2517
|
writtenClientReferences.set(clientReferenceKey, importId);
|
|
2408
2518
|
return parent[0] === REACT_ELEMENT_TYPE && "1" === parentPropertyName ? serializeLazyID(importId) : serializeByValueID(importId);
|
|
@@ -2453,6 +2563,24 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2453
2563
|
reader.read().then(progress).catch(error);
|
|
2454
2564
|
return "$B" + newTask.id.toString(16);
|
|
2455
2565
|
}
|
|
2566
|
+
function escapeStringValue(value) {
|
|
2567
|
+
return "$" === value[0] ? "$" + value : value;
|
|
2568
|
+
}
|
|
2569
|
+
function serializeImportString(request, value) {
|
|
2570
|
+
if (16 > value.length) return escapeStringValue(value);
|
|
2571
|
+
var writtenStrings = request.writtenImportStrings, existing = writtenStrings.get(value);
|
|
2572
|
+
if (void 0 !== existing) return existing;
|
|
2573
|
+
existing = request.writtenImportStringsSize + value.length;
|
|
2574
|
+
if (32768 < existing) return escapeStringValue(value);
|
|
2575
|
+
request.writtenImportStringsSize = existing;
|
|
2576
|
+
request.pendingChunks++;
|
|
2577
|
+
existing = request.nextChunkId++;
|
|
2578
|
+
var json = stringify(escapeStringValue(value));
|
|
2579
|
+
request.completedImportChunks.push(existing.toString(16) + ":" + json + "\n");
|
|
2580
|
+
request = serializeByValueID(existing);
|
|
2581
|
+
writtenStrings.set(value, request);
|
|
2582
|
+
return request;
|
|
2583
|
+
}
|
|
2456
2584
|
var modelRoot = false;
|
|
2457
2585
|
function renderModelDestructive(request, task, parent, parentPropertyName, value) {
|
|
2458
2586
|
task.model = value;
|
|
@@ -2486,10 +2614,16 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2486
2614
|
case REACT_LAZY_TYPE:
|
|
2487
2615
|
if (3200 < serializedSize) return deferTask(request, task);
|
|
2488
2616
|
task.thenableState = null;
|
|
2489
|
-
|
|
2490
|
-
value =
|
|
2617
|
+
elementReference = value._init;
|
|
2618
|
+
value = elementReference(value._payload);
|
|
2491
2619
|
if (12 === request.status) throw null;
|
|
2492
|
-
return renderModelDestructive(
|
|
2620
|
+
return renderModelDestructive(
|
|
2621
|
+
request,
|
|
2622
|
+
task,
|
|
2623
|
+
parent,
|
|
2624
|
+
parentPropertyName,
|
|
2625
|
+
value
|
|
2626
|
+
);
|
|
2493
2627
|
case REACT_LEGACY_ELEMENT_TYPE:
|
|
2494
2628
|
throw Error(
|
|
2495
2629
|
'A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.'
|
|
@@ -2602,15 +2736,8 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2602
2736
|
);
|
|
2603
2737
|
return value;
|
|
2604
2738
|
}
|
|
2605
|
-
if ("string" === typeof value)
|
|
2606
|
-
serializedSize += value.length;
|
|
2607
|
-
if ("Z" === value[value.length - 1] && parent[parentPropertyName] instanceof Date)
|
|
2608
|
-
return "$D" + value;
|
|
2609
|
-
if (1024 <= value.length && null !== byteLengthOfChunk)
|
|
2610
|
-
return request.pendingChunks++, task = request.nextChunkId++, emitTextChunk(request, task, value, false), serializeByValueID(task);
|
|
2611
|
-
request = "$" === value[0] ? "$" + value : value;
|
|
2612
|
-
return request;
|
|
2613
|
-
}
|
|
2739
|
+
if ("string" === typeof value)
|
|
2740
|
+
return serializedSize += value.length, "Z" === value[value.length - 1] && parent[parentPropertyName] instanceof Date ? "$D" + value : 1024 <= value.length && null !== byteLengthOfChunk ? (request.pendingChunks++, task = request.nextChunkId++, emitTextChunk(request, task, value, false), serializeByValueID(task)) : escapeStringValue(value);
|
|
2614
2741
|
if ("boolean" === typeof value) return value;
|
|
2615
2742
|
if ("number" === typeof value)
|
|
2616
2743
|
return Number.isFinite(value) ? 0 === value && -Infinity === 1 / value ? "$-0" : value : Infinity === value ? "$Infinity" : -Infinity === value ? "$-Infinity" : "$NaN";
|
|
@@ -2696,6 +2823,60 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2696
2823
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
|
2697
2824
|
request.completedErrorChunks.push(id);
|
|
2698
2825
|
}
|
|
2826
|
+
var importStringRequest = null;
|
|
2827
|
+
function importMetadataReplacer(key, value) {
|
|
2828
|
+
return "string" === typeof value ? (key = importStringRequest, null === key ? escapeStringValue(value) : serializeImportString(key, value)) : value;
|
|
2829
|
+
}
|
|
2830
|
+
var NOT_PLAIN_IMPORT_METADATA = {};
|
|
2831
|
+
function transformImportMetadata(request, value, depth) {
|
|
2832
|
+
switch (typeof value) {
|
|
2833
|
+
case "string":
|
|
2834
|
+
return serializeImportString(request, value);
|
|
2835
|
+
case "number":
|
|
2836
|
+
case "boolean":
|
|
2837
|
+
case "undefined":
|
|
2838
|
+
return value;
|
|
2839
|
+
case "object":
|
|
2840
|
+
if (null === value) return null;
|
|
2841
|
+
if (16 < depth || "function" === typeof value.toJSON)
|
|
2842
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
2843
|
+
if (isArrayImpl(value)) {
|
|
2844
|
+
for (var length = value.length, copy = Array(length), i = 0; i < length; i++) {
|
|
2845
|
+
var element = value[i];
|
|
2846
|
+
if ("string" === typeof element)
|
|
2847
|
+
copy[i] = serializeImportString(request, element);
|
|
2848
|
+
else {
|
|
2849
|
+
element = transformImportMetadata(request, element, depth + 1);
|
|
2850
|
+
if (element === NOT_PLAIN_IMPORT_METADATA)
|
|
2851
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
2852
|
+
copy[i] = element;
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
return copy;
|
|
2856
|
+
}
|
|
2857
|
+
length = getPrototypeOf(value);
|
|
2858
|
+
if (length !== ObjectPrototype$1 && null !== length)
|
|
2859
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
2860
|
+
length = Object.keys(value);
|
|
2861
|
+
copy = {};
|
|
2862
|
+
for (i = 0; i < length.length; i++) {
|
|
2863
|
+
element = length[i];
|
|
2864
|
+
if (element in ObjectPrototype$1) return NOT_PLAIN_IMPORT_METADATA;
|
|
2865
|
+
var element$25 = value[element];
|
|
2866
|
+
if ("string" === typeof element$25)
|
|
2867
|
+
copy[element] = serializeImportString(request, element$25);
|
|
2868
|
+
else {
|
|
2869
|
+
element$25 = transformImportMetadata(request, element$25, depth + 1);
|
|
2870
|
+
if (element$25 === NOT_PLAIN_IMPORT_METADATA)
|
|
2871
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
2872
|
+
copy[element] = element$25;
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
return copy;
|
|
2876
|
+
default:
|
|
2877
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2699
2880
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
2700
2881
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
2701
2882
|
typedArray = new Uint8Array(
|
|
@@ -2705,7 +2886,11 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2705
2886
|
);
|
|
2706
2887
|
debug = typedArray.byteLength;
|
|
2707
2888
|
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
|
2708
|
-
request.completedRegularChunks.push(
|
|
2889
|
+
request.completedRegularChunks.push(
|
|
2890
|
+
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
2891
|
+
id,
|
|
2892
|
+
typedArray
|
|
2893
|
+
);
|
|
2709
2894
|
}
|
|
2710
2895
|
function emitTextChunk(request, id, text, debug) {
|
|
2711
2896
|
if (null === byteLengthOfChunk)
|
|
@@ -2715,11 +2900,17 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2715
2900
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
2716
2901
|
debug = byteLengthOfChunk(text);
|
|
2717
2902
|
id = id.toString(16) + ":T" + debug.toString(16) + ",";
|
|
2718
|
-
request.completedRegularChunks.push(id, text);
|
|
2903
|
+
request.completedRegularChunks.push(NEXT_TWO_CHUNKS_ARE_ATOMIC, id, text);
|
|
2719
2904
|
}
|
|
2720
2905
|
function emitChunk(request, task, value) {
|
|
2721
2906
|
var id = task.id;
|
|
2722
|
-
"string" === typeof value && null !== byteLengthOfChunk ? emitTextChunk(request, id, value, false) : value instanceof ArrayBuffer ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value), false) : value instanceof Int8Array ? emitTypedArrayChunk(request, id, "O", value, false) : value instanceof Uint8Array ? emitTypedArrayChunk(request, id, "o", value, false) : value instanceof Uint8ClampedArray ? emitTypedArrayChunk(request, id, "U", value, false) : value instanceof Int16Array ? emitTypedArrayChunk(request, id, "S", value, false) : value instanceof Uint16Array ? emitTypedArrayChunk(request, id, "s", value, false) : value instanceof Int32Array ? emitTypedArrayChunk(request, id, "L", value, false) : value instanceof Uint32Array ? emitTypedArrayChunk(request, id, "l", value, false) : value instanceof Float32Array ? emitTypedArrayChunk(request, id, "G", value, false) : value instanceof Float64Array ? emitTypedArrayChunk(request, id, "g", value, false) : value instanceof BigInt64Array ? emitTypedArrayChunk(request, id, "M", value, false) : value instanceof BigUint64Array ? emitTypedArrayChunk(request, id, "m", value, false) : value instanceof DataView ? emitTypedArrayChunk(request, id, "V", value, false) : (value =
|
|
2907
|
+
"string" === typeof value && null !== byteLengthOfChunk ? emitTextChunk(request, id, value, false) : value instanceof ArrayBuffer ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value), false) : value instanceof Int8Array ? emitTypedArrayChunk(request, id, "O", value, false) : value instanceof Uint8Array ? emitTypedArrayChunk(request, id, "o", value, false) : value instanceof Uint8ClampedArray ? emitTypedArrayChunk(request, id, "U", value, false) : value instanceof Int16Array ? emitTypedArrayChunk(request, id, "S", value, false) : value instanceof Uint16Array ? emitTypedArrayChunk(request, id, "s", value, false) : value instanceof Int32Array ? emitTypedArrayChunk(request, id, "L", value, false) : value instanceof Uint32Array ? emitTypedArrayChunk(request, id, "l", value, false) : value instanceof Float32Array ? emitTypedArrayChunk(request, id, "G", value, false) : value instanceof Float64Array ? emitTypedArrayChunk(request, id, "g", value, false) : value instanceof BigInt64Array ? emitTypedArrayChunk(request, id, "M", value, false) : value instanceof BigUint64Array ? emitTypedArrayChunk(request, id, "m", value, false) : value instanceof DataView ? emitTypedArrayChunk(request, id, "V", value, false) : (value = resolveModel(
|
|
2908
|
+
request,
|
|
2909
|
+
task,
|
|
2910
|
+
{ "": value },
|
|
2911
|
+
"",
|
|
2912
|
+
value
|
|
2913
|
+
), value = stringify(value), task = task.id.toString(16) + ":" + value + "\n", request.completedRegularChunks.push(task));
|
|
2723
2914
|
}
|
|
2724
2915
|
function erroredTask(request, task, error) {
|
|
2725
2916
|
task.status = 4;
|
|
@@ -2817,7 +3008,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2817
3008
|
function flushCompletedChunks(request) {
|
|
2818
3009
|
var destination = request.destination;
|
|
2819
3010
|
if (null !== destination) {
|
|
2820
|
-
currentView = new Uint8Array(
|
|
3011
|
+
currentView = new Uint8Array(4096);
|
|
2821
3012
|
writtenBytes = 0;
|
|
2822
3013
|
destinationHasCapacity = true;
|
|
2823
3014
|
try {
|
|
@@ -2837,12 +3028,27 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2837
3028
|
}
|
|
2838
3029
|
hintChunks.splice(0, i);
|
|
2839
3030
|
var regularChunks = request.completedRegularChunks;
|
|
2840
|
-
for (i = 0; i < regularChunks.length; i++)
|
|
2841
|
-
|
|
3031
|
+
for (i = 0; i < regularChunks.length; i++) {
|
|
3032
|
+
var item = regularChunks[i];
|
|
3033
|
+
importsChunks = void 0;
|
|
3034
|
+
if (item === NEXT_TWO_CHUNKS_ARE_ATOMIC) {
|
|
3035
|
+
if (i + 2 >= regularChunks.length)
|
|
3036
|
+
throw Error("A chunk pair is incomplete. This is a bug in React.");
|
|
3037
|
+
request.pendingChunks -= 2;
|
|
3038
|
+
writeChunk(destination, regularChunks[i + 1]);
|
|
3039
|
+
importsChunks = writeChunkAndReturn(
|
|
3040
|
+
destination,
|
|
3041
|
+
regularChunks[i + 2]
|
|
3042
|
+
);
|
|
3043
|
+
i += 2;
|
|
3044
|
+
} else
|
|
3045
|
+
request.pendingChunks--, importsChunks = writeChunkAndReturn(destination, item);
|
|
3046
|
+
if (!importsChunks) {
|
|
2842
3047
|
request.destination = null;
|
|
2843
3048
|
i++;
|
|
2844
3049
|
break;
|
|
2845
3050
|
}
|
|
3051
|
+
}
|
|
2846
3052
|
regularChunks.splice(0, i);
|
|
2847
3053
|
var errorChunks = request.completedErrorChunks;
|
|
2848
3054
|
for (i = 0; i < errorChunks.length; i++)
|
|
@@ -2917,6 +3123,15 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2917
3123
|
logRecoverableError(request, error, null), fatalError(request, error);
|
|
2918
3124
|
}
|
|
2919
3125
|
}
|
|
3126
|
+
function attachAbortSignal(request, signal) {
|
|
3127
|
+
signal.aborted ? abort(request, signal.reason) : signal.addEventListener(
|
|
3128
|
+
"abort",
|
|
3129
|
+
function() {
|
|
3130
|
+
abort(request, signal.reason);
|
|
3131
|
+
},
|
|
3132
|
+
{ signal: request.cacheController.signal }
|
|
3133
|
+
);
|
|
3134
|
+
}
|
|
2920
3135
|
function abort(request, reason) {
|
|
2921
3136
|
if (!(11 < request.status))
|
|
2922
3137
|
try {
|
|
@@ -2951,8 +3166,8 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2951
3166
|
onAllReady();
|
|
2952
3167
|
flushCompletedChunks(request);
|
|
2953
3168
|
}
|
|
2954
|
-
} catch (error$
|
|
2955
|
-
logRecoverableError(request, error$
|
|
3169
|
+
} catch (error$32) {
|
|
3170
|
+
logRecoverableError(request, error$32, null), fatalError(request, error$32);
|
|
2956
3171
|
}
|
|
2957
3172
|
}
|
|
2958
3173
|
function resolveServerReference(bundlerConfig, id) {
|
|
@@ -3028,37 +3243,42 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3028
3243
|
this.reason = reason;
|
|
3029
3244
|
}
|
|
3030
3245
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
3031
|
-
ReactPromise.prototype
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3246
|
+
Object.defineProperty(ReactPromise.prototype, "then", {
|
|
3247
|
+
writable: true,
|
|
3248
|
+
enumerable: true,
|
|
3249
|
+
configurable: true,
|
|
3250
|
+
value: function(resolve, reject) {
|
|
3251
|
+
switch (this.status) {
|
|
3252
|
+
case "resolved_model":
|
|
3253
|
+
initializeModelChunk(this);
|
|
3254
|
+
}
|
|
3255
|
+
switch (this.status) {
|
|
3256
|
+
case "fulfilled":
|
|
3257
|
+
if ("function" === typeof resolve) {
|
|
3258
|
+
for (var inspectedValue = this.value, cycleProtection = 0, visited = /* @__PURE__ */ new Set(); inspectedValue instanceof ReactPromise; ) {
|
|
3259
|
+
cycleProtection++;
|
|
3260
|
+
if (inspectedValue === this || visited.has(inspectedValue) || 1e3 < cycleProtection) {
|
|
3261
|
+
"function" === typeof reject && reject(Error("Cannot have cyclic thenables."));
|
|
3262
|
+
return;
|
|
3263
|
+
}
|
|
3264
|
+
visited.add(inspectedValue);
|
|
3265
|
+
if ("fulfilled" === inspectedValue.status)
|
|
3266
|
+
inspectedValue = inspectedValue.value;
|
|
3267
|
+
else break;
|
|
3044
3268
|
}
|
|
3045
|
-
|
|
3046
|
-
if ("fulfilled" === inspectedValue.status)
|
|
3047
|
-
inspectedValue = inspectedValue.value;
|
|
3048
|
-
else break;
|
|
3269
|
+
resolve(this.value);
|
|
3049
3270
|
}
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
"function" === typeof reject && reject(this.reason);
|
|
3271
|
+
break;
|
|
3272
|
+
case "pending":
|
|
3273
|
+
case "blocked":
|
|
3274
|
+
"function" === typeof resolve && (null === this.value && (this.value = []), this.value.push(resolve));
|
|
3275
|
+
"function" === typeof reject && (null === this.reason && (this.reason = []), this.reason.push(reject));
|
|
3276
|
+
break;
|
|
3277
|
+
default:
|
|
3278
|
+
"function" === typeof reject && reject(this.reason);
|
|
3279
|
+
}
|
|
3060
3280
|
}
|
|
3061
|
-
};
|
|
3281
|
+
});
|
|
3062
3282
|
var ObjectPrototype = Object.prototype;
|
|
3063
3283
|
var ArrayPrototype = Array.prototype;
|
|
3064
3284
|
function wakeChunk(response, listeners, value, chunk) {
|
|
@@ -3169,7 +3389,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3169
3389
|
else if (cachedPromise instanceof ReactPromise)
|
|
3170
3390
|
id = Promise.resolve(cachedPromise);
|
|
3171
3391
|
else
|
|
3172
|
-
return cachedPromise = requireModule(serverReference), id = blockedPromise, id.status = "fulfilled", id.value = cachedPromise;
|
|
3392
|
+
return cachedPromise = requireModule(serverReference), id = blockedPromise, id.status = "fulfilled", id.value = cachedPromise, id.reason = null, cachedPromise;
|
|
3173
3393
|
if (initializingHandler) {
|
|
3174
3394
|
var handler = initializingHandler;
|
|
3175
3395
|
handler.deps++;
|
|
@@ -3489,12 +3709,12 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3489
3709
|
"fulfilled" === chunk.status ? enqueue(chunk.value) : (chunk.then(enqueue, flightController.error), previousBlockedChunk = chunk);
|
|
3490
3710
|
} else {
|
|
3491
3711
|
chunk = previousBlockedChunk;
|
|
3492
|
-
var chunk$
|
|
3493
|
-
chunk$
|
|
3494
|
-
previousBlockedChunk = chunk$
|
|
3712
|
+
var chunk$37 = new ReactPromise("pending", null, null);
|
|
3713
|
+
chunk$37.then(enqueue, flightController.error);
|
|
3714
|
+
previousBlockedChunk = chunk$37;
|
|
3495
3715
|
chunk.then(function() {
|
|
3496
|
-
previousBlockedChunk === chunk$
|
|
3497
|
-
resolveModelChunk(response, chunk$
|
|
3716
|
+
previousBlockedChunk === chunk$37 && (previousBlockedChunk = null);
|
|
3717
|
+
resolveModelChunk(response, chunk$37, json, -1);
|
|
3498
3718
|
});
|
|
3499
3719
|
}
|
|
3500
3720
|
},
|
|
@@ -3803,7 +4023,11 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3803
4023
|
arrayRoot
|
|
3804
4024
|
);
|
|
3805
4025
|
case "B":
|
|
3806
|
-
|
|
4026
|
+
obj = parseInt(value.slice(2), 16);
|
|
4027
|
+
response = response._formData.data.get(response._prefix + obj);
|
|
4028
|
+
if (!(response instanceof Blob))
|
|
4029
|
+
throw Error("Referenced Blob is not a Blob.");
|
|
4030
|
+
return response;
|
|
3807
4031
|
case "R":
|
|
3808
4032
|
return parseReadableStream(response, value, void 0);
|
|
3809
4033
|
case "r":
|
|
@@ -4095,7 +4319,6 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4095
4319
|
model,
|
|
4096
4320
|
webpackMap,
|
|
4097
4321
|
options ? options.onError : void 0,
|
|
4098
|
-
options ? options.onPostpone : void 0,
|
|
4099
4322
|
function() {
|
|
4100
4323
|
var writable, stream2 = new ReadableStream(
|
|
4101
4324
|
{
|
|
@@ -4119,17 +4342,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4119
4342
|
options ? options.identifierPrefix : void 0,
|
|
4120
4343
|
options ? options.temporaryReferences : void 0
|
|
4121
4344
|
);
|
|
4122
|
-
|
|
4123
|
-
var signal = options.signal;
|
|
4124
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
4125
|
-
else {
|
|
4126
|
-
var listener = function() {
|
|
4127
|
-
abort(request, signal.reason);
|
|
4128
|
-
signal.removeEventListener("abort", listener);
|
|
4129
|
-
};
|
|
4130
|
-
signal.addEventListener("abort", listener);
|
|
4131
|
-
}
|
|
4132
|
-
}
|
|
4345
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
4133
4346
|
startWork(request);
|
|
4134
4347
|
});
|
|
4135
4348
|
};
|
|
@@ -4140,7 +4353,6 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4140
4353
|
model,
|
|
4141
4354
|
webpackMap,
|
|
4142
4355
|
options ? options.onError : void 0,
|
|
4143
|
-
options ? options.onPostpone : void 0,
|
|
4144
4356
|
function() {
|
|
4145
4357
|
var readable = new stream.Readable({
|
|
4146
4358
|
read: function() {
|
|
@@ -4153,17 +4365,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4153
4365
|
options ? options.identifierPrefix : void 0,
|
|
4154
4366
|
options ? options.temporaryReferences : void 0
|
|
4155
4367
|
);
|
|
4156
|
-
|
|
4157
|
-
var signal = options.signal;
|
|
4158
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
4159
|
-
else {
|
|
4160
|
-
var listener = function() {
|
|
4161
|
-
abort(request, signal.reason);
|
|
4162
|
-
signal.removeEventListener("abort", listener);
|
|
4163
|
-
};
|
|
4164
|
-
signal.addEventListener("abort", listener);
|
|
4165
|
-
}
|
|
4166
|
-
}
|
|
4368
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
4167
4369
|
startWork(request);
|
|
4168
4370
|
});
|
|
4169
4371
|
};
|
|
@@ -4192,7 +4394,6 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4192
4394
|
model,
|
|
4193
4395
|
webpackMap,
|
|
4194
4396
|
options ? options.onError : void 0,
|
|
4195
|
-
options ? options.onPostpone : void 0,
|
|
4196
4397
|
noop,
|
|
4197
4398
|
noop,
|
|
4198
4399
|
options ? options.identifierPrefix : void 0,
|
|
@@ -4232,23 +4433,12 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4232
4433
|
model,
|
|
4233
4434
|
webpackMap,
|
|
4234
4435
|
options ? options.onError : void 0,
|
|
4235
|
-
options ? options.onPostpone : void 0,
|
|
4236
4436
|
noop,
|
|
4237
4437
|
noop,
|
|
4238
4438
|
options ? options.identifierPrefix : void 0,
|
|
4239
4439
|
options ? options.temporaryReferences : void 0
|
|
4240
4440
|
);
|
|
4241
|
-
|
|
4242
|
-
var signal = options.signal;
|
|
4243
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
4244
|
-
else {
|
|
4245
|
-
var listener = function() {
|
|
4246
|
-
abort(request, signal.reason);
|
|
4247
|
-
signal.removeEventListener("abort", listener);
|
|
4248
|
-
};
|
|
4249
|
-
signal.addEventListener("abort", listener);
|
|
4250
|
-
}
|
|
4251
|
-
}
|
|
4441
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
4252
4442
|
var writable;
|
|
4253
4443
|
return new ReadableStream(
|
|
4254
4444
|
{
|
|
@@ -4292,40 +4482,17 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4292
4482
|
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
4293
4483
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
4294
4484
|
}
|
|
4295
|
-
function _defineProperty(obj, key, value) {
|
|
4296
|
-
a: if ("object" == typeof key && key) {
|
|
4297
|
-
var e = key[Symbol.toPrimitive];
|
|
4298
|
-
if (void 0 !== e) {
|
|
4299
|
-
key = e.call(key, "string");
|
|
4300
|
-
if ("object" != typeof key) break a;
|
|
4301
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4302
|
-
}
|
|
4303
|
-
key = String(key);
|
|
4304
|
-
}
|
|
4305
|
-
key = "symbol" == typeof key ? key : key + "";
|
|
4306
|
-
key in obj ? Object.defineProperty(obj, key, {
|
|
4307
|
-
value,
|
|
4308
|
-
enumerable: true,
|
|
4309
|
-
configurable: true,
|
|
4310
|
-
writable: true
|
|
4311
|
-
}) : obj[key] = value;
|
|
4312
|
-
return obj;
|
|
4313
|
-
}
|
|
4314
4485
|
function flushBuffered(destination) {
|
|
4315
4486
|
"function" === typeof destination.flush && destination.flush();
|
|
4316
4487
|
}
|
|
4317
|
-
function
|
|
4318
|
-
destination = destination.write(view);
|
|
4319
|
-
destinationHasCapacity = destinationHasCapacity && destination;
|
|
4320
|
-
}
|
|
4321
|
-
function writeChunkAndReturn(destination, chunk) {
|
|
4488
|
+
function writeChunk(destination, chunk) {
|
|
4322
4489
|
if ("string" === typeof chunk) {
|
|
4323
4490
|
if (0 !== chunk.length)
|
|
4324
|
-
if (
|
|
4491
|
+
if (4096 < 3 * chunk.length)
|
|
4325
4492
|
0 < writtenBytes && (writeToDestination(
|
|
4326
4493
|
destination,
|
|
4327
4494
|
currentView.subarray(0, writtenBytes)
|
|
4328
|
-
), currentView = new Uint8Array(
|
|
4495
|
+
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk);
|
|
4329
4496
|
else {
|
|
4330
4497
|
var target = currentView;
|
|
4331
4498
|
0 < writtenBytes && (target = currentView.subarray(writtenBytes));
|
|
@@ -4335,17 +4502,24 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4335
4502
|
read < chunk.length && (writeToDestination(
|
|
4336
4503
|
destination,
|
|
4337
4504
|
currentView.subarray(0, writtenBytes)
|
|
4338
|
-
), currentView = new Uint8Array(
|
|
4505
|
+
), currentView = new Uint8Array(4096), writtenBytes = textEncoder.encodeInto(
|
|
4339
4506
|
chunk.slice(read),
|
|
4340
4507
|
currentView
|
|
4341
4508
|
).written);
|
|
4342
|
-
|
|
4509
|
+
4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0);
|
|
4343
4510
|
}
|
|
4344
4511
|
} else
|
|
4345
|
-
0 !== chunk.byteLength && (
|
|
4512
|
+
0 !== chunk.byteLength && (4096 < chunk.byteLength ? (0 < writtenBytes && (writeToDestination(
|
|
4346
4513
|
destination,
|
|
4347
4514
|
currentView.subarray(0, writtenBytes)
|
|
4348
|
-
), currentView = new Uint8Array(
|
|
4515
|
+
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk)) : (target = currentView.length - writtenBytes, target < chunk.byteLength && (0 === target ? writeToDestination(destination, currentView) : (currentView.set(chunk.subarray(0, target), writtenBytes), writtenBytes += target, writeToDestination(destination, currentView), chunk = chunk.subarray(target)), currentView = new Uint8Array(4096), writtenBytes = 0), currentView.set(chunk, writtenBytes), writtenBytes += chunk.byteLength, 4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0)));
|
|
4516
|
+
}
|
|
4517
|
+
function writeToDestination(destination, view) {
|
|
4518
|
+
destination = destination.write(view);
|
|
4519
|
+
destinationHasCapacity = destinationHasCapacity && destination;
|
|
4520
|
+
}
|
|
4521
|
+
function writeChunkAndReturn(destination, chunk) {
|
|
4522
|
+
writeChunk(destination, chunk);
|
|
4349
4523
|
return destinationHasCapacity;
|
|
4350
4524
|
}
|
|
4351
4525
|
function completeWriting(destination) {
|
|
@@ -4547,7 +4721,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4547
4721
|
});
|
|
4548
4722
|
break;
|
|
4549
4723
|
case "stylesheet":
|
|
4550
|
-
preload(srcSet, "
|
|
4724
|
+
preload(srcSet, "style", {
|
|
4551
4725
|
crossOrigin: props.crossOrigin,
|
|
4552
4726
|
integrity: props.integrity,
|
|
4553
4727
|
nonce: props.nonce,
|
|
@@ -4703,7 +4877,12 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4703
4877
|
case "fulfilled":
|
|
4704
4878
|
return thenable.value;
|
|
4705
4879
|
case "rejected":
|
|
4706
|
-
|
|
4880
|
+
thenableState2 = thenable.reason;
|
|
4881
|
+
if (void 0 === thenableState2 && !("reason" in thenable))
|
|
4882
|
+
throw Error(
|
|
4883
|
+
"A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."
|
|
4884
|
+
);
|
|
4885
|
+
throw thenableState2;
|
|
4707
4886
|
default:
|
|
4708
4887
|
"string" === typeof thenable.status ? thenable.then(noop, noop) : (thenableState2 = thenable, thenableState2.status = "pending", thenableState2.then(
|
|
4709
4888
|
function(fulfilledValue) {
|
|
@@ -4824,6 +5003,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4824
5003
|
return "Suspense";
|
|
4825
5004
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
4826
5005
|
return "SuspenseList";
|
|
5006
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
5007
|
+
return "ViewTransition";
|
|
4827
5008
|
}
|
|
4828
5009
|
if ("object" === typeof type)
|
|
4829
5010
|
switch (type.$$typeof) {
|
|
@@ -4906,12 +5087,19 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4906
5087
|
switch (functionName) {
|
|
4907
5088
|
case "new Promise":
|
|
4908
5089
|
case "Function.withResolvers":
|
|
5090
|
+
case "Promise.withResolvers":
|
|
4909
5091
|
case "Function.reject":
|
|
5092
|
+
case "Promise.reject":
|
|
4910
5093
|
case "Function.resolve":
|
|
5094
|
+
case "Promise.resolve":
|
|
4911
5095
|
case "Function.all":
|
|
5096
|
+
case "Promise.all":
|
|
4912
5097
|
case "Function.allSettled":
|
|
5098
|
+
case "Promise.allSettled":
|
|
4913
5099
|
case "Function.race":
|
|
5100
|
+
case "Promise.race":
|
|
4914
5101
|
case "Function.try":
|
|
5102
|
+
case "Promise.try":
|
|
4915
5103
|
return true;
|
|
4916
5104
|
default:
|
|
4917
5105
|
return false;
|
|
@@ -4929,7 +5117,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4929
5117
|
request = request.filterStackFrame;
|
|
4930
5118
|
for (var i = 0; i < stack.length; i++) {
|
|
4931
5119
|
var callsite = stack[i], functionName = callsite[0], url = devirtualizeURL(callsite[1]), lineNumber = callsite[2], columnNumber = callsite[3];
|
|
4932
|
-
if (!callsite[6] && request(url, functionName, lineNumber, columnNumber))
|
|
5120
|
+
if (!callsite[6] && request(url, functionName, lineNumber, columnNumber) && "" !== url)
|
|
4933
5121
|
return true;
|
|
4934
5122
|
}
|
|
4935
5123
|
return false;
|
|
@@ -4942,11 +5130,21 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4942
5130
|
case "Promise.catch":
|
|
4943
5131
|
case "Promise.finally":
|
|
4944
5132
|
case "Function.reject":
|
|
5133
|
+
case "Promise.reject":
|
|
4945
5134
|
case "Function.resolve":
|
|
5135
|
+
case "Promise.resolve":
|
|
4946
5136
|
case "Function.all":
|
|
5137
|
+
case "Promise.all":
|
|
4947
5138
|
case "Function.allSettled":
|
|
5139
|
+
case "Promise.allSettled":
|
|
5140
|
+
case "Function.any":
|
|
5141
|
+
case "Promise.any":
|
|
4948
5142
|
case "Function.race":
|
|
5143
|
+
case "Promise.race":
|
|
4949
5144
|
case "Function.try":
|
|
5145
|
+
case "Promise.try":
|
|
5146
|
+
case "Function.withResolvers":
|
|
5147
|
+
case "Promise.withResolvers":
|
|
4950
5148
|
return true;
|
|
4951
5149
|
default:
|
|
4952
5150
|
return false;
|
|
@@ -4960,7 +5158,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4960
5158
|
stack = stack[firstFrame];
|
|
4961
5159
|
firstFrame = stack[0];
|
|
4962
5160
|
var url = devirtualizeURL(stack[1]);
|
|
4963
|
-
return request(url, firstFrame, stack[2], stack[3]);
|
|
5161
|
+
return request(url, firstFrame, stack[2], stack[3]) && "" !== url;
|
|
4964
5162
|
}
|
|
4965
5163
|
return false;
|
|
4966
5164
|
}
|
|
@@ -5063,7 +5261,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5063
5261
|
function defaultErrorHandler(error) {
|
|
5064
5262
|
console.error(error);
|
|
5065
5263
|
}
|
|
5066
|
-
function RequestInstance(type, model, bundlerConfig, onError,
|
|
5264
|
+
function RequestInstance(type, model, bundlerConfig, onError, onAllReady, onFatalError, identifierPrefix, temporaryReferences, debugStartTime, environmentName, filterStackFrame, keepDebugAlive) {
|
|
5067
5265
|
if (null !== ReactSharedInternalsServer.A && ReactSharedInternalsServer.A !== DefaultAsyncDispatcher)
|
|
5068
5266
|
throw Error(
|
|
5069
5267
|
"Currently React only supports one RSC renderer at a time."
|
|
@@ -5072,7 +5270,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5072
5270
|
ReactSharedInternalsServer.getCurrentStack = getCurrentStackInDEV;
|
|
5073
5271
|
var abortSet = /* @__PURE__ */ new Set(), pingedTasks = [], hints = /* @__PURE__ */ new Set();
|
|
5074
5272
|
this.type = type;
|
|
5075
|
-
this.status =
|
|
5273
|
+
this.status = OPENING;
|
|
5076
5274
|
this.flushScheduled = false;
|
|
5077
5275
|
this.destination = this.fatalError = null;
|
|
5078
5276
|
this.bundlerConfig = bundlerConfig;
|
|
@@ -5090,12 +5288,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5090
5288
|
this.writtenClientReferences = /* @__PURE__ */ new Map();
|
|
5091
5289
|
this.writtenServerReferences = /* @__PURE__ */ new Map();
|
|
5092
5290
|
this.writtenObjects = /* @__PURE__ */ new WeakMap();
|
|
5291
|
+
this.writtenImportStrings = /* @__PURE__ */ new Map();
|
|
5292
|
+
this.writtenImportStringsSize = 0;
|
|
5093
5293
|
this.temporaryReferences = temporaryReferences;
|
|
5094
5294
|
this.identifierPrefix = identifierPrefix || "";
|
|
5095
5295
|
this.identifierCount = 1;
|
|
5096
5296
|
this.taintCleanupQueue = [];
|
|
5097
5297
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
5098
|
-
this.onPostpone = void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
|
|
5099
5298
|
this.onAllReady = onAllReady;
|
|
5100
5299
|
this.onFatalError = onFatalError;
|
|
5101
5300
|
this.pendingDebugChunks = 0;
|
|
@@ -5110,7 +5309,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5110
5309
|
this.didWarnForKey = null;
|
|
5111
5310
|
this.writtenDebugObjects = /* @__PURE__ */ new WeakMap();
|
|
5112
5311
|
this.deferredDebugObjects = keepDebugAlive ? { retained: /* @__PURE__ */ new Map(), existing: /* @__PURE__ */ new Map() } : null;
|
|
5113
|
-
type = this.timeOrigin = performance.now();
|
|
5312
|
+
type = "number" === typeof debugStartTime ? this.timeOrigin = debugStartTime - performance.timeOrigin : this.timeOrigin = performance.now();
|
|
5114
5313
|
emitTimeOriginChunk(this, type + performance.timeOrigin);
|
|
5115
5314
|
this.abortTime = -0;
|
|
5116
5315
|
model = createTask(
|
|
@@ -5127,35 +5326,35 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5127
5326
|
);
|
|
5128
5327
|
pingedTasks.push(model);
|
|
5129
5328
|
}
|
|
5130
|
-
function createRequest(model, bundlerConfig, onError, identifierPrefix,
|
|
5329
|
+
function createRequest(model, bundlerConfig, onError, identifierPrefix, temporaryReferences, debugStartTime, environmentName, filterStackFrame, keepDebugAlive) {
|
|
5131
5330
|
resetOwnerStackLimit();
|
|
5132
5331
|
return new RequestInstance(
|
|
5133
5332
|
20,
|
|
5134
5333
|
model,
|
|
5135
5334
|
bundlerConfig,
|
|
5136
5335
|
onError,
|
|
5137
|
-
onPostpone,
|
|
5138
5336
|
noop,
|
|
5139
5337
|
noop,
|
|
5140
5338
|
identifierPrefix,
|
|
5141
5339
|
temporaryReferences,
|
|
5340
|
+
debugStartTime,
|
|
5142
5341
|
environmentName,
|
|
5143
5342
|
filterStackFrame,
|
|
5144
5343
|
keepDebugAlive
|
|
5145
5344
|
);
|
|
5146
5345
|
}
|
|
5147
|
-
function createPrerenderRequest(model, bundlerConfig, onAllReady, onFatalError, onError, identifierPrefix,
|
|
5346
|
+
function createPrerenderRequest(model, bundlerConfig, onAllReady, onFatalError, onError, identifierPrefix, temporaryReferences, debugStartTime, environmentName, filterStackFrame, keepDebugAlive) {
|
|
5148
5347
|
resetOwnerStackLimit();
|
|
5149
5348
|
return new RequestInstance(
|
|
5150
|
-
|
|
5349
|
+
PRERENDER,
|
|
5151
5350
|
model,
|
|
5152
5351
|
bundlerConfig,
|
|
5153
5352
|
onError,
|
|
5154
|
-
onPostpone,
|
|
5155
5353
|
onAllReady,
|
|
5156
5354
|
onFatalError,
|
|
5157
5355
|
identifierPrefix,
|
|
5158
5356
|
temporaryReferences,
|
|
5357
|
+
debugStartTime,
|
|
5159
5358
|
environmentName,
|
|
5160
5359
|
filterStackFrame,
|
|
5161
5360
|
keepDebugAlive
|
|
@@ -5184,7 +5383,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5184
5383
|
var cancelled = false;
|
|
5185
5384
|
thenable.then(
|
|
5186
5385
|
function(value) {
|
|
5187
|
-
cancelled || (cancelled = true, request.status === ABORTING ? emitDebugHaltChunk(request, id) : emitOutlinedDebugModelChunk(request, id, counter, value), enqueueFlush(request));
|
|
5386
|
+
cancelled || (cancelled = true, request.status === ABORTING ? emitDebugHaltChunk(request, id) : isArrayImpl(value) && 200 < value.length || (value instanceof ArrayBuffer || value instanceof Int8Array || value instanceof Uint8Array || value instanceof Uint8ClampedArray || value instanceof Int16Array || value instanceof Uint16Array || value instanceof Int32Array || value instanceof Uint32Array || value instanceof Float32Array || value instanceof Float64Array || value instanceof BigInt64Array || value instanceof BigUint64Array || value instanceof DataView) && 1e3 < value.byteLength ? emitDebugHaltChunk(request, id) : emitOutlinedDebugModelChunk(request, id, counter, value), enqueueFlush(request));
|
|
5188
5387
|
},
|
|
5189
5388
|
function(reason) {
|
|
5190
5389
|
cancelled || (cancelled = true, request.status === ABORTING ? emitDebugHaltChunk(request, id) : emitErrorChunk(request, id, "", reason, true, null), enqueueFlush(request));
|
|
@@ -5207,8 +5406,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5207
5406
|
}
|
|
5208
5407
|
);
|
|
5209
5408
|
}
|
|
5210
|
-
function
|
|
5211
|
-
|
|
5409
|
+
function createThenableTask(request, task, thenable) {
|
|
5410
|
+
return createTask(
|
|
5212
5411
|
request,
|
|
5213
5412
|
thenable,
|
|
5214
5413
|
task.keyPath,
|
|
@@ -5220,26 +5419,17 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5220
5419
|
task.debugStack,
|
|
5221
5420
|
task.debugTask
|
|
5222
5421
|
);
|
|
5422
|
+
}
|
|
5423
|
+
function serializeThenable(request, task, thenable) {
|
|
5223
5424
|
switch (thenable.status) {
|
|
5224
5425
|
case "fulfilled":
|
|
5225
|
-
return forwardDebugInfoFromThenable(
|
|
5226
|
-
request,
|
|
5227
|
-
newTask,
|
|
5228
|
-
thenable,
|
|
5229
|
-
null,
|
|
5230
|
-
null
|
|
5231
|
-
), newTask.model = thenable.value, pingTask(request, newTask), newTask.id;
|
|
5426
|
+
return task = createThenableTask(request, task, thenable), forwardDebugInfoFromThenable(request, task, thenable, null, null), task.model = thenable.value, pingTask(request, task), task.id;
|
|
5232
5427
|
case "rejected":
|
|
5233
|
-
return forwardDebugInfoFromThenable(
|
|
5234
|
-
request,
|
|
5235
|
-
newTask,
|
|
5236
|
-
thenable,
|
|
5237
|
-
null,
|
|
5238
|
-
null
|
|
5239
|
-
), erroredTask(request, newTask, thenable.reason), newTask.id;
|
|
5428
|
+
return task = createThenableTask(request, task, thenable), forwardDebugInfoFromThenable(request, task, thenable, null, null), erroredTask(request, task, thenable.reason), task.id;
|
|
5240
5429
|
default:
|
|
5430
|
+
var _newTask2 = createThenableTask(request, task, thenable);
|
|
5241
5431
|
if (request.status === ABORTING)
|
|
5242
|
-
return request.abortableTasks.delete(
|
|
5432
|
+
return request.abortableTasks.delete(_newTask2), request.type === PRERENDER ? (haltTask(_newTask2), finishHaltedTask(_newTask2, request)) : (task = request.fatalError, abortTask(_newTask2), finishAbortedTask(_newTask2, request, task)), _newTask2.id;
|
|
5243
5433
|
"string" !== typeof thenable.status && (thenable.status = "pending", thenable.then(
|
|
5244
5434
|
function(fulfilledValue) {
|
|
5245
5435
|
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
@@ -5248,46 +5438,52 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5248
5438
|
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
5249
5439
|
}
|
|
5250
5440
|
));
|
|
5441
|
+
thenable.then(
|
|
5442
|
+
function(value) {
|
|
5443
|
+
forwardDebugInfoFromCurrentContext(request, _newTask2, thenable);
|
|
5444
|
+
_newTask2.model = value;
|
|
5445
|
+
pingTask(request, _newTask2);
|
|
5446
|
+
},
|
|
5447
|
+
function(reason) {
|
|
5448
|
+
_newTask2.status === PENDING$1 && (_newTask2.timed = true, erroredTask(request, _newTask2, reason), enqueueFlush(request));
|
|
5449
|
+
}
|
|
5450
|
+
);
|
|
5451
|
+
return _newTask2.id;
|
|
5251
5452
|
}
|
|
5252
|
-
thenable.then(
|
|
5253
|
-
function(value) {
|
|
5254
|
-
forwardDebugInfoFromCurrentContext(request, newTask, thenable);
|
|
5255
|
-
newTask.model = value;
|
|
5256
|
-
pingTask(request, newTask);
|
|
5257
|
-
},
|
|
5258
|
-
function(reason) {
|
|
5259
|
-
0 === newTask.status && (newTask.timed = true, erroredTask(request, newTask, reason), enqueueFlush(request));
|
|
5260
|
-
}
|
|
5261
|
-
);
|
|
5262
|
-
return newTask.id;
|
|
5263
5453
|
}
|
|
5264
5454
|
function serializeReadableStream(request, task, stream2) {
|
|
5265
5455
|
function progress(entry) {
|
|
5266
|
-
if (
|
|
5456
|
+
if (streamTask.status === PENDING$1)
|
|
5267
5457
|
if (entry.done)
|
|
5268
|
-
streamTask.status =
|
|
5458
|
+
streamTask.status = COMPLETED, entry = streamTask.id.toString(16) + ":C\n", request.completedRegularChunks.push(entry), request.abortableTasks.delete(streamTask), request.cacheController.signal.removeEventListener(
|
|
5269
5459
|
"abort",
|
|
5270
5460
|
abortStream
|
|
5271
5461
|
), enqueueFlush(request), callOnAllReadyIfReady(request);
|
|
5272
5462
|
else
|
|
5273
5463
|
try {
|
|
5274
|
-
streamTask.model = entry.value,
|
|
5275
|
-
|
|
5276
|
-
|
|
5464
|
+
request.pendingChunks++, streamTask.model = entry.value, isByteStream ? emitTypedArrayChunk(
|
|
5465
|
+
request,
|
|
5466
|
+
streamTask.id,
|
|
5467
|
+
"b",
|
|
5468
|
+
streamTask.model,
|
|
5469
|
+
false
|
|
5470
|
+
) : tryStreamTask(request, streamTask), enqueueFlush(request), reader.read().then(progress, error);
|
|
5471
|
+
} catch (x$6) {
|
|
5472
|
+
error(x$6);
|
|
5277
5473
|
}
|
|
5278
5474
|
}
|
|
5279
5475
|
function error(reason) {
|
|
5280
|
-
|
|
5476
|
+
streamTask.status === PENDING$1 && (request.cacheController.signal.removeEventListener(
|
|
5281
5477
|
"abort",
|
|
5282
5478
|
abortStream
|
|
5283
5479
|
), erroredTask(request, streamTask, reason), enqueueFlush(request), reader.cancel(reason).then(error, error));
|
|
5284
5480
|
}
|
|
5285
5481
|
function abortStream() {
|
|
5286
|
-
if (
|
|
5482
|
+
if (streamTask.status === PENDING$1) {
|
|
5287
5483
|
var signal = request.cacheController.signal;
|
|
5288
5484
|
signal.removeEventListener("abort", abortStream);
|
|
5289
5485
|
signal = signal.reason;
|
|
5290
|
-
|
|
5486
|
+
request.type === PRERENDER ? (request.abortableTasks.delete(streamTask), haltTask(streamTask), finishHaltedTask(streamTask, request)) : (erroredTask(request, streamTask, signal), enqueueFlush(request));
|
|
5291
5487
|
reader.cancel(signal).then(error, error);
|
|
5292
5488
|
}
|
|
5293
5489
|
}
|
|
@@ -5298,7 +5494,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5298
5494
|
} catch (x) {
|
|
5299
5495
|
supportsBYOB = false;
|
|
5300
5496
|
}
|
|
5301
|
-
var reader = stream2.getReader(), streamTask = createTask(
|
|
5497
|
+
var isByteStream = supportsBYOB, reader = stream2.getReader(), streamTask = createTask(
|
|
5302
5498
|
request,
|
|
5303
5499
|
task.model,
|
|
5304
5500
|
task.keyPath,
|
|
@@ -5311,7 +5507,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5311
5507
|
task.debugTask
|
|
5312
5508
|
);
|
|
5313
5509
|
request.pendingChunks++;
|
|
5314
|
-
task = streamTask.id.toString(16) + ":" + (
|
|
5510
|
+
task = streamTask.id.toString(16) + ":" + (isByteStream ? "r" : "R") + "\n";
|
|
5315
5511
|
request.completedRegularChunks.push(task);
|
|
5316
5512
|
request.cacheController.signal.addEventListener("abort", abortStream);
|
|
5317
5513
|
reader.read().then(progress, error);
|
|
@@ -5319,9 +5515,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5319
5515
|
}
|
|
5320
5516
|
function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
5321
5517
|
function progress(entry) {
|
|
5322
|
-
if (
|
|
5518
|
+
if (streamTask.status === PENDING$1)
|
|
5323
5519
|
if (entry.done) {
|
|
5324
|
-
streamTask.status =
|
|
5520
|
+
streamTask.status = COMPLETED;
|
|
5325
5521
|
if (void 0 === entry.value)
|
|
5326
5522
|
var endStreamRow = streamTask.id.toString(16) + ":C\n";
|
|
5327
5523
|
else
|
|
@@ -5343,22 +5539,22 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5343
5539
|
} else
|
|
5344
5540
|
try {
|
|
5345
5541
|
streamTask.model = entry.value, request.pendingChunks++, tryStreamTask(request, streamTask), enqueueFlush(request), callIteratorInDEV(iterator, progress, error);
|
|
5346
|
-
} catch (x$
|
|
5347
|
-
error(x$
|
|
5542
|
+
} catch (x$7) {
|
|
5543
|
+
error(x$7);
|
|
5348
5544
|
}
|
|
5349
5545
|
}
|
|
5350
5546
|
function error(reason) {
|
|
5351
|
-
|
|
5547
|
+
streamTask.status === PENDING$1 && (request.cacheController.signal.removeEventListener(
|
|
5352
5548
|
"abort",
|
|
5353
5549
|
abortIterable
|
|
5354
5550
|
), erroredTask(request, streamTask, reason), enqueueFlush(request), "function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop));
|
|
5355
5551
|
}
|
|
5356
5552
|
function abortIterable() {
|
|
5357
|
-
if (
|
|
5553
|
+
if (streamTask.status === PENDING$1) {
|
|
5358
5554
|
var signal = request.cacheController.signal;
|
|
5359
5555
|
signal.removeEventListener("abort", abortIterable);
|
|
5360
5556
|
var reason = signal.reason;
|
|
5361
|
-
|
|
5557
|
+
request.type === PRERENDER ? (request.abortableTasks.delete(streamTask), haltTask(streamTask), finishHaltedTask(streamTask, request)) : (erroredTask(request, streamTask, signal.reason), enqueueFlush(request));
|
|
5362
5558
|
"function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop);
|
|
5363
5559
|
}
|
|
5364
5560
|
}
|
|
@@ -5444,7 +5640,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5444
5640
|
result.$$typeof === REACT_ELEMENT_TYPE && (result._store.validated = 1);
|
|
5445
5641
|
var iteratorFn = getIteratorFn(result);
|
|
5446
5642
|
if (iteratorFn) {
|
|
5447
|
-
var
|
|
5643
|
+
var $jscomp$compprop0 = {};
|
|
5644
|
+
$jscomp$compprop0 = ($jscomp$compprop0[Symbol.iterator] = function() {
|
|
5448
5645
|
var iterator = iteratorFn.call(result);
|
|
5449
5646
|
iterator !== result || "[object GeneratorFunction]" === Object.prototype.toString.call(Component) && "[object Generator]" === Object.prototype.toString.call(result) || callWithDebugContextInDEV(request, task, function() {
|
|
5450
5647
|
console.error(
|
|
@@ -5452,11 +5649,11 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5452
5649
|
);
|
|
5453
5650
|
});
|
|
5454
5651
|
return iterator;
|
|
5455
|
-
});
|
|
5456
|
-
|
|
5457
|
-
return
|
|
5652
|
+
}, $jscomp$compprop0);
|
|
5653
|
+
$jscomp$compprop0._debugInfo = result._debugInfo;
|
|
5654
|
+
return $jscomp$compprop0;
|
|
5458
5655
|
}
|
|
5459
|
-
return "function" !== typeof result[ASYNC_ITERATOR] || "function" === typeof ReadableStream && result instanceof ReadableStream ? result : (
|
|
5656
|
+
return "function" !== typeof result[ASYNC_ITERATOR] || "function" === typeof ReadableStream && result instanceof ReadableStream ? result : ($jscomp$compprop0 = {}, $jscomp$compprop0 = ($jscomp$compprop0[ASYNC_ITERATOR] = function() {
|
|
5460
5657
|
var iterator = result[ASYNC_ITERATOR]();
|
|
5461
5658
|
iterator !== result || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component) && "[object AsyncGenerator]" === Object.prototype.toString.call(result) || callWithDebugContextInDEV(request, task, function() {
|
|
5462
5659
|
console.error(
|
|
@@ -5464,7 +5661,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5464
5661
|
);
|
|
5465
5662
|
});
|
|
5466
5663
|
return iterator;
|
|
5467
|
-
}),
|
|
5664
|
+
}, $jscomp$compprop0), $jscomp$compprop0._debugInfo = result._debugInfo, $jscomp$compprop0);
|
|
5468
5665
|
}
|
|
5469
5666
|
function renderFunctionComponent(request, task, key, Component, props, validated) {
|
|
5470
5667
|
var prevThenableState = task.thenableState;
|
|
@@ -5536,7 +5733,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5536
5733
|
task.debugTask = null;
|
|
5537
5734
|
Component = task.keyPath;
|
|
5538
5735
|
componentDebugInfo = task.implicitSlot;
|
|
5539
|
-
null !== key ? task.keyPath = null === Component ? key : Component + "," + key : null === Component && (task.implicitSlot = true);
|
|
5736
|
+
null !== key ? task.keyPath = key === REACT_OPTIMISTIC_KEY || Component === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : null === Component ? key : Component + "," + key : null === Component && (task.implicitSlot = true);
|
|
5540
5737
|
request = renderModelDestructive(request, task, emptyRoot, "", props);
|
|
5541
5738
|
task.keyPath = Component;
|
|
5542
5739
|
task.implicitSlot = componentDebugInfo;
|
|
@@ -5640,7 +5837,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5640
5837
|
task.debugTask
|
|
5641
5838
|
);
|
|
5642
5839
|
retryTask(request, task);
|
|
5643
|
-
return
|
|
5840
|
+
return task.status === COMPLETED ? serializeByValueID(task.id) : serializeLazyID(task.id);
|
|
5644
5841
|
}
|
|
5645
5842
|
function renderElement(request, task, type, key, ref, props, validated) {
|
|
5646
5843
|
if (null !== ref && void 0 !== ref)
|
|
@@ -5725,7 +5922,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5725
5922
|
validated
|
|
5726
5923
|
);
|
|
5727
5924
|
ref = task.keyPath;
|
|
5728
|
-
null === key ? key = ref : null !== ref && (key = ref + "," + key);
|
|
5925
|
+
null === key ? key = ref : null !== ref && (key = ref === REACT_OPTIMISTIC_KEY || key === REACT_OPTIMISTIC_KEY ? REACT_OPTIMISTIC_KEY : ref + "," + key);
|
|
5729
5926
|
newFormatContext = null;
|
|
5730
5927
|
ref = task.debugOwner;
|
|
5731
5928
|
null !== ref && outlineComponentInfo(request, ref);
|
|
@@ -5753,68 +5950,85 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5753
5950
|
task = task.implicitSlot && null !== key ? [request] : request;
|
|
5754
5951
|
return task;
|
|
5755
5952
|
}
|
|
5756
|
-
function visitAsyncNode(request, task, node, visited, cutOff) {
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
var previousIONode = null;
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
visited,
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
task,
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
if (
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5953
|
+
function visitAsyncNode(request, task$jscomp$0, node$jscomp$0, visited, cutOff) {
|
|
5954
|
+
for (var chain = []; null !== node$jscomp$0 && !visited.has(node$jscomp$0); )
|
|
5955
|
+
chain.push(node$jscomp$0), node$jscomp$0 = node$jscomp$0.previous;
|
|
5956
|
+
var previousIONode = null !== node$jscomp$0 ? visited.get(node$jscomp$0) : null;
|
|
5957
|
+
for (node$jscomp$0 = chain.length - 1; 0 <= node$jscomp$0; node$jscomp$0--) {
|
|
5958
|
+
var n = chain[node$jscomp$0];
|
|
5959
|
+
visited.set(n, null);
|
|
5960
|
+
var result = request;
|
|
5961
|
+
var task = task$jscomp$0, node = n, visited$jscomp$0 = visited, cutOff$jscomp$0 = cutOff;
|
|
5962
|
+
if (0 <= node.end && node.end <= result.timeOrigin) result = null;
|
|
5963
|
+
else
|
|
5964
|
+
switch (node.tag) {
|
|
5965
|
+
case 0:
|
|
5966
|
+
result = node;
|
|
5967
|
+
break;
|
|
5968
|
+
case 3:
|
|
5969
|
+
result = previousIONode;
|
|
5970
|
+
break;
|
|
5971
|
+
case 1:
|
|
5972
|
+
var awaited = node.awaited, promise = node.promise.deref();
|
|
5973
|
+
if (null !== awaited)
|
|
5974
|
+
if (cutOff$jscomp$0 = visitAsyncNode(
|
|
5975
|
+
result,
|
|
5976
|
+
task,
|
|
5977
|
+
awaited,
|
|
5978
|
+
visited$jscomp$0,
|
|
5979
|
+
cutOff$jscomp$0
|
|
5980
|
+
), void 0 === cutOff$jscomp$0) {
|
|
5981
|
+
result = void 0;
|
|
5982
|
+
break;
|
|
5983
|
+
} else
|
|
5984
|
+
null !== cutOff$jscomp$0 ? previousIONode = 1 === cutOff$jscomp$0.tag ? cutOff$jscomp$0 : null !== node.stack && hasUnfilteredFrame(result, node.stack) || void 0 !== promise && "string" === typeof promise.displayName && (null === cutOff$jscomp$0.stack || !hasUnfilteredFrame(
|
|
5985
|
+
result,
|
|
5986
|
+
cutOff$jscomp$0.stack
|
|
5987
|
+
)) ? node : cutOff$jscomp$0 : result.status === ABORTING && node.start < result.abortTime && node.end > result.abortTime && (null !== node.stack && hasUnfilteredFrame(result, node.stack) || void 0 !== promise && "string" === typeof promise.displayName) && (previousIONode = node);
|
|
5988
|
+
void 0 !== promise && (node = promise._debugInfo, null == node || visited$jscomp$0.has(node) || (visited$jscomp$0.set(node, null), forwardDebugInfo(result, task, node)));
|
|
5989
|
+
result = previousIONode;
|
|
5990
|
+
break;
|
|
5991
|
+
case 4:
|
|
5992
|
+
result = previousIONode;
|
|
5993
|
+
break;
|
|
5994
|
+
case 2:
|
|
5995
|
+
awaited = node.awaited;
|
|
5996
|
+
if (null !== awaited) {
|
|
5997
|
+
if (promise = visitAsyncNode(
|
|
5998
|
+
result,
|
|
5999
|
+
task,
|
|
6000
|
+
awaited,
|
|
6001
|
+
visited$jscomp$0,
|
|
6002
|
+
cutOff$jscomp$0
|
|
6003
|
+
), void 0 === promise) {
|
|
6004
|
+
result = void 0;
|
|
6005
|
+
break;
|
|
6006
|
+
} else if (null !== promise) {
|
|
6007
|
+
var startTime = node.start, endTime = node.end;
|
|
6008
|
+
startTime < cutOff$jscomp$0 ? (previousIONode = promise, null !== node.stack && isAwaitInUserspace(result, node.stack) && void 0 !== (null === awaited.promise ? void 0 : awaited.promise.deref()) && serializeIONode(result, promise, awaited.promise)) : null !== node.stack && isAwaitInUserspace(result, node.stack) ? result.status === ABORTING && startTime > result.abortTime || (serializeIONode(result, promise, awaited.promise), visited$jscomp$0.set(promise, null), null != node.owner && outlineComponentInfo(result, node.owner), cutOff$jscomp$0 = (0, result.environmentName)(), advanceTaskTime(result, task, startTime), result.pendingChunks++, emitDebugChunk(result, task.id, {
|
|
6009
|
+
awaited: promise,
|
|
6010
|
+
env: cutOff$jscomp$0,
|
|
6011
|
+
owner: node.owner,
|
|
6012
|
+
stack: null === node.stack ? null : filterStackTrace(result, node.stack)
|
|
6013
|
+
}), markOperationEndTime(result, task, endTime), result.status === ABORTING && (previousIONode = void 0)) : previousIONode = promise;
|
|
6014
|
+
}
|
|
6015
|
+
}
|
|
6016
|
+
node = node.promise.deref();
|
|
6017
|
+
void 0 !== node && (node = node._debugInfo, null == node || visited$jscomp$0.has(node) || (visited$jscomp$0.set(node, null), forwardDebugInfo(result, task, node)));
|
|
6018
|
+
result = previousIONode;
|
|
6019
|
+
break;
|
|
6020
|
+
default:
|
|
6021
|
+
throw Error("Unknown AsyncSequence tag. This is a bug in React.");
|
|
5807
6022
|
}
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
default:
|
|
5812
|
-
throw Error("Unknown AsyncSequence tag. This is a bug in React.");
|
|
6023
|
+
null !== result && visited.set(n, result);
|
|
6024
|
+
if (void 0 === result) return;
|
|
6025
|
+
previousIONode = result;
|
|
5813
6026
|
}
|
|
6027
|
+
return previousIONode;
|
|
5814
6028
|
}
|
|
5815
6029
|
function emitAsyncSequence(request, task, node, alreadyForwardedDebugInfo, owner, stack) {
|
|
5816
|
-
var visited = /* @__PURE__ */ new
|
|
5817
|
-
alreadyForwardedDebugInfo && visited.
|
|
6030
|
+
var visited = /* @__PURE__ */ new Map();
|
|
6031
|
+
alreadyForwardedDebugInfo && visited.set(alreadyForwardedDebugInfo, null);
|
|
5818
6032
|
node = visitAsyncNode(request, task, node, visited, task.time);
|
|
5819
6033
|
void 0 !== node && null !== node && (serializeIONode(request, node, node.promise), request.pendingChunks++, alreadyForwardedDebugInfo = (0, request.environmentName)(), alreadyForwardedDebugInfo = {
|
|
5820
6034
|
awaited: node,
|
|
@@ -5831,19 +6045,33 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5831
6045
|
task.timed = true;
|
|
5832
6046
|
var pingedTasks = request.pingedTasks;
|
|
5833
6047
|
pingedTasks.push(task);
|
|
5834
|
-
1 === pingedTasks.length && (request.flushScheduled = null !== request.destination,
|
|
6048
|
+
1 === pingedTasks.length && (request.flushScheduled = null !== request.destination, request.type === PRERENDER || request.status === OPENING ? scheduleMicrotask(function() {
|
|
5835
6049
|
return performWork(request);
|
|
5836
6050
|
}) : setImmediate(function() {
|
|
5837
6051
|
return performWork(request);
|
|
5838
6052
|
}));
|
|
5839
6053
|
}
|
|
5840
6054
|
function createTask(request, model, keyPath, implicitSlot, formatContext, abortSet, lastTimestamp, debugOwner, debugStack, debugTask) {
|
|
6055
|
+
return createTaskWithID(
|
|
6056
|
+
request,
|
|
6057
|
+
request.nextChunkId++,
|
|
6058
|
+
model,
|
|
6059
|
+
keyPath,
|
|
6060
|
+
implicitSlot,
|
|
6061
|
+
formatContext,
|
|
6062
|
+
abortSet,
|
|
6063
|
+
lastTimestamp,
|
|
6064
|
+
debugOwner,
|
|
6065
|
+
debugStack,
|
|
6066
|
+
debugTask
|
|
6067
|
+
);
|
|
6068
|
+
}
|
|
6069
|
+
function createTaskWithID(request, id, model, keyPath, implicitSlot, formatContext, abortSet, lastTimestamp, debugOwner, debugStack, debugTask) {
|
|
5841
6070
|
request.pendingChunks++;
|
|
5842
|
-
var id = request.nextChunkId++;
|
|
5843
6071
|
"object" !== typeof model || null === model || null !== keyPath || implicitSlot || request.writtenObjects.set(model, serializeByValueID(id));
|
|
5844
6072
|
var task = {
|
|
5845
6073
|
id,
|
|
5846
|
-
status:
|
|
6074
|
+
status: PENDING$1,
|
|
5847
6075
|
model,
|
|
5848
6076
|
keyPath,
|
|
5849
6077
|
implicitSlot,
|
|
@@ -5851,24 +6079,6 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5851
6079
|
ping: function() {
|
|
5852
6080
|
return pingTask(request, task);
|
|
5853
6081
|
},
|
|
5854
|
-
toJSON: function(parentPropertyName, value) {
|
|
5855
|
-
var parent = this, originalValue = parent[parentPropertyName];
|
|
5856
|
-
"object" !== typeof originalValue || originalValue === value || originalValue instanceof Date || callWithDebugContextInDEV(request, task, function() {
|
|
5857
|
-
"Object" !== objectName(originalValue) ? "string" === typeof jsxChildrenParents.get(parent) ? console.error(
|
|
5858
|
-
"%s objects cannot be rendered as text children. Try formatting it using toString().%s",
|
|
5859
|
-
objectName(originalValue),
|
|
5860
|
-
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
5861
|
-
) : console.error(
|
|
5862
|
-
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
|
|
5863
|
-
objectName(originalValue),
|
|
5864
|
-
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
5865
|
-
) : console.error(
|
|
5866
|
-
"Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
|
|
5867
|
-
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
5868
|
-
);
|
|
5869
|
-
});
|
|
5870
|
-
return renderModel(request, task, parent, parentPropertyName, value);
|
|
5871
|
-
},
|
|
5872
6082
|
thenableState: null,
|
|
5873
6083
|
timed: false
|
|
5874
6084
|
};
|
|
@@ -5880,6 +6090,60 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5880
6090
|
abortSet.add(task);
|
|
5881
6091
|
return task;
|
|
5882
6092
|
}
|
|
6093
|
+
function resolveModel(request, task, parent, parentPropertyName, value) {
|
|
6094
|
+
var jsonValue = value;
|
|
6095
|
+
null !== value && "object" === typeof value && "function" === typeof value.toJSON && (jsonValue = value.toJSON(parentPropertyName));
|
|
6096
|
+
var originalValue = parent[parentPropertyName];
|
|
6097
|
+
"object" !== typeof originalValue || originalValue === jsonValue || originalValue instanceof Date || callWithDebugContextInDEV(request, task, function() {
|
|
6098
|
+
ArrayBuffer.isView(originalValue) ? console.error(
|
|
6099
|
+
"Binary data with a toJSON method, such as a Node.js Buffer, is serialized through toJSON instead of as binary. Pass a Uint8Array or ArrayBuffer to send binary data.%s",
|
|
6100
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
6101
|
+
) : "Object" !== objectName(originalValue) ? "string" === typeof jsxChildrenParents.get(parent) ? console.error(
|
|
6102
|
+
"%s objects cannot be rendered as text children. Try formatting it using toString().%s",
|
|
6103
|
+
objectName(originalValue),
|
|
6104
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
6105
|
+
) : console.error(
|
|
6106
|
+
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s",
|
|
6107
|
+
objectName(originalValue),
|
|
6108
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
6109
|
+
) : console.error(
|
|
6110
|
+
"Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s",
|
|
6111
|
+
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
6112
|
+
);
|
|
6113
|
+
});
|
|
6114
|
+
value = renderModel(request, task, parent, parentPropertyName, jsonValue);
|
|
6115
|
+
if (null === value || "object" !== typeof value) return value;
|
|
6116
|
+
if (isArrayImpl(value)) {
|
|
6117
|
+
var _resolved = [];
|
|
6118
|
+
for (jsonValue = 0; jsonValue < value.length; jsonValue++)
|
|
6119
|
+
_resolved[jsonValue] = resolveModel(
|
|
6120
|
+
request,
|
|
6121
|
+
task,
|
|
6122
|
+
value,
|
|
6123
|
+
"" + jsonValue,
|
|
6124
|
+
value[jsonValue]
|
|
6125
|
+
);
|
|
6126
|
+
return _resolved;
|
|
6127
|
+
}
|
|
6128
|
+
jsonValue = {};
|
|
6129
|
+
for (_resolved in value)
|
|
6130
|
+
if (hasOwnProperty.call(value, _resolved)) {
|
|
6131
|
+
var resolvedValue = resolveModel(
|
|
6132
|
+
request,
|
|
6133
|
+
task,
|
|
6134
|
+
value,
|
|
6135
|
+
_resolved,
|
|
6136
|
+
value[_resolved]
|
|
6137
|
+
);
|
|
6138
|
+
_resolved === __PROTO__$1 ? Object.defineProperty(jsonValue, _resolved, {
|
|
6139
|
+
value: resolvedValue,
|
|
6140
|
+
enumerable: true,
|
|
6141
|
+
writable: true,
|
|
6142
|
+
configurable: true
|
|
6143
|
+
}) : jsonValue[_resolved] = resolvedValue;
|
|
6144
|
+
}
|
|
6145
|
+
return jsonValue;
|
|
6146
|
+
}
|
|
5883
6147
|
function serializeByValueID(id) {
|
|
5884
6148
|
return "$" + id.toString(16);
|
|
5885
6149
|
}
|
|
@@ -5905,10 +6169,10 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5905
6169
|
var clientReferenceMetadata = resolveClientReferenceMetadata(
|
|
5906
6170
|
request.bundlerConfig,
|
|
5907
6171
|
clientReference
|
|
5908
|
-
);
|
|
6172
|
+
), json = stringifyImportMetadata(request, clientReferenceMetadata, false);
|
|
5909
6173
|
request.pendingChunks++;
|
|
5910
6174
|
var importId = request.nextChunkId++;
|
|
5911
|
-
emitImportChunk(request, importId,
|
|
6175
|
+
emitImportChunk(request, importId, json, false);
|
|
5912
6176
|
writtenClientReferences.set(clientReferenceKey, importId);
|
|
5913
6177
|
return parent[0] === REACT_ELEMENT_TYPE && "1" === parentPropertyName ? serializeLazyID(importId) : serializeByValueID(importId);
|
|
5914
6178
|
} catch (x) {
|
|
@@ -5925,10 +6189,10 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5925
6189
|
var clientReferenceMetadata = resolveClientReferenceMetadata(
|
|
5926
6190
|
request.bundlerConfig,
|
|
5927
6191
|
clientReference
|
|
5928
|
-
);
|
|
6192
|
+
), json = stringifyImportMetadata(request, clientReferenceMetadata, true);
|
|
5929
6193
|
request.pendingDebugChunks++;
|
|
5930
6194
|
var importId = request.nextChunkId++;
|
|
5931
|
-
emitImportChunk(request, importId,
|
|
6195
|
+
emitImportChunk(request, importId, json, true);
|
|
5932
6196
|
return parent[0] === REACT_ELEMENT_TYPE && "1" === parentPropertyName ? serializeLazyID(importId) : serializeByValueID(importId);
|
|
5933
6197
|
} catch (x) {
|
|
5934
6198
|
return request.pendingDebugChunks++, parent = request.nextChunkId++, parentPropertyName = logRecoverableError(request, x, null), emitErrorChunk(request, parent, parentPropertyName, x, true, null), serializeByValueID(parent);
|
|
@@ -5996,6 +6260,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5996
6260
|
return serializeByValueID(bufferId);
|
|
5997
6261
|
}
|
|
5998
6262
|
function serializeDebugTypedArray(request, tag, typedArray) {
|
|
6263
|
+
if (1e3 < typedArray.byteLength && !doNotLimit.has(typedArray))
|
|
6264
|
+
return serializeDeferredObject(request, typedArray);
|
|
5999
6265
|
request.pendingDebugChunks++;
|
|
6000
6266
|
var bufferId = request.nextChunkId++;
|
|
6001
6267
|
emitTypedArrayChunk(request, bufferId, tag, typedArray, true);
|
|
@@ -6026,7 +6292,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6026
6292
|
}
|
|
6027
6293
|
function serializeBlob(request, blob) {
|
|
6028
6294
|
function progress(entry) {
|
|
6029
|
-
if (
|
|
6295
|
+
if (newTask.status === PENDING$1)
|
|
6030
6296
|
if (entry.done)
|
|
6031
6297
|
request.cacheController.signal.removeEventListener(
|
|
6032
6298
|
"abort",
|
|
@@ -6036,17 +6302,17 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6036
6302
|
return model.push(entry.value), reader.read().then(progress).catch(error);
|
|
6037
6303
|
}
|
|
6038
6304
|
function error(reason) {
|
|
6039
|
-
|
|
6305
|
+
newTask.status === PENDING$1 && (request.cacheController.signal.removeEventListener(
|
|
6040
6306
|
"abort",
|
|
6041
6307
|
abortBlob
|
|
6042
6308
|
), erroredTask(request, newTask, reason), enqueueFlush(request), reader.cancel(reason).then(error, error));
|
|
6043
6309
|
}
|
|
6044
6310
|
function abortBlob() {
|
|
6045
|
-
if (
|
|
6311
|
+
if (newTask.status === PENDING$1) {
|
|
6046
6312
|
var signal = request.cacheController.signal;
|
|
6047
6313
|
signal.removeEventListener("abort", abortBlob);
|
|
6048
6314
|
signal = signal.reason;
|
|
6049
|
-
|
|
6315
|
+
request.type === PRERENDER ? (request.abortableTasks.delete(newTask), haltTask(newTask), finishHaltedTask(newTask, request)) : (erroredTask(request, newTask, signal), enqueueFlush(request));
|
|
6050
6316
|
reader.cancel(signal).then(error, error);
|
|
6051
6317
|
}
|
|
6052
6318
|
}
|
|
@@ -6066,6 +6332,28 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6066
6332
|
reader.read().then(progress).catch(error);
|
|
6067
6333
|
return "$B" + newTask.id.toString(16);
|
|
6068
6334
|
}
|
|
6335
|
+
function escapeStringValue(value) {
|
|
6336
|
+
return "$" === value[0] ? "$" + value : value;
|
|
6337
|
+
}
|
|
6338
|
+
function serializeImportString(request, value) {
|
|
6339
|
+
if (value.length < MIN_DEDUPLICATED_IMPORT_STRING_LENGTH)
|
|
6340
|
+
return escapeStringValue(value);
|
|
6341
|
+
var writtenStrings = request.writtenImportStrings, existing = writtenStrings.get(value);
|
|
6342
|
+
if (void 0 !== existing) return existing;
|
|
6343
|
+
existing = request.writtenImportStringsSize + value.length;
|
|
6344
|
+
if (existing > MAX_DEDUPLICATED_IMPORT_STRINGS_SIZE)
|
|
6345
|
+
return escapeStringValue(value);
|
|
6346
|
+
request.writtenImportStringsSize = existing;
|
|
6347
|
+
request.pendingChunks++;
|
|
6348
|
+
existing = request.nextChunkId++;
|
|
6349
|
+
var json = stringify(escapeStringValue(value));
|
|
6350
|
+
request.completedImportChunks.push(
|
|
6351
|
+
existing.toString(16) + ":" + json + "\n"
|
|
6352
|
+
);
|
|
6353
|
+
request = serializeByValueID(existing);
|
|
6354
|
+
writtenStrings.set(value, request);
|
|
6355
|
+
return request;
|
|
6356
|
+
}
|
|
6069
6357
|
function renderModel(request, task, parent, key, value) {
|
|
6070
6358
|
serializedSize += key.length;
|
|
6071
6359
|
var prevKeyPath = task.keyPath, prevImplicitSlot = task.implicitSlot;
|
|
@@ -6075,8 +6363,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6075
6363
|
parent = task.model;
|
|
6076
6364
|
parent = "object" === typeof parent && null !== parent && (parent.$$typeof === REACT_ELEMENT_TYPE || parent.$$typeof === REACT_LAZY_TYPE);
|
|
6077
6365
|
if (request.status === ABORTING) {
|
|
6078
|
-
task.status =
|
|
6079
|
-
if (
|
|
6366
|
+
task.status = ABORTED;
|
|
6367
|
+
if (request.type === PRERENDER)
|
|
6080
6368
|
return task = request.nextChunkId++, task = parent ? serializeLazyID(task) : serializeByValueID(task), task;
|
|
6081
6369
|
task = request.fatalError;
|
|
6082
6370
|
return parent ? serializeLazyID(task) : serializeByValueID(task);
|
|
@@ -6113,7 +6401,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6113
6401
|
}
|
|
6114
6402
|
function renderModelDestructive(request, task, parent, parentPropertyName, value) {
|
|
6115
6403
|
task.model = value;
|
|
6116
|
-
|
|
6404
|
+
parentPropertyName === __PROTO__$1 && callWithDebugContextInDEV(request, task, function() {
|
|
6117
6405
|
console.error(
|
|
6118
6406
|
"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s",
|
|
6119
6407
|
describeObjectForErrorMessage(parent, parentPropertyName)
|
|
@@ -6146,7 +6434,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6146
6434
|
task.debugTask = value._debugTask;
|
|
6147
6435
|
if (void 0 === value._owner || void 0 === value._debugStack || void 0 === value._debugTask) {
|
|
6148
6436
|
var key = "";
|
|
6149
|
-
null !== value.key && (key = ' key="' + value.key + '"');
|
|
6437
|
+
null !== value.key && value.key !== REACT_OPTIMISTIC_KEY && (key = ' key="' + value.key + '"');
|
|
6150
6438
|
console.error(
|
|
6151
6439
|
"Attempted to render <%s%s> without development properties. This is not supported. It can happen if:\n- The element is created with a production version of React but rendered in development.\n- The element was cloned with a custom function instead of `React.cloneElement`.\nThe props of this element may help locate this element: %o",
|
|
6152
6440
|
value.type,
|
|
@@ -6177,8 +6465,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6177
6465
|
return renderModelDestructive(
|
|
6178
6466
|
request,
|
|
6179
6467
|
task,
|
|
6180
|
-
|
|
6181
|
-
|
|
6468
|
+
parent,
|
|
6469
|
+
parentPropertyName,
|
|
6182
6470
|
elementReference
|
|
6183
6471
|
);
|
|
6184
6472
|
case REACT_LEGACY_ELEMENT_TYPE:
|
|
@@ -6310,7 +6598,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6310
6598
|
return value;
|
|
6311
6599
|
}
|
|
6312
6600
|
if ("string" === typeof value)
|
|
6313
|
-
return serializedSize += value.length, "Z" === value[value.length - 1] && parent[parentPropertyName] instanceof Date ? "$D" + value : 1024 <= value.length && null !== byteLengthOfChunk ? serializeLargeTextString(request, value) :
|
|
6601
|
+
return serializedSize += value.length, "Z" === value[value.length - 1] && parent[parentPropertyName] instanceof Date ? "$D" + value : 1024 <= value.length && null !== byteLengthOfChunk ? serializeLargeTextString(request, value) : escapeStringValue(value);
|
|
6314
6602
|
if ("boolean" === typeof value) return value;
|
|
6315
6603
|
if ("number" === typeof value) return serializeNumber(value);
|
|
6316
6604
|
if ("undefined" === typeof value) return "$undefined";
|
|
@@ -6388,7 +6676,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6388
6676
|
function fatalError(request, error) {
|
|
6389
6677
|
var onFatalError = request.onFatalError;
|
|
6390
6678
|
onFatalError(error);
|
|
6391
|
-
null !== request.destination ? (request.status = CLOSED, request.destination.destroy(error)) : (request.status =
|
|
6679
|
+
null !== request.destination ? (request.status = CLOSED, request.destination.destroy(error)) : (request.status = CLOSING, request.fatalError = error);
|
|
6392
6680
|
request.cacheController.abort(
|
|
6393
6681
|
Error("The render was aborted due to a fatal error.", { cause: error })
|
|
6394
6682
|
);
|
|
@@ -6404,15 +6692,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6404
6692
|
} catch (x) {
|
|
6405
6693
|
message = "An error occurred but serializing the error message failed.", stack = [];
|
|
6406
6694
|
}
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
env
|
|
6412
|
-
}).toString(16);
|
|
6695
|
+
name = { name, message, stack, env };
|
|
6696
|
+
"cause" in error && (message = outlineModel(request, error.cause), name.cause = serializeByValueID(message));
|
|
6697
|
+
"undefined" !== typeof AggregateError && error instanceof AggregateError && (error = outlineModel(request, error.errors), name.errors = serializeByValueID(error));
|
|
6698
|
+
return "$Z" + outlineModel(request, name).toString(16);
|
|
6413
6699
|
}
|
|
6414
6700
|
function emitErrorChunk(request, id, digest, error, debug, owner) {
|
|
6415
|
-
var name = "Error", env = (0, request.environmentName)();
|
|
6701
|
+
var name = "Error", env = (0, request.environmentName)(), causeReference = null, errorsReference = null;
|
|
6416
6702
|
try {
|
|
6417
6703
|
if (error instanceof Error) {
|
|
6418
6704
|
name = error.name;
|
|
@@ -6420,6 +6706,14 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6420
6706
|
var stack = filterStackTrace(request, parseStackTrace(error, 0));
|
|
6421
6707
|
var errorEnv = error.environmentName;
|
|
6422
6708
|
"string" === typeof errorEnv && (env = errorEnv);
|
|
6709
|
+
if ("cause" in error) {
|
|
6710
|
+
var cause = error.cause, causeId = debug ? outlineDebugModel(request, { objectLimit: 5 }, cause) : outlineModel(request, cause);
|
|
6711
|
+
causeReference = serializeByValueID(causeId);
|
|
6712
|
+
}
|
|
6713
|
+
if ("undefined" !== typeof AggregateError && error instanceof AggregateError) {
|
|
6714
|
+
var errors = error.errors, errorsId = debug ? outlineDebugModel(request, { objectLimit: 5 }, errors) : outlineModel(request, errors);
|
|
6715
|
+
errorsReference = serializeByValueID(errorsId);
|
|
6716
|
+
}
|
|
6423
6717
|
} else
|
|
6424
6718
|
message = "object" === typeof error && null !== error ? describeObjectForErrorMessage(error) : String(error), stack = [];
|
|
6425
6719
|
} catch (x) {
|
|
@@ -6434,12 +6728,86 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6434
6728
|
env,
|
|
6435
6729
|
owner: error
|
|
6436
6730
|
};
|
|
6731
|
+
null !== causeReference && (digest.cause = causeReference);
|
|
6732
|
+
null !== errorsReference && (digest.errors = errorsReference);
|
|
6437
6733
|
id = id.toString(16) + ":E" + stringify(digest) + "\n";
|
|
6438
6734
|
debug ? request.completedDebugChunks.push(id) : request.completedErrorChunks.push(id);
|
|
6439
6735
|
}
|
|
6440
|
-
function
|
|
6441
|
-
|
|
6442
|
-
|
|
6736
|
+
function importMetadataReplacer(key, value) {
|
|
6737
|
+
return "string" === typeof value ? (key = importStringRequest, null === key ? escapeStringValue(value) : serializeImportString(key, value)) : value;
|
|
6738
|
+
}
|
|
6739
|
+
function transformImportMetadata(request, value, depth) {
|
|
6740
|
+
switch (typeof value) {
|
|
6741
|
+
case "string":
|
|
6742
|
+
return serializeImportString(request, value);
|
|
6743
|
+
case "number":
|
|
6744
|
+
case "boolean":
|
|
6745
|
+
case "undefined":
|
|
6746
|
+
return value;
|
|
6747
|
+
case "object":
|
|
6748
|
+
if (null === value) return null;
|
|
6749
|
+
if (depth > MAX_IMPORT_METADATA_DEPTH || "function" === typeof value.toJSON)
|
|
6750
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
6751
|
+
if (isArrayImpl(value)) {
|
|
6752
|
+
for (var length = value.length, _copy = Array(length), i = 0; i < length; i++) {
|
|
6753
|
+
var element = value[i];
|
|
6754
|
+
if ("string" === typeof element)
|
|
6755
|
+
_copy[i] = serializeImportString(request, element);
|
|
6756
|
+
else {
|
|
6757
|
+
element = transformImportMetadata(request, element, depth + 1);
|
|
6758
|
+
if (element === NOT_PLAIN_IMPORT_METADATA)
|
|
6759
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
6760
|
+
_copy[i] = element;
|
|
6761
|
+
}
|
|
6762
|
+
}
|
|
6763
|
+
return _copy;
|
|
6764
|
+
}
|
|
6765
|
+
length = getPrototypeOf(value);
|
|
6766
|
+
if (length !== ObjectPrototype$1 && null !== length)
|
|
6767
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
6768
|
+
length = Object.keys(value);
|
|
6769
|
+
_copy = {};
|
|
6770
|
+
for (i = 0; i < length.length; i++) {
|
|
6771
|
+
element = length[i];
|
|
6772
|
+
if (element in ObjectPrototype$1) return NOT_PLAIN_IMPORT_METADATA;
|
|
6773
|
+
var _element = value[element];
|
|
6774
|
+
if ("string" === typeof _element)
|
|
6775
|
+
_copy[element] = serializeImportString(request, _element);
|
|
6776
|
+
else {
|
|
6777
|
+
_element = transformImportMetadata(request, _element, depth + 1);
|
|
6778
|
+
if (_element === NOT_PLAIN_IMPORT_METADATA)
|
|
6779
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
6780
|
+
_copy[element] = _element;
|
|
6781
|
+
}
|
|
6782
|
+
}
|
|
6783
|
+
return _copy;
|
|
6784
|
+
default:
|
|
6785
|
+
return NOT_PLAIN_IMPORT_METADATA;
|
|
6786
|
+
}
|
|
6787
|
+
}
|
|
6788
|
+
function stringifyImportMetadata(request, clientReferenceMetadata, debug) {
|
|
6789
|
+
if (!debug) {
|
|
6790
|
+
var copy = transformImportMetadata(request, clientReferenceMetadata, 0);
|
|
6791
|
+
if (copy !== NOT_PLAIN_IMPORT_METADATA) return stringify(copy);
|
|
6792
|
+
}
|
|
6793
|
+
a: {
|
|
6794
|
+
copy = importStringRequest;
|
|
6795
|
+
importStringRequest = debug ? null : request;
|
|
6796
|
+
try {
|
|
6797
|
+
var JSCompiler_inline_result = stringify(
|
|
6798
|
+
clientReferenceMetadata,
|
|
6799
|
+
importMetadataReplacer
|
|
6800
|
+
);
|
|
6801
|
+
break a;
|
|
6802
|
+
} finally {
|
|
6803
|
+
importStringRequest = copy;
|
|
6804
|
+
}
|
|
6805
|
+
JSCompiler_inline_result = void 0;
|
|
6806
|
+
}
|
|
6807
|
+
return JSCompiler_inline_result;
|
|
6808
|
+
}
|
|
6809
|
+
function emitImportChunk(request, id, json, debug) {
|
|
6810
|
+
id = id.toString(16) + ":I" + json + "\n";
|
|
6443
6811
|
debug ? request.completedDebugChunks.push(id) : request.completedImportChunks.push(id);
|
|
6444
6812
|
}
|
|
6445
6813
|
function emitSymbolChunk(request, id, name) {
|
|
@@ -6452,7 +6820,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6452
6820
|
}
|
|
6453
6821
|
function emitDebugChunk(request, id, debugInfo) {
|
|
6454
6822
|
var json = serializeDebugModel(request, 500, debugInfo);
|
|
6455
|
-
null !== request.debugDestination ? (debugInfo = request.nextChunkId++, json = debugInfo.toString(16) + ":" + json + "\n", request.pendingDebugChunks++, request.completedDebugChunks.push(json), id = id.toString(16) + ':D"$' + debugInfo.toString(16) + '"\n', request.completedRegularChunks.push(id)) : (id = id.toString(16) + ":D" + json + "\n", request.completedRegularChunks.push(id));
|
|
6823
|
+
null !== request.debugDestination ? '"' === json[0] && "$" === json[1] ? (id = id.toString(16) + ":D" + json + "\n", request.completedRegularChunks.push(id)) : (debugInfo = request.nextChunkId++, json = debugInfo.toString(16) + ":" + json + "\n", request.pendingDebugChunks++, request.completedDebugChunks.push(json), id = id.toString(16) + ':D"$' + debugInfo.toString(16) + '"\n', request.completedRegularChunks.push(id)) : (id = id.toString(16) + ":D" + json + "\n", request.completedRegularChunks.push(id));
|
|
6456
6824
|
}
|
|
6457
6825
|
function outlineComponentInfo(request, componentInfo) {
|
|
6458
6826
|
var existingRef = request.writtenDebugObjects.get(componentInfo);
|
|
@@ -6499,45 +6867,53 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6499
6867
|
if (void 0 !== existingRef) return existingRef;
|
|
6500
6868
|
existingRef = null;
|
|
6501
6869
|
var name = "";
|
|
6870
|
+
if (null !== ioNode.promise) {
|
|
6871
|
+
var promise = ioNode.promise.deref();
|
|
6872
|
+
void 0 !== promise && "string" === typeof promise.displayName && (name = promise.displayName);
|
|
6873
|
+
}
|
|
6502
6874
|
if (null !== ioNode.stack) {
|
|
6503
6875
|
a: {
|
|
6504
6876
|
existingRef = ioNode.stack;
|
|
6505
|
-
for (
|
|
6506
|
-
var callsite = existingRef[
|
|
6877
|
+
for (promise = 0; promise < existingRef.length; promise++) {
|
|
6878
|
+
var callsite = existingRef[promise];
|
|
6507
6879
|
if (!isPromiseCreationInternal(callsite[1], callsite[0])) {
|
|
6508
|
-
|
|
6880
|
+
promise = 0 < promise ? existingRef.slice(promise) : existingRef;
|
|
6509
6881
|
break a;
|
|
6510
6882
|
}
|
|
6511
6883
|
}
|
|
6512
|
-
|
|
6884
|
+
promise = [];
|
|
6513
6885
|
}
|
|
6514
|
-
existingRef = filterStackTrace(request,
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
functionName,
|
|
6522
|
-
callsite
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6886
|
+
existingRef = filterStackTrace(request, promise);
|
|
6887
|
+
if ("" === name) {
|
|
6888
|
+
a: {
|
|
6889
|
+
name = promise;
|
|
6890
|
+
promise = "";
|
|
6891
|
+
callsite = request.filterStackFrame;
|
|
6892
|
+
for (var i = 0; i < name.length; i++) {
|
|
6893
|
+
var callsite$jscomp$0 = name[i], functionName = callsite$jscomp$0[0], url = devirtualizeURL(callsite$jscomp$0[1]);
|
|
6894
|
+
if (callsite(
|
|
6895
|
+
url,
|
|
6896
|
+
functionName,
|
|
6897
|
+
callsite$jscomp$0[2],
|
|
6898
|
+
callsite$jscomp$0[3]
|
|
6899
|
+
) && "" !== url) {
|
|
6900
|
+
if ("" === promise) {
|
|
6901
|
+
name = functionName;
|
|
6902
|
+
break a;
|
|
6903
|
+
}
|
|
6904
|
+
name = promise;
|
|
6527
6905
|
break a;
|
|
6528
|
-
}
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
} else callsite = functionName;
|
|
6906
|
+
} else promise = functionName;
|
|
6907
|
+
}
|
|
6908
|
+
name = "";
|
|
6532
6909
|
}
|
|
6533
|
-
name = "";
|
|
6910
|
+
name.startsWith("Window.") ? name = name.slice(7) : name.startsWith("<anonymous>.") && (name = name.slice(7));
|
|
6534
6911
|
}
|
|
6535
|
-
name.startsWith("Window.") ? name = name.slice(7) : name.startsWith("<anonymous>.") && (name = name.slice(7));
|
|
6536
6912
|
}
|
|
6537
|
-
|
|
6538
|
-
null !=
|
|
6539
|
-
|
|
6540
|
-
null !== promiseRef && (
|
|
6913
|
+
promise = ioNode.owner;
|
|
6914
|
+
null != promise && outlineComponentInfo(request, promise);
|
|
6915
|
+
callsite = void 0;
|
|
6916
|
+
null !== promiseRef && (callsite = promiseRef.deref());
|
|
6541
6917
|
promiseRef = (0, request.environmentName)();
|
|
6542
6918
|
i = 3 === ioNode.tag ? request.abortTime : ioNode.end;
|
|
6543
6919
|
request.pendingDebugChunks++;
|
|
@@ -6548,9 +6924,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6548
6924
|
name,
|
|
6549
6925
|
ioNode.start,
|
|
6550
6926
|
i,
|
|
6551
|
-
filterStackFrame,
|
|
6552
|
-
promiseRef,
|
|
6553
6927
|
callsite,
|
|
6928
|
+
promiseRef,
|
|
6929
|
+
promise,
|
|
6554
6930
|
existingRef
|
|
6555
6931
|
);
|
|
6556
6932
|
promiseRef = serializeByValueID(callsite$jscomp$0);
|
|
@@ -6566,7 +6942,15 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6566
6942
|
);
|
|
6567
6943
|
var binaryLength = typedArray.byteLength;
|
|
6568
6944
|
id = id.toString(16) + ":" + tag + binaryLength.toString(16) + ",";
|
|
6569
|
-
debug ? request.completedDebugChunks.push(
|
|
6945
|
+
debug ? request.completedDebugChunks.push(
|
|
6946
|
+
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
6947
|
+
id,
|
|
6948
|
+
typedArray
|
|
6949
|
+
) : request.completedRegularChunks.push(
|
|
6950
|
+
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
6951
|
+
id,
|
|
6952
|
+
typedArray
|
|
6953
|
+
);
|
|
6570
6954
|
}
|
|
6571
6955
|
function emitTextChunk(request, id, text, debug) {
|
|
6572
6956
|
if (null === byteLengthOfChunk)
|
|
@@ -6576,7 +6960,15 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6576
6960
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
6577
6961
|
var binaryLength = byteLengthOfChunk(text);
|
|
6578
6962
|
id = id.toString(16) + ":T" + binaryLength.toString(16) + ",";
|
|
6579
|
-
debug ? request.completedDebugChunks.push(
|
|
6963
|
+
debug ? request.completedDebugChunks.push(
|
|
6964
|
+
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
6965
|
+
id,
|
|
6966
|
+
text
|
|
6967
|
+
) : request.completedRegularChunks.push(
|
|
6968
|
+
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
6969
|
+
id,
|
|
6970
|
+
text
|
|
6971
|
+
);
|
|
6580
6972
|
}
|
|
6581
6973
|
function renderDebugModel(request, counter, parent, parentPropertyName, value) {
|
|
6582
6974
|
if (null === value) return null;
|
|
@@ -6712,7 +7104,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6712
7104
|
}
|
|
6713
7105
|
if ("function" === typeof value.then)
|
|
6714
7106
|
return serializeDebugThenable(request, counter, value);
|
|
6715
|
-
if (isArrayImpl(value))
|
|
7107
|
+
if (isArrayImpl(value))
|
|
7108
|
+
return 200 < value.length && !doNotLimit.has(value) ? serializeDeferredObject(request, value) : value;
|
|
7109
|
+
if (value instanceof Date) return "$D" + value.toJSON();
|
|
6716
7110
|
if (value instanceof Map) {
|
|
6717
7111
|
value = Array.from(value);
|
|
6718
7112
|
counter.objectLimit++;
|
|
@@ -6740,17 +7134,20 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6740
7134
|
value
|
|
6741
7135
|
).toString(16);
|
|
6742
7136
|
if (value instanceof Error) {
|
|
6743
|
-
|
|
6744
|
-
|
|
7137
|
+
var name = "Error";
|
|
7138
|
+
parent = (0, request.environmentName)();
|
|
6745
7139
|
try {
|
|
6746
|
-
|
|
7140
|
+
name = value.name, key = String(value.message), ref = filterStackTrace(request, parseStackTrace(value, 0)), entry = value.environmentName, "string" === typeof entry && (parent = entry);
|
|
6747
7141
|
} catch (x) {
|
|
6748
|
-
|
|
7142
|
+
key = "An error occurred but serializing the error message failed.", ref = [];
|
|
6749
7143
|
}
|
|
7144
|
+
key = { name, message: key, stack: ref, env: parent };
|
|
7145
|
+
"cause" in value && (counter.objectLimit--, entry = outlineDebugModel(request, counter, value.cause), key.cause = serializeByValueID(entry));
|
|
7146
|
+
"undefined" !== typeof AggregateError && value instanceof AggregateError && (counter.objectLimit--, value = outlineDebugModel(request, counter, value.errors), key.errors = serializeByValueID(value));
|
|
6750
7147
|
request = "$Z" + outlineDebugModel(
|
|
6751
7148
|
request,
|
|
6752
|
-
{ objectLimit: 2 *
|
|
6753
|
-
|
|
7149
|
+
{ objectLimit: 2 * ref.length + 1 },
|
|
7150
|
+
key
|
|
6754
7151
|
).toString(16);
|
|
6755
7152
|
return request;
|
|
6756
7153
|
}
|
|
@@ -6786,9 +7183,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6786
7183
|
request = getPrototypeOf(value);
|
|
6787
7184
|
if (request !== ObjectPrototype$1 && null !== request) {
|
|
6788
7185
|
counter = /* @__PURE__ */ Object.create(null);
|
|
6789
|
-
for (
|
|
6790
|
-
if (hasOwnProperty.call(value,
|
|
6791
|
-
counter[
|
|
7186
|
+
for (name in value)
|
|
7187
|
+
if (hasOwnProperty.call(value, name) || isGetter(request, name))
|
|
7188
|
+
counter[name] = value[name];
|
|
6792
7189
|
ref = request.constructor;
|
|
6793
7190
|
"function" !== typeof ref || ref.prototype !== request || hasOwnProperty.call(value, "") || isGetter(request, "") || (counter[""] = { $$typeof: CONSTRUCTOR_MARKER, constructor: ref });
|
|
6794
7191
|
return counter;
|
|
@@ -6796,8 +7193,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6796
7193
|
return value;
|
|
6797
7194
|
}
|
|
6798
7195
|
if ("string" === typeof value) {
|
|
6799
|
-
if (
|
|
6800
|
-
return "
|
|
7196
|
+
if (1e6 < value.length)
|
|
7197
|
+
return "This string of length " + value.length + " has been omitted by React to avoid sending too much data from the server.";
|
|
6801
7198
|
if (1024 <= value.length) {
|
|
6802
7199
|
if (0 >= counter.objectLimit)
|
|
6803
7200
|
return serializeDeferredObject(request, value);
|
|
@@ -6807,7 +7204,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6807
7204
|
emitTextChunk(request, counter, value, true);
|
|
6808
7205
|
return serializeByValueID(counter);
|
|
6809
7206
|
}
|
|
6810
|
-
return
|
|
7207
|
+
return escapeStringValue(value);
|
|
6811
7208
|
}
|
|
6812
7209
|
if ("boolean" === typeof value) return value;
|
|
6813
7210
|
if ("number" === typeof value) return serializeNumber(value);
|
|
@@ -6845,17 +7242,17 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6845
7242
|
emitSymbolChunk(request, counter, value);
|
|
6846
7243
|
return serializeByValueID(counter);
|
|
6847
7244
|
}
|
|
6848
|
-
return "bigint" === typeof value ? "$n" + value.toString(10) :
|
|
7245
|
+
return "bigint" === typeof value ? "$n" + value.toString(10) : "unknown type " + typeof value;
|
|
6849
7246
|
}
|
|
6850
7247
|
function serializeDebugModel(request, objectLimit, model) {
|
|
6851
|
-
function replacer(parentPropertyName
|
|
7248
|
+
function replacer(parentPropertyName) {
|
|
6852
7249
|
try {
|
|
6853
7250
|
return renderDebugModel(
|
|
6854
7251
|
request,
|
|
6855
7252
|
counter,
|
|
6856
7253
|
this,
|
|
6857
7254
|
parentPropertyName,
|
|
6858
|
-
|
|
7255
|
+
this[parentPropertyName]
|
|
6859
7256
|
);
|
|
6860
7257
|
} catch (x) {
|
|
6861
7258
|
return "Unknown Value: React could not send it from the server.\n" + x.message;
|
|
@@ -6875,14 +7272,14 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6875
7272
|
}
|
|
6876
7273
|
}
|
|
6877
7274
|
function emitOutlinedDebugModelChunk(request, id, counter, model) {
|
|
6878
|
-
function replacer(parentPropertyName
|
|
7275
|
+
function replacer(parentPropertyName) {
|
|
6879
7276
|
try {
|
|
6880
7277
|
return renderDebugModel(
|
|
6881
7278
|
request,
|
|
6882
7279
|
counter,
|
|
6883
7280
|
this,
|
|
6884
7281
|
parentPropertyName,
|
|
6885
|
-
|
|
7282
|
+
this[parentPropertyName]
|
|
6886
7283
|
);
|
|
6887
7284
|
} catch (x) {
|
|
6888
7285
|
return "Unknown Value: React could not send it from the server.\n" + x.message;
|
|
@@ -6933,6 +7330,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6933
7330
|
request,
|
|
6934
7331
|
parseStackTrace(ioInfo$jscomp$0.debugStack, 1)
|
|
6935
7332
|
) : ioInfo$jscomp$0.stack;
|
|
7333
|
+
var env = ioInfo$jscomp$0.env;
|
|
7334
|
+
null == env && (env = (0, request.environmentName)());
|
|
6936
7335
|
emitIOInfoChunk(
|
|
6937
7336
|
request,
|
|
6938
7337
|
id$jscomp$0,
|
|
@@ -6940,7 +7339,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6940
7339
|
ioInfo$jscomp$0.start,
|
|
6941
7340
|
ioInfo$jscomp$0.end,
|
|
6942
7341
|
ioInfo$jscomp$0.value,
|
|
6943
|
-
|
|
7342
|
+
env,
|
|
6944
7343
|
owner,
|
|
6945
7344
|
debugStack
|
|
6946
7345
|
);
|
|
@@ -6955,7 +7354,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6955
7354
|
parseStackTrace(info.debugStack, 1)
|
|
6956
7355
|
) : info.stack;
|
|
6957
7356
|
ioInfo = { awaited: ioInfo };
|
|
6958
|
-
null != info.env
|
|
7357
|
+
ioInfo.env = null != info.env ? info.env : (0, request$jscomp$0.environmentName)();
|
|
6959
7358
|
null != info.owner && (ioInfo.owner = info.owner);
|
|
6960
7359
|
null != debugStack && (ioInfo.stack = debugStack);
|
|
6961
7360
|
request$jscomp$0.pendingChunks++;
|
|
@@ -7017,20 +7416,26 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7017
7416
|
"V",
|
|
7018
7417
|
value,
|
|
7019
7418
|
false
|
|
7020
|
-
) : (value =
|
|
7419
|
+
) : (value = resolveModel(
|
|
7420
|
+
request,
|
|
7421
|
+
task,
|
|
7422
|
+
{ "": value },
|
|
7423
|
+
"",
|
|
7424
|
+
value
|
|
7425
|
+
), value = stringify(value), task = task.id.toString(16) + ":" + value + "\n", request.completedRegularChunks.push(task));
|
|
7021
7426
|
}
|
|
7022
7427
|
function erroredTask(request, task, error) {
|
|
7023
7428
|
task.timed && markOperationEndTime(request, task, performance.now());
|
|
7024
|
-
task.status =
|
|
7429
|
+
task.status = ERRORED$1;
|
|
7025
7430
|
var digest = logRecoverableError(request, error, task);
|
|
7026
7431
|
emitErrorChunk(request, task.id, digest, error, false, task.debugOwner);
|
|
7027
7432
|
request.abortableTasks.delete(task);
|
|
7028
7433
|
callOnAllReadyIfReady(request);
|
|
7029
7434
|
}
|
|
7030
7435
|
function retryTask(request, task) {
|
|
7031
|
-
if (
|
|
7436
|
+
if (task.status === PENDING$1) {
|
|
7032
7437
|
var prevCanEmitDebugInfo = canEmitDebugInfo;
|
|
7033
|
-
task.status =
|
|
7438
|
+
task.status = RENDERING;
|
|
7034
7439
|
var parentSerializedSize = serializedSize;
|
|
7035
7440
|
try {
|
|
7036
7441
|
modelRoot = task.model;
|
|
@@ -7058,12 +7463,12 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7058
7463
|
var json = stringify(resolvedModel), processedChunk = task.id.toString(16) + ":" + json + "\n";
|
|
7059
7464
|
request.completedRegularChunks.push(processedChunk);
|
|
7060
7465
|
}
|
|
7061
|
-
task.status =
|
|
7466
|
+
task.status = COMPLETED;
|
|
7062
7467
|
request.abortableTasks.delete(task);
|
|
7063
7468
|
callOnAllReadyIfReady(request);
|
|
7064
7469
|
} catch (thrownValue) {
|
|
7065
7470
|
if (request.status === ABORTING)
|
|
7066
|
-
if (request.abortableTasks.delete(task), task.status =
|
|
7471
|
+
if (request.abortableTasks.delete(task), task.status = PENDING$1, request.type === PRERENDER)
|
|
7067
7472
|
haltTask(task), finishHaltedTask(task, request);
|
|
7068
7473
|
else {
|
|
7069
7474
|
var errorId = request.fatalError;
|
|
@@ -7073,7 +7478,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7073
7478
|
else {
|
|
7074
7479
|
var x = thrownValue === SuspenseException ? getSuspendedThenable() : thrownValue;
|
|
7075
7480
|
if ("object" === typeof x && null !== x && "function" === typeof x.then) {
|
|
7076
|
-
task.status =
|
|
7481
|
+
task.status = PENDING$1;
|
|
7077
7482
|
task.thenableState = getThenableStateAfterSuspending();
|
|
7078
7483
|
var ping = task.ping;
|
|
7079
7484
|
x.then(ping, ping);
|
|
@@ -7113,26 +7518,38 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7113
7518
|
}
|
|
7114
7519
|
}
|
|
7115
7520
|
function abortTask(task) {
|
|
7116
|
-
|
|
7521
|
+
task.status === PENDING$1 && (task.status = ABORTED);
|
|
7117
7522
|
}
|
|
7118
7523
|
function finishAbortedTask(task, request, errorId) {
|
|
7119
|
-
|
|
7524
|
+
task.status === ABORTED && (forwardDebugInfoFromAbortedTask(request, task), task.timed && markOperationEndTime(request, task, request.abortTime), errorId = serializeByValueID(errorId), task = encodeReferenceChunk(request, task.id, errorId), request.completedErrorChunks.push(task));
|
|
7120
7525
|
}
|
|
7121
7526
|
function haltTask(task) {
|
|
7122
|
-
|
|
7527
|
+
task.status === PENDING$1 && (task.status = ABORTED);
|
|
7123
7528
|
}
|
|
7124
7529
|
function finishHaltedTask(task, request) {
|
|
7125
|
-
|
|
7530
|
+
task.status === ABORTED && (forwardDebugInfoFromAbortedTask(request, task), request.pendingChunks--);
|
|
7126
7531
|
}
|
|
7127
7532
|
function flushCompletedChunks(request) {
|
|
7128
7533
|
if (null !== request.debugDestination) {
|
|
7129
7534
|
var debugDestination = request.debugDestination;
|
|
7130
|
-
currentView = new Uint8Array(
|
|
7535
|
+
currentView = new Uint8Array(4096);
|
|
7131
7536
|
writtenBytes = 0;
|
|
7132
7537
|
destinationHasCapacity = true;
|
|
7133
7538
|
try {
|
|
7134
|
-
for (var debugChunks = request.completedDebugChunks, i = 0; i < debugChunks.length; i++)
|
|
7135
|
-
|
|
7539
|
+
for (var debugChunks = request.completedDebugChunks, i = 0; i < debugChunks.length; i++) {
|
|
7540
|
+
var item = debugChunks[i];
|
|
7541
|
+
if (item === NEXT_TWO_CHUNKS_ARE_ATOMIC) {
|
|
7542
|
+
if (i + 2 >= debugChunks.length)
|
|
7543
|
+
throw Error(
|
|
7544
|
+
"A chunk pair is incomplete. This is a bug in React."
|
|
7545
|
+
);
|
|
7546
|
+
request.pendingDebugChunks -= 2;
|
|
7547
|
+
writeChunk(debugDestination, debugChunks[i + 1]);
|
|
7548
|
+
writeChunk(debugDestination, debugChunks[i + 2]);
|
|
7549
|
+
i += 2;
|
|
7550
|
+
} else
|
|
7551
|
+
request.pendingDebugChunks--, writeChunk(debugDestination, item);
|
|
7552
|
+
}
|
|
7136
7553
|
debugChunks.splice(0, i);
|
|
7137
7554
|
} finally {
|
|
7138
7555
|
completeWriting(debugDestination);
|
|
@@ -7141,7 +7558,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7141
7558
|
}
|
|
7142
7559
|
debugDestination = request.destination;
|
|
7143
7560
|
if (null !== debugDestination) {
|
|
7144
|
-
currentView = new Uint8Array(
|
|
7561
|
+
currentView = new Uint8Array(4096);
|
|
7145
7562
|
writtenBytes = 0;
|
|
7146
7563
|
destinationHasCapacity = true;
|
|
7147
7564
|
try {
|
|
@@ -7166,27 +7583,58 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7166
7583
|
hintChunks.splice(0, debugChunks);
|
|
7167
7584
|
if (null === request.debugDestination) {
|
|
7168
7585
|
var _debugChunks = request.completedDebugChunks;
|
|
7169
|
-
for (debugChunks = 0; debugChunks < _debugChunks.length; debugChunks++)
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7586
|
+
for (debugChunks = 0; debugChunks < _debugChunks.length; debugChunks++) {
|
|
7587
|
+
var _item = _debugChunks[debugChunks];
|
|
7588
|
+
importsChunks = void 0;
|
|
7589
|
+
if (_item === NEXT_TWO_CHUNKS_ARE_ATOMIC) {
|
|
7590
|
+
if (debugChunks + 2 >= _debugChunks.length)
|
|
7591
|
+
throw Error(
|
|
7592
|
+
"A chunk pair is incomplete. This is a bug in React."
|
|
7593
|
+
);
|
|
7594
|
+
request.pendingDebugChunks -= 2;
|
|
7595
|
+
writeChunk(debugDestination, _debugChunks[debugChunks + 1]);
|
|
7596
|
+
importsChunks = writeChunkAndReturn(
|
|
7597
|
+
debugDestination,
|
|
7598
|
+
_debugChunks[debugChunks + 2]
|
|
7599
|
+
);
|
|
7600
|
+
debugChunks += 2;
|
|
7601
|
+
} else
|
|
7602
|
+
request.pendingDebugChunks--, importsChunks = writeChunkAndReturn(
|
|
7603
|
+
debugDestination,
|
|
7604
|
+
_item
|
|
7605
|
+
);
|
|
7606
|
+
if (!importsChunks) {
|
|
7174
7607
|
request.destination = null;
|
|
7175
7608
|
debugChunks++;
|
|
7176
7609
|
break;
|
|
7177
7610
|
}
|
|
7611
|
+
}
|
|
7178
7612
|
_debugChunks.splice(0, debugChunks);
|
|
7179
7613
|
}
|
|
7180
7614
|
var regularChunks = request.completedRegularChunks;
|
|
7181
|
-
for (debugChunks = 0; debugChunks < regularChunks.length; debugChunks++)
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7615
|
+
for (debugChunks = 0; debugChunks < regularChunks.length; debugChunks++) {
|
|
7616
|
+
var _item2 = regularChunks[debugChunks];
|
|
7617
|
+
_debugChunks = void 0;
|
|
7618
|
+
if (_item2 === NEXT_TWO_CHUNKS_ARE_ATOMIC) {
|
|
7619
|
+
if (debugChunks + 2 >= regularChunks.length)
|
|
7620
|
+
throw Error(
|
|
7621
|
+
"A chunk pair is incomplete. This is a bug in React."
|
|
7622
|
+
);
|
|
7623
|
+
request.pendingChunks -= 2;
|
|
7624
|
+
writeChunk(debugDestination, regularChunks[debugChunks + 1]);
|
|
7625
|
+
_debugChunks = writeChunkAndReturn(
|
|
7626
|
+
debugDestination,
|
|
7627
|
+
regularChunks[debugChunks + 2]
|
|
7628
|
+
);
|
|
7629
|
+
debugChunks += 2;
|
|
7630
|
+
} else
|
|
7631
|
+
request.pendingChunks--, _debugChunks = writeChunkAndReturn(debugDestination, _item2);
|
|
7632
|
+
if (!_debugChunks) {
|
|
7186
7633
|
request.destination = null;
|
|
7187
7634
|
debugChunks++;
|
|
7188
7635
|
break;
|
|
7189
7636
|
}
|
|
7637
|
+
}
|
|
7190
7638
|
regularChunks.splice(0, debugChunks);
|
|
7191
7639
|
var errorChunks = request.completedErrorChunks;
|
|
7192
7640
|
for (debugChunks = 0; debugChunks < errorChunks.length; debugChunks++)
|
|
@@ -7201,11 +7649,11 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7201
7649
|
}
|
|
7202
7650
|
flushBuffered(debugDestination);
|
|
7203
7651
|
}
|
|
7204
|
-
0 === request.pendingChunks && (
|
|
7652
|
+
0 === request.pendingChunks && (request.status < ABORTING && request.cacheController.abort(
|
|
7205
7653
|
Error(
|
|
7206
7654
|
"This render completed successfully. All cacheSignals are now aborted to allow clean up of any unused resources."
|
|
7207
7655
|
)
|
|
7208
|
-
), null !== request.destination && (request.status = CLOSED, request.destination.end(), request.destination = null), null !== request.debugDestination && (request.debugDestination.end(), request.debugDestination = null)) : null !==
|
|
7656
|
+
), regularChunks = request.debugDestination, 0 === request.pendingDebugChunks ? (null !== regularChunks && (regularChunks.end(), request.debugDestination = null), null !== request.destination && (request.status = CLOSED, request.destination.end(), request.destination = null), null !== request.debugDestination && (request.debugDestination.end(), request.debugDestination = null)) : null !== regularChunks && null !== request.destination && (request.status = CLOSED, request.destination.end(), request.destination = null));
|
|
7209
7657
|
}
|
|
7210
7658
|
function startWork(request) {
|
|
7211
7659
|
request.flushScheduled = null !== request.destination;
|
|
@@ -7213,7 +7661,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7213
7661
|
requestStorage.run(request, performWork, request);
|
|
7214
7662
|
});
|
|
7215
7663
|
setImmediate(function() {
|
|
7216
|
-
|
|
7664
|
+
request.status === OPENING && (request.status = 11);
|
|
7217
7665
|
});
|
|
7218
7666
|
}
|
|
7219
7667
|
function enqueueFlush(request) {
|
|
@@ -7226,7 +7674,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7226
7674
|
0 === request.abortableTasks.size && (request = request.onAllReady, request());
|
|
7227
7675
|
}
|
|
7228
7676
|
function startFlowing(request, destination) {
|
|
7229
|
-
if (
|
|
7677
|
+
if (request.status === CLOSING)
|
|
7230
7678
|
request.status = CLOSED, destination.destroy(request.fatalError);
|
|
7231
7679
|
else if (request.status !== CLOSED && null === request.destination) {
|
|
7232
7680
|
request.destination = destination;
|
|
@@ -7238,7 +7686,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7238
7686
|
}
|
|
7239
7687
|
}
|
|
7240
7688
|
function startFlowingDebug(request, debugDestination) {
|
|
7241
|
-
if (
|
|
7689
|
+
if (request.status === CLOSING)
|
|
7242
7690
|
request.status = CLOSED, debugDestination.destroy(request.fatalError);
|
|
7243
7691
|
else if (request.status !== CLOSED && null === request.debugDestination) {
|
|
7244
7692
|
request.debugDestination = debugDestination;
|
|
@@ -7273,6 +7721,15 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7273
7721
|
logRecoverableError(request, error, null), fatalError(request, error);
|
|
7274
7722
|
}
|
|
7275
7723
|
}
|
|
7724
|
+
function attachAbortSignal(request, signal) {
|
|
7725
|
+
signal.aborted ? abort(request, signal.reason) : signal.addEventListener(
|
|
7726
|
+
"abort",
|
|
7727
|
+
function() {
|
|
7728
|
+
abort(request, signal.reason);
|
|
7729
|
+
},
|
|
7730
|
+
{ signal: request.cacheController.signal }
|
|
7731
|
+
);
|
|
7732
|
+
}
|
|
7276
7733
|
function abort(request, reason) {
|
|
7277
7734
|
if (!(11 < request.status))
|
|
7278
7735
|
try {
|
|
@@ -7281,7 +7738,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7281
7738
|
request.cacheController.abort(reason);
|
|
7282
7739
|
var abortableTasks = request.abortableTasks;
|
|
7283
7740
|
if (0 < abortableTasks.size)
|
|
7284
|
-
if (
|
|
7741
|
+
if (request.type === PRERENDER)
|
|
7285
7742
|
abortableTasks.forEach(function(task) {
|
|
7286
7743
|
return haltTask(task, request);
|
|
7287
7744
|
}), setImmediate(function() {
|
|
@@ -7292,15 +7749,15 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7292
7749
|
"The render was aborted by the server without a reason."
|
|
7293
7750
|
) : "object" === typeof reason && null !== reason && "function" === typeof reason.then ? Error(
|
|
7294
7751
|
"The render was aborted by the server with a promise."
|
|
7295
|
-
) : reason, digest = logRecoverableError(request, error, null),
|
|
7296
|
-
request.fatalError =
|
|
7752
|
+
) : reason, digest = logRecoverableError(request, error, null), errorId = request.nextChunkId++;
|
|
7753
|
+
request.fatalError = errorId;
|
|
7297
7754
|
request.pendingChunks++;
|
|
7298
|
-
emitErrorChunk(request,
|
|
7755
|
+
emitErrorChunk(request, errorId, digest, error, false, null);
|
|
7299
7756
|
abortableTasks.forEach(function(task) {
|
|
7300
|
-
return abortTask(task, request,
|
|
7757
|
+
return abortTask(task, request, errorId);
|
|
7301
7758
|
});
|
|
7302
7759
|
setImmediate(function() {
|
|
7303
|
-
return finishAbort(request, abortableTasks,
|
|
7760
|
+
return finishAbort(request, abortableTasks, errorId);
|
|
7304
7761
|
});
|
|
7305
7762
|
}
|
|
7306
7763
|
else {
|
|
@@ -7308,8 +7765,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7308
7765
|
onAllReady();
|
|
7309
7766
|
flushCompletedChunks(request);
|
|
7310
7767
|
}
|
|
7311
|
-
} catch (error$
|
|
7312
|
-
logRecoverableError(request, error$
|
|
7768
|
+
} catch (error$8) {
|
|
7769
|
+
logRecoverableError(request, error$8, null), fatalError(request, error$8);
|
|
7313
7770
|
}
|
|
7314
7771
|
}
|
|
7315
7772
|
function fromHex(str) {
|
|
@@ -7462,6 +7919,14 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7462
7919
|
null !== listeners && rejectChunk(response, listeners, error);
|
|
7463
7920
|
}
|
|
7464
7921
|
}
|
|
7922
|
+
function createResolvedModelChunk(response, value, id) {
|
|
7923
|
+
var $jscomp$compprop2 = {};
|
|
7924
|
+
return new ReactPromise(
|
|
7925
|
+
"resolved_model",
|
|
7926
|
+
value,
|
|
7927
|
+
($jscomp$compprop2.id = id, $jscomp$compprop2[RESPONSE_SYMBOL] = response, $jscomp$compprop2)
|
|
7928
|
+
);
|
|
7929
|
+
}
|
|
7465
7930
|
function resolveModelChunk(response, chunk, value, id) {
|
|
7466
7931
|
if ("pending" !== chunk.status)
|
|
7467
7932
|
chunk = chunk.reason, "C" === value[0] ? chunk.close("C" === value ? '"$undefined"' : value.slice(1)) : chunk.enqueueModel(value);
|
|
@@ -7469,7 +7934,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7469
7934
|
var resolveListeners = chunk.value, rejectListeners = chunk.reason;
|
|
7470
7935
|
chunk.status = "resolved_model";
|
|
7471
7936
|
chunk.value = value;
|
|
7472
|
-
|
|
7937
|
+
value = {};
|
|
7938
|
+
chunk.reason = (value.id = id, value[RESPONSE_SYMBOL] = response, value);
|
|
7473
7939
|
if (null !== resolveListeners)
|
|
7474
7940
|
switch (initializeModelChunk(chunk), chunk.status) {
|
|
7475
7941
|
case "fulfilled":
|
|
@@ -7478,13 +7944,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7478
7944
|
case "blocked":
|
|
7479
7945
|
case "pending":
|
|
7480
7946
|
if (chunk.value)
|
|
7481
|
-
for (
|
|
7482
|
-
chunk.value.push(resolveListeners[
|
|
7947
|
+
for (response = 0; response < resolveListeners.length; response++)
|
|
7948
|
+
chunk.value.push(resolveListeners[response]);
|
|
7483
7949
|
else chunk.value = resolveListeners;
|
|
7484
7950
|
if (chunk.reason) {
|
|
7485
7951
|
if (rejectListeners)
|
|
7486
|
-
for (
|
|
7487
|
-
chunk.reason.push(rejectListeners[
|
|
7952
|
+
for (resolveListeners = 0; resolveListeners < rejectListeners.length; resolveListeners++)
|
|
7953
|
+
chunk.reason.push(rejectListeners[resolveListeners]);
|
|
7488
7954
|
} else chunk.reason = rejectListeners;
|
|
7489
7955
|
break;
|
|
7490
7956
|
case "rejected":
|
|
@@ -7493,10 +7959,11 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7493
7959
|
}
|
|
7494
7960
|
}
|
|
7495
7961
|
function createResolvedIteratorResultChunk(response, value, done) {
|
|
7962
|
+
var $jscomp$compprop4 = {};
|
|
7496
7963
|
return new ReactPromise(
|
|
7497
7964
|
"resolved_model",
|
|
7498
7965
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') + value + "}",
|
|
7499
|
-
|
|
7966
|
+
($jscomp$compprop4.id = -1, $jscomp$compprop4[RESPONSE_SYMBOL] = response, $jscomp$compprop4)
|
|
7500
7967
|
);
|
|
7501
7968
|
}
|
|
7502
7969
|
function resolveIteratorResultChunk(response, chunk, value, done) {
|
|
@@ -7538,7 +8005,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7538
8005
|
else if (cachedPromise instanceof ReactPromise)
|
|
7539
8006
|
id = Promise.resolve(cachedPromise);
|
|
7540
8007
|
else
|
|
7541
|
-
return cachedPromise = requireModule(serverReference), id = blockedPromise, id.status = "fulfilled", id.value = cachedPromise;
|
|
8008
|
+
return cachedPromise = requireModule(serverReference), id = blockedPromise, id.status = "fulfilled", id.value = cachedPromise, id.reason = null, cachedPromise;
|
|
7542
8009
|
if (initializingHandler) {
|
|
7543
8010
|
var handler = initializingHandler;
|
|
7544
8011
|
handler.deps++;
|
|
@@ -7674,11 +8141,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7674
8141
|
}
|
|
7675
8142
|
function getChunk(response, id) {
|
|
7676
8143
|
var chunks = response._chunks, chunk = chunks.get(id);
|
|
7677
|
-
chunk || (chunk = response._formData.data.get(response._prefix + id), chunk = "string" === typeof chunk ? new ReactPromise(
|
|
7678
|
-
"resolved_model",
|
|
7679
|
-
chunk,
|
|
7680
|
-
_defineProperty({ id }, RESPONSE_SYMBOL, response)
|
|
7681
|
-
) : response._closed ? new ReactPromise("rejected", null, response._closedReason) : new ReactPromise("pending", null, null), chunks.set(id, chunk));
|
|
8144
|
+
chunk || (chunk = response._formData.data.get(response._prefix + id), chunk = "string" === typeof chunk ? createResolvedModelChunk(response, chunk, id) : response._closed ? new ReactPromise("rejected", null, response._closedReason) : new ReactPromise("pending", null, null), chunks.set(id, chunk));
|
|
7682
8145
|
return chunk;
|
|
7683
8146
|
}
|
|
7684
8147
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -7864,11 +8327,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7864
8327
|
}), previousBlockedChunk = null, flightController = {
|
|
7865
8328
|
enqueueModel: function(json) {
|
|
7866
8329
|
if (null === previousBlockedChunk) {
|
|
7867
|
-
var chunk =
|
|
7868
|
-
"resolved_model",
|
|
7869
|
-
json,
|
|
7870
|
-
_defineProperty({ id: -1 }, RESPONSE_SYMBOL, response)
|
|
7871
|
-
);
|
|
8330
|
+
var chunk = createResolvedModelChunk(response, json, -1);
|
|
7872
8331
|
initializeModelChunk(chunk);
|
|
7873
8332
|
"fulfilled" === chunk.status ? enqueue(chunk.value) : (chunk.then(enqueue, flightController.error), previousBlockedChunk = chunk);
|
|
7874
8333
|
} else {
|
|
@@ -7917,7 +8376,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7917
8376
|
reference = parseInt(reference.slice(2), 16);
|
|
7918
8377
|
if (response._chunks.has(reference))
|
|
7919
8378
|
throw Error("Already initialized stream.");
|
|
7920
|
-
var buffer = [], closed = false, nextWriteIndex = 0,
|
|
8379
|
+
var buffer = [], closed = false, nextWriteIndex = 0, $jscomp$compprop5 = {};
|
|
8380
|
+
$jscomp$compprop5 = ($jscomp$compprop5[ASYNC_ITERATOR] = function() {
|
|
7921
8381
|
var nextReadIndex = 0;
|
|
7922
8382
|
return new FlightIterator(function(arg) {
|
|
7923
8383
|
if (void 0 !== arg)
|
|
@@ -7935,8 +8395,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7935
8395
|
}
|
|
7936
8396
|
return buffer[nextReadIndex++];
|
|
7937
8397
|
});
|
|
7938
|
-
});
|
|
7939
|
-
iterator = iterator ?
|
|
8398
|
+
}, $jscomp$compprop5);
|
|
8399
|
+
iterator = iterator ? $jscomp$compprop5[ASYNC_ITERATOR]() : $jscomp$compprop5;
|
|
7940
8400
|
resolveStream(response, reference, iterator, {
|
|
7941
8401
|
enqueueModel: function(value) {
|
|
7942
8402
|
nextWriteIndex === buffer.length ? buffer[nextWriteIndex] = createResolvedIteratorResultChunk(
|
|
@@ -8191,7 +8651,11 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8191
8651
|
arrayRoot
|
|
8192
8652
|
);
|
|
8193
8653
|
case "B":
|
|
8194
|
-
|
|
8654
|
+
obj = parseInt(value.slice(2), 16);
|
|
8655
|
+
response = response._formData.data.get(response._prefix + obj);
|
|
8656
|
+
if (!(response instanceof Blob))
|
|
8657
|
+
throw Error("Referenced Blob is not a Blob.");
|
|
8658
|
+
return response;
|
|
8195
8659
|
case "R":
|
|
8196
8660
|
return parseReadableStream(response, value, void 0);
|
|
8197
8661
|
case "r":
|
|
@@ -8387,16 +8851,14 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8387
8851
|
}
|
|
8388
8852
|
var stream = __import_stream2, util = __import_util2;
|
|
8389
8853
|
__import_crypto2;
|
|
8390
|
-
var async_hooks = __import_async_hooks2, ReactDOM = import_react_dom.default, React = import_react.default, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")
|
|
8391
|
-
/* @__PURE__ */ Symbol.for("react.postpone");
|
|
8392
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, ASYNC_ITERATOR = Symbol.asyncIterator, scheduleMicrotask = queueMicrotask, currentView = null, writtenBytes = 0, destinationHasCapacity = true, textEncoder = new util.TextEncoder(), CLIENT_REFERENCE_TAG$1 = /* @__PURE__ */ Symbol.for("react.client.reference"), SERVER_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.server.reference"), FunctionBind = Function.prototype.bind, ArraySlice = Array.prototype.slice, serverReferenceToString = {
|
|
8854
|
+
var async_hooks = __import_async_hooks2, ReactDOM = import_react_dom.default, React = import_react.default, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, ASYNC_ITERATOR = Symbol.asyncIterator, REACT_OPTIMISTIC_KEY = /* @__PURE__ */ Symbol.for("react.optimistic_key"), scheduleMicrotask = queueMicrotask, currentView = null, writtenBytes = 0, destinationHasCapacity = true, textEncoder = new util.TextEncoder(), CLIENT_REFERENCE_TAG$1 = /* @__PURE__ */ Symbol.for("react.client.reference"), SERVER_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.server.reference"), FunctionBind = Function.prototype.bind, ArraySlice = Array.prototype.slice, serverReferenceToString = {
|
|
8393
8855
|
value: function() {
|
|
8394
8856
|
return "function () { [omitted code] }";
|
|
8395
8857
|
},
|
|
8396
8858
|
configurable: true,
|
|
8397
8859
|
writable: true
|
|
8398
8860
|
}, PROMISE_PROTOTYPE = Promise.prototype, deepProxyHandlers = {
|
|
8399
|
-
get: function(target, name) {
|
|
8861
|
+
get: function(target, name, receiver) {
|
|
8400
8862
|
switch (name) {
|
|
8401
8863
|
case "$$typeof":
|
|
8402
8864
|
return target.$$typeof;
|
|
@@ -8419,9 +8881,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8419
8881
|
case Symbol.toStringTag:
|
|
8420
8882
|
return Object.prototype[Symbol.toStringTag];
|
|
8421
8883
|
case "Provider":
|
|
8422
|
-
|
|
8423
|
-
"Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."
|
|
8424
|
-
);
|
|
8884
|
+
return receiver;
|
|
8425
8885
|
case "then":
|
|
8426
8886
|
throw Error(
|
|
8427
8887
|
"Cannot await or return from a thenable. You cannot await a client module from a server component."
|
|
@@ -8520,7 +8980,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8520
8980
|
}
|
|
8521
8981
|
};
|
|
8522
8982
|
var currentOwner = null, getAsyncId = async_hooks.AsyncResource.prototype.asyncId, pendingOperations = /* @__PURE__ */ new Map(), lastRanAwait = null, emptyStack = [], framesToSkip = 0, collectedStackTrace = null, identifierRegExp = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, frameRegExp = /^ {3} at (?:(.+) \((?:(.+):(\d+):(\d+)|<anonymous>)\)|(?:async )?(.+):(\d+):(\d+)|<anonymous>)$/, stackTraceCache = /* @__PURE__ */ new WeakMap(), requestStorage = new async_hooks.AsyncLocalStorage(), componentStorage = new async_hooks.AsyncLocalStorage(), TEMPORARY_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.temporary.reference"), proxyHandlers = {
|
|
8523
|
-
get: function(target, name) {
|
|
8983
|
+
get: function(target, name, receiver) {
|
|
8524
8984
|
switch (name) {
|
|
8525
8985
|
case "$$typeof":
|
|
8526
8986
|
return target.$$typeof;
|
|
@@ -8539,9 +8999,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8539
8999
|
case Symbol.toStringTag:
|
|
8540
9000
|
return Object.prototype[Symbol.toStringTag];
|
|
8541
9001
|
case "Provider":
|
|
8542
|
-
|
|
8543
|
-
"Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."
|
|
8544
|
-
);
|
|
9002
|
+
return receiver;
|
|
8545
9003
|
case "then":
|
|
8546
9004
|
return;
|
|
8547
9005
|
}
|
|
@@ -8615,10 +9073,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8615
9073
|
},
|
|
8616
9074
|
useCacheRefresh: function() {
|
|
8617
9075
|
return unsupportedRefresh;
|
|
8618
|
-
}
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
var DefaultAsyncDispatcher = {
|
|
9076
|
+
},
|
|
9077
|
+
useEffectEvent: unsupportedHook
|
|
9078
|
+
}, DefaultAsyncDispatcher = {
|
|
8622
9079
|
getCacheForType: function(resourceType) {
|
|
8623
9080
|
var cache = (cache = resolveRequest()) ? cache.cache : /* @__PURE__ */ new Map();
|
|
8624
9081
|
var entry = cache.get(resourceType);
|
|
@@ -8705,56 +9162,60 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8705
9162
|
awaited: void 0 === trigger ? null : trigger,
|
|
8706
9163
|
previous: null
|
|
8707
9164
|
};
|
|
8708
|
-
else if ("Microtask"
|
|
8709
|
-
if (void 0 === trigger)
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
}
|
|
8733
|
-
else if (void 0 === trigger) return;
|
|
9165
|
+
else if ("bound-anonymous-fn" === type || "Microtask" === type || "TickObject" === type || "Immediate" === type) {
|
|
9166
|
+
if (void 0 === trigger) return;
|
|
9167
|
+
} else if (void 0 === trigger)
|
|
9168
|
+
trigger = resolveOwner(), trigger = {
|
|
9169
|
+
tag: 0,
|
|
9170
|
+
owner: trigger,
|
|
9171
|
+
stack: null === trigger ? parseStackTracePrivate(Error(), 3) : null,
|
|
9172
|
+
start: performance.now(),
|
|
9173
|
+
end: -1.1,
|
|
9174
|
+
promise: null,
|
|
9175
|
+
awaited: null,
|
|
9176
|
+
previous: null
|
|
9177
|
+
};
|
|
9178
|
+
else if (2 === trigger.tag || 4 === trigger.tag)
|
|
9179
|
+
resource = resolveOwner(), trigger = {
|
|
9180
|
+
tag: 0,
|
|
9181
|
+
owner: resource,
|
|
9182
|
+
stack: null === resource ? parseStackTracePrivate(Error(), 3) : null,
|
|
9183
|
+
start: performance.now(),
|
|
9184
|
+
end: -1.1,
|
|
9185
|
+
promise: null,
|
|
9186
|
+
awaited: null,
|
|
9187
|
+
previous: trigger
|
|
9188
|
+
};
|
|
8734
9189
|
pendingOperations.set(asyncId, trigger);
|
|
8735
9190
|
},
|
|
8736
9191
|
before: function(asyncId) {
|
|
8737
|
-
|
|
8738
|
-
if (void 0 !==
|
|
8739
|
-
switch (
|
|
9192
|
+
var node = pendingOperations.get(asyncId);
|
|
9193
|
+
if (void 0 !== node)
|
|
9194
|
+
switch (node.tag) {
|
|
8740
9195
|
case 0:
|
|
8741
9196
|
lastRanAwait = null;
|
|
8742
|
-
|
|
9197
|
+
0 > node.end ? node.end = performance.now() : (node = {
|
|
9198
|
+
tag: 0,
|
|
9199
|
+
owner: node.owner,
|
|
9200
|
+
stack: node.stack,
|
|
9201
|
+
start: node.start,
|
|
9202
|
+
end: performance.now(),
|
|
9203
|
+
promise: node.promise,
|
|
9204
|
+
awaited: node.awaited,
|
|
9205
|
+
previous: node.previous
|
|
9206
|
+
}, pendingOperations.set(asyncId, node));
|
|
8743
9207
|
break;
|
|
8744
9208
|
case 4:
|
|
8745
9209
|
lastRanAwait = resolvePromiseOrAwaitNode(
|
|
8746
|
-
|
|
9210
|
+
node,
|
|
8747
9211
|
performance.now()
|
|
8748
9212
|
);
|
|
8749
9213
|
break;
|
|
8750
9214
|
case 2:
|
|
8751
|
-
lastRanAwait =
|
|
9215
|
+
lastRanAwait = node;
|
|
8752
9216
|
break;
|
|
8753
9217
|
case 3:
|
|
8754
|
-
resolvePromiseOrAwaitNode(
|
|
8755
|
-
asyncId,
|
|
8756
|
-
performance.now()
|
|
8757
|
-
).previous = lastRanAwait;
|
|
9218
|
+
resolvePromiseOrAwaitNode(node, performance.now()).previous = lastRanAwait;
|
|
8758
9219
|
lastRanAwait = null;
|
|
8759
9220
|
break;
|
|
8760
9221
|
default:
|
|
@@ -8796,39 +9257,44 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8796
9257
|
}).enable();
|
|
8797
9258
|
})();
|
|
8798
9259
|
"object" === typeof console && null !== console && (patchConsole(console, "assert"), patchConsole(console, "debug"), patchConsole(console, "dir"), patchConsole(console, "dirxml"), patchConsole(console, "error"), patchConsole(console, "group"), patchConsole(console, "groupCollapsed"), patchConsole(console, "groupEnd"), patchConsole(console, "info"), patchConsole(console, "log"), patchConsole(console, "table"), patchConsole(console, "trace"), patchConsole(console, "warn"));
|
|
8799
|
-
var ObjectPrototype$1 = Object.prototype, stringify = JSON.stringify, ABORTING = 12, CLOSED = 14,
|
|
9260
|
+
var ObjectPrototype$1 = Object.prototype, stringify = JSON.stringify, PENDING$1 = 0, COMPLETED = 1, ABORTED = 3, ERRORED$1 = 4, RENDERING = 5, __PROTO__$1 = "__proto__", OPENING = 10, ABORTING = 12, CLOSING = 13, CLOSED = 14, PRERENDER = 21, NEXT_TWO_CHUNKS_ARE_ATOMIC = /* @__PURE__ */ Symbol(), currentRequest = null, canEmitDebugInfo = false, serializedSize = 0, MAX_ROW_SIZE = 3200, MIN_DEDUPLICATED_IMPORT_STRING_LENGTH = 16, MAX_DEDUPLICATED_IMPORT_STRINGS_SIZE = 32768, modelRoot = false, importStringRequest = null, MAX_IMPORT_METADATA_DEPTH = 16, NOT_PLAIN_IMPORT_METADATA = {}, CONSTRUCTOR_MARKER = /* @__PURE__ */ Symbol(), debugModelRoot = null, debugNoOutline = null, emptyRoot = {}, decoderOptions = { stream: true }, chunkCache = /* @__PURE__ */ new Map(), RESPONSE_SYMBOL = /* @__PURE__ */ Symbol();
|
|
8800
9261
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
8801
|
-
ReactPromise.prototype
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
9262
|
+
Object.defineProperty(ReactPromise.prototype, "then", {
|
|
9263
|
+
writable: true,
|
|
9264
|
+
enumerable: true,
|
|
9265
|
+
configurable: true,
|
|
9266
|
+
value: function(resolve, reject) {
|
|
9267
|
+
switch (this.status) {
|
|
9268
|
+
case "resolved_model":
|
|
9269
|
+
initializeModelChunk(this);
|
|
9270
|
+
}
|
|
9271
|
+
switch (this.status) {
|
|
9272
|
+
case "fulfilled":
|
|
9273
|
+
if ("function" === typeof resolve) {
|
|
9274
|
+
for (var inspectedValue = this.value, cycleProtection = 0, visited = /* @__PURE__ */ new Set(); inspectedValue instanceof ReactPromise; ) {
|
|
9275
|
+
cycleProtection++;
|
|
9276
|
+
if (inspectedValue === this || visited.has(inspectedValue) || 1e3 < cycleProtection) {
|
|
9277
|
+
"function" === typeof reject && reject(Error("Cannot have cyclic thenables."));
|
|
9278
|
+
return;
|
|
9279
|
+
}
|
|
9280
|
+
visited.add(inspectedValue);
|
|
9281
|
+
if ("fulfilled" === inspectedValue.status)
|
|
9282
|
+
inspectedValue = inspectedValue.value;
|
|
9283
|
+
else break;
|
|
8814
9284
|
}
|
|
8815
|
-
|
|
8816
|
-
if ("fulfilled" === inspectedValue.status)
|
|
8817
|
-
inspectedValue = inspectedValue.value;
|
|
8818
|
-
else break;
|
|
9285
|
+
resolve(this.value);
|
|
8819
9286
|
}
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
"function" === typeof reject && reject(this.reason);
|
|
9287
|
+
break;
|
|
9288
|
+
case "pending":
|
|
9289
|
+
case "blocked":
|
|
9290
|
+
"function" === typeof resolve && (null === this.value && (this.value = []), this.value.push(resolve));
|
|
9291
|
+
"function" === typeof reject && (null === this.reason && (this.reason = []), this.reason.push(reject));
|
|
9292
|
+
break;
|
|
9293
|
+
default:
|
|
9294
|
+
"function" === typeof reject && reject(this.reason);
|
|
9295
|
+
}
|
|
8830
9296
|
}
|
|
8831
|
-
};
|
|
9297
|
+
});
|
|
8832
9298
|
var ObjectPrototype = Object.prototype, ArrayPrototype = Array.prototype, initializingHandler = null;
|
|
8833
9299
|
FlightIterator.prototype = {};
|
|
8834
9300
|
FlightIterator.prototype[ASYNC_ITERATOR] = function() {
|
|
@@ -9039,23 +9505,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9039
9505
|
reject,
|
|
9040
9506
|
options ? options.onError : void 0,
|
|
9041
9507
|
options ? options.identifierPrefix : void 0,
|
|
9042
|
-
options ? options.onPostpone : void 0,
|
|
9043
9508
|
options ? options.temporaryReferences : void 0,
|
|
9509
|
+
options ? options.startTime : void 0,
|
|
9044
9510
|
options ? options.environmentName : void 0,
|
|
9045
9511
|
options ? options.filterStackFrame : void 0,
|
|
9046
9512
|
false
|
|
9047
9513
|
);
|
|
9048
|
-
|
|
9049
|
-
var signal = options.signal;
|
|
9050
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
9051
|
-
else {
|
|
9052
|
-
var listener = function() {
|
|
9053
|
-
abort(request, signal.reason);
|
|
9054
|
-
signal.removeEventListener("abort", listener);
|
|
9055
|
-
};
|
|
9056
|
-
signal.addEventListener("abort", listener);
|
|
9057
|
-
}
|
|
9058
|
-
}
|
|
9514
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
9059
9515
|
startWork(request);
|
|
9060
9516
|
});
|
|
9061
9517
|
};
|
|
@@ -9075,23 +9531,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9075
9531
|
reject,
|
|
9076
9532
|
options ? options.onError : void 0,
|
|
9077
9533
|
options ? options.identifierPrefix : void 0,
|
|
9078
|
-
options ? options.onPostpone : void 0,
|
|
9079
9534
|
options ? options.temporaryReferences : void 0,
|
|
9535
|
+
options ? options.startTime : void 0,
|
|
9080
9536
|
options ? options.environmentName : void 0,
|
|
9081
9537
|
options ? options.filterStackFrame : void 0,
|
|
9082
9538
|
false
|
|
9083
9539
|
);
|
|
9084
|
-
|
|
9085
|
-
var signal = options.signal;
|
|
9086
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
9087
|
-
else {
|
|
9088
|
-
var listener = function() {
|
|
9089
|
-
abort(request, signal.reason);
|
|
9090
|
-
signal.removeEventListener("abort", listener);
|
|
9091
|
-
};
|
|
9092
|
-
signal.addEventListener("abort", listener);
|
|
9093
|
-
}
|
|
9094
|
-
}
|
|
9540
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
9095
9541
|
startWork(request);
|
|
9096
9542
|
});
|
|
9097
9543
|
};
|
|
@@ -9123,8 +9569,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9123
9569
|
webpackMap,
|
|
9124
9570
|
options ? options.onError : void 0,
|
|
9125
9571
|
options ? options.identifierPrefix : void 0,
|
|
9126
|
-
options ? options.onPostpone : void 0,
|
|
9127
9572
|
options ? options.temporaryReferences : void 0,
|
|
9573
|
+
options ? options.startTime : void 0,
|
|
9128
9574
|
options ? options.environmentName : void 0,
|
|
9129
9575
|
options ? options.filterStackFrame : void 0,
|
|
9130
9576
|
void 0 !== debugChannelReadable
|
|
@@ -9169,23 +9615,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9169
9615
|
webpackMap,
|
|
9170
9616
|
options ? options.onError : void 0,
|
|
9171
9617
|
options ? options.identifierPrefix : void 0,
|
|
9172
|
-
options ? options.onPostpone : void 0,
|
|
9173
9618
|
options ? options.temporaryReferences : void 0,
|
|
9619
|
+
options ? options.startTime : void 0,
|
|
9174
9620
|
options ? options.environmentName : void 0,
|
|
9175
9621
|
options ? options.filterStackFrame : void 0,
|
|
9176
9622
|
void 0 !== debugChannelReadable
|
|
9177
9623
|
);
|
|
9178
|
-
|
|
9179
|
-
var signal = options.signal;
|
|
9180
|
-
if (signal.aborted) abort(request, signal.reason);
|
|
9181
|
-
else {
|
|
9182
|
-
var listener = function() {
|
|
9183
|
-
abort(request, signal.reason);
|
|
9184
|
-
signal.removeEventListener("abort", listener);
|
|
9185
|
-
};
|
|
9186
|
-
signal.addEventListener("abort", listener);
|
|
9187
|
-
}
|
|
9188
|
-
}
|
|
9624
|
+
options && options.signal && attachAbortSignal(request, options.signal);
|
|
9189
9625
|
if (void 0 !== debugChannelWritable) {
|
|
9190
9626
|
var debugWritable;
|
|
9191
9627
|
new ReadableStream(
|