react-server-dom-rspack 0.0.1-alpha.8 → 0.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -1
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js → cjs/react-server-dom-rspack-client.browser.development.js} +372 -203
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js → cjs/react-server-dom-rspack-client.browser.production.js} +133 -83
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js → cjs/react-server-dom-rspack-client.edge.development.js} +304 -160
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js → cjs/react-server-dom-rspack-client.edge.production.js} +119 -79
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js → cjs/react-server-dom-rspack-client.node.development.js} +326 -191
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js → cjs/react-server-dom-rspack-client.node.production.js} +127 -95
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js → cjs/react-server-dom-rspack-server.browser.development.js} +263 -297
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js → cjs/react-server-dom-rspack-server.browser.production.js} +170 -224
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js → cjs/react-server-dom-rspack-server.edge.development.js} +283 -309
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js → cjs/react-server-dom-rspack-server.edge.production.js} +186 -231
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js → cjs/react-server-dom-rspack-server.node.development.js} +543 -522
- package/{vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js → cjs/react-server-dom-rspack-server.node.production.js} +197 -243
- package/client.browser.js +7 -0
- package/client.edge.js +7 -0
- package/client.node.js +7 -0
- package/{vendor/react-server-dom-webpack/index.js → index.js} +1 -1
- package/package.json +66 -128
- package/plugin.js +3 -0
- package/server.browser.js +24 -0
- package/server.edge.js +25 -0
- package/{vendor/react-server-dom-webpack/server.node.js → server.node.js} +10 -3
- package/static.browser.js +10 -0
- package/static.edge.js +10 -0
- package/{vendor/react-server-dom-webpack/static.node.js → static.node.js} +2 -2
- package/dist/client.browser.d.ts +0 -23
- package/dist/client.browser.js +0 -41
- package/dist/client.d.ts +0 -1
- package/dist/client.edge.d.ts +0 -28
- package/dist/client.edge.js +0 -27
- package/dist/client.js +0 -1
- package/dist/client.node.d.ts +0 -11
- package/dist/client.node.js +0 -10
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -2
- package/dist/server.browser.d.ts +0 -30
- package/dist/server.browser.js +0 -68
- package/dist/server.d.ts +0 -0
- package/dist/server.edge.d.ts +0 -32
- package/dist/server.edge.js +0 -71
- package/dist/server.js +0 -3
- package/dist/server.node.d.ts +0 -33
- package/dist/server.node.js +0 -75
- package/dist/types.d.ts +0 -45
- package/dist/types.js +0 -1
- package/vendor/react-server-dom-webpack/LICENSE +0 -21
- package/vendor/react-server-dom-webpack/README.md +0 -5
- package/vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-node-register.js +0 -69
- package/vendor/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +0 -404
- package/vendor/react-server-dom-webpack/client.browser.js +0 -7
- package/vendor/react-server-dom-webpack/client.edge.js +0 -7
- package/vendor/react-server-dom-webpack/client.node.js +0 -7
- package/vendor/react-server-dom-webpack/esm/react-server-dom-webpack-node-loader.production.js +0 -515
- package/vendor/react-server-dom-webpack/node-register.js +0 -3
- package/vendor/react-server-dom-webpack/package.json +0 -96
- package/vendor/react-server-dom-webpack/plugin.js +0 -3
- package/vendor/react-server-dom-webpack/server.browser.js +0 -17
- package/vendor/react-server-dom-webpack/server.edge.js +0 -18
- package/vendor/react-server-dom-webpack/static.browser.js +0 -10
- package/vendor/react-server-dom-webpack/static.edge.js +0 -10
- /package/{vendor/react-server-dom-webpack/client.js → client.js} +0 -0
- /package/{vendor/react-server-dom-webpack/esm → esm}/package.json +0 -0
- /package/{vendor/react-server-dom-webpack/server.js → server.js} +0 -0
- /package/{vendor/react-server-dom-webpack/static.js → static.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-server-dom-
|
|
3
|
+
* react-server-dom-rspack-server.edge.development.js
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
@@ -12,6 +12,57 @@
|
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
14
|
function voidHandler() {}
|
|
15
|
+
function isClientReference(reference) {
|
|
16
|
+
return reference.$$typeof === CLIENT_REFERENCE_TAG$1;
|
|
17
|
+
}
|
|
18
|
+
function bind() {
|
|
19
|
+
var newFn = FunctionBind.apply(this, arguments);
|
|
20
|
+
if (this.$$typeof === SERVER_REFERENCE_TAG) {
|
|
21
|
+
null != arguments[0] &&
|
|
22
|
+
console.error(
|
|
23
|
+
'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
|
|
24
|
+
);
|
|
25
|
+
var args = ArraySlice.call(arguments, 1),
|
|
26
|
+
$$typeof = { value: SERVER_REFERENCE_TAG },
|
|
27
|
+
$$id = { value: this.$$id };
|
|
28
|
+
args = { value: this.$$bound ? this.$$bound.concat(args) : args };
|
|
29
|
+
return Object.defineProperties(newFn, {
|
|
30
|
+
$$typeof: $$typeof,
|
|
31
|
+
$$id: $$id,
|
|
32
|
+
$$bound: args,
|
|
33
|
+
$$location: { value: this.$$location, configurable: !0 },
|
|
34
|
+
bind: { value: bind, configurable: !0 }
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return newFn;
|
|
38
|
+
}
|
|
39
|
+
function resolveClientReferenceMetadata(config, clientReference) {
|
|
40
|
+
var modulePath = clientReference.$$id,
|
|
41
|
+
name = "",
|
|
42
|
+
resolvedModuleData = config[modulePath];
|
|
43
|
+
if (resolvedModuleData) name = resolvedModuleData.name;
|
|
44
|
+
else {
|
|
45
|
+
var idx = modulePath.lastIndexOf("#");
|
|
46
|
+
-1 !== idx &&
|
|
47
|
+
((name = modulePath.slice(idx + 1)),
|
|
48
|
+
(resolvedModuleData = config[modulePath.slice(0, idx)]));
|
|
49
|
+
if (!resolvedModuleData)
|
|
50
|
+
throw Error(
|
|
51
|
+
'Could not find the module "' +
|
|
52
|
+
modulePath +
|
|
53
|
+
'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.'
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
if (!0 === resolvedModuleData.async && !0 === clientReference.$$async)
|
|
57
|
+
throw Error(
|
|
58
|
+
'The module "' +
|
|
59
|
+
modulePath +
|
|
60
|
+
'" 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.'
|
|
61
|
+
);
|
|
62
|
+
return !0 === resolvedModuleData.async || !0 === clientReference.$$async
|
|
63
|
+
? [resolvedModuleData.id, resolvedModuleData.chunks, name, 1]
|
|
64
|
+
: [resolvedModuleData.id, resolvedModuleData.chunks, name];
|
|
65
|
+
}
|
|
15
66
|
function getIteratorFn(maybeIterable) {
|
|
16
67
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
17
68
|
return null;
|
|
@@ -48,12 +99,12 @@
|
|
|
48
99
|
}
|
|
49
100
|
function writeChunkAndReturn(destination, chunk) {
|
|
50
101
|
if (0 !== chunk.byteLength)
|
|
51
|
-
if (
|
|
102
|
+
if (4096 < chunk.byteLength)
|
|
52
103
|
0 < writtenBytes &&
|
|
53
104
|
(destination.enqueue(
|
|
54
105
|
new Uint8Array(currentView.buffer, 0, writtenBytes)
|
|
55
106
|
),
|
|
56
|
-
(currentView = new Uint8Array(
|
|
107
|
+
(currentView = new Uint8Array(4096)),
|
|
57
108
|
(writtenBytes = 0)),
|
|
58
109
|
destination.enqueue(chunk);
|
|
59
110
|
else {
|
|
@@ -67,7 +118,7 @@
|
|
|
67
118
|
),
|
|
68
119
|
destination.enqueue(currentView),
|
|
69
120
|
(chunk = chunk.subarray(allowableBytes))),
|
|
70
|
-
(currentView = new Uint8Array(
|
|
121
|
+
(currentView = new Uint8Array(4096)),
|
|
71
122
|
(writtenBytes = 0));
|
|
72
123
|
currentView.set(chunk, writtenBytes);
|
|
73
124
|
writtenBytes += chunk.byteLength;
|
|
@@ -94,141 +145,6 @@
|
|
|
94
145
|
? destination.error(error)
|
|
95
146
|
: destination.close();
|
|
96
147
|
}
|
|
97
|
-
function isClientReference(reference) {
|
|
98
|
-
return reference.$$typeof === CLIENT_REFERENCE_TAG$1;
|
|
99
|
-
}
|
|
100
|
-
function registerClientReferenceImpl(proxyImplementation, id, async) {
|
|
101
|
-
return Object.defineProperties(proxyImplementation, {
|
|
102
|
-
$$typeof: { value: CLIENT_REFERENCE_TAG$1 },
|
|
103
|
-
$$id: { value: id },
|
|
104
|
-
$$async: { value: async }
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function bind() {
|
|
108
|
-
var newFn = FunctionBind.apply(this, arguments);
|
|
109
|
-
if (this.$$typeof === SERVER_REFERENCE_TAG) {
|
|
110
|
-
null != arguments[0] &&
|
|
111
|
-
console.error(
|
|
112
|
-
'Cannot bind "this" of a Server Action. Pass null or undefined as the first argument to .bind().'
|
|
113
|
-
);
|
|
114
|
-
var args = ArraySlice.call(arguments, 1),
|
|
115
|
-
$$typeof = { value: SERVER_REFERENCE_TAG },
|
|
116
|
-
$$id = { value: this.$$id };
|
|
117
|
-
args = { value: this.$$bound ? this.$$bound.concat(args) : args };
|
|
118
|
-
return Object.defineProperties(newFn, {
|
|
119
|
-
$$typeof: $$typeof,
|
|
120
|
-
$$id: $$id,
|
|
121
|
-
$$bound: args,
|
|
122
|
-
$$location: { value: this.$$location, configurable: !0 },
|
|
123
|
-
bind: { value: bind, configurable: !0 }
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
return newFn;
|
|
127
|
-
}
|
|
128
|
-
function getReference(target, name) {
|
|
129
|
-
switch (name) {
|
|
130
|
-
case "$$typeof":
|
|
131
|
-
return target.$$typeof;
|
|
132
|
-
case "$$id":
|
|
133
|
-
return target.$$id;
|
|
134
|
-
case "$$async":
|
|
135
|
-
return target.$$async;
|
|
136
|
-
case "name":
|
|
137
|
-
return target.name;
|
|
138
|
-
case "defaultProps":
|
|
139
|
-
return;
|
|
140
|
-
case "_debugInfo":
|
|
141
|
-
return;
|
|
142
|
-
case "toJSON":
|
|
143
|
-
return;
|
|
144
|
-
case Symbol.toPrimitive:
|
|
145
|
-
return Object.prototype[Symbol.toPrimitive];
|
|
146
|
-
case Symbol.toStringTag:
|
|
147
|
-
return Object.prototype[Symbol.toStringTag];
|
|
148
|
-
case "__esModule":
|
|
149
|
-
var moduleId = target.$$id;
|
|
150
|
-
target.default = registerClientReferenceImpl(
|
|
151
|
-
function () {
|
|
152
|
-
throw Error(
|
|
153
|
-
"Attempted to call the default export of " +
|
|
154
|
-
moduleId +
|
|
155
|
-
" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."
|
|
156
|
-
);
|
|
157
|
-
},
|
|
158
|
-
target.$$id + "#",
|
|
159
|
-
target.$$async
|
|
160
|
-
);
|
|
161
|
-
return !0;
|
|
162
|
-
case "then":
|
|
163
|
-
if (target.then) return target.then;
|
|
164
|
-
if (target.$$async) return;
|
|
165
|
-
var clientReference = registerClientReferenceImpl(
|
|
166
|
-
{},
|
|
167
|
-
target.$$id,
|
|
168
|
-
!0
|
|
169
|
-
),
|
|
170
|
-
proxy = new Proxy(clientReference, proxyHandlers$1);
|
|
171
|
-
target.status = "fulfilled";
|
|
172
|
-
target.value = proxy;
|
|
173
|
-
return (target.then = registerClientReferenceImpl(
|
|
174
|
-
function (resolve) {
|
|
175
|
-
return Promise.resolve(resolve(proxy));
|
|
176
|
-
},
|
|
177
|
-
target.$$id + "#then",
|
|
178
|
-
!1
|
|
179
|
-
));
|
|
180
|
-
}
|
|
181
|
-
if ("symbol" === typeof name)
|
|
182
|
-
throw Error(
|
|
183
|
-
"Cannot read Symbol exports. Only named exports are supported on a client module imported on the server."
|
|
184
|
-
);
|
|
185
|
-
clientReference = target[name];
|
|
186
|
-
clientReference ||
|
|
187
|
-
((clientReference = registerClientReferenceImpl(
|
|
188
|
-
function () {
|
|
189
|
-
throw Error(
|
|
190
|
-
"Attempted to call " +
|
|
191
|
-
String(name) +
|
|
192
|
-
"() from the server but " +
|
|
193
|
-
String(name) +
|
|
194
|
-
" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component."
|
|
195
|
-
);
|
|
196
|
-
},
|
|
197
|
-
target.$$id + "#" + name,
|
|
198
|
-
target.$$async
|
|
199
|
-
)),
|
|
200
|
-
Object.defineProperty(clientReference, "name", { value: name }),
|
|
201
|
-
(clientReference = target[name] =
|
|
202
|
-
new Proxy(clientReference, deepProxyHandlers)));
|
|
203
|
-
return clientReference;
|
|
204
|
-
}
|
|
205
|
-
function resolveClientReferenceMetadata(config, clientReference) {
|
|
206
|
-
var modulePath = clientReference.$$id,
|
|
207
|
-
name = "",
|
|
208
|
-
resolvedModuleData = config[modulePath];
|
|
209
|
-
if (resolvedModuleData) name = resolvedModuleData.name;
|
|
210
|
-
else {
|
|
211
|
-
var idx = modulePath.lastIndexOf("#");
|
|
212
|
-
-1 !== idx &&
|
|
213
|
-
((name = modulePath.slice(idx + 1)),
|
|
214
|
-
(resolvedModuleData = config[modulePath.slice(0, idx)]));
|
|
215
|
-
if (!resolvedModuleData)
|
|
216
|
-
throw Error(
|
|
217
|
-
'Could not find the module "' +
|
|
218
|
-
modulePath +
|
|
219
|
-
'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.'
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
if (!0 === resolvedModuleData.async && !0 === clientReference.$$async)
|
|
223
|
-
throw Error(
|
|
224
|
-
'The module "' +
|
|
225
|
-
modulePath +
|
|
226
|
-
'" 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.'
|
|
227
|
-
);
|
|
228
|
-
return !0 === resolvedModuleData.async || !0 === clientReference.$$async
|
|
229
|
-
? [resolvedModuleData.id, resolvedModuleData.chunks, name, 1]
|
|
230
|
-
: [resolvedModuleData.id, resolvedModuleData.chunks, name];
|
|
231
|
-
}
|
|
232
148
|
function preload(href, as, options) {
|
|
233
149
|
if ("string" === typeof href) {
|
|
234
150
|
var request = resolveRequest();
|
|
@@ -359,7 +275,7 @@
|
|
|
359
275
|
});
|
|
360
276
|
break;
|
|
361
277
|
case "stylesheet":
|
|
362
|
-
preload(srcSet, "
|
|
278
|
+
preload(srcSet, "style", {
|
|
363
279
|
crossOrigin: props.crossOrigin,
|
|
364
280
|
integrity: props.integrity,
|
|
365
281
|
nonce: props.nonce,
|
|
@@ -675,6 +591,8 @@
|
|
|
675
591
|
return "Suspense";
|
|
676
592
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
677
593
|
return "SuspenseList";
|
|
594
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
595
|
+
return "ViewTransition";
|
|
678
596
|
}
|
|
679
597
|
if ("object" === typeof type)
|
|
680
598
|
switch (type.$$typeof) {
|
|
@@ -983,7 +901,6 @@
|
|
|
983
901
|
model,
|
|
984
902
|
bundlerConfig,
|
|
985
903
|
onError,
|
|
986
|
-
onPostpone,
|
|
987
904
|
onAllReady,
|
|
988
905
|
onFatalError,
|
|
989
906
|
identifierPrefix,
|
|
@@ -1028,8 +945,6 @@
|
|
|
1028
945
|
this.identifierCount = 1;
|
|
1029
946
|
this.taintCleanupQueue = [];
|
|
1030
947
|
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
1031
|
-
this.onPostpone =
|
|
1032
|
-
void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
|
|
1033
948
|
this.onAllReady = onAllReady;
|
|
1034
949
|
this.onFatalError = onFatalError;
|
|
1035
950
|
this.pendingDebugChunks = 0;
|
|
@@ -1076,7 +991,6 @@
|
|
|
1076
991
|
bundlerConfig,
|
|
1077
992
|
onError,
|
|
1078
993
|
identifierPrefix,
|
|
1079
|
-
onPostpone,
|
|
1080
994
|
temporaryReferences,
|
|
1081
995
|
environmentName,
|
|
1082
996
|
filterStackFrame,
|
|
@@ -1088,7 +1002,6 @@
|
|
|
1088
1002
|
model,
|
|
1089
1003
|
bundlerConfig,
|
|
1090
1004
|
onError,
|
|
1091
|
-
onPostpone,
|
|
1092
1005
|
noop,
|
|
1093
1006
|
noop,
|
|
1094
1007
|
identifierPrefix,
|
|
@@ -1105,7 +1018,6 @@
|
|
|
1105
1018
|
onFatalError,
|
|
1106
1019
|
onError,
|
|
1107
1020
|
identifierPrefix,
|
|
1108
|
-
onPostpone,
|
|
1109
1021
|
temporaryReferences,
|
|
1110
1022
|
environmentName,
|
|
1111
1023
|
filterStackFrame,
|
|
@@ -1117,7 +1029,6 @@
|
|
|
1117
1029
|
model,
|
|
1118
1030
|
bundlerConfig,
|
|
1119
1031
|
onError,
|
|
1120
|
-
onPostpone,
|
|
1121
1032
|
onAllReady,
|
|
1122
1033
|
onFatalError,
|
|
1123
1034
|
identifierPrefix,
|
|
@@ -1168,7 +1079,23 @@
|
|
|
1168
1079
|
((cancelled = !0),
|
|
1169
1080
|
request.status === ABORTING
|
|
1170
1081
|
? emitDebugHaltChunk(request, id)
|
|
1171
|
-
:
|
|
1082
|
+
: (isArrayImpl(value) && 200 < value.length) ||
|
|
1083
|
+
((value instanceof ArrayBuffer ||
|
|
1084
|
+
value instanceof Int8Array ||
|
|
1085
|
+
value instanceof Uint8Array ||
|
|
1086
|
+
value instanceof Uint8ClampedArray ||
|
|
1087
|
+
value instanceof Int16Array ||
|
|
1088
|
+
value instanceof Uint16Array ||
|
|
1089
|
+
value instanceof Int32Array ||
|
|
1090
|
+
value instanceof Uint32Array ||
|
|
1091
|
+
value instanceof Float32Array ||
|
|
1092
|
+
value instanceof Float64Array ||
|
|
1093
|
+
value instanceof BigInt64Array ||
|
|
1094
|
+
value instanceof BigUint64Array ||
|
|
1095
|
+
value instanceof DataView) &&
|
|
1096
|
+
1e3 < value.byteLength)
|
|
1097
|
+
? emitDebugHaltChunk(request, id)
|
|
1098
|
+
: emitOutlinedDebugModelChunk(request, id, counter, value),
|
|
1172
1099
|
enqueueFlush(request));
|
|
1173
1100
|
},
|
|
1174
1101
|
function (reason) {
|
|
@@ -1300,9 +1227,17 @@
|
|
|
1300
1227
|
callOnAllReadyIfReady(request);
|
|
1301
1228
|
else
|
|
1302
1229
|
try {
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1230
|
+
request.pendingChunks++,
|
|
1231
|
+
(streamTask.model = entry.value),
|
|
1232
|
+
isByteStream
|
|
1233
|
+
? emitTypedArrayChunk(
|
|
1234
|
+
request,
|
|
1235
|
+
streamTask.id,
|
|
1236
|
+
"b",
|
|
1237
|
+
streamTask.model,
|
|
1238
|
+
!1
|
|
1239
|
+
)
|
|
1240
|
+
: tryStreamTask(request, streamTask),
|
|
1306
1241
|
enqueueFlush(request),
|
|
1307
1242
|
reader.read().then(progress, error);
|
|
1308
1243
|
} catch (x$0) {
|
|
@@ -1339,7 +1274,8 @@
|
|
|
1339
1274
|
} catch (x) {
|
|
1340
1275
|
supportsBYOB = !1;
|
|
1341
1276
|
}
|
|
1342
|
-
var
|
|
1277
|
+
var isByteStream = supportsBYOB,
|
|
1278
|
+
reader = stream.getReader(),
|
|
1343
1279
|
streamTask = createTask(
|
|
1344
1280
|
request,
|
|
1345
1281
|
task.model,
|
|
@@ -1354,7 +1290,7 @@
|
|
|
1354
1290
|
);
|
|
1355
1291
|
request.pendingChunks++;
|
|
1356
1292
|
task =
|
|
1357
|
-
streamTask.id.toString(16) + ":" + (
|
|
1293
|
+
streamTask.id.toString(16) + ":" + (isByteStream ? "r" : "R") + "\n";
|
|
1358
1294
|
request.completedRegularChunks.push(stringToChunk(task));
|
|
1359
1295
|
request.cacheController.signal.addEventListener("abort", abortStream);
|
|
1360
1296
|
reader.read().then(progress, error);
|
|
@@ -1686,7 +1622,12 @@
|
|
|
1686
1622
|
Component = task.keyPath;
|
|
1687
1623
|
componentDebugInfo = task.implicitSlot;
|
|
1688
1624
|
null !== key
|
|
1689
|
-
? (task.keyPath =
|
|
1625
|
+
? (task.keyPath =
|
|
1626
|
+
key === REACT_OPTIMISTIC_KEY || Component === REACT_OPTIMISTIC_KEY
|
|
1627
|
+
? REACT_OPTIMISTIC_KEY
|
|
1628
|
+
: null === Component
|
|
1629
|
+
? key
|
|
1630
|
+
: Component + "," + key)
|
|
1690
1631
|
: null === Component && (task.implicitSlot = !0);
|
|
1691
1632
|
request = renderModelDestructive(request, task, emptyRoot, "", props);
|
|
1692
1633
|
task.keyPath = Component;
|
|
@@ -1926,7 +1867,13 @@
|
|
|
1926
1867
|
validated
|
|
1927
1868
|
);
|
|
1928
1869
|
ref = task.keyPath;
|
|
1929
|
-
null === key
|
|
1870
|
+
null === key
|
|
1871
|
+
? (key = ref)
|
|
1872
|
+
: null !== ref &&
|
|
1873
|
+
(key =
|
|
1874
|
+
ref === REACT_OPTIMISTIC_KEY || key === REACT_OPTIMISTIC_KEY
|
|
1875
|
+
? REACT_OPTIMISTIC_KEY
|
|
1876
|
+
: ref + "," + key);
|
|
1930
1877
|
newFormatContext = null;
|
|
1931
1878
|
ref = task.debugOwner;
|
|
1932
1879
|
null !== ref && outlineComponentInfo(request, ref);
|
|
@@ -2214,6 +2161,8 @@
|
|
|
2214
2161
|
return serializeByValueID(bufferId);
|
|
2215
2162
|
}
|
|
2216
2163
|
function serializeDebugTypedArray(request, tag, typedArray) {
|
|
2164
|
+
if (1e3 < typedArray.byteLength && !doNotLimit.has(typedArray))
|
|
2165
|
+
return serializeDeferredObject(request, typedArray);
|
|
2217
2166
|
request.pendingDebugChunks++;
|
|
2218
2167
|
var bufferId = request.nextChunkId++;
|
|
2219
2168
|
emitTypedArrayChunk(request, bufferId, tag, typedArray, !0);
|
|
@@ -2421,7 +2370,9 @@
|
|
|
2421
2370
|
void 0 === value._debugTask
|
|
2422
2371
|
) {
|
|
2423
2372
|
var key = "";
|
|
2424
|
-
null !== value.key &&
|
|
2373
|
+
null !== value.key &&
|
|
2374
|
+
value.key !== REACT_OPTIMISTIC_KEY &&
|
|
2375
|
+
(key = ' key="' + value.key + '"');
|
|
2425
2376
|
console.error(
|
|
2426
2377
|
"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",
|
|
2427
2378
|
value.type,
|
|
@@ -2577,7 +2528,7 @@
|
|
|
2577
2528
|
if (value instanceof Date) return "$D" + value.toJSON();
|
|
2578
2529
|
elementReference = getPrototypeOf(value);
|
|
2579
2530
|
if (
|
|
2580
|
-
elementReference !== ObjectPrototype &&
|
|
2531
|
+
elementReference !== ObjectPrototype$1 &&
|
|
2581
2532
|
(null === elementReference ||
|
|
2582
2533
|
null !== getPrototypeOf(elementReference))
|
|
2583
2534
|
)
|
|
@@ -2827,12 +2778,15 @@
|
|
|
2827
2778
|
function emitDebugChunk(request, id, debugInfo) {
|
|
2828
2779
|
var json = serializeDebugModel(request, 500, debugInfo);
|
|
2829
2780
|
null !== request.debugDestination
|
|
2830
|
-
?
|
|
2831
|
-
(
|
|
2832
|
-
|
|
2833
|
-
request.
|
|
2834
|
-
|
|
2835
|
-
|
|
2781
|
+
? '"' === json[0] && "$" === json[1]
|
|
2782
|
+
? ((id = id.toString(16) + ":D" + json + "\n"),
|
|
2783
|
+
request.completedRegularChunks.push(stringToChunk(id)))
|
|
2784
|
+
: ((debugInfo = request.nextChunkId++),
|
|
2785
|
+
(json = debugInfo.toString(16) + ":" + json + "\n"),
|
|
2786
|
+
request.pendingDebugChunks++,
|
|
2787
|
+
request.completedDebugChunks.push(stringToChunk(json)),
|
|
2788
|
+
(id = id.toString(16) + ':D"$' + debugInfo.toString(16) + '"\n'),
|
|
2789
|
+
request.completedRegularChunks.push(stringToChunk(id)))
|
|
2836
2790
|
: ((id = id.toString(16) + ":D" + json + "\n"),
|
|
2837
2791
|
request.completedRegularChunks.push(stringToChunk(id)));
|
|
2838
2792
|
}
|
|
@@ -2868,14 +2822,13 @@
|
|
|
2868
2822
|
}
|
|
2869
2823
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
2870
2824
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
2871
|
-
|
|
2825
|
+
typedArray = new Uint8Array(
|
|
2872
2826
|
typedArray.buffer,
|
|
2873
2827
|
typedArray.byteOffset,
|
|
2874
2828
|
typedArray.byteLength
|
|
2875
2829
|
);
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
id = id.toString(16) + ":" + tag + buffer.toString(16) + ",";
|
|
2830
|
+
var binaryLength = typedArray.byteLength;
|
|
2831
|
+
id = id.toString(16) + ":" + tag + binaryLength.toString(16) + ",";
|
|
2879
2832
|
id = stringToChunk(id);
|
|
2880
2833
|
debug
|
|
2881
2834
|
? request.completedDebugChunks.push(id, typedArray)
|
|
@@ -3072,7 +3025,11 @@
|
|
|
3072
3025
|
}
|
|
3073
3026
|
if ("function" === typeof value.then)
|
|
3074
3027
|
return serializeDebugThenable(request, counter, value);
|
|
3075
|
-
if (isArrayImpl(value))
|
|
3028
|
+
if (isArrayImpl(value))
|
|
3029
|
+
return 200 < value.length && !doNotLimit.has(value)
|
|
3030
|
+
? serializeDeferredObject(request, value)
|
|
3031
|
+
: value;
|
|
3032
|
+
if (value instanceof Date) return "$D" + value.toJSON();
|
|
3076
3033
|
if (value instanceof Map) {
|
|
3077
3034
|
value = Array.from(value);
|
|
3078
3035
|
counter.objectLimit++;
|
|
@@ -3159,7 +3116,7 @@
|
|
|
3159
3116
|
return serializeDebugBlob(request, value);
|
|
3160
3117
|
if (getIteratorFn(value)) return Array.from(value);
|
|
3161
3118
|
request = getPrototypeOf(value);
|
|
3162
|
-
if (request !== ObjectPrototype && null !== request) {
|
|
3119
|
+
if (request !== ObjectPrototype$1 && null !== request) {
|
|
3163
3120
|
counter = Object.create(null);
|
|
3164
3121
|
for (env in value)
|
|
3165
3122
|
if (hasOwnProperty.call(value, env) || isGetter(request, env))
|
|
@@ -3175,11 +3132,6 @@
|
|
|
3175
3132
|
return value;
|
|
3176
3133
|
}
|
|
3177
3134
|
if ("string" === typeof value) {
|
|
3178
|
-
if (
|
|
3179
|
-
"Z" === value[value.length - 1] &&
|
|
3180
|
-
parent[parentPropertyName] instanceof Date
|
|
3181
|
-
)
|
|
3182
|
-
return "$D" + value;
|
|
3183
3135
|
if (1024 <= value.length) {
|
|
3184
3136
|
if (0 >= counter.objectLimit)
|
|
3185
3137
|
return serializeDeferredObject(request, value);
|
|
@@ -3241,19 +3193,17 @@
|
|
|
3241
3193
|
}
|
|
3242
3194
|
return "bigint" === typeof value
|
|
3243
3195
|
? "$n" + value.toString(10)
|
|
3244
|
-
:
|
|
3245
|
-
? "$D" + value.toJSON()
|
|
3246
|
-
: "unknown type " + typeof value;
|
|
3196
|
+
: "unknown type " + typeof value;
|
|
3247
3197
|
}
|
|
3248
3198
|
function serializeDebugModel(request, objectLimit, model) {
|
|
3249
|
-
function replacer(parentPropertyName
|
|
3199
|
+
function replacer(parentPropertyName) {
|
|
3250
3200
|
try {
|
|
3251
3201
|
return renderDebugModel(
|
|
3252
3202
|
request,
|
|
3253
3203
|
counter,
|
|
3254
3204
|
this,
|
|
3255
3205
|
parentPropertyName,
|
|
3256
|
-
|
|
3206
|
+
this[parentPropertyName]
|
|
3257
3207
|
);
|
|
3258
3208
|
} catch (x) {
|
|
3259
3209
|
return (
|
|
@@ -3277,14 +3227,14 @@
|
|
|
3277
3227
|
}
|
|
3278
3228
|
}
|
|
3279
3229
|
function emitOutlinedDebugModelChunk(request, id, counter, model) {
|
|
3280
|
-
function replacer(parentPropertyName
|
|
3230
|
+
function replacer(parentPropertyName) {
|
|
3281
3231
|
try {
|
|
3282
3232
|
return renderDebugModel(
|
|
3283
3233
|
request,
|
|
3284
3234
|
counter,
|
|
3285
3235
|
this,
|
|
3286
3236
|
parentPropertyName,
|
|
3287
|
-
|
|
3237
|
+
this[parentPropertyName]
|
|
3288
3238
|
);
|
|
3289
3239
|
} catch (x) {
|
|
3290
3240
|
return (
|
|
@@ -3351,10 +3301,11 @@
|
|
|
3351
3301
|
parseStackTrace(ioInfo$jscomp$0.debugStack, 1)
|
|
3352
3302
|
)
|
|
3353
3303
|
: ioInfo$jscomp$0.stack;
|
|
3304
|
+
var env = ioInfo$jscomp$0.env;
|
|
3305
|
+
null == env && (env = (0, request.environmentName)());
|
|
3354
3306
|
var request$jscomp$0 = request,
|
|
3355
3307
|
id$jscomp$1 = id$jscomp$0,
|
|
3356
3308
|
value = ioInfo$jscomp$0.value,
|
|
3357
|
-
env = ioInfo$jscomp$0.env,
|
|
3358
3309
|
objectLimit = 10;
|
|
3359
3310
|
debugStack && (objectLimit += debugStack.length);
|
|
3360
3311
|
var debugIOInfo = {
|
|
@@ -3366,12 +3317,12 @@
|
|
|
3366
3317
|
null != debugStack && (debugIOInfo.stack = debugStack);
|
|
3367
3318
|
null != owner && (debugIOInfo.owner = owner);
|
|
3368
3319
|
void 0 !== value && (debugIOInfo.value = value);
|
|
3369
|
-
|
|
3320
|
+
env = serializeDebugModel(
|
|
3370
3321
|
request$jscomp$0,
|
|
3371
3322
|
objectLimit,
|
|
3372
3323
|
debugIOInfo
|
|
3373
3324
|
);
|
|
3374
|
-
id$jscomp$1 = id$jscomp$1.toString(16) + ":J" +
|
|
3325
|
+
id$jscomp$1 = id$jscomp$1.toString(16) + ":J" + env + "\n";
|
|
3375
3326
|
id$jscomp$1 = stringToChunk(id$jscomp$1);
|
|
3376
3327
|
request$jscomp$0.completedDebugChunks.push(id$jscomp$1);
|
|
3377
3328
|
request.writtenDebugObjects.set(
|
|
@@ -3389,7 +3340,10 @@
|
|
|
3389
3340
|
)
|
|
3390
3341
|
: info.stack;
|
|
3391
3342
|
ioInfo = { awaited: ioInfo };
|
|
3392
|
-
|
|
3343
|
+
ioInfo.env =
|
|
3344
|
+
null != info.env
|
|
3345
|
+
? info.env
|
|
3346
|
+
: (0, request$jscomp$1.environmentName)();
|
|
3393
3347
|
null != info.owner && (ioInfo.owner = info.owner);
|
|
3394
3348
|
null != request && (ioInfo.stack = request);
|
|
3395
3349
|
request$jscomp$1.pendingChunks++;
|
|
@@ -3612,7 +3566,7 @@
|
|
|
3612
3566
|
function flushCompletedChunks(request) {
|
|
3613
3567
|
if (null !== request.debugDestination) {
|
|
3614
3568
|
var debugDestination = request.debugDestination;
|
|
3615
|
-
currentView = new Uint8Array(
|
|
3569
|
+
currentView = new Uint8Array(4096);
|
|
3616
3570
|
writtenBytes = 0;
|
|
3617
3571
|
try {
|
|
3618
3572
|
for (
|
|
@@ -3629,7 +3583,7 @@
|
|
|
3629
3583
|
}
|
|
3630
3584
|
debugDestination = request.destination;
|
|
3631
3585
|
if (null !== debugDestination) {
|
|
3632
|
-
currentView = new Uint8Array(
|
|
3586
|
+
currentView = new Uint8Array(4096);
|
|
3633
3587
|
writtenBytes = 0;
|
|
3634
3588
|
try {
|
|
3635
3589
|
var importsChunks = request.completedImportChunks;
|
|
@@ -3830,15 +3784,15 @@
|
|
|
3830
3784
|
)
|
|
3831
3785
|
: reason,
|
|
3832
3786
|
digest = logRecoverableError(request, error, null),
|
|
3833
|
-
|
|
3834
|
-
request.fatalError =
|
|
3787
|
+
errorId = request.nextChunkId++;
|
|
3788
|
+
request.fatalError = errorId;
|
|
3835
3789
|
request.pendingChunks++;
|
|
3836
|
-
emitErrorChunk(request,
|
|
3790
|
+
emitErrorChunk(request, errorId, digest, error, !1, null);
|
|
3837
3791
|
abortableTasks.forEach(function (task) {
|
|
3838
|
-
return abortTask(task, request,
|
|
3792
|
+
return abortTask(task, request, errorId);
|
|
3839
3793
|
});
|
|
3840
3794
|
setTimeout(function () {
|
|
3841
|
-
return finishAbort(request, abortableTasks,
|
|
3795
|
+
return finishAbort(request, abortableTasks, errorId);
|
|
3842
3796
|
}, 0);
|
|
3843
3797
|
}
|
|
3844
3798
|
else {
|
|
@@ -3911,10 +3865,15 @@
|
|
|
3911
3865
|
|
|
3912
3866
|
) {
|
|
3913
3867
|
var chunkId = chunks[i++];
|
|
3914
|
-
i
|
|
3915
|
-
var
|
|
3916
|
-
|
|
3917
|
-
|
|
3868
|
+
chunks[i++];
|
|
3869
|
+
var entry = chunkCache.get(chunkId);
|
|
3870
|
+
if (void 0 === entry) {
|
|
3871
|
+
entry = __webpack_chunk_load__(chunkId);
|
|
3872
|
+
promises.push(entry);
|
|
3873
|
+
var resolve = chunkCache.set.bind(chunkCache, chunkId, null);
|
|
3874
|
+
entry.then(resolve, ignoreReject);
|
|
3875
|
+
chunkCache.set(chunkId, entry);
|
|
3876
|
+
} else null !== entry && promises.push(entry);
|
|
3918
3877
|
}
|
|
3919
3878
|
return 4 === metadata.length
|
|
3920
3879
|
? 0 === promises.length
|
|
@@ -4274,8 +4233,10 @@
|
|
|
4274
4233
|
var name = path[i];
|
|
4275
4234
|
if (
|
|
4276
4235
|
"object" !== typeof value ||
|
|
4277
|
-
|
|
4278
|
-
value
|
|
4236
|
+
null === value ||
|
|
4237
|
+
(getPrototypeOf(value) !== ObjectPrototype &&
|
|
4238
|
+
getPrototypeOf(value) !== ArrayPrototype) ||
|
|
4239
|
+
!hasOwnProperty.call(value, name)
|
|
4279
4240
|
)
|
|
4280
4241
|
throw Error("Invalid reference.");
|
|
4281
4242
|
value = value[name];
|
|
@@ -4323,8 +4284,10 @@
|
|
|
4323
4284
|
var name = reference[i];
|
|
4324
4285
|
if (
|
|
4325
4286
|
"object" !== typeof id ||
|
|
4326
|
-
|
|
4327
|
-
id
|
|
4287
|
+
null === id ||
|
|
4288
|
+
(getPrototypeOf(id) !== ObjectPrototype &&
|
|
4289
|
+
getPrototypeOf(id) !== ArrayPrototype) ||
|
|
4290
|
+
!hasOwnProperty.call(id, name)
|
|
4328
4291
|
)
|
|
4329
4292
|
throw Error("Invalid reference.");
|
|
4330
4293
|
id = id[name];
|
|
@@ -4896,6 +4859,34 @@
|
|
|
4896
4859
|
}
|
|
4897
4860
|
var ReactDOM = require("react-dom"),
|
|
4898
4861
|
React = require("react"),
|
|
4862
|
+
assign = Object.assign,
|
|
4863
|
+
CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
|
|
4864
|
+
SERVER_REFERENCE_TAG = Symbol.for("react.server.reference"),
|
|
4865
|
+
FunctionBind = Function.prototype.bind,
|
|
4866
|
+
ArraySlice = Array.prototype.slice,
|
|
4867
|
+
serverReferenceToString = {
|
|
4868
|
+
value: function () {
|
|
4869
|
+
return "function () { [omitted code] }";
|
|
4870
|
+
},
|
|
4871
|
+
configurable: !0,
|
|
4872
|
+
writable: !0
|
|
4873
|
+
},
|
|
4874
|
+
currentStrategy = {
|
|
4875
|
+
encrypt: function (_actionId) {
|
|
4876
|
+
for (
|
|
4877
|
+
var _len = arguments.length,
|
|
4878
|
+
args = Array(1 < _len ? _len - 1 : 0),
|
|
4879
|
+
_key = 1;
|
|
4880
|
+
_key < _len;
|
|
4881
|
+
_key++
|
|
4882
|
+
)
|
|
4883
|
+
args[_key - 1] = arguments[_key];
|
|
4884
|
+
return Promise.resolve(args);
|
|
4885
|
+
},
|
|
4886
|
+
decrypt: function (_actionId, payloadPromise) {
|
|
4887
|
+
return payloadPromise;
|
|
4888
|
+
}
|
|
4889
|
+
},
|
|
4899
4890
|
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
4900
4891
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
4901
4892
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
@@ -4905,10 +4896,11 @@
|
|
|
4905
4896
|
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
4906
4897
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
4907
4898
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
4908
|
-
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel")
|
|
4909
|
-
|
|
4910
|
-
|
|
4899
|
+
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
4900
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
4901
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
4911
4902
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
4903
|
+
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
4912
4904
|
LocalPromise = Promise,
|
|
4913
4905
|
scheduleMicrotask =
|
|
4914
4906
|
"function" === typeof queueMicrotask
|
|
@@ -4921,83 +4913,6 @@
|
|
|
4921
4913
|
currentView = null,
|
|
4922
4914
|
writtenBytes = 0,
|
|
4923
4915
|
textEncoder = new TextEncoder(),
|
|
4924
|
-
CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
|
|
4925
|
-
SERVER_REFERENCE_TAG = Symbol.for("react.server.reference"),
|
|
4926
|
-
FunctionBind = Function.prototype.bind,
|
|
4927
|
-
ArraySlice = Array.prototype.slice,
|
|
4928
|
-
serverReferenceToString = {
|
|
4929
|
-
value: function () {
|
|
4930
|
-
return "function () { [omitted code] }";
|
|
4931
|
-
},
|
|
4932
|
-
configurable: !0,
|
|
4933
|
-
writable: !0
|
|
4934
|
-
},
|
|
4935
|
-
PROMISE_PROTOTYPE = Promise.prototype,
|
|
4936
|
-
deepProxyHandlers = {
|
|
4937
|
-
get: function (target, name) {
|
|
4938
|
-
switch (name) {
|
|
4939
|
-
case "$$typeof":
|
|
4940
|
-
return target.$$typeof;
|
|
4941
|
-
case "$$id":
|
|
4942
|
-
return target.$$id;
|
|
4943
|
-
case "$$async":
|
|
4944
|
-
return target.$$async;
|
|
4945
|
-
case "name":
|
|
4946
|
-
return target.name;
|
|
4947
|
-
case "displayName":
|
|
4948
|
-
return;
|
|
4949
|
-
case "defaultProps":
|
|
4950
|
-
return;
|
|
4951
|
-
case "_debugInfo":
|
|
4952
|
-
return;
|
|
4953
|
-
case "toJSON":
|
|
4954
|
-
return;
|
|
4955
|
-
case Symbol.toPrimitive:
|
|
4956
|
-
return Object.prototype[Symbol.toPrimitive];
|
|
4957
|
-
case Symbol.toStringTag:
|
|
4958
|
-
return Object.prototype[Symbol.toStringTag];
|
|
4959
|
-
case "Provider":
|
|
4960
|
-
throw Error(
|
|
4961
|
-
"Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider."
|
|
4962
|
-
);
|
|
4963
|
-
case "then":
|
|
4964
|
-
throw Error(
|
|
4965
|
-
"Cannot await or return from a thenable. You cannot await a client module from a server component."
|
|
4966
|
-
);
|
|
4967
|
-
}
|
|
4968
|
-
throw Error(
|
|
4969
|
-
"Cannot access " +
|
|
4970
|
-
(String(target.name) + "." + String(name)) +
|
|
4971
|
-
" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through."
|
|
4972
|
-
);
|
|
4973
|
-
},
|
|
4974
|
-
set: function () {
|
|
4975
|
-
throw Error("Cannot assign to a client module from a server module.");
|
|
4976
|
-
}
|
|
4977
|
-
},
|
|
4978
|
-
proxyHandlers$1 = {
|
|
4979
|
-
get: function (target, name) {
|
|
4980
|
-
return getReference(target, name);
|
|
4981
|
-
},
|
|
4982
|
-
getOwnPropertyDescriptor: function (target, name) {
|
|
4983
|
-
var descriptor = Object.getOwnPropertyDescriptor(target, name);
|
|
4984
|
-
descriptor ||
|
|
4985
|
-
((descriptor = {
|
|
4986
|
-
value: getReference(target, name),
|
|
4987
|
-
writable: !1,
|
|
4988
|
-
configurable: !1,
|
|
4989
|
-
enumerable: !1
|
|
4990
|
-
}),
|
|
4991
|
-
Object.defineProperty(target, name, descriptor));
|
|
4992
|
-
return descriptor;
|
|
4993
|
-
},
|
|
4994
|
-
getPrototypeOf: function () {
|
|
4995
|
-
return PROMISE_PROTOTYPE;
|
|
4996
|
-
},
|
|
4997
|
-
set: function () {
|
|
4998
|
-
throw Error("Cannot assign to a client module from a server module.");
|
|
4999
|
-
}
|
|
5000
|
-
},
|
|
5001
4916
|
ReactDOMSharedInternals =
|
|
5002
4917
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
5003
4918
|
previousDispatcher = ReactDOMSharedInternals.d;
|
|
@@ -5309,11 +5224,10 @@
|
|
|
5309
5224
|
patchConsole(console, "table"),
|
|
5310
5225
|
patchConsole(console, "trace"),
|
|
5311
5226
|
patchConsole(console, "warn"));
|
|
5312
|
-
var ObjectPrototype = Object.prototype,
|
|
5227
|
+
var ObjectPrototype$1 = Object.prototype,
|
|
5313
5228
|
stringify = JSON.stringify,
|
|
5314
5229
|
ABORTING = 12,
|
|
5315
5230
|
CLOSED = 14,
|
|
5316
|
-
defaultPostponeHandler = noop,
|
|
5317
5231
|
currentRequest = null,
|
|
5318
5232
|
canEmitDebugInfo = !1,
|
|
5319
5233
|
serializedSize = 0,
|
|
@@ -5324,6 +5238,7 @@
|
|
|
5324
5238
|
debugNoOutline = null,
|
|
5325
5239
|
emptyRoot = {},
|
|
5326
5240
|
decoderOptions = { stream: !0 },
|
|
5241
|
+
chunkCache = new Map(),
|
|
5327
5242
|
RESPONSE_SYMBOL = Symbol();
|
|
5328
5243
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
5329
5244
|
ReactPromise.prototype.then = function (resolve, reject) {
|
|
@@ -5335,16 +5250,23 @@
|
|
|
5335
5250
|
case "fulfilled":
|
|
5336
5251
|
if ("function" === typeof resolve) {
|
|
5337
5252
|
for (
|
|
5338
|
-
var inspectedValue = this.value,
|
|
5253
|
+
var inspectedValue = this.value,
|
|
5254
|
+
cycleProtection = 0,
|
|
5255
|
+
visited = new Set();
|
|
5339
5256
|
inspectedValue instanceof ReactPromise;
|
|
5340
5257
|
|
|
5341
5258
|
) {
|
|
5342
5259
|
cycleProtection++;
|
|
5343
|
-
if (
|
|
5260
|
+
if (
|
|
5261
|
+
inspectedValue === this ||
|
|
5262
|
+
visited.has(inspectedValue) ||
|
|
5263
|
+
1e3 < cycleProtection
|
|
5264
|
+
) {
|
|
5344
5265
|
"function" === typeof reject &&
|
|
5345
5266
|
reject(Error("Cannot have cyclic thenables."));
|
|
5346
5267
|
return;
|
|
5347
5268
|
}
|
|
5269
|
+
visited.add(inspectedValue);
|
|
5348
5270
|
if ("fulfilled" === inspectedValue.status)
|
|
5349
5271
|
inspectedValue = inspectedValue.value;
|
|
5350
5272
|
else break;
|
|
@@ -5365,10 +5287,20 @@
|
|
|
5365
5287
|
"function" === typeof reject && reject(this.reason);
|
|
5366
5288
|
}
|
|
5367
5289
|
};
|
|
5368
|
-
var
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5290
|
+
var ObjectPrototype = Object.prototype,
|
|
5291
|
+
ArrayPrototype = Array.prototype,
|
|
5292
|
+
initializingHandler = null;
|
|
5293
|
+
exports.createServerEntry = function (value, resource) {
|
|
5294
|
+
var entryJsFiles = __rspack_rsc_manifest__.entryJsFiles || [],
|
|
5295
|
+
entryCssFiles = __rspack_rsc_manifest__.entryCssFiles[resource] || [];
|
|
5296
|
+
("function" === typeof value ||
|
|
5297
|
+
("object" === typeof value && null !== value)) &&
|
|
5298
|
+
assign(value, {
|
|
5299
|
+
resource: resource,
|
|
5300
|
+
entryJsFiles: entryJsFiles,
|
|
5301
|
+
entryCssFiles: entryCssFiles
|
|
5302
|
+
});
|
|
5303
|
+
return value;
|
|
5372
5304
|
};
|
|
5373
5305
|
exports.createTemporaryReferenceSet = function () {
|
|
5374
5306
|
return new WeakMap();
|
|
@@ -5414,27 +5346,23 @@
|
|
|
5414
5346
|
: [actionResult, keyPath, referenceId, bound.length - 1];
|
|
5415
5347
|
});
|
|
5416
5348
|
};
|
|
5417
|
-
exports.decodeReply = function (body,
|
|
5349
|
+
exports.decodeReply = function (body, options) {
|
|
5418
5350
|
if ("string" === typeof body) {
|
|
5419
5351
|
var form = new FormData();
|
|
5420
5352
|
form.append("0", body);
|
|
5421
5353
|
body = form;
|
|
5422
5354
|
}
|
|
5423
5355
|
body = createResponse(
|
|
5424
|
-
|
|
5356
|
+
__rspack_rsc_manifest__.serverManifest,
|
|
5425
5357
|
"",
|
|
5426
5358
|
options ? options.temporaryReferences : void 0,
|
|
5427
5359
|
body
|
|
5428
5360
|
);
|
|
5429
|
-
|
|
5361
|
+
options = getChunk(body, 0);
|
|
5430
5362
|
close(body);
|
|
5431
|
-
return
|
|
5363
|
+
return options;
|
|
5432
5364
|
};
|
|
5433
|
-
exports.decodeReplyFromAsyncIterable = function (
|
|
5434
|
-
iterable,
|
|
5435
|
-
webpackMap,
|
|
5436
|
-
options
|
|
5437
|
-
) {
|
|
5365
|
+
exports.decodeReplyFromAsyncIterable = function (iterable, options) {
|
|
5438
5366
|
function progress(entry) {
|
|
5439
5367
|
if (entry.done) close(response$jscomp$0);
|
|
5440
5368
|
else {
|
|
@@ -5462,18 +5390,63 @@
|
|
|
5462
5390
|
}
|
|
5463
5391
|
var iterator = iterable[ASYNC_ITERATOR](),
|
|
5464
5392
|
response$jscomp$0 = createResponse(
|
|
5465
|
-
|
|
5393
|
+
__rspack_rsc_manifest__.serverManifest,
|
|
5466
5394
|
"",
|
|
5467
5395
|
options ? options.temporaryReferences : void 0
|
|
5468
5396
|
);
|
|
5469
5397
|
iterator.next().then(progress, error);
|
|
5470
5398
|
return getChunk(response$jscomp$0, 0);
|
|
5471
5399
|
};
|
|
5472
|
-
exports.
|
|
5400
|
+
exports.decryptServerActionBoundArgs = function (
|
|
5401
|
+
actionId,
|
|
5402
|
+
encryptedPromise
|
|
5403
|
+
) {
|
|
5404
|
+
return currentStrategy.decrypt(actionId, encryptedPromise);
|
|
5405
|
+
};
|
|
5406
|
+
exports.encryptServerActionBoundArgs = function (actionId) {
|
|
5407
|
+
for (
|
|
5408
|
+
var _currentStrategy,
|
|
5409
|
+
_len2 = arguments.length,
|
|
5410
|
+
args = Array(1 < _len2 ? _len2 - 1 : 0),
|
|
5411
|
+
_key2 = 1;
|
|
5412
|
+
_key2 < _len2;
|
|
5413
|
+
_key2++
|
|
5414
|
+
)
|
|
5415
|
+
args[_key2 - 1] = arguments[_key2];
|
|
5416
|
+
return (_currentStrategy = currentStrategy).encrypt.apply(
|
|
5417
|
+
_currentStrategy,
|
|
5418
|
+
[actionId].concat(args)
|
|
5419
|
+
);
|
|
5420
|
+
};
|
|
5421
|
+
exports.ensureServerActions = function (actions) {
|
|
5422
|
+
for (var i = 0; i < actions.length; i++) {
|
|
5423
|
+
var action = actions[i];
|
|
5424
|
+
if ("function" !== typeof action)
|
|
5425
|
+
throw Error(
|
|
5426
|
+
'A "use server" file can only export async functions, found ' +
|
|
5427
|
+
typeof action +
|
|
5428
|
+
"."
|
|
5429
|
+
);
|
|
5430
|
+
}
|
|
5431
|
+
};
|
|
5432
|
+
exports.loadServerAction = function (actionId) {
|
|
5433
|
+
var actionModId = __rspack_rsc_manifest__.serverManifest[actionId].id;
|
|
5434
|
+
if (!actionModId)
|
|
5435
|
+
throw Error(
|
|
5436
|
+
'Failed to find Server Action "' +
|
|
5437
|
+
actionId +
|
|
5438
|
+
'". This request might be from an older or newer deployment.'
|
|
5439
|
+
);
|
|
5440
|
+
actionId = __webpack_require__(actionModId)[actionId];
|
|
5441
|
+
if ("function" !== typeof actionId)
|
|
5442
|
+
throw Error("Server actions must be functions");
|
|
5443
|
+
return actionId;
|
|
5444
|
+
};
|
|
5445
|
+
exports.prerender = function (model, options) {
|
|
5473
5446
|
return new Promise(function (resolve, reject) {
|
|
5474
5447
|
var request = createPrerenderRequest(
|
|
5475
5448
|
model,
|
|
5476
|
-
|
|
5449
|
+
__rspack_rsc_manifest__.clientManifest,
|
|
5477
5450
|
function () {
|
|
5478
5451
|
var stream = new ReadableStream(
|
|
5479
5452
|
{
|
|
@@ -5493,7 +5466,6 @@
|
|
|
5493
5466
|
reject,
|
|
5494
5467
|
options ? options.onError : void 0,
|
|
5495
5468
|
options ? options.identifierPrefix : void 0,
|
|
5496
|
-
options ? options.onPostpone : void 0,
|
|
5497
5469
|
options ? options.temporaryReferences : void 0,
|
|
5498
5470
|
options ? options.environmentName : void 0,
|
|
5499
5471
|
options ? options.filterStackFrame : void 0,
|
|
@@ -5518,11 +5490,11 @@
|
|
|
5518
5490
|
id,
|
|
5519
5491
|
exportName
|
|
5520
5492
|
) {
|
|
5521
|
-
return
|
|
5522
|
-
|
|
5523
|
-
id + "#" + exportName,
|
|
5524
|
-
!1
|
|
5525
|
-
);
|
|
5493
|
+
return Object.defineProperties(proxyImplementation, {
|
|
5494
|
+
$$typeof: { value: CLIENT_REFERENCE_TAG$1 },
|
|
5495
|
+
$$id: { value: id + "#" + exportName },
|
|
5496
|
+
$$async: { value: !1 }
|
|
5497
|
+
});
|
|
5526
5498
|
};
|
|
5527
5499
|
exports.registerServerReference = function (reference, id, exportName) {
|
|
5528
5500
|
return Object.defineProperties(reference, {
|
|
@@ -5537,7 +5509,7 @@
|
|
|
5537
5509
|
toString: serverReferenceToString
|
|
5538
5510
|
});
|
|
5539
5511
|
};
|
|
5540
|
-
exports.renderToReadableStream = function (model,
|
|
5512
|
+
exports.renderToReadableStream = function (model, options) {
|
|
5541
5513
|
var debugChannelReadable =
|
|
5542
5514
|
options && options.debugChannel
|
|
5543
5515
|
? options.debugChannel.readable
|
|
@@ -5548,10 +5520,9 @@
|
|
|
5548
5520
|
: void 0,
|
|
5549
5521
|
request = createRequest(
|
|
5550
5522
|
model,
|
|
5551
|
-
|
|
5523
|
+
__rspack_rsc_manifest__.clientManifest,
|
|
5552
5524
|
options ? options.onError : void 0,
|
|
5553
5525
|
options ? options.identifierPrefix : void 0,
|
|
5554
|
-
options ? options.onPostpone : void 0,
|
|
5555
5526
|
options ? options.temporaryReferences : void 0,
|
|
5556
5527
|
options ? options.environmentName : void 0,
|
|
5557
5528
|
options ? options.filterStackFrame : void 0,
|
|
@@ -5614,4 +5585,7 @@
|
|
|
5614
5585
|
{ highWaterMark: 0 }
|
|
5615
5586
|
);
|
|
5616
5587
|
};
|
|
5588
|
+
exports.setServerActionBoundArgsEncryption = function (strategy) {
|
|
5589
|
+
currentStrategy = strategy;
|
|
5590
|
+
};
|
|
5617
5591
|
})();
|