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 1b1f343a9cece..62703f84e6902 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 @@ -9325,33 +9325,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2552; - var JSCompiler_object_inline_stack_2551 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2545; + var JSCompiler_object_inline_stack_2544 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2549 = !1; + var JSCompiler_object_inline_message_2542 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2552 = didSuspend) || - (JSCompiler_object_inline_componentStack_2552 = + (JSCompiler_object_inline_componentStack_2545 = didSuspend) || + (JSCompiler_object_inline_componentStack_2545 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2552 && - ((JSCompiler_object_inline_message_2549 = !0), + JSCompiler_object_inline_componentStack_2545 && + ((JSCompiler_object_inline_message_2542 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2552 = + JSCompiler_object_inline_componentStack_2545 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2549 + JSCompiler_object_inline_message_2542 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2550 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2543 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2550)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2543)) { c: { - var instance = JSCompiler_object_inline_digest_2550; + var instance = JSCompiler_object_inline_digest_2543; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9393,87 +9393,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2550 + JSCompiler_object_inline_digest_2543 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2550 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2543 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2550 && - ((JSCompiler_object_inline_digest_2550 = - JSCompiler_object_inline_digest_2550.dehydrated), - null !== JSCompiler_object_inline_digest_2550) + null !== JSCompiler_object_inline_digest_2543 && + ((JSCompiler_object_inline_digest_2543 = + JSCompiler_object_inline_digest_2543.dehydrated), + null !== JSCompiler_object_inline_digest_2543) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2550) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2543) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2550 = - JSCompiler_object_inline_stack_2551.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2551.fallback; - if (JSCompiler_object_inline_message_2549) + JSCompiler_object_inline_digest_2543 = + JSCompiler_object_inline_stack_2544.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2544.fallback; + if (JSCompiler_object_inline_message_2542) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2551 = + (JSCompiler_object_inline_stack_2544 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2550, + JSCompiler_object_inline_digest_2543, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2549 = workInProgress.child), - (JSCompiler_object_inline_message_2549.memoizedState = + (JSCompiler_object_inline_message_2542 = workInProgress.child), + (JSCompiler_object_inline_message_2542.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2549.childLanes = + (JSCompiler_object_inline_message_2542.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2552, + JSCompiler_object_inline_componentStack_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2551 + JSCompiler_object_inline_stack_2544 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2551.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2544.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2551 = + (JSCompiler_object_inline_stack_2544 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2550, + JSCompiler_object_inline_digest_2543, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2549 = workInProgress.child), - (JSCompiler_object_inline_message_2549.memoizedState = + (JSCompiler_object_inline_message_2542 = workInProgress.child), + (JSCompiler_object_inline_message_2542.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2549.childLanes = + (JSCompiler_object_inline_message_2542.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2552, + JSCompiler_object_inline_componentStack_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2551 + JSCompiler_object_inline_stack_2544 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2550 + JSCompiler_object_inline_digest_2543 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2550 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2550) + ((JSCompiler_object_inline_digest_2543 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2543) ) { if (didSuspend) workInProgress.flags & 256 @@ -9490,94 +9490,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2549 = - JSCompiler_object_inline_stack_2551.fallback), - (JSCompiler_object_inline_digest_2550 = workInProgress.mode), - (JSCompiler_object_inline_stack_2551 = + (JSCompiler_object_inline_message_2542 = + JSCompiler_object_inline_stack_2544.fallback), + (JSCompiler_object_inline_digest_2543 = workInProgress.mode), + (JSCompiler_object_inline_stack_2544 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2551.children + children: JSCompiler_object_inline_stack_2544.children }, - JSCompiler_object_inline_digest_2550 + JSCompiler_object_inline_digest_2543 )), - (JSCompiler_object_inline_message_2549 = + (JSCompiler_object_inline_message_2542 = createFiberFromFragment( - JSCompiler_object_inline_message_2549, - JSCompiler_object_inline_digest_2550, + JSCompiler_object_inline_message_2542, + JSCompiler_object_inline_digest_2543, renderLanes, null )), - (JSCompiler_object_inline_message_2549.flags |= 2), - (JSCompiler_object_inline_stack_2551.return = workInProgress), - (JSCompiler_object_inline_message_2549.return = workInProgress), - (JSCompiler_object_inline_stack_2551.sibling = - JSCompiler_object_inline_message_2549), - (workInProgress.child = JSCompiler_object_inline_stack_2551), + (JSCompiler_object_inline_message_2542.flags |= 2), + (JSCompiler_object_inline_stack_2544.return = workInProgress), + (JSCompiler_object_inline_message_2542.return = workInProgress), + (JSCompiler_object_inline_stack_2544.sibling = + JSCompiler_object_inline_message_2542), + (workInProgress.child = JSCompiler_object_inline_stack_2544), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2551 = workInProgress.child), - (JSCompiler_object_inline_stack_2551.memoizedState = + (JSCompiler_object_inline_stack_2544 = workInProgress.child), + (JSCompiler_object_inline_stack_2544.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2551.childLanes = + (JSCompiler_object_inline_stack_2544.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2552, + JSCompiler_object_inline_componentStack_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2549)); + (workInProgress = JSCompiler_object_inline_message_2542)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2550)) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2543)) ) { - JSCompiler_object_inline_componentStack_2552 = - JSCompiler_object_inline_digest_2550.nextSibling && - JSCompiler_object_inline_digest_2550.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2552) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2552.dgst; - var message = JSCompiler_object_inline_componentStack_2552.msg; - instance = JSCompiler_object_inline_componentStack_2552.stck; + JSCompiler_object_inline_componentStack_2545 = + JSCompiler_object_inline_digest_2543.nextSibling && + JSCompiler_object_inline_digest_2543.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2545) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2545.dgst; + var message = JSCompiler_object_inline_componentStack_2545.msg; + instance = JSCompiler_object_inline_componentStack_2545.stck; var componentStack = - JSCompiler_object_inline_componentStack_2552.cstck; + JSCompiler_object_inline_componentStack_2545.cstck; } - JSCompiler_object_inline_message_2549 = message; - JSCompiler_object_inline_digest_2550 = JSCompiler_temp; - JSCompiler_object_inline_stack_2551 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2552 = + JSCompiler_object_inline_message_2542 = message; + JSCompiler_object_inline_digest_2543 = JSCompiler_temp; + JSCompiler_object_inline_stack_2544 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2545 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2550 && - ((JSCompiler_object_inline_componentStack_2552 = - JSCompiler_object_inline_message_2549 - ? Error(JSCompiler_object_inline_message_2549) + "POSTPONE" !== JSCompiler_object_inline_digest_2543 && + ((JSCompiler_object_inline_componentStack_2545 = + JSCompiler_object_inline_message_2542 + ? Error(JSCompiler_object_inline_message_2542) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2552.stack = - JSCompiler_object_inline_stack_2551 || ""), - (JSCompiler_object_inline_componentStack_2552.digest = - JSCompiler_object_inline_digest_2550), - (JSCompiler_object_inline_stack_2551 = + (JSCompiler_object_inline_componentStack_2545.stack = + JSCompiler_object_inline_stack_2544 || ""), + (JSCompiler_object_inline_componentStack_2545.digest = + JSCompiler_object_inline_digest_2543), + (JSCompiler_object_inline_stack_2544 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2549 = { - value: JSCompiler_object_inline_componentStack_2552, + (JSCompiler_object_inline_message_2542 = { + value: JSCompiler_object_inline_componentStack_2545, source: null, - stack: JSCompiler_object_inline_stack_2551 + stack: JSCompiler_object_inline_stack_2544 }), - "string" === typeof JSCompiler_object_inline_stack_2551 && + "string" === typeof JSCompiler_object_inline_stack_2544 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2552, - JSCompiler_object_inline_message_2549 + JSCompiler_object_inline_componentStack_2545, + JSCompiler_object_inline_message_2542 ), - queueHydrationError(JSCompiler_object_inline_message_2549)); + queueHydrationError(JSCompiler_object_inline_message_2542)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9591,44 +9591,44 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2552 = + (JSCompiler_object_inline_componentStack_2545 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2552) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2545) ) { - JSCompiler_object_inline_componentStack_2552 = workInProgressRoot; + JSCompiler_object_inline_componentStack_2545 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_componentStack_2552 && - ((JSCompiler_object_inline_stack_2551 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2551 = - 0 !== (JSCompiler_object_inline_stack_2551 & 42) + null !== JSCompiler_object_inline_componentStack_2545 && + ((JSCompiler_object_inline_stack_2544 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2544 = + 0 !== (JSCompiler_object_inline_stack_2544 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2551 + JSCompiler_object_inline_stack_2544 )), - (JSCompiler_object_inline_stack_2551 = + (JSCompiler_object_inline_stack_2544 = 0 !== - (JSCompiler_object_inline_stack_2551 & - (JSCompiler_object_inline_componentStack_2552.suspendedLanes | + (JSCompiler_object_inline_stack_2544 & + (JSCompiler_object_inline_componentStack_2545.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2551), - 0 !== JSCompiler_object_inline_stack_2551 && - JSCompiler_object_inline_stack_2551 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2544), + 0 !== JSCompiler_object_inline_stack_2544 && + JSCompiler_object_inline_stack_2544 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2551), + ((prevState.retryLane = JSCompiler_object_inline_stack_2544), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2551 + JSCompiler_object_inline_stack_2544 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2552, + JSCompiler_object_inline_componentStack_2545, current, - JSCompiler_object_inline_stack_2551 + JSCompiler_object_inline_stack_2544 ), SelectiveHydrationException) ); - JSCompiler_object_inline_digest_2550.data === + JSCompiler_object_inline_digest_2543.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9636,14 +9636,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2550.data === + JSCompiler_object_inline_digest_2543.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2550.nextSibling + JSCompiler_object_inline_digest_2543.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9661,54 +9661,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2551.children + JSCompiler_object_inline_stack_2544.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2549) + if (JSCompiler_object_inline_message_2542) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2549 = - JSCompiler_object_inline_stack_2551.fallback), - (JSCompiler_object_inline_digest_2550 = workInProgress.mode), + (JSCompiler_object_inline_message_2542 = + JSCompiler_object_inline_stack_2544.fallback), + (JSCompiler_object_inline_digest_2543 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2551 = createWorkInProgress( + (JSCompiler_object_inline_stack_2544 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2551.children + children: JSCompiler_object_inline_stack_2544.children } )), - (JSCompiler_object_inline_stack_2551.subtreeFlags = + (JSCompiler_object_inline_stack_2544.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_message_2549 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2542 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2549 + JSCompiler_object_inline_message_2542 )) - : ((JSCompiler_object_inline_message_2549 = createFiberFromFragment( - JSCompiler_object_inline_message_2549, - JSCompiler_object_inline_digest_2550, + : ((JSCompiler_object_inline_message_2542 = createFiberFromFragment( + JSCompiler_object_inline_message_2542, + JSCompiler_object_inline_digest_2543, renderLanes, null )), - (JSCompiler_object_inline_message_2549.flags |= 2)), - (JSCompiler_object_inline_message_2549.return = workInProgress), - (JSCompiler_object_inline_stack_2551.return = workInProgress), - (JSCompiler_object_inline_stack_2551.sibling = - JSCompiler_object_inline_message_2549), - (workInProgress.child = JSCompiler_object_inline_stack_2551), - (JSCompiler_object_inline_stack_2551 = - JSCompiler_object_inline_message_2549), - (JSCompiler_object_inline_message_2549 = workInProgress.child), - (JSCompiler_object_inline_digest_2550 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2550 - ? (JSCompiler_object_inline_digest_2550 = + (JSCompiler_object_inline_message_2542.flags |= 2)), + (JSCompiler_object_inline_message_2542.return = workInProgress), + (JSCompiler_object_inline_stack_2544.return = workInProgress), + (JSCompiler_object_inline_stack_2544.sibling = + JSCompiler_object_inline_message_2542), + (workInProgress.child = JSCompiler_object_inline_stack_2544), + (JSCompiler_object_inline_stack_2544 = + JSCompiler_object_inline_message_2542), + (JSCompiler_object_inline_message_2542 = workInProgress.child), + (JSCompiler_object_inline_digest_2543 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2543 + ? (JSCompiler_object_inline_digest_2543 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2550.cachePool), + JSCompiler_object_inline_digest_2543.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9716,38 +9716,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2550 = { + (JSCompiler_object_inline_digest_2543 = { baseLanes: - JSCompiler_object_inline_digest_2550.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2543.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2549.memoizedState = - JSCompiler_object_inline_digest_2550), - (JSCompiler_object_inline_message_2549.childLanes = + (JSCompiler_object_inline_message_2542.memoizedState = + JSCompiler_object_inline_digest_2543), + (JSCompiler_object_inline_message_2542.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2552, + JSCompiler_object_inline_componentStack_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2551 + JSCompiler_object_inline_stack_2544 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2551.children + children: JSCompiler_object_inline_stack_2544.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2552 = + ((JSCompiler_object_inline_componentStack_2545 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2552 + null === JSCompiler_object_inline_componentStack_2545 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2552.push(current)); + : JSCompiler_object_inline_componentStack_2545.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -10511,21 +10511,14 @@ (nextHydratableInstance = getNextHydratable( prevSibling.firstChild ))), - (returnFiber = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - returnFiber, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - returnFiber, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -11283,7 +11276,7 @@ 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -11296,12 +11289,10 @@ fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -11311,22 +11302,50 @@ } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; - if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), - before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$1)), - (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (5 === tag || 6 === tag) { + node = node.stateNode; + if (before) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName + ? parent.ownerDocument.body + : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$1); + } + viewTransitionMutationContext = !0; + } else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -11342,7 +11361,12 @@ (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node), (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; @@ -11353,47 +11377,61 @@ (node = node.sibling); } function commitPlacement(finishedWork) { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var parentFiber = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var parentFiber = parent; + break a; } + parent = parent.return; + } + throw Error( + "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + ); + } + switch (parentFiber.tag) { + case 27: + parent = parentFiber.stateNode; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 5: + parent = parentFiber.stateNode; + parentFiber.flags & 32 && + (resetTextContent(parent), (parentFiber.flags &= -33)); + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 3: + case 4: + parent = parentFiber.stateNode.containerInfo; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + parentFiber, + parent + ); + break; + default: throw Error( - "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." ); - } - switch (parentFiber.tag) { - case 27: - parent = parentFiber.stateNode; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 5: - parent = parentFiber.stateNode; - parentFiber.flags & 32 && - (resetTextContent(parent), (parentFiber.flags &= -33)); - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 3: - case 4: - parent = parentFiber.stateNode.containerInfo; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - parentFiber, - parent - ); - break; - default: - throw Error( - "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." - ); - } + } + } + function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + runWithFiberInDEV( + finishedWork, + acquireSingletonInstance, + finishedWork.type, + props, + singleton, + finishedWork + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitBeforeMutationEffects( @@ -12165,11 +12203,11 @@ } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -12329,16 +12367,19 @@ safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), + (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for (finishedRoot = deletedFiber.attributes; finishedRoot.length; ) - deletedFiber.removeAttributeNode(finishedRoot[0]); - detachDeletedInstance(deletedFiber); + runWithFiberInDEV( + deletedFiber, + releaseSingletonInstance, + deletedFiber.stateNode + ); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -12397,8 +12438,14 @@ (deletedFiber = deletedFiber.stateNode), 8 === finishedRoot.nodeType ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) - : 1 === finishedRoot.nodeType && - clearSuspenseBoundary(finishedRoot, deletedFiber), + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; @@ -12556,6 +12603,12 @@ a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -12793,35 +12846,20 @@ ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - i = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - runWithFiberInDEV( - finishedWork, - acquireSingletonInstance, - finishedWork.type, - i, - hoistableRoot, - finishedWork - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork, lanes); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork, lanes); commitReconciliationEffects(finishedWork); @@ -12938,15 +12976,17 @@ (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = + prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = + prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork, lanes); offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -12954,26 +12994,26 @@ root._visibility |= root._pendingVisibility & OffscreenDetached; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { lanes = current = root; try { - (hoistableRoot = lanes.stateNode), - node - ? runWithFiberInDEV(lanes, hideInstance, hoistableRoot) + (i = lanes.stateNode), + hoistableRoot + ? runWithFiberInDEV(lanes, hideInstance, i) : runWithFiberInDEV( lanes, unhideInstance, @@ -12988,15 +13028,15 @@ if (null === current) { lanes = root; try { - (i = lanes.stateNode), - node - ? runWithFiberInDEV(lanes, hideTextInstance, i) - : runWithFiberInDEV( - lanes, - unhideTextInstance, - i, - lanes.memoizedProps - ); + var instance = lanes.stateNode; + hoistableRoot + ? runWithFiberInDEV(lanes, hideTextInstance, instance) + : runWithFiberInDEV( + lanes, + unhideTextInstance, + instance, + lanes.memoizedProps + ); } catch (error) { captureCommitPhaseError(lanes, lanes.return, error); } @@ -13279,8 +13319,13 @@ ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + runWithFiberInDEV( + finishedWork, + releaseSingletonInstance, + finishedWork.stateNode + ); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -13367,8 +13412,9 @@ commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -21152,9 +21198,20 @@ parentInstance.removeChild(child); } function removeChildFromContainer(container, child) { - 8 === container.nodeType - ? container.parentNode.removeChild(child) - : container.removeChild(child); + switch (container.nodeType) { + case 8: + container = container.parentNode; + break; + case 9: + container = container.body; + break; + default: + container = + "HTML" === container.nodeName + ? container.ownerDocument.body + : container; + } + container.removeChild(child); } function clearSuspenseBoundary(parentInstance, suspenseInstance) { var node = suspenseInstance, @@ -21629,6 +21686,11 @@ instance[internalInstanceKey] = internalInstanceHandle; instance[internalPropsKey] = props; } + function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); + } function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() @@ -26822,11 +26884,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26863,10 +26925,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127" + reconcilerVersion: "19.1.0-experimental-c492f975-20250128" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27010,7 +27072,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; "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 438ed6d46dd7f..1752cde346de8 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 @@ -2023,19 +2023,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$285; + var JSCompiler_inline_result$jscomp$287; if (canUseDOM) { - var isSupported$jscomp$inline_423 = "oninput" in document; - if (!isSupported$jscomp$inline_423) { - var element$jscomp$inline_424 = document.createElement("div"); - element$jscomp$inline_424.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_423 = - "function" === typeof element$jscomp$inline_424.oninput; + var isSupported$jscomp$inline_425 = "oninput" in document; + if (!isSupported$jscomp$inline_425) { + var element$jscomp$inline_426 = document.createElement("div"); + element$jscomp$inline_426.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_425 = + "function" === typeof element$jscomp$inline_426.oninput; } - JSCompiler_inline_result$jscomp$285 = isSupported$jscomp$inline_423; - } else JSCompiler_inline_result$jscomp$285 = !1; + JSCompiler_inline_result$jscomp$287 = isSupported$jscomp$inline_425; + } else JSCompiler_inline_result$jscomp$287 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$285 && + JSCompiler_inline_result$jscomp$287 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -7153,21 +7153,14 @@ function beginWork(current, workInProgress, renderLanes) { (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild ))), - (lazyComponent = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - lazyComponent, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - lazyComponent, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -7601,7 +7594,7 @@ function isHostParent(fiber) { 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -7614,12 +7607,10 @@ function getHostSibling(fiber) { fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -7629,21 +7620,48 @@ function getHostSibling(fiber) { } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; - if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$1)), - (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (5 === tag || 6 === tag) { + node = node.stateNode; + if (before) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$1); + } + viewTransitionMutationContext = !0; + } else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -7659,7 +7677,12 @@ function insertOrAppendPlacementNode(node, before, parent) { (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node), (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; @@ -7667,6 +7690,23 @@ function insertOrAppendPlacementNode(node, before, parent) { ) insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); } +function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + for ( + var type = finishedWork.type, attributes = singleton.attributes; + attributes.length; + + ) + singleton.removeAttributeNode(attributes[0]); + setInitialProperties(singleton, type, props); + singleton[internalInstanceKey] = finishedWork; + singleton[internalPropsKey] = props; + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } +} var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, @@ -8372,11 +8412,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } } break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -8491,20 +8531,14 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for ( - nearestMountedAncestor = deletedFiber.attributes; - nearestMountedAncestor.length; - - ) - deletedFiber.removeAttributeNode(nearestMountedAncestor[0]); - detachDeletedInstance(deletedFiber); + releaseSingletonInstance(deletedFiber.stateNode); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -8512,25 +8546,34 @@ function commitDeletionEffectsOnFiber( offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: - prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$122 = hostParentIsContainer; + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$122; + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; if (null !== hostParent) if (hostParentIsContainer) try { - (finishedRoot = hostParent), - (prevHostParent = deletedFiber.stateNode), - 8 === finishedRoot.nodeType - ? finishedRoot.parentNode.removeChild(prevHostParent) - : finishedRoot.removeChild(prevHostParent), - (viewTransitionMutationContext = !0); + switch (hostParent.nodeType) { + case 8: + var parentNode = hostParent.parentNode; + break; + case 9: + parentNode = hostParent.body; + break; + default: + parentNode = + "HTML" === hostParent.nodeName + ? hostParent.ownerDocument.body + : hostParent; + } + parentNode.removeChild(deletedFiber.stateNode); + viewTransitionMutationContext = !0; } catch (error) { captureCommitPhaseError( deletedFiber, @@ -8553,16 +8596,19 @@ function commitDeletionEffectsOnFiber( case 18: null !== hostParent && (hostParentIsContainer - ? ((nearestMountedAncestor = hostParent), + ? ((finishedRoot = hostParent), (deletedFiber = deletedFiber.stateNode), - 8 === nearestMountedAncestor.nodeType - ? clearSuspenseBoundary( - nearestMountedAncestor.parentNode, - deletedFiber - ) - : 1 === nearestMountedAncestor.nodeType && - clearSuspenseBoundary(nearestMountedAncestor, deletedFiber), - retryIfBlockedOn(nearestMountedAncestor)) + 8 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), + retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; case 4: @@ -8690,6 +8736,12 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber, lanes) { a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -8759,112 +8811,111 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - if (flags & 4) - if ( - ((root = null !== current ? current.memoizedState : null), - (flags = finishedWork.memoizedState), - null === current) - ) + if (flags & 4) { + var currentResource = null !== current ? current.memoizedState : null; + flags = finishedWork.memoizedState; + if (null === current) if (null === flags) if (null === finishedWork.stateNode) { a: { flags = finishedWork.type; current = finishedWork.memoizedProps; - root = hoistableRoot.ownerDocument || hoistableRoot; + hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; b: switch (flags) { case "title": - lanes = root.getElementsByTagName("title")[0]; + currentResource = + hoistableRoot.getElementsByTagName("title")[0]; if ( - !lanes || - lanes[internalHoistableMarker] || - lanes[internalInstanceKey] || - "http://www.w3.org/2000/svg" === lanes.namespaceURI || - lanes.hasAttribute("itemprop") + !currentResource || + currentResource[internalHoistableMarker] || + currentResource[internalInstanceKey] || + "http://www.w3.org/2000/svg" === + currentResource.namespaceURI || + currentResource.hasAttribute("itemprop") ) - (lanes = root.createElement(flags)), - root.head.insertBefore( - lanes, - root.querySelector("head > title") + (currentResource = hoistableRoot.createElement(flags)), + hoistableRoot.head.insertBefore( + currentResource, + hoistableRoot.querySelector("head > title") ); - setInitialProperties(lanes, flags, current); - lanes[internalInstanceKey] = finishedWork; - markNodeAsHoistable(lanes); - flags = lanes; + setInitialProperties(currentResource, flags, current); + currentResource[internalInstanceKey] = finishedWork; + markNodeAsHoistable(currentResource); + flags = currentResource; break a; case "link": - if ( - (hoistableRoot = getHydratableHoistableCache( - "link", - "href", - root - ).get(flags + (current.href || ""))) - ) - for (var i = 0; i < hoistableRoot.length; i++) + var maybeNodes = getHydratableHoistableCache( + "link", + "href", + hoistableRoot + ).get(flags + (current.href || "")); + if (maybeNodes) + for (var i = 0; i < maybeNodes.length; i++) if ( - ((lanes = hoistableRoot[i]), - lanes.getAttribute("href") === + ((currentResource = maybeNodes[i]), + currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && - lanes.getAttribute("rel") === + currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && - lanes.getAttribute("title") === + currentResource.getAttribute("title") === (null == current.title ? null : current.title) && - lanes.getAttribute("crossorigin") === + currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) ) { - hoistableRoot.splice(i, 1); + maybeNodes.splice(i, 1); break b; } - lanes = root.createElement(flags); - setInitialProperties(lanes, flags, current); - root.head.appendChild(lanes); + currentResource = hoistableRoot.createElement(flags); + setInitialProperties(currentResource, flags, current); + hoistableRoot.head.appendChild(currentResource); break; case "meta": if ( - (hoistableRoot = getHydratableHoistableCache( + (maybeNodes = getHydratableHoistableCache( "meta", "content", - root + hoistableRoot ).get(flags + (current.content || ""))) ) - for (i = 0; i < hoistableRoot.length; i++) + for (i = 0; i < maybeNodes.length; i++) if ( - ((lanes = hoistableRoot[i]), - lanes.getAttribute("content") === + ((currentResource = maybeNodes[i]), + currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && - lanes.getAttribute("name") === + currentResource.getAttribute("name") === (null == current.name ? null : current.name) && - lanes.getAttribute("property") === + currentResource.getAttribute("property") === (null == current.property ? null : current.property) && - lanes.getAttribute("http-equiv") === + currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && - lanes.getAttribute("charset") === + currentResource.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) ) { - hoistableRoot.splice(i, 1); + maybeNodes.splice(i, 1); break b; } - lanes = root.createElement(flags); - setInitialProperties(lanes, flags, current); - root.head.appendChild(lanes); + currentResource = hoistableRoot.createElement(flags); + setInitialProperties(currentResource, flags, current); + hoistableRoot.head.appendChild(currentResource); break; default: throw Error(formatProdErrorMessage(468, flags)); } - lanes[internalInstanceKey] = finishedWork; - markNodeAsHoistable(lanes); - flags = lanes; + currentResource[internalInstanceKey] = finishedWork; + markNodeAsHoistable(currentResource); + flags = currentResource; } finishedWork.stateNode = flags; } else @@ -8880,12 +8931,12 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { finishedWork.memoizedProps ); else - root !== flags - ? (null === root + currentResource !== flags + ? (null === currentResource ? null !== current.stateNode && ((current = current.stateNode), current.parentNode.removeChild(current)) - : root.count--, + : currentResource.count--, null === flags ? mountHoistable( hoistableRoot, @@ -8904,38 +8955,23 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { finishedWork.memoizedProps, current.memoizedProps ); + } break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - i = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - for ( - var type = finishedWork.type, attributes = hoistableRoot.attributes; - attributes.length; - - ) - hoistableRoot.removeAttributeNode(attributes[0]); - setInitialProperties(hoistableRoot, type, i); - hoistableRoot[internalInstanceKey] = finishedWork; - hoistableRoot[internalPropsKey] = i; - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork, lanes); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork, lanes); commitReconciliationEffects(finishedWork); @@ -8944,20 +8980,21 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { null === current || safelyDetachRef(current, current.return)); if (finishedWork.flags & 32) { - root = finishedWork.stateNode; + hoistableRoot = finishedWork.stateNode; try { - setTextContent(root, ""), (viewTransitionMutationContext = !0); + setTextContent(hoistableRoot, ""), + (viewTransitionMutationContext = !0); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } flags & 4 && null != finishedWork.stateNode && - ((root = finishedWork.memoizedProps), + ((hoistableRoot = finishedWork.memoizedProps), commitHostUpdate( finishedWork, - root, - null !== current ? current.memoizedProps : root + hoistableRoot, + null !== current ? current.memoizedProps : hoistableRoot )); flags & 1024 && (needsFormReset = !0); break; @@ -9023,15 +9060,15 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - type = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = type || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork, lanes); - offscreenSubtreeWasHidden = type; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -9039,38 +9076,38 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { root._visibility |= root._pendingVisibility & 2; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { lanes = current = root; try { - if (((hoistableRoot = lanes.stateNode), node)) - (i = hoistableRoot.style), - "function" === typeof i.setProperty - ? i.setProperty("display", "none", "important") - : (i.display = "none"); + if (((currentResource = lanes.stateNode), hoistableRoot)) + (maybeNodes = currentResource.style), + "function" === typeof maybeNodes.setProperty + ? maybeNodes.setProperty("display", "none", "important") + : (maybeNodes.display = "none"); else { - var instance = lanes.stateNode, - styleProp = lanes.memoizedProps.style, + i = lanes.stateNode; + var styleProp = lanes.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null; - instance.style.display = + i.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim(); @@ -9083,7 +9120,9 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { if (null === current) { lanes = root; try { - lanes.stateNode.nodeValue = node ? "" : lanes.memoizedProps; + lanes.stateNode.nodeValue = hoistableRoot + ? "" + : lanes.memoizedProps; } catch (error) { captureCommitPhaseError(lanes, lanes.return, error); } @@ -9151,44 +9190,42 @@ function commitReconciliationEffects(finishedWork) { var flags = finishedWork.flags; if (flags & 2) { try { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; } - throw Error(formatProdErrorMessage(160)); - } - switch (JSCompiler_inline_result.tag) { - case 27: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode, - before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 5: - var parent$116 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$116, ""), - (JSCompiler_inline_result.flags &= -33)); - var before$117 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$117, parent$116); - break; - case 3: - case 4: - var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, - before$119 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - before$119, - parent$118 - ); - break; - default: - throw Error(formatProdErrorMessage(161)); + parent = parent.return; } + throw Error(formatProdErrorMessage(160)); + } + switch (JSCompiler_inline_result.tag) { + case 27: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode, + before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 5: + var parent$116 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && + (setTextContent(parent$116, ""), + (JSCompiler_inline_result.flags &= -33)); + var before$117 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$117, parent$116); + break; + case 3: + case 4: + var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, + before$119 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + before$119, + parent$118 + ); + break; + default: + throw Error(formatProdErrorMessage(161)); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9381,8 +9418,9 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + releaseSingletonInstance(finishedWork.stateNode); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -9459,8 +9497,9 @@ function recursivelyTraverseReappearLayoutEffects( commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -10529,14 +10568,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$135 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$135 = lastTailNode), + for (var lastTailNode$137 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$137 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$135 + null === lastTailNode$137 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$135.sibling = null); + : (lastTailNode$137.sibling = null); } } function bubbleProperties(completedWork) { @@ -10546,19 +10585,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$136 = completedWork.child; null !== child$136; ) - (newChildLanes |= child$136.lanes | child$136.childLanes), - (subtreeFlags |= child$136.subtreeFlags & 65011712), - (subtreeFlags |= child$136.flags & 65011712), - (child$136.return = completedWork), - (child$136 = child$136.sibling); + for (var child$138 = completedWork.child; null !== child$138; ) + (newChildLanes |= child$138.lanes | child$138.childLanes), + (subtreeFlags |= child$138.subtreeFlags & 65011712), + (subtreeFlags |= child$138.flags & 65011712), + (child$138.return = completedWork), + (child$138 = child$138.sibling); else - for (child$136 = completedWork.child; null !== child$136; ) - (newChildLanes |= child$136.lanes | child$136.childLanes), - (subtreeFlags |= child$136.subtreeFlags), - (subtreeFlags |= child$136.flags), - (child$136.return = completedWork), - (child$136 = child$136.sibling); + for (child$138 = completedWork.child; null !== child$138; ) + (newChildLanes |= child$138.lanes | child$138.childLanes), + (subtreeFlags |= child$138.subtreeFlags), + (subtreeFlags |= child$138.flags), + (child$138.return = completedWork), + (child$138 = child$138.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10857,11 +10896,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$149 = null; + var cache$151 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$149 = newProps.memoizedState.cachePool.pool); - cache$149 !== type && (newProps.flags |= 2048); + (cache$151 = newProps.memoizedState.cachePool.pool); + cache$151 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10886,8 +10925,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$149 = type.rendering; - if (null === cache$149) + cache$151 = type.rendering; + if (null === cache$151) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10895,11 +10934,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$149 = findFirstSuspended(current); - if (null !== cache$149) { + cache$151 = findFirstSuspended(current); + if (null !== cache$151) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$149.updateQueue; + current = cache$151.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10924,7 +10963,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$149)), null !== current)) { + if (((current = findFirstSuspended(cache$151)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10934,7 +10973,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$149.alternate && + !cache$151.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10947,13 +10986,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$149.sibling = workInProgress.child), - (workInProgress.child = cache$149)) + ? ((cache$151.sibling = workInProgress.child), + (workInProgress.child = cache$151)) : ((current = type.last), null !== current - ? (current.sibling = cache$149) - : (workInProgress.child = cache$149), - (type.last = cache$149)); + ? (current.sibling = cache$151) + : (workInProgress.child = cache$151), + (type.last = cache$151)); } if (null !== type.tail) return ( @@ -11703,8 +11742,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) { workLoopSync(); exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$168) { - handleThrow(root, thrownValue$168); + } catch (thrownValue$170) { + handleThrow(root, thrownValue$170); } while (1); lanes && root.shellSuspendCounter++; @@ -11819,8 +11858,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrentByScheduler(); break; - } catch (thrownValue$170) { - handleThrow(root, thrownValue$170); + } catch (thrownValue$172) { + handleThrow(root, thrownValue$172); } while (1); lastContextDependency = currentlyRenderingFiber$1 = null; @@ -12495,14 +12534,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$176 = firstScheduledRoot; null !== root$176; ) { + for (var root$178 = firstScheduledRoot; null !== root$178; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$176.pendingLanes; + var pendingLanes = root$178.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$176.suspendedLanes, - pingedLanes = root$176.pingedLanes; + var suspendedLanes = root$178.suspendedLanes, + pingedLanes = root$178.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -12516,20 +12555,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$176, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$178, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$176, - root$176 === workInProgressRoot ? JSCompiler_inline_result : 0, - null !== root$176.cancelPendingCommit || - -1 !== root$176.timeoutHandle + root$178, + root$178 === workInProgressRoot ? JSCompiler_inline_result : 0, + null !== root$178.cancelPendingCommit || + -1 !== root$178.timeoutHandle )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$176, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$178, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$176, JSCompiler_inline_result)); - root$176 = root$176.next; + performSyncWorkOnRoot(root$178, JSCompiler_inline_result)); + root$178 = root$178.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -12769,20 +12808,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1552 = 0; - i$jscomp$inline_1552 < simpleEventPluginEvents.length; - i$jscomp$inline_1552++ + var i$jscomp$inline_1554 = 0; + i$jscomp$inline_1554 < simpleEventPluginEvents.length; + i$jscomp$inline_1554++ ) { - var eventName$jscomp$inline_1553 = - simpleEventPluginEvents[i$jscomp$inline_1552], - domEventName$jscomp$inline_1554 = - eventName$jscomp$inline_1553.toLowerCase(), - capitalizedEvent$jscomp$inline_1555 = - eventName$jscomp$inline_1553[0].toUpperCase() + - eventName$jscomp$inline_1553.slice(1); + var eventName$jscomp$inline_1555 = + simpleEventPluginEvents[i$jscomp$inline_1554], + domEventName$jscomp$inline_1556 = + eventName$jscomp$inline_1555.toLowerCase(), + capitalizedEvent$jscomp$inline_1557 = + eventName$jscomp$inline_1555[0].toUpperCase() + + eventName$jscomp$inline_1555.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1554, - "on" + capitalizedEvent$jscomp$inline_1555 + domEventName$jscomp$inline_1556, + "on" + capitalizedEvent$jscomp$inline_1557 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13970,34 +14009,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$190 = props[hasSrc]; - if (null != propValue$190) + var propValue$192 = props[hasSrc]; + if (null != propValue$192) switch (hasSrc) { case "name": - hasSrcSet = propValue$190; + hasSrcSet = propValue$192; break; case "type": - propValue = propValue$190; + propValue = propValue$192; break; case "checked": - checked = propValue$190; + checked = propValue$192; break; case "defaultChecked": - defaultChecked = propValue$190; + defaultChecked = propValue$192; break; case "value": - propKey = propValue$190; + propKey = propValue$192; break; case "defaultValue": - defaultValue = propValue$190; + defaultValue = propValue$192; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$190) + if (null != propValue$192) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$190, props, null); + setProp(domElement, tag, hasSrc, propValue$192, props, null); } } initInput( @@ -14134,14 +14173,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$190 in props) - props.hasOwnProperty(propValue$190) && - ((hasSrc = props[propValue$190]), + for (propValue$192 in props) + props.hasOwnProperty(propValue$192) && + ((hasSrc = props[propValue$192]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$190, + propValue$192, hasSrc, props, void 0 @@ -14189,14 +14228,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$207 in nextProps) { - var propKey = nextProps[propKey$207]; - lastProp = lastProps[propKey$207]; + for (var propKey$209 in nextProps) { + var propKey = nextProps[propKey$209]; + lastProp = lastProps[propKey$209]; if ( - nextProps.hasOwnProperty(propKey$207) && + nextProps.hasOwnProperty(propKey$209) && (null != propKey || null != lastProp) ) - switch (propKey$207) { + switch (propKey$209) { case "type": propKey !== lastProp && (viewTransitionMutationContext = !0); type = propKey; @@ -14231,7 +14270,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$207, + propKey$209, propKey, nextProps, lastProp @@ -14250,7 +14289,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$207 = null; + propKey = value = defaultValue = propKey$209 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14282,7 +14321,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { switch (name) { case "value": type !== lastDefaultValue && (viewTransitionMutationContext = !0); - propKey$207 = type; + propKey$209 = type; break; case "defaultValue": type !== lastDefaultValue && (viewTransitionMutationContext = !0); @@ -14305,15 +14344,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$207 - ? updateOptions(domElement, !!lastProps, propKey$207, !1) + null != propKey$209 + ? updateOptions(domElement, !!lastProps, propKey$209, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$207 = null; + propKey = propKey$209 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14338,7 +14377,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { switch (value) { case "value": name !== type && (viewTransitionMutationContext = !0); - propKey$207 = name; + propKey$209 = name; break; case "defaultValue": name !== type && (viewTransitionMutationContext = !0); @@ -14353,17 +14392,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$207, propKey); + updateTextarea(domElement, propKey$209, propKey); return; case "option": - for (var propKey$223 in lastProps) + for (var propKey$225 in lastProps) if ( - ((propKey$207 = lastProps[propKey$223]), - lastProps.hasOwnProperty(propKey$223) && - null != propKey$207 && - !nextProps.hasOwnProperty(propKey$223)) + ((propKey$209 = lastProps[propKey$225]), + lastProps.hasOwnProperty(propKey$225) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$225)) ) - switch (propKey$223) { + switch (propKey$225) { case "selected": domElement.selected = !1; break; @@ -14371,34 +14410,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$223, + propKey$225, null, nextProps, - propKey$207 + propKey$209 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$207 = nextProps[lastDefaultValue]), + ((propKey$209 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$207 !== propKey && - (null != propKey$207 || null != propKey)) + propKey$209 !== propKey && + (null != propKey$209 || null != propKey)) ) switch (lastDefaultValue) { case "selected": - propKey$207 !== propKey && (viewTransitionMutationContext = !0); + propKey$209 !== propKey && (viewTransitionMutationContext = !0); domElement.selected = - propKey$207 && - "function" !== typeof propKey$207 && - "symbol" !== typeof propKey$207; + propKey$209 && + "function" !== typeof propKey$209 && + "symbol" !== typeof propKey$209; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$207, + propKey$209, nextProps, propKey ); @@ -14419,24 +14458,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$228 in lastProps) - (propKey$207 = lastProps[propKey$228]), - lastProps.hasOwnProperty(propKey$228) && - null != propKey$207 && - !nextProps.hasOwnProperty(propKey$228) && - setProp(domElement, tag, propKey$228, null, nextProps, propKey$207); + for (var propKey$230 in lastProps) + (propKey$209 = lastProps[propKey$230]), + lastProps.hasOwnProperty(propKey$230) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$230) && + setProp(domElement, tag, propKey$230, null, nextProps, propKey$209); for (checked in nextProps) if ( - ((propKey$207 = nextProps[checked]), + ((propKey$209 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$207 !== propKey && - (null != propKey$207 || null != propKey)) + propKey$209 !== propKey && + (null != propKey$209 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$207) + if (null != propKey$209) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14444,7 +14483,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$207, + propKey$209, nextProps, propKey ); @@ -14452,49 +14491,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$233 in lastProps) - (propKey$207 = lastProps[propKey$233]), - lastProps.hasOwnProperty(propKey$233) && - void 0 !== propKey$207 && - !nextProps.hasOwnProperty(propKey$233) && + for (var propKey$235 in lastProps) + (propKey$209 = lastProps[propKey$235]), + lastProps.hasOwnProperty(propKey$235) && + void 0 !== propKey$209 && + !nextProps.hasOwnProperty(propKey$235) && setPropOnCustomElement( domElement, tag, - propKey$233, + propKey$235, void 0, nextProps, - propKey$207 + propKey$209 ); for (defaultChecked in nextProps) - (propKey$207 = nextProps[defaultChecked]), + (propKey$209 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$207 === propKey || - (void 0 === propKey$207 && void 0 === propKey) || + propKey$209 === propKey || + (void 0 === propKey$209 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$207, + propKey$209, nextProps, propKey ); return; } } - for (var propKey$238 in lastProps) - (propKey$207 = lastProps[propKey$238]), - lastProps.hasOwnProperty(propKey$238) && - null != propKey$207 && - !nextProps.hasOwnProperty(propKey$238) && - setProp(domElement, tag, propKey$238, null, nextProps, propKey$207); + for (var propKey$240 in lastProps) + (propKey$209 = lastProps[propKey$240]), + lastProps.hasOwnProperty(propKey$240) && + null != propKey$209 && + !nextProps.hasOwnProperty(propKey$240) && + setProp(domElement, tag, propKey$240, null, nextProps, propKey$209); for (lastProp in nextProps) - (propKey$207 = nextProps[lastProp]), + (propKey$209 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$207 === propKey || - (null == propKey$207 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$207, nextProps, propKey); + propKey$209 === propKey || + (null == propKey$209 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$209, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14904,6 +14943,11 @@ function resolveSingletonInstance(type, props, rootContainerInstance) { throw Error(formatProdErrorMessage(451)); } } +function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); +} var preloadPropsMap = new Map(), preconnectsSet = new Set(); function getHoistableRoot(container) { @@ -15203,26 +15247,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$246 = getResourcesFromRoot( + var styles$248 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$247 = styles$246.get(type); - resource$247 || + resource$249 = styles$248.get(type); + resource$249 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$247 = { + (resource$249 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$246.set(type, resource$247), - (styles$246 = JSCompiler_inline_result.querySelector( + styles$248.set(type, resource$249), + (styles$248 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$246._p && - ((resource$247.instance = styles$246), - (resource$247.state.loading = 5)), + !styles$248._p && + ((resource$249.instance = styles$248), + (resource$249.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15235,16 +15279,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$246 || + styles$248 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$247.state + resource$249.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$247; + return resource$249; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15341,37 +15385,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$252 = hoistableRoot.querySelector( + var instance$254 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$252) + if (instance$254) return ( (resource.state.loading |= 4), - (resource.instance = instance$252), - markNodeAsHoistable(instance$252), - instance$252 + (resource.instance = instance$254), + markNodeAsHoistable(instance$254), + instance$254 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$252 = ( + instance$254 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$252); - var linkInstance = instance$252; + markNodeAsHoistable(instance$254); + var linkInstance = instance$254; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$252, "link", instance); + setInitialProperties(instance$254, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$252, props.precedence, hoistableRoot); - return (resource.instance = instance$252); + insertStylesheet(instance$254, props.precedence, hoistableRoot); + return (resource.instance = instance$254); case "script": - instance$252 = getScriptKey(props.src); + instance$254 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$252) + getScriptSelectorFromKey(instance$254) )) ) return ( @@ -15380,7 +15424,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$252))) + if ((styleProps = preloadPropsMap.get(instance$254))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16399,16 +16443,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1801 = React.version; if ( - "19.1.0-experimental-37906d4d-20250127" !== - isomorphicReactPackageVersion$jscomp$inline_1799 + "19.1.0-experimental-c492f975-20250128" !== + isomorphicReactPackageVersion$jscomp$inline_1801 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1799, - "19.1.0-experimental-37906d4d-20250127" + isomorphicReactPackageVersion$jscomp$inline_1801, + "19.1.0-experimental-c492f975-20250128" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16428,24 +16472,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2330 = { +var internals$jscomp$inline_2332 = { bundleType: 0, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127" + reconcilerVersion: "19.1.0-experimental-c492f975-20250128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2333 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2331.isDisabled && - hook$jscomp$inline_2331.supportsFiber + !hook$jscomp$inline_2333.isDisabled && + hook$jscomp$inline_2333.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2331.inject( - internals$jscomp$inline_2330 + (rendererID = hook$jscomp$inline_2333.inject( + internals$jscomp$inline_2332 )), - (injectedHook = hook$jscomp$inline_2331); + (injectedHook = hook$jscomp$inline_2333); } catch (err) {} } exports.createRoot = function (container, options) { @@ -16539,4 +16583,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 0f36a8b5996b8..2caea3d7106a4 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 @@ -9333,33 +9333,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2557; - var JSCompiler_object_inline_stack_2556 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2550; + var JSCompiler_object_inline_stack_2549 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2554 = !1; + var JSCompiler_object_inline_message_2547 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2557 = didSuspend) || - (JSCompiler_object_inline_componentStack_2557 = + (JSCompiler_object_inline_componentStack_2550 = didSuspend) || + (JSCompiler_object_inline_componentStack_2550 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2557 && - ((JSCompiler_object_inline_message_2554 = !0), + JSCompiler_object_inline_componentStack_2550 && + ((JSCompiler_object_inline_message_2547 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2557 = + JSCompiler_object_inline_componentStack_2550 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2554 + JSCompiler_object_inline_message_2547 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2555 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2548 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2555)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2548)) { c: { - var instance = JSCompiler_object_inline_digest_2555; + var instance = JSCompiler_object_inline_digest_2548; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9401,87 +9401,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2555 + JSCompiler_object_inline_digest_2548 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2555 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2548 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2555 && - ((JSCompiler_object_inline_digest_2555 = - JSCompiler_object_inline_digest_2555.dehydrated), - null !== JSCompiler_object_inline_digest_2555) + null !== JSCompiler_object_inline_digest_2548 && + ((JSCompiler_object_inline_digest_2548 = + JSCompiler_object_inline_digest_2548.dehydrated), + null !== JSCompiler_object_inline_digest_2548) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2555) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2548) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2555 = - JSCompiler_object_inline_stack_2556.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2556.fallback; - if (JSCompiler_object_inline_message_2554) + JSCompiler_object_inline_digest_2548 = + JSCompiler_object_inline_stack_2549.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2549.fallback; + if (JSCompiler_object_inline_message_2547) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2556 = + (JSCompiler_object_inline_stack_2549 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2555, + JSCompiler_object_inline_digest_2548, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2554 = workInProgress.child), - (JSCompiler_object_inline_message_2554.memoizedState = + (JSCompiler_object_inline_message_2547 = workInProgress.child), + (JSCompiler_object_inline_message_2547.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2554.childLanes = + (JSCompiler_object_inline_message_2547.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2557, + JSCompiler_object_inline_componentStack_2550, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2556 + JSCompiler_object_inline_stack_2549 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2556.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2549.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2556 = + (JSCompiler_object_inline_stack_2549 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2555, + JSCompiler_object_inline_digest_2548, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2554 = workInProgress.child), - (JSCompiler_object_inline_message_2554.memoizedState = + (JSCompiler_object_inline_message_2547 = workInProgress.child), + (JSCompiler_object_inline_message_2547.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2554.childLanes = + (JSCompiler_object_inline_message_2547.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2557, + JSCompiler_object_inline_componentStack_2550, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2556 + JSCompiler_object_inline_stack_2549 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2555 + JSCompiler_object_inline_digest_2548 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2555 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2555) + ((JSCompiler_object_inline_digest_2548 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2548) ) { if (didSuspend) workInProgress.flags & 256 @@ -9498,94 +9498,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2554 = - JSCompiler_object_inline_stack_2556.fallback), - (JSCompiler_object_inline_digest_2555 = workInProgress.mode), - (JSCompiler_object_inline_stack_2556 = + (JSCompiler_object_inline_message_2547 = + JSCompiler_object_inline_stack_2549.fallback), + (JSCompiler_object_inline_digest_2548 = workInProgress.mode), + (JSCompiler_object_inline_stack_2549 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2556.children + children: JSCompiler_object_inline_stack_2549.children }, - JSCompiler_object_inline_digest_2555 + JSCompiler_object_inline_digest_2548 )), - (JSCompiler_object_inline_message_2554 = + (JSCompiler_object_inline_message_2547 = createFiberFromFragment( - JSCompiler_object_inline_message_2554, - JSCompiler_object_inline_digest_2555, + JSCompiler_object_inline_message_2547, + JSCompiler_object_inline_digest_2548, renderLanes, null )), - (JSCompiler_object_inline_message_2554.flags |= 2), - (JSCompiler_object_inline_stack_2556.return = workInProgress), - (JSCompiler_object_inline_message_2554.return = workInProgress), - (JSCompiler_object_inline_stack_2556.sibling = - JSCompiler_object_inline_message_2554), - (workInProgress.child = JSCompiler_object_inline_stack_2556), + (JSCompiler_object_inline_message_2547.flags |= 2), + (JSCompiler_object_inline_stack_2549.return = workInProgress), + (JSCompiler_object_inline_message_2547.return = workInProgress), + (JSCompiler_object_inline_stack_2549.sibling = + JSCompiler_object_inline_message_2547), + (workInProgress.child = JSCompiler_object_inline_stack_2549), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2556 = workInProgress.child), - (JSCompiler_object_inline_stack_2556.memoizedState = + (JSCompiler_object_inline_stack_2549 = workInProgress.child), + (JSCompiler_object_inline_stack_2549.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2556.childLanes = + (JSCompiler_object_inline_stack_2549.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2557, + JSCompiler_object_inline_componentStack_2550, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2554)); + (workInProgress = JSCompiler_object_inline_message_2547)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2555)) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2548)) ) { - JSCompiler_object_inline_componentStack_2557 = - JSCompiler_object_inline_digest_2555.nextSibling && - JSCompiler_object_inline_digest_2555.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2557) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2557.dgst; - var message = JSCompiler_object_inline_componentStack_2557.msg; - instance = JSCompiler_object_inline_componentStack_2557.stck; + JSCompiler_object_inline_componentStack_2550 = + JSCompiler_object_inline_digest_2548.nextSibling && + JSCompiler_object_inline_digest_2548.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2550) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2550.dgst; + var message = JSCompiler_object_inline_componentStack_2550.msg; + instance = JSCompiler_object_inline_componentStack_2550.stck; var componentStack = - JSCompiler_object_inline_componentStack_2557.cstck; + JSCompiler_object_inline_componentStack_2550.cstck; } - JSCompiler_object_inline_message_2554 = message; - JSCompiler_object_inline_digest_2555 = JSCompiler_temp; - JSCompiler_object_inline_stack_2556 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2557 = + JSCompiler_object_inline_message_2547 = message; + JSCompiler_object_inline_digest_2548 = JSCompiler_temp; + JSCompiler_object_inline_stack_2549 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2550 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2555 && - ((JSCompiler_object_inline_componentStack_2557 = - JSCompiler_object_inline_message_2554 - ? Error(JSCompiler_object_inline_message_2554) + "POSTPONE" !== JSCompiler_object_inline_digest_2548 && + ((JSCompiler_object_inline_componentStack_2550 = + JSCompiler_object_inline_message_2547 + ? Error(JSCompiler_object_inline_message_2547) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2557.stack = - JSCompiler_object_inline_stack_2556 || ""), - (JSCompiler_object_inline_componentStack_2557.digest = - JSCompiler_object_inline_digest_2555), - (JSCompiler_object_inline_stack_2556 = + (JSCompiler_object_inline_componentStack_2550.stack = + JSCompiler_object_inline_stack_2549 || ""), + (JSCompiler_object_inline_componentStack_2550.digest = + JSCompiler_object_inline_digest_2548), + (JSCompiler_object_inline_stack_2549 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2554 = { - value: JSCompiler_object_inline_componentStack_2557, + (JSCompiler_object_inline_message_2547 = { + value: JSCompiler_object_inline_componentStack_2550, source: null, - stack: JSCompiler_object_inline_stack_2556 + stack: JSCompiler_object_inline_stack_2549 }), - "string" === typeof JSCompiler_object_inline_stack_2556 && + "string" === typeof JSCompiler_object_inline_stack_2549 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2557, - JSCompiler_object_inline_message_2554 + JSCompiler_object_inline_componentStack_2550, + JSCompiler_object_inline_message_2547 ), - queueHydrationError(JSCompiler_object_inline_message_2554)); + queueHydrationError(JSCompiler_object_inline_message_2547)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9599,44 +9599,44 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2557 = + (JSCompiler_object_inline_componentStack_2550 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2557) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2550) ) { - JSCompiler_object_inline_componentStack_2557 = workInProgressRoot; + JSCompiler_object_inline_componentStack_2550 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_componentStack_2557 && - ((JSCompiler_object_inline_stack_2556 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2556 = - 0 !== (JSCompiler_object_inline_stack_2556 & 42) + null !== JSCompiler_object_inline_componentStack_2550 && + ((JSCompiler_object_inline_stack_2549 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2549 = + 0 !== (JSCompiler_object_inline_stack_2549 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2556 + JSCompiler_object_inline_stack_2549 )), - (JSCompiler_object_inline_stack_2556 = + (JSCompiler_object_inline_stack_2549 = 0 !== - (JSCompiler_object_inline_stack_2556 & - (JSCompiler_object_inline_componentStack_2557.suspendedLanes | + (JSCompiler_object_inline_stack_2549 & + (JSCompiler_object_inline_componentStack_2550.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2556), - 0 !== JSCompiler_object_inline_stack_2556 && - JSCompiler_object_inline_stack_2556 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2549), + 0 !== JSCompiler_object_inline_stack_2549 && + JSCompiler_object_inline_stack_2549 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2556), + ((prevState.retryLane = JSCompiler_object_inline_stack_2549), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2556 + JSCompiler_object_inline_stack_2549 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2557, + JSCompiler_object_inline_componentStack_2550, current, - JSCompiler_object_inline_stack_2556 + JSCompiler_object_inline_stack_2549 ), SelectiveHydrationException) ); - JSCompiler_object_inline_digest_2555.data === + JSCompiler_object_inline_digest_2548.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9644,14 +9644,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2555.data === + JSCompiler_object_inline_digest_2548.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2555.nextSibling + JSCompiler_object_inline_digest_2548.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9669,54 +9669,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2556.children + JSCompiler_object_inline_stack_2549.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2554) + if (JSCompiler_object_inline_message_2547) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2554 = - JSCompiler_object_inline_stack_2556.fallback), - (JSCompiler_object_inline_digest_2555 = workInProgress.mode), + (JSCompiler_object_inline_message_2547 = + JSCompiler_object_inline_stack_2549.fallback), + (JSCompiler_object_inline_digest_2548 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2556 = createWorkInProgress( + (JSCompiler_object_inline_stack_2549 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2556.children + children: JSCompiler_object_inline_stack_2549.children } )), - (JSCompiler_object_inline_stack_2556.subtreeFlags = + (JSCompiler_object_inline_stack_2549.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_message_2554 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2547 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2554 + JSCompiler_object_inline_message_2547 )) - : ((JSCompiler_object_inline_message_2554 = createFiberFromFragment( - JSCompiler_object_inline_message_2554, - JSCompiler_object_inline_digest_2555, + : ((JSCompiler_object_inline_message_2547 = createFiberFromFragment( + JSCompiler_object_inline_message_2547, + JSCompiler_object_inline_digest_2548, renderLanes, null )), - (JSCompiler_object_inline_message_2554.flags |= 2)), - (JSCompiler_object_inline_message_2554.return = workInProgress), - (JSCompiler_object_inline_stack_2556.return = workInProgress), - (JSCompiler_object_inline_stack_2556.sibling = - JSCompiler_object_inline_message_2554), - (workInProgress.child = JSCompiler_object_inline_stack_2556), - (JSCompiler_object_inline_stack_2556 = - JSCompiler_object_inline_message_2554), - (JSCompiler_object_inline_message_2554 = workInProgress.child), - (JSCompiler_object_inline_digest_2555 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2555 - ? (JSCompiler_object_inline_digest_2555 = + (JSCompiler_object_inline_message_2547.flags |= 2)), + (JSCompiler_object_inline_message_2547.return = workInProgress), + (JSCompiler_object_inline_stack_2549.return = workInProgress), + (JSCompiler_object_inline_stack_2549.sibling = + JSCompiler_object_inline_message_2547), + (workInProgress.child = JSCompiler_object_inline_stack_2549), + (JSCompiler_object_inline_stack_2549 = + JSCompiler_object_inline_message_2547), + (JSCompiler_object_inline_message_2547 = workInProgress.child), + (JSCompiler_object_inline_digest_2548 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2548 + ? (JSCompiler_object_inline_digest_2548 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2555.cachePool), + JSCompiler_object_inline_digest_2548.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9724,38 +9724,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2555 = { + (JSCompiler_object_inline_digest_2548 = { baseLanes: - JSCompiler_object_inline_digest_2555.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2548.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2554.memoizedState = - JSCompiler_object_inline_digest_2555), - (JSCompiler_object_inline_message_2554.childLanes = + (JSCompiler_object_inline_message_2547.memoizedState = + JSCompiler_object_inline_digest_2548), + (JSCompiler_object_inline_message_2547.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2557, + JSCompiler_object_inline_componentStack_2550, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2556 + JSCompiler_object_inline_stack_2549 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2556.children + children: JSCompiler_object_inline_stack_2549.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2557 = + ((JSCompiler_object_inline_componentStack_2550 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2557 + null === JSCompiler_object_inline_componentStack_2550 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2557.push(current)); + : JSCompiler_object_inline_componentStack_2550.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -10519,21 +10519,14 @@ (nextHydratableInstance = getNextHydratable( prevSibling.firstChild ))), - (returnFiber = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - returnFiber, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - returnFiber, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -11291,7 +11284,7 @@ 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -11304,12 +11297,10 @@ fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -11319,22 +11310,50 @@ } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; - if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), - before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$2)), - (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (5 === tag || 6 === tag) { + node = node.stateNode; + if (before) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName + ? parent.ownerDocument.body + : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$2); + } + viewTransitionMutationContext = !0; + } else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -11350,7 +11369,12 @@ (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node), (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; @@ -11361,47 +11385,61 @@ (node = node.sibling); } function commitPlacement(finishedWork) { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var parentFiber = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var parentFiber = parent; + break a; } + parent = parent.return; + } + throw Error( + "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + ); + } + switch (parentFiber.tag) { + case 27: + parent = parentFiber.stateNode; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 5: + parent = parentFiber.stateNode; + parentFiber.flags & 32 && + (resetTextContent(parent), (parentFiber.flags &= -33)); + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 3: + case 4: + parent = parentFiber.stateNode.containerInfo; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + parentFiber, + parent + ); + break; + default: throw Error( - "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." ); - } - switch (parentFiber.tag) { - case 27: - parent = parentFiber.stateNode; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 5: - parent = parentFiber.stateNode; - parentFiber.flags & 32 && - (resetTextContent(parent), (parentFiber.flags &= -33)); - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 3: - case 4: - parent = parentFiber.stateNode.containerInfo; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - parentFiber, - parent - ); - break; - default: - throw Error( - "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." - ); - } + } + } + function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + runWithFiberInDEV( + finishedWork, + acquireSingletonInstance, + finishedWork.type, + props, + singleton, + finishedWork + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitBeforeMutationEffects( @@ -12173,11 +12211,11 @@ } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -12337,16 +12375,19 @@ safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), + (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for (finishedRoot = deletedFiber.attributes; finishedRoot.length; ) - deletedFiber.removeAttributeNode(finishedRoot[0]); - detachDeletedInstance(deletedFiber); + runWithFiberInDEV( + deletedFiber, + releaseSingletonInstance, + deletedFiber.stateNode + ); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -12405,8 +12446,14 @@ (deletedFiber = deletedFiber.stateNode), 8 === finishedRoot.nodeType ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) - : 1 === finishedRoot.nodeType && - clearSuspenseBoundary(finishedRoot, deletedFiber), + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; @@ -12564,6 +12611,12 @@ a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -12801,35 +12854,20 @@ ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - i = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - runWithFiberInDEV( - finishedWork, - acquireSingletonInstance, - finishedWork.type, - i, - hoistableRoot, - finishedWork - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork, lanes); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork, lanes); commitReconciliationEffects(finishedWork); @@ -12946,15 +12984,17 @@ (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = + prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = + prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork, lanes); offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -12962,26 +13002,26 @@ root._visibility |= root._pendingVisibility & OffscreenDetached; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { lanes = current = root; try { - (hoistableRoot = lanes.stateNode), - node - ? runWithFiberInDEV(lanes, hideInstance, hoistableRoot) + (i = lanes.stateNode), + hoistableRoot + ? runWithFiberInDEV(lanes, hideInstance, i) : runWithFiberInDEV( lanes, unhideInstance, @@ -12996,15 +13036,15 @@ if (null === current) { lanes = root; try { - (i = lanes.stateNode), - node - ? runWithFiberInDEV(lanes, hideTextInstance, i) - : runWithFiberInDEV( - lanes, - unhideTextInstance, - i, - lanes.memoizedProps - ); + var instance = lanes.stateNode; + hoistableRoot + ? runWithFiberInDEV(lanes, hideTextInstance, instance) + : runWithFiberInDEV( + lanes, + unhideTextInstance, + instance, + lanes.memoizedProps + ); } catch (error) { captureCommitPhaseError(lanes, lanes.return, error); } @@ -13287,8 +13327,13 @@ ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + runWithFiberInDEV( + finishedWork, + releaseSingletonInstance, + finishedWork.stateNode + ); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -13375,8 +13420,9 @@ commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -21160,9 +21206,20 @@ parentInstance.removeChild(child); } function removeChildFromContainer(container, child) { - 8 === container.nodeType - ? container.parentNode.removeChild(child) - : container.removeChild(child); + switch (container.nodeType) { + case 8: + container = container.parentNode; + break; + case 9: + container = container.body; + break; + default: + container = + "HTML" === container.nodeName + ? container.ownerDocument.body + : container; + } + container.removeChild(child); } function clearSuspenseBoundary(parentInstance, suspenseInstance) { var node = suspenseInstance, @@ -21637,6 +21694,11 @@ instance[internalInstanceKey] = internalInstanceHandle; instance[internalPropsKey] = props; } + function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); + } function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() @@ -26875,11 +26937,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26916,10 +26978,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127" + reconcilerVersion: "19.1.0-experimental-c492f975-20250128" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27393,7 +27455,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; "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 e767cc81aa4c4..2730e65fc5ab1 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 @@ -2116,19 +2116,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$308; + var JSCompiler_inline_result$jscomp$310; if (canUseDOM) { - var isSupported$jscomp$inline_447 = "oninput" in document; - if (!isSupported$jscomp$inline_447) { - var element$jscomp$inline_448 = document.createElement("div"); - element$jscomp$inline_448.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_447 = - "function" === typeof element$jscomp$inline_448.oninput; + var isSupported$jscomp$inline_449 = "oninput" in document; + if (!isSupported$jscomp$inline_449) { + var element$jscomp$inline_450 = document.createElement("div"); + element$jscomp$inline_450.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_449 = + "function" === typeof element$jscomp$inline_450.oninput; } - JSCompiler_inline_result$jscomp$308 = isSupported$jscomp$inline_447; - } else JSCompiler_inline_result$jscomp$308 = !1; + JSCompiler_inline_result$jscomp$310 = isSupported$jscomp$inline_449; + } else JSCompiler_inline_result$jscomp$310 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$308 && + JSCompiler_inline_result$jscomp$310 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -7631,21 +7631,14 @@ function beginWork(current, workInProgress, renderLanes) { (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild ))), - (lazyComponent = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - lazyComponent, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - lazyComponent, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -8199,7 +8192,7 @@ function isHostParent(fiber) { 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -8212,12 +8205,10 @@ function getHostSibling(fiber) { fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -8227,21 +8218,48 @@ function getHostSibling(fiber) { } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; - if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$2)), - (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (5 === tag || 6 === tag) { + node = node.stateNode; + if (before) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$2); + } + viewTransitionMutationContext = !0; + } else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -8257,7 +8275,12 @@ function insertOrAppendPlacementNode(node, before, parent) { (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node), (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; @@ -8265,6 +8288,23 @@ function insertOrAppendPlacementNode(node, before, parent) { ) insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); } +function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + for ( + var type = finishedWork.type, attributes = singleton.attributes; + attributes.length; + + ) + singleton.removeAttributeNode(attributes[0]); + setInitialProperties(singleton, type, props); + singleton[internalInstanceKey] = finishedWork; + singleton[internalPropsKey] = props; + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } +} var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, @@ -9006,11 +9046,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -9146,20 +9186,14 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for ( - nearestMountedAncestor = deletedFiber.attributes; - nearestMountedAncestor.length; - - ) - deletedFiber.removeAttributeNode(nearestMountedAncestor[0]); - detachDeletedInstance(deletedFiber); + releaseSingletonInstance(deletedFiber.stateNode); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -9167,25 +9201,34 @@ function commitDeletionEffectsOnFiber( offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: - prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$131 = hostParentIsContainer; + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$131; + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; if (null !== hostParent) if (hostParentIsContainer) try { - (finishedRoot = hostParent), - (prevHostParent = deletedFiber.stateNode), - 8 === finishedRoot.nodeType - ? finishedRoot.parentNode.removeChild(prevHostParent) - : finishedRoot.removeChild(prevHostParent), - (viewTransitionMutationContext = !0); + switch (hostParent.nodeType) { + case 8: + var parentNode = hostParent.parentNode; + break; + case 9: + parentNode = hostParent.body; + break; + default: + parentNode = + "HTML" === hostParent.nodeName + ? hostParent.ownerDocument.body + : hostParent; + } + parentNode.removeChild(deletedFiber.stateNode); + viewTransitionMutationContext = !0; } catch (error) { captureCommitPhaseError( deletedFiber, @@ -9208,16 +9251,19 @@ function commitDeletionEffectsOnFiber( case 18: null !== hostParent && (hostParentIsContainer - ? ((nearestMountedAncestor = hostParent), + ? ((finishedRoot = hostParent), (deletedFiber = deletedFiber.stateNode), - 8 === nearestMountedAncestor.nodeType - ? clearSuspenseBoundary( - nearestMountedAncestor.parentNode, - deletedFiber - ) - : 1 === nearestMountedAncestor.nodeType && - clearSuspenseBoundary(nearestMountedAncestor, deletedFiber), - retryIfBlockedOn(nearestMountedAncestor)) + 8 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), + retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; case 4: @@ -9351,6 +9397,12 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber, lanes) { a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -9569,36 +9621,20 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - i = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - for ( - var type = finishedWork.type, attributes = hoistableRoot.attributes; - attributes.length; - - ) - hoistableRoot.removeAttributeNode(attributes[0]); - setInitialProperties(hoistableRoot, type, i); - hoistableRoot[internalInstanceKey] = finishedWork; - hoistableRoot[internalPropsKey] = i; - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork, lanes); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork, lanes); commitReconciliationEffects(finishedWork); @@ -9691,15 +9727,15 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - type = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = type || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork, lanes); - offscreenSubtreeWasHidden = type; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -9707,29 +9743,29 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { root._visibility |= root._pendingVisibility & 2; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { lanes = current = root; try { - if (((hoistableRoot = lanes.stateNode), node)) - (i = hoistableRoot.style), - "function" === typeof i.setProperty - ? i.setProperty("display", "none", "important") - : (i.display = "none"); - else { + if (((i = lanes.stateNode), hoistableRoot)) { + var style = i.style; + "function" === typeof style.setProperty + ? style.setProperty("display", "none", "important") + : (style.display = "none"); + } else { var instance = lanes.stateNode, styleProp = lanes.memoizedProps.style, display = @@ -9751,7 +9787,9 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { if (null === current) { lanes = root; try { - lanes.stateNode.nodeValue = node ? "" : lanes.memoizedProps; + lanes.stateNode.nodeValue = hoistableRoot + ? "" + : lanes.memoizedProps; } catch (error) { captureCommitPhaseError(lanes, lanes.return, error); } @@ -9832,44 +9870,42 @@ function commitReconciliationEffects(finishedWork) { var flags = finishedWork.flags; if (flags & 2) { try { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; } - throw Error(formatProdErrorMessage(160)); - } - switch (JSCompiler_inline_result.tag) { - case 27: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode, - before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 5: - var parent$124 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$124, ""), - (JSCompiler_inline_result.flags &= -33)); - var before$125 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$125, parent$124); - break; - case 3: - case 4: - var parent$126 = JSCompiler_inline_result.stateNode.containerInfo, - before$127 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - before$127, - parent$126 - ); - break; - default: - throw Error(formatProdErrorMessage(161)); + parent = parent.return; } + throw Error(formatProdErrorMessage(160)); + } + switch (JSCompiler_inline_result.tag) { + case 27: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode, + before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 5: + var parent$124 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && + (setTextContent(parent$124, ""), + (JSCompiler_inline_result.flags &= -33)); + var before$125 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$125, parent$124); + break; + case 3: + case 4: + var parent$126 = JSCompiler_inline_result.stateNode.containerInfo, + before$127 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + before$127, + parent$126 + ); + break; + default: + throw Error(formatProdErrorMessage(161)); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -10064,8 +10100,9 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + releaseSingletonInstance(finishedWork.stateNode); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -10157,8 +10194,9 @@ function recursivelyTraverseReappearLayoutEffects( commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -11478,14 +11516,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$150 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$150 = lastTailNode), + for (var lastTailNode$152 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$152 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$150 + null === lastTailNode$152 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$150.sibling = null); + : (lastTailNode$152.sibling = null); } } function bubbleProperties(completedWork) { @@ -11497,53 +11535,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$152 = completedWork.selfBaseDuration, - child$153 = completedWork.child; - null !== child$153; + var treeBaseDuration$154 = completedWork.selfBaseDuration, + child$155 = completedWork.child; + null !== child$155; ) - (newChildLanes |= child$153.lanes | child$153.childLanes), - (subtreeFlags |= child$153.subtreeFlags & 65011712), - (subtreeFlags |= child$153.flags & 65011712), - (treeBaseDuration$152 += child$153.treeBaseDuration), - (child$153 = child$153.sibling); - completedWork.treeBaseDuration = treeBaseDuration$152; + (newChildLanes |= child$155.lanes | child$155.childLanes), + (subtreeFlags |= child$155.subtreeFlags & 65011712), + (subtreeFlags |= child$155.flags & 65011712), + (treeBaseDuration$154 += child$155.treeBaseDuration), + (child$155 = child$155.sibling); + completedWork.treeBaseDuration = treeBaseDuration$154; } else for ( - treeBaseDuration$152 = completedWork.child; - null !== treeBaseDuration$152; + treeBaseDuration$154 = completedWork.child; + null !== treeBaseDuration$154; ) (newChildLanes |= - treeBaseDuration$152.lanes | treeBaseDuration$152.childLanes), - (subtreeFlags |= treeBaseDuration$152.subtreeFlags & 65011712), - (subtreeFlags |= treeBaseDuration$152.flags & 65011712), - (treeBaseDuration$152.return = completedWork), - (treeBaseDuration$152 = treeBaseDuration$152.sibling); + treeBaseDuration$154.lanes | treeBaseDuration$154.childLanes), + (subtreeFlags |= treeBaseDuration$154.subtreeFlags & 65011712), + (subtreeFlags |= treeBaseDuration$154.flags & 65011712), + (treeBaseDuration$154.return = completedWork), + (treeBaseDuration$154 = treeBaseDuration$154.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$152 = completedWork.actualDuration; - child$153 = completedWork.selfBaseDuration; + treeBaseDuration$154 = completedWork.actualDuration; + child$155 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$152 += child.actualDuration), - (child$153 += child.treeBaseDuration), + (treeBaseDuration$154 += child.actualDuration), + (child$155 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$152; - completedWork.treeBaseDuration = child$153; + completedWork.actualDuration = treeBaseDuration$154; + completedWork.treeBaseDuration = child$155; } else for ( - treeBaseDuration$152 = completedWork.child; - null !== treeBaseDuration$152; + treeBaseDuration$154 = completedWork.child; + null !== treeBaseDuration$154; ) (newChildLanes |= - treeBaseDuration$152.lanes | treeBaseDuration$152.childLanes), - (subtreeFlags |= treeBaseDuration$152.subtreeFlags), - (subtreeFlags |= treeBaseDuration$152.flags), - (treeBaseDuration$152.return = completedWork), - (treeBaseDuration$152 = treeBaseDuration$152.sibling); + treeBaseDuration$154.lanes | treeBaseDuration$154.childLanes), + (subtreeFlags |= treeBaseDuration$154.subtreeFlags), + (subtreeFlags |= treeBaseDuration$154.flags), + (treeBaseDuration$154.return = completedWork), + (treeBaseDuration$154 = treeBaseDuration$154.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -11858,11 +11896,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$169 = null; + var cache$171 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$169 = newProps.memoizedState.cachePool.pool); - cache$169 !== type && (newProps.flags |= 2048); + (cache$171 = newProps.memoizedState.cachePool.pool); + cache$171 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -11892,8 +11930,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$169 = type.rendering; - if (null === cache$169) + cache$171 = type.rendering; + if (null === cache$171) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -11901,11 +11939,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$169 = findFirstSuspended(current); - if (null !== cache$169) { + cache$171 = findFirstSuspended(current); + if (null !== cache$171) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$169.updateQueue; + current = cache$171.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -11930,7 +11968,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$169)), null !== current)) { + if (((current = findFirstSuspended(cache$171)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -11940,7 +11978,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$169.alternate && + !cache$171.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -11953,13 +11991,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$169.sibling = workInProgress.child), - (workInProgress.child = cache$169)) + ? ((cache$171.sibling = workInProgress.child), + (workInProgress.child = cache$171)) : ((current = type.last), null !== current - ? (current.sibling = cache$169) - : (workInProgress.child = cache$169), - (type.last = cache$169)); + ? (current.sibling = cache$171) + : (workInProgress.child = cache$171), + (type.last = cache$171)); } if (null !== type.tail) return ( @@ -12934,8 +12972,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) { workLoopSync(); memoizedUpdaters = workInProgressRootExitStatus; break; - } catch (thrownValue$190) { - handleThrow(root, thrownValue$190); + } catch (thrownValue$192) { + handleThrow(root, thrownValue$192); } while (1); lanes && root.shellSuspendCounter++; @@ -13056,8 +13094,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrentByScheduler(); break; - } catch (thrownValue$192) { - handleThrow(root, thrownValue$192); + } catch (thrownValue$194) { + handleThrow(root, thrownValue$194); } while (1); lastContextDependency = currentlyRenderingFiber$1 = null; @@ -13893,14 +13931,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$198 = firstScheduledRoot; null !== root$198; ) { + for (var root$200 = firstScheduledRoot; null !== root$200; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$198.pendingLanes; + var pendingLanes = root$200.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$198.suspendedLanes, - pingedLanes = root$198.pingedLanes; + var suspendedLanes = root$200.suspendedLanes, + pingedLanes = root$200.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -13914,20 +13952,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$198, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$200, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$198, - root$198 === workInProgressRoot ? JSCompiler_inline_result : 0, - null !== root$198.cancelPendingCommit || - -1 !== root$198.timeoutHandle + root$200, + root$200 === workInProgressRoot ? JSCompiler_inline_result : 0, + null !== root$200.cancelPendingCommit || + -1 !== root$200.timeoutHandle )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$198, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$200, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$198, JSCompiler_inline_result)); - root$198 = root$198.next; + performSyncWorkOnRoot(root$200, JSCompiler_inline_result)); + root$200 = root$200.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -14175,20 +14213,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1700 = 0; - i$jscomp$inline_1700 < simpleEventPluginEvents.length; - i$jscomp$inline_1700++ + var i$jscomp$inline_1702 = 0; + i$jscomp$inline_1702 < simpleEventPluginEvents.length; + i$jscomp$inline_1702++ ) { - var eventName$jscomp$inline_1701 = - simpleEventPluginEvents[i$jscomp$inline_1700], - domEventName$jscomp$inline_1702 = - eventName$jscomp$inline_1701.toLowerCase(), - capitalizedEvent$jscomp$inline_1703 = - eventName$jscomp$inline_1701[0].toUpperCase() + - eventName$jscomp$inline_1701.slice(1); + var eventName$jscomp$inline_1703 = + simpleEventPluginEvents[i$jscomp$inline_1702], + domEventName$jscomp$inline_1704 = + eventName$jscomp$inline_1703.toLowerCase(), + capitalizedEvent$jscomp$inline_1705 = + eventName$jscomp$inline_1703[0].toUpperCase() + + eventName$jscomp$inline_1703.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1702, - "on" + capitalizedEvent$jscomp$inline_1703 + domEventName$jscomp$inline_1704, + "on" + capitalizedEvent$jscomp$inline_1705 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15376,34 +15414,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$212 = props[hasSrc]; - if (null != propValue$212) + var propValue$214 = props[hasSrc]; + if (null != propValue$214) switch (hasSrc) { case "name": - hasSrcSet = propValue$212; + hasSrcSet = propValue$214; break; case "type": - propValue = propValue$212; + propValue = propValue$214; break; case "checked": - checked = propValue$212; + checked = propValue$214; break; case "defaultChecked": - defaultChecked = propValue$212; + defaultChecked = propValue$214; break; case "value": - propKey = propValue$212; + propKey = propValue$214; break; case "defaultValue": - defaultValue = propValue$212; + defaultValue = propValue$214; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$212) + if (null != propValue$214) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$212, props, null); + setProp(domElement, tag, hasSrc, propValue$214, props, null); } } initInput( @@ -15540,14 +15578,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$212 in props) - props.hasOwnProperty(propValue$212) && - ((hasSrc = props[propValue$212]), + for (propValue$214 in props) + props.hasOwnProperty(propValue$214) && + ((hasSrc = props[propValue$214]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$212, + propValue$214, hasSrc, props, void 0 @@ -15595,14 +15633,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$229 in nextProps) { - var propKey = nextProps[propKey$229]; - lastProp = lastProps[propKey$229]; + for (var propKey$231 in nextProps) { + var propKey = nextProps[propKey$231]; + lastProp = lastProps[propKey$231]; if ( - nextProps.hasOwnProperty(propKey$229) && + nextProps.hasOwnProperty(propKey$231) && (null != propKey || null != lastProp) ) - switch (propKey$229) { + switch (propKey$231) { case "type": propKey !== lastProp && (viewTransitionMutationContext = !0); type = propKey; @@ -15637,7 +15675,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$229, + propKey$231, propKey, nextProps, lastProp @@ -15656,7 +15694,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$229 = null; + propKey = value = defaultValue = propKey$231 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15688,7 +15726,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { switch (name) { case "value": type !== lastDefaultValue && (viewTransitionMutationContext = !0); - propKey$229 = type; + propKey$231 = type; break; case "defaultValue": type !== lastDefaultValue && (viewTransitionMutationContext = !0); @@ -15711,15 +15749,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$229 - ? updateOptions(domElement, !!lastProps, propKey$229, !1) + null != propKey$231 + ? updateOptions(domElement, !!lastProps, propKey$231, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$229 = null; + propKey = propKey$231 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15744,7 +15782,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { switch (value) { case "value": name !== type && (viewTransitionMutationContext = !0); - propKey$229 = name; + propKey$231 = name; break; case "defaultValue": name !== type && (viewTransitionMutationContext = !0); @@ -15759,17 +15797,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$229, propKey); + updateTextarea(domElement, propKey$231, propKey); return; case "option": - for (var propKey$245 in lastProps) + for (var propKey$247 in lastProps) if ( - ((propKey$229 = lastProps[propKey$245]), - lastProps.hasOwnProperty(propKey$245) && - null != propKey$229 && - !nextProps.hasOwnProperty(propKey$245)) + ((propKey$231 = lastProps[propKey$247]), + lastProps.hasOwnProperty(propKey$247) && + null != propKey$231 && + !nextProps.hasOwnProperty(propKey$247)) ) - switch (propKey$245) { + switch (propKey$247) { case "selected": domElement.selected = !1; break; @@ -15777,34 +15815,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$245, + propKey$247, null, nextProps, - propKey$229 + propKey$231 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$229 = nextProps[lastDefaultValue]), + ((propKey$231 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$229 !== propKey && - (null != propKey$229 || null != propKey)) + propKey$231 !== propKey && + (null != propKey$231 || null != propKey)) ) switch (lastDefaultValue) { case "selected": - propKey$229 !== propKey && (viewTransitionMutationContext = !0); + propKey$231 !== propKey && (viewTransitionMutationContext = !0); domElement.selected = - propKey$229 && - "function" !== typeof propKey$229 && - "symbol" !== typeof propKey$229; + propKey$231 && + "function" !== typeof propKey$231 && + "symbol" !== typeof propKey$231; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$229, + propKey$231, nextProps, propKey ); @@ -15825,24 +15863,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$250 in lastProps) - (propKey$229 = lastProps[propKey$250]), - lastProps.hasOwnProperty(propKey$250) && - null != propKey$229 && - !nextProps.hasOwnProperty(propKey$250) && - setProp(domElement, tag, propKey$250, null, nextProps, propKey$229); + for (var propKey$252 in lastProps) + (propKey$231 = lastProps[propKey$252]), + lastProps.hasOwnProperty(propKey$252) && + null != propKey$231 && + !nextProps.hasOwnProperty(propKey$252) && + setProp(domElement, tag, propKey$252, null, nextProps, propKey$231); for (checked in nextProps) if ( - ((propKey$229 = nextProps[checked]), + ((propKey$231 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$229 !== propKey && - (null != propKey$229 || null != propKey)) + propKey$231 !== propKey && + (null != propKey$231 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$229) + if (null != propKey$231) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15850,7 +15888,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$229, + propKey$231, nextProps, propKey ); @@ -15858,49 +15896,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$255 in lastProps) - (propKey$229 = lastProps[propKey$255]), - lastProps.hasOwnProperty(propKey$255) && - void 0 !== propKey$229 && - !nextProps.hasOwnProperty(propKey$255) && + for (var propKey$257 in lastProps) + (propKey$231 = lastProps[propKey$257]), + lastProps.hasOwnProperty(propKey$257) && + void 0 !== propKey$231 && + !nextProps.hasOwnProperty(propKey$257) && setPropOnCustomElement( domElement, tag, - propKey$255, + propKey$257, void 0, nextProps, - propKey$229 + propKey$231 ); for (defaultChecked in nextProps) - (propKey$229 = nextProps[defaultChecked]), + (propKey$231 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$229 === propKey || - (void 0 === propKey$229 && void 0 === propKey) || + propKey$231 === propKey || + (void 0 === propKey$231 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$229, + propKey$231, nextProps, propKey ); return; } } - for (var propKey$260 in lastProps) - (propKey$229 = lastProps[propKey$260]), - lastProps.hasOwnProperty(propKey$260) && - null != propKey$229 && - !nextProps.hasOwnProperty(propKey$260) && - setProp(domElement, tag, propKey$260, null, nextProps, propKey$229); + for (var propKey$262 in lastProps) + (propKey$231 = lastProps[propKey$262]), + lastProps.hasOwnProperty(propKey$262) && + null != propKey$231 && + !nextProps.hasOwnProperty(propKey$262) && + setProp(domElement, tag, propKey$262, null, nextProps, propKey$231); for (lastProp in nextProps) - (propKey$229 = nextProps[lastProp]), + (propKey$231 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$229 === propKey || - (null == propKey$229 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$229, nextProps, propKey); + propKey$231 === propKey || + (null == propKey$231 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$231, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16319,6 +16357,11 @@ function resolveSingletonInstance(type, props, rootContainerInstance) { throw Error(formatProdErrorMessage(451)); } } +function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); +} var preloadPropsMap = new Map(), preconnectsSet = new Set(); function getHoistableRoot(container) { @@ -16618,26 +16661,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$268 = getResourcesFromRoot( + var styles$270 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$269 = styles$268.get(type); - resource$269 || + resource$271 = styles$270.get(type); + resource$271 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$269 = { + (resource$271 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$268.set(type, resource$269), - (styles$268 = JSCompiler_inline_result.querySelector( + styles$270.set(type, resource$271), + (styles$270 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$268._p && - ((resource$269.instance = styles$268), - (resource$269.state.loading = 5)), + !styles$270._p && + ((resource$271.instance = styles$270), + (resource$271.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16650,16 +16693,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$268 || + styles$270 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$269.state + resource$271.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$269; + return resource$271; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16756,37 +16799,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$274 = hoistableRoot.querySelector( + var instance$276 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$274) + if (instance$276) return ( (resource.state.loading |= 4), - (resource.instance = instance$274), - markNodeAsHoistable(instance$274), - instance$274 + (resource.instance = instance$276), + markNodeAsHoistable(instance$276), + instance$276 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$274 = ( + instance$276 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$274); - var linkInstance = instance$274; + markNodeAsHoistable(instance$276); + var linkInstance = instance$276; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$274, "link", instance); + setInitialProperties(instance$276, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$274, props.precedence, hoistableRoot); - return (resource.instance = instance$274); + insertStylesheet(instance$276, props.precedence, hoistableRoot); + return (resource.instance = instance$276); case "script": - instance$274 = getScriptKey(props.src); + instance$276 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$274) + getScriptSelectorFromKey(instance$276) )) ) return ( @@ -16795,7 +16838,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$274))) + if ((styleProps = preloadPropsMap.get(instance$276))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17831,16 +17874,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1947 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1949 = React.version; if ( - "19.1.0-experimental-37906d4d-20250127" !== - isomorphicReactPackageVersion$jscomp$inline_1947 + "19.1.0-experimental-c492f975-20250128" !== + isomorphicReactPackageVersion$jscomp$inline_1949 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1947, - "19.1.0-experimental-37906d4d-20250127" + isomorphicReactPackageVersion$jscomp$inline_1949, + "19.1.0-experimental-c492f975-20250128" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17860,24 +17903,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2471 = { +var internals$jscomp$inline_2473 = { bundleType: 0, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127" + reconcilerVersion: "19.1.0-experimental-c492f975-20250128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2472 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2474 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2472.isDisabled && - hook$jscomp$inline_2472.supportsFiber + !hook$jscomp$inline_2474.isDisabled && + hook$jscomp$inline_2474.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2472.inject( - internals$jscomp$inline_2471 + (rendererID = hook$jscomp$inline_2474.inject( + internals$jscomp$inline_2473 )), - (injectedHook = hook$jscomp$inline_2472); + (injectedHook = hook$jscomp$inline_2474); } catch (err) {} } function noop() {} @@ -18132,7 +18175,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; "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 a589f2f788862..1cdd35ba12653 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 @@ -9546,5 +9546,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.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 008344d140554..bf6bf41b62b04 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 @@ -6297,4 +6297,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.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 9a8bc6393d105..6bb11d62469f6 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 @@ -9546,5 +9546,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.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 db8eb3156fe21..e3702c41b560c 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 @@ -6391,4 +6391,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.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 b09126f8af3b2..1e2f51e48dbce 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 @@ -8451,11 +8451,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -10233,5 +10233,5 @@ startWork(request); }); }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 2a00630cb49b4..707a42cbbc35f 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 @@ -6828,12 +6828,12 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.1.0-experimental-37906d4d-20250127" + "19.1.0-experimental-c492f975-20250128" ) ); } @@ -7088,4 +7088,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 74b9361d97e99..4e0ce78887de4 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 @@ -6309,13 +6309,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_800 = React.version; if ( - "19.1.0-experimental-37906d4d-20250127" !== + "19.1.0-experimental-c492f975-20250128" !== isomorphicReactPackageVersion$jscomp$inline_800 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_800 + - "\n - react-dom: 19.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6406,4 +6406,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 9b1af83402f7b..0267bd1e99bd9 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 @@ -8474,11 +8474,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -10263,5 +10263,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 c883622db2f5d..bf6f1e9165e50 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 @@ -6937,11 +6937,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -7206,4 +7206,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 55e7e7a795b4c..7db10acb84062 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 @@ -8338,11 +8338,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -10113,5 +10113,5 @@ } }; }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 8c59c4c4fa452..dc282e8dad962 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 @@ -6816,11 +6816,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -7071,4 +7071,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 464475a9bca0e..e07d57382eb68 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 @@ -9366,33 +9366,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2586; - var JSCompiler_object_inline_stack_2585 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2579; + var JSCompiler_object_inline_stack_2578 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2583 = !1; + var JSCompiler_object_inline_message_2576 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2586 = didSuspend) || - (JSCompiler_object_inline_componentStack_2586 = + (JSCompiler_object_inline_componentStack_2579 = didSuspend) || + (JSCompiler_object_inline_componentStack_2579 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2586 && - ((JSCompiler_object_inline_message_2583 = !0), + JSCompiler_object_inline_componentStack_2579 && + ((JSCompiler_object_inline_message_2576 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2586 = + JSCompiler_object_inline_componentStack_2579 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2583 + JSCompiler_object_inline_message_2576 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2584 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2577 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2584)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2577)) { c: { - var instance = JSCompiler_object_inline_digest_2584; + var instance = JSCompiler_object_inline_digest_2577; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9434,87 +9434,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2584 + JSCompiler_object_inline_digest_2577 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2584 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2577 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2584 && - ((JSCompiler_object_inline_digest_2584 = - JSCompiler_object_inline_digest_2584.dehydrated), - null !== JSCompiler_object_inline_digest_2584) + null !== JSCompiler_object_inline_digest_2577 && + ((JSCompiler_object_inline_digest_2577 = + JSCompiler_object_inline_digest_2577.dehydrated), + null !== JSCompiler_object_inline_digest_2577) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2584) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2577) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2584 = - JSCompiler_object_inline_stack_2585.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2585.fallback; - if (JSCompiler_object_inline_message_2583) + JSCompiler_object_inline_digest_2577 = + JSCompiler_object_inline_stack_2578.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2578.fallback; + if (JSCompiler_object_inline_message_2576) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2585 = + (JSCompiler_object_inline_stack_2578 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2584, + JSCompiler_object_inline_digest_2577, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2583 = workInProgress.child), - (JSCompiler_object_inline_message_2583.memoizedState = + (JSCompiler_object_inline_message_2576 = workInProgress.child), + (JSCompiler_object_inline_message_2576.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2583.childLanes = + (JSCompiler_object_inline_message_2576.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2586, + JSCompiler_object_inline_componentStack_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2585 + JSCompiler_object_inline_stack_2578 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2585.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2578.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2585 = + (JSCompiler_object_inline_stack_2578 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2584, + JSCompiler_object_inline_digest_2577, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2583 = workInProgress.child), - (JSCompiler_object_inline_message_2583.memoizedState = + (JSCompiler_object_inline_message_2576 = workInProgress.child), + (JSCompiler_object_inline_message_2576.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2583.childLanes = + (JSCompiler_object_inline_message_2576.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2586, + JSCompiler_object_inline_componentStack_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2585 + JSCompiler_object_inline_stack_2578 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2584 + JSCompiler_object_inline_digest_2577 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2584 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2584) + ((JSCompiler_object_inline_digest_2577 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2577) ) { if (didSuspend) workInProgress.flags & 256 @@ -9531,94 +9531,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2583 = - JSCompiler_object_inline_stack_2585.fallback), - (JSCompiler_object_inline_digest_2584 = workInProgress.mode), - (JSCompiler_object_inline_stack_2585 = + (JSCompiler_object_inline_message_2576 = + JSCompiler_object_inline_stack_2578.fallback), + (JSCompiler_object_inline_digest_2577 = workInProgress.mode), + (JSCompiler_object_inline_stack_2578 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2585.children + children: JSCompiler_object_inline_stack_2578.children }, - JSCompiler_object_inline_digest_2584 + JSCompiler_object_inline_digest_2577 )), - (JSCompiler_object_inline_message_2583 = + (JSCompiler_object_inline_message_2576 = createFiberFromFragment( - JSCompiler_object_inline_message_2583, - JSCompiler_object_inline_digest_2584, + JSCompiler_object_inline_message_2576, + JSCompiler_object_inline_digest_2577, renderLanes, null )), - (JSCompiler_object_inline_message_2583.flags |= 2), - (JSCompiler_object_inline_stack_2585.return = workInProgress), - (JSCompiler_object_inline_message_2583.return = workInProgress), - (JSCompiler_object_inline_stack_2585.sibling = - JSCompiler_object_inline_message_2583), - (workInProgress.child = JSCompiler_object_inline_stack_2585), + (JSCompiler_object_inline_message_2576.flags |= 2), + (JSCompiler_object_inline_stack_2578.return = workInProgress), + (JSCompiler_object_inline_message_2576.return = workInProgress), + (JSCompiler_object_inline_stack_2578.sibling = + JSCompiler_object_inline_message_2576), + (workInProgress.child = JSCompiler_object_inline_stack_2578), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2585 = workInProgress.child), - (JSCompiler_object_inline_stack_2585.memoizedState = + (JSCompiler_object_inline_stack_2578 = workInProgress.child), + (JSCompiler_object_inline_stack_2578.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2585.childLanes = + (JSCompiler_object_inline_stack_2578.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2586, + JSCompiler_object_inline_componentStack_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2583)); + (workInProgress = JSCompiler_object_inline_message_2576)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2584)) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2577)) ) { - JSCompiler_object_inline_componentStack_2586 = - JSCompiler_object_inline_digest_2584.nextSibling && - JSCompiler_object_inline_digest_2584.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2586) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2586.dgst; - var message = JSCompiler_object_inline_componentStack_2586.msg; - instance = JSCompiler_object_inline_componentStack_2586.stck; + JSCompiler_object_inline_componentStack_2579 = + JSCompiler_object_inline_digest_2577.nextSibling && + JSCompiler_object_inline_digest_2577.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2579) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2579.dgst; + var message = JSCompiler_object_inline_componentStack_2579.msg; + instance = JSCompiler_object_inline_componentStack_2579.stck; var componentStack = - JSCompiler_object_inline_componentStack_2586.cstck; + JSCompiler_object_inline_componentStack_2579.cstck; } - JSCompiler_object_inline_message_2583 = message; - JSCompiler_object_inline_digest_2584 = JSCompiler_temp; - JSCompiler_object_inline_stack_2585 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2586 = + JSCompiler_object_inline_message_2576 = message; + JSCompiler_object_inline_digest_2577 = JSCompiler_temp; + JSCompiler_object_inline_stack_2578 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2579 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2584 && - ((JSCompiler_object_inline_componentStack_2586 = - JSCompiler_object_inline_message_2583 - ? Error(JSCompiler_object_inline_message_2583) + "POSTPONE" !== JSCompiler_object_inline_digest_2577 && + ((JSCompiler_object_inline_componentStack_2579 = + JSCompiler_object_inline_message_2576 + ? Error(JSCompiler_object_inline_message_2576) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2586.stack = - JSCompiler_object_inline_stack_2585 || ""), - (JSCompiler_object_inline_componentStack_2586.digest = - JSCompiler_object_inline_digest_2584), - (JSCompiler_object_inline_stack_2585 = + (JSCompiler_object_inline_componentStack_2579.stack = + JSCompiler_object_inline_stack_2578 || ""), + (JSCompiler_object_inline_componentStack_2579.digest = + JSCompiler_object_inline_digest_2577), + (JSCompiler_object_inline_stack_2578 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2583 = { - value: JSCompiler_object_inline_componentStack_2586, + (JSCompiler_object_inline_message_2576 = { + value: JSCompiler_object_inline_componentStack_2579, source: null, - stack: JSCompiler_object_inline_stack_2585 + stack: JSCompiler_object_inline_stack_2578 }), - "string" === typeof JSCompiler_object_inline_stack_2585 && + "string" === typeof JSCompiler_object_inline_stack_2578 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2586, - JSCompiler_object_inline_message_2583 + JSCompiler_object_inline_componentStack_2579, + JSCompiler_object_inline_message_2576 ), - queueHydrationError(JSCompiler_object_inline_message_2583)); + queueHydrationError(JSCompiler_object_inline_message_2576)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9632,44 +9632,44 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2586 = + (JSCompiler_object_inline_componentStack_2579 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2586) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2579) ) { - JSCompiler_object_inline_componentStack_2586 = workInProgressRoot; + JSCompiler_object_inline_componentStack_2579 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_componentStack_2586 && - ((JSCompiler_object_inline_stack_2585 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2585 = - 0 !== (JSCompiler_object_inline_stack_2585 & 42) + null !== JSCompiler_object_inline_componentStack_2579 && + ((JSCompiler_object_inline_stack_2578 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2578 = + 0 !== (JSCompiler_object_inline_stack_2578 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2585 + JSCompiler_object_inline_stack_2578 )), - (JSCompiler_object_inline_stack_2585 = + (JSCompiler_object_inline_stack_2578 = 0 !== - (JSCompiler_object_inline_stack_2585 & - (JSCompiler_object_inline_componentStack_2586.suspendedLanes | + (JSCompiler_object_inline_stack_2578 & + (JSCompiler_object_inline_componentStack_2579.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2585), - 0 !== JSCompiler_object_inline_stack_2585 && - JSCompiler_object_inline_stack_2585 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2578), + 0 !== JSCompiler_object_inline_stack_2578 && + JSCompiler_object_inline_stack_2578 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2585), + ((prevState.retryLane = JSCompiler_object_inline_stack_2578), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2585 + JSCompiler_object_inline_stack_2578 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2586, + JSCompiler_object_inline_componentStack_2579, current, - JSCompiler_object_inline_stack_2585 + JSCompiler_object_inline_stack_2578 ), SelectiveHydrationException) ); - JSCompiler_object_inline_digest_2584.data === + JSCompiler_object_inline_digest_2577.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9677,14 +9677,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2584.data === + JSCompiler_object_inline_digest_2577.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2584.nextSibling + JSCompiler_object_inline_digest_2577.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9702,54 +9702,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2585.children + JSCompiler_object_inline_stack_2578.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2583) + if (JSCompiler_object_inline_message_2576) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2583 = - JSCompiler_object_inline_stack_2585.fallback), - (JSCompiler_object_inline_digest_2584 = workInProgress.mode), + (JSCompiler_object_inline_message_2576 = + JSCompiler_object_inline_stack_2578.fallback), + (JSCompiler_object_inline_digest_2577 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2585 = createWorkInProgress( + (JSCompiler_object_inline_stack_2578 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2585.children + children: JSCompiler_object_inline_stack_2578.children } )), - (JSCompiler_object_inline_stack_2585.subtreeFlags = + (JSCompiler_object_inline_stack_2578.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_message_2583 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2576 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2583 + JSCompiler_object_inline_message_2576 )) - : ((JSCompiler_object_inline_message_2583 = createFiberFromFragment( - JSCompiler_object_inline_message_2583, - JSCompiler_object_inline_digest_2584, + : ((JSCompiler_object_inline_message_2576 = createFiberFromFragment( + JSCompiler_object_inline_message_2576, + JSCompiler_object_inline_digest_2577, renderLanes, null )), - (JSCompiler_object_inline_message_2583.flags |= 2)), - (JSCompiler_object_inline_message_2583.return = workInProgress), - (JSCompiler_object_inline_stack_2585.return = workInProgress), - (JSCompiler_object_inline_stack_2585.sibling = - JSCompiler_object_inline_message_2583), - (workInProgress.child = JSCompiler_object_inline_stack_2585), - (JSCompiler_object_inline_stack_2585 = - JSCompiler_object_inline_message_2583), - (JSCompiler_object_inline_message_2583 = workInProgress.child), - (JSCompiler_object_inline_digest_2584 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2584 - ? (JSCompiler_object_inline_digest_2584 = + (JSCompiler_object_inline_message_2576.flags |= 2)), + (JSCompiler_object_inline_message_2576.return = workInProgress), + (JSCompiler_object_inline_stack_2578.return = workInProgress), + (JSCompiler_object_inline_stack_2578.sibling = + JSCompiler_object_inline_message_2576), + (workInProgress.child = JSCompiler_object_inline_stack_2578), + (JSCompiler_object_inline_stack_2578 = + JSCompiler_object_inline_message_2576), + (JSCompiler_object_inline_message_2576 = workInProgress.child), + (JSCompiler_object_inline_digest_2577 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2577 + ? (JSCompiler_object_inline_digest_2577 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2584.cachePool), + JSCompiler_object_inline_digest_2577.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9757,38 +9757,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2584 = { + (JSCompiler_object_inline_digest_2577 = { baseLanes: - JSCompiler_object_inline_digest_2584.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2577.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2583.memoizedState = - JSCompiler_object_inline_digest_2584), - (JSCompiler_object_inline_message_2583.childLanes = + (JSCompiler_object_inline_message_2576.memoizedState = + JSCompiler_object_inline_digest_2577), + (JSCompiler_object_inline_message_2576.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2586, + JSCompiler_object_inline_componentStack_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2585 + JSCompiler_object_inline_stack_2578 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2585.children + children: JSCompiler_object_inline_stack_2578.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2586 = + ((JSCompiler_object_inline_componentStack_2579 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2586 + null === JSCompiler_object_inline_componentStack_2579 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2586.push(current)); + : JSCompiler_object_inline_componentStack_2579.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -10552,21 +10552,14 @@ (nextHydratableInstance = getNextHydratable( prevSibling.firstChild ))), - (returnFiber = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - returnFiber, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - returnFiber, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -11324,7 +11317,7 @@ 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -11337,12 +11330,10 @@ fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -11352,22 +11343,50 @@ } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; - if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), - before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$1)), - (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (5 === tag || 6 === tag) { + node = node.stateNode; + if (before) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName + ? parent.ownerDocument.body + : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$1); + } + viewTransitionMutationContext = !0; + } else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -11383,7 +11402,12 @@ (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node), (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; @@ -11394,47 +11418,61 @@ (node = node.sibling); } function commitPlacement(finishedWork) { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var parentFiber = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var parentFiber = parent; + break a; } + parent = parent.return; + } + throw Error( + "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + ); + } + switch (parentFiber.tag) { + case 27: + parent = parentFiber.stateNode; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 5: + parent = parentFiber.stateNode; + parentFiber.flags & 32 && + (resetTextContent(parent), (parentFiber.flags &= -33)); + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 3: + case 4: + parent = parentFiber.stateNode.containerInfo; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + parentFiber, + parent + ); + break; + default: throw Error( - "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." ); - } - switch (parentFiber.tag) { - case 27: - parent = parentFiber.stateNode; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 5: - parent = parentFiber.stateNode; - parentFiber.flags & 32 && - (resetTextContent(parent), (parentFiber.flags &= -33)); - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 3: - case 4: - parent = parentFiber.stateNode.containerInfo; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - parentFiber, - parent - ); - break; - default: - throw Error( - "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." - ); - } + } + } + function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + runWithFiberInDEV( + finishedWork, + acquireSingletonInstance, + finishedWork.type, + props, + singleton, + finishedWork + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitBeforeMutationEffects( @@ -12206,11 +12244,11 @@ } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -12370,16 +12408,19 @@ safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), + (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for (finishedRoot = deletedFiber.attributes; finishedRoot.length; ) - deletedFiber.removeAttributeNode(finishedRoot[0]); - detachDeletedInstance(deletedFiber); + runWithFiberInDEV( + deletedFiber, + releaseSingletonInstance, + deletedFiber.stateNode + ); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -12438,8 +12479,14 @@ (deletedFiber = deletedFiber.stateNode), 8 === finishedRoot.nodeType ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) - : 1 === finishedRoot.nodeType && - clearSuspenseBoundary(finishedRoot, deletedFiber), + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; @@ -12597,6 +12644,12 @@ a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -12834,35 +12887,20 @@ ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - i = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - runWithFiberInDEV( - finishedWork, - acquireSingletonInstance, - finishedWork.type, - i, - hoistableRoot, - finishedWork - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork, lanes); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork, lanes); commitReconciliationEffects(finishedWork); @@ -12979,15 +13017,17 @@ (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = + prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = + prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork, lanes); offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -12995,26 +13035,26 @@ root._visibility |= root._pendingVisibility & OffscreenDetached; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { lanes = current = root; try { - (hoistableRoot = lanes.stateNode), - node - ? runWithFiberInDEV(lanes, hideInstance, hoistableRoot) + (i = lanes.stateNode), + hoistableRoot + ? runWithFiberInDEV(lanes, hideInstance, i) : runWithFiberInDEV( lanes, unhideInstance, @@ -13029,15 +13069,15 @@ if (null === current) { lanes = root; try { - (i = lanes.stateNode), - node - ? runWithFiberInDEV(lanes, hideTextInstance, i) - : runWithFiberInDEV( - lanes, - unhideTextInstance, - i, - lanes.memoizedProps - ); + var instance = lanes.stateNode; + hoistableRoot + ? runWithFiberInDEV(lanes, hideTextInstance, instance) + : runWithFiberInDEV( + lanes, + unhideTextInstance, + instance, + lanes.memoizedProps + ); } catch (error) { captureCommitPhaseError(lanes, lanes.return, error); } @@ -13320,8 +13360,13 @@ ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + runWithFiberInDEV( + finishedWork, + releaseSingletonInstance, + finishedWork.stateNode + ); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -13408,8 +13453,9 @@ commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -21375,9 +21421,20 @@ parentInstance.removeChild(child); } function removeChildFromContainer(container, child) { - 8 === container.nodeType - ? container.parentNode.removeChild(child) - : container.removeChild(child); + switch (container.nodeType) { + case 8: + container = container.parentNode; + break; + case 9: + container = container.body; + break; + default: + container = + "HTML" === container.nodeName + ? container.ownerDocument.body + : container; + } + container.removeChild(child); } function clearSuspenseBoundary(parentInstance, suspenseInstance) { var node = suspenseInstance, @@ -21917,6 +21974,11 @@ instance[internalInstanceKey] = internalInstanceHandle; instance[internalPropsKey] = props; } + function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); + } function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() @@ -27156,11 +27218,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-experimental-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-experimental-c492f975-20250128" !== 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.1.0-experimental-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-experimental-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27197,10 +27259,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127" + reconcilerVersion: "19.1.0-experimental-c492f975-20250128" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27510,5 +27572,5 @@ } }; }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 14ce28a69f72b..7c63dcbf15dcd 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 @@ -2109,19 +2109,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$286; + var JSCompiler_inline_result$jscomp$288; if (canUseDOM) { - var isSupported$jscomp$inline_428 = "oninput" in document; - if (!isSupported$jscomp$inline_428) { - var element$jscomp$inline_429 = document.createElement("div"); - element$jscomp$inline_429.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_428 = - "function" === typeof element$jscomp$inline_429.oninput; + 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; } - JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_428; - } else JSCompiler_inline_result$jscomp$286 = !1; + JSCompiler_inline_result$jscomp$288 = isSupported$jscomp$inline_430; + } else JSCompiler_inline_result$jscomp$288 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$286 && + JSCompiler_inline_result$jscomp$288 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -7239,21 +7239,14 @@ function beginWork(current, workInProgress, renderLanes) { (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild ))), - (lazyComponent = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - lazyComponent, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - lazyComponent, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -7687,7 +7680,7 @@ function isHostParent(fiber) { 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -7700,12 +7693,10 @@ function getHostSibling(fiber) { fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -7715,21 +7706,48 @@ function getHostSibling(fiber) { } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; - if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$1)), - (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (5 === tag || 6 === tag) { + node = node.stateNode; + if (before) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$1); + } + viewTransitionMutationContext = !0; + } else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -7745,7 +7763,12 @@ function insertOrAppendPlacementNode(node, before, parent) { (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node), (viewTransitionMutationContext = !0); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; @@ -7753,6 +7776,23 @@ function insertOrAppendPlacementNode(node, before, parent) { ) insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); } +function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + for ( + var type = finishedWork.type, attributes = singleton.attributes; + attributes.length; + + ) + singleton.removeAttributeNode(attributes[0]); + setInitialProperties(singleton, type, props); + singleton[internalInstanceKey] = finishedWork; + singleton[internalPropsKey] = props; + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } +} var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, @@ -8458,11 +8498,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } } break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -8577,20 +8617,14 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for ( - nearestMountedAncestor = deletedFiber.attributes; - nearestMountedAncestor.length; - - ) - deletedFiber.removeAttributeNode(nearestMountedAncestor[0]); - detachDeletedInstance(deletedFiber); + releaseSingletonInstance(deletedFiber.stateNode); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -8598,25 +8632,34 @@ function commitDeletionEffectsOnFiber( offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: - prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$122 = hostParentIsContainer; + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$122; + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; if (null !== hostParent) if (hostParentIsContainer) try { - (finishedRoot = hostParent), - (prevHostParent = deletedFiber.stateNode), - 8 === finishedRoot.nodeType - ? finishedRoot.parentNode.removeChild(prevHostParent) - : finishedRoot.removeChild(prevHostParent), - (viewTransitionMutationContext = !0); + switch (hostParent.nodeType) { + case 8: + var parentNode = hostParent.parentNode; + break; + case 9: + parentNode = hostParent.body; + break; + default: + parentNode = + "HTML" === hostParent.nodeName + ? hostParent.ownerDocument.body + : hostParent; + } + parentNode.removeChild(deletedFiber.stateNode); + viewTransitionMutationContext = !0; } catch (error) { captureCommitPhaseError( deletedFiber, @@ -8639,16 +8682,19 @@ function commitDeletionEffectsOnFiber( case 18: null !== hostParent && (hostParentIsContainer - ? ((nearestMountedAncestor = hostParent), + ? ((finishedRoot = hostParent), (deletedFiber = deletedFiber.stateNode), - 8 === nearestMountedAncestor.nodeType - ? clearSuspenseBoundary( - nearestMountedAncestor.parentNode, - deletedFiber - ) - : 1 === nearestMountedAncestor.nodeType && - clearSuspenseBoundary(nearestMountedAncestor, deletedFiber), - retryIfBlockedOn(nearestMountedAncestor)) + 8 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), + retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; case 4: @@ -8776,6 +8822,12 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber, lanes) { a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -8845,112 +8897,111 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - if (flags & 4) - if ( - ((root = null !== current ? current.memoizedState : null), - (flags = finishedWork.memoizedState), - null === current) - ) + if (flags & 4) { + var currentResource = null !== current ? current.memoizedState : null; + flags = finishedWork.memoizedState; + if (null === current) if (null === flags) if (null === finishedWork.stateNode) { a: { flags = finishedWork.type; current = finishedWork.memoizedProps; - root = hoistableRoot.ownerDocument || hoistableRoot; + hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; b: switch (flags) { case "title": - lanes = root.getElementsByTagName("title")[0]; + currentResource = + hoistableRoot.getElementsByTagName("title")[0]; if ( - !lanes || - lanes[internalHoistableMarker] || - lanes[internalInstanceKey] || - "http://www.w3.org/2000/svg" === lanes.namespaceURI || - lanes.hasAttribute("itemprop") + !currentResource || + currentResource[internalHoistableMarker] || + currentResource[internalInstanceKey] || + "http://www.w3.org/2000/svg" === + currentResource.namespaceURI || + currentResource.hasAttribute("itemprop") ) - (lanes = root.createElement(flags)), - root.head.insertBefore( - lanes, - root.querySelector("head > title") + (currentResource = hoistableRoot.createElement(flags)), + hoistableRoot.head.insertBefore( + currentResource, + hoistableRoot.querySelector("head > title") ); - setInitialProperties(lanes, flags, current); - lanes[internalInstanceKey] = finishedWork; - markNodeAsHoistable(lanes); - flags = lanes; + setInitialProperties(currentResource, flags, current); + currentResource[internalInstanceKey] = finishedWork; + markNodeAsHoistable(currentResource); + flags = currentResource; break a; case "link": - if ( - (hoistableRoot = getHydratableHoistableCache( - "link", - "href", - root - ).get(flags + (current.href || ""))) - ) - for (var i = 0; i < hoistableRoot.length; i++) + var maybeNodes = getHydratableHoistableCache( + "link", + "href", + hoistableRoot + ).get(flags + (current.href || "")); + if (maybeNodes) + for (var i = 0; i < maybeNodes.length; i++) if ( - ((lanes = hoistableRoot[i]), - lanes.getAttribute("href") === + ((currentResource = maybeNodes[i]), + currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && - lanes.getAttribute("rel") === + currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && - lanes.getAttribute("title") === + currentResource.getAttribute("title") === (null == current.title ? null : current.title) && - lanes.getAttribute("crossorigin") === + currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) ) { - hoistableRoot.splice(i, 1); + maybeNodes.splice(i, 1); break b; } - lanes = root.createElement(flags); - setInitialProperties(lanes, flags, current); - root.head.appendChild(lanes); + currentResource = hoistableRoot.createElement(flags); + setInitialProperties(currentResource, flags, current); + hoistableRoot.head.appendChild(currentResource); break; case "meta": if ( - (hoistableRoot = getHydratableHoistableCache( + (maybeNodes = getHydratableHoistableCache( "meta", "content", - root + hoistableRoot ).get(flags + (current.content || ""))) ) - for (i = 0; i < hoistableRoot.length; i++) + for (i = 0; i < maybeNodes.length; i++) if ( - ((lanes = hoistableRoot[i]), - lanes.getAttribute("content") === + ((currentResource = maybeNodes[i]), + currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && - lanes.getAttribute("name") === + currentResource.getAttribute("name") === (null == current.name ? null : current.name) && - lanes.getAttribute("property") === + currentResource.getAttribute("property") === (null == current.property ? null : current.property) && - lanes.getAttribute("http-equiv") === + currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && - lanes.getAttribute("charset") === + currentResource.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) ) { - hoistableRoot.splice(i, 1); + maybeNodes.splice(i, 1); break b; } - lanes = root.createElement(flags); - setInitialProperties(lanes, flags, current); - root.head.appendChild(lanes); + currentResource = hoistableRoot.createElement(flags); + setInitialProperties(currentResource, flags, current); + hoistableRoot.head.appendChild(currentResource); break; default: throw Error(formatProdErrorMessage(468, flags)); } - lanes[internalInstanceKey] = finishedWork; - markNodeAsHoistable(lanes); - flags = lanes; + currentResource[internalInstanceKey] = finishedWork; + markNodeAsHoistable(currentResource); + flags = currentResource; } finishedWork.stateNode = flags; } else @@ -8966,12 +9017,12 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { finishedWork.memoizedProps ); else - root !== flags - ? (null === root + currentResource !== flags + ? (null === currentResource ? null !== current.stateNode && ((current = current.stateNode), current.parentNode.removeChild(current)) - : root.count--, + : currentResource.count--, null === flags ? mountHoistable( hoistableRoot, @@ -8990,38 +9041,23 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { finishedWork.memoizedProps, current.memoizedProps ); + } break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - i = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - for ( - var type = finishedWork.type, attributes = hoistableRoot.attributes; - attributes.length; - - ) - hoistableRoot.removeAttributeNode(attributes[0]); - setInitialProperties(hoistableRoot, type, i); - hoistableRoot[internalInstanceKey] = finishedWork; - hoistableRoot[internalPropsKey] = i; - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork, lanes); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork, lanes); commitReconciliationEffects(finishedWork); @@ -9030,20 +9066,21 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { null === current || safelyDetachRef(current, current.return)); if (finishedWork.flags & 32) { - root = finishedWork.stateNode; + hoistableRoot = finishedWork.stateNode; try { - setTextContent(root, ""), (viewTransitionMutationContext = !0); + setTextContent(hoistableRoot, ""), + (viewTransitionMutationContext = !0); } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } flags & 4 && null != finishedWork.stateNode && - ((root = finishedWork.memoizedProps), + ((hoistableRoot = finishedWork.memoizedProps), commitHostUpdate( finishedWork, - root, - null !== current ? current.memoizedProps : root + hoistableRoot, + null !== current ? current.memoizedProps : hoistableRoot )); flags & 1024 && (needsFormReset = !0); break; @@ -9109,15 +9146,15 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - type = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = type || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork, lanes); - offscreenSubtreeWasHidden = type; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -9125,38 +9162,38 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { root._visibility |= root._pendingVisibility & 2; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { lanes = current = root; try { - if (((hoistableRoot = lanes.stateNode), node)) - (i = hoistableRoot.style), - "function" === typeof i.setProperty - ? i.setProperty("display", "none", "important") - : (i.display = "none"); + if (((currentResource = lanes.stateNode), hoistableRoot)) + (maybeNodes = currentResource.style), + "function" === typeof maybeNodes.setProperty + ? maybeNodes.setProperty("display", "none", "important") + : (maybeNodes.display = "none"); else { - var instance = lanes.stateNode, - styleProp = lanes.memoizedProps.style, + i = lanes.stateNode; + var styleProp = lanes.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null; - instance.style.display = + i.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim(); @@ -9169,7 +9206,9 @@ function commitMutationEffectsOnFiber(finishedWork, root, lanes) { if (null === current) { lanes = root; try { - lanes.stateNode.nodeValue = node ? "" : lanes.memoizedProps; + lanes.stateNode.nodeValue = hoistableRoot + ? "" + : lanes.memoizedProps; } catch (error) { captureCommitPhaseError(lanes, lanes.return, error); } @@ -9237,44 +9276,42 @@ function commitReconciliationEffects(finishedWork) { var flags = finishedWork.flags; if (flags & 2) { try { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; } - throw Error(formatProdErrorMessage(160)); - } - switch (JSCompiler_inline_result.tag) { - case 27: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode, - before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 5: - var parent$116 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$116, ""), - (JSCompiler_inline_result.flags &= -33)); - var before$117 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$117, parent$116); - break; - case 3: - case 4: - var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, - before$119 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - before$119, - parent$118 - ); - break; - default: - throw Error(formatProdErrorMessage(161)); + parent = parent.return; } + throw Error(formatProdErrorMessage(160)); + } + switch (JSCompiler_inline_result.tag) { + case 27: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode, + before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 5: + var parent$116 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && + (setTextContent(parent$116, ""), + (JSCompiler_inline_result.flags &= -33)); + var before$117 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$117, parent$116); + break; + case 3: + case 4: + var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, + before$119 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + before$119, + parent$118 + ); + break; + default: + throw Error(formatProdErrorMessage(161)); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9467,8 +9504,9 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + releaseSingletonInstance(finishedWork.stateNode); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -9545,8 +9583,9 @@ function recursivelyTraverseReappearLayoutEffects( commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -10615,14 +10654,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$135 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$135 = lastTailNode), + for (var lastTailNode$137 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$137 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$135 + null === lastTailNode$137 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$135.sibling = null); + : (lastTailNode$137.sibling = null); } } function bubbleProperties(completedWork) { @@ -10632,19 +10671,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$136 = completedWork.child; null !== child$136; ) - (newChildLanes |= child$136.lanes | child$136.childLanes), - (subtreeFlags |= child$136.subtreeFlags & 65011712), - (subtreeFlags |= child$136.flags & 65011712), - (child$136.return = completedWork), - (child$136 = child$136.sibling); + for (var child$138 = completedWork.child; null !== child$138; ) + (newChildLanes |= child$138.lanes | child$138.childLanes), + (subtreeFlags |= child$138.subtreeFlags & 65011712), + (subtreeFlags |= child$138.flags & 65011712), + (child$138.return = completedWork), + (child$138 = child$138.sibling); else - for (child$136 = completedWork.child; null !== child$136; ) - (newChildLanes |= child$136.lanes | child$136.childLanes), - (subtreeFlags |= child$136.subtreeFlags), - (subtreeFlags |= child$136.flags), - (child$136.return = completedWork), - (child$136 = child$136.sibling); + for (child$138 = completedWork.child; null !== child$138; ) + (newChildLanes |= child$138.lanes | child$138.childLanes), + (subtreeFlags |= child$138.subtreeFlags), + (subtreeFlags |= child$138.flags), + (child$138.return = completedWork), + (child$138 = child$138.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10943,11 +10982,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$149 = null; + var cache$151 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$149 = newProps.memoizedState.cachePool.pool); - cache$149 !== type && (newProps.flags |= 2048); + (cache$151 = newProps.memoizedState.cachePool.pool); + cache$151 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10972,8 +11011,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$149 = type.rendering; - if (null === cache$149) + cache$151 = type.rendering; + if (null === cache$151) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10981,11 +11020,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$149 = findFirstSuspended(current); - if (null !== cache$149) { + cache$151 = findFirstSuspended(current); + if (null !== cache$151) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$149.updateQueue; + current = cache$151.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -11010,7 +11049,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$149)), null !== current)) { + if (((current = findFirstSuspended(cache$151)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -11020,7 +11059,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$149.alternate && + !cache$151.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -11033,13 +11072,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$149.sibling = workInProgress.child), - (workInProgress.child = cache$149)) + ? ((cache$151.sibling = workInProgress.child), + (workInProgress.child = cache$151)) : ((current = type.last), null !== current - ? (current.sibling = cache$149) - : (workInProgress.child = cache$149), - (type.last = cache$149)); + ? (current.sibling = cache$151) + : (workInProgress.child = cache$151), + (type.last = cache$151)); } if (null !== type.tail) return ( @@ -11975,8 +12014,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) { workLoopSync(); exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$169) { - handleThrow(root, thrownValue$169); + } catch (thrownValue$171) { + handleThrow(root, thrownValue$171); } while (1); lanes && root.shellSuspendCounter++; @@ -12091,8 +12130,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrentByScheduler(); break; - } catch (thrownValue$171) { - handleThrow(root, thrownValue$171); + } catch (thrownValue$173) { + handleThrow(root, thrownValue$173); } while (1); lastContextDependency = currentlyRenderingFiber$1 = null; @@ -12767,14 +12806,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$177 = firstScheduledRoot; null !== root$177; ) { + for (var root$179 = firstScheduledRoot; null !== root$179; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$177.pendingLanes; + var pendingLanes = root$179.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$177.suspendedLanes, - pingedLanes = root$177.pingedLanes; + var suspendedLanes = root$179.suspendedLanes, + pingedLanes = root$179.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -12788,20 +12827,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$177, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$179, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$177, - root$177 === workInProgressRoot ? JSCompiler_inline_result : 0, - null !== root$177.cancelPendingCommit || - -1 !== root$177.timeoutHandle + root$179, + root$179 === workInProgressRoot ? JSCompiler_inline_result : 0, + null !== root$179.cancelPendingCommit || + -1 !== root$179.timeoutHandle )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$177, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$179, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$177, JSCompiler_inline_result)); - root$177 = root$177.next; + performSyncWorkOnRoot(root$179, JSCompiler_inline_result)); + root$179 = root$179.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -13041,20 +13080,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1581 = 0; - i$jscomp$inline_1581 < simpleEventPluginEvents.length; - i$jscomp$inline_1581++ + var i$jscomp$inline_1583 = 0; + i$jscomp$inline_1583 < simpleEventPluginEvents.length; + i$jscomp$inline_1583++ ) { - var eventName$jscomp$inline_1582 = - simpleEventPluginEvents[i$jscomp$inline_1581], - domEventName$jscomp$inline_1583 = - eventName$jscomp$inline_1582.toLowerCase(), - capitalizedEvent$jscomp$inline_1584 = - eventName$jscomp$inline_1582[0].toUpperCase() + - eventName$jscomp$inline_1582.slice(1); + var eventName$jscomp$inline_1584 = + simpleEventPluginEvents[i$jscomp$inline_1583], + domEventName$jscomp$inline_1585 = + eventName$jscomp$inline_1584.toLowerCase(), + capitalizedEvent$jscomp$inline_1586 = + eventName$jscomp$inline_1584[0].toUpperCase() + + eventName$jscomp$inline_1584.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1583, - "on" + capitalizedEvent$jscomp$inline_1584 + domEventName$jscomp$inline_1585, + "on" + capitalizedEvent$jscomp$inline_1586 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14242,34 +14281,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$191 = props[hasSrc]; - if (null != propValue$191) + var propValue$193 = props[hasSrc]; + if (null != propValue$193) switch (hasSrc) { case "name": - hasSrcSet = propValue$191; + hasSrcSet = propValue$193; break; case "type": - propValue = propValue$191; + propValue = propValue$193; break; case "checked": - checked = propValue$191; + checked = propValue$193; break; case "defaultChecked": - defaultChecked = propValue$191; + defaultChecked = propValue$193; break; case "value": - propKey = propValue$191; + propKey = propValue$193; break; case "defaultValue": - defaultValue = propValue$191; + defaultValue = propValue$193; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$191) + if (null != propValue$193) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$191, props, null); + setProp(domElement, tag, hasSrc, propValue$193, props, null); } } initInput( @@ -14406,14 +14445,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$191 in props) - props.hasOwnProperty(propValue$191) && - ((hasSrc = props[propValue$191]), + for (propValue$193 in props) + props.hasOwnProperty(propValue$193) && + ((hasSrc = props[propValue$193]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$191, + propValue$193, hasSrc, props, void 0 @@ -14461,14 +14500,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$208 in nextProps) { - var propKey = nextProps[propKey$208]; - lastProp = lastProps[propKey$208]; + for (var propKey$210 in nextProps) { + var propKey = nextProps[propKey$210]; + lastProp = lastProps[propKey$210]; if ( - nextProps.hasOwnProperty(propKey$208) && + nextProps.hasOwnProperty(propKey$210) && (null != propKey || null != lastProp) ) - switch (propKey$208) { + switch (propKey$210) { case "type": propKey !== lastProp && (viewTransitionMutationContext = !0); type = propKey; @@ -14503,7 +14542,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$208, + propKey$210, propKey, nextProps, lastProp @@ -14522,7 +14561,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$208 = null; + propKey = value = defaultValue = propKey$210 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14554,7 +14593,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { switch (name) { case "value": type !== lastDefaultValue && (viewTransitionMutationContext = !0); - propKey$208 = type; + propKey$210 = type; break; case "defaultValue": type !== lastDefaultValue && (viewTransitionMutationContext = !0); @@ -14577,15 +14616,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$208 - ? updateOptions(domElement, !!lastProps, propKey$208, !1) + null != propKey$210 + ? updateOptions(domElement, !!lastProps, propKey$210, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$208 = null; + propKey = propKey$210 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14610,7 +14649,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { switch (value) { case "value": name !== type && (viewTransitionMutationContext = !0); - propKey$208 = name; + propKey$210 = name; break; case "defaultValue": name !== type && (viewTransitionMutationContext = !0); @@ -14625,17 +14664,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$208, propKey); + updateTextarea(domElement, propKey$210, propKey); return; case "option": - for (var propKey$224 in lastProps) + for (var propKey$226 in lastProps) if ( - ((propKey$208 = lastProps[propKey$224]), - lastProps.hasOwnProperty(propKey$224) && - null != propKey$208 && - !nextProps.hasOwnProperty(propKey$224)) + ((propKey$210 = lastProps[propKey$226]), + lastProps.hasOwnProperty(propKey$226) && + null != propKey$210 && + !nextProps.hasOwnProperty(propKey$226)) ) - switch (propKey$224) { + switch (propKey$226) { case "selected": domElement.selected = !1; break; @@ -14643,34 +14682,34 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$224, + propKey$226, null, nextProps, - propKey$208 + propKey$210 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$208 = nextProps[lastDefaultValue]), + ((propKey$210 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$208 !== propKey && - (null != propKey$208 || null != propKey)) + propKey$210 !== propKey && + (null != propKey$210 || null != propKey)) ) switch (lastDefaultValue) { case "selected": - propKey$208 !== propKey && (viewTransitionMutationContext = !0); + propKey$210 !== propKey && (viewTransitionMutationContext = !0); domElement.selected = - propKey$208 && - "function" !== typeof propKey$208 && - "symbol" !== typeof propKey$208; + propKey$210 && + "function" !== typeof propKey$210 && + "symbol" !== typeof propKey$210; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$208, + propKey$210, nextProps, propKey ); @@ -14691,24 +14730,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$229 in lastProps) - (propKey$208 = lastProps[propKey$229]), - lastProps.hasOwnProperty(propKey$229) && - null != propKey$208 && - !nextProps.hasOwnProperty(propKey$229) && - setProp(domElement, tag, propKey$229, null, nextProps, propKey$208); + for (var propKey$231 in lastProps) + (propKey$210 = lastProps[propKey$231]), + lastProps.hasOwnProperty(propKey$231) && + null != propKey$210 && + !nextProps.hasOwnProperty(propKey$231) && + setProp(domElement, tag, propKey$231, null, nextProps, propKey$210); for (checked in nextProps) if ( - ((propKey$208 = nextProps[checked]), + ((propKey$210 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$208 !== propKey && - (null != propKey$208 || null != propKey)) + propKey$210 !== propKey && + (null != propKey$210 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$208) + if (null != propKey$210) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14716,7 +14755,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$208, + propKey$210, nextProps, propKey ); @@ -14724,49 +14763,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$234 in lastProps) - (propKey$208 = lastProps[propKey$234]), - lastProps.hasOwnProperty(propKey$234) && - void 0 !== propKey$208 && - !nextProps.hasOwnProperty(propKey$234) && + for (var propKey$236 in lastProps) + (propKey$210 = lastProps[propKey$236]), + lastProps.hasOwnProperty(propKey$236) && + void 0 !== propKey$210 && + !nextProps.hasOwnProperty(propKey$236) && setPropOnCustomElement( domElement, tag, - propKey$234, + propKey$236, void 0, nextProps, - propKey$208 + propKey$210 ); for (defaultChecked in nextProps) - (propKey$208 = nextProps[defaultChecked]), + (propKey$210 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$208 === propKey || - (void 0 === propKey$208 && void 0 === propKey) || + propKey$210 === propKey || + (void 0 === propKey$210 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$208, + propKey$210, nextProps, propKey ); return; } } - for (var propKey$239 in lastProps) - (propKey$208 = lastProps[propKey$239]), - lastProps.hasOwnProperty(propKey$239) && - null != propKey$208 && - !nextProps.hasOwnProperty(propKey$239) && - setProp(domElement, tag, propKey$239, null, nextProps, propKey$208); + for (var propKey$241 in lastProps) + (propKey$210 = lastProps[propKey$241]), + lastProps.hasOwnProperty(propKey$241) && + null != propKey$210 && + !nextProps.hasOwnProperty(propKey$241) && + setProp(domElement, tag, propKey$241, null, nextProps, propKey$210); for (lastProp in nextProps) - (propKey$208 = nextProps[lastProp]), + (propKey$210 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$208 === propKey || - (null == propKey$208 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$208, nextProps, propKey); + propKey$210 === propKey || + (null == propKey$210 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$210, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15233,6 +15272,11 @@ function resolveSingletonInstance(type, props, rootContainerInstance) { throw Error(formatProdErrorMessage(451)); } } +function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); +} var preloadPropsMap = new Map(), preconnectsSet = new Set(); function getHoistableRoot(container) { @@ -15532,26 +15576,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$247 = getResourcesFromRoot( + var styles$249 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$248 = styles$247.get(type); - resource$248 || + resource$250 = styles$249.get(type); + resource$250 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$248 = { + (resource$250 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$247.set(type, resource$248), - (styles$247 = JSCompiler_inline_result.querySelector( + styles$249.set(type, resource$250), + (styles$249 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$247._p && - ((resource$248.instance = styles$247), - (resource$248.state.loading = 5)), + !styles$249._p && + ((resource$250.instance = styles$249), + (resource$250.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15564,16 +15608,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$247 || + styles$249 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$248.state + resource$250.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$248; + return resource$250; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15670,37 +15714,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$253 = hoistableRoot.querySelector( + var instance$255 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$253) + if (instance$255) return ( (resource.state.loading |= 4), - (resource.instance = instance$253), - markNodeAsHoistable(instance$253), - instance$253 + (resource.instance = instance$255), + markNodeAsHoistable(instance$255), + instance$255 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$253 = ( + instance$255 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$253); - var linkInstance = instance$253; + markNodeAsHoistable(instance$255); + var linkInstance = instance$255; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$253, "link", instance); + setInitialProperties(instance$255, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$253, props.precedence, hoistableRoot); - return (resource.instance = instance$253); + insertStylesheet(instance$255, props.precedence, hoistableRoot); + return (resource.instance = instance$255); case "script": - instance$253 = getScriptKey(props.src); + instance$255 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$253) + getScriptSelectorFromKey(instance$255) )) ) return ( @@ -15709,7 +15753,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$253))) + if ((styleProps = preloadPropsMap.get(instance$255))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16728,16 +16772,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1828 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1830 = React.version; if ( - "19.1.0-experimental-37906d4d-20250127" !== - isomorphicReactPackageVersion$jscomp$inline_1828 + "19.1.0-experimental-c492f975-20250128" !== + isomorphicReactPackageVersion$jscomp$inline_1830 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1828, - "19.1.0-experimental-37906d4d-20250127" + isomorphicReactPackageVersion$jscomp$inline_1830, + "19.1.0-experimental-c492f975-20250128" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16757,24 +16801,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2364 = { +var internals$jscomp$inline_2366 = { bundleType: 0, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127" + reconcilerVersion: "19.1.0-experimental-c492f975-20250128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2365 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2367 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2365.isDisabled && - hook$jscomp$inline_2365.supportsFiber + !hook$jscomp$inline_2367.isDisabled && + hook$jscomp$inline_2367.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2365.inject( - internals$jscomp$inline_2364 + (rendererID = hook$jscomp$inline_2367.inject( + internals$jscomp$inline_2366 )), - (injectedHook = hook$jscomp$inline_2365); + (injectedHook = hook$jscomp$inline_2367); } catch (err) {} } exports.createComponentSelector = function (component) { @@ -17019,4 +17063,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 88caba0c5f7b0..762e6c512986c 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.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; "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 7944f7d704100..1fee03302849e 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.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 04ef59a0f63f1..14a4a67a98acb 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.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 b7948ad253598..6cb22492622f8 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.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index 994bb84b9f137..c7300fb911c52 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-37906d4d-20250127" + "scheduler": "0.0.0-experimental-c492f975-20250128" }, "peerDependencies": { - "react": "0.0.0-experimental-37906d4d-20250127" + "react": "0.0.0-experimental-c492f975-20250128" }, "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 02527ed52dae0..31ff40eda033f 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 @@ -8848,32 +8848,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2395; - var JSCompiler_object_inline_stack_2396 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2388; + var JSCompiler_object_inline_stack_2389 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2397 = !1; + var JSCompiler_object_inline_componentStack_2390 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2395 = didSuspend) || - (JSCompiler_object_inline_digest_2395 = + (JSCompiler_object_inline_digest_2388 = didSuspend) || + (JSCompiler_object_inline_digest_2388 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2395 && - ((JSCompiler_object_inline_componentStack_2397 = !0), + JSCompiler_object_inline_digest_2388 && + ((JSCompiler_object_inline_componentStack_2390 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2395 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2388 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2397 + JSCompiler_object_inline_componentStack_2390 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2394 = nextHydratableInstance; + var JSCompiler_object_inline_message_2387 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2394)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2387)) { c: { - var instance = JSCompiler_object_inline_message_2394; + var instance = JSCompiler_object_inline_message_2387; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8915,77 +8915,77 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2394 + JSCompiler_object_inline_message_2387 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2394 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2387 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2394 && - ((JSCompiler_object_inline_message_2394 = - JSCompiler_object_inline_message_2394.dehydrated), - null !== JSCompiler_object_inline_message_2394) + null !== JSCompiler_object_inline_message_2387 && + ((JSCompiler_object_inline_message_2387 = + JSCompiler_object_inline_message_2387.dehydrated), + null !== JSCompiler_object_inline_message_2387) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2394) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2387) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2394 = - JSCompiler_object_inline_stack_2396.children; - JSCompiler_object_inline_stack_2396 = - JSCompiler_object_inline_stack_2396.fallback; - if (JSCompiler_object_inline_componentStack_2397) + JSCompiler_object_inline_message_2387 = + JSCompiler_object_inline_stack_2389.children; + JSCompiler_object_inline_stack_2389 = + JSCompiler_object_inline_stack_2389.fallback; + if (JSCompiler_object_inline_componentStack_2390) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2397 = + (JSCompiler_object_inline_componentStack_2390 = workInProgress.mode), - (JSCompiler_object_inline_message_2394 = + (JSCompiler_object_inline_message_2387 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2394 + children: JSCompiler_object_inline_message_2387 }, - JSCompiler_object_inline_componentStack_2397 + JSCompiler_object_inline_componentStack_2390 )), - (JSCompiler_object_inline_stack_2396 = createFiberFromFragment( - JSCompiler_object_inline_stack_2396, - JSCompiler_object_inline_componentStack_2397, + (JSCompiler_object_inline_stack_2389 = createFiberFromFragment( + JSCompiler_object_inline_stack_2389, + JSCompiler_object_inline_componentStack_2390, renderLanes, null )), - (JSCompiler_object_inline_message_2394.return = workInProgress), - (JSCompiler_object_inline_stack_2396.return = workInProgress), - (JSCompiler_object_inline_message_2394.sibling = - JSCompiler_object_inline_stack_2396), - (workInProgress.child = JSCompiler_object_inline_message_2394), - (JSCompiler_object_inline_componentStack_2397 = + (JSCompiler_object_inline_message_2387.return = workInProgress), + (JSCompiler_object_inline_stack_2389.return = workInProgress), + (JSCompiler_object_inline_message_2387.sibling = + JSCompiler_object_inline_stack_2389), + (workInProgress.child = JSCompiler_object_inline_message_2387), + (JSCompiler_object_inline_componentStack_2390 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2397.memoizedState = + (JSCompiler_object_inline_componentStack_2390.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2397.childLanes = + (JSCompiler_object_inline_componentStack_2390.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2395, + JSCompiler_object_inline_digest_2388, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2396 + JSCompiler_object_inline_stack_2389 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2394 + JSCompiler_object_inline_message_2387 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2394 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2394) + ((JSCompiler_object_inline_message_2387 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2387) ) { if (didSuspend) workInProgress.flags & 256 @@ -9002,94 +9002,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2397 = - JSCompiler_object_inline_stack_2396.fallback), - (JSCompiler_object_inline_message_2394 = workInProgress.mode), - (JSCompiler_object_inline_stack_2396 = + (JSCompiler_object_inline_componentStack_2390 = + JSCompiler_object_inline_stack_2389.fallback), + (JSCompiler_object_inline_message_2387 = workInProgress.mode), + (JSCompiler_object_inline_stack_2389 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2396.children + children: JSCompiler_object_inline_stack_2389.children }, - JSCompiler_object_inline_message_2394 + JSCompiler_object_inline_message_2387 )), - (JSCompiler_object_inline_componentStack_2397 = + (JSCompiler_object_inline_componentStack_2390 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2397, - JSCompiler_object_inline_message_2394, + JSCompiler_object_inline_componentStack_2390, + JSCompiler_object_inline_message_2387, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2397.flags |= 2), - (JSCompiler_object_inline_stack_2396.return = workInProgress), - (JSCompiler_object_inline_componentStack_2397.return = + (JSCompiler_object_inline_componentStack_2390.flags |= 2), + (JSCompiler_object_inline_stack_2389.return = workInProgress), + (JSCompiler_object_inline_componentStack_2390.return = workInProgress), - (JSCompiler_object_inline_stack_2396.sibling = - JSCompiler_object_inline_componentStack_2397), - (workInProgress.child = JSCompiler_object_inline_stack_2396), + (JSCompiler_object_inline_stack_2389.sibling = + JSCompiler_object_inline_componentStack_2390), + (workInProgress.child = JSCompiler_object_inline_stack_2389), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2396 = workInProgress.child), - (JSCompiler_object_inline_stack_2396.memoizedState = + (JSCompiler_object_inline_stack_2389 = workInProgress.child), + (JSCompiler_object_inline_stack_2389.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2396.childLanes = + (JSCompiler_object_inline_stack_2389.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2395, + JSCompiler_object_inline_digest_2388, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2397)); + JSCompiler_object_inline_componentStack_2390)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2394)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2387)) ) { - JSCompiler_object_inline_digest_2395 = - JSCompiler_object_inline_message_2394.nextSibling && - JSCompiler_object_inline_message_2394.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2395) { - JSCompiler_temp = JSCompiler_object_inline_digest_2395.dgst; - var message = JSCompiler_object_inline_digest_2395.msg; - instance = JSCompiler_object_inline_digest_2395.stck; - var componentStack = JSCompiler_object_inline_digest_2395.cstck; + JSCompiler_object_inline_digest_2388 = + JSCompiler_object_inline_message_2387.nextSibling && + JSCompiler_object_inline_message_2387.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2388) { + JSCompiler_temp = JSCompiler_object_inline_digest_2388.dgst; + var message = JSCompiler_object_inline_digest_2388.msg; + instance = JSCompiler_object_inline_digest_2388.stck; + var componentStack = JSCompiler_object_inline_digest_2388.cstck; } - JSCompiler_object_inline_message_2394 = message; - JSCompiler_object_inline_digest_2395 = JSCompiler_temp; - JSCompiler_object_inline_stack_2396 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2397 = + JSCompiler_object_inline_message_2387 = message; + JSCompiler_object_inline_digest_2388 = JSCompiler_temp; + JSCompiler_object_inline_stack_2389 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2390 = componentStack; - JSCompiler_object_inline_componentStack_2397 = - JSCompiler_object_inline_message_2394 - ? Error(JSCompiler_object_inline_message_2394) + JSCompiler_object_inline_componentStack_2390 = + JSCompiler_object_inline_message_2387 + ? Error(JSCompiler_object_inline_message_2387) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2397.stack = - JSCompiler_object_inline_stack_2396 || ""; - JSCompiler_object_inline_componentStack_2397.digest = - JSCompiler_object_inline_digest_2395; - JSCompiler_object_inline_digest_2395 = + JSCompiler_object_inline_componentStack_2390.stack = + JSCompiler_object_inline_stack_2389 || ""; + JSCompiler_object_inline_componentStack_2390.digest = + JSCompiler_object_inline_digest_2388; + JSCompiler_object_inline_digest_2388 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2396 = { - value: JSCompiler_object_inline_componentStack_2397, + JSCompiler_object_inline_stack_2389 = { + value: JSCompiler_object_inline_componentStack_2390, source: null, - stack: JSCompiler_object_inline_digest_2395 + stack: JSCompiler_object_inline_digest_2388 }; - "string" === typeof JSCompiler_object_inline_digest_2395 && + "string" === typeof JSCompiler_object_inline_digest_2388 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2397, - JSCompiler_object_inline_stack_2396 + JSCompiler_object_inline_componentStack_2390, + JSCompiler_object_inline_stack_2389 ); - queueHydrationError(JSCompiler_object_inline_stack_2396); + queueHydrationError(JSCompiler_object_inline_stack_2389); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9103,44 +9103,44 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2395 = + (JSCompiler_object_inline_digest_2388 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2395) + didReceiveUpdate || JSCompiler_object_inline_digest_2388) ) { - JSCompiler_object_inline_digest_2395 = workInProgressRoot; + JSCompiler_object_inline_digest_2388 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2395 && - ((JSCompiler_object_inline_stack_2396 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2396 = - 0 !== (JSCompiler_object_inline_stack_2396 & 42) + null !== JSCompiler_object_inline_digest_2388 && + ((JSCompiler_object_inline_stack_2389 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2389 = + 0 !== (JSCompiler_object_inline_stack_2389 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2396 + JSCompiler_object_inline_stack_2389 )), - (JSCompiler_object_inline_stack_2396 = + (JSCompiler_object_inline_stack_2389 = 0 !== - (JSCompiler_object_inline_stack_2396 & - (JSCompiler_object_inline_digest_2395.suspendedLanes | + (JSCompiler_object_inline_stack_2389 & + (JSCompiler_object_inline_digest_2388.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2396), - 0 !== JSCompiler_object_inline_stack_2396 && - JSCompiler_object_inline_stack_2396 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2389), + 0 !== JSCompiler_object_inline_stack_2389 && + JSCompiler_object_inline_stack_2389 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2396), + ((prevState.retryLane = JSCompiler_object_inline_stack_2389), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2396 + JSCompiler_object_inline_stack_2389 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2395, + JSCompiler_object_inline_digest_2388, current, - JSCompiler_object_inline_stack_2396 + JSCompiler_object_inline_stack_2389 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2394.data === + JSCompiler_object_inline_message_2387.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9148,14 +9148,14 @@ renderLanes ); } else - JSCompiler_object_inline_message_2394.data === + JSCompiler_object_inline_message_2387.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2394.nextSibling + JSCompiler_object_inline_message_2387.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9173,57 +9173,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2396.children + JSCompiler_object_inline_stack_2389.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2397) + if (JSCompiler_object_inline_componentStack_2390) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2397 = - JSCompiler_object_inline_stack_2396.fallback), - (JSCompiler_object_inline_message_2394 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2390 = + JSCompiler_object_inline_stack_2389.fallback), + (JSCompiler_object_inline_message_2387 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2396 = createWorkInProgress( + (JSCompiler_object_inline_stack_2389 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2396.children + children: JSCompiler_object_inline_stack_2389.children } )), - (JSCompiler_object_inline_stack_2396.subtreeFlags = + (JSCompiler_object_inline_stack_2389.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_componentStack_2397 = + ? (JSCompiler_object_inline_componentStack_2390 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2397 + JSCompiler_object_inline_componentStack_2390 )) - : ((JSCompiler_object_inline_componentStack_2397 = + : ((JSCompiler_object_inline_componentStack_2390 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2397, - JSCompiler_object_inline_message_2394, + JSCompiler_object_inline_componentStack_2390, + JSCompiler_object_inline_message_2387, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2397.flags |= 2)), - (JSCompiler_object_inline_componentStack_2397.return = + (JSCompiler_object_inline_componentStack_2390.flags |= 2)), + (JSCompiler_object_inline_componentStack_2390.return = workInProgress), - (JSCompiler_object_inline_stack_2396.return = workInProgress), - (JSCompiler_object_inline_stack_2396.sibling = - JSCompiler_object_inline_componentStack_2397), - (workInProgress.child = JSCompiler_object_inline_stack_2396), - (JSCompiler_object_inline_stack_2396 = - JSCompiler_object_inline_componentStack_2397), - (JSCompiler_object_inline_componentStack_2397 = workInProgress.child), - (JSCompiler_object_inline_message_2394 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2394 - ? (JSCompiler_object_inline_message_2394 = + (JSCompiler_object_inline_stack_2389.return = workInProgress), + (JSCompiler_object_inline_stack_2389.sibling = + JSCompiler_object_inline_componentStack_2390), + (workInProgress.child = JSCompiler_object_inline_stack_2389), + (JSCompiler_object_inline_stack_2389 = + JSCompiler_object_inline_componentStack_2390), + (JSCompiler_object_inline_componentStack_2390 = workInProgress.child), + (JSCompiler_object_inline_message_2387 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2387 + ? (JSCompiler_object_inline_message_2387 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2394.cachePool), + JSCompiler_object_inline_message_2387.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9231,37 +9231,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2394 = { + (JSCompiler_object_inline_message_2387 = { baseLanes: - JSCompiler_object_inline_message_2394.baseLanes | renderLanes, + JSCompiler_object_inline_message_2387.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2397.memoizedState = - JSCompiler_object_inline_message_2394), - (JSCompiler_object_inline_componentStack_2397.childLanes = + (JSCompiler_object_inline_componentStack_2390.memoizedState = + JSCompiler_object_inline_message_2387), + (JSCompiler_object_inline_componentStack_2390.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2395, + JSCompiler_object_inline_digest_2388, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2396 + JSCompiler_object_inline_stack_2389 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2396.children + children: JSCompiler_object_inline_stack_2389.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2395 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2395 + ((JSCompiler_object_inline_digest_2388 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2388 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2395.push(current)); + : JSCompiler_object_inline_digest_2388.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -10000,21 +10000,14 @@ (nextHydratableInstance = getNextHydratable( prevSibling.firstChild ))), - (returnFiber = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - returnFiber, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - returnFiber, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -10779,7 +10772,7 @@ 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -10792,12 +10785,10 @@ fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -10808,20 +10799,47 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), - before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$1)); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (((node = node.stateNode), before)) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName + ? parent.ownerDocument.body + : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$1); + } + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -10836,7 +10854,12 @@ if (5 === tag || 6 === tag) (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; @@ -10847,47 +10870,61 @@ (node = node.sibling); } function commitPlacement(finishedWork) { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var parentFiber = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var parentFiber = parent; + break a; } + parent = parent.return; + } + throw Error( + "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + ); + } + switch (parentFiber.tag) { + case 27: + parent = parentFiber.stateNode; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 5: + parent = parentFiber.stateNode; + parentFiber.flags & 32 && + (resetTextContent(parent), (parentFiber.flags &= -33)); + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 3: + case 4: + parent = parentFiber.stateNode.containerInfo; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + parentFiber, + parent + ); + break; + default: throw Error( - "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." ); - } - switch (parentFiber.tag) { - case 27: - parent = parentFiber.stateNode; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 5: - parent = parentFiber.stateNode; - parentFiber.flags & 32 && - (resetTextContent(parent), (parentFiber.flags &= -33)); - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 3: - case 4: - parent = parentFiber.stateNode.containerInfo; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - parentFiber, - parent - ); - break; - default: - throw Error( - "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." - ); - } + } + } + function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + runWithFiberInDEV( + finishedWork, + acquireSingletonInstance, + finishedWork.type, + props, + singleton, + finishedWork + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitBeforeMutationEffects(root, firstChild) { @@ -11144,11 +11181,11 @@ } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -11291,16 +11328,19 @@ safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), + (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for (finishedRoot = deletedFiber.attributes; finishedRoot.length; ) - deletedFiber.removeAttributeNode(finishedRoot[0]); - detachDeletedInstance(deletedFiber); + runWithFiberInDEV( + deletedFiber, + releaseSingletonInstance, + deletedFiber.stateNode + ); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -11357,8 +11397,14 @@ (deletedFiber = deletedFiber.stateNode), 8 === finishedRoot.nodeType ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) - : 1 === finishedRoot.nodeType && - clearSuspenseBoundary(finishedRoot, deletedFiber), + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; @@ -11512,6 +11558,12 @@ a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -11750,35 +11802,20 @@ ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - maybeNodes = finishedWork.memoizedProps; - try { - for (i = hoistableRoot.firstChild; i; ) { - var nextNode = i.nextSibling, - nodeName = i.nodeName; - i[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === i.rel.toLowerCase()) || - hoistableRoot.removeChild(i); - i = nextNode; - } - runWithFiberInDEV( - finishedWork, - acquireSingletonInstance, - finishedWork.type, - maybeNodes, - hoistableRoot, - finishedWork - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -11893,15 +11930,17 @@ (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - i = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || i; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = + prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = + prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork); offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -11909,59 +11948,51 @@ root._visibility |= root._pendingVisibility & OffscreenDetached; if ( flags & 8192 && - ((root._visibility = i + ((root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible), - i && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { - nextNode = current = root; + wasHidden = current = root; try { - (hoistableRoot = nextNode.stateNode), - i - ? runWithFiberInDEV( - nextNode, - hideInstance, - hoistableRoot - ) + (maybeNodes = wasHidden.stateNode), + hoistableRoot + ? runWithFiberInDEV(wasHidden, hideInstance, maybeNodes) : runWithFiberInDEV( - nextNode, + wasHidden, unhideInstance, - nextNode.stateNode, - nextNode.memoizedProps + wasHidden.stateNode, + wasHidden.memoizedProps ); } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if (6 === root.tag) { if (null === current) { - nextNode = root; + wasHidden = root; try { - (maybeNodes = nextNode.stateNode), - i - ? runWithFiberInDEV( - nextNode, - hideTextInstance, - maybeNodes - ) + (i = wasHidden.stateNode), + hoistableRoot + ? runWithFiberInDEV(wasHidden, hideTextInstance, i) : runWithFiberInDEV( - nextNode, + wasHidden, unhideTextInstance, - maybeNodes, - nextNode.memoizedProps + i, + wasHidden.memoizedProps ); } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if ( @@ -12061,8 +12092,13 @@ ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + runWithFiberInDEV( + finishedWork, + releaseSingletonInstance, + finishedWork.stateNode + ); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -12132,8 +12168,9 @@ commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -19167,9 +19204,20 @@ parentInstance.removeChild(child); } function removeChildFromContainer(container, child) { - 8 === container.nodeType - ? container.parentNode.removeChild(child) - : container.removeChild(child); + switch (container.nodeType) { + case 8: + container = container.parentNode; + break; + case 9: + container = container.body; + break; + default: + container = + "HTML" === container.nodeName + ? container.ownerDocument.body + : container; + } + container.removeChild(child); } function clearSuspenseBoundary(parentInstance, suspenseInstance) { var node = suspenseInstance, @@ -19515,6 +19563,11 @@ instance[internalInstanceKey] = internalInstanceHandle; instance[internalPropsKey] = props; } + function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); + } function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() @@ -24570,11 +24623,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24611,10 +24664,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.1.0-canary-37906d4d-20250127", + version: "19.1.0-canary-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-canary-37906d4d-20250127" + reconcilerVersion: "19.1.0-canary-c492f975-20250128" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -24760,7 +24813,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; "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 ee9b01aba21c8..25e9f79d07570 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 @@ -2014,19 +2014,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$279; + var JSCompiler_inline_result$jscomp$281; if (canUseDOM) { - 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; + var isSupported$jscomp$inline_416 = "oninput" in document; + if (!isSupported$jscomp$inline_416) { + var element$jscomp$inline_417 = document.createElement("div"); + element$jscomp$inline_417.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_416 = + "function" === typeof element$jscomp$inline_417.oninput; } - JSCompiler_inline_result$jscomp$279 = isSupported$jscomp$inline_414; - } else JSCompiler_inline_result$jscomp$279 = !1; + JSCompiler_inline_result$jscomp$281 = isSupported$jscomp$inline_416; + } else JSCompiler_inline_result$jscomp$281 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$279 && + JSCompiler_inline_result$jscomp$281 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -7003,21 +7003,14 @@ function beginWork(current, workInProgress, renderLanes) { (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild ))), - (lazyComponent = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - lazyComponent, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - lazyComponent, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -7412,7 +7405,7 @@ function isHostParent(fiber) { 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -7425,12 +7418,10 @@ function getHostSibling(fiber) { fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -7441,19 +7432,45 @@ function getHostSibling(fiber) { function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$1)); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (((node = node.stateNode), before)) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$1); + } + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -7468,7 +7485,12 @@ function insertOrAppendPlacementNode(node, before, parent) { if (5 === tag || 6 === tag) (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; @@ -7476,6 +7498,23 @@ function insertOrAppendPlacementNode(node, before, parent) { ) insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); } +function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + for ( + var type = finishedWork.type, attributes = singleton.attributes; + attributes.length; + + ) + singleton.removeAttributeNode(attributes[0]); + setInitialProperties(singleton, type, props); + singleton[internalInstanceKey] = finishedWork; + singleton[internalPropsKey] = props; + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } +} var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, @@ -7696,11 +7735,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } } break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -7811,20 +7850,14 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for ( - nearestMountedAncestor = deletedFiber.attributes; - nearestMountedAncestor.length; - - ) - deletedFiber.removeAttributeNode(nearestMountedAncestor[0]); - detachDeletedInstance(deletedFiber); + releaseSingletonInstance(deletedFiber.stateNode); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -7832,24 +7865,33 @@ function commitDeletionEffectsOnFiber( offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: - prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$119 = hostParentIsContainer; + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$119; + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; if (null !== hostParent) if (hostParentIsContainer) try { - (finishedRoot = hostParent), - (prevHostParent = deletedFiber.stateNode), - 8 === finishedRoot.nodeType - ? finishedRoot.parentNode.removeChild(prevHostParent) - : finishedRoot.removeChild(prevHostParent); + switch (hostParent.nodeType) { + case 8: + var parentNode = hostParent.parentNode; + break; + case 9: + parentNode = hostParent.body; + break; + default: + parentNode = + "HTML" === hostParent.nodeName + ? hostParent.ownerDocument.body + : hostParent; + } + parentNode.removeChild(deletedFiber.stateNode); } catch (error) { captureCommitPhaseError( deletedFiber, @@ -7871,16 +7913,19 @@ function commitDeletionEffectsOnFiber( case 18: null !== hostParent && (hostParentIsContainer - ? ((nearestMountedAncestor = hostParent), + ? ((finishedRoot = hostParent), (deletedFiber = deletedFiber.stateNode), - 8 === nearestMountedAncestor.nodeType - ? clearSuspenseBoundary( - nearestMountedAncestor.parentNode, - deletedFiber - ) - : 1 === nearestMountedAncestor.nodeType && - clearSuspenseBoundary(nearestMountedAncestor, deletedFiber), - retryIfBlockedOn(nearestMountedAncestor)) + 8 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), + retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; case 4: @@ -8008,6 +8053,12 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -8224,36 +8275,20 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - currentResource = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - for ( - var type = finishedWork.type, attributes = hoistableRoot.attributes; - attributes.length; - - ) - hoistableRoot.removeAttributeNode(attributes[0]); - setInitialProperties(hoistableRoot, type, currentResource); - hoistableRoot[internalInstanceKey] = finishedWork; - hoistableRoot[internalPropsKey] = currentResource; - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -8341,15 +8376,15 @@ function commitMutationEffectsOnFiber(finishedWork, root) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - type = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = type || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork); - offscreenSubtreeWasHidden = type; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -8357,57 +8392,55 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root._visibility |= root._pendingVisibility & 2; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { - nextNode = current = root; + wasHidden = current = root; try { - if (((hoistableRoot = nextNode.stateNode), node)) - (currentResource = hoistableRoot.style), - "function" === typeof currentResource.setProperty - ? currentResource.setProperty( - "display", - "none", - "important" - ) - : (currentResource.display = "none"); + if (((currentResource = wasHidden.stateNode), hoistableRoot)) + (maybeNodes = currentResource.style), + "function" === typeof maybeNodes.setProperty + ? maybeNodes.setProperty("display", "none", "important") + : (maybeNodes.display = "none"); else { - maybeNodes = nextNode.stateNode; - i = nextNode.memoizedProps.style; - var display = - void 0 !== i && null !== i && i.hasOwnProperty("display") - ? i.display - : null; - maybeNodes.style.display = + i = wasHidden.stateNode; + var styleProp = wasHidden.memoizedProps.style, + display = + void 0 !== styleProp && + null !== styleProp && + styleProp.hasOwnProperty("display") + ? styleProp.display + : null; + i.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim(); } } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if (6 === root.tag) { if (null === current) { - nextNode = root; + wasHidden = root; try { - nextNode.stateNode.nodeValue = node + wasHidden.stateNode.nodeValue = hoistableRoot ? "" - : nextNode.memoizedProps; + : wasHidden.memoizedProps; } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if ( @@ -8459,44 +8492,42 @@ function commitReconciliationEffects(finishedWork) { var flags = finishedWork.flags; if (flags & 2) { try { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; } - throw Error(formatProdErrorMessage(160)); - } - switch (JSCompiler_inline_result.tag) { - case 27: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode, - before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 5: - var parent$113 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$113, ""), - (JSCompiler_inline_result.flags &= -33)); - var before$114 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$114, parent$113); - break; - case 3: - case 4: - var parent$115 = JSCompiler_inline_result.stateNode.containerInfo, - before$116 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - before$116, - parent$115 - ); - break; - default: - throw Error(formatProdErrorMessage(161)); + parent = parent.return; } + throw Error(formatProdErrorMessage(160)); + } + switch (JSCompiler_inline_result.tag) { + case 27: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode, + before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 5: + var parent$113 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && + (setTextContent(parent$113, ""), + (JSCompiler_inline_result.flags &= -33)); + var before$114 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$114, parent$113); + break; + case 3: + case 4: + var parent$115 = JSCompiler_inline_result.stateNode.containerInfo, + before$116 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + before$116, + parent$115 + ); + break; + default: + throw Error(formatProdErrorMessage(161)); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -8542,8 +8573,9 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + releaseSingletonInstance(finishedWork.stateNode); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -8618,8 +8650,9 @@ function recursivelyTraverseReappearLayoutEffects( commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -9595,14 +9628,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$131 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$131 = lastTailNode), + for (var lastTailNode$133 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$131 + null === lastTailNode$133 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$131.sibling = null); + : (lastTailNode$133.sibling = null); } } function bubbleProperties(completedWork) { @@ -9612,19 +9645,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$132 = completedWork.child; null !== child$132; ) - (newChildLanes |= child$132.lanes | child$132.childLanes), - (subtreeFlags |= child$132.subtreeFlags & 65011712), - (subtreeFlags |= child$132.flags & 65011712), - (child$132.return = completedWork), - (child$132 = child$132.sibling); + for (var child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags & 65011712), + (subtreeFlags |= child$134.flags & 65011712), + (child$134.return = completedWork), + (child$134 = child$134.sibling); else - for (child$132 = completedWork.child; null !== child$132; ) - (newChildLanes |= child$132.lanes | child$132.childLanes), - (subtreeFlags |= child$132.subtreeFlags), - (subtreeFlags |= child$132.flags), - (child$132.return = completedWork), - (child$132 = child$132.sibling); + for (child$134 = completedWork.child; null !== child$134; ) + (newChildLanes |= child$134.lanes | child$134.childLanes), + (subtreeFlags |= child$134.subtreeFlags), + (subtreeFlags |= child$134.flags), + (child$134.return = completedWork), + (child$134 = child$134.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -9901,11 +9934,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$145 = null; + var cache$147 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$145 = newProps.memoizedState.cachePool.pool); - cache$145 !== type && (newProps.flags |= 2048); + (cache$147 = newProps.memoizedState.cachePool.pool); + cache$147 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -9930,8 +9963,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$145 = type.rendering; - if (null === cache$145) + cache$147 = type.rendering; + if (null === cache$147) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -9939,11 +9972,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$145 = findFirstSuspended(current); - if (null !== cache$145) { + cache$147 = findFirstSuspended(current); + if (null !== cache$147) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$145.updateQueue; + current = cache$147.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -9968,7 +10001,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$145)), null !== current)) { + if (((current = findFirstSuspended(cache$147)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -9978,7 +10011,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$145.alternate && + !cache$147.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -9991,13 +10024,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$145.sibling = workInProgress.child), - (workInProgress.child = cache$145)) + ? ((cache$147.sibling = workInProgress.child), + (workInProgress.child = cache$147)) : ((current = type.last), null !== current - ? (current.sibling = cache$145) - : (workInProgress.child = cache$145), - (type.last = cache$145)); + ? (current.sibling = cache$147) + : (workInProgress.child = cache$147), + (type.last = cache$147)); } if (null !== type.tail) return ( @@ -10698,8 +10731,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) { workLoopSync(); exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$164) { - handleThrow(root, thrownValue$164); + } catch (thrownValue$166) { + handleThrow(root, thrownValue$166); } while (1); lanes && root.shellSuspendCounter++; @@ -10814,8 +10847,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrentByScheduler(); break; - } catch (thrownValue$166) { - handleThrow(root, thrownValue$166); + } catch (thrownValue$168) { + handleThrow(root, thrownValue$168); } while (1); lastContextDependency = currentlyRenderingFiber$1 = null; @@ -11456,14 +11489,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$171 = firstScheduledRoot; null !== root$171; ) { + for (var root$173 = firstScheduledRoot; null !== root$173; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$171.pendingLanes; + var pendingLanes = root$173.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$171.suspendedLanes, - pingedLanes = root$171.pingedLanes; + var suspendedLanes = root$173.suspendedLanes, + pingedLanes = root$173.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11477,20 +11510,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$173, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$171, - root$171 === workInProgressRoot ? JSCompiler_inline_result : 0, - null !== root$171.cancelPendingCommit || - -1 !== root$171.timeoutHandle + root$173, + root$173 === workInProgressRoot ? JSCompiler_inline_result : 0, + null !== root$173.cancelPendingCommit || + -1 !== root$173.timeoutHandle )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$171, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$173, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); - root$171 = root$171.next; + performSyncWorkOnRoot(root$173, JSCompiler_inline_result)); + root$173 = root$173.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11730,20 +11763,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1490 = 0; - i$jscomp$inline_1490 < simpleEventPluginEvents.length; - i$jscomp$inline_1490++ + var i$jscomp$inline_1492 = 0; + i$jscomp$inline_1492 < simpleEventPluginEvents.length; + i$jscomp$inline_1492++ ) { - var eventName$jscomp$inline_1491 = - simpleEventPluginEvents[i$jscomp$inline_1490], - domEventName$jscomp$inline_1492 = - eventName$jscomp$inline_1491.toLowerCase(), - capitalizedEvent$jscomp$inline_1493 = - eventName$jscomp$inline_1491[0].toUpperCase() + - eventName$jscomp$inline_1491.slice(1); + var eventName$jscomp$inline_1493 = + simpleEventPluginEvents[i$jscomp$inline_1492], + domEventName$jscomp$inline_1494 = + eventName$jscomp$inline_1493.toLowerCase(), + capitalizedEvent$jscomp$inline_1495 = + eventName$jscomp$inline_1493[0].toUpperCase() + + eventName$jscomp$inline_1493.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1492, - "on" + capitalizedEvent$jscomp$inline_1493 + domEventName$jscomp$inline_1494, + "on" + capitalizedEvent$jscomp$inline_1495 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -12926,34 +12959,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$187 = props[hasSrc]; + if (null != propValue$187) switch (hasSrc) { case "name": - hasSrcSet = propValue$185; + hasSrcSet = propValue$187; break; case "type": - propValue = propValue$185; + propValue = propValue$187; break; case "checked": - checked = propValue$185; + checked = propValue$187; break; case "defaultChecked": - defaultChecked = propValue$185; + defaultChecked = propValue$187; break; case "value": - propKey = propValue$185; + propKey = propValue$187; break; case "defaultValue": - defaultValue = propValue$185; + defaultValue = propValue$187; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$185) + if (null != propValue$187) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$185, props, null); + setProp(domElement, tag, hasSrc, propValue$187, props, null); } } initInput( @@ -13090,14 +13123,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$187 in props) + props.hasOwnProperty(propValue$187) && + ((hasSrc = props[propValue$187]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$185, + propValue$187, hasSrc, props, void 0 @@ -13145,14 +13178,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$204 in nextProps) { + var propKey = nextProps[propKey$204]; + lastProp = lastProps[propKey$204]; if ( - nextProps.hasOwnProperty(propKey$202) && + nextProps.hasOwnProperty(propKey$204) && (null != propKey || null != lastProp) ) - switch (propKey$202) { + switch (propKey$204) { case "type": type = propKey; break; @@ -13181,7 +13214,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$202, + propKey$204, propKey, nextProps, lastProp @@ -13200,7 +13233,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$202 = null; + propKey = value = defaultValue = propKey$204 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13231,7 +13264,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$202 = type; + propKey$204 = type; break; case "defaultValue": defaultValue = type; @@ -13252,15 +13285,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$202 - ? updateOptions(domElement, !!lastProps, propKey$202, !1) + null != propKey$204 + ? updateOptions(domElement, !!lastProps, propKey$204, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$202 = null; + propKey = propKey$204 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13284,7 +13317,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$202 = name; + propKey$204 = name; break; case "defaultValue": propKey = name; @@ -13298,17 +13331,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$202, propKey); + updateTextarea(domElement, propKey$204, propKey); return; case "option": - for (var propKey$218 in lastProps) + for (var propKey$220 in lastProps) if ( - ((propKey$202 = lastProps[propKey$218]), - lastProps.hasOwnProperty(propKey$218) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$218)) + ((propKey$204 = lastProps[propKey$220]), + lastProps.hasOwnProperty(propKey$220) && + null != propKey$204 && + !nextProps.hasOwnProperty(propKey$220)) ) - switch (propKey$218) { + switch (propKey$220) { case "selected": domElement.selected = !1; break; @@ -13316,33 +13349,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$218, + propKey$220, null, nextProps, - propKey$202 + propKey$204 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$202 = nextProps[lastDefaultValue]), + ((propKey$204 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$202 !== propKey && - (null != propKey$202 || null != propKey)) + propKey$204 !== propKey && + (null != propKey$204 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$202 && - "function" !== typeof propKey$202 && - "symbol" !== typeof propKey$202; + propKey$204 && + "function" !== typeof propKey$204 && + "symbol" !== typeof propKey$204; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$202, + propKey$204, nextProps, propKey ); @@ -13363,24 +13396,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$225 in lastProps) + (propKey$204 = lastProps[propKey$225]), + lastProps.hasOwnProperty(propKey$225) && + null != propKey$204 && + !nextProps.hasOwnProperty(propKey$225) && + setProp(domElement, tag, propKey$225, null, nextProps, propKey$204); for (checked in nextProps) if ( - ((propKey$202 = nextProps[checked]), + ((propKey$204 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$202 !== propKey && - (null != propKey$202 || null != propKey)) + propKey$204 !== propKey && + (null != propKey$204 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$202) + if (null != propKey$204) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13388,7 +13421,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$202, + propKey$204, nextProps, propKey ); @@ -13396,49 +13429,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$230 in lastProps) + (propKey$204 = lastProps[propKey$230]), + lastProps.hasOwnProperty(propKey$230) && + void 0 !== propKey$204 && + !nextProps.hasOwnProperty(propKey$230) && setPropOnCustomElement( domElement, tag, - propKey$228, + propKey$230, void 0, nextProps, - propKey$202 + propKey$204 ); for (defaultChecked in nextProps) - (propKey$202 = nextProps[defaultChecked]), + (propKey$204 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$202 === propKey || - (void 0 === propKey$202 && void 0 === propKey) || + propKey$204 === propKey || + (void 0 === propKey$204 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$202, + propKey$204, 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$235 in lastProps) + (propKey$204 = lastProps[propKey$235]), + lastProps.hasOwnProperty(propKey$235) && + null != propKey$204 && + !nextProps.hasOwnProperty(propKey$235) && + setProp(domElement, tag, propKey$235, null, nextProps, propKey$204); for (lastProp in nextProps) - (propKey$202 = nextProps[lastProp]), + (propKey$204 = 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$204 === propKey || + (null == propKey$204 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$204, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -13705,6 +13738,11 @@ function resolveSingletonInstance(type, props, rootContainerInstance) { throw Error(formatProdErrorMessage(451)); } } +function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); +} var preloadPropsMap = new Map(), preconnectsSet = new Set(); function getHoistableRoot(container) { @@ -14004,26 +14042,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$241 = getResourcesFromRoot( + var styles$243 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$242 = styles$241.get(type); - resource$242 || + resource$244 = styles$243.get(type); + resource$244 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$242 = { + (resource$244 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$241.set(type, resource$242), - (styles$241 = JSCompiler_inline_result.querySelector( + styles$243.set(type, resource$244), + (styles$243 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$241._p && - ((resource$242.instance = styles$241), - (resource$242.state.loading = 5)), + !styles$243._p && + ((resource$244.instance = styles$243), + (resource$244.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14036,16 +14074,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$241 || + styles$243 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$242.state + resource$244.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$242; + return resource$244; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14142,37 +14180,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$247 = hoistableRoot.querySelector( + var instance$249 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$247) + if (instance$249) return ( (resource.state.loading |= 4), - (resource.instance = instance$247), - markNodeAsHoistable(instance$247), - instance$247 + (resource.instance = instance$249), + markNodeAsHoistable(instance$249), + instance$249 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$247 = ( + instance$249 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$247); - var linkInstance = instance$247; + markNodeAsHoistable(instance$249); + var linkInstance = instance$249; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$247, "link", instance); + setInitialProperties(instance$249, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$247, props.precedence, hoistableRoot); - return (resource.instance = instance$247); + insertStylesheet(instance$249, props.precedence, hoistableRoot); + return (resource.instance = instance$249); case "script": - instance$247 = getScriptKey(props.src); + instance$249 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$247) + getScriptSelectorFromKey(instance$249) )) ) return ( @@ -14181,7 +14219,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$247))) + if ((styleProps = preloadPropsMap.get(instance$249))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15200,16 +15238,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1737 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1739 = React.version; if ( - "19.1.0-canary-37906d4d-20250127" !== - isomorphicReactPackageVersion$jscomp$inline_1737 + "19.1.0-canary-c492f975-20250128" !== + isomorphicReactPackageVersion$jscomp$inline_1739 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1737, - "19.1.0-canary-37906d4d-20250127" + isomorphicReactPackageVersion$jscomp$inline_1739, + "19.1.0-canary-c492f975-20250128" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15229,24 +15267,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2214 = { +var internals$jscomp$inline_2216 = { bundleType: 0, - version: "19.1.0-canary-37906d4d-20250127", + version: "19.1.0-canary-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-canary-37906d4d-20250127" + reconcilerVersion: "19.1.0-canary-c492f975-20250128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2215 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2217 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2215.isDisabled && - hook$jscomp$inline_2215.supportsFiber + !hook$jscomp$inline_2217.isDisabled && + hook$jscomp$inline_2217.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2215.inject( - internals$jscomp$inline_2214 + (rendererID = hook$jscomp$inline_2217.inject( + internals$jscomp$inline_2216 )), - (injectedHook = hook$jscomp$inline_2215); + (injectedHook = hook$jscomp$inline_2217); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15340,4 +15378,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 969d886827d6f..64263d2505686 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 @@ -8856,32 +8856,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2400; - var JSCompiler_object_inline_stack_2401 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2393; + var JSCompiler_object_inline_stack_2394 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2402 = !1; + var JSCompiler_object_inline_componentStack_2395 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2400 = didSuspend) || - (JSCompiler_object_inline_digest_2400 = + (JSCompiler_object_inline_digest_2393 = didSuspend) || + (JSCompiler_object_inline_digest_2393 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2400 && - ((JSCompiler_object_inline_componentStack_2402 = !0), + JSCompiler_object_inline_digest_2393 && + ((JSCompiler_object_inline_componentStack_2395 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2400 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2393 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2402 + JSCompiler_object_inline_componentStack_2395 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2399 = nextHydratableInstance; + var JSCompiler_object_inline_message_2392 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2399)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2392)) { c: { - var instance = JSCompiler_object_inline_message_2399; + var instance = JSCompiler_object_inline_message_2392; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8923,77 +8923,77 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2399 + JSCompiler_object_inline_message_2392 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2399 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2392 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2399 && - ((JSCompiler_object_inline_message_2399 = - JSCompiler_object_inline_message_2399.dehydrated), - null !== JSCompiler_object_inline_message_2399) + null !== JSCompiler_object_inline_message_2392 && + ((JSCompiler_object_inline_message_2392 = + JSCompiler_object_inline_message_2392.dehydrated), + null !== JSCompiler_object_inline_message_2392) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2399) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2392) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2399 = - JSCompiler_object_inline_stack_2401.children; - JSCompiler_object_inline_stack_2401 = - JSCompiler_object_inline_stack_2401.fallback; - if (JSCompiler_object_inline_componentStack_2402) + JSCompiler_object_inline_message_2392 = + JSCompiler_object_inline_stack_2394.children; + JSCompiler_object_inline_stack_2394 = + JSCompiler_object_inline_stack_2394.fallback; + if (JSCompiler_object_inline_componentStack_2395) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2402 = + (JSCompiler_object_inline_componentStack_2395 = workInProgress.mode), - (JSCompiler_object_inline_message_2399 = + (JSCompiler_object_inline_message_2392 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2399 + children: JSCompiler_object_inline_message_2392 }, - JSCompiler_object_inline_componentStack_2402 + JSCompiler_object_inline_componentStack_2395 )), - (JSCompiler_object_inline_stack_2401 = createFiberFromFragment( - JSCompiler_object_inline_stack_2401, - JSCompiler_object_inline_componentStack_2402, + (JSCompiler_object_inline_stack_2394 = createFiberFromFragment( + JSCompiler_object_inline_stack_2394, + JSCompiler_object_inline_componentStack_2395, renderLanes, null )), - (JSCompiler_object_inline_message_2399.return = workInProgress), - (JSCompiler_object_inline_stack_2401.return = workInProgress), - (JSCompiler_object_inline_message_2399.sibling = - JSCompiler_object_inline_stack_2401), - (workInProgress.child = JSCompiler_object_inline_message_2399), - (JSCompiler_object_inline_componentStack_2402 = + (JSCompiler_object_inline_message_2392.return = workInProgress), + (JSCompiler_object_inline_stack_2394.return = workInProgress), + (JSCompiler_object_inline_message_2392.sibling = + JSCompiler_object_inline_stack_2394), + (workInProgress.child = JSCompiler_object_inline_message_2392), + (JSCompiler_object_inline_componentStack_2395 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2402.memoizedState = + (JSCompiler_object_inline_componentStack_2395.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2402.childLanes = + (JSCompiler_object_inline_componentStack_2395.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2400, + JSCompiler_object_inline_digest_2393, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2401 + JSCompiler_object_inline_stack_2394 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2399 + JSCompiler_object_inline_message_2392 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2399 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2399) + ((JSCompiler_object_inline_message_2392 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2392) ) { if (didSuspend) workInProgress.flags & 256 @@ -9010,94 +9010,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2402 = - JSCompiler_object_inline_stack_2401.fallback), - (JSCompiler_object_inline_message_2399 = workInProgress.mode), - (JSCompiler_object_inline_stack_2401 = + (JSCompiler_object_inline_componentStack_2395 = + JSCompiler_object_inline_stack_2394.fallback), + (JSCompiler_object_inline_message_2392 = workInProgress.mode), + (JSCompiler_object_inline_stack_2394 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2401.children + children: JSCompiler_object_inline_stack_2394.children }, - JSCompiler_object_inline_message_2399 + JSCompiler_object_inline_message_2392 )), - (JSCompiler_object_inline_componentStack_2402 = + (JSCompiler_object_inline_componentStack_2395 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2402, - JSCompiler_object_inline_message_2399, + JSCompiler_object_inline_componentStack_2395, + JSCompiler_object_inline_message_2392, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2402.flags |= 2), - (JSCompiler_object_inline_stack_2401.return = workInProgress), - (JSCompiler_object_inline_componentStack_2402.return = + (JSCompiler_object_inline_componentStack_2395.flags |= 2), + (JSCompiler_object_inline_stack_2394.return = workInProgress), + (JSCompiler_object_inline_componentStack_2395.return = workInProgress), - (JSCompiler_object_inline_stack_2401.sibling = - JSCompiler_object_inline_componentStack_2402), - (workInProgress.child = JSCompiler_object_inline_stack_2401), + (JSCompiler_object_inline_stack_2394.sibling = + JSCompiler_object_inline_componentStack_2395), + (workInProgress.child = JSCompiler_object_inline_stack_2394), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2401 = workInProgress.child), - (JSCompiler_object_inline_stack_2401.memoizedState = + (JSCompiler_object_inline_stack_2394 = workInProgress.child), + (JSCompiler_object_inline_stack_2394.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2401.childLanes = + (JSCompiler_object_inline_stack_2394.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2400, + JSCompiler_object_inline_digest_2393, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2402)); + JSCompiler_object_inline_componentStack_2395)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2399)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2392)) ) { - JSCompiler_object_inline_digest_2400 = - JSCompiler_object_inline_message_2399.nextSibling && - JSCompiler_object_inline_message_2399.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2400) { - JSCompiler_temp = JSCompiler_object_inline_digest_2400.dgst; - var message = JSCompiler_object_inline_digest_2400.msg; - instance = JSCompiler_object_inline_digest_2400.stck; - var componentStack = JSCompiler_object_inline_digest_2400.cstck; + JSCompiler_object_inline_digest_2393 = + JSCompiler_object_inline_message_2392.nextSibling && + JSCompiler_object_inline_message_2392.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2393) { + JSCompiler_temp = JSCompiler_object_inline_digest_2393.dgst; + var message = JSCompiler_object_inline_digest_2393.msg; + instance = JSCompiler_object_inline_digest_2393.stck; + var componentStack = JSCompiler_object_inline_digest_2393.cstck; } - JSCompiler_object_inline_message_2399 = message; - JSCompiler_object_inline_digest_2400 = JSCompiler_temp; - JSCompiler_object_inline_stack_2401 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2402 = + JSCompiler_object_inline_message_2392 = message; + JSCompiler_object_inline_digest_2393 = JSCompiler_temp; + JSCompiler_object_inline_stack_2394 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2395 = componentStack; - JSCompiler_object_inline_componentStack_2402 = - JSCompiler_object_inline_message_2399 - ? Error(JSCompiler_object_inline_message_2399) + JSCompiler_object_inline_componentStack_2395 = + JSCompiler_object_inline_message_2392 + ? Error(JSCompiler_object_inline_message_2392) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2402.stack = - JSCompiler_object_inline_stack_2401 || ""; - JSCompiler_object_inline_componentStack_2402.digest = - JSCompiler_object_inline_digest_2400; - JSCompiler_object_inline_digest_2400 = + JSCompiler_object_inline_componentStack_2395.stack = + JSCompiler_object_inline_stack_2394 || ""; + JSCompiler_object_inline_componentStack_2395.digest = + JSCompiler_object_inline_digest_2393; + JSCompiler_object_inline_digest_2393 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2401 = { - value: JSCompiler_object_inline_componentStack_2402, + JSCompiler_object_inline_stack_2394 = { + value: JSCompiler_object_inline_componentStack_2395, source: null, - stack: JSCompiler_object_inline_digest_2400 + stack: JSCompiler_object_inline_digest_2393 }; - "string" === typeof JSCompiler_object_inline_digest_2400 && + "string" === typeof JSCompiler_object_inline_digest_2393 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2402, - JSCompiler_object_inline_stack_2401 + JSCompiler_object_inline_componentStack_2395, + JSCompiler_object_inline_stack_2394 ); - queueHydrationError(JSCompiler_object_inline_stack_2401); + queueHydrationError(JSCompiler_object_inline_stack_2394); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9111,44 +9111,44 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2400 = + (JSCompiler_object_inline_digest_2393 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2400) + didReceiveUpdate || JSCompiler_object_inline_digest_2393) ) { - JSCompiler_object_inline_digest_2400 = workInProgressRoot; + JSCompiler_object_inline_digest_2393 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2400 && - ((JSCompiler_object_inline_stack_2401 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2401 = - 0 !== (JSCompiler_object_inline_stack_2401 & 42) + null !== JSCompiler_object_inline_digest_2393 && + ((JSCompiler_object_inline_stack_2394 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2394 = + 0 !== (JSCompiler_object_inline_stack_2394 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2401 + JSCompiler_object_inline_stack_2394 )), - (JSCompiler_object_inline_stack_2401 = + (JSCompiler_object_inline_stack_2394 = 0 !== - (JSCompiler_object_inline_stack_2401 & - (JSCompiler_object_inline_digest_2400.suspendedLanes | + (JSCompiler_object_inline_stack_2394 & + (JSCompiler_object_inline_digest_2393.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2401), - 0 !== JSCompiler_object_inline_stack_2401 && - JSCompiler_object_inline_stack_2401 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2394), + 0 !== JSCompiler_object_inline_stack_2394 && + JSCompiler_object_inline_stack_2394 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2401), + ((prevState.retryLane = JSCompiler_object_inline_stack_2394), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2401 + JSCompiler_object_inline_stack_2394 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2400, + JSCompiler_object_inline_digest_2393, current, - JSCompiler_object_inline_stack_2401 + JSCompiler_object_inline_stack_2394 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2399.data === + JSCompiler_object_inline_message_2392.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9156,14 +9156,14 @@ renderLanes ); } else - JSCompiler_object_inline_message_2399.data === + JSCompiler_object_inline_message_2392.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2399.nextSibling + JSCompiler_object_inline_message_2392.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9181,57 +9181,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2401.children + JSCompiler_object_inline_stack_2394.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2402) + if (JSCompiler_object_inline_componentStack_2395) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2402 = - JSCompiler_object_inline_stack_2401.fallback), - (JSCompiler_object_inline_message_2399 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2395 = + JSCompiler_object_inline_stack_2394.fallback), + (JSCompiler_object_inline_message_2392 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2401 = createWorkInProgress( + (JSCompiler_object_inline_stack_2394 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2401.children + children: JSCompiler_object_inline_stack_2394.children } )), - (JSCompiler_object_inline_stack_2401.subtreeFlags = + (JSCompiler_object_inline_stack_2394.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_componentStack_2402 = + ? (JSCompiler_object_inline_componentStack_2395 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2402 + JSCompiler_object_inline_componentStack_2395 )) - : ((JSCompiler_object_inline_componentStack_2402 = + : ((JSCompiler_object_inline_componentStack_2395 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2402, - JSCompiler_object_inline_message_2399, + JSCompiler_object_inline_componentStack_2395, + JSCompiler_object_inline_message_2392, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2402.flags |= 2)), - (JSCompiler_object_inline_componentStack_2402.return = + (JSCompiler_object_inline_componentStack_2395.flags |= 2)), + (JSCompiler_object_inline_componentStack_2395.return = workInProgress), - (JSCompiler_object_inline_stack_2401.return = workInProgress), - (JSCompiler_object_inline_stack_2401.sibling = - JSCompiler_object_inline_componentStack_2402), - (workInProgress.child = JSCompiler_object_inline_stack_2401), - (JSCompiler_object_inline_stack_2401 = - JSCompiler_object_inline_componentStack_2402), - (JSCompiler_object_inline_componentStack_2402 = workInProgress.child), - (JSCompiler_object_inline_message_2399 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2399 - ? (JSCompiler_object_inline_message_2399 = + (JSCompiler_object_inline_stack_2394.return = workInProgress), + (JSCompiler_object_inline_stack_2394.sibling = + JSCompiler_object_inline_componentStack_2395), + (workInProgress.child = JSCompiler_object_inline_stack_2394), + (JSCompiler_object_inline_stack_2394 = + JSCompiler_object_inline_componentStack_2395), + (JSCompiler_object_inline_componentStack_2395 = workInProgress.child), + (JSCompiler_object_inline_message_2392 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2392 + ? (JSCompiler_object_inline_message_2392 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2399.cachePool), + JSCompiler_object_inline_message_2392.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9239,37 +9239,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2399 = { + (JSCompiler_object_inline_message_2392 = { baseLanes: - JSCompiler_object_inline_message_2399.baseLanes | renderLanes, + JSCompiler_object_inline_message_2392.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2402.memoizedState = - JSCompiler_object_inline_message_2399), - (JSCompiler_object_inline_componentStack_2402.childLanes = + (JSCompiler_object_inline_componentStack_2395.memoizedState = + JSCompiler_object_inline_message_2392), + (JSCompiler_object_inline_componentStack_2395.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2400, + JSCompiler_object_inline_digest_2393, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2401 + JSCompiler_object_inline_stack_2394 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2401.children + children: JSCompiler_object_inline_stack_2394.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2400 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2400 + ((JSCompiler_object_inline_digest_2393 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2393 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2400.push(current)); + : JSCompiler_object_inline_digest_2393.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -10008,21 +10008,14 @@ (nextHydratableInstance = getNextHydratable( prevSibling.firstChild ))), - (returnFiber = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - returnFiber, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - returnFiber, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -10787,7 +10780,7 @@ 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -10800,12 +10793,10 @@ fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -10816,20 +10807,47 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), - before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$2)); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (((node = node.stateNode), before)) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName + ? parent.ownerDocument.body + : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$2); + } + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -10844,7 +10862,12 @@ if (5 === tag || 6 === tag) (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; @@ -10855,47 +10878,61 @@ (node = node.sibling); } function commitPlacement(finishedWork) { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var parentFiber = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var parentFiber = parent; + break a; } + parent = parent.return; + } + throw Error( + "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + ); + } + switch (parentFiber.tag) { + case 27: + parent = parentFiber.stateNode; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 5: + parent = parentFiber.stateNode; + parentFiber.flags & 32 && + (resetTextContent(parent), (parentFiber.flags &= -33)); + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, parentFiber, parent); + break; + case 3: + case 4: + parent = parentFiber.stateNode.containerInfo; + parentFiber = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + parentFiber, + parent + ); + break; + default: throw Error( - "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." + "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." ); - } - switch (parentFiber.tag) { - case 27: - parent = parentFiber.stateNode; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 5: - parent = parentFiber.stateNode; - parentFiber.flags & 32 && - (resetTextContent(parent), (parentFiber.flags &= -33)); - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, parentFiber, parent); - break; - case 3: - case 4: - parent = parentFiber.stateNode.containerInfo; - parentFiber = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - parentFiber, - parent - ); - break; - default: - throw Error( - "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." - ); - } + } + } + function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + runWithFiberInDEV( + finishedWork, + acquireSingletonInstance, + finishedWork.type, + props, + singleton, + finishedWork + ); + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); } } function commitBeforeMutationEffects(root, firstChild) { @@ -11152,11 +11189,11 @@ } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -11299,16 +11336,19 @@ safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), + (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for (finishedRoot = deletedFiber.attributes; finishedRoot.length; ) - deletedFiber.removeAttributeNode(finishedRoot[0]); - detachDeletedInstance(deletedFiber); + runWithFiberInDEV( + deletedFiber, + releaseSingletonInstance, + deletedFiber.stateNode + ); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -11365,8 +11405,14 @@ (deletedFiber = deletedFiber.stateNode), 8 === finishedRoot.nodeType ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) - : 1 === finishedRoot.nodeType && - clearSuspenseBoundary(finishedRoot, deletedFiber), + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; @@ -11520,6 +11566,12 @@ a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -11758,35 +11810,20 @@ ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - maybeNodes = finishedWork.memoizedProps; - try { - for (i = hoistableRoot.firstChild; i; ) { - var nextNode = i.nextSibling, - nodeName = i.nodeName; - i[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === i.rel.toLowerCase()) || - hoistableRoot.removeChild(i); - i = nextNode; - } - runWithFiberInDEV( - finishedWork, - acquireSingletonInstance, - finishedWork.type, - maybeNodes, - hoistableRoot, - finishedWork - ); - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -11901,15 +11938,17 @@ (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - i = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || i; - offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = + prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = + prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork); offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -11917,59 +11956,51 @@ root._visibility |= root._pendingVisibility & OffscreenDetached; if ( flags & 8192 && - ((root._visibility = i + ((root._visibility = hoistableRoot ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible), - i && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { - nextNode = current = root; + wasHidden = current = root; try { - (hoistableRoot = nextNode.stateNode), - i - ? runWithFiberInDEV( - nextNode, - hideInstance, - hoistableRoot - ) + (maybeNodes = wasHidden.stateNode), + hoistableRoot + ? runWithFiberInDEV(wasHidden, hideInstance, maybeNodes) : runWithFiberInDEV( - nextNode, + wasHidden, unhideInstance, - nextNode.stateNode, - nextNode.memoizedProps + wasHidden.stateNode, + wasHidden.memoizedProps ); } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if (6 === root.tag) { if (null === current) { - nextNode = root; + wasHidden = root; try { - (maybeNodes = nextNode.stateNode), - i - ? runWithFiberInDEV( - nextNode, - hideTextInstance, - maybeNodes - ) + (i = wasHidden.stateNode), + hoistableRoot + ? runWithFiberInDEV(wasHidden, hideTextInstance, i) : runWithFiberInDEV( - nextNode, + wasHidden, unhideTextInstance, - maybeNodes, - nextNode.memoizedProps + i, + wasHidden.memoizedProps ); } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if ( @@ -12069,8 +12100,13 @@ ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + runWithFiberInDEV( + finishedWork, + releaseSingletonInstance, + finishedWork.stateNode + ); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -12140,8 +12176,9 @@ commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -19179,9 +19216,20 @@ parentInstance.removeChild(child); } function removeChildFromContainer(container, child) { - 8 === container.nodeType - ? container.parentNode.removeChild(child) - : container.removeChild(child); + switch (container.nodeType) { + case 8: + container = container.parentNode; + break; + case 9: + container = container.body; + break; + default: + container = + "HTML" === container.nodeName + ? container.ownerDocument.body + : container; + } + container.removeChild(child); } function clearSuspenseBoundary(parentInstance, suspenseInstance) { var node = suspenseInstance, @@ -19527,6 +19575,11 @@ instance[internalInstanceKey] = internalInstanceHandle; instance[internalPropsKey] = props; } + function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); + } function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() @@ -24627,11 +24680,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24668,10 +24721,10 @@ !(function () { var internals = { bundleType: 1, - version: "19.1.0-canary-37906d4d-20250127", + version: "19.1.0-canary-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-canary-37906d4d-20250127" + reconcilerVersion: "19.1.0-canary-c492f975-20250128" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25147,7 +25200,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; "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 79e0f6ac092f1..b9ec38605c6e2 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 @@ -2096,19 +2096,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$295; + var JSCompiler_inline_result$jscomp$297; if (canUseDOM) { - 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; + var isSupported$jscomp$inline_433 = "oninput" in document; + if (!isSupported$jscomp$inline_433) { + var element$jscomp$inline_434 = document.createElement("div"); + element$jscomp$inline_434.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_433 = + "function" === typeof element$jscomp$inline_434.oninput; } - JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_431; - } else JSCompiler_inline_result$jscomp$295 = !1; + JSCompiler_inline_result$jscomp$297 = isSupported$jscomp$inline_433; + } else JSCompiler_inline_result$jscomp$297 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$295 && + JSCompiler_inline_result$jscomp$297 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -7164,21 +7164,14 @@ function beginWork(current, workInProgress, renderLanes) { (nextHydratableInstance = getNextHydratable( lazyComponent.firstChild ))), - (lazyComponent = workInProgress.pendingProps.children), - null !== current || isHydrating - ? reconcileChildren( - current, - workInProgress, - lazyComponent, - renderLanes - ) - : (workInProgress.child = reconcileChildFibers( - workInProgress, - null, - lazyComponent, - renderLanes - )), + reconcileChildren( + current, + workInProgress, + workInProgress.pendingProps.children, + renderLanes + ), markRef(current, workInProgress), + null === current && (workInProgress.flags |= 4194304), workInProgress.child ); case 5: @@ -7743,7 +7736,7 @@ function isHostParent(fiber) { 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || - 27 === fiber.tag || + (27 === fiber.tag && "head" === fiber.type) || 4 === fiber.tag ); } @@ -7756,12 +7749,10 @@ function getHostSibling(fiber) { fiber.sibling.return = fiber.return; for ( fiber = fiber.sibling; - 5 !== fiber.tag && - 6 !== fiber.tag && - 27 !== fiber.tag && - 18 !== fiber.tag; + 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { + if (27 === fiber.tag && "head" === fiber.type) continue a; if (fiber.flags & 2) continue a; if (null === fiber.child || 4 === fiber.tag) continue a; else (fiber.child.return = fiber), (fiber = fiber.child); @@ -7772,19 +7763,45 @@ function getHostSibling(fiber) { function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { var tag = node.tag; if (5 === tag || 6 === tag) - (node = node.stateNode), - before - ? 8 === parent.nodeType - ? parent.parentNode.insertBefore(node, before) - : parent.insertBefore(node, before) - : (8 === parent.nodeType - ? ((before = parent.parentNode), before.insertBefore(node, parent)) - : ((before = parent), before.appendChild(node)), - (parent = parent._reactRootContainer), - (null !== parent && void 0 !== parent) || - null !== before.onclick || - (before.onclick = noop$2)); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + if (((node = node.stateNode), before)) { + switch (parent.nodeType) { + case 8: + parent = parent.parentNode; + break; + case 9: + parent = parent.body; + break; + default: + parent = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + parent.insertBefore(node, before); + } else + a: { + switch (parent.nodeType) { + case 8: + before = parent.parentNode; + before.insertBefore(node, parent); + break a; + case 9: + before = parent.body; + break; + default: + before = + "HTML" === parent.nodeName ? parent.ownerDocument.body : parent; + } + before.appendChild(node); + parent = parent._reactRootContainer; + (null !== parent && void 0 !== parent) || + null !== before.onclick || + (before.onclick = noop$2); + } + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; @@ -7799,7 +7816,12 @@ function insertOrAppendPlacementNode(node, before, parent) { if (5 === tag || 6 === tag) (node = node.stateNode), before ? parent.insertBefore(node, before) : parent.appendChild(node); - else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node)) + else if ( + 4 !== tag && + (27 === tag && "head" === node.type && (parent = node.stateNode), + (node = node.child), + null !== node) + ) for ( insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; @@ -7807,6 +7829,23 @@ function insertOrAppendPlacementNode(node, before, parent) { ) insertOrAppendPlacementNode(node, before, parent), (node = node.sibling); } +function commitHostSingletonAcquisition(finishedWork) { + var singleton = finishedWork.stateNode, + props = finishedWork.memoizedProps; + try { + for ( + var type = finishedWork.type, attributes = singleton.attributes; + attributes.length; + + ) + singleton.removeAttributeNode(attributes[0]); + setInitialProperties(singleton, type, props); + singleton[internalInstanceKey] = finishedWork; + singleton[internalPropsKey] = props; + } catch (error) { + captureCommitPhaseError(finishedWork, finishedWork.return, error); + } +} var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, @@ -8061,11 +8100,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } finishedRoot.effectDuration += popNestedEffectDurations(current); break; - case 26: - recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); - flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); - break; case 27: + null === current && + flags & 4 && + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); null === current && flags & 4 && commitHostMount(finishedWork); @@ -8187,20 +8226,14 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; - hostParent = deletedFiber.stateNode; + "head" === deletedFiber.type && + ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1)); recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - deletedFiber = deletedFiber.stateNode; - for ( - nearestMountedAncestor = deletedFiber.attributes; - nearestMountedAncestor.length; - - ) - deletedFiber.removeAttributeNode(nearestMountedAncestor[0]); - detachDeletedInstance(deletedFiber); + releaseSingletonInstance(deletedFiber.stateNode); hostParent = prevHostParent; hostParentIsContainer = prevHostParentIsContainer; break; @@ -8208,24 +8241,33 @@ function commitDeletionEffectsOnFiber( offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: - prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$126 = hostParentIsContainer; + prevHostParent = hostParent; + prevHostParentIsContainer = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, nearestMountedAncestor, deletedFiber ); - hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$126; + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; if (null !== hostParent) if (hostParentIsContainer) try { - (finishedRoot = hostParent), - (prevHostParent = deletedFiber.stateNode), - 8 === finishedRoot.nodeType - ? finishedRoot.parentNode.removeChild(prevHostParent) - : finishedRoot.removeChild(prevHostParent); + switch (hostParent.nodeType) { + case 8: + var parentNode = hostParent.parentNode; + break; + case 9: + parentNode = hostParent.body; + break; + default: + parentNode = + "HTML" === hostParent.nodeName + ? hostParent.ownerDocument.body + : hostParent; + } + parentNode.removeChild(deletedFiber.stateNode); } catch (error) { captureCommitPhaseError( deletedFiber, @@ -8247,16 +8289,19 @@ function commitDeletionEffectsOnFiber( case 18: null !== hostParent && (hostParentIsContainer - ? ((nearestMountedAncestor = hostParent), + ? ((finishedRoot = hostParent), (deletedFiber = deletedFiber.stateNode), - 8 === nearestMountedAncestor.nodeType - ? clearSuspenseBoundary( - nearestMountedAncestor.parentNode, - deletedFiber - ) - : 1 === nearestMountedAncestor.nodeType && - clearSuspenseBoundary(nearestMountedAncestor, deletedFiber), - retryIfBlockedOn(nearestMountedAncestor)) + 8 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber) + : 9 === finishedRoot.nodeType + ? clearSuspenseBoundary(finishedRoot.body, deletedFiber) + : "HTML" === finishedRoot.nodeName + ? clearSuspenseBoundary( + finishedRoot.ownerDocument.body, + deletedFiber + ) + : clearSuspenseBoundary(finishedRoot, deletedFiber), + retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); break; case 4: @@ -8390,6 +8435,12 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { a: for (; null !== parent; ) { switch (parent.tag) { case 27: + if ("head" === parent.type) { + hostParent = parent.stateNode; + hostParentIsContainer = !1; + break a; + } + break; case 5: hostParent = parent.stateNode; hostParentIsContainer = !1; @@ -8606,36 +8657,20 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ); break; case 27: - if (flags & 4 && null === finishedWork.alternate) { - hoistableRoot = finishedWork.stateNode; - maybeNodes = finishedWork.memoizedProps; - try { - for (var node = hoistableRoot.firstChild; node; ) { - var nextNode = node.nextSibling, - nodeName = node.nodeName; - node[internalHoistableMarker] || - "HEAD" === nodeName || - "BODY" === nodeName || - "SCRIPT" === nodeName || - "STYLE" === nodeName || - ("LINK" === nodeName && - "stylesheet" === node.rel.toLowerCase()) || - hoistableRoot.removeChild(node); - node = nextNode; - } - for ( - var type = finishedWork.type, attributes = hoistableRoot.attributes; - attributes.length; - - ) - hoistableRoot.removeAttributeNode(attributes[0]); - setInitialProperties(hoistableRoot, type, maybeNodes); - hoistableRoot[internalInstanceKey] = finishedWork; - hoistableRoot[internalPropsKey] = maybeNodes; - } catch (error) { - captureCommitPhaseError(finishedWork, finishedWork.return, error); - } - } + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + flags & 512 && + (offscreenSubtreeWasHidden || + null === current || + safelyDetachRef(current, current.return)); + null !== current && + flags & 4 && + commitHostUpdate( + finishedWork, + finishedWork.memoizedProps, + current.memoizedProps + ); + break; case 5: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -8728,15 +8763,15 @@ function commitMutationEffectsOnFiber(finishedWork, root) { (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); - node = null !== finishedWork.memoizedState; - nextNode = null !== current && null !== current.memoizedState; - nodeName = offscreenSubtreeIsHidden; - type = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || node; - offscreenSubtreeWasHidden = type || nextNode; + hoistableRoot = null !== finishedWork.memoizedState; + var wasHidden = null !== current && null !== current.memoizedState, + prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, + prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; recursivelyTraverseMutationEffects(root, finishedWork); - offscreenSubtreeWasHidden = type; - offscreenSubtreeIsHidden = nodeName; + offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; + offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; commitReconciliationEffects(finishedWork); root = finishedWork.stateNode; root._current = finishedWork; @@ -8744,55 +8779,55 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root._visibility |= root._pendingVisibility & 2; if ( flags & 8192 && - ((root._visibility = node + ((root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1), - node && - ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden), - null === current || - nextNode || - root || + hoistableRoot && + (null === current || + wasHidden || + offscreenSubtreeIsHidden || + offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode) ) a: for (current = null, root = finishedWork; ; ) { - if (5 === root.tag || 26 === root.tag || 27 === root.tag) { + if (5 === root.tag || 26 === root.tag) { if (null === current) { - nextNode = current = root; + wasHidden = current = root; try { - if (((hoistableRoot = nextNode.stateNode), node)) - (maybeNodes = hoistableRoot.style), - "function" === typeof maybeNodes.setProperty - ? maybeNodes.setProperty("display", "none", "important") - : (maybeNodes.display = "none"); + if (((maybeNodes = wasHidden.stateNode), hoistableRoot)) + (i = maybeNodes.style), + "function" === typeof i.setProperty + ? i.setProperty("display", "none", "important") + : (i.display = "none"); else { - i = nextNode.stateNode; - var styleProp = nextNode.memoizedProps.style, + var instance = wasHidden.stateNode, + styleProp = wasHidden.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null; - i.style.display = + instance.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim(); } } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if (6 === root.tag) { if (null === current) { - nextNode = root; + wasHidden = root; try { - nextNode.stateNode.nodeValue = node + wasHidden.stateNode.nodeValue = hoistableRoot ? "" - : nextNode.memoizedProps; + : wasHidden.memoizedProps; } catch (error) { - captureCommitPhaseError(nextNode, nextNode.return, error); + captureCommitPhaseError(wasHidden, wasHidden.return, error); } } } else if ( @@ -8844,44 +8879,42 @@ function commitReconciliationEffects(finishedWork) { var flags = finishedWork.flags; if (flags & 2) { try { - if (27 !== finishedWork.tag) { - a: { - for (var parent = finishedWork.return; null !== parent; ) { - if (isHostParent(parent)) { - var JSCompiler_inline_result = parent; - break a; - } - parent = parent.return; + a: { + for (var parent = finishedWork.return; null !== parent; ) { + if (isHostParent(parent)) { + var JSCompiler_inline_result = parent; + break a; } - throw Error(formatProdErrorMessage(160)); - } - switch (JSCompiler_inline_result.tag) { - case 27: - var parent$jscomp$0 = JSCompiler_inline_result.stateNode, - before = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); - break; - case 5: - var parent$119 = JSCompiler_inline_result.stateNode; - JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$119, ""), - (JSCompiler_inline_result.flags &= -33)); - var before$120 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$120, parent$119); - break; - case 3: - case 4: - var parent$121 = JSCompiler_inline_result.stateNode.containerInfo, - before$122 = getHostSibling(finishedWork); - insertOrAppendPlacementNodeIntoContainer( - finishedWork, - before$122, - parent$121 - ); - break; - default: - throw Error(formatProdErrorMessage(161)); + parent = parent.return; } + throw Error(formatProdErrorMessage(160)); + } + switch (JSCompiler_inline_result.tag) { + case 27: + var parent$jscomp$0 = JSCompiler_inline_result.stateNode, + before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); + break; + case 5: + var parent$119 = JSCompiler_inline_result.stateNode; + JSCompiler_inline_result.flags & 32 && + (setTextContent(parent$119, ""), + (JSCompiler_inline_result.flags &= -33)); + var before$120 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$120, parent$119); + break; + case 3: + case 4: + var parent$121 = JSCompiler_inline_result.stateNode.containerInfo, + before$122 = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer( + finishedWork, + before$122, + parent$121 + ); + break; + default: + throw Error(formatProdErrorMessage(161)); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -8927,8 +8960,9 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) { ); recursivelyTraverseDisappearLayoutEffects(finishedWork); break; - case 26: case 27: + releaseSingletonInstance(finishedWork.stateNode); + case 26: case 5: safelyDetachRef(finishedWork, finishedWork.return); recursivelyTraverseDisappearLayoutEffects(finishedWork); @@ -9003,8 +9037,9 @@ function recursivelyTraverseReappearLayoutEffects( commitClassCallbacks(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); break; - case 26: case 27: + commitHostSingletonAcquisition(finishedWork); + case 26: case 5: recursivelyTraverseReappearLayoutEffects( finishedRoot, @@ -10021,14 +10056,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$141 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$141 = lastTailNode), + for (var lastTailNode$143 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$143 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$141 + null === lastTailNode$143 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$141.sibling = null); + : (lastTailNode$143.sibling = null); } } function bubbleProperties(completedWork) { @@ -10040,53 +10075,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$143 = completedWork.selfBaseDuration, - child$144 = completedWork.child; - null !== child$144; + var treeBaseDuration$145 = completedWork.selfBaseDuration, + child$146 = completedWork.child; + null !== child$146; ) - (newChildLanes |= child$144.lanes | child$144.childLanes), - (subtreeFlags |= child$144.subtreeFlags & 65011712), - (subtreeFlags |= child$144.flags & 65011712), - (treeBaseDuration$143 += child$144.treeBaseDuration), - (child$144 = child$144.sibling); - completedWork.treeBaseDuration = treeBaseDuration$143; + (newChildLanes |= child$146.lanes | child$146.childLanes), + (subtreeFlags |= child$146.subtreeFlags & 65011712), + (subtreeFlags |= child$146.flags & 65011712), + (treeBaseDuration$145 += child$146.treeBaseDuration), + (child$146 = child$146.sibling); + completedWork.treeBaseDuration = treeBaseDuration$145; } else for ( - treeBaseDuration$143 = completedWork.child; - null !== treeBaseDuration$143; + treeBaseDuration$145 = completedWork.child; + null !== treeBaseDuration$145; ) (newChildLanes |= - treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), - (subtreeFlags |= treeBaseDuration$143.subtreeFlags & 65011712), - (subtreeFlags |= treeBaseDuration$143.flags & 65011712), - (treeBaseDuration$143.return = completedWork), - (treeBaseDuration$143 = treeBaseDuration$143.sibling); + treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), + (subtreeFlags |= treeBaseDuration$145.subtreeFlags & 65011712), + (subtreeFlags |= treeBaseDuration$145.flags & 65011712), + (treeBaseDuration$145.return = completedWork), + (treeBaseDuration$145 = treeBaseDuration$145.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$143 = completedWork.actualDuration; - child$144 = completedWork.selfBaseDuration; + treeBaseDuration$145 = completedWork.actualDuration; + child$146 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$143 += child.actualDuration), - (child$144 += child.treeBaseDuration), + (treeBaseDuration$145 += child.actualDuration), + (child$146 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$143; - completedWork.treeBaseDuration = child$144; + completedWork.actualDuration = treeBaseDuration$145; + completedWork.treeBaseDuration = child$146; } else for ( - treeBaseDuration$143 = completedWork.child; - null !== treeBaseDuration$143; + treeBaseDuration$145 = completedWork.child; + null !== treeBaseDuration$145; ) (newChildLanes |= - treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), - (subtreeFlags |= treeBaseDuration$143.subtreeFlags), - (subtreeFlags |= treeBaseDuration$143.flags), - (treeBaseDuration$143.return = completedWork), - (treeBaseDuration$143 = treeBaseDuration$143.sibling); + treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), + (subtreeFlags |= treeBaseDuration$145.subtreeFlags), + (subtreeFlags |= treeBaseDuration$145.flags), + (treeBaseDuration$145.return = completedWork), + (treeBaseDuration$145 = treeBaseDuration$145.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10379,11 +10414,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$160 = null; + var cache$162 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$160 = newProps.memoizedState.cachePool.pool); - cache$160 !== type && (newProps.flags |= 2048); + (cache$162 = newProps.memoizedState.cachePool.pool); + cache$162 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10413,8 +10448,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$160 = type.rendering; - if (null === cache$160) + cache$162 = type.rendering; + if (null === cache$162) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10422,11 +10457,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$160 = findFirstSuspended(current); - if (null !== cache$160) { + cache$162 = findFirstSuspended(current); + if (null !== cache$162) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$160.updateQueue; + current = cache$162.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10451,7 +10486,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$160)), null !== current)) { + if (((current = findFirstSuspended(cache$162)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10461,7 +10496,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$160.alternate && + !cache$162.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10474,13 +10509,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$160.sibling = workInProgress.child), - (workInProgress.child = cache$160)) + ? ((cache$162.sibling = workInProgress.child), + (workInProgress.child = cache$162)) : ((current = type.last), null !== current - ? (current.sibling = cache$160) - : (workInProgress.child = cache$160), - (type.last = cache$160)); + ? (current.sibling = cache$162) + : (workInProgress.child = cache$162), + (type.last = cache$162)); } if (null !== type.tail) return ( @@ -11231,8 +11266,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) { workLoopSync(); memoizedUpdaters = workInProgressRootExitStatus; break; - } catch (thrownValue$179) { - handleThrow(root, thrownValue$179); + } catch (thrownValue$181) { + handleThrow(root, thrownValue$181); } while (1); lanes && root.shellSuspendCounter++; @@ -11355,8 +11390,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrentByScheduler(); break; - } catch (thrownValue$181) { - handleThrow(root, thrownValue$181); + } catch (thrownValue$183) { + handleThrow(root, thrownValue$183); } while (1); lastContextDependency = currentlyRenderingFiber$1 = null; @@ -12080,14 +12115,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$186 = firstScheduledRoot; null !== root$186; ) { + for (var root$188 = firstScheduledRoot; null !== root$188; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$186.pendingLanes; + var pendingLanes = root$188.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$186.suspendedLanes, - pingedLanes = root$186.pingedLanes; + var suspendedLanes = root$188.suspendedLanes, + pingedLanes = root$188.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -12101,20 +12136,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$186, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$188, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$186, - root$186 === workInProgressRoot ? JSCompiler_inline_result : 0, - null !== root$186.cancelPendingCommit || - -1 !== root$186.timeoutHandle + root$188, + root$188 === workInProgressRoot ? JSCompiler_inline_result : 0, + null !== root$188.cancelPendingCommit || + -1 !== root$188.timeoutHandle )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$186, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$188, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$186, JSCompiler_inline_result)); - root$186 = root$186.next; + performSyncWorkOnRoot(root$188, JSCompiler_inline_result)); + root$188 = root$188.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -12357,20 +12392,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1584 = 0; - i$jscomp$inline_1584 < simpleEventPluginEvents.length; - i$jscomp$inline_1584++ + var i$jscomp$inline_1586 = 0; + i$jscomp$inline_1586 < simpleEventPluginEvents.length; + i$jscomp$inline_1586++ ) { - var eventName$jscomp$inline_1585 = - simpleEventPluginEvents[i$jscomp$inline_1584], - domEventName$jscomp$inline_1586 = - eventName$jscomp$inline_1585.toLowerCase(), - capitalizedEvent$jscomp$inline_1587 = - eventName$jscomp$inline_1585[0].toUpperCase() + - eventName$jscomp$inline_1585.slice(1); + var eventName$jscomp$inline_1587 = + simpleEventPluginEvents[i$jscomp$inline_1586], + domEventName$jscomp$inline_1588 = + eventName$jscomp$inline_1587.toLowerCase(), + capitalizedEvent$jscomp$inline_1589 = + eventName$jscomp$inline_1587[0].toUpperCase() + + eventName$jscomp$inline_1587.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1586, - "on" + capitalizedEvent$jscomp$inline_1587 + domEventName$jscomp$inline_1588, + "on" + capitalizedEvent$jscomp$inline_1589 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13553,34 +13588,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$200 = props[hasSrc]; - if (null != propValue$200) + var propValue$202 = props[hasSrc]; + if (null != propValue$202) switch (hasSrc) { case "name": - hasSrcSet = propValue$200; + hasSrcSet = propValue$202; break; case "type": - propValue = propValue$200; + propValue = propValue$202; break; case "checked": - checked = propValue$200; + checked = propValue$202; break; case "defaultChecked": - defaultChecked = propValue$200; + defaultChecked = propValue$202; break; case "value": - propKey = propValue$200; + propKey = propValue$202; break; case "defaultValue": - defaultValue = propValue$200; + defaultValue = propValue$202; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$200) + if (null != propValue$202) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$200, props, null); + setProp(domElement, tag, hasSrc, propValue$202, props, null); } } initInput( @@ -13717,14 +13752,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$200 in props) - props.hasOwnProperty(propValue$200) && - ((hasSrc = props[propValue$200]), + for (propValue$202 in props) + props.hasOwnProperty(propValue$202) && + ((hasSrc = props[propValue$202]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$200, + propValue$202, hasSrc, props, void 0 @@ -13772,14 +13807,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$217 in nextProps) { - var propKey = nextProps[propKey$217]; - lastProp = lastProps[propKey$217]; + for (var propKey$219 in nextProps) { + var propKey = nextProps[propKey$219]; + lastProp = lastProps[propKey$219]; if ( - nextProps.hasOwnProperty(propKey$217) && + nextProps.hasOwnProperty(propKey$219) && (null != propKey || null != lastProp) ) - switch (propKey$217) { + switch (propKey$219) { case "type": type = propKey; break; @@ -13808,7 +13843,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$217, + propKey$219, propKey, nextProps, lastProp @@ -13827,7 +13862,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$217 = null; + propKey = value = defaultValue = propKey$219 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13858,7 +13893,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$217 = type; + propKey$219 = type; break; case "defaultValue": defaultValue = type; @@ -13879,15 +13914,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$217 - ? updateOptions(domElement, !!lastProps, propKey$217, !1) + null != propKey$219 + ? updateOptions(domElement, !!lastProps, propKey$219, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$217 = null; + propKey = propKey$219 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13911,7 +13946,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$217 = name; + propKey$219 = name; break; case "defaultValue": propKey = name; @@ -13925,17 +13960,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$217, propKey); + updateTextarea(domElement, propKey$219, propKey); return; case "option": - for (var propKey$233 in lastProps) + for (var propKey$235 in lastProps) if ( - ((propKey$217 = lastProps[propKey$233]), - lastProps.hasOwnProperty(propKey$233) && - null != propKey$217 && - !nextProps.hasOwnProperty(propKey$233)) + ((propKey$219 = lastProps[propKey$235]), + lastProps.hasOwnProperty(propKey$235) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$235)) ) - switch (propKey$233) { + switch (propKey$235) { case "selected": domElement.selected = !1; break; @@ -13943,33 +13978,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$233, + propKey$235, null, nextProps, - propKey$217 + propKey$219 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$217 = nextProps[lastDefaultValue]), + ((propKey$219 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$217 !== propKey && - (null != propKey$217 || null != propKey)) + propKey$219 !== propKey && + (null != propKey$219 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$217 && - "function" !== typeof propKey$217 && - "symbol" !== typeof propKey$217; + propKey$219 && + "function" !== typeof propKey$219 && + "symbol" !== typeof propKey$219; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$217, + propKey$219, nextProps, propKey ); @@ -13990,24 +14025,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$238 in lastProps) - (propKey$217 = lastProps[propKey$238]), - lastProps.hasOwnProperty(propKey$238) && - null != propKey$217 && - !nextProps.hasOwnProperty(propKey$238) && - setProp(domElement, tag, propKey$238, null, nextProps, propKey$217); + for (var propKey$240 in lastProps) + (propKey$219 = lastProps[propKey$240]), + lastProps.hasOwnProperty(propKey$240) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$240) && + setProp(domElement, tag, propKey$240, null, nextProps, propKey$219); for (checked in nextProps) if ( - ((propKey$217 = nextProps[checked]), + ((propKey$219 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$217 !== propKey && - (null != propKey$217 || null != propKey)) + propKey$219 !== propKey && + (null != propKey$219 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$217) + if (null != propKey$219) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14015,7 +14050,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$217, + propKey$219, nextProps, propKey ); @@ -14023,49 +14058,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$243 in lastProps) - (propKey$217 = lastProps[propKey$243]), - lastProps.hasOwnProperty(propKey$243) && - void 0 !== propKey$217 && - !nextProps.hasOwnProperty(propKey$243) && + for (var propKey$245 in lastProps) + (propKey$219 = lastProps[propKey$245]), + lastProps.hasOwnProperty(propKey$245) && + void 0 !== propKey$219 && + !nextProps.hasOwnProperty(propKey$245) && setPropOnCustomElement( domElement, tag, - propKey$243, + propKey$245, void 0, nextProps, - propKey$217 + propKey$219 ); for (defaultChecked in nextProps) - (propKey$217 = nextProps[defaultChecked]), + (propKey$219 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$217 === propKey || - (void 0 === propKey$217 && void 0 === propKey) || + propKey$219 === propKey || + (void 0 === propKey$219 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$217, + propKey$219, nextProps, propKey ); return; } } - for (var propKey$248 in lastProps) - (propKey$217 = lastProps[propKey$248]), - lastProps.hasOwnProperty(propKey$248) && - null != propKey$217 && - !nextProps.hasOwnProperty(propKey$248) && - setProp(domElement, tag, propKey$248, null, nextProps, propKey$217); + for (var propKey$250 in lastProps) + (propKey$219 = lastProps[propKey$250]), + lastProps.hasOwnProperty(propKey$250) && + null != propKey$219 && + !nextProps.hasOwnProperty(propKey$250) && + setProp(domElement, tag, propKey$250, null, nextProps, propKey$219); for (lastProp in nextProps) - (propKey$217 = nextProps[lastProp]), + (propKey$219 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$217 === propKey || - (null == propKey$217 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$217, nextProps, propKey); + propKey$219 === propKey || + (null == propKey$219 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$219, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14332,6 +14367,11 @@ function resolveSingletonInstance(type, props, rootContainerInstance) { throw Error(formatProdErrorMessage(451)); } } +function releaseSingletonInstance(instance) { + for (var attributes = instance.attributes; attributes.length; ) + instance.removeAttributeNode(attributes[0]); + detachDeletedInstance(instance); +} var preloadPropsMap = new Map(), preconnectsSet = new Set(); function getHoistableRoot(container) { @@ -14631,26 +14671,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$256 = getResourcesFromRoot( + var styles$258 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$257 = styles$256.get(type); - resource$257 || + resource$259 = styles$258.get(type); + resource$259 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$257 = { + (resource$259 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$256.set(type, resource$257), - (styles$256 = JSCompiler_inline_result.querySelector( + styles$258.set(type, resource$259), + (styles$258 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$256._p && - ((resource$257.instance = styles$256), - (resource$257.state.loading = 5)), + !styles$258._p && + ((resource$259.instance = styles$258), + (resource$259.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14663,16 +14703,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$256 || + styles$258 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$257.state + resource$259.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$257; + return resource$259; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14769,37 +14809,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$262 = hoistableRoot.querySelector( + var instance$264 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$262) + if (instance$264) return ( (resource.state.loading |= 4), - (resource.instance = instance$262), - markNodeAsHoistable(instance$262), - instance$262 + (resource.instance = instance$264), + markNodeAsHoistable(instance$264), + instance$264 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$262 = ( + instance$264 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$262); - var linkInstance = instance$262; + markNodeAsHoistable(instance$264); + var linkInstance = instance$264; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$262, "link", instance); + setInitialProperties(instance$264, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$262, props.precedence, hoistableRoot); - return (resource.instance = instance$262); + insertStylesheet(instance$264, props.precedence, hoistableRoot); + return (resource.instance = instance$264); case "script": - instance$262 = getScriptKey(props.src); + instance$264 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$262) + getScriptSelectorFromKey(instance$264) )) ) return ( @@ -14808,7 +14848,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$262))) + if ((styleProps = preloadPropsMap.get(instance$264))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15846,16 +15886,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1833 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1835 = React.version; if ( - "19.1.0-canary-37906d4d-20250127" !== - isomorphicReactPackageVersion$jscomp$inline_1833 + "19.1.0-canary-c492f975-20250128" !== + isomorphicReactPackageVersion$jscomp$inline_1835 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1833, - "19.1.0-canary-37906d4d-20250127" + isomorphicReactPackageVersion$jscomp$inline_1835, + "19.1.0-canary-c492f975-20250128" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15875,17 +15915,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1840 = { +var internals$jscomp$inline_1842 = { bundleType: 0, - version: "19.1.0-canary-37906d4d-20250127", + version: "19.1.0-canary-c492f975-20250128", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-canary-37906d4d-20250127", + reconcilerVersion: "19.1.0-canary-c492f975-20250128", getLaneLabelMap: function () { for ( - var map = new Map(), lane = 1, index$279 = 0; - 31 > index$279; - index$279++ + var map = new Map(), lane = 1, index$281 = 0; + 31 > index$281; + index$281++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -15898,16 +15938,16 @@ var internals$jscomp$inline_1840 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2278 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2280 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2278.isDisabled && - hook$jscomp$inline_2278.supportsFiber + !hook$jscomp$inline_2280.isDisabled && + hook$jscomp$inline_2280.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2278.inject( - internals$jscomp$inline_1840 + (rendererID = hook$jscomp$inline_2280.inject( + internals$jscomp$inline_1842 )), - (injectedHook = hook$jscomp$inline_2278); + (injectedHook = hook$jscomp$inline_2280); } catch (err) {} } function noop() {} @@ -16162,7 +16202,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; "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 f2a3c3d774210..61a2d75af1f10 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 @@ -8806,5 +8806,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.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 d83665d6d1383..41a6cf92e0af2 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 @@ -5840,4 +5840,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.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 0958e92c3d22c..bf95568d6d31f 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 @@ -8806,5 +8806,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.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 11088b0a19504..85256e25d22fa 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 @@ -5920,4 +5920,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.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 fce873630cb12..926269554ec19 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 @@ -7534,11 +7534,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -9188,5 +9188,5 @@ startWork(request); }); }; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 e514400e456c9..a888251db0951 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 @@ -6170,12 +6170,12 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.1.0-canary-37906d4d-20250127" + "19.1.0-canary-c492f975-20250128" ) ); } @@ -6322,4 +6322,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 be1f3a3d33bea..25edb47603826 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 @@ -5811,13 +5811,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_751 = React.version; if ( - "19.1.0-canary-37906d4d-20250127" !== + "19.1.0-canary-c492f975-20250128" !== isomorphicReactPackageVersion$jscomp$inline_751 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_751 + - "\n - react-dom: 19.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -5908,4 +5908,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 7f9928c3b4bc7..46bd47c1596b0 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 @@ -7557,11 +7557,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -9218,5 +9218,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 8ace22ff614d6..ba88fe64f3999 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 @@ -6265,11 +6265,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6426,4 +6426,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 3e8e5fd09c4a0..bda5444daccce 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 @@ -7432,11 +7432,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -9081,5 +9081,5 @@ } }; }; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 f4e9a839f0d77..391ebf43594ad 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 @@ -6157,11 +6157,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-canary-37906d4d-20250127" !== isomorphicReactPackageVersion) + if ("19.1.0-canary-c492f975-20250128" !== 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.1.0-canary-37906d4d-20250127\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-canary-c492f975-20250128\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6310,4 +6310,4 @@ exports.renderToPipeableStream = function (children, options) { } }; }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 7944767f5ba84..9c151e3165e90 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.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; "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 080f3812e2a60..a4d97d957b7f9 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.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 23293e50f0f84..0a9caf00bf134 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.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 fb0cad5b04a52..c6beff30c32f6 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.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index af68a23236c90..efbe8d649c698 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.26.0-canary-37906d4d-20250127" + "scheduler": "0.26.0-canary-c492f975-20250128" }, "peerDependencies": { - "react": "19.1.0-canary-37906d4d-20250127" + "react": "19.1.0-canary-c492f975-20250128" }, "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 86aadfd0fc120..fc31e1033ef9d 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -1257,7 +1257,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; "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 d2a75777034b1..37d902bbc78fe 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -575,4 +575,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; 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 a3aa6cade0d07..c1e40d10e9576 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 @@ -987,5 +987,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.1.0-experimental-37906d4d-20250127"; + exports.version = "19.1.0-experimental-c492f975-20250128"; })(); 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 12ef4e9600d06..fb23469c1d46b 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.1.0-experimental-37906d4d-20250127"; +exports.version = "19.1.0-experimental-c492f975-20250128"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index 5f087b0c537c6..d62ceaecce17a 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.1.0-canary-37906d4d-20250127", + "version": "19.1.0-canary-c492f975-20250128", "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 36a288df05f2a..ae55a3e9b68c9 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 @@ -2896,10 +2896,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127", + reconcilerVersion: "19.1.0-experimental-c492f975-20250128", 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 e4432b42d1a0a..27f2a45c39047 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-37906d4d-20250127", - "react-dom": "0.0.0-experimental-37906d4d-20250127" + "react": "0.0.0-experimental-c492f975-20250128", + "react-dom": "0.0.0-experimental-c492f975-20250128" } } \ 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 8b38e6f3f9a83..a618d0bea7da7 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 @@ -2462,10 +2462,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.1.0-canary-37906d4d-20250127", + version: "19.1.0-canary-c492f975-20250128", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-canary-37906d4d-20250127", + reconcilerVersion: "19.1.0-canary-c492f975-20250128", 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 b037c2c911eff..1a7fc916791e5 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.1.0-canary-37906d4d-20250127", - "react-dom": "19.1.0-canary-37906d4d-20250127" + "react": "19.1.0-canary-c492f975-20250128", + "react-dom": "19.1.0-canary-c492f975-20250128" } } \ 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 13009c3d59417..d6de996acbf3b 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 @@ -2911,10 +2911,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.1.0-experimental-37906d4d-20250127", + version: "19.1.0-experimental-c492f975-20250128", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-experimental-37906d4d-20250127", + reconcilerVersion: "19.1.0-experimental-c492f975-20250128", 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 5ab02b031c652..691e5158188bf 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-37906d4d-20250127", - "react-dom": "0.0.0-experimental-37906d4d-20250127", + "react": "0.0.0-experimental-c492f975-20250128", + "react-dom": "0.0.0-experimental-c492f975-20250128", "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 9c012300c267b..f2c3b39f39832 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 @@ -2477,10 +2477,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.1.0-canary-37906d4d-20250127", + version: "19.1.0-canary-c492f975-20250128", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-canary-37906d4d-20250127", + reconcilerVersion: "19.1.0-canary-c492f975-20250128", 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 c13744f46dbfe..cd15004a337b5 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.1.0-canary-37906d4d-20250127", - "react-dom": "19.1.0-canary-37906d4d-20250127", + "react": "19.1.0-canary-c492f975-20250128", + "react-dom": "19.1.0-canary-c492f975-20250128", "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 bba984c9b87d3..cbcbf0ae9e92c 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -1521,7 +1521,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; "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 12804d346304a..fb87ea4b55299 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -541,4 +541,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; 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 ed380e27480c7..54dffb87ce888 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 @@ -1110,5 +1110,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.1.0-canary-37906d4d-20250127"; + exports.version = "19.1.0-canary-c492f975-20250128"; })(); 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 77fc756bf76f0..440074b6d7d60 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 @@ -423,4 +423,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.1.0-canary-37906d4d-20250127"; +exports.version = "19.1.0-canary-c492f975-20250128"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index 4d4f51defcd22..e56f64c42fe77 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={999: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={594: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