Unverified Commit 6d769d0e authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub
parent c792baa7
......@@ -191,14 +191,14 @@
"random-seed": "0.3.0",
"react": "18.2.0",
"react-17": "npm:react@17.0.2",
"react-builtin": "npm:react@18.3.0-canary-1a001dac6-20230812",
"react-builtin": "npm:react@18.3.0-canary-dd480ef92-20230822",
"react-dom": "18.2.0",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@18.3.0-canary-1a001dac6-20230812",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-1a001dac6-20230812",
"react-experimental-builtin": "npm:react@0.0.0-experimental-1a001dac6-20230812",
"react-server-dom-webpack": "18.3.0-canary-1a001dac6-20230812",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-1a001dac6-20230812",
"react-dom-builtin": "npm:react-dom@18.3.0-canary-dd480ef92-20230822",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-dd480ef92-20230822",
"react-experimental-builtin": "npm:react@0.0.0-experimental-dd480ef92-20230822",
"react-server-dom-webpack": "18.3.0-canary-dd480ef92-20230822",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-dd480ef92-20230822",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
......@@ -208,8 +208,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.1",
"scheduler-builtin": "npm:scheduler@0.24.0-canary-1a001dac6-20230812",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-1a001dac6-20230812",
"scheduler-builtin": "npm:scheduler@0.24.0-canary-dd480ef92-20230822",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-dd480ef92-20230822",
"seedrandom": "3.0.5",
"selenium-webdriver": "4.0.0-beta.4",
"semver": "7.3.7",
......
......@@ -16,7 +16,7 @@ if (process.env.NODE_ENV !== "production") {
var React = require("next/dist/compiled/react-experimental");
var ReactVersion = '18.3.0-experimental-1a001dac6-20230812';
var ReactVersion = '18.3.0-experimental-dd480ef92-20230822';
var Internals = {
usingClientEntryPoint: false,
......
......@@ -9,4 +9,4 @@
*/
'use strict';var d=require("next/dist/compiled/react-experimental"),e={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function f(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g=e.Dispatcher,h=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e;exports.createPortal=function(){throw Error(f(448));};exports.experimental_useFormStatus=function(){return h.current.useHostTransitionStatus()};exports.flushSync=function(){throw Error(f(449));};exports.preconnect=function(b,a){var c=g.current;c&&c.preconnect(b,a)};exports.prefetchDNS=function(b){var a=g.current;a&&a.prefetchDNS(b)};exports.preinit=function(b,a){var c=g.current;c&&c.preinit(b,a)};
exports.preload=function(b,a){var c=g.current;c&&c.preload(b,a)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.version="18.3.0-experimental-1a001dac6-20230812";
exports.preload=function(b,a){var c=g.current;c&&c.preload(b,a)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.version="18.3.0-experimental-dd480ef92-20230822";
......@@ -39,10 +39,10 @@
},
"dependencies": {
"loose-envify": "^1.1.0",
"scheduler": "0.0.0-experimental-1a001dac6-20230812"
"scheduler": "0.0.0-experimental-dd480ef92-20230822"
},
"peerDependencies": {
"react": "0.0.0-experimental-1a001dac6-20230812"
"react": "0.0.0-experimental-dd480ef92-20230822"
},
"browser": {
"./server.js": "./server.browser.js",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,7 +14,7 @@ if (process.env.NODE_ENV !== "production") {
(function() {
'use strict';
var ReactVersion = '18.3.0-canary-1a001dac6-20230812';
var ReactVersion = '18.3.0-canary-dd480ef92-20230822';
var Internals = {
usingClientEntryPoint: false,
......
......@@ -9,4 +9,4 @@
*/
'use strict';var d={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function e(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=d.Dispatcher;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d;
exports.createPortal=function(){throw Error(e(448));};exports.experimental_useFormStatus=function(){throw Error(e(248));};exports.flushSync=function(){throw Error(e(449));};exports.preconnect=function(b,a){var c=f.current;c&&c.preconnect(b,a)};exports.prefetchDNS=function(b){var a=f.current;a&&a.prefetchDNS(b)};exports.preinit=function(b,a){var c=f.current;c&&c.preinit(b,a)};exports.preload=function(b,a){var c=f.current;c&&c.preload(b,a)};exports.unstable_batchedUpdates=function(b,a){return b(a)};
exports.version="18.3.0-canary-1a001dac6-20230812";
exports.version="18.3.0-canary-dd480ef92-20230822";
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -26,10 +26,10 @@
},
"dependencies": {
"loose-envify": "^1.1.0",
"scheduler": "0.24.0-canary-1a001dac6-20230812"
"scheduler": "0.24.0-canary-dd480ef92-20230822"
},
"peerDependencies": {
"react": "18.3.0-canary-1a001dac6-20230812"
"react": "18.3.0-canary-dd480ef92-20230822"
},
"browser": {
"./server.js": "./server.browser.js"
......
......@@ -23,7 +23,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
var ReactVersion = '18.3.0-experimental-1a001dac6-20230812';
var ReactVersion = '18.3.0-experimental-dd480ef92-20230822';
// ATTENTION
// When adding new symbols to this file,
......@@ -46,6 +46,7 @@ var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
var REACT_CACHE_TYPE = Symbol.for('react.cache');
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
var REACT_POSTPONE_TYPE = Symbol.for('react.postpone');
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
......@@ -1718,6 +1719,13 @@ function cache(fn) {
};
}
function postpone(reason) {
// eslint-disable-next-line react-internal/prod-error-codes
var postponeInstance = new Error(reason);
postponeInstance.$$typeof = REACT_POSTPONE_TYPE;
throw postponeInstance;
}
function resolveDispatcher() {
var dispatcher = ReactCurrentDispatcher$1.current;
......@@ -3077,6 +3085,7 @@ exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_act = act;
exports.unstable_getCacheForType = getCacheForType;
exports.unstable_getCacheSignal = getCacheSignal;
exports.unstable_postpone = postpone;
exports.unstable_useCacheRefresh = useCacheRefresh;
exports.unstable_useMemoCache = useMemoCache;
exports.use = use;
......
......@@ -304,7 +304,7 @@ function generateCacheKey(request) {
}
}
var ReactVersion = '18.3.0-experimental-1a001dac6-20230812';
var ReactVersion = '18.3.0-experimental-dd480ef92-20230822';
// ATTENTION
// When adding new symbols to this file,
......@@ -327,6 +327,7 @@ var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
var REACT_CACHE_TYPE = Symbol.for('react.cache');
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
var REACT_POSTPONE_TYPE = Symbol.for('react.postpone');
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
......@@ -1718,6 +1719,13 @@ function cache(fn) {
};
}
function postpone(reason) {
// eslint-disable-next-line react-internal/prod-error-codes
var postponeInstance = new Error(reason);
postponeInstance.$$typeof = REACT_POSTPONE_TYPE;
throw postponeInstance;
}
function resolveDispatcher() {
var dispatcher = ReactCurrentDispatcher$1.current;
......@@ -2665,6 +2673,7 @@ exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_getCacheForType = getCacheForType;
exports.unstable_getCacheSignal = getCacheSignal;
exports.unstable_postpone = postpone;
exports.use = use;
exports.useCallback = useCallback;
exports.useContext = useContext;
......
......@@ -201,6 +201,14 @@ function dispatchHint(code, model) {
return;
}
case 'm':
{
// $FlowFixMe[prop-missing] options are not refined to their types by code
// $FlowFixMe[incompatible-call] options are not refined to their types by code
dispatcher.preloadModule(href, options);
return;
}
case 'I':
{
// $FlowFixMe[prop-missing] options are not refined to their types by code
......@@ -208,6 +216,14 @@ function dispatchHint(code, model) {
dispatcher.preinit(href, options);
return;
}
case 'M':
{
// $FlowFixMe[prop-missing] options are not refined to their types by code
// $FlowFixMe[incompatible-call] options are not refined to their types by code
dispatcher.preinitModule(href, options);
return;
}
}
}
}
......@@ -263,6 +279,7 @@ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
var REACT_MEMO_TYPE = Symbol.for('react.memo');
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
var REACT_POSTPONE_TYPE = Symbol.for('react.postpone');
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
......@@ -1618,6 +1635,23 @@ function resolveErrorDev(response, id, digest, message, stack) {
}
}
function resolvePostponeDev(response, id, reason, stack) {
var error = new Error(reason || '');
var postponeInstance = error;
postponeInstance.$$typeof = REACT_POSTPONE_TYPE;
postponeInstance.stack = stack;
var chunks = response._chunks;
var chunk = chunks.get(id);
if (!chunk) {
chunks.set(id, createErrorChunk(response, postponeInstance));
} else {
triggerErrorOnChunk(chunk, postponeInstance);
}
}
function resolveHint(response, code, model) {
var hintModel = parseModel(response, model);
dispatchHint(code, hintModel);
......@@ -1793,6 +1827,21 @@ function processFullRow(response, id, tag, buffer, chunk) {
return;
}
case 80
/* "P" */
:
{
{
{
var postponeInfo = JSON.parse(row);
resolvePostponeDev(response, id, postponeInfo.reason, postponeInfo.stack);
}
return;
}
}
// Fallthrough
default:
/* """ "{" "[" "t" "f" "n" "0" - "9" */
{
......
......@@ -201,6 +201,14 @@ function dispatchHint(code, model) {
return;
}
case 'm':
{
// $FlowFixMe[prop-missing] options are not refined to their types by code
// $FlowFixMe[incompatible-call] options are not refined to their types by code
dispatcher.preloadModule(href, options);
return;
}
case 'I':
{
// $FlowFixMe[prop-missing] options are not refined to their types by code
......@@ -208,6 +216,14 @@ function dispatchHint(code, model) {
dispatcher.preinit(href, options);
return;
}
case 'M':
{
// $FlowFixMe[prop-missing] options are not refined to their types by code
// $FlowFixMe[incompatible-call] options are not refined to their types by code
dispatcher.preinitModule(href, options);
return;
}
}
}
}
......@@ -263,6 +279,7 @@ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
var REACT_MEMO_TYPE = Symbol.for('react.memo');
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
var REACT_POSTPONE_TYPE = Symbol.for('react.postpone');
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
......@@ -1709,6 +1726,23 @@ function resolveErrorDev(response, id, digest, message, stack) {
}
}
function resolvePostponeDev(response, id, reason, stack) {
var error = new Error(reason || '');
var postponeInstance = error;
postponeInstance.$$typeof = REACT_POSTPONE_TYPE;
postponeInstance.stack = stack;
var chunks = response._chunks;
var chunk = chunks.get(id);
if (!chunk) {
chunks.set(id, createErrorChunk(response, postponeInstance));
} else {
triggerErrorOnChunk(chunk, postponeInstance);
}
}
function resolveHint(response, code, model) {
var hintModel = parseModel(response, model);
dispatchHint(code, hintModel);
......@@ -1884,6 +1918,21 @@ function processFullRow(response, id, tag, buffer, chunk) {
return;
}
case 80
/* "P" */
:
{
{
{
var postponeInfo = JSON.parse(row);
resolvePostponeDev(response, id, postponeInfo.reason, postponeInfo.stack);
}
return;
}
}
// Fallthrough
default:
/* """ "{" "[" "t" "f" "n" "0" - "9" */
{
......
......@@ -47,8 +47,8 @@
"loose-envify": "^1.1.0"
},
"peerDependencies": {
"react": "0.0.0-experimental-1a001dac6-20230812",
"react-dom": "0.0.0-experimental-1a001dac6-20230812",
"react": "0.0.0-experimental-dd480ef92-20230822",
"react-dom": "0.0.0-experimental-dd480ef92-20230822",
"webpack": "^5.59.0"
}
}
\ No newline at end of file
......@@ -28,7 +28,7 @@ function ia(){throw Error('Trying to call a function from "use server" but the c
function ka(a,b,c){var d=a._chunks,l=d.get(b);c=JSON.parse(c,a._fromJSON);var h=v(a._bundlerConfig,c);if(c=z(h)){if(l){var n=l;n.status="blocked"}else n=new L("blocked",null,null,a),d.set(b,n);c.then(function(){return S(n,h)},function(f){return R(n,f)})}else l?S(l,h):d.set(b,new L("resolved_module",h,null,a))}
function ja(a){return function(b,c){return"string"===typeof c?ha(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===B?{$$typeof:B,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
function Z(a,b){function c(h){var n=h.value;if(h.done)V(a,Error("Connection closed."));else{var f=0,k=a._rowState,e=a._rowID,g=a._rowTag,m=a._rowLength;h=a._buffer;for(var D=n.length;f<D;){var p=-1;switch(k){case 0:p=n[f++];58===p?k=1:e=e<<4|(96<p?p-87:p-48);continue;case 1:k=n[f];84===k?(g=k,k=2,f++):64<k&&91>k?(g=k,k=3,f++):(g=0,k=3);continue;case 2:p=n[f++];44===p?k=4:m=m<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,f);break;case 4:p=f+m,p>n.length&&(p=-1)}var q=n.byteOffset+f;if(-1<p){f=
new Uint8Array(n.buffer,q,p-f);m=a;q=g;var P=m._stringDecoder;g="";for(var H=0;H<h.length;H++)g+=P.decode(h[H],u);g+=P.decode(f);switch(q){case 73:ka(m,e,g);break;case 72:e=g[0];g=g.slice(1);m=JSON.parse(g,m._fromJSON);g=void 0;if(q=A.current)switch("string"===typeof m?f=m:(f=m[0],g=m[1]),e){case "D":q.prefetchDNS(f,g);break;case "C":q.preconnect(f,g);break;case "L":q.preload(f,g);break;case "I":q.preinit(f,g)}break;case 69:g=JSON.parse(g);f=g.digest;g=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
g.stack="Error: "+g.message;g.digest=f;f=m._chunks;(q=f.get(e))?R(q,g):f.set(e,new L("rejected",null,g,m));break;case 84:m._chunks.set(e,new L("fulfilled",g,null,m));break;default:f=m._chunks,(q=f.get(e))?(m=q,e=g,"pending"===m.status&&(g=m.value,f=m.reason,m.status="resolved_model",m.value=e,null!==g&&(M(m),Q(m,g,f)))):f.set(e,new L("resolved_model",g,null,m))}f=p;3===k&&f++;m=e=g=k=0;h.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-f);h.push(n);m-=n.byteLength;break}}a._rowState=k;a._rowID=
e;a._rowTag=g;a._rowLength=m;return l.read().then(c).catch(d)}}function d(h){V(a,h)}var l=b.getReader();l.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(null,b&&b.callServer?b.callServer:void 0);a.then(function(d){Z(c,d.body)},function(d){V(c,d)});return W(c,0)};exports.createFromReadableStream=function(a,b){b=Y(null,b&&b.callServer?b.callServer:void 0);Z(b,a);return W(b,0)};
exports.createServerReference=function(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}J.set(c,{id:a,bound:null});return c};exports.encodeReply=function(a){return new Promise(function(b,c){ba(a,"",b,c)})};
new Uint8Array(n.buffer,q,p-f);m=a;q=g;var P=m._stringDecoder;g="";for(var H=0;H<h.length;H++)g+=P.decode(h[H],u);g+=P.decode(f);switch(q){case 73:ka(m,e,g);break;case 72:e=g[0];g=g.slice(1);m=JSON.parse(g,m._fromJSON);g=void 0;if(q=A.current)switch("string"===typeof m?f=m:(f=m[0],g=m[1]),e){case "D":q.prefetchDNS(f,g);break;case "C":q.preconnect(f,g);break;case "L":q.preload(f,g);break;case "m":q.preloadModule(f,g);break;case "I":q.preinit(f,g);break;case "M":q.preinitModule(f,g)}break;case 69:g=
JSON.parse(g);f=g.digest;g=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");g.stack="Error: "+g.message;g.digest=f;f=m._chunks;(q=f.get(e))?R(q,g):f.set(e,new L("rejected",null,g,m));break;case 84:m._chunks.set(e,new L("fulfilled",g,null,m));break;default:f=m._chunks,(q=f.get(e))?
(m=q,e=g,"pending"===m.status&&(g=m.value,f=m.reason,m.status="resolved_model",m.value=e,null!==g&&(M(m),Q(m,g,f)))):f.set(e,new L("resolved_model",g,null,m))}f=p;3===k&&f++;m=e=g=k=0;h.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-f);h.push(n);m-=n.byteLength;break}}a._rowState=k;a._rowID=e;a._rowTag=g;a._rowLength=m;return l.read().then(c).catch(d)}}function d(h){V(a,h)}var l=b.getReader();l.read().then(c).catch(d)}
exports.createFromFetch=function(a,b){var c=Y(null,b&&b.callServer?b.callServer:void 0);a.then(function(d){Z(c,d.body)},function(d){V(c,d)});return W(c,0)};exports.createFromReadableStream=function(a,b){b=Y(null,b&&b.callServer?b.callServer:void 0);Z(b,a);return W(b,0)};exports.createServerReference=function(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}J.set(c,{id:a,bound:null});return c};exports.encodeReply=function(a){return new Promise(function(b,c){ba(a,"",b,c)})};
......@@ -30,6 +30,6 @@ function ka(){throw Error('Trying to call a function from "use server" but the c
function na(a,c,b){var d=a._chunks,e=d.get(c);b=JSON.parse(b,a._fromJSON);var h=v(a._bundlerConfig,b);if(b=B(h)){if(e){var l=e;l.status="blocked"}else l=new N("blocked",null,null,a),d.set(c,l);b.then(function(){return T(l,h)},function(f){return S(l,f)})}else e?T(e,h):d.set(c,new N("resolved_module",h,null,a))}
function ma(a){return function(c,b){return"string"===typeof b?ja(a,this,c,b):"object"===typeof b&&null!==b?(c=b[0]===D?{$$typeof:D,type:b[1],key:b[2],ref:null,props:b[3],_owner:null}:b,c):b}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
exports.createFromNodeStream=function(a,c){var b=la(c,Z);a.on("data",function(d){for(var e=0,h=b._rowState,l=b._rowID,f=b._rowTag,k=b._rowLength,g=b._buffer,x=d.length;e<x;){var m=-1;switch(h){case 0:m=d[e++];58===m?h=1:l=l<<4|(96<m?m-87:m-48);continue;case 1:h=d[e];84===h?(f=h,h=2,e++):64<h&&91>h?(f=h,h=3,e++):(f=0,h=3);continue;case 2:m=d[e++];44===m?h=4:k=k<<4|(96<m?m-87:m-48);continue;case 3:m=d.indexOf(10,e);break;case 4:m=e+k,m>d.length&&(m=-1)}var n=d.byteOffset+e;if(-1<m){k=new Uint8Array(d.buffer,
n,m-e);e=f;n=b._stringDecoder;f="";for(var p=0;p<g.length;p++)f+=n.decode(g[p],u);f+=n.decode(k);switch(e){case 73:na(b,l,f);break;case 72:l=f[0];f=f.slice(1);f=JSON.parse(f,b._fromJSON);k=void 0;if(n=C.current)switch("string"===typeof f?e=f:(e=f[0],k=f[1]),l){case "D":n.prefetchDNS(e,k);break;case "C":n.preconnect(e,k);break;case "L":n.preload(e,k);break;case "I":n.preinit(e,k)}break;case 69:f=JSON.parse(f);k=f.digest;f=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
n,m-e);e=f;n=b._stringDecoder;f="";for(var p=0;p<g.length;p++)f+=n.decode(g[p],u);f+=n.decode(k);switch(e){case 73:na(b,l,f);break;case 72:l=f[0];f=f.slice(1);f=JSON.parse(f,b._fromJSON);k=void 0;if(n=C.current)switch("string"===typeof f?e=f:(e=f[0],k=f[1]),l){case "D":n.prefetchDNS(e,k);break;case "C":n.preconnect(e,k);break;case "L":n.preload(e,k);break;case "m":n.preloadModule(e,k);break;case "I":n.preinit(e,k);break;case "M":n.preinitModule(e,k)}break;case 69:f=JSON.parse(f);k=f.digest;f=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
f.stack="Error: "+f.message;f.digest=k;k=b._chunks;(e=k.get(l))?S(e,f):k.set(l,new N("rejected",null,f,b));break;case 84:b._chunks.set(l,new N("fulfilled",f,null,b));break;default:k=b._chunks,(e=k.get(l))?(l=e,"pending"===l.status&&(k=l.value,e=l.reason,l.status="resolved_model",l.value=f,null!==k&&(O(l),R(l,k,e)))):k.set(l,new N("resolved_model",f,null,b))}e=m;3===h&&e++;k=l=f=h=0;g.length=0}else{d=new Uint8Array(d.buffer,n,d.byteLength-e);g.push(d);k-=d.byteLength;break}}b._rowState=h;b._rowID=
l;b._rowTag=f;b._rowLength=k});a.on("error",function(d){W(b,d)});a.on("end",function(){W(b,Error("Connection closed."))});return X(b,0)};exports.createServerReference=function(a){return da(a,Z)};
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment