Disable consoleWithStackDev Transform except in RN/WWW (#30313)

Stacked on #30308.

This is now a noop module so we can stop applying the transform of
console.error using the Babel plugin in the mainline builds. I'm keeping
the transform for RN/WWW for now although it might be nice if the
transform moved into those systems as it gets synced instead of keeping
it upstream.

In jest tests we're already not running the forks for RN/WWW so we don't
need it at all there.

DiffTrain build for [ff89ba7346](https://github.com/facebook/react/commit/ff89ba734668fdac06e8de476486830bbf9e0785)
This commit is contained in:
sebmarkbage
2024-07-12 11:44:41 -07:00
parent f91895deda
commit d38d9536ab
36 changed files with 289 additions and 313 deletions
+1 -1
View File
@@ -1 +1 @@
433068eece2071a96de98b60f99ce6a9121a629c
ff89ba734668fdac06e8de476486830bbf9e0785
+1 -1
View File
@@ -1 +1 @@
433068eece2071a96de98b60f99ce6a9121a629c
ff89ba734668fdac06e8de476486830bbf9e0785
+1 -1
View File
@@ -1998,7 +1998,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1978,7 +1978,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -669,4 +669,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
+1 -1
View File
@@ -669,4 +669,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
@@ -673,7 +673,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -673,7 +673,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17021,14 +17021,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
});
})({
findFiberByHostInstance: function () {
return null;
},
bundleType: 1,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-art"
});
var ClippingRectangle = TYPES.CLIPPING_RECTANGLE,
+2 -2
View File
@@ -16432,14 +16432,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
});
})({
findFiberByHostInstance: function () {
return null;
},
bundleType: 1,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-art"
});
var ClippingRectangle = TYPES.CLIPPING_RECTANGLE,
@@ -10753,7 +10753,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1386 = {
@@ -10784,7 +10784,7 @@ var internals$jscomp$inline_1386 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1387 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10202,7 +10202,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1372 = {
@@ -10233,7 +10233,7 @@ var internals$jscomp$inline_1372 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1373 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+6 -10
View File
@@ -1279,11 +1279,7 @@ __DEV__ &&
" " + badgeName + " ",
""
);
"error" === methodName
? error$jscomp$0.apply(console, args)
: "warn" === methodName
? warn.apply(console, args)
: console[methodName].apply(console, args);
console[methodName].apply(console, args);
}
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -27570,11 +27566,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-433068ee-20240711" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-ff89ba73-20240712" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-classic-433068ee-20240711\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27640,12 +27636,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -28288,7 +28284,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+6 -10
View File
@@ -1263,11 +1263,7 @@ __DEV__ &&
" " + badgeName + " ",
""
);
"error" === methodName
? error$jscomp$0.apply(console, args)
: "warn" === methodName
? warn.apply(console, args)
: console[methodName].apply(console, args);
console[methodName].apply(console, args);
}
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -26698,11 +26694,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-433068ee-20240711" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-ff89ba73-20240712" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-modern-433068ee-20240711\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26767,12 +26763,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -27368,7 +27364,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17198,14 +17198,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version;
if (
"19.0.0-www-classic-433068ee-20240711" !==
"19.0.0-www-classic-ff89ba73-20240712" !==
isomorphicReactPackageVersion$jscomp$inline_1769
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1769,
"19.0.0-www-classic-433068ee-20240711"
"19.0.0-www-classic-ff89ba73-20240712"
)
);
function flushSyncFromReconciler(fn) {
@@ -17251,7 +17251,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1776 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2220 = {
@@ -17281,7 +17281,7 @@ var internals$jscomp$inline_2220 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17745,4 +17745,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
@@ -16509,14 +16509,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1740 = React.version;
if (
"19.0.0-www-modern-433068ee-20240711" !==
"19.0.0-www-modern-ff89ba73-20240712" !==
isomorphicReactPackageVersion$jscomp$inline_1740
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1740,
"19.0.0-www-modern-433068ee-20240711"
"19.0.0-www-modern-ff89ba73-20240712"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16535,7 +16535,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1742 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2211 = {
@@ -16565,7 +16565,7 @@ var internals$jscomp$inline_2211 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2212 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16936,4 +16936,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
@@ -17969,14 +17969,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1856 = React.version;
if (
"19.0.0-www-classic-433068ee-20240711" !==
"19.0.0-www-classic-ff89ba73-20240712" !==
isomorphicReactPackageVersion$jscomp$inline_1856
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1856,
"19.0.0-www-classic-433068ee-20240711"
"19.0.0-www-classic-ff89ba73-20240712"
)
);
function flushSyncFromReconciler(fn) {
@@ -18022,7 +18022,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1863 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -18066,7 +18066,7 @@ var devToolsConfig$jscomp$inline_1863 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -18517,7 +18517,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17263,14 +17263,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1827 = React.version;
if (
"19.0.0-www-modern-433068ee-20240711" !==
"19.0.0-www-modern-ff89ba73-20240712" !==
isomorphicReactPackageVersion$jscomp$inline_1827
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1827,
"19.0.0-www-modern-433068ee-20240711"
"19.0.0-www-modern-ff89ba73-20240712"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17289,7 +17289,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1829 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17333,7 +17333,7 @@ var devToolsConfig$jscomp$inline_1829 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -17691,7 +17691,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -4319,7 +4319,7 @@ __DEV__ &&
"string" === typeof error[0]
? error.splice(0, 1, "[%s] " + error[0], " " + badgeName + " ")
: error.splice(0, 0, "[%s] ", " " + badgeName + " ");
error$jscomp$2.apply(console, error);
console.error.apply(console, error);
} else console.error(error);
return null;
}
@@ -8846,5 +8846,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
})();
@@ -4311,7 +4311,7 @@ __DEV__ &&
"string" === typeof error[0]
? error.splice(0, 1, "[%s] " + error[0], " " + badgeName + " ")
: error.splice(0, 0, "[%s] ", " " + badgeName + " ");
error$jscomp$2.apply(console, error);
console.error.apply(console, error);
} else console.error(error);
return null;
}
@@ -8671,5 +8671,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
})();
@@ -2682,16 +2682,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
"\x3c/script>"
);
bootstrapScriptContent = idPrefix + "P:";
var JSCompiler_object_inline_segmentPrefix_1652 = idPrefix + "S:";
var JSCompiler_object_inline_segmentPrefix_1646 = idPrefix + "S:";
idPrefix += "B:";
var JSCompiler_object_inline_preconnects_1666 = new Set(),
JSCompiler_object_inline_fontPreloads_1667 = new Set(),
JSCompiler_object_inline_highImagePreloads_1668 = new Set(),
JSCompiler_object_inline_styles_1669 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1670 = new Set(),
JSCompiler_object_inline_scripts_1671 = new Set(),
JSCompiler_object_inline_bulkPreloads_1672 = new Set(),
JSCompiler_object_inline_preloads_1673 = {
var JSCompiler_object_inline_preconnects_1660 = new Set(),
JSCompiler_object_inline_fontPreloads_1661 = new Set(),
JSCompiler_object_inline_highImagePreloads_1662 = new Set(),
JSCompiler_object_inline_styles_1663 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1664 = new Set(),
JSCompiler_object_inline_scripts_1665 = new Set(),
JSCompiler_object_inline_bulkPreloads_1666 = new Set(),
JSCompiler_object_inline_preloads_1667 = {
images: new Map(),
stylesheets: new Map(),
scripts: new Map(),
@@ -2728,7 +2728,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
scriptConfig.moduleScriptResources[href] = null;
scriptConfig = [];
pushLinkImpl(scriptConfig, props);
JSCompiler_object_inline_bootstrapScripts_1670.add(scriptConfig);
JSCompiler_object_inline_bootstrapScripts_1664.add(scriptConfig);
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
"string" === typeof integrity &&
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2769,7 +2769,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
(props.moduleScriptResources[scriptConfig] = null),
(props = []),
pushLinkImpl(props, integrity),
JSCompiler_object_inline_bootstrapScripts_1670.add(props),
JSCompiler_object_inline_bootstrapScripts_1664.add(props),
bootstrapChunks.push(
'<script type="module" src="',
escapeTextForBrowser(i)
@@ -2784,7 +2784,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
bootstrapChunks.push('" async="">\x3c/script>');
return {
placeholderPrefix: bootstrapScriptContent,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1652,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1646,
boundaryPrefix: idPrefix,
startInlineScript: "<script>",
htmlChunks: null,
@@ -2804,14 +2804,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
charsetChunks: [],
viewportChunks: [],
hoistableChunks: [],
preconnects: JSCompiler_object_inline_preconnects_1666,
fontPreloads: JSCompiler_object_inline_fontPreloads_1667,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1668,
styles: JSCompiler_object_inline_styles_1669,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1670,
scripts: JSCompiler_object_inline_scripts_1671,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1672,
preloads: JSCompiler_object_inline_preloads_1673,
preconnects: JSCompiler_object_inline_preconnects_1660,
fontPreloads: JSCompiler_object_inline_fontPreloads_1661,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1662,
styles: JSCompiler_object_inline_styles_1663,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1664,
scripts: JSCompiler_object_inline_scripts_1665,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1666,
preloads: JSCompiler_object_inline_preloads_1667,
stylesToHoist: !1,
generateStaticMarkup: generateStaticMarkup
};
@@ -3972,9 +3972,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
JSCompiler_inline_result,
props
));
for (var propName$33 in defaultProps)
void 0 === JSCompiler_inline_result[propName$33] &&
(JSCompiler_inline_result[propName$33] = defaultProps[propName$33]);
for (var propName$31 in defaultProps)
void 0 === JSCompiler_inline_result[propName$31] &&
(JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
}
defaultProps = getMaskedContext(type, task.legacyContext);
props = type.contextType;
@@ -3984,10 +3984,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
? props._currentValue2
: defaultProps
);
propName$33 = void 0 !== props.state ? props.state : null;
propName$31 = void 0 !== props.state ? props.state : null;
props.updater = classComponentUpdater;
props.props = JSCompiler_inline_result;
props.state = propName$33;
props.state = propName$31;
ref = { queue: [], replace: !1 };
props._reactInternals = ref;
propName = type.contextType;
@@ -3997,12 +3997,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
: defaultProps;
propName = type.getDerivedStateFromProps;
"function" === typeof propName &&
((propName = propName(JSCompiler_inline_result, propName$33)),
(propName$33 =
((propName = propName(JSCompiler_inline_result, propName$31)),
(propName$31 =
null === propName || void 0 === propName
? propName$33
: assign({}, propName$33, propName)),
(props.state = propName$33));
? propName$31
: assign({}, propName$31, propName)),
(props.state = propName$31));
if (
"function" !== typeof type.getDerivedStateFromProps &&
"function" !== typeof props.getSnapshotBeforeUpdate &&
@@ -4010,30 +4010,30 @@ function renderElement(request, task, keyPath, type, props, ref) {
"function" === typeof props.componentWillMount)
)
if (
((propName$33 = props.state),
((propName$31 = props.state),
"function" === typeof props.componentWillMount &&
props.componentWillMount(),
"function" === typeof props.UNSAFE_componentWillMount &&
props.UNSAFE_componentWillMount(),
propName$33 !== props.state &&
propName$31 !== props.state &&
classComponentUpdater.enqueueReplaceState(props, props.state, null),
null !== ref.queue && 0 < ref.queue.length)
) {
propName$33 = ref.queue;
propName$31 = ref.queue;
var oldReplace = ref.replace;
ref.queue = null;
ref.replace = !1;
if (oldReplace && 1 === propName$33.length)
props.state = propName$33[0];
if (oldReplace && 1 === propName$31.length)
props.state = propName$31[0];
else {
ref = oldReplace ? propName$33[0] : props.state;
ref = oldReplace ? propName$31[0] : props.state;
propName = !0;
for (
oldReplace = oldReplace ? 1 : 0;
oldReplace < propName$33.length;
oldReplace < propName$31.length;
oldReplace++
) {
var partial = propName$33[oldReplace];
var partial = propName$31[oldReplace];
partial =
"function" === typeof partial
? partial.call(
@@ -4219,7 +4219,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
ref = createSuspenseBoundary(request, props);
null !== request.trackedPostpones &&
(ref.trackedContentKeyPath = keyPath);
propName$33 = createPendingSegment(
propName$31 = createPendingSegment(
request,
partial.chunks.length,
ref,
@@ -4227,7 +4227,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
!1,
!1
);
partial.children.push(propName$33);
partial.children.push(propName$31);
partial.lastPushedText = !1;
var contentRootSegment = createPendingSegment(
request,
@@ -4256,13 +4256,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
ref.status = 1;
break a;
}
} catch (error$28) {
} catch (error) {
(contentRootSegment.status = 4),
(ref.status = 4),
(JSCompiler_inline_result = getThrownInfo(task.componentStack)),
(defaultProps = logRecoverableError(
request,
error$28,
error,
JSCompiler_inline_result
)),
(ref.errorDigest = defaultProps),
@@ -4296,7 +4296,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
contextKey,
-1,
type,
propName$33,
propName$31,
ref.fallbackState,
props,
JSCompiler_inline_result,
@@ -4531,12 +4531,12 @@ function retryNode(request, task) {
request.completedBoundaries.push(resumedBoundary);
break b;
}
} catch (error$29) {
} catch (error) {
(resumedBoundary.status = 4),
(childNodes = getThrownInfo(task.componentStack)),
(replay = logRecoverableError(
request,
error$29,
error,
childNodes
)),
(resumedBoundary.errorDigest = replay),
@@ -4793,15 +4793,15 @@ function renderNode(request, task, node, childIndex) {
chunkLength = segment.chunks.length;
try {
return renderNodeDestructive(request, task, node, childIndex);
} catch (thrownValue$45) {
} catch (thrownValue$43) {
if (
(resetHooksState(),
(segment.children.length = childrenLength),
(segment.chunks.length = chunkLength),
(node =
thrownValue$45 === SuspenseException
thrownValue$43 === SuspenseException
? getSuspendedThenable()
: thrownValue$45),
: thrownValue$43),
"object" === typeof node &&
null !== node &&
"function" === typeof node.then)
@@ -5004,8 +5004,8 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
}
}
} catch (error$48) {
logRecoverableError(request, error$48, {});
} catch (error) {
logRecoverableError(request, error, {});
}
}
function completeShell(request) {
@@ -5132,12 +5132,12 @@ function performWork(request$jscomp$2) {
request = void 0;
var request$jscomp$1 = request$jscomp$0,
boundary = task.blockedBoundary,
error = x,
error$jscomp$0 = x,
replayNodes = task.replay.nodes,
resumeSlots = task.replay.slots;
request = logRecoverableError(
request$jscomp$1,
error,
error$jscomp$0,
errorInfo
);
abortRemainingReplayNodes(
@@ -5145,7 +5145,7 @@ function performWork(request$jscomp$2) {
boundary,
replayNodes,
resumeSlots,
error,
error$jscomp$0,
request
);
request$jscomp$0.pendingRootTasks--;
@@ -5222,9 +5222,9 @@ function performWork(request$jscomp$2) {
pingedTasks.splice(0, i);
null !== request$jscomp$2.destination &&
flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
} catch (error$49) {
logRecoverableError(request$jscomp$2, error$49, {}),
fatalError(request$jscomp$2, error$49);
} catch (error) {
logRecoverableError(request$jscomp$2, error, {}),
fatalError(request$jscomp$2, error);
} finally {
(currentResumableState = prevResumableState),
(ReactSharedInternals.H = prevDispatcher),
@@ -5619,11 +5619,11 @@ function flushCompletedQueues(request, destination) {
completedBoundaries.splice(0, i);
var partialBoundaries = request.partialBoundaries;
for (i = 0; i < partialBoundaries.length; i++) {
var boundary$51 = partialBoundaries[i];
var boundary$47 = partialBoundaries[i];
a: {
clientRenderedBoundaries = request;
boundary = destination;
var completedSegments = boundary$51.completedSegments;
var completedSegments = boundary$47.completedSegments;
for (
JSCompiler_inline_result = 0;
JSCompiler_inline_result < completedSegments.length;
@@ -5633,7 +5633,7 @@ function flushCompletedQueues(request, destination) {
!flushPartiallyCompletedSegment(
clientRenderedBoundaries,
boundary,
boundary$51,
boundary$47,
completedSegments[JSCompiler_inline_result]
)
) {
@@ -5645,7 +5645,7 @@ function flushCompletedQueues(request, destination) {
completedSegments.splice(0, JSCompiler_inline_result);
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
boundary,
boundary$51.contentState,
boundary$47.contentState,
clientRenderedBoundaries.renderState
);
}
@@ -5702,8 +5702,8 @@ function startFlowing(request, destination) {
request.destination = destination;
try {
flushCompletedQueues(request, destination);
} catch (error$53) {
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
} catch (error) {
logRecoverableError(request, error, {}), fatalError(request, error);
}
}
}
@@ -5711,17 +5711,17 @@ function abort(request, reason) {
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
var error$54 =
var error =
void 0 === reason ? Error(formatProdErrorMessage(432)) : reason;
abortableTasks.forEach(function (task) {
return abortTask(task, request, error$54);
return abortTask(task, request, error);
});
abortableTasks.clear();
}
null !== request.destination &&
flushCompletedQueues(request, request.destination);
} catch (error$55) {
logRecoverableError(request, error$55, {}), fatalError(request, error$55);
} catch (error$49) {
logRecoverableError(request, error$49, {}), fatalError(request, error$49);
}
}
function onError() {}
@@ -5789,4 +5789,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
@@ -2680,16 +2680,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
"\x3c/script>"
);
bootstrapScriptContent = idPrefix + "P:";
var JSCompiler_object_inline_segmentPrefix_1639 = idPrefix + "S:";
var JSCompiler_object_inline_segmentPrefix_1633 = idPrefix + "S:";
idPrefix += "B:";
var JSCompiler_object_inline_preconnects_1653 = new Set(),
JSCompiler_object_inline_fontPreloads_1654 = new Set(),
JSCompiler_object_inline_highImagePreloads_1655 = new Set(),
JSCompiler_object_inline_styles_1656 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1657 = new Set(),
JSCompiler_object_inline_scripts_1658 = new Set(),
JSCompiler_object_inline_bulkPreloads_1659 = new Set(),
JSCompiler_object_inline_preloads_1660 = {
var JSCompiler_object_inline_preconnects_1647 = new Set(),
JSCompiler_object_inline_fontPreloads_1648 = new Set(),
JSCompiler_object_inline_highImagePreloads_1649 = new Set(),
JSCompiler_object_inline_styles_1650 = new Map(),
JSCompiler_object_inline_bootstrapScripts_1651 = new Set(),
JSCompiler_object_inline_scripts_1652 = new Set(),
JSCompiler_object_inline_bulkPreloads_1653 = new Set(),
JSCompiler_object_inline_preloads_1654 = {
images: new Map(),
stylesheets: new Map(),
scripts: new Map(),
@@ -2726,7 +2726,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
scriptConfig.moduleScriptResources[href] = null;
scriptConfig = [];
pushLinkImpl(scriptConfig, props);
JSCompiler_object_inline_bootstrapScripts_1657.add(scriptConfig);
JSCompiler_object_inline_bootstrapScripts_1651.add(scriptConfig);
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
"string" === typeof integrity &&
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2767,7 +2767,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
(props.moduleScriptResources[scriptConfig] = null),
(props = []),
pushLinkImpl(props, integrity),
JSCompiler_object_inline_bootstrapScripts_1657.add(props),
JSCompiler_object_inline_bootstrapScripts_1651.add(props),
bootstrapChunks.push(
'<script type="module" src="',
escapeTextForBrowser(i)
@@ -2782,7 +2782,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
bootstrapChunks.push('" async="">\x3c/script>');
return {
placeholderPrefix: bootstrapScriptContent,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1639,
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1633,
boundaryPrefix: idPrefix,
startInlineScript: "<script>",
htmlChunks: null,
@@ -2802,14 +2802,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
charsetChunks: [],
viewportChunks: [],
hoistableChunks: [],
preconnects: JSCompiler_object_inline_preconnects_1653,
fontPreloads: JSCompiler_object_inline_fontPreloads_1654,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1655,
styles: JSCompiler_object_inline_styles_1656,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1657,
scripts: JSCompiler_object_inline_scripts_1658,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1659,
preloads: JSCompiler_object_inline_preloads_1660,
preconnects: JSCompiler_object_inline_preconnects_1647,
fontPreloads: JSCompiler_object_inline_fontPreloads_1648,
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1649,
styles: JSCompiler_object_inline_styles_1650,
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1651,
scripts: JSCompiler_object_inline_scripts_1652,
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1653,
preloads: JSCompiler_object_inline_preloads_1654,
stylesToHoist: !1,
generateStaticMarkup: generateStaticMarkup
};
@@ -3951,9 +3951,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
var defaultProps = type.defaultProps;
if (defaultProps && disableDefaultPropsExceptForClasses) {
newProps === props && (newProps = assign({}, newProps, props));
for (var propName$33 in defaultProps)
void 0 === newProps[propName$33] &&
(newProps[propName$33] = defaultProps[propName$33]);
for (var propName$31 in defaultProps)
void 0 === newProps[propName$31] &&
(newProps[propName$31] = defaultProps[propName$31]);
}
props = newProps;
newProps = emptyContextObject;
@@ -3968,18 +3968,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
newProps.state = ref;
defaultProps = { queue: [], replace: !1 };
newProps._reactInternals = defaultProps;
propName$33 = type.contextType;
propName$31 = type.contextType;
newProps.context =
"object" === typeof propName$33 && null !== propName$33
? propName$33._currentValue2
"object" === typeof propName$31 && null !== propName$31
? propName$31._currentValue2
: emptyContextObject;
propName$33 = type.getDerivedStateFromProps;
"function" === typeof propName$33 &&
((propName$33 = propName$33(props, ref)),
propName$31 = type.getDerivedStateFromProps;
"function" === typeof propName$31 &&
((propName$31 = propName$31(props, ref)),
(ref =
null === propName$33 || void 0 === propName$33
null === propName$31 || void 0 === propName$31
? ref
: assign({}, ref, propName$33)),
: assign({}, ref, propName$31)),
(newProps.state = ref));
if (
"function" !== typeof type.getDerivedStateFromProps &&
@@ -4003,21 +4003,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
)
if (
((type = defaultProps.queue),
(propName$33 = defaultProps.replace),
(propName$31 = defaultProps.replace),
(defaultProps.queue = null),
(defaultProps.replace = !1),
propName$33 && 1 === type.length)
propName$31 && 1 === type.length)
)
newProps.state = type[0];
else {
defaultProps = propName$33 ? type[0] : newProps.state;
defaultProps = propName$31 ? type[0] : newProps.state;
ref = !0;
for (
propName$33 = propName$33 ? 1 : 0;
propName$33 < type.length;
propName$33++
propName$31 = propName$31 ? 1 : 0;
propName$31 < type.length;
propName$31++
)
(propName = type[propName$33]),
(propName = type[propName$31]),
(propName =
"function" === typeof propName
? propName.call(newProps, defaultProps, props, void 0)
@@ -4070,12 +4070,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
);
newProps.lastPushedText = !1;
defaultProps = task.formatContext;
propName$33 = task.keyPath;
propName$31 = task.keyPath;
task.formatContext = getChildFormatContext(defaultProps, type, props);
task.keyPath = keyPath;
renderNode(request, task, ref, -1);
task.formatContext = defaultProps;
task.keyPath = propName$33;
task.keyPath = propName$31;
a: {
task = newProps.chunks;
request = request.resumableState;
@@ -4164,13 +4164,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
ref = props.fallback;
var content = props.children;
props = new Set();
propName$33 = createSuspenseBoundary(request, props);
propName$31 = createSuspenseBoundary(request, props);
null !== request.trackedPostpones &&
(propName$33.trackedContentKeyPath = keyPath);
(propName$31.trackedContentKeyPath = keyPath);
propName = createPendingSegment(
request,
parentSegment.chunks.length,
propName$33,
propName$31,
task.formatContext,
!1,
!1
@@ -4186,8 +4186,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
!1
);
contentRootSegment.parentFlushed = !0;
task.blockedBoundary = propName$33;
task.hoistableState = propName$33.contentState;
task.blockedBoundary = propName$31;
task.hoistableState = propName$31.contentState;
task.blockedSegment = contentRootSegment;
task.keyPath = keyPath;
try {
@@ -4198,19 +4198,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
contentRootSegment.textEmbedded &&
contentRootSegment.chunks.push("\x3c!-- --\x3e")),
(contentRootSegment.status = 1),
queueCompletedSegment(propName$33, contentRootSegment),
0 === propName$33.pendingTasks && 0 === propName$33.status)
queueCompletedSegment(propName$31, contentRootSegment),
0 === propName$31.pendingTasks && 0 === propName$31.status)
) {
propName$33.status = 1;
propName$31.status = 1;
break a;
}
} catch (error$28) {
} catch (error) {
(contentRootSegment.status = 4),
(propName$33.status = 4),
(propName$31.status = 4),
(newProps = getThrownInfo(task.componentStack)),
(defaultProps = logRecoverableError(request, error$28, newProps)),
(propName$33.errorDigest = defaultProps),
untrackBoundary(request, propName$33);
(defaultProps = logRecoverableError(request, error, newProps)),
(propName$31.errorDigest = defaultProps),
untrackBoundary(request, propName$31);
} finally {
(task.blockedBoundary = type),
(task.hoistableState = parentHoistableState),
@@ -4222,9 +4222,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
null !== defaultProps &&
((prevKeyPath = [newProps[1], newProps[2], [], null]),
defaultProps.workingMap.set(newProps, prevKeyPath),
5 === propName$33.status
5 === propName$31.status
? (defaultProps.workingMap.get(keyPath)[4] = prevKeyPath)
: (propName$33.trackedFallbackNode = prevKeyPath));
: (propName$31.trackedFallbackNode = prevKeyPath));
task = createRenderTask(
request,
null,
@@ -4232,7 +4232,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
-1,
type,
propName,
propName$33.fallbackState,
propName$31.fallbackState,
props,
newProps,
task.formatContext,
@@ -4465,12 +4465,12 @@ function retryNode(request, task) {
request.completedBoundaries.push(resumedBoundary);
break b;
}
} catch (error$29) {
} catch (error) {
(resumedBoundary.status = 4),
(childNodes = getThrownInfo(task.componentStack)),
(replay = logRecoverableError(
request,
error$29,
error,
childNodes
)),
(resumedBoundary.errorDigest = replay),
@@ -4723,15 +4723,15 @@ function renderNode(request, task, node, childIndex) {
chunkLength = segment.chunks.length;
try {
return renderNodeDestructive(request, task, node, childIndex);
} catch (thrownValue$45) {
} catch (thrownValue$43) {
if (
(resetHooksState(),
(segment.children.length = childrenLength),
(segment.chunks.length = chunkLength),
(node =
thrownValue$45 === SuspenseException
thrownValue$43 === SuspenseException
? getSuspendedThenable()
: thrownValue$45),
: thrownValue$43),
"object" === typeof node &&
null !== node &&
"function" === typeof node.then)
@@ -4931,8 +4931,8 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
}
}
} catch (error$48) {
logRecoverableError(request, error$48, {});
} catch (error) {
logRecoverableError(request, error, {});
}
}
function completeShell(request) {
@@ -5059,12 +5059,12 @@ function performWork(request$jscomp$2) {
request = void 0;
var request$jscomp$1 = request$jscomp$0,
boundary = task.blockedBoundary,
error = x,
error$jscomp$0 = x,
replayNodes = task.replay.nodes,
resumeSlots = task.replay.slots;
request = logRecoverableError(
request$jscomp$1,
error,
error$jscomp$0,
errorInfo
);
abortRemainingReplayNodes(
@@ -5072,7 +5072,7 @@ function performWork(request$jscomp$2) {
boundary,
replayNodes,
resumeSlots,
error,
error$jscomp$0,
request
);
request$jscomp$0.pendingRootTasks--;
@@ -5149,9 +5149,9 @@ function performWork(request$jscomp$2) {
pingedTasks.splice(0, i);
null !== request$jscomp$2.destination &&
flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
} catch (error$49) {
logRecoverableError(request$jscomp$2, error$49, {}),
fatalError(request$jscomp$2, error$49);
} catch (error) {
logRecoverableError(request$jscomp$2, error, {}),
fatalError(request$jscomp$2, error);
} finally {
(currentResumableState = prevResumableState),
(ReactSharedInternals.H = prevDispatcher),
@@ -5546,11 +5546,11 @@ function flushCompletedQueues(request, destination) {
completedBoundaries.splice(0, i);
var partialBoundaries = request.partialBoundaries;
for (i = 0; i < partialBoundaries.length; i++) {
var boundary$51 = partialBoundaries[i];
var boundary$47 = partialBoundaries[i];
a: {
clientRenderedBoundaries = request;
boundary = destination;
var completedSegments = boundary$51.completedSegments;
var completedSegments = boundary$47.completedSegments;
for (
JSCompiler_inline_result = 0;
JSCompiler_inline_result < completedSegments.length;
@@ -5560,7 +5560,7 @@ function flushCompletedQueues(request, destination) {
!flushPartiallyCompletedSegment(
clientRenderedBoundaries,
boundary,
boundary$51,
boundary$47,
completedSegments[JSCompiler_inline_result]
)
) {
@@ -5572,7 +5572,7 @@ function flushCompletedQueues(request, destination) {
completedSegments.splice(0, JSCompiler_inline_result);
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
boundary,
boundary$51.contentState,
boundary$47.contentState,
clientRenderedBoundaries.renderState
);
}
@@ -5629,8 +5629,8 @@ function startFlowing(request, destination) {
request.destination = destination;
try {
flushCompletedQueues(request, destination);
} catch (error$53) {
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
} catch (error) {
logRecoverableError(request, error, {}), fatalError(request, error);
}
}
}
@@ -5638,17 +5638,17 @@ function abort(request, reason) {
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
var error$54 =
var error =
void 0 === reason ? Error(formatProdErrorMessage(432)) : reason;
abortableTasks.forEach(function (task) {
return abortTask(task, request, error$54);
return abortTask(task, request, error);
});
abortableTasks.clear();
}
null !== request.destination &&
flushCompletedQueues(request, request.destination);
} catch (error$55) {
logRecoverableError(request, error$55, {}), fatalError(request, error$55);
} catch (error$49) {
logRecoverableError(request, error$49, {}), fatalError(request, error$49);
}
}
function onError() {}
@@ -5716,4 +5716,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
@@ -4120,7 +4120,7 @@ __DEV__ &&
" " + badgeName + " ",
""
);
error$jscomp$2.apply(console, error);
console.error.apply(console, error);
} else console.error(error);
return null;
}
@@ -3833,9 +3833,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
var defaultProps = type.defaultProps;
if (defaultProps && disableDefaultPropsExceptForClasses) {
newProps === props && (newProps = assign({}, newProps, props));
for (var propName$33 in defaultProps)
void 0 === newProps[propName$33] &&
(newProps[propName$33] = defaultProps[propName$33]);
for (var propName$31 in defaultProps)
void 0 === newProps[propName$31] &&
(newProps[propName$31] = defaultProps[propName$31]);
}
props = newProps;
newProps = emptyContextObject;
@@ -3850,18 +3850,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
newProps.state = ref;
defaultProps = { queue: [], replace: !1 };
newProps._reactInternals = defaultProps;
propName$33 = type.contextType;
propName$31 = type.contextType;
newProps.context =
"object" === typeof propName$33 && null !== propName$33
? propName$33._currentValue
"object" === typeof propName$31 && null !== propName$31
? propName$31._currentValue
: emptyContextObject;
propName$33 = type.getDerivedStateFromProps;
"function" === typeof propName$33 &&
((propName$33 = propName$33(props, ref)),
propName$31 = type.getDerivedStateFromProps;
"function" === typeof propName$31 &&
((propName$31 = propName$31(props, ref)),
(ref =
null === propName$33 || void 0 === propName$33
null === propName$31 || void 0 === propName$31
? ref
: assign({}, ref, propName$33)),
: assign({}, ref, propName$31)),
(newProps.state = ref));
if (
"function" !== typeof type.getDerivedStateFromProps &&
@@ -3885,21 +3885,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
)
if (
((type = defaultProps.queue),
(propName$33 = defaultProps.replace),
(propName$31 = defaultProps.replace),
(defaultProps.queue = null),
(defaultProps.replace = !1),
propName$33 && 1 === type.length)
propName$31 && 1 === type.length)
)
newProps.state = type[0];
else {
defaultProps = propName$33 ? type[0] : newProps.state;
defaultProps = propName$31 ? type[0] : newProps.state;
ref = !0;
for (
propName$33 = propName$33 ? 1 : 0;
propName$33 < type.length;
propName$33++
propName$31 = propName$31 ? 1 : 0;
propName$31 < type.length;
propName$31++
)
(propName = type[propName$33]),
(propName = type[propName$31]),
(propName =
"function" === typeof propName
? propName.call(newProps, defaultProps, props, void 0)
@@ -3952,12 +3952,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
);
newProps.lastPushedText = !1;
defaultProps = task.formatContext;
propName$33 = task.keyPath;
propName$31 = task.keyPath;
task.formatContext = getChildFormatContext(defaultProps, type, props);
task.keyPath = keyPath;
renderNode(request, task, ref, -1);
task.formatContext = defaultProps;
task.keyPath = propName$33;
task.keyPath = propName$31;
a: {
task = newProps.chunks;
request = request.resumableState;
@@ -4046,13 +4046,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
ref = props.fallback;
var content = props.children;
props = new Set();
propName$33 = createSuspenseBoundary(request, props);
propName$31 = createSuspenseBoundary(request, props);
null !== request.trackedPostpones &&
(propName$33.trackedContentKeyPath = keyPath);
(propName$31.trackedContentKeyPath = keyPath);
propName = createPendingSegment(
request,
parentSegment.chunks.length,
propName$33,
propName$31,
task.formatContext,
!1,
!1
@@ -4068,8 +4068,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
!1
);
contentRootSegment.parentFlushed = !0;
task.blockedBoundary = propName$33;
task.hoistableState = propName$33.contentState;
task.blockedBoundary = propName$31;
task.hoistableState = propName$31.contentState;
task.blockedSegment = contentRootSegment;
task.keyPath = keyPath;
try {
@@ -4079,19 +4079,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
contentRootSegment.textEmbedded &&
contentRootSegment.chunks.push("\x3c!-- --\x3e"),
(contentRootSegment.status = 1),
queueCompletedSegment(propName$33, contentRootSegment),
0 === propName$33.pendingTasks && 0 === propName$33.status)
queueCompletedSegment(propName$31, contentRootSegment),
0 === propName$31.pendingTasks && 0 === propName$31.status)
) {
propName$33.status = 1;
propName$31.status = 1;
break a;
}
} catch (error$28) {
} catch (error) {
(contentRootSegment.status = 4),
(propName$33.status = 4),
(propName$31.status = 4),
(newProps = getThrownInfo(task.componentStack)),
(defaultProps = logRecoverableError(request, error$28, newProps)),
(propName$33.errorDigest = defaultProps),
untrackBoundary(request, propName$33);
(defaultProps = logRecoverableError(request, error, newProps)),
(propName$31.errorDigest = defaultProps),
untrackBoundary(request, propName$31);
} finally {
(task.blockedBoundary = type),
(task.hoistableState = parentHoistableState),
@@ -4103,9 +4103,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
null !== defaultProps &&
((prevKeyPath = [newProps[1], newProps[2], [], null]),
defaultProps.workingMap.set(newProps, prevKeyPath),
5 === propName$33.status
5 === propName$31.status
? (defaultProps.workingMap.get(keyPath)[4] = prevKeyPath)
: (propName$33.trackedFallbackNode = prevKeyPath));
: (propName$31.trackedFallbackNode = prevKeyPath));
task = createRenderTask(
request,
null,
@@ -4113,7 +4113,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
-1,
type,
propName,
propName$33.fallbackState,
propName$31.fallbackState,
props,
newProps,
task.formatContext,
@@ -4353,12 +4353,12 @@ function retryNode(request, task) {
request.completedBoundaries.push(resumedBoundary);
break b;
}
} catch (error$29) {
} catch (error) {
(resumedBoundary.status = 4),
(childNodes = getThrownInfo(task.componentStack)),
(replay = logRecoverableError(
request,
error$29,
error,
childNodes
)),
(resumedBoundary.errorDigest = replay),
@@ -4614,15 +4614,15 @@ function renderNode(request, task, node, childIndex) {
chunkLength = segment.chunks.length;
try {
return renderNodeDestructive(request, task, node, childIndex);
} catch (thrownValue$45) {
} catch (thrownValue$43) {
if (
(resetHooksState(),
(segment.children.length = childrenLength),
(segment.chunks.length = chunkLength),
(node =
thrownValue$45 === SuspenseException
thrownValue$43 === SuspenseException
? getSuspendedThenable()
: thrownValue$45),
: thrownValue$43),
"object" === typeof node &&
null !== node &&
"function" === typeof node.then)
@@ -4825,8 +4825,8 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
}
}
} catch (error$48) {
logRecoverableError(request, error$48, {});
} catch (error) {
logRecoverableError(request, error, {});
}
}
function completeShell(request) {
@@ -5278,11 +5278,11 @@ function flushCompletedQueues(request, destination) {
completedBoundaries.splice(0, i);
var partialBoundaries = request.partialBoundaries;
for (i = 0; i < partialBoundaries.length; i++) {
var boundary$51 = partialBoundaries[i];
var boundary$47 = partialBoundaries[i];
a: {
clientRenderedBoundaries = request;
boundary = destination;
var completedSegments = boundary$51.completedSegments;
var completedSegments = boundary$47.completedSegments;
for (
JSCompiler_inline_result = 0;
JSCompiler_inline_result < completedSegments.length;
@@ -5292,7 +5292,7 @@ function flushCompletedQueues(request, destination) {
!flushPartiallyCompletedSegment(
clientRenderedBoundaries,
boundary,
boundary$51,
boundary$47,
completedSegments[JSCompiler_inline_result]
)
) {
@@ -5304,7 +5304,7 @@ function flushCompletedQueues(request, destination) {
completedSegments.splice(0, JSCompiler_inline_result);
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
boundary,
boundary$51.contentState,
boundary$47.contentState,
clientRenderedBoundaries.renderState
);
}
@@ -5349,19 +5349,19 @@ function abort(request, reason) {
try {
var abortableTasks = request.abortableTasks;
if (0 < abortableTasks.size) {
var error$54 =
var error =
void 0 === reason
? Error("The render was aborted by the server without a reason.")
: reason;
abortableTasks.forEach(function (task) {
return abortTask(task, request, error$54);
return abortTask(task, request, error);
});
abortableTasks.clear();
}
null !== request.destination &&
flushCompletedQueues(request, request.destination);
} catch (error$55) {
logRecoverableError(request, error$55, {}), fatalError(request, error$55);
} catch (error$49) {
logRecoverableError(request, error$49, {}), fatalError(request, error$49);
}
}
exports.abortStream = function (stream, reason) {
@@ -5533,8 +5533,8 @@ exports.renderNextChunk = function (stream) {
pingedTasks.splice(0, i);
null !== request.destination &&
flushCompletedQueues(request, request.destination);
} catch (error$49) {
logRecoverableError(request, error$49, {}), fatalError(request, error$49);
} catch (error) {
logRecoverableError(request, error, {}), fatalError(request, error);
} finally {
(currentResumableState = prevResumableState),
(ReactSharedInternals.H = prevDispatcher),
@@ -5553,8 +5553,8 @@ exports.renderNextChunk = function (stream) {
request.destination = stream;
try {
flushCompletedQueues(request, stream);
} catch (error$53) {
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
} catch (error) {
logRecoverableError(request, error, {}), fatalError(request, error);
}
}
if (stream.fatal) throw stream.error;
@@ -1279,11 +1279,7 @@ __DEV__ &&
" " + badgeName + " ",
""
);
"error" === methodName
? error$jscomp$0.apply(console, args)
: "warn" === methodName
? warn.apply(console, args)
: console[methodName].apply(console, args);
console[methodName].apply(console, args);
}
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -27904,11 +27900,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-433068ee-20240711" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-ff89ba73-20240712" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-classic-433068ee-20240711\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27974,12 +27970,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -28788,5 +28784,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
})();
@@ -1263,11 +1263,7 @@ __DEV__ &&
" " + badgeName + " ",
""
);
"error" === methodName
? error$jscomp$0.apply(console, args)
: "warn" === methodName
? warn.apply(console, args)
: console[methodName].apply(console, args);
console[methodName].apply(console, args);
}
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -27032,11 +27028,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-433068ee-20240711" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-ff89ba73-20240712" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-modern-433068ee-20240711\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-ff89ba73-20240712\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27101,12 +27097,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -27868,5 +27864,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
})();
@@ -17527,14 +17527,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version;
if (
"19.0.0-www-classic-433068ee-20240711" !==
"19.0.0-www-classic-ff89ba73-20240712" !==
isomorphicReactPackageVersion$jscomp$inline_1799
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1799,
"19.0.0-www-classic-433068ee-20240711"
"19.0.0-www-classic-ff89ba73-20240712"
)
);
function flushSyncFromReconciler(fn) {
@@ -17580,7 +17580,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1806 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2255 = {
@@ -17610,7 +17610,7 @@ var internals$jscomp$inline_2255 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2256 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18225,4 +18225,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-433068ee-20240711";
exports.version = "19.0.0-www-classic-ff89ba73-20240712";
@@ -16897,14 +16897,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1770 = React.version;
if (
"19.0.0-www-modern-433068ee-20240711" !==
"19.0.0-www-modern-ff89ba73-20240712" !==
isomorphicReactPackageVersion$jscomp$inline_1770
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1770,
"19.0.0-www-modern-433068ee-20240711"
"19.0.0-www-modern-ff89ba73-20240712"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16923,7 +16923,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1772 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2246 = {
@@ -16953,7 +16953,7 @@ var internals$jscomp$inline_2246 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2247 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17475,4 +17475,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-433068ee-20240711";
exports.version = "19.0.0-www-modern-ff89ba73-20240712";
@@ -19115,7 +19115,7 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
});
};
exports.isAlreadyRendering = function () {
@@ -18475,7 +18475,7 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
});
};
exports.isAlreadyRendering = function () {
@@ -12740,7 +12740,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -12228,7 +12228,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -1079,11 +1079,7 @@ __DEV__ &&
"string" === typeof args[offset]
? args.splice(offset, 1, "[%s] " + args[offset], " " + badgeName + " ")
: args.splice(offset, 0, "[%s] ", " " + badgeName + " ");
"error" === methodName
? error$jscomp$0.apply(console, args)
: "warn" === methodName
? warn.apply(console, args)
: console[methodName].apply(console, args);
console[methodName].apply(console, args);
}
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -14814,14 +14810,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-433068ee-20240711"
reconcilerVersion: "19.0.0-www-classic-ff89ba73-20240712"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-www-classic-433068ee-20240711",
version: "19.0.0-www-classic-ff89ba73-20240712",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
@@ -1079,11 +1079,7 @@ __DEV__ &&
"string" === typeof args[offset]
? args.splice(offset, 1, "[%s] " + args[offset], " " + badgeName + " ")
: args.splice(offset, 0, "[%s] ", " " + badgeName + " ");
"error" === methodName
? error$jscomp$0.apply(console, args)
: "warn" === methodName
? warn.apply(console, args)
: console[methodName].apply(console, args);
console[methodName].apply(console, args);
}
function createCursor(defaultValue) {
return { current: defaultValue };
@@ -14814,14 +14810,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-433068ee-20240711"
reconcilerVersion: "19.0.0-www-modern-ff89ba73-20240712"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-www-modern-433068ee-20240711",
version: "19.0.0-www-modern-ff89ba73-20240712",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-classic-433068ee-20240711
19.0.0-www-classic-ff89ba73-20240712
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-modern-433068ee-20240711
19.0.0-www-modern-ff89ba73-20240712