From 7783a6e8b39a155b4e3d90efd630a48aacd9b52b Mon Sep 17 00:00:00 2001 From: vercel-release-bot Date: Mon, 28 Oct 2024 16:28:04 +0000 Subject: [PATCH] ncc-compiled --- .../cjs/react-dom-client.development.js | 384 +++++------ .../cjs/react-dom-client.production.js | 633 +++++++++-------- .../cjs/react-dom-profiling.development.js | 384 +++++------ .../cjs/react-dom-profiling.profiling.js | 635 +++++++++-------- ...t-dom-server-legacy.browser.development.js | 2 +- ...ct-dom-server-legacy.browser.production.js | 2 +- ...eact-dom-server-legacy.node.development.js | 2 +- ...react-dom-server-legacy.node.production.js | 2 +- .../react-dom-server.browser.development.js | 6 +- .../react-dom-server.browser.production.js | 6 +- .../cjs/react-dom-server.bun.production.js | 6 +- .../cjs/react-dom-server.edge.development.js | 6 +- .../cjs/react-dom-server.edge.production.js | 6 +- .../cjs/react-dom-server.node.development.js | 6 +- .../cjs/react-dom-server.node.production.js | 6 +- .../react-dom-unstable_testing.development.js | 384 +++++------ .../react-dom-unstable_testing.production.js | 633 +++++++++-------- .../cjs/react-dom.development.js | 2 +- .../cjs/react-dom.production.js | 2 +- .../cjs/react-dom.react-server.development.js | 2 +- .../cjs/react-dom.react-server.production.js | 2 +- .../react-dom-experimental/package.json | 4 +- .../cjs/react-dom-client.development.js | 382 +++++------ .../cjs/react-dom-client.production.js | 633 +++++++++-------- .../cjs/react-dom-profiling.development.js | 382 +++++------ .../cjs/react-dom-profiling.profiling.js | 640 +++++++++--------- ...t-dom-server-legacy.browser.development.js | 2 +- ...ct-dom-server-legacy.browser.production.js | 2 +- ...eact-dom-server-legacy.node.development.js | 2 +- ...react-dom-server-legacy.node.production.js | 2 +- .../react-dom-server.browser.development.js | 6 +- .../react-dom-server.browser.production.js | 6 +- .../cjs/react-dom-server.bun.production.js | 6 +- .../cjs/react-dom-server.edge.development.js | 6 +- .../cjs/react-dom-server.edge.production.js | 6 +- .../cjs/react-dom-server.node.development.js | 6 +- .../cjs/react-dom-server.node.production.js | 6 +- .../react-dom/cjs/react-dom.development.js | 2 +- .../react-dom/cjs/react-dom.production.js | 2 +- .../cjs/react-dom.react-server.development.js | 2 +- .../cjs/react-dom.react-server.production.js | 2 +- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- .../next/src/compiled/react-is/package.json | 2 +- ...om-turbopack-client.browser.development.js | 4 +- .../package.json | 4 +- ...om-turbopack-client.browser.development.js | 4 +- .../react-server-dom-turbopack/package.json | 4 +- ...-dom-webpack-client.browser.development.js | 4 +- .../package.json | 4 +- ...-dom-webpack-client.browser.development.js | 4 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../compiled/react/cjs/react.production.js | 2 +- .../cjs/react.react-server.development.js | 2 +- .../cjs/react.react-server.production.js | 2 +- .../next/src/compiled/unistore/unistore.js | 2 +- 60 files changed, 2591 insertions(+), 2675 deletions(-) diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js index 944c3a3537117..ce34c0a049325 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js @@ -1060,14 +1060,6 @@ ? wipLanes : nextLanes; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); - } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -14645,181 +14637,179 @@ function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes, !1); - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( + var exitStatus = (forceSync = + !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + var renderWasConcurrent = forceSync; + do { + if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes); + renderWasConcurrent = !1; + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( + exitStatus, + errorRetryLanes$jscomp$0 + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( exitStatus, errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( - exitStatus, - errorRetryLanes$jscomp$0, - !1 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; + } + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + exitStatus = errorRetryLanes$jscomp$0; } - exitStatus = errorRetryLanes$jscomp$0; + renderWasConcurrent = !1; + if (exitStatus !== RootErrored) continue; } - if (exitStatus !== RootErrored) continue; } - } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); - break; - } - a: { - shouldTimeSlice = root; - renderWasConcurrent = now$1(); - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + renderWasConcurrent = root; + errorRetryLanes = now$1(); + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + renderWasConcurrent, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + errorRetryLanes + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { markRootSuspended( - shouldTimeSlice, + renderWasConcurrent, lanes, workInProgressDeferredLane ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + errorRetryLanes + ), + exitStatus + ); break a; } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - shouldTimeSlice, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - renderWasConcurrent - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - shouldTimeSlice, + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + errorRetryLanes ); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - renderWasConcurrent - ), - exitStatus - ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - renderWasConcurrent - ); } } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -15052,9 +15042,8 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -15175,38 +15164,37 @@ prepareFreshStack(root, lanes); } lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - memoizedUpdaters = RootDidNotComplete; + workInProgressRootExitStatus = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - case SuspendedOnDeprecatedThrowPromise: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = NotSuspended), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop( + root, + memoizedUpdaters, + thrownValue, + reason + ); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -15217,11 +15205,14 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + if (null !== workInProgress) + throw Error( + "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." + ); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -15245,7 +15236,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } a: do try { if ( @@ -16150,8 +16141,7 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 === (nextLanes & 3) || - checkIfRootIsPrerendering(root, nextLanes) || + 0 !== (nextLanes & 3) && ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -16242,6 +16232,8 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: + suspendedLanes = ImmediatePriority; + break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24912,11 +24904,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24953,11 +24945,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023" + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25099,7 +25091,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js index 8bf97d1eed82f..67aa587b55016 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js @@ -624,14 +624,6 @@ function getNextLanes(root, wipLanes) { ? wipLanes : nextLanes; } -function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); -} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1967,19 +1959,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$281; + var JSCompiler_inline_result$jscomp$280; if (canUseDOM) { - var isSupported$jscomp$inline_415 = "oninput" in document; - if (!isSupported$jscomp$inline_415) { - var element$jscomp$inline_416 = document.createElement("div"); - element$jscomp$inline_416.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_415 = - "function" === typeof element$jscomp$inline_416.oninput; + var isSupported$jscomp$inline_414 = "oninput" in document; + if (!isSupported$jscomp$inline_414) { + var element$jscomp$inline_415 = document.createElement("div"); + element$jscomp$inline_415.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_414 = + "function" === typeof element$jscomp$inline_415.oninput; } - JSCompiler_inline_result$jscomp$281 = isSupported$jscomp$inline_415; - } else JSCompiler_inline_result$jscomp$281 = !1; + JSCompiler_inline_result$jscomp$280 = isSupported$jscomp$inline_414; + } else JSCompiler_inline_result$jscomp$280 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$281 && + JSCompiler_inline_result$jscomp$280 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -10401,152 +10393,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes, !1); - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else - (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), + var exitStatus = (forceSync = + !forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes); + if (0 !== exitStatus) { + var renderWasConcurrent = forceSync; + do { + if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes); + renderWasConcurrent = !1; + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result, - !1 - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; + root$jscomp$0.pendingLanes & -536870913), + (JSCompiler_inline_result = + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= + 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; + } + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + exitStatus = JSCompiler_inline_result; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = !1; + if (2 !== exitStatus) continue; } - if (2 !== exitStatus) continue; } - } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); - break; - } - a: { - shouldTimeSlice = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - shouldTimeSlice, - lanes, - workInProgressDeferredLane - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), - 10 < renderWasConcurrent) - ) { - markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + a: { + renderWasConcurrent = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((exitStatus = globalMostRecentFallbackTime + 300 - now()), + 10 < exitStatus) + ) { + markRootSuspended( + renderWasConcurrent, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - renderWasConcurrent + workInProgressDeferredLane + ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + exitStatus + ); + break a; + } + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 - ); } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10703,9 +10701,8 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -10812,7 +10809,6 @@ function renderRootSync(root, lanes) { if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = null), prepareFreshStack(root, lanes); lanes = !1; - var exitStatus = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10821,29 +10817,24 @@ function renderRootSync(root, lanes) { switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - exitStatus = 6; + workInProgressRootExitStatus = 6; break a; case 3: case 2: - case 6: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); - exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$162) { - handleThrow(root, thrownValue$162); + } catch (thrownValue$161) { + handleThrow(root, thrownValue$161); } while (1); lanes && root.shellSuspendCounter++; @@ -10851,11 +10842,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return exitStatus; + if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -10865,11 +10856,10 @@ function renderRootConcurrent(root, lanes) { executionContext |= 2; var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); - workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes - ? ((workInProgressTransitions = null), + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) + (workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes)) - : checkIfRootIsPrerendering(root, lanes); + prepareFreshStack(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10953,8 +10943,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$164) { - handleThrow(root, thrownValue$164); + } catch (thrownValue$163) { + handleThrow(root, thrownValue$163); } while (1); resetContextDependencies(); @@ -11235,7 +11225,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$168 = rootWithPendingPassiveEffects, + var root$167 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11274,7 +11264,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$168, remainingLanes); + releaseRootPooledCache(root$167, remainingLanes); } } return !1; @@ -11417,14 +11407,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$170 = firstScheduledRoot; null !== root$170; ) { + for (var root$169 = firstScheduledRoot; null !== root$169; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$170.pendingLanes; + var pendingLanes = root$169.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$170.suspendedLanes, - pingedLanes = root$170.pingedLanes; + var suspendedLanes = root$169.suspendedLanes, + pingedLanes = root$169.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11438,18 +11428,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$169, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$170, - root$170 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$169, + root$169 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$170, JSCompiler_inline_result) || + 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); - root$170 = root$170.next; + performSyncWorkOnRoot(root$169, JSCompiler_inline_result)); + root$169 = root$169.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11532,6 +11521,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: + suspendedLanes = ImmediatePriority; + break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -11677,20 +11668,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1423 = 0; - i$jscomp$inline_1423 < simpleEventPluginEvents.length; - i$jscomp$inline_1423++ + var i$jscomp$inline_1422 = 0; + i$jscomp$inline_1422 < simpleEventPluginEvents.length; + i$jscomp$inline_1422++ ) { - var eventName$jscomp$inline_1424 = - simpleEventPluginEvents[i$jscomp$inline_1423], - domEventName$jscomp$inline_1425 = - eventName$jscomp$inline_1424.toLowerCase(), - capitalizedEvent$jscomp$inline_1426 = - eventName$jscomp$inline_1424[0].toUpperCase() + - eventName$jscomp$inline_1424.slice(1); + var eventName$jscomp$inline_1423 = + simpleEventPluginEvents[i$jscomp$inline_1422], + domEventName$jscomp$inline_1424 = + eventName$jscomp$inline_1423.toLowerCase(), + capitalizedEvent$jscomp$inline_1425 = + eventName$jscomp$inline_1423[0].toUpperCase() + + eventName$jscomp$inline_1423.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1425, - "on" + capitalizedEvent$jscomp$inline_1426 + domEventName$jscomp$inline_1424, + "on" + capitalizedEvent$jscomp$inline_1425 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -12873,34 +12864,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$184 = props[hasSrc]; - if (null != propValue$184) + var propValue$183 = props[hasSrc]; + if (null != propValue$183) switch (hasSrc) { case "name": - hasSrcSet = propValue$184; + hasSrcSet = propValue$183; break; case "type": - propValue = propValue$184; + propValue = propValue$183; break; case "checked": - checked = propValue$184; + checked = propValue$183; break; case "defaultChecked": - defaultChecked = propValue$184; + defaultChecked = propValue$183; break; case "value": - propKey = propValue$184; + propKey = propValue$183; break; case "defaultValue": - defaultValue = propValue$184; + defaultValue = propValue$183; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$184) + if (null != propValue$183) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$184, props, null); + setProp(domElement, tag, hasSrc, propValue$183, props, null); } } initInput( @@ -13037,14 +13028,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$184 in props) - props.hasOwnProperty(propValue$184) && - ((hasSrc = props[propValue$184]), + for (propValue$183 in props) + props.hasOwnProperty(propValue$183) && + ((hasSrc = props[propValue$183]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$184, + propValue$183, hasSrc, props, void 0 @@ -13092,14 +13083,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$201 in nextProps) { - var propKey = nextProps[propKey$201]; - lastProp = lastProps[propKey$201]; + for (var propKey$200 in nextProps) { + var propKey = nextProps[propKey$200]; + lastProp = lastProps[propKey$200]; if ( - nextProps.hasOwnProperty(propKey$201) && + nextProps.hasOwnProperty(propKey$200) && (null != propKey || null != lastProp) ) - switch (propKey$201) { + switch (propKey$200) { case "type": type = propKey; break; @@ -13128,7 +13119,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$201, + propKey$200, propKey, nextProps, lastProp @@ -13147,7 +13138,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$201 = null; + propKey = value = defaultValue = propKey$200 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13178,7 +13169,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$201 = type; + propKey$200 = type; break; case "defaultValue": defaultValue = type; @@ -13199,15 +13190,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$201 - ? updateOptions(domElement, !!lastProps, propKey$201, !1) + null != propKey$200 + ? updateOptions(domElement, !!lastProps, propKey$200, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$201 = null; + propKey = propKey$200 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13231,7 +13222,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$201 = name; + propKey$200 = name; break; case "defaultValue": propKey = name; @@ -13245,17 +13236,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$201, propKey); + updateTextarea(domElement, propKey$200, propKey); return; case "option": - for (var propKey$217 in lastProps) + for (var propKey$216 in lastProps) if ( - ((propKey$201 = lastProps[propKey$217]), - lastProps.hasOwnProperty(propKey$217) && - null != propKey$201 && - !nextProps.hasOwnProperty(propKey$217)) + ((propKey$200 = lastProps[propKey$216]), + lastProps.hasOwnProperty(propKey$216) && + null != propKey$200 && + !nextProps.hasOwnProperty(propKey$216)) ) - switch (propKey$217) { + switch (propKey$216) { case "selected": domElement.selected = !1; break; @@ -13263,33 +13254,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$217, + propKey$216, null, nextProps, - propKey$201 + propKey$200 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$201 = nextProps[lastDefaultValue]), + ((propKey$200 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$201 !== propKey && - (null != propKey$201 || null != propKey)) + propKey$200 !== propKey && + (null != propKey$200 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$201 && - "function" !== typeof propKey$201 && - "symbol" !== typeof propKey$201; + propKey$200 && + "function" !== typeof propKey$200 && + "symbol" !== typeof propKey$200; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$201, + propKey$200, nextProps, propKey ); @@ -13310,24 +13301,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$222 in lastProps) - (propKey$201 = lastProps[propKey$222]), - lastProps.hasOwnProperty(propKey$222) && - null != propKey$201 && - !nextProps.hasOwnProperty(propKey$222) && - setProp(domElement, tag, propKey$222, null, nextProps, propKey$201); + for (var propKey$221 in lastProps) + (propKey$200 = lastProps[propKey$221]), + lastProps.hasOwnProperty(propKey$221) && + null != propKey$200 && + !nextProps.hasOwnProperty(propKey$221) && + setProp(domElement, tag, propKey$221, null, nextProps, propKey$200); for (checked in nextProps) if ( - ((propKey$201 = nextProps[checked]), + ((propKey$200 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$201 !== propKey && - (null != propKey$201 || null != propKey)) + propKey$200 !== propKey && + (null != propKey$200 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$201) + if (null != propKey$200) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13335,7 +13326,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$201, + propKey$200, nextProps, propKey ); @@ -13343,49 +13334,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$227 in lastProps) - (propKey$201 = lastProps[propKey$227]), - lastProps.hasOwnProperty(propKey$227) && - void 0 !== propKey$201 && - !nextProps.hasOwnProperty(propKey$227) && + for (var propKey$226 in lastProps) + (propKey$200 = lastProps[propKey$226]), + lastProps.hasOwnProperty(propKey$226) && + void 0 !== propKey$200 && + !nextProps.hasOwnProperty(propKey$226) && setPropOnCustomElement( domElement, tag, - propKey$227, + propKey$226, void 0, nextProps, - propKey$201 + propKey$200 ); for (defaultChecked in nextProps) - (propKey$201 = nextProps[defaultChecked]), + (propKey$200 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$201 === propKey || - (void 0 === propKey$201 && void 0 === propKey) || + propKey$200 === propKey || + (void 0 === propKey$200 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$201, + propKey$200, nextProps, propKey ); return; } } - for (var propKey$232 in lastProps) - (propKey$201 = lastProps[propKey$232]), - lastProps.hasOwnProperty(propKey$232) && - null != propKey$201 && - !nextProps.hasOwnProperty(propKey$232) && - setProp(domElement, tag, propKey$232, null, nextProps, propKey$201); + for (var propKey$231 in lastProps) + (propKey$200 = lastProps[propKey$231]), + lastProps.hasOwnProperty(propKey$231) && + null != propKey$200 && + !nextProps.hasOwnProperty(propKey$231) && + setProp(domElement, tag, propKey$231, null, nextProps, propKey$200); for (lastProp in nextProps) - (propKey$201 = nextProps[lastProp]), + (propKey$200 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$201 === propKey || - (null == propKey$201 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$201, nextProps, propKey); + propKey$200 === propKey || + (null == propKey$200 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$200, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -13930,26 +13921,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$240 = getResourcesFromRoot( + var styles$239 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$241 = styles$240.get(type); - resource$241 || + resource$240 = styles$239.get(type); + resource$240 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$241 = { + (resource$240 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$240.set(type, resource$241), - (styles$240 = JSCompiler_inline_result.querySelector( + styles$239.set(type, resource$240), + (styles$239 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$240._p && - ((resource$241.instance = styles$240), - (resource$241.state.loading = 5)), + !styles$239._p && + ((resource$240.instance = styles$239), + (resource$240.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -13962,16 +13953,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$240 || + styles$239 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$241.state + resource$240.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$241; + return resource$240; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14068,37 +14059,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$246 = hoistableRoot.querySelector( + var instance$245 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$246) + if (instance$245) return ( (resource.state.loading |= 4), - (resource.instance = instance$246), - markNodeAsHoistable(instance$246), - instance$246 + (resource.instance = instance$245), + markNodeAsHoistable(instance$245), + instance$245 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$246 = ( + instance$245 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$246); - var linkInstance = instance$246; + markNodeAsHoistable(instance$245); + var linkInstance = instance$245; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$246, "link", instance); + setInitialProperties(instance$245, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$246, props.precedence, hoistableRoot); - return (resource.instance = instance$246); + insertStylesheet(instance$245, props.precedence, hoistableRoot); + return (resource.instance = instance$245); case "script": - instance$246 = getScriptKey(props.src); + instance$245 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$246) + getScriptSelectorFromKey(instance$245) )) ) return ( @@ -14107,7 +14098,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$246))) + if ((styleProps = preloadPropsMap.get(instance$245))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15131,16 +15122,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1670 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1669 = React.version; if ( - "19.0.0-experimental-1631855f-20241023" !== - isomorphicReactPackageVersion$jscomp$inline_1670 + "19.0.0-experimental-02c0e824-20241028" !== + isomorphicReactPackageVersion$jscomp$inline_1669 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1670, - "19.0.0-experimental-1631855f-20241023" + isomorphicReactPackageVersion$jscomp$inline_1669, + "19.0.0-experimental-02c0e824-20241028" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15160,25 +15151,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2135 = { +var internals$jscomp$inline_2134 = { bundleType: 0, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023" + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2136 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2135 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2136.isDisabled && - hook$jscomp$inline_2136.supportsFiber + !hook$jscomp$inline_2135.isDisabled && + hook$jscomp$inline_2135.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2136.inject( - internals$jscomp$inline_2135 + (rendererID = hook$jscomp$inline_2135.inject( + internals$jscomp$inline_2134 )), - (injectedHook = hook$jscomp$inline_2136); + (injectedHook = hook$jscomp$inline_2135); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15270,4 +15261,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js index 57458c2a274ed..7d163a3539303 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js @@ -1068,14 +1068,6 @@ ? wipLanes : nextLanes; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); - } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -14653,181 +14645,179 @@ function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes, !1); - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( + var exitStatus = (forceSync = + !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + var renderWasConcurrent = forceSync; + do { + if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes); + renderWasConcurrent = !1; + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( + exitStatus, + errorRetryLanes$jscomp$0 + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( exitStatus, errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( - exitStatus, - errorRetryLanes$jscomp$0, - !1 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; + } + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + exitStatus = errorRetryLanes$jscomp$0; } - exitStatus = errorRetryLanes$jscomp$0; + renderWasConcurrent = !1; + if (exitStatus !== RootErrored) continue; } - if (exitStatus !== RootErrored) continue; } - } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); - break; - } - a: { - shouldTimeSlice = root; - renderWasConcurrent = now$1(); - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + renderWasConcurrent = root; + errorRetryLanes = now$1(); + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + renderWasConcurrent, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + errorRetryLanes + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { markRootSuspended( - shouldTimeSlice, + renderWasConcurrent, lanes, workInProgressDeferredLane ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + errorRetryLanes + ), + exitStatus + ); break a; } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - shouldTimeSlice, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - renderWasConcurrent - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - shouldTimeSlice, + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + errorRetryLanes ); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - renderWasConcurrent - ), - exitStatus - ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - renderWasConcurrent - ); } } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -15064,9 +15054,8 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -15187,38 +15176,37 @@ prepareFreshStack(root, lanes); } lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - memoizedUpdaters = RootDidNotComplete; + workInProgressRootExitStatus = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - case SuspendedOnDeprecatedThrowPromise: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = NotSuspended), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop( + root, + memoizedUpdaters, + thrownValue, + reason + ); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -15229,11 +15217,14 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + if (null !== workInProgress) + throw Error( + "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." + ); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -15257,7 +15248,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } a: do try { if ( @@ -16162,8 +16153,7 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 === (nextLanes & 3) || - checkIfRootIsPrerendering(root, nextLanes) || + 0 !== (nextLanes & 3) && ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -16254,6 +16244,8 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: + suspendedLanes = ImmediatePriority; + break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24969,11 +24961,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25010,11 +25002,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023" + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25486,7 +25478,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js index f1ffc8e3b55fe..cb509aefbc169 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js @@ -702,14 +702,6 @@ function getNextLanes(root, wipLanes) { ? wipLanes : nextLanes; } -function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); -} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -2086,19 +2078,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$297; + var JSCompiler_inline_result$jscomp$296; if (canUseDOM) { - var isSupported$jscomp$inline_432 = "oninput" in document; - if (!isSupported$jscomp$inline_432) { - var element$jscomp$inline_433 = document.createElement("div"); - element$jscomp$inline_433.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_432 = - "function" === typeof element$jscomp$inline_433.oninput; + var isSupported$jscomp$inline_431 = "oninput" in document; + if (!isSupported$jscomp$inline_431) { + var element$jscomp$inline_432 = document.createElement("div"); + element$jscomp$inline_432.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_431 = + "function" === typeof element$jscomp$inline_432.oninput; } - JSCompiler_inline_result$jscomp$297 = isSupported$jscomp$inline_432; - } else JSCompiler_inline_result$jscomp$297 = !1; + JSCompiler_inline_result$jscomp$296 = isSupported$jscomp$inline_431; + } else JSCompiler_inline_result$jscomp$296 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$297 && + JSCompiler_inline_result$jscomp$296 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -11086,154 +11078,159 @@ function scheduleUpdateOnFiber(root, fiber, lane) { } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes, !1); - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else - (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), + var exitStatus = (forceSync = + !forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes); + if (0 !== exitStatus) { + var renderWasConcurrent = forceSync; + do { + if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes); + renderWasConcurrent = !1; + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result, - !1 - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; + root$jscomp$0.pendingLanes & -536870913), + (JSCompiler_inline_result = + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= + 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; + } + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + exitStatus = JSCompiler_inline_result; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = !1; + if (2 !== exitStatus) continue; } - if (2 !== exitStatus) continue; } - } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); - break; - } - a: { - shouldTimeSlice = root$jscomp$0; - renderWasConcurrent = exitStatus; - exitStatus = now$1(); - switch (renderWasConcurrent) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - shouldTimeSlice, - lanes, - workInProgressDeferredLane - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()), - 10 < renderWasConcurrent) - ) { - markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + a: { + renderWasConcurrent = root$jscomp$0; + JSCompiler_inline_result = now$1(); + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + renderWasConcurrent, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - renderStartTime, + workInProgressDeferredLane + ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + renderStartTime, + JSCompiler_inline_result + ), exitStatus - ), - renderWasConcurrent + ); + break a; + } + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + renderStartTime, + JSCompiler_inline_result ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - renderStartTime, - exitStatus - ); } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -11465,9 +11462,8 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11581,38 +11577,32 @@ function renderRootSync(root, lanes) { prepareFreshStack(root, lanes); } lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - memoizedUpdaters = 6; + workInProgressRootExitStatus = 6; break a; case 3: case 2: - case 6: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop(root, memoizedUpdaters, thrownValue, reason); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; - } catch (thrownValue$177) { - handleThrow(root, thrownValue$177); + } catch (thrownValue$176) { + handleThrow(root, thrownValue$176); } while (1); lanes && root.shellSuspendCounter++; @@ -11620,11 +11610,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -11645,7 +11635,7 @@ function renderRootConcurrent(root, lanes) { workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + 500; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) @@ -11730,8 +11720,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$179) { - handleThrow(root, thrownValue$179); + } catch (thrownValue$178) { + handleThrow(root, thrownValue$178); } while (1); resetContextDependencies(); @@ -12053,7 +12043,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$183 = rootWithPendingPassiveEffects, + var root$182 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12129,7 +12119,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$183, remainingLanes); + releaseRootPooledCache(root$182, remainingLanes); } } return !1; @@ -12279,14 +12269,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$185 = firstScheduledRoot; null !== root$185; ) { + for (var root$184 = firstScheduledRoot; null !== root$184; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$185.pendingLanes; + var pendingLanes = root$184.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$185.suspendedLanes, - pingedLanes = root$185.pingedLanes; + var suspendedLanes = root$184.suspendedLanes, + pingedLanes = root$184.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -12300,18 +12290,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$185, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$184, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$185, - root$185 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$184, + root$184 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$185, JSCompiler_inline_result) || + 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$185, JSCompiler_inline_result)); - root$185 = root$185.next; + performSyncWorkOnRoot(root$184, JSCompiler_inline_result)); + root$184 = root$184.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -12394,6 +12383,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: + suspendedLanes = ImmediatePriority; + break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -12542,20 +12533,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1496 = 0; - i$jscomp$inline_1496 < simpleEventPluginEvents.length; - i$jscomp$inline_1496++ + var i$jscomp$inline_1495 = 0; + i$jscomp$inline_1495 < simpleEventPluginEvents.length; + i$jscomp$inline_1495++ ) { - var eventName$jscomp$inline_1497 = - simpleEventPluginEvents[i$jscomp$inline_1496], - domEventName$jscomp$inline_1498 = - eventName$jscomp$inline_1497.toLowerCase(), - capitalizedEvent$jscomp$inline_1499 = - eventName$jscomp$inline_1497[0].toUpperCase() + - eventName$jscomp$inline_1497.slice(1); + var eventName$jscomp$inline_1496 = + simpleEventPluginEvents[i$jscomp$inline_1495], + domEventName$jscomp$inline_1497 = + eventName$jscomp$inline_1496.toLowerCase(), + capitalizedEvent$jscomp$inline_1498 = + eventName$jscomp$inline_1496[0].toUpperCase() + + eventName$jscomp$inline_1496.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1498, - "on" + capitalizedEvent$jscomp$inline_1499 + domEventName$jscomp$inline_1497, + "on" + capitalizedEvent$jscomp$inline_1498 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13738,34 +13729,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$199 = props[hasSrc]; - if (null != propValue$199) + var propValue$198 = props[hasSrc]; + if (null != propValue$198) switch (hasSrc) { case "name": - hasSrcSet = propValue$199; + hasSrcSet = propValue$198; break; case "type": - propValue = propValue$199; + propValue = propValue$198; break; case "checked": - checked = propValue$199; + checked = propValue$198; break; case "defaultChecked": - defaultChecked = propValue$199; + defaultChecked = propValue$198; break; case "value": - propKey = propValue$199; + propKey = propValue$198; break; case "defaultValue": - defaultValue = propValue$199; + defaultValue = propValue$198; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$199) + if (null != propValue$198) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$199, props, null); + setProp(domElement, tag, hasSrc, propValue$198, props, null); } } initInput( @@ -13902,14 +13893,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$199 in props) - props.hasOwnProperty(propValue$199) && - ((hasSrc = props[propValue$199]), + for (propValue$198 in props) + props.hasOwnProperty(propValue$198) && + ((hasSrc = props[propValue$198]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$199, + propValue$198, hasSrc, props, void 0 @@ -13957,14 +13948,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$216 in nextProps) { - var propKey = nextProps[propKey$216]; - lastProp = lastProps[propKey$216]; + for (var propKey$215 in nextProps) { + var propKey = nextProps[propKey$215]; + lastProp = lastProps[propKey$215]; if ( - nextProps.hasOwnProperty(propKey$216) && + nextProps.hasOwnProperty(propKey$215) && (null != propKey || null != lastProp) ) - switch (propKey$216) { + switch (propKey$215) { case "type": type = propKey; break; @@ -13993,7 +13984,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$216, + propKey$215, propKey, nextProps, lastProp @@ -14012,7 +14003,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$216 = null; + propKey = value = defaultValue = propKey$215 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14043,7 +14034,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$216 = type; + propKey$215 = type; break; case "defaultValue": defaultValue = type; @@ -14064,15 +14055,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$216 - ? updateOptions(domElement, !!lastProps, propKey$216, !1) + null != propKey$215 + ? updateOptions(domElement, !!lastProps, propKey$215, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$216 = null; + propKey = propKey$215 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14096,7 +14087,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$216 = name; + propKey$215 = name; break; case "defaultValue": propKey = name; @@ -14110,17 +14101,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$216, propKey); + updateTextarea(domElement, propKey$215, propKey); return; case "option": - for (var propKey$232 in lastProps) + for (var propKey$231 in lastProps) if ( - ((propKey$216 = lastProps[propKey$232]), - lastProps.hasOwnProperty(propKey$232) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$232)) + ((propKey$215 = lastProps[propKey$231]), + lastProps.hasOwnProperty(propKey$231) && + null != propKey$215 && + !nextProps.hasOwnProperty(propKey$231)) ) - switch (propKey$232) { + switch (propKey$231) { case "selected": domElement.selected = !1; break; @@ -14128,33 +14119,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$232, + propKey$231, null, nextProps, - propKey$216 + propKey$215 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$216 = nextProps[lastDefaultValue]), + ((propKey$215 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$216 !== propKey && - (null != propKey$216 || null != propKey)) + propKey$215 !== propKey && + (null != propKey$215 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$216 && - "function" !== typeof propKey$216 && - "symbol" !== typeof propKey$216; + propKey$215 && + "function" !== typeof propKey$215 && + "symbol" !== typeof propKey$215; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$216, + propKey$215, nextProps, propKey ); @@ -14175,24 +14166,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$237 in lastProps) - (propKey$216 = lastProps[propKey$237]), - lastProps.hasOwnProperty(propKey$237) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$237) && - setProp(domElement, tag, propKey$237, null, nextProps, propKey$216); + for (var propKey$236 in lastProps) + (propKey$215 = lastProps[propKey$236]), + lastProps.hasOwnProperty(propKey$236) && + null != propKey$215 && + !nextProps.hasOwnProperty(propKey$236) && + setProp(domElement, tag, propKey$236, null, nextProps, propKey$215); for (checked in nextProps) if ( - ((propKey$216 = nextProps[checked]), + ((propKey$215 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$216 !== propKey && - (null != propKey$216 || null != propKey)) + propKey$215 !== propKey && + (null != propKey$215 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$216) + if (null != propKey$215) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14200,7 +14191,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$216, + propKey$215, nextProps, propKey ); @@ -14208,49 +14199,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$242 in lastProps) - (propKey$216 = lastProps[propKey$242]), - lastProps.hasOwnProperty(propKey$242) && - void 0 !== propKey$216 && - !nextProps.hasOwnProperty(propKey$242) && + for (var propKey$241 in lastProps) + (propKey$215 = lastProps[propKey$241]), + lastProps.hasOwnProperty(propKey$241) && + void 0 !== propKey$215 && + !nextProps.hasOwnProperty(propKey$241) && setPropOnCustomElement( domElement, tag, - propKey$242, + propKey$241, void 0, nextProps, - propKey$216 + propKey$215 ); for (defaultChecked in nextProps) - (propKey$216 = nextProps[defaultChecked]), + (propKey$215 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$216 === propKey || - (void 0 === propKey$216 && void 0 === propKey) || + propKey$215 === propKey || + (void 0 === propKey$215 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$216, + propKey$215, nextProps, propKey ); return; } } - for (var propKey$247 in lastProps) - (propKey$216 = lastProps[propKey$247]), - lastProps.hasOwnProperty(propKey$247) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$247) && - setProp(domElement, tag, propKey$247, null, nextProps, propKey$216); + for (var propKey$246 in lastProps) + (propKey$215 = lastProps[propKey$246]), + lastProps.hasOwnProperty(propKey$246) && + null != propKey$215 && + !nextProps.hasOwnProperty(propKey$246) && + setProp(domElement, tag, propKey$246, null, nextProps, propKey$215); for (lastProp in nextProps) - (propKey$216 = nextProps[lastProp]), + (propKey$215 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$216 === propKey || - (null == propKey$216 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$216, nextProps, propKey); + propKey$215 === propKey || + (null == propKey$215 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$215, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14803,26 +14794,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$255 = getResourcesFromRoot( + var styles$254 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$256 = styles$255.get(type); - resource$256 || + resource$255 = styles$254.get(type); + resource$255 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$256 = { + (resource$255 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$255.set(type, resource$256), - (styles$255 = JSCompiler_inline_result.querySelector( + styles$254.set(type, resource$255), + (styles$254 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$255._p && - ((resource$256.instance = styles$255), - (resource$256.state.loading = 5)), + !styles$254._p && + ((resource$255.instance = styles$254), + (resource$255.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14835,16 +14826,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$255 || + styles$254 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$256.state + resource$255.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$256; + return resource$255; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14941,37 +14932,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$261 = hoistableRoot.querySelector( + var instance$260 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$261) + if (instance$260) return ( (resource.state.loading |= 4), - (resource.instance = instance$261), - markNodeAsHoistable(instance$261), - instance$261 + (resource.instance = instance$260), + markNodeAsHoistable(instance$260), + instance$260 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$261 = ( + instance$260 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$261); - var linkInstance = instance$261; + markNodeAsHoistable(instance$260); + var linkInstance = instance$260; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$261, "link", instance); + setInitialProperties(instance$260, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$261, props.precedence, hoistableRoot); - return (resource.instance = instance$261); + insertStylesheet(instance$260, props.precedence, hoistableRoot); + return (resource.instance = instance$260); case "script": - instance$261 = getScriptKey(props.src); + instance$260 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$261) + getScriptSelectorFromKey(instance$260) )) ) return ( @@ -14980,7 +14971,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$261))) + if ((styleProps = preloadPropsMap.get(instance$260))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16021,16 +16012,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1743 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1742 = React.version; if ( - "19.0.0-experimental-1631855f-20241023" !== - isomorphicReactPackageVersion$jscomp$inline_1743 + "19.0.0-experimental-02c0e824-20241028" !== + isomorphicReactPackageVersion$jscomp$inline_1742 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1743, - "19.0.0-experimental-1631855f-20241023" + isomorphicReactPackageVersion$jscomp$inline_1742, + "19.0.0-experimental-02c0e824-20241028" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16050,25 +16041,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2181 = { +var internals$jscomp$inline_2180 = { bundleType: 0, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023" + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2182 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2181 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2182.isDisabled && - hook$jscomp$inline_2182.supportsFiber + !hook$jscomp$inline_2181.isDisabled && + hook$jscomp$inline_2181.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2182.inject( - internals$jscomp$inline_2181 + (rendererID = hook$jscomp$inline_2181.inject( + internals$jscomp$inline_2180 )), - (injectedHook = hook$jscomp$inline_2182); + (injectedHook = hook$jscomp$inline_2181); } catch (err) {} } function noop() {} @@ -16321,7 +16312,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index e279a38053c07..249d991666218 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -9295,5 +9295,5 @@ '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-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index 157ad48c5c4e9..77c2eaf7d8cbd 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -6060,4 +6060,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-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js index b1f3d9662f673..177e3082d6419 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js @@ -9295,5 +9295,5 @@ '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 "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js index 6769ccfd9a043..40ec79e85e1d4 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js @@ -6152,4 +6152,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 "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js index 3b39cbe9757e4..def592db5d589 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js @@ -8193,11 +8193,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -9977,5 +9977,5 @@ startWork(request); }); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index 997d79f8d41e7..62ee33eeaf4ae 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -6589,12 +6589,12 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-experimental-1631855f-20241023" + "19.0.0-experimental-02c0e824-20241028" ) ); } @@ -6849,4 +6849,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js index ebbe2b16b4697..2e4a2e7b4db79 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js @@ -6071,13 +6071,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_779 = React.version; if ( - "19.0.0-experimental-1631855f-20241023" !== + "19.0.0-experimental-02c0e824-20241028" !== isomorphicReactPackageVersion$jscomp$inline_779 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_779 + - "\n - react-dom: 19.0.0-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6168,4 +6168,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js index 0c05e7f88f3c3..56476f73dc535 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js @@ -8210,11 +8210,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -10001,5 +10001,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js index 28c13eb9aa71d..af8d7ac56a3f5 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js @@ -6691,11 +6691,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6960,4 +6960,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js index 6e572324a41cd..4a2da6fc7ab57 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js @@ -8074,11 +8074,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -9851,5 +9851,5 @@ } }; }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js index fc02b1d952b0a..dcb2acf063734 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js @@ -6570,11 +6570,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6825,4 +6825,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js index 547846e50f2d6..d73f4b6b33cdb 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js @@ -1060,14 +1060,6 @@ ? wipLanes : nextLanes; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); - } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -14868,181 +14860,179 @@ function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes, !1); - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( + var exitStatus = (forceSync = + !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + var renderWasConcurrent = forceSync; + do { + if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes); + renderWasConcurrent = !1; + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( + exitStatus, + errorRetryLanes$jscomp$0 + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( exitStatus, errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( - exitStatus, - errorRetryLanes$jscomp$0, - !1 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; + } + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + exitStatus = errorRetryLanes$jscomp$0; } - exitStatus = errorRetryLanes$jscomp$0; + renderWasConcurrent = !1; + if (exitStatus !== RootErrored) continue; } - if (exitStatus !== RootErrored) continue; } - } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); - break; - } - a: { - shouldTimeSlice = root; - renderWasConcurrent = now$1(); - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + renderWasConcurrent = root; + errorRetryLanes = now$1(); + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + renderWasConcurrent, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + errorRetryLanes + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { markRootSuspended( - shouldTimeSlice, + renderWasConcurrent, lanes, workInProgressDeferredLane ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + errorRetryLanes + ), + exitStatus + ); break a; } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - shouldTimeSlice, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - renderWasConcurrent - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - shouldTimeSlice, + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + errorRetryLanes ); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - renderWasConcurrent - ), - exitStatus - ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - renderWasConcurrent - ); } } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -15275,9 +15265,8 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -15398,38 +15387,37 @@ prepareFreshStack(root, lanes); } lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - memoizedUpdaters = RootDidNotComplete; + workInProgressRootExitStatus = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - case SuspendedOnDeprecatedThrowPromise: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = NotSuspended), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop( + root, + memoizedUpdaters, + thrownValue, + reason + ); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -15440,11 +15428,14 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + if (null !== workInProgress) + throw Error( + "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." + ); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -15468,7 +15459,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } a: do try { if ( @@ -16373,8 +16364,7 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 === (nextLanes & 3) || - checkIfRootIsPrerendering(root, nextLanes) || + 0 !== (nextLanes & 3) && ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -16465,6 +16455,8 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: + suspendedLanes = ImmediatePriority; + break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -25246,11 +25238,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-02c0e824-20241028" !== 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-experimental-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25287,11 +25279,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023" + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25599,5 +25591,5 @@ } }; }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js index 43f4df87a5c56..997a3d9eb95ba 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js @@ -624,14 +624,6 @@ function getNextLanes(root, wipLanes) { ? wipLanes : nextLanes; } -function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); -} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -2053,19 +2045,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$282; + var JSCompiler_inline_result$jscomp$281; if (canUseDOM) { - var isSupported$jscomp$inline_420 = "oninput" in document; - if (!isSupported$jscomp$inline_420) { - var element$jscomp$inline_421 = document.createElement("div"); - element$jscomp$inline_421.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_420 = - "function" === typeof element$jscomp$inline_421.oninput; + var isSupported$jscomp$inline_419 = "oninput" in document; + if (!isSupported$jscomp$inline_419) { + var element$jscomp$inline_420 = document.createElement("div"); + element$jscomp$inline_420.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_419 = + "function" === typeof element$jscomp$inline_420.oninput; } - JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_420; - } else JSCompiler_inline_result$jscomp$282 = !1; + JSCompiler_inline_result$jscomp$281 = isSupported$jscomp$inline_419; + } else JSCompiler_inline_result$jscomp$281 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$282 && + JSCompiler_inline_result$jscomp$281 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -10673,152 +10665,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes, !1); - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else - (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), + var exitStatus = (forceSync = + !forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes); + if (0 !== exitStatus) { + var renderWasConcurrent = forceSync; + do { + if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes); + renderWasConcurrent = !1; + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result, - !1 - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; + root$jscomp$0.pendingLanes & -536870913), + (JSCompiler_inline_result = + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= + 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; + } + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + exitStatus = JSCompiler_inline_result; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = !1; + if (2 !== exitStatus) continue; } - if (2 !== exitStatus) continue; } - } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); - break; - } - a: { - shouldTimeSlice = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - shouldTimeSlice, - lanes, - workInProgressDeferredLane - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), - 10 < renderWasConcurrent) - ) { - markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + a: { + renderWasConcurrent = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((exitStatus = globalMostRecentFallbackTime + 300 - now()), + 10 < exitStatus) + ) { + markRootSuspended( + renderWasConcurrent, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - renderWasConcurrent + workInProgressDeferredLane + ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + exitStatus + ); + break a; + } + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 - ); } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10975,9 +10973,8 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11084,7 +11081,6 @@ function renderRootSync(root, lanes) { if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = null), prepareFreshStack(root, lanes); lanes = !1; - var exitStatus = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -11093,29 +11089,24 @@ function renderRootSync(root, lanes) { switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - exitStatus = 6; + workInProgressRootExitStatus = 6; break a; case 3: case 2: - case 6: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); - exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$163) { - handleThrow(root, thrownValue$163); + } catch (thrownValue$162) { + handleThrow(root, thrownValue$162); } while (1); lanes && root.shellSuspendCounter++; @@ -11123,11 +11114,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return exitStatus; + if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -11137,11 +11128,10 @@ function renderRootConcurrent(root, lanes) { executionContext |= 2; var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); - workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes - ? ((workInProgressTransitions = null), + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) + (workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes)) - : checkIfRootIsPrerendering(root, lanes); + prepareFreshStack(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -11225,8 +11215,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$165) { - handleThrow(root, thrownValue$165); + } catch (thrownValue$164) { + handleThrow(root, thrownValue$164); } while (1); resetContextDependencies(); @@ -11507,7 +11497,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$169 = rootWithPendingPassiveEffects, + var root$168 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11546,7 +11536,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$169, remainingLanes); + releaseRootPooledCache(root$168, remainingLanes); } } return !1; @@ -11689,14 +11679,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$171 = firstScheduledRoot; null !== root$171; ) { + for (var root$170 = firstScheduledRoot; null !== root$170; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$171.pendingLanes; + var pendingLanes = root$170.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$171.suspendedLanes, - pingedLanes = root$171.pingedLanes; + var suspendedLanes = root$170.suspendedLanes, + pingedLanes = root$170.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11710,18 +11700,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$171, - root$171 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$170, + root$170 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$171, JSCompiler_inline_result) || + 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); - root$171 = root$171.next; + performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); + root$170 = root$170.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11804,6 +11793,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: + suspendedLanes = ImmediatePriority; + break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -11949,20 +11940,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1452 = 0; - i$jscomp$inline_1452 < simpleEventPluginEvents.length; - i$jscomp$inline_1452++ + var i$jscomp$inline_1451 = 0; + i$jscomp$inline_1451 < simpleEventPluginEvents.length; + i$jscomp$inline_1451++ ) { - var eventName$jscomp$inline_1453 = - simpleEventPluginEvents[i$jscomp$inline_1452], - domEventName$jscomp$inline_1454 = - eventName$jscomp$inline_1453.toLowerCase(), - capitalizedEvent$jscomp$inline_1455 = - eventName$jscomp$inline_1453[0].toUpperCase() + - eventName$jscomp$inline_1453.slice(1); + var eventName$jscomp$inline_1452 = + simpleEventPluginEvents[i$jscomp$inline_1451], + domEventName$jscomp$inline_1453 = + eventName$jscomp$inline_1452.toLowerCase(), + capitalizedEvent$jscomp$inline_1454 = + eventName$jscomp$inline_1452[0].toUpperCase() + + eventName$jscomp$inline_1452.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1454, - "on" + capitalizedEvent$jscomp$inline_1455 + domEventName$jscomp$inline_1453, + "on" + capitalizedEvent$jscomp$inline_1454 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13145,34 +13136,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$185 = props[hasSrc]; - if (null != propValue$185) + var propValue$184 = props[hasSrc]; + if (null != propValue$184) switch (hasSrc) { case "name": - hasSrcSet = propValue$185; + hasSrcSet = propValue$184; break; case "type": - propValue = propValue$185; + propValue = propValue$184; break; case "checked": - checked = propValue$185; + checked = propValue$184; break; case "defaultChecked": - defaultChecked = propValue$185; + defaultChecked = propValue$184; break; case "value": - propKey = propValue$185; + propKey = propValue$184; break; case "defaultValue": - defaultValue = propValue$185; + defaultValue = propValue$184; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$185) + if (null != propValue$184) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$185, props, null); + setProp(domElement, tag, hasSrc, propValue$184, props, null); } } initInput( @@ -13309,14 +13300,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$185 in props) - props.hasOwnProperty(propValue$185) && - ((hasSrc = props[propValue$185]), + for (propValue$184 in props) + props.hasOwnProperty(propValue$184) && + ((hasSrc = props[propValue$184]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$185, + propValue$184, hasSrc, props, void 0 @@ -13364,14 +13355,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$202 in nextProps) { - var propKey = nextProps[propKey$202]; - lastProp = lastProps[propKey$202]; + for (var propKey$201 in nextProps) { + var propKey = nextProps[propKey$201]; + lastProp = lastProps[propKey$201]; if ( - nextProps.hasOwnProperty(propKey$202) && + nextProps.hasOwnProperty(propKey$201) && (null != propKey || null != lastProp) ) - switch (propKey$202) { + switch (propKey$201) { case "type": type = propKey; break; @@ -13400,7 +13391,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$202, + propKey$201, propKey, nextProps, lastProp @@ -13419,7 +13410,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$202 = null; + propKey = value = defaultValue = propKey$201 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13450,7 +13441,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$202 = type; + propKey$201 = type; break; case "defaultValue": defaultValue = type; @@ -13471,15 +13462,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$202 - ? updateOptions(domElement, !!lastProps, propKey$202, !1) + null != propKey$201 + ? updateOptions(domElement, !!lastProps, propKey$201, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$202 = null; + propKey = propKey$201 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13503,7 +13494,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$202 = name; + propKey$201 = name; break; case "defaultValue": propKey = name; @@ -13517,17 +13508,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$202, propKey); + updateTextarea(domElement, propKey$201, propKey); return; case "option": - for (var propKey$218 in lastProps) + for (var propKey$217 in lastProps) if ( - ((propKey$202 = lastProps[propKey$218]), - lastProps.hasOwnProperty(propKey$218) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$218)) + ((propKey$201 = lastProps[propKey$217]), + lastProps.hasOwnProperty(propKey$217) && + null != propKey$201 && + !nextProps.hasOwnProperty(propKey$217)) ) - switch (propKey$218) { + switch (propKey$217) { case "selected": domElement.selected = !1; break; @@ -13535,33 +13526,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$218, + propKey$217, null, nextProps, - propKey$202 + propKey$201 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$202 = nextProps[lastDefaultValue]), + ((propKey$201 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$202 !== propKey && - (null != propKey$202 || null != propKey)) + propKey$201 !== propKey && + (null != propKey$201 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$202 && - "function" !== typeof propKey$202 && - "symbol" !== typeof propKey$202; + propKey$201 && + "function" !== typeof propKey$201 && + "symbol" !== typeof propKey$201; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$202, + propKey$201, nextProps, propKey ); @@ -13582,24 +13573,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$223 in lastProps) - (propKey$202 = lastProps[propKey$223]), - lastProps.hasOwnProperty(propKey$223) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$223) && - setProp(domElement, tag, propKey$223, null, nextProps, propKey$202); + for (var propKey$222 in lastProps) + (propKey$201 = lastProps[propKey$222]), + lastProps.hasOwnProperty(propKey$222) && + null != propKey$201 && + !nextProps.hasOwnProperty(propKey$222) && + setProp(domElement, tag, propKey$222, null, nextProps, propKey$201); for (checked in nextProps) if ( - ((propKey$202 = nextProps[checked]), + ((propKey$201 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$202 !== propKey && - (null != propKey$202 || null != propKey)) + propKey$201 !== propKey && + (null != propKey$201 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$202) + if (null != propKey$201) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13607,7 +13598,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$202, + propKey$201, nextProps, propKey ); @@ -13615,49 +13606,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$228 in lastProps) - (propKey$202 = lastProps[propKey$228]), - lastProps.hasOwnProperty(propKey$228) && - void 0 !== propKey$202 && - !nextProps.hasOwnProperty(propKey$228) && + for (var propKey$227 in lastProps) + (propKey$201 = lastProps[propKey$227]), + lastProps.hasOwnProperty(propKey$227) && + void 0 !== propKey$201 && + !nextProps.hasOwnProperty(propKey$227) && setPropOnCustomElement( domElement, tag, - propKey$228, + propKey$227, void 0, nextProps, - propKey$202 + propKey$201 ); for (defaultChecked in nextProps) - (propKey$202 = nextProps[defaultChecked]), + (propKey$201 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$202 === propKey || - (void 0 === propKey$202 && void 0 === propKey) || + propKey$201 === propKey || + (void 0 === propKey$201 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$202, + propKey$201, nextProps, propKey ); return; } } - for (var propKey$233 in lastProps) - (propKey$202 = lastProps[propKey$233]), - lastProps.hasOwnProperty(propKey$233) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$233) && - setProp(domElement, tag, propKey$233, null, nextProps, propKey$202); + for (var propKey$232 in lastProps) + (propKey$201 = lastProps[propKey$232]), + lastProps.hasOwnProperty(propKey$232) && + null != propKey$201 && + !nextProps.hasOwnProperty(propKey$232) && + setProp(domElement, tag, propKey$232, null, nextProps, propKey$201); for (lastProp in nextProps) - (propKey$202 = nextProps[lastProp]), + (propKey$201 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$202 === propKey || - (null == propKey$202 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$202, nextProps, propKey); + propKey$201 === propKey || + (null == propKey$201 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$201, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14259,26 +14250,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$241 = getResourcesFromRoot( + var styles$240 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$242 = styles$241.get(type); - resource$242 || + resource$241 = styles$240.get(type); + resource$241 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$242 = { + (resource$241 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$241.set(type, resource$242), - (styles$241 = JSCompiler_inline_result.querySelector( + styles$240.set(type, resource$241), + (styles$240 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$241._p && - ((resource$242.instance = styles$241), - (resource$242.state.loading = 5)), + !styles$240._p && + ((resource$241.instance = styles$240), + (resource$241.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14291,16 +14282,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$241 || + styles$240 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$242.state + resource$241.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$242; + return resource$241; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14397,37 +14388,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$247 = hoistableRoot.querySelector( + var instance$246 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$247) + if (instance$246) return ( (resource.state.loading |= 4), - (resource.instance = instance$247), - markNodeAsHoistable(instance$247), - instance$247 + (resource.instance = instance$246), + markNodeAsHoistable(instance$246), + instance$246 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$247 = ( + instance$246 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$247); - var linkInstance = instance$247; + markNodeAsHoistable(instance$246); + var linkInstance = instance$246; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$247, "link", instance); + setInitialProperties(instance$246, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$247, props.precedence, hoistableRoot); - return (resource.instance = instance$247); + insertStylesheet(instance$246, props.precedence, hoistableRoot); + return (resource.instance = instance$246); case "script": - instance$247 = getScriptKey(props.src); + instance$246 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$247) + getScriptSelectorFromKey(instance$246) )) ) return ( @@ -14436,7 +14427,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$247))) + if ((styleProps = preloadPropsMap.get(instance$246))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15460,16 +15451,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1699 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1698 = React.version; if ( - "19.0.0-experimental-1631855f-20241023" !== - isomorphicReactPackageVersion$jscomp$inline_1699 + "19.0.0-experimental-02c0e824-20241028" !== + isomorphicReactPackageVersion$jscomp$inline_1698 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1699, - "19.0.0-experimental-1631855f-20241023" + isomorphicReactPackageVersion$jscomp$inline_1698, + "19.0.0-experimental-02c0e824-20241028" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15489,25 +15480,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2169 = { +var internals$jscomp$inline_2168 = { bundleType: 0, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023" + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2170 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2169 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2170.isDisabled && - hook$jscomp$inline_2170.supportsFiber + !hook$jscomp$inline_2169.isDisabled && + hook$jscomp$inline_2169.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2170.inject( - internals$jscomp$inline_2169 + (rendererID = hook$jscomp$inline_2169.inject( + internals$jscomp$inline_2168 )), - (injectedHook = hook$jscomp$inline_2170); + (injectedHook = hook$jscomp$inline_2169); } catch (err) {} } exports.createComponentSelector = function (component) { @@ -15750,4 +15741,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js index dd2c2c38e4912..f03fac26a35a4 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js index e35bce0831721..3c3935731b5a0 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js index 452915212ddd9..71018eb1651ba 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js index ef79f58d286b5..4751c70b54580 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index f475170238cbd..743158bb52cbc 100644 --- a/packages/next/src/compiled/react-dom-experimental/package.json +++ b/packages/next/src/compiled/react-dom-experimental/package.json @@ -72,10 +72,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.0.0-experimental-1631855f-20241023" + "scheduler": "0.0.0-experimental-02c0e824-20241028" }, "peerDependencies": { - "react": "0.0.0-experimental-1631855f-20241023" + "react": "0.0.0-experimental-02c0e824-20241028" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js index 3679145551994..23bb273c0f7a0 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js @@ -1027,14 +1027,6 @@ ? wipLanes : nextLanes; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); - } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -14291,180 +14283,178 @@ function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes, !1); - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( + var exitStatus = (forceSync = + !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + var renderWasConcurrent = forceSync; + do { + if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes); + renderWasConcurrent = !1; + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( + exitStatus, + errorRetryLanes$jscomp$0 + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( exitStatus, errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( - exitStatus, - errorRetryLanes$jscomp$0, - !1 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; + } + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + exitStatus = errorRetryLanes$jscomp$0; } - exitStatus = errorRetryLanes$jscomp$0; + renderWasConcurrent = !1; + if (exitStatus !== RootErrored) continue; } - if (exitStatus !== RootErrored) continue; } - } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); - break; - } - a: { - shouldTimeSlice = root; - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + renderWasConcurrent = root; + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + renderWasConcurrent, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + 0 + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { markRootSuspended( - shouldTimeSlice, + renderWasConcurrent, lanes, workInProgressDeferredLane ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + 0 + ), + exitStatus + ); break a; } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - shouldTimeSlice, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - 0 - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - shouldTimeSlice, + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + 0 ); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - 0 - ), - exitStatus - ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - 0 - ); } } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -14621,9 +14611,8 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -14773,38 +14762,37 @@ } markRenderStarted(lanes); lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - memoizedUpdaters = RootDidNotComplete; + workInProgressRootExitStatus = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - case SuspendedOnDeprecatedThrowPromise: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = NotSuspended), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop( + root, + memoizedUpdaters, + thrownValue, + reason + ); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -14815,12 +14803,15 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; + if (null !== workInProgress) + throw Error( + "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." + ); markRenderStopped(); - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -14844,7 +14835,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } markRenderStarted(lanes); a: do try { @@ -15724,8 +15715,7 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 === (nextLanes & 3) || - checkIfRootIsPrerendering(root, nextLanes) || + 0 !== (nextLanes & 3) && ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -15816,6 +15806,8 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: + suspendedLanes = ImmediatePriority; + break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24439,11 +24431,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24480,11 +24472,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-1631855f-20241023", + version: "19.0.0-rc-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1631855f-20241023" + reconcilerVersion: "19.0.0-rc-02c0e824-20241028" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -24628,7 +24620,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js index 8e3a47df74829..e0913d9142960 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js @@ -622,14 +622,6 @@ function getNextLanes(root, wipLanes) { ? wipLanes : nextLanes; } -function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); -} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -1965,19 +1957,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$278; + var JSCompiler_inline_result$jscomp$277; if (canUseDOM) { - var isSupported$jscomp$inline_413 = "oninput" in document; - if (!isSupported$jscomp$inline_413) { - var element$jscomp$inline_414 = document.createElement("div"); - element$jscomp$inline_414.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_413 = - "function" === typeof element$jscomp$inline_414.oninput; + var isSupported$jscomp$inline_412 = "oninput" in document; + if (!isSupported$jscomp$inline_412) { + var element$jscomp$inline_413 = document.createElement("div"); + element$jscomp$inline_413.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_412 = + "function" === typeof element$jscomp$inline_413.oninput; } - JSCompiler_inline_result$jscomp$278 = isSupported$jscomp$inline_413; - } else JSCompiler_inline_result$jscomp$278 = !1; + JSCompiler_inline_result$jscomp$277 = isSupported$jscomp$inline_412; + } else JSCompiler_inline_result$jscomp$277 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$278 && + JSCompiler_inline_result$jscomp$277 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -10244,152 +10236,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes, !1); - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else - (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), + var exitStatus = (forceSync = + !forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes); + if (0 !== exitStatus) { + var renderWasConcurrent = forceSync; + do { + if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes); + renderWasConcurrent = !1; + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result, - !1 - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; + root$jscomp$0.pendingLanes & -536870913), + (JSCompiler_inline_result = + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= + 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; + } + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + exitStatus = JSCompiler_inline_result; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = !1; + if (2 !== exitStatus) continue; } - if (2 !== exitStatus) continue; } - } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); - break; - } - a: { - shouldTimeSlice = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - shouldTimeSlice, - lanes, - workInProgressDeferredLane - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), - 10 < renderWasConcurrent) - ) { - markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + a: { + renderWasConcurrent = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((exitStatus = globalMostRecentFallbackTime + 300 - now()), + 10 < exitStatus) + ) { + markRootSuspended( + renderWasConcurrent, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - renderWasConcurrent + workInProgressDeferredLane + ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + exitStatus + ); + break a; + } + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 - ); } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -10546,9 +10544,8 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -10650,7 +10647,6 @@ function renderRootSync(root, lanes) { if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) (workInProgressTransitions = null), prepareFreshStack(root, lanes); lanes = !1; - var exitStatus = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10659,29 +10655,24 @@ function renderRootSync(root, lanes) { switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - exitStatus = 6; + workInProgressRootExitStatus = 6; break a; case 3: case 2: - case 6: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); } } workLoopSync(); - exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$159) { - handleThrow(root, thrownValue$159); + } catch (thrownValue$158) { + handleThrow(root, thrownValue$158); } while (1); lanes && root.shellSuspendCounter++; @@ -10689,11 +10680,11 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return exitStatus; + if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -10703,11 +10694,10 @@ function renderRootConcurrent(root, lanes) { executionContext |= 2; var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); - workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes - ? ((workInProgressTransitions = null), + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) + (workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), - prepareFreshStack(root, lanes)) - : checkIfRootIsPrerendering(root, lanes); + prepareFreshStack(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10791,8 +10781,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$161) { - handleThrow(root, thrownValue$161); + } catch (thrownValue$160) { + handleThrow(root, thrownValue$160); } while (1); resetContextDependencies(); @@ -11073,7 +11063,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$165 = rootWithPendingPassiveEffects, + var root$164 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11112,7 +11102,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$165, remainingLanes); + releaseRootPooledCache(root$164, remainingLanes); } } return !1; @@ -11255,14 +11245,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$167 = firstScheduledRoot; null !== root$167; ) { + for (var root$166 = firstScheduledRoot; null !== root$166; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$167.pendingLanes; + var pendingLanes = root$166.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$167.suspendedLanes, - pingedLanes = root$167.pingedLanes; + var suspendedLanes = root$166.suspendedLanes, + pingedLanes = root$166.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11276,18 +11266,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$167, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$166, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$167, - root$167 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$166, + root$166 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$167, JSCompiler_inline_result) || + 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$167, JSCompiler_inline_result)); - root$167 = root$167.next; + performSyncWorkOnRoot(root$166, JSCompiler_inline_result)); + root$166 = root$166.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11370,6 +11359,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: + suspendedLanes = ImmediatePriority; + break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -11515,20 +11506,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1430 = 0; - i$jscomp$inline_1430 < simpleEventPluginEvents.length; - i$jscomp$inline_1430++ + var i$jscomp$inline_1429 = 0; + i$jscomp$inline_1429 < simpleEventPluginEvents.length; + i$jscomp$inline_1429++ ) { - var eventName$jscomp$inline_1431 = - simpleEventPluginEvents[i$jscomp$inline_1430], - domEventName$jscomp$inline_1432 = - eventName$jscomp$inline_1431.toLowerCase(), - capitalizedEvent$jscomp$inline_1433 = - eventName$jscomp$inline_1431[0].toUpperCase() + - eventName$jscomp$inline_1431.slice(1); + var eventName$jscomp$inline_1430 = + simpleEventPluginEvents[i$jscomp$inline_1429], + domEventName$jscomp$inline_1431 = + eventName$jscomp$inline_1430.toLowerCase(), + capitalizedEvent$jscomp$inline_1432 = + eventName$jscomp$inline_1430[0].toUpperCase() + + eventName$jscomp$inline_1430.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1432, - "on" + capitalizedEvent$jscomp$inline_1433 + domEventName$jscomp$inline_1431, + "on" + capitalizedEvent$jscomp$inline_1432 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -12711,34 +12702,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$181 = props[hasSrc]; - if (null != propValue$181) + var propValue$180 = props[hasSrc]; + if (null != propValue$180) switch (hasSrc) { case "name": - hasSrcSet = propValue$181; + hasSrcSet = propValue$180; break; case "type": - propValue = propValue$181; + propValue = propValue$180; break; case "checked": - checked = propValue$181; + checked = propValue$180; break; case "defaultChecked": - defaultChecked = propValue$181; + defaultChecked = propValue$180; break; case "value": - propKey = propValue$181; + propKey = propValue$180; break; case "defaultValue": - defaultValue = propValue$181; + defaultValue = propValue$180; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$181) + if (null != propValue$180) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$181, props, null); + setProp(domElement, tag, hasSrc, propValue$180, props, null); } } initInput( @@ -12875,14 +12866,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$181 in props) - props.hasOwnProperty(propValue$181) && - ((hasSrc = props[propValue$181]), + for (propValue$180 in props) + props.hasOwnProperty(propValue$180) && + ((hasSrc = props[propValue$180]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$181, + propValue$180, hasSrc, props, void 0 @@ -12930,14 +12921,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$198 in nextProps) { - var propKey = nextProps[propKey$198]; - lastProp = lastProps[propKey$198]; + for (var propKey$197 in nextProps) { + var propKey = nextProps[propKey$197]; + lastProp = lastProps[propKey$197]; if ( - nextProps.hasOwnProperty(propKey$198) && + nextProps.hasOwnProperty(propKey$197) && (null != propKey || null != lastProp) ) - switch (propKey$198) { + switch (propKey$197) { case "type": type = propKey; break; @@ -12966,7 +12957,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$198, + propKey$197, propKey, nextProps, lastProp @@ -12985,7 +12976,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$198 = null; + propKey = value = defaultValue = propKey$197 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13016,7 +13007,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$198 = type; + propKey$197 = type; break; case "defaultValue": defaultValue = type; @@ -13037,15 +13028,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$198 - ? updateOptions(domElement, !!lastProps, propKey$198, !1) + null != propKey$197 + ? updateOptions(domElement, !!lastProps, propKey$197, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$198 = null; + propKey = propKey$197 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13069,7 +13060,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$198 = name; + propKey$197 = name; break; case "defaultValue": propKey = name; @@ -13083,17 +13074,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$198, propKey); + updateTextarea(domElement, propKey$197, propKey); return; case "option": - for (var propKey$214 in lastProps) + for (var propKey$213 in lastProps) if ( - ((propKey$198 = lastProps[propKey$214]), - lastProps.hasOwnProperty(propKey$214) && - null != propKey$198 && - !nextProps.hasOwnProperty(propKey$214)) + ((propKey$197 = lastProps[propKey$213]), + lastProps.hasOwnProperty(propKey$213) && + null != propKey$197 && + !nextProps.hasOwnProperty(propKey$213)) ) - switch (propKey$214) { + switch (propKey$213) { case "selected": domElement.selected = !1; break; @@ -13101,33 +13092,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$214, + propKey$213, null, nextProps, - propKey$198 + propKey$197 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$198 = nextProps[lastDefaultValue]), + ((propKey$197 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$198 !== propKey && - (null != propKey$198 || null != propKey)) + propKey$197 !== propKey && + (null != propKey$197 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$198 && - "function" !== typeof propKey$198 && - "symbol" !== typeof propKey$198; + propKey$197 && + "function" !== typeof propKey$197 && + "symbol" !== typeof propKey$197; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$198, + propKey$197, nextProps, propKey ); @@ -13148,24 +13139,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$219 in lastProps) - (propKey$198 = lastProps[propKey$219]), - lastProps.hasOwnProperty(propKey$219) && - null != propKey$198 && - !nextProps.hasOwnProperty(propKey$219) && - setProp(domElement, tag, propKey$219, null, nextProps, propKey$198); + for (var propKey$218 in lastProps) + (propKey$197 = lastProps[propKey$218]), + lastProps.hasOwnProperty(propKey$218) && + null != propKey$197 && + !nextProps.hasOwnProperty(propKey$218) && + setProp(domElement, tag, propKey$218, null, nextProps, propKey$197); for (checked in nextProps) if ( - ((propKey$198 = nextProps[checked]), + ((propKey$197 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$198 !== propKey && - (null != propKey$198 || null != propKey)) + propKey$197 !== propKey && + (null != propKey$197 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$198) + if (null != propKey$197) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13173,7 +13164,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$198, + propKey$197, nextProps, propKey ); @@ -13181,49 +13172,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$224 in lastProps) - (propKey$198 = lastProps[propKey$224]), - lastProps.hasOwnProperty(propKey$224) && - void 0 !== propKey$198 && - !nextProps.hasOwnProperty(propKey$224) && + for (var propKey$223 in lastProps) + (propKey$197 = lastProps[propKey$223]), + lastProps.hasOwnProperty(propKey$223) && + void 0 !== propKey$197 && + !nextProps.hasOwnProperty(propKey$223) && setPropOnCustomElement( domElement, tag, - propKey$224, + propKey$223, void 0, nextProps, - propKey$198 + propKey$197 ); for (defaultChecked in nextProps) - (propKey$198 = nextProps[defaultChecked]), + (propKey$197 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$198 === propKey || - (void 0 === propKey$198 && void 0 === propKey) || + propKey$197 === propKey || + (void 0 === propKey$197 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$198, + propKey$197, nextProps, propKey ); return; } } - for (var propKey$229 in lastProps) - (propKey$198 = lastProps[propKey$229]), - lastProps.hasOwnProperty(propKey$229) && - null != propKey$198 && - !nextProps.hasOwnProperty(propKey$229) && - setProp(domElement, tag, propKey$229, null, nextProps, propKey$198); + for (var propKey$228 in lastProps) + (propKey$197 = lastProps[propKey$228]), + lastProps.hasOwnProperty(propKey$228) && + null != propKey$197 && + !nextProps.hasOwnProperty(propKey$228) && + setProp(domElement, tag, propKey$228, null, nextProps, propKey$197); for (lastProp in nextProps) - (propKey$198 = nextProps[lastProp]), + (propKey$197 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$198 === propKey || - (null == propKey$198 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$198, nextProps, propKey); + propKey$197 === propKey || + (null == propKey$197 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$197, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -13768,26 +13759,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$237 = getResourcesFromRoot( + var styles$236 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$238 = styles$237.get(type); - resource$238 || + resource$237 = styles$236.get(type); + resource$237 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$238 = { + (resource$237 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$237.set(type, resource$238), - (styles$237 = JSCompiler_inline_result.querySelector( + styles$236.set(type, resource$237), + (styles$236 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$237._p && - ((resource$238.instance = styles$237), - (resource$238.state.loading = 5)), + !styles$236._p && + ((resource$237.instance = styles$236), + (resource$237.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -13800,16 +13791,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$237 || + styles$236 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$238.state + resource$237.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$238; + return resource$237; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -13906,37 +13897,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$243 = hoistableRoot.querySelector( + var instance$242 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$243) + if (instance$242) return ( (resource.state.loading |= 4), - (resource.instance = instance$243), - markNodeAsHoistable(instance$243), - instance$243 + (resource.instance = instance$242), + markNodeAsHoistable(instance$242), + instance$242 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$243 = ( + instance$242 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$243); - var linkInstance = instance$243; + markNodeAsHoistable(instance$242); + var linkInstance = instance$242; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$243, "link", instance); + setInitialProperties(instance$242, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$243, props.precedence, hoistableRoot); - return (resource.instance = instance$243); + insertStylesheet(instance$242, props.precedence, hoistableRoot); + return (resource.instance = instance$242); case "script": - instance$243 = getScriptKey(props.src); + instance$242 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$243) + getScriptSelectorFromKey(instance$242) )) ) return ( @@ -13945,7 +13936,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$243))) + if ((styleProps = preloadPropsMap.get(instance$242))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -14969,16 +14960,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1677 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1676 = React.version; if ( - "19.0.0-rc-1631855f-20241023" !== - isomorphicReactPackageVersion$jscomp$inline_1677 + "19.0.0-rc-02c0e824-20241028" !== + isomorphicReactPackageVersion$jscomp$inline_1676 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1677, - "19.0.0-rc-1631855f-20241023" + isomorphicReactPackageVersion$jscomp$inline_1676, + "19.0.0-rc-02c0e824-20241028" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -14998,25 +14989,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2148 = { +var internals$jscomp$inline_2147 = { bundleType: 0, - version: "19.0.0-rc-1631855f-20241023", + version: "19.0.0-rc-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1631855f-20241023" + reconcilerVersion: "19.0.0-rc-02c0e824-20241028" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2149 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2148 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2149.isDisabled && - hook$jscomp$inline_2149.supportsFiber + !hook$jscomp$inline_2148.isDisabled && + hook$jscomp$inline_2148.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2149.inject( - internals$jscomp$inline_2148 + (rendererID = hook$jscomp$inline_2148.inject( + internals$jscomp$inline_2147 )), - (injectedHook = hook$jscomp$inline_2149); + (injectedHook = hook$jscomp$inline_2148); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15108,4 +15099,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js index 93c29006f3976..868b9128ded66 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js @@ -1035,14 +1035,6 @@ ? wipLanes : nextLanes; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); - } function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -14299,180 +14291,178 @@ function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root, lanes) - : renderRootSync(root, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); - else { - forceSync = root.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root, lanes, !1); - continue; - } - if (exitStatus === RootErrored) { - renderWasConcurrent = lanes; - if (root.errorRecoveryDisabledLanes & renderWasConcurrent) - var errorRetryLanes = 0; - else - (errorRetryLanes = root.pendingLanes & -536870913), - (errorRetryLanes = - 0 !== errorRetryLanes - ? errorRetryLanes - : errorRetryLanes & 536870912 - ? 536870912 - : 0); - if (0 !== errorRetryLanes) { - lanes = errorRetryLanes; - a: { - exitStatus = root; - var errorRetryLanes$jscomp$0 = errorRetryLanes; - errorRetryLanes = workInProgressRootConcurrentErrors; - var wasRootDehydrated = - exitStatus.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack( + var exitStatus = (forceSync = + !forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) + ? renderRootConcurrent(root, lanes) + : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + var renderWasConcurrent = forceSync; + do { + if (exitStatus === RootDidNotComplete) + markRootSuspended(root, lanes, 0); + else { + forceSync = root.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root, lanes); + renderWasConcurrent = !1; + continue; + } + if (exitStatus === RootErrored) { + renderWasConcurrent = lanes; + if (root.errorRecoveryDisabledLanes & renderWasConcurrent) + var errorRetryLanes = 0; + else + (errorRetryLanes = root.pendingLanes & -536870913), + (errorRetryLanes = + 0 !== errorRetryLanes + ? errorRetryLanes + : errorRetryLanes & 536870912 + ? 536870912 + : 0); + if (0 !== errorRetryLanes) { + lanes = errorRetryLanes; + a: { + exitStatus = root; + var errorRetryLanes$jscomp$0 = errorRetryLanes; + errorRetryLanes = workInProgressRootConcurrentErrors; + var wasRootDehydrated = + exitStatus.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack( + exitStatus, + errorRetryLanes$jscomp$0 + ).flags |= 256); + errorRetryLanes$jscomp$0 = renderRootSync( exitStatus, errorRetryLanes$jscomp$0 - ).flags |= 256); - errorRetryLanes$jscomp$0 = renderRootSync( - exitStatus, - errorRetryLanes$jscomp$0, - !1 - ); - if (errorRetryLanes$jscomp$0 !== RootErrored) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - exitStatus.errorRecoveryDisabledLanes |= - renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = RootSuspendedWithDelay; - break a; + ); + if (errorRetryLanes$jscomp$0 !== RootErrored) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + exitStatus.errorRecoveryDisabledLanes |= + renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = RootSuspendedWithDelay; + break a; + } + exitStatus = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorRetryLanes; + null !== exitStatus && queueRecoverableErrors(exitStatus); } - exitStatus = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = errorRetryLanes; - null !== exitStatus && queueRecoverableErrors(exitStatus); + exitStatus = errorRetryLanes$jscomp$0; } - exitStatus = errorRetryLanes$jscomp$0; + renderWasConcurrent = !1; + if (exitStatus !== RootErrored) continue; } - if (exitStatus !== RootErrored) continue; } - } - if (exitStatus === RootFatalErrored) { - prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); - break; - } - a: { - shouldTimeSlice = root; - switch (exitStatus) { - case RootInProgress: - case RootFatalErrored: - throw Error("Root did not complete. This is a bug in React."); - case RootSuspendedWithDelay: - if ((lanes & 4194176) === lanes) { + if (exitStatus === RootFatalErrored) { + prepareFreshStack(root, 0); + markRootSuspended(root, lanes, 0); + break; + } + a: { + renderWasConcurrent = root; + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: + throw Error("Root did not complete. This is a bug in React."); + case RootSuspendedWithDelay: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case RootErrored: + workInProgressRootRecoverableErrors = null; + break; + case RootSuspended: + case RootCompleted: + break; + default: + throw Error("Unknown root exit status."); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if (null !== ReactSharedInternals.actQueue) + commitRoot( + renderWasConcurrent, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + IMMEDIATE_COMMIT, + renderStartTime, + 0 + ); + else { + if ( + (lanes & 62914560) === lanes && + ((exitStatus = + globalMostRecentFallbackTime + + FALLBACK_THROTTLE_MS - + now$1()), + 10 < exitStatus) + ) { markRootSuspended( - shouldTimeSlice, + renderWasConcurrent, lanes, workInProgressDeferredLane ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + THROTTLED_COMMIT, + renderStartTime, + 0 + ), + exitStatus + ); break a; } - break; - case RootErrored: - workInProgressRootRecoverableErrors = null; - break; - case RootSuspended: - case RootCompleted: - break; - default: - throw Error("Unknown root exit status."); - } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if (null !== ReactSharedInternals.actQueue) - commitRoot( - shouldTimeSlice, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - IMMEDIATE_COMMIT, - renderStartTime, - 0 - ); - else { - if ( - (lanes & 62914560) === lanes && - ((exitStatus = - globalMostRecentFallbackTime + - FALLBACK_THROTTLE_MS - - now$1()), - 10 < exitStatus) - ) { - markRootSuspended( - shouldTimeSlice, + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + IMMEDIATE_COMMIT, + renderStartTime, + 0 ); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - THROTTLED_COMMIT, - renderStartTime, - 0 - ), - exitStatus - ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - IMMEDIATE_COMMIT, - renderStartTime, - 0 - ); } } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root); } function queueRecoverableErrors(errors) { @@ -14633,9 +14623,8 @@ workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -14785,38 +14774,37 @@ } markRenderStarted(lanes); lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if ( workInProgressSuspendedReason !== NotSuspended && null !== workInProgress ) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case SuspendedOnHydration: resetWorkInProgressStack(); - memoizedUpdaters = RootDidNotComplete; + workInProgressRootExitStatus = RootDidNotComplete; break a; case SuspendedOnImmediate: case SuspendedOnData: - case SuspendedOnDeprecatedThrowPromise: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = NotSuspended), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop( + root, + memoizedUpdaters, + thrownValue, + reason + ); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; } catch (thrownValue$8) { handleThrow(root, thrownValue$8); @@ -14827,12 +14815,15 @@ executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; + if (null !== workInProgress) + throw Error( + "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." + ); markRenderStopped(); - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -14856,7 +14847,7 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } markRenderStarted(lanes); a: do try { @@ -15736,8 +15727,7 @@ root, root === workInProgressRoot ? nextLanes : 0 )), - 0 === (nextLanes & 3) || - checkIfRootIsPrerendering(root, nextLanes) || + 0 !== (nextLanes & 3) && ((didPerformSomeWork = !0), performSyncWorkOnRoot(root, nextLanes)); root = root.next; @@ -15828,6 +15818,8 @@ else return currentTime; switch (lanesToEventPriority(suspendedLanes)) { case DiscreteEventPriority: + suspendedLanes = ImmediatePriority; + break; case ContinuousEventPriority: suspendedLanes = UserBlockingPriority; break; @@ -24496,11 +24488,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24537,11 +24529,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-1631855f-20241023", + version: "19.0.0-rc-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1631855f-20241023" + reconcilerVersion: "19.0.0-rc-02c0e824-20241028" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25015,7 +25007,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js index 1f7f0301a11ec..9cd6a319697f3 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js @@ -691,14 +691,6 @@ function getNextLanes(root, wipLanes) { ? wipLanes : nextLanes; } -function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); -} function computeExpirationTime(lane, currentTime) { switch (lane) { case 1: @@ -2064,19 +2056,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$294; + var JSCompiler_inline_result$jscomp$293; if (canUseDOM) { - var isSupported$jscomp$inline_430 = "oninput" in document; - if (!isSupported$jscomp$inline_430) { - var element$jscomp$inline_431 = document.createElement("div"); - element$jscomp$inline_431.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_430 = - "function" === typeof element$jscomp$inline_431.oninput; + var isSupported$jscomp$inline_429 = "oninput" in document; + if (!isSupported$jscomp$inline_429) { + var element$jscomp$inline_430 = document.createElement("div"); + element$jscomp$inline_430.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_429 = + "function" === typeof element$jscomp$inline_430.oninput; } - JSCompiler_inline_result$jscomp$294 = isSupported$jscomp$inline_430; - } else JSCompiler_inline_result$jscomp$294 = !1; + JSCompiler_inline_result$jscomp$293 = isSupported$jscomp$inline_429; + } else JSCompiler_inline_result$jscomp$293 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$294 && + JSCompiler_inline_result$jscomp$293 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -10766,152 +10758,158 @@ function scheduleUpdateOnFiber(root, fiber, lane) { } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var shouldTimeSlice = - (!forceSync && - 0 === (lanes & 60) && - 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1, - exitStatus = shouldTimeSlice - ? renderRootConcurrent(root$jscomp$0, lanes) - : renderRootSync(root$jscomp$0, lanes, !0); - do { - var renderWasConcurrent = shouldTimeSlice; - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); - else { - forceSync = root$jscomp$0.current.alternate; - if ( - renderWasConcurrent && - !isRenderConsistentWithExternalStores(forceSync) - ) { - exitStatus = renderRootSync(root$jscomp$0, lanes, !1); - continue; - } - if (2 === exitStatus) { - renderWasConcurrent = lanes; - if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) - var JSCompiler_inline_result = 0; - else - (JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913), + var exitStatus = (forceSync = + !forceSync && + 0 === (lanes & 60) && + 0 === (lanes & root$jscomp$0.expiredLanes)) + ? renderRootConcurrent(root$jscomp$0, lanes) + : renderRootSync(root$jscomp$0, lanes); + if (0 !== exitStatus) { + var renderWasConcurrent = forceSync; + do { + if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + else { + forceSync = root$jscomp$0.current.alternate; + if ( + renderWasConcurrent && + !isRenderConsistentWithExternalStores(forceSync) + ) { + exitStatus = renderRootSync(root$jscomp$0, lanes); + renderWasConcurrent = !1; + continue; + } + if (2 === exitStatus) { + renderWasConcurrent = lanes; + if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) + var JSCompiler_inline_result = 0; + else (JSCompiler_inline_result = - 0 !== JSCompiler_inline_result - ? JSCompiler_inline_result - : JSCompiler_inline_result & 536870912 - ? 536870912 - : 0); - if (0 !== JSCompiler_inline_result) { - lanes = JSCompiler_inline_result; - a: { - var root = root$jscomp$0; - exitStatus = workInProgressRootConcurrentErrors; - var wasRootDehydrated = root.current.memoizedState.isDehydrated; - wasRootDehydrated && - (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); - JSCompiler_inline_result = renderRootSync( - root, - JSCompiler_inline_result, - !1 - ); - if (2 !== JSCompiler_inline_result) { - if ( - workInProgressRootDidAttachPingListener && - !wasRootDehydrated - ) { - root.errorRecoveryDisabledLanes |= renderWasConcurrent; - workInProgressRootInterleavedUpdatedLanes |= - renderWasConcurrent; - exitStatus = 4; - break a; + root$jscomp$0.pendingLanes & -536870913), + (JSCompiler_inline_result = + 0 !== JSCompiler_inline_result + ? JSCompiler_inline_result + : JSCompiler_inline_result & 536870912 + ? 536870912 + : 0); + if (0 !== JSCompiler_inline_result) { + lanes = JSCompiler_inline_result; + a: { + var root = root$jscomp$0; + exitStatus = workInProgressRootConcurrentErrors; + var wasRootDehydrated = root.current.memoizedState.isDehydrated; + wasRootDehydrated && + (prepareFreshStack(root, JSCompiler_inline_result).flags |= + 256); + JSCompiler_inline_result = renderRootSync( + root, + JSCompiler_inline_result + ); + if (2 !== JSCompiler_inline_result) { + if ( + workInProgressRootDidAttachPingListener && + !wasRootDehydrated + ) { + root.errorRecoveryDisabledLanes |= renderWasConcurrent; + workInProgressRootInterleavedUpdatedLanes |= + renderWasConcurrent; + exitStatus = 4; + break a; + } + renderWasConcurrent = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = exitStatus; + null !== renderWasConcurrent && + queueRecoverableErrors(renderWasConcurrent); } - renderWasConcurrent = workInProgressRootRecoverableErrors; - workInProgressRootRecoverableErrors = exitStatus; - null !== renderWasConcurrent && - queueRecoverableErrors(renderWasConcurrent); + exitStatus = JSCompiler_inline_result; } - exitStatus = JSCompiler_inline_result; + renderWasConcurrent = !1; + if (2 !== exitStatus) continue; } - if (2 !== exitStatus) continue; } - } - if (1 === exitStatus) { - prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); - break; - } - a: { - shouldTimeSlice = root$jscomp$0; - switch (exitStatus) { - case 0: - case 1: - throw Error(formatProdErrorMessage(345)); - case 4: - if ((lanes & 4194176) === lanes) { - markRootSuspended( - shouldTimeSlice, - lanes, - workInProgressDeferredLane - ); - break a; - } - break; - case 2: - workInProgressRootRecoverableErrors = null; - break; - case 3: - case 5: - break; - default: - throw Error(formatProdErrorMessage(329)); + if (1 === exitStatus) { + prepareFreshStack(root$jscomp$0, 0); + markRootSuspended(root$jscomp$0, lanes, 0); + break; } - shouldTimeSlice.finishedWork = forceSync; - shouldTimeSlice.finishedLanes = lanes; - if ( - (lanes & 62914560) === lanes && - ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()), - 10 < renderWasConcurrent) - ) { - markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane); - if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; - shouldTimeSlice.timeoutHandle = scheduleTimeout( - commitRootWhenReady.bind( - null, - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, + a: { + renderWasConcurrent = root$jscomp$0; + switch (exitStatus) { + case 0: + case 1: + throw Error(formatProdErrorMessage(345)); + case 4: + if ((lanes & 4194176) === lanes) { + markRootSuspended( + renderWasConcurrent, + lanes, + workInProgressDeferredLane + ); + break a; + } + break; + case 2: + workInProgressRootRecoverableErrors = null; + break; + case 3: + case 5: + break; + default: + throw Error(formatProdErrorMessage(329)); + } + renderWasConcurrent.finishedWork = forceSync; + renderWasConcurrent.finishedLanes = lanes; + if ( + (lanes & 62914560) === lanes && + ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()), + 10 < exitStatus) + ) { + markRootSuspended( + renderWasConcurrent, lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 2, - -0, - 0 - ), - renderWasConcurrent + workInProgressDeferredLane + ); + if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; + renderWasConcurrent.timeoutHandle = scheduleTimeout( + commitRootWhenReady.bind( + null, + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 2, + -0, + 0 + ), + exitStatus + ); + break a; + } + commitRootWhenReady( + renderWasConcurrent, + forceSync, + workInProgressRootRecoverableErrors, + workInProgressTransitions, + workInProgressRootDidIncludeRecursiveRenderUpdate, + lanes, + workInProgressDeferredLane, + workInProgressRootInterleavedUpdatedLanes, + workInProgressSuspendedRetryLanes, + workInProgressRootDidSkipSuspendedSiblings, + 0, + -0, + 0 ); - break a; } - commitRootWhenReady( - shouldTimeSlice, - forceSync, - workInProgressRootRecoverableErrors, - workInProgressTransitions, - workInProgressRootDidIncludeRecursiveRenderUpdate, - lanes, - workInProgressDeferredLane, - workInProgressRootInterleavedUpdatedLanes, - workInProgressSuspendedRetryLanes, - workInProgressRootDidSkipSuspendedSiblings, - 0, - -0, - 0 - ); } - } - break; - } while (1); + break; + } while (1); + } ensureRootIsScheduled(root$jscomp$0); } function queueRecoverableErrors(errors) { @@ -11068,9 +11066,8 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11211,38 +11208,32 @@ function renderRootSync(root, lanes) { } markRenderStarted(lanes); lanes = !1; - memoizedUpdaters = workInProgressRootExitStatus; a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { - var unitOfWork = workInProgress, - thrownValue = workInProgressThrownValue; + memoizedUpdaters = workInProgress; + var thrownValue = workInProgressThrownValue; switch (workInProgressSuspendedReason) { case 8: resetWorkInProgressStack(); - memoizedUpdaters = 6; + workInProgressRootExitStatus = 6; break a; case 3: case 2: - case 6: - null === suspenseHandlerStackCursor.current && (lanes = !0); + lanes || + null !== suspenseHandlerStackCursor.current || + (lanes = !0); + default: var reason = workInProgressSuspendedReason; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); - break; - default: - (reason = workInProgressSuspendedReason), - (workInProgressSuspendedReason = 0), - (workInProgressThrownValue = null), - throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + throwAndUnwindWorkLoop(root, memoizedUpdaters, thrownValue, reason); } } workLoopSync(); - memoizedUpdaters = workInProgressRootExitStatus; break; - } catch (thrownValue$174) { - handleThrow(root, thrownValue$174); + } catch (thrownValue$173) { + handleThrow(root, thrownValue$173); } while (1); lanes && root.shellSuspendCounter++; @@ -11250,12 +11241,12 @@ function renderRootSync(root, lanes) { executionContext = prevExecutionContext; ReactSharedInternals.H = prevDispatcher; ReactSharedInternals.A = prevAsyncDispatcher; + if (null !== workInProgress) throw Error(formatProdErrorMessage(261)); markRenderStopped(); - null === workInProgress && - ((workInProgressRoot = null), - (workInProgressRootRenderLanes = 0), - finishQueueingConcurrentUpdates()); - return memoizedUpdaters; + workInProgressRoot = null; + workInProgressRootRenderLanes = 0; + finishQueueingConcurrentUpdates(); + return workInProgressRootExitStatus; } function workLoopSync() { for (; null !== workInProgress; ) performUnitOfWork(workInProgress); @@ -11276,7 +11267,7 @@ function renderRootConcurrent(root, lanes) { workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + 500; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } markRenderStarted(lanes); a: do try { @@ -11362,8 +11353,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$176) { - handleThrow(root, thrownValue$176); + } catch (thrownValue$175) { + handleThrow(root, thrownValue$175); } while (1); resetContextDependencies(); @@ -11684,7 +11675,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$180 = rootWithPendingPassiveEffects, + var root$179 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11734,7 +11725,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$180, remainingLanes); + releaseRootPooledCache(root$179, remainingLanes); } } return !1; @@ -11884,14 +11875,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$182 = firstScheduledRoot; null !== root$182; ) { + for (var root$181 = firstScheduledRoot; null !== root$181; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$182.pendingLanes; + var pendingLanes = root$181.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$182.suspendedLanes, - pingedLanes = root$182.pingedLanes; + var suspendedLanes = root$181.suspendedLanes, + pingedLanes = root$181.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11905,18 +11896,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$182, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$181, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$182, - root$182 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$181, + root$181 === workInProgressRoot ? JSCompiler_inline_result : 0 )), - 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$182, JSCompiler_inline_result) || + 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$182, JSCompiler_inline_result)); - root$182 = root$182.next; + performSyncWorkOnRoot(root$181, JSCompiler_inline_result)); + root$181 = root$181.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11999,6 +11989,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { null !== pingedLanes && cancelCallback$1(pingedLanes); switch (lanesToEventPriority(suspendedLanes)) { case 2: + suspendedLanes = ImmediatePriority; + break; case 8: suspendedLanes = UserBlockingPriority; break; @@ -12147,20 +12139,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1519 = 0; - i$jscomp$inline_1519 < simpleEventPluginEvents.length; - i$jscomp$inline_1519++ + var i$jscomp$inline_1518 = 0; + i$jscomp$inline_1518 < simpleEventPluginEvents.length; + i$jscomp$inline_1518++ ) { - var eventName$jscomp$inline_1520 = - simpleEventPluginEvents[i$jscomp$inline_1519], - domEventName$jscomp$inline_1521 = - eventName$jscomp$inline_1520.toLowerCase(), - capitalizedEvent$jscomp$inline_1522 = - eventName$jscomp$inline_1520[0].toUpperCase() + - eventName$jscomp$inline_1520.slice(1); + var eventName$jscomp$inline_1519 = + simpleEventPluginEvents[i$jscomp$inline_1518], + domEventName$jscomp$inline_1520 = + eventName$jscomp$inline_1519.toLowerCase(), + capitalizedEvent$jscomp$inline_1521 = + eventName$jscomp$inline_1519[0].toUpperCase() + + eventName$jscomp$inline_1519.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1521, - "on" + capitalizedEvent$jscomp$inline_1522 + domEventName$jscomp$inline_1520, + "on" + capitalizedEvent$jscomp$inline_1521 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13343,34 +13335,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$196 = props[hasSrc]; - if (null != propValue$196) + var propValue$195 = props[hasSrc]; + if (null != propValue$195) switch (hasSrc) { case "name": - hasSrcSet = propValue$196; + hasSrcSet = propValue$195; break; case "type": - propValue = propValue$196; + propValue = propValue$195; break; case "checked": - checked = propValue$196; + checked = propValue$195; break; case "defaultChecked": - defaultChecked = propValue$196; + defaultChecked = propValue$195; break; case "value": - propKey = propValue$196; + propKey = propValue$195; break; case "defaultValue": - defaultValue = propValue$196; + defaultValue = propValue$195; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$196) + if (null != propValue$195) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$196, props, null); + setProp(domElement, tag, hasSrc, propValue$195, props, null); } } initInput( @@ -13507,14 +13499,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$196 in props) - props.hasOwnProperty(propValue$196) && - ((hasSrc = props[propValue$196]), + for (propValue$195 in props) + props.hasOwnProperty(propValue$195) && + ((hasSrc = props[propValue$195]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$196, + propValue$195, hasSrc, props, void 0 @@ -13562,14 +13554,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$213 in nextProps) { - var propKey = nextProps[propKey$213]; - lastProp = lastProps[propKey$213]; + for (var propKey$212 in nextProps) { + var propKey = nextProps[propKey$212]; + lastProp = lastProps[propKey$212]; if ( - nextProps.hasOwnProperty(propKey$213) && + nextProps.hasOwnProperty(propKey$212) && (null != propKey || null != lastProp) ) - switch (propKey$213) { + switch (propKey$212) { case "type": type = propKey; break; @@ -13598,7 +13590,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$213, + propKey$212, propKey, nextProps, lastProp @@ -13617,7 +13609,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$213 = null; + propKey = value = defaultValue = propKey$212 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13648,7 +13640,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$213 = type; + propKey$212 = type; break; case "defaultValue": defaultValue = type; @@ -13669,15 +13661,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$213 - ? updateOptions(domElement, !!lastProps, propKey$213, !1) + null != propKey$212 + ? updateOptions(domElement, !!lastProps, propKey$212, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$213 = null; + propKey = propKey$212 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13701,7 +13693,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$213 = name; + propKey$212 = name; break; case "defaultValue": propKey = name; @@ -13715,17 +13707,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$213, propKey); + updateTextarea(domElement, propKey$212, propKey); return; case "option": - for (var propKey$229 in lastProps) + for (var propKey$228 in lastProps) if ( - ((propKey$213 = lastProps[propKey$229]), - lastProps.hasOwnProperty(propKey$229) && - null != propKey$213 && - !nextProps.hasOwnProperty(propKey$229)) + ((propKey$212 = lastProps[propKey$228]), + lastProps.hasOwnProperty(propKey$228) && + null != propKey$212 && + !nextProps.hasOwnProperty(propKey$228)) ) - switch (propKey$229) { + switch (propKey$228) { case "selected": domElement.selected = !1; break; @@ -13733,33 +13725,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$229, + propKey$228, null, nextProps, - propKey$213 + propKey$212 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$213 = nextProps[lastDefaultValue]), + ((propKey$212 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$213 !== propKey && - (null != propKey$213 || null != propKey)) + propKey$212 !== propKey && + (null != propKey$212 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$213 && - "function" !== typeof propKey$213 && - "symbol" !== typeof propKey$213; + propKey$212 && + "function" !== typeof propKey$212 && + "symbol" !== typeof propKey$212; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$213, + propKey$212, nextProps, propKey ); @@ -13780,24 +13772,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$234 in lastProps) - (propKey$213 = lastProps[propKey$234]), - lastProps.hasOwnProperty(propKey$234) && - null != propKey$213 && - !nextProps.hasOwnProperty(propKey$234) && - setProp(domElement, tag, propKey$234, null, nextProps, propKey$213); + for (var propKey$233 in lastProps) + (propKey$212 = lastProps[propKey$233]), + lastProps.hasOwnProperty(propKey$233) && + null != propKey$212 && + !nextProps.hasOwnProperty(propKey$233) && + setProp(domElement, tag, propKey$233, null, nextProps, propKey$212); for (checked in nextProps) if ( - ((propKey$213 = nextProps[checked]), + ((propKey$212 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$213 !== propKey && - (null != propKey$213 || null != propKey)) + propKey$212 !== propKey && + (null != propKey$212 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$213) + if (null != propKey$212) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13805,7 +13797,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$213, + propKey$212, nextProps, propKey ); @@ -13813,49 +13805,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$239 in lastProps) - (propKey$213 = lastProps[propKey$239]), - lastProps.hasOwnProperty(propKey$239) && - void 0 !== propKey$213 && - !nextProps.hasOwnProperty(propKey$239) && + for (var propKey$238 in lastProps) + (propKey$212 = lastProps[propKey$238]), + lastProps.hasOwnProperty(propKey$238) && + void 0 !== propKey$212 && + !nextProps.hasOwnProperty(propKey$238) && setPropOnCustomElement( domElement, tag, - propKey$239, + propKey$238, void 0, nextProps, - propKey$213 + propKey$212 ); for (defaultChecked in nextProps) - (propKey$213 = nextProps[defaultChecked]), + (propKey$212 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$213 === propKey || - (void 0 === propKey$213 && void 0 === propKey) || + propKey$212 === propKey || + (void 0 === propKey$212 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$213, + propKey$212, nextProps, propKey ); return; } } - for (var propKey$244 in lastProps) - (propKey$213 = lastProps[propKey$244]), - lastProps.hasOwnProperty(propKey$244) && - null != propKey$213 && - !nextProps.hasOwnProperty(propKey$244) && - setProp(domElement, tag, propKey$244, null, nextProps, propKey$213); + for (var propKey$243 in lastProps) + (propKey$212 = lastProps[propKey$243]), + lastProps.hasOwnProperty(propKey$243) && + null != propKey$212 && + !nextProps.hasOwnProperty(propKey$243) && + setProp(domElement, tag, propKey$243, null, nextProps, propKey$212); for (lastProp in nextProps) - (propKey$213 = nextProps[lastProp]), + (propKey$212 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$213 === propKey || - (null == propKey$213 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$213, nextProps, propKey); + propKey$212 === propKey || + (null == propKey$212 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$212, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14400,26 +14392,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$252 = getResourcesFromRoot( + var styles$251 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$253 = styles$252.get(type); - resource$253 || + resource$252 = styles$251.get(type); + resource$252 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$253 = { + (resource$252 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$252.set(type, resource$253), - (styles$252 = JSCompiler_inline_result.querySelector( + styles$251.set(type, resource$252), + (styles$251 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$252._p && - ((resource$253.instance = styles$252), - (resource$253.state.loading = 5)), + !styles$251._p && + ((resource$252.instance = styles$251), + (resource$252.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14432,16 +14424,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$252 || + styles$251 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$253.state + resource$252.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$253; + return resource$252; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14538,37 +14530,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$258 = hoistableRoot.querySelector( + var instance$257 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$258) + if (instance$257) return ( (resource.state.loading |= 4), - (resource.instance = instance$258), - markNodeAsHoistable(instance$258), - instance$258 + (resource.instance = instance$257), + markNodeAsHoistable(instance$257), + instance$257 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$258 = ( + instance$257 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$258); - var linkInstance = instance$258; + markNodeAsHoistable(instance$257); + var linkInstance = instance$257; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$258, "link", instance); + setInitialProperties(instance$257, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$258, props.precedence, hoistableRoot); - return (resource.instance = instance$258); + insertStylesheet(instance$257, props.precedence, hoistableRoot); + return (resource.instance = instance$257); case "script": - instance$258 = getScriptKey(props.src); + instance$257 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$258) + getScriptSelectorFromKey(instance$257) )) ) return ( @@ -14577,7 +14569,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$258))) + if ((styleProps = preloadPropsMap.get(instance$257))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15620,16 +15612,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1768 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1767 = React.version; if ( - "19.0.0-rc-1631855f-20241023" !== - isomorphicReactPackageVersion$jscomp$inline_1768 + "19.0.0-rc-02c0e824-20241028" !== + isomorphicReactPackageVersion$jscomp$inline_1767 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1768, - "19.0.0-rc-1631855f-20241023" + isomorphicReactPackageVersion$jscomp$inline_1767, + "19.0.0-rc-02c0e824-20241028" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15649,18 +15641,18 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1775 = { +var internals$jscomp$inline_1774 = { bundleType: 0, - version: "19.0.0-rc-1631855f-20241023", + version: "19.0.0-rc-02c0e824-20241028", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1631855f-20241023", + reconcilerVersion: "19.0.0-rc-02c0e824-20241028", getLaneLabelMap: function () { for ( - var map = new Map(), lane = 1, index$275 = 0; - 31 > index$275; - index$275++ + var map = new Map(), lane = 1, index$274 = 0; + 31 > index$274; + index$274++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -15673,16 +15665,16 @@ var internals$jscomp$inline_1775 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2204 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2203 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2204.isDisabled && - hook$jscomp$inline_2204.supportsFiber + !hook$jscomp$inline_2203.isDisabled && + hook$jscomp$inline_2203.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2204.inject( - internals$jscomp$inline_1775 + (rendererID = hook$jscomp$inline_2203.inject( + internals$jscomp$inline_1774 )), - (injectedHook = hook$jscomp$inline_2204); + (injectedHook = hook$jscomp$inline_2203); } catch (err) {} } function noop() {} @@ -15935,7 +15927,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js index 43041ff4b3d6a..9341504b5e0d7 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js @@ -8570,5 +8570,5 @@ '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-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js index 7ae530484c5e7..5300c45efc15d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js @@ -5623,4 +5623,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-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js index fc7bf6ecd0b51..987ce76bc3bad 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js @@ -8570,5 +8570,5 @@ '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 "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js index e3c5c757e0667..a32fd5d1d0b93 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js @@ -5701,4 +5701,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 "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js index ec1223698e410..f9c88c6b4593d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js @@ -7296,11 +7296,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -8952,5 +8952,5 @@ startWork(request); }); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js index d2d2a8e13e847..a2951fed1babe 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js @@ -5956,12 +5956,12 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-rc-1631855f-20241023" + "19.0.0-rc-02c0e824-20241028" ) ); } @@ -6108,4 +6108,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js index 00ce9927ee6d8..f94dffccee643 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js @@ -5594,13 +5594,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_731 = React.version; if ( - "19.0.0-rc-1631855f-20241023" !== + "19.0.0-rc-02c0e824-20241028" !== isomorphicReactPackageVersion$jscomp$inline_731 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_731 + - "\n - react-dom: 19.0.0-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -5691,4 +5691,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js index 3fa4cd827c140..896c2a054d461 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js @@ -7313,11 +7313,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -8976,5 +8976,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js index c8f7022751a13..74413196dcdd7 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js @@ -6044,11 +6044,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6205,4 +6205,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js index affdbc2b01ccf..e778a189476d9 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js @@ -7188,11 +7188,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -8839,5 +8839,5 @@ } }; }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js index 6b3e935ad3298..8e2a6394179c9 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js @@ -5936,11 +5936,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1631855f-20241023" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-02c0e824-20241028" !== 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-rc-1631855f-20241023\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-02c0e824-20241028\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6089,4 +6089,4 @@ exports.renderToPipeableStream = function (children, options) { } }; }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js index 3bc503cac71d4..737c675d3440d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js index 637708c70dfa2..0bcc0b1fb071e 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js index 3e65103e51f4d..d9581b2767d08 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js index 4dc6852bdaae5..5e0c8c0bf8945 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index c5637200db049..4ee751dd7a9f6 100644 --- a/packages/next/src/compiled/react-dom/package.json +++ b/packages/next/src/compiled/react-dom/package.json @@ -67,10 +67,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.25.0-rc-1631855f-20241023" + "scheduler": "0.25.0-rc-02c0e824-20241028" }, "peerDependencies": { - "react": "19.0.0-rc-1631855f-20241023" + "react": "19.0.0-rc-02c0e824-20241028" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-experimental/cjs/react.development.js b/packages/next/src/compiled/react-experimental/cjs/react.development.js index 365fe0aec3093..5e49271347b8a 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -1237,7 +1237,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-experimental/cjs/react.production.js b/packages/next/src/compiled/react-experimental/cjs/react.production.js index 7314f8d1fbb86..4b381a3a9ee05 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -567,4 +567,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js index 95d1dff3b9350..5832a923dc705 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js @@ -978,5 +978,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-experimental-1631855f-20241023"; + exports.version = "19.0.0-experimental-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js index c43640722abc0..8739c7a947057 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js @@ -567,4 +567,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-experimental-1631855f-20241023"; +exports.version = "19.0.0-experimental-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index a72ab0d2ca85e..8eeb6b3ac9724 100644 --- a/packages/next/src/compiled/react-is/package.json +++ b/packages/next/src/compiled/react-is/package.json @@ -1,6 +1,6 @@ { "name": "react-is", - "version": "19.0.0-rc-1631855f-20241023", + "version": "19.0.0-rc-02c0e824-20241028", "description": "Brand checking of React Elements.", "main": "index.js", "sideEffects": false, diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js index a15e7d82fa6f1..f3d84f6f221ce 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2654,10 +2654,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023", + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json index a886d867c9531..34b0d46500a30 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-1631855f-20241023", - "react-dom": "0.0.0-experimental-1631855f-20241023" + "react": "0.0.0-experimental-02c0e824-20241028", + "react-dom": "0.0.0-experimental-02c0e824-20241028" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js index 046431535e061..4ab2e40aecd42 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2450,10 +2450,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-1631855f-20241023", + version: "19.0.0-rc-02c0e824-20241028", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-1631855f-20241023", + reconcilerVersion: "19.0.0-rc-02c0e824-20241028", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/package.json b/packages/next/src/compiled/react-server-dom-turbopack/package.json index 12cb734baff2e..1b7da3b4174bf 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.0.0-rc-1631855f-20241023", - "react-dom": "19.0.0-rc-1631855f-20241023" + "react": "19.0.0-rc-02c0e824-20241028", + "react-dom": "19.0.0-rc-02c0e824-20241028" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js index 9c7bdd61871a1..3a509d145ba45 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js @@ -2669,10 +2669,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-1631855f-20241023", + version: "19.0.0-experimental-02c0e824-20241028", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-1631855f-20241023", + reconcilerVersion: "19.0.0-experimental-02c0e824-20241028", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json index bfbad86e28fc8..650b20c45fc98 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "0.0.0-experimental-1631855f-20241023", - "react-dom": "0.0.0-experimental-1631855f-20241023", + "react": "0.0.0-experimental-02c0e824-20241028", + "react-dom": "0.0.0-experimental-02c0e824-20241028", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js index af27b9155f247..0ad1caa3fc765 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js @@ -2465,10 +2465,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-1631855f-20241023", + version: "19.0.0-rc-02c0e824-20241028", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-1631855f-20241023", + reconcilerVersion: "19.0.0-rc-02c0e824-20241028", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/package.json b/packages/next/src/compiled/react-server-dom-webpack/package.json index 4ae9b7044fb7a..a6e7253194ffb 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "19.0.0-rc-1631855f-20241023", - "react-dom": "19.0.0-rc-1631855f-20241023", + "react": "19.0.0-rc-02c0e824-20241028", + "react-dom": "19.0.0-rc-02c0e824-20241028", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react/cjs/react.development.js b/packages/next/src/compiled/react/cjs/react.development.js index 5b7eeaa95ba43..df7a2a28b166b 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -1520,7 +1520,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index 0e5ce68717f21..06874f567a9b6 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -536,4 +536,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/react/cjs/react.react-server.development.js b/packages/next/src/compiled/react/cjs/react.react-server.development.js index cc71d488fc4d3..c321df4726a00 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.development.js @@ -1117,5 +1117,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-rc-1631855f-20241023"; + exports.version = "19.0.0-rc-02c0e824-20241028"; })(); diff --git a/packages/next/src/compiled/react/cjs/react.react-server.production.js b/packages/next/src/compiled/react/cjs/react.react-server.production.js index 56d6329a01fb6..71808bc65d3ab 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.production.js @@ -424,4 +424,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-rc-1631855f-20241023"; +exports.version = "19.0.0-rc-02c0e824-20241028"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index 4f36da5a9a855..8e3951f5a4b4b 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={686:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a{var t={136:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a